:root {
    --cream-50: #fff8ef;
    --cream-100: #ffeedc;
    --tea-50: #fff4ec;
    --tea-100: #fbeee0;
    --tea-400: #eca368;
    --tea-500: #e1884f;
    --tea-600: #d9703c;
    --tea-700: #b45833;
    --warm-50: #fbf7f2;
    --warm-100: #efe2d5;
    --warm-200: #ddc9b6;
    --warm-500: #8d7363;
    --warm-600: #72594b;
    --warm-700: #5c4538;
    --warm-800: #463328;
    --warm-900: #2f231d;
    --soft-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.04);
    --deep-shadow: 0 24px 80px rgba(47, 35, 29, 0.18);
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--cream-50) 0%, #ffffff 46%, var(--warm-50) 100%);
    color: var(--warm-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
    position: fixed;
    inset: -20% auto auto -10%;
    z-index: -1;
    width: 520px;
    height: 520px;
    content: "";
    background: radial-gradient(circle, rgba(236, 163, 104, 0.22), transparent 68%);
    pointer-events: none;
}

body::after {
    position: fixed;
    right: -12%;
    bottom: -12%;
    z-index: -1;
    width: 620px;
    height: 620px;
    content: "";
    background: radial-gradient(circle, rgba(180, 88, 51, 0.14), transparent 70%);
    pointer-events: none;
}

img {
    background: linear-gradient(135deg, var(--tea-100), var(--warm-100));
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 248, 239, 0.86);
    border-bottom: 1px solid rgba(221, 201, 182, 0.55);
    backdrop-filter: blur(18px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--warm-900);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-700));
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(217, 112, 60, 0.28);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--warm-700);
    font-weight: 650;
}

.site-nav a {
    position: relative;
    transition: color 0.25s ease;
}

.site-nav a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--tea-600);
    border-radius: 999px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
}

.site-nav a:hover {
    color: var(--tea-700);
}

.site-nav a:hover::after {
    transform: scaleX(1);
}

.menu-toggle {
    display: none;
    padding: 9px 14px;
    color: var(--warm-800);
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    background: #ffffff;
    box-shadow: var(--soft-shadow);
}

.hero-section {
    position: relative;
    height: min(720px, 76vh);
    min-height: 560px;
    overflow: hidden;
    background: #120d0a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease, transform 0.7s ease;
    transform: scale(1.02);
}

.hero-slide.is-active {
    z-index: 2;
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(1px) saturate(1.08);
    transform: scale(1.04);
}

.hero-backdrop::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(90deg, rgba(18, 13, 10, 0.9), rgba(47, 35, 29, 0.62), rgba(255, 248, 239, 0.12)), linear-gradient(0deg, rgba(18, 13, 10, 0.86), transparent 48%, rgba(18, 13, 10, 0.44));
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(260px, 380px);
    align-items: center;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    gap: clamp(24px, 5vw, 72px);
}

.hero-copy {
    max-width: 720px;
    color: #ffffff;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 14px;
    padding: 7px 13px;
    color: var(--tea-700);
    background: rgba(251, 238, 224, 0.94);
    border: 1px solid rgba(236, 163, 104, 0.45);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-copy .eyebrow {
    color: #ffffff;
    background: rgba(217, 112, 60, 0.78);
    border-color: rgba(255, 255, 255, 0.22);
}

.hero-copy h1,
.hero-copy h2 {
    max-width: 760px;
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: clamp(44px, 7vw, 84px);
    line-height: 0.98;
    font-weight: 900;
    letter-spacing: -0.05em;
    text-shadow: 0 18px 50px rgba(0, 0, 0, 0.36);
}

.hero-copy p {
    max-width: 680px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(16px, 2vw, 20px);
    line-height: 1.8;
}

.hero-tags,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    padding: 6px 11px;
    color: var(--tea-700);
    background: var(--tea-100);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 750;
}

.hero-tags span {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.primary-button {
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--tea-700));
    box-shadow: 0 18px 44px rgba(217, 112, 60, 0.38);
}

.ghost-button {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-poster,
.side-poster,
.poster-link {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--tea-100), var(--warm-100));
}

.hero-poster {
    min-height: 520px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;
    box-shadow: var(--deep-shadow);
    transform: rotate(2deg);
}

.hero-poster img,
.side-poster img,
.poster-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease, opacity 0.3s ease;
}

.hero-poster:hover img,
.poster-link:hover img,
.side-poster:hover img {
    transform: scale(1.05);
}

.poster-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--warm-800);
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-size: 24px;
    font-weight: 900;
    text-align: center;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.56), transparent 38%), linear-gradient(135deg, var(--tea-100), var(--warm-100));
}

.poster-link img,
.hero-poster img,
.side-poster img {
    position: relative;
    z-index: 2;
}

.image-missing {
    opacity: 0;
}

.hero-controls {
    position: absolute;
    right: 50%;
    bottom: 34px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateX(50%);
}

