:root {
    color-scheme: light;
    --text: #111827;
    --muted: #6b7280;
    --soft: #f9fafb;
    --line: #e5e7eb;
    --panel: #ffffff;
    --dark: #111827;
    --dark-2: #1f2937;
    --accent: #dc2626;
    --accent-2: #f59e0b;
    --shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f3f4f6 45%, #f5f5f4 100%);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
video {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, 0.84);
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: 0 8px 26px rgba(17, 24, 39, 0.08);
}

.nav-shell {
    width: min(1180px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #111827, #374151);
    box-shadow: 0 10px 24px rgba(17, 24, 39, 0.2);
}

.brand-mark.dark {
    background: linear-gradient(135deg, #f9fafb, #d1d5db);
    color: #111827;
}

.brand-text,
.footer-brand span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-text strong,
.footer-brand strong {
    font-size: 20px;
    letter-spacing: -0.02em;
}

.brand-text small,
.footer-brand small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #374151;
    font-weight: 650;
}

.nav-link {
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: auto;
    bottom: 2px;
    width: 0;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: width 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 12px;
    background: #f3f4f6;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #111827;
}

.mobile-nav {
    display: none;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.mobile-nav.is-open {
    display: grid;
    gap: 6px;
}

.mobile-nav a {
    padding: 12px 14px;
    border-radius: 12px;
    color: #374151;
    font-weight: 650;
}

.mobile-nav a:hover {
    background: #f9fafb;
}

.hero-carousel {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #111827;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: center;
    gap: 44px;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.hero-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 760px;
    object-fit: cover;
    opacity: 0.34;
    filter: blur(2px) saturate(1.05);
    transform: scale(1.04);
}

.hero-overlay {
    position: fixed;
    inset: 0;
    height: 760px;
    background:
        radial-gradient(circle at 20% 20%, rgba(220, 38, 38, 0.28), transparent 28%),
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(90deg, rgba(17, 24, 39, 0.96), rgba(17, 24, 39, 0.74) 52%, rgba(17, 24, 39, 0.55));
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 90px 0 70px;
    color: #ffffff;
}

.hero-kicker,
.section-kicker {
    margin: 0 0 12px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.site-h1 {
    max-width: 760px;
    margin: 0 0 10px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    line-height: 1.35;
}

.hero-content h2,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    font-size: clamp(40px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero-content p:not(.hero-kicker) {
    max-width: 720px;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.9;
}

.hero-tags,
.detail-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags {
    margin-top: 22px;
}

.hero-tags span,
.detail-tags span,
.tag-list span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
}

.tag-list span {
    border-color: #e5e7eb;
    color: #4b5563;
    background: #f9fafb;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.primary-button,
.ghost-button,
.section-more,
.search-box button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, #dc2626, #f59e0b);
    box-shadow: 0 16px 34px rgba(220, 38, 38, 0.28);
}

.primary-button:hover,
.ghost-button:hover,
.section-more:hover,
.search-box button:hover {
    transform: translateY(-2px);
}

.ghost-button {
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.hero-poster {
    position: relative;
    z-index: 2;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 28px;
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.42);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.hero-poster span {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    color: #ffffff;
    font-weight: 850;
    background: rgba(0, 0, 0, 0.46);
    backdrop-filter: blur(14px);
}

.hero-controls {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 34px;
    display: flex;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 34px;
    background: #ffffff;
}

main,
.page-main,
.detail-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    position: relative;
    z-index: 10;
    margin: -34px auto 42px;
    padding: 18px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
}

.search-box input,
.page-search {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 14px 18px;
    color: var(--text);
    outline: none;
    background: #ffffff;
}

.search-box input:focus,
.page-search:focus {
    border-color: #111827;
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.search-box button,
.section-more {
    border: 0;
    color: #ffffff;
    background: #111827;
    cursor: pointer;
}

.search-results {
    display: none;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.search-results.is-visible {
    display: grid;
}

.search-result-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #ffffff;
}

.search-result-item img {
    width: 56px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
    background: #e5e7eb;
}

.search-result-item strong {
    display: block;
    margin-bottom: 4px;
}

.search-result-item small {
    color: var(--muted);
}

.quick-category-section,
.content-section {
    margin: 54px 0;
}

.quick-category-grid,
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.quick-category,
.category-card {
    display: flex;
    flex-direction: column;
    min-height: 140px;
    padding: 22px;
    border: 1px solid rgba(229, 231, 235, 0.9);
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.quick-category:hover,
.category-card:hover,
.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.quick-category strong,
.category-card strong {
    font-size: 20px;
    margin-bottom: 8px;
}

.quick-category span,
.category-card small {
    color: var(--muted);
    line-height: 1.7;
}

.category-posters {
    display: flex;
    height: 88px;
    margin-bottom: 16px;
}

.category-posters img {
    width: 58px;
    height: 88px;
    margin-right: -12px;
    border: 3px solid #ffffff;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.12);
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(28px, 4vw, 44px);
    letter-spacing: -0.05em;
}

.section-kicker {
    color: var(--accent);
}

.section-more.full {
    width: 100%;
    margin-top: 16px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 22px;
}

.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.movie-row {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(170px, 210px);
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
}

.movie-row .movie-card {
    scroll-snap-align: start;
}

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.92);
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: linear-gradient(135deg, #e5e7eb, #f9fafb);
}

.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .poster-link img {
    transform: scale(1.06);
}

.poster-gradient {
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.02));
    transition: opacity 0.2s ease;
}

.poster-play {
    position: absolute;
    left: 50%;
    bottom: 18px;
    opacity: 0;
    color: #ffffff;
    font-weight: 900;
    transform: translateX(-50%) translateY(10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.movie-card:hover .poster-gradient,
.movie-card:hover .poster-play {
    opacity: 1;
}

.movie-card:hover .poster-play {
    transform: translateX(-50%) translateY(0);
}

.movie-card-body {
    padding: 14px 14px 16px;
}

.movie-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.movie-card h3 {
    margin: 0;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    min-height: 46px;
    margin: 8px 0 12px;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.65;
}

.compact-card p {
    min-height: 38px;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
}

.ranking-panel {
    position: sticky;
    top: 90px;
    padding: 22px;
    border-radius: 24px;
    color: #ffffff;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.26), transparent 30%),
        linear-gradient(160deg, #111827, #1f2937);
    box-shadow: var(--shadow);
}

.ranking-head p {
    margin: 0 0 6px;
    color: #fbbf24;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ranking-head h2 {
    margin: 0 0 18px;
    font-size: 32px;
}

.ranking-list {
    display: grid;
    gap: 12px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 38px 52px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.2s ease;
}

.ranking-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.rank-number {
    color: #fbbf24;
    font-weight: 900;
}

.ranking-item img {
    width: 52px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
    background: #374151;
}

.rank-copy strong,
.rank-copy small {
    display: block;
}

.rank-copy small {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.64);
    font-size: 12px;
}

.page-main {
    padding-top: 48px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 44px;
    padding: clamp(44px, 8vw, 86px);
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 24% 20%, rgba(245, 158, 11, 0.24), transparent 28%),
        linear-gradient(135deg, #111827, #374151);
    box-shadow: var(--shadow);
}

.soft-hero {
    background:
        radial-gradient(circle at top right, rgba(220, 38, 38, 0.22), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937);
}

.category-hero {
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.22), transparent 30%),
        linear-gradient(135deg, #1f2937, #111827);
}

.ranking-hero {
    background:
        radial-gradient(circle at 80% 20%, rgba(220, 38, 38, 0.30), transparent 28%),
        linear-gradient(135deg, #111827, #7f1d1d);
}

.page-hero p:not(.hero-kicker) {
    max-width: 760px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 18px;
    line-height: 1.85;
}

.local-toolbar {
    display: grid;
    gap: 14px;
    margin-bottom: 28px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: #374151;
    background: #ffffff;
    cursor: pointer;
}

.filter-button.is-active,
.filter-button:hover {
    color: #ffffff;
    border-color: #111827;
    background: #111827;
}

.empty-state {
    display: none;
    margin: 30px 0;
    padding: 24px;
    border: 1px dashed #d1d5db;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    background: #ffffff;
}

.empty-state.is-visible {
    display: block;
}

.ranking-rows {
    display: grid;
    gap: 12px;
}

.ranking-row {
    display: grid;
    grid-template-columns: 56px 76px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.ranking-row-number {
    color: #dc2626;
    font-size: 24px;
    font-weight: 950;
}

.ranking-row img {
    width: 76px;
    height: 104px;
    border-radius: 14px;
    object-fit: cover;
    background: #e5e7eb;
}

.ranking-row-text strong,
.ranking-row-text small {
    display: block;
}

.ranking-row-text strong {
    font-size: 18px;
}

.ranking-row-text small {
    margin-top: 7px;
    color: var(--muted);
}

.ranking-row-action {
    border-radius: 999px;
    padding: 9px 15px;
    color: #ffffff;
    font-weight: 800;
    background: #111827;
}

.detail-main {
    padding-top: 34px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--text);
}

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 330px) minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 34px;
    border-radius: 32px;
    color: #ffffff;
    background:
        radial-gradient(circle at 88% 18%, rgba(245, 158, 11, 0.18), transparent 30%),
        linear-gradient(135deg, #111827, #1f2937);
    box-shadow: var(--shadow);
}

.detail-poster img {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 24px;
    object-fit: cover;
    background: #374151;
    box-shadow: 0 32px 70px rgba(0, 0, 0, 0.34);
}

.detail-copy h1 {
    font-size: clamp(34px, 6vw, 64px);
}

.detail-one-line {
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 18px;
    line-height: 1.8;
}

.detail-tags {
    margin-top: 20px;
}

.detail-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.detail-facts span {
    padding: 12px 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.08);
}

.player-section {
    margin: 34px 0;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    background: #000000;
    box-shadow: var(--shadow);
}

.movie-player {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    gap: 14px;
    border: 0;
    color: #ffffff;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.28));
    cursor: pointer;
}

.player-overlay.is-hidden {
    display: none;
}

.play-icon {
    display: grid;
    place-items: center;
    width: 84px;
    height: 84px;
    border-radius: 999px;
    color: #111827;
    font-size: 30px;
    background: #ffffff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.26);
}

.player-overlay strong {
    font-size: 22px;
}

.detail-section {
    margin: 28px 0;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: #ffffff;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.06);
}

.detail-section h2 {
    margin: 0 0 14px;
    font-size: 28px;
    letter-spacing: -0.04em;
}

.detail-section p {
    margin: 0;
    color: #374151;
    font-size: 16px;
    line-height: 2;
}

.genre-tags span {
    color: #374151;
    border-color: #e5e7eb;
    background: #f9fafb;
}

.related-section {
    margin-bottom: 70px;
}

.site-footer {
    margin-top: 80px;
    color: #d1d5db;
    background:
        radial-gradient(circle at 20% 0, rgba(220, 38, 38, 0.16), transparent 28%),
        linear-gradient(135deg, #111827, #1f2937);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 2fr) 1fr 1fr;
    gap: 42px;
    padding: 54px 0 36px;
}

.footer-main p {
    max-width: 520px;
    margin: 18px 0 0;
    color: #9ca3af;
    line-height: 1.9;
}

.footer-links h3 {
    margin: 0 0 16px;
    color: #ffffff;
}

.footer-links ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-links a,
.footer-links li {
    color: #9ca3af;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #9ca3af;
    font-size: 14px;
}

@media (max-width: 980px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-button {
        display: block;
    }

    .hero-carousel {
        min-height: 760px;
    }

    .hero-slide,
    .detail-hero,
    .split-layout,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 20px;
        align-content: center;
    }

    .hero-content {
        padding: 70px 0 20px;
    }

    .hero-poster {
        width: min(280px, 72vw);
        margin: 0 auto 60px;
    }

    .ranking-panel {
        position: relative;
        top: auto;
    }
}

@media (max-width: 640px) {
    .nav-shell,
    main,
    .page-main,
    .detail-main,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 22px, 1180px);
    }

    .brand-text strong {
        font-size: 18px;
    }

    .hero-content h2,
    .page-hero h1,
    .detail-copy h1 {
        font-size: 38px;
    }

    .hero-carousel {
        min-height: 720px;
    }

    .hero-content p:not(.hero-kicker),
    .page-hero p:not(.hero-kicker),
    .detail-one-line {
        font-size: 15px;
    }

    .hero-actions,
    .section-heading,
    .footer-bottom {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box,
    .ranking-row {
        grid-template-columns: 1fr;
    }

    .ranking-row img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .movie-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 16px;
    }

    .movie-card-body {
        padding: 12px;
    }

    .movie-card p {
        min-height: auto;
    }

    .page-hero,
    .detail-hero,
    .detail-section {
        padding: 22px;
        border-radius: 24px;
    }
}