.hero-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 34px !important;
    height: 8px !important;
    border-radius: 999px !important;
    opacity: 0.62;
}

.hero-dot.is-active {
    background: var(--tea-500);
    opacity: 1;
}

.search-band,
.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-top: 38px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(221, 201, 182, 0.66);
    border-radius: var(--radius-xl);
    box-shadow: var(--soft-shadow);
}

.search-band h2,
.section-heading h2,
.page-hero h1,
.detail-content-card h1,
.detail-content-card h2,
.side-card h2,
.site-footer h2,
.category-overview-card h2 {
    font-family: Georgia, "Times New Roman", "Microsoft YaHei", serif;
    font-weight: 900;
    color: var(--warm-900);
}

.search-band h2,
.section-heading h2 {
    font-size: clamp(26px, 3vw, 38px);
}

.search-band p,
.page-hero p,
.category-overview-card p,
.site-footer p,
.movie-card-body p,
.detail-content-card p {
    color: var(--warm-600);
    line-height: 1.8;
}

.search-box {
    display: grid;
    gap: 8px;
    min-width: min(420px, 100%);
    color: var(--warm-700);
    font-weight: 750;
}

.search-box.wide {
    flex: 1;
}

.search-box input {
    width: 100%;
    min-height: 48px;
    padding: 0 16px;
    color: var(--warm-900);
    background: #ffffff;
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    outline: none;
    box-shadow: inset 0 0 0 1px transparent;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.search-box input:focus {
    border-color: var(--tea-500);
    box-shadow: 0 0 0 4px rgba(217, 112, 60, 0.14);
}

.section-block {
    margin-top: 64px;
}

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

.section-heading a,
.inline-links a,
.breadcrumb a,
.footer-links a,
.movie-card-meta a,
.side-card a {
    color: var(--tea-700);
    font-weight: 750;
}

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

.compact-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.category-movie-grid {
    margin-top: 28px;
}

.movie-card {
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(221, 201, 182, 0.58);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 32px rgba(47, 35, 29, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(217, 112, 60, 0.42);
    box-shadow: var(--soft-shadow);
    transform: translateY(-4px);
}

.movie-card.is-filtered-out,
.rank-item.is-filtered-out {
    display: none;
}

.poster-link {
    display: block;
    aspect-ratio: 2 / 3;
}

.poster-badge,
.poster-play {
    position: absolute;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 850;
}

.poster-badge {
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    background: rgba(47, 35, 29, 0.72);
    backdrop-filter: blur(10px);
}

.poster-play {
    right: 12px;
    bottom: 12px;
    min-height: 32px;
    padding: 0 12px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--tea-700));
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .poster-play {
    opacity: 1;
    transform: translateY(0);
}

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

.movie-card-title {
    display: -webkit-box;
    overflow: hidden;
    min-height: 48px;
    color: var(--warm-900);
    font-size: 17px;
    font-weight: 850;
    line-height: 1.38;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.movie-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0;
    color: var(--warm-500);
    font-size: 12px;
}

.movie-card-body p {
    display: -webkit-box;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 13px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 30px;
}

.rank-list {
    display: grid;
    gap: 10px;
}

.rank-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(221, 201, 182, 0.62);
    border-radius: 16px;
    box-shadow: 0 8px 26px rgba(47, 35, 29, 0.05);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.rank-item:hover {
    border-color: rgba(217, 112, 60, 0.42);
    transform: translateX(4px);
}

.rank-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--warm-700));
    border-radius: 14px;
    font-weight: 900;
}

.rank-title {
    overflow: hidden;
    color: var(--warm-900);
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-meta {
    color: var(--warm-500);
    font-size: 13px;
}

.large-rank-list {
    position: sticky;
    top: 94px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow: auto;
    padding-right: 6px;
}

.mini-card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.category-card,
.category-overview-card,
.side-card,
.detail-content-card,
.player-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(221, 201, 182, 0.62);
    box-shadow: var(--soft-shadow);
}

.category-card {
    display: grid;
    gap: 14px;
    min-height: 230px;
    padding: 16px;
    border-radius: var(--radius-lg);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card:hover {
    border-color: rgba(217, 112, 60, 0.45);
    transform: translateY(-4px);
}

.category-card span {
    color: var(--warm-900);
    font-size: 18px;
    font-weight: 900;
}

.category-card p {
    color: var(--warm-600);
    font-size: 13px;
    line-height: 1.7;
}

.category-covers,
.category-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
}

.category-covers img,
.category-preview img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 12px;
}

.inner-page {
    padding: 36px 0 72px;
}

.page-hero {
    padding: clamp(34px, 6vw, 72px);
    overflow: hidden;
    background: radial-gradient(circle at top left, rgba(236, 163, 104, 0.24), transparent 36%), linear-gradient(135deg, #ffffff, var(--cream-50));
    border: 1px solid rgba(221, 201, 182, 0.65);
    border-radius: var(--radius-xl);
    box-shadow: var(--soft-shadow);
}

.small-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1;
}

.small-hero p {
    max-width: 820px;
    font-size: 18px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: var(--warm-500);
    font-size: 14px;
}

.filter-panel {
    align-items: flex-end;
    flex-wrap: wrap;
}

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

.filter-chips button {
    min-height: 40px;
    padding: 0 14px;
    color: var(--warm-700);
    background: #ffffff;
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    font-weight: 750;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.filter-chips button:hover,
.filter-chips button.is-active {
    color: #ffffff;
    background: var(--tea-600);
    border-color: var(--tea-600);
}

.category-overview-grid {
    display: grid;
    gap: 22px;
    margin-top: 30px;
}

.category-overview-card {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 24px;
    padding: 18px;
    border-radius: var(--radius-lg);
}

.category-overview-card h2 {
    margin: 0 0 10px;
    font-size: 28px;
}

.inline-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 22px;
}

.player-card,
.detail-content-card,
.side-card {
    border-radius: var(--radius-lg);
}

.player-card {
    padding: 14px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    background: #000000;
    border-radius: 18px;
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.36));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.play-overlay span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 82px;
    height: 82px;
    padding-left: 6px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--tea-600), var(--tea-700));
    border-radius: 999px;
    box-shadow: 0 18px 48px rgba(217, 112, 60, 0.42);
    font-size: 32px;
}

.play-overlay.is-hidden {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: none;
    max-width: calc(100% - 32px);
    padding: 10px 14px;
    color: #ffffff;
    background: rgba(47, 35, 29, 0.78);
    border-radius: 12px;
    font-size: 14px;
    backdrop-filter: blur(8px);
}

.player-message.is-visible {
    display: block;
}

.detail-content-card {
    padding: clamp(22px, 4vw, 36px);
}

.detail-content-card h1 {
    margin-bottom: 14px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.05;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.detail-meta span {
    padding: 7px 12px;
    color: var(--warm-700);
    background: var(--warm-50);
    border: 1px solid var(--warm-100);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 750;
}

.large-tags {
    margin-bottom: 24px;
}

.detail-content-card section {
    padding-top: 24px;
    margin-top: 24px;
    border-top: 1px solid rgba(221, 201, 182, 0.62);
}

.detail-content-card h2 {
    margin-bottom: 12px;
    font-size: 25px;
}

.detail-content-card p + p {
    margin-top: 14px;
}

.detail-sidebar {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: 96px;
}

.side-card {
    padding: 18px;
}

.side-poster {
    display: block;
    aspect-ratio: 2 / 3;
    margin-bottom: 18px;
    border-radius: 18px;
}

.side-card h2 {
    margin-bottom: 16px;
    font-size: 24px;
}

.side-card dl {
    display: grid;
    gap: 10px;
}

.side-card dt {
    color: var(--warm-500);
    font-size: 12px;
    font-weight: 800;
}

.side-card dd {
    margin: 0 0 8px;
    color: var(--warm-900);
    font-weight: 750;
}

.related-section {
    margin-top: 42px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 28px;
    margin-top: 28px;
}

.site-footer {
    margin-top: 80px;
    padding: 54px 0;
    color: rgba(255, 255, 255, 0.82);
    background: linear-gradient(135deg, var(--warm-900), #1c1410);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 28px;
}

.footer-brand,
.site-footer h2 {
    color: #ffffff;
}

.site-footer h2 {
    margin-bottom: 14px;
    font-size: 20px;
}

.site-footer p {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.72);
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.76);
}

.footer-links a:hover {
    color: var(--tea-400);
}

@media (max-width: 1100px) {
    .movie-grid,
    .compact-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-layout,
    .ranking-layout,
    .split-layout {
        grid-template-columns: 1fr;
    }

    .large-rank-list,
    .sticky-card {
        position: static;
        max-height: none;
    }
}

@media (max-width: 820px) {
    .menu-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px;
        background: rgba(255, 255, 255, 0.96);
        border: 1px solid var(--warm-100);
        border-radius: 22px;
        box-shadow: var(--deep-shadow);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 10px;
    }

    .hero-section {
        height: auto;
        min-height: 760px;
    }

    .hero-content {
        grid-template-columns: 1fr;
        padding: 90px 0 110px;
    }

    .hero-poster {
        min-height: 360px;
        transform: none;
    }

    .search-band,
    .filter-panel,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .search-box {
        min-width: 100%;
    }

    .movie-grid,
    .compact-grid,
    .mini-card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-overview-card {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .page-container {
        width: min(100% - 22px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
    }

    .hero-copy h1,
    .hero-copy h2 {
        font-size: 42px;
    }

    .movie-grid,
    .compact-grid,
    .mini-card-list,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .rank-meta {
        grid-column: 2;
    }

    .player-card {
        padding: 8px;
    }
}
