:root {
    --rose-50: #fff1f2;
    --rose-100: #ffe4e6;
    --rose-200: #fecdd3;
    --rose-400: #fb7185;
    --rose-500: #f43f5e;
    --rose-600: #e11d48;
    --pink-50: #fdf2f8;
    --pink-100: #fce7f3;
    --pink-500: #ec4899;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-500: #64748b;
    --slate-700: #334155;
    --slate-900: #0f172a;
    --white: #ffffff;
    --shadow-sm: 0 8px 20px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 20px 45px rgba(244, 63, 94, 0.16);
    --radius-lg: 24px;
    --radius-md: 18px;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: linear-gradient(180deg, var(--rose-50) 0%, var(--white) 28%, var(--pink-50) 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(226, 232, 240, 0.75);
    box-shadow: 0 8px 26px rgba(15, 23, 42, 0.05);
    backdrop-filter: blur(16px);
}

.header-inner {
    max-width: var(--max-width);
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--pink-500), var(--rose-500));
    box-shadow: 0 12px 28px rgba(236, 72, 153, 0.28);
}

.logo-text {
    font-size: 1.22rem;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    color: var(--slate-700);
    font-weight: 650;
}

.desktop-nav a {
    position: relative;
    padding: 8px 0;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 0;
    height: 2px;
    border-radius: 99px;
    background: var(--rose-500);
    transition: right 0.22s ease;
}

.desktop-nav a:hover {
    color: var(--rose-600);
}

.desktop-nav a:hover::after {
    right: 0;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--slate-100);
    border-radius: 14px;
    padding: 10px;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--slate-700);
    border-radius: 99px;
}

.mobile-nav {
    display: none;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px 18px;
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
    border-radius: 12px;
    color: var(--slate-700);
}

.mobile-nav a:hover {
    color: var(--rose-600);
    background: var(--rose-50);
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, var(--rose-100), var(--pink-100), var(--rose-100));
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.34;
    background-image: radial-gradient(circle at 18px 18px, rgba(244, 63, 94, 0.2) 0 2px, transparent 2px), radial-gradient(circle at 46px 46px, rgba(236, 72, 153, 0.18) 0 2px, transparent 2px);
    background-size: 64px 64px;
}

.hero-inner {
    position: relative;
    max-width: var(--max-width);
    min-height: 580px;
    margin: 0 auto;
    padding: 70px 22px 82px;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
    align-items: center;
    gap: 48px;
}

.eyebrow,
.section-kicker,
.page-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(244, 63, 94, 0.16);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 750;
}

.hero h1 {
    margin: 18px 0 18px;
    font-size: clamp(2.35rem, 5.3vw, 4.95rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
}

.hero h1 span {
    display: block;
    color: transparent;
    background: linear-gradient(90deg, var(--pink-500), var(--rose-600));
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-lead {
    max-width: 670px;
    margin: 0 0 26px;
    color: var(--slate-700);
    font-size: 1.12rem;
}

.hero-actions,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 28px;
}

.btn-primary,
.btn-soft,
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 760;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 16px 36px rgba(244, 63, 94, 0.24);
}

.btn-soft {
    color: var(--rose-600);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(244, 63, 94, 0.16);
}

.btn-white {
    color: var(--rose-600);
    background: var(--white);
}

.btn-primary:hover,
.btn-soft:hover,
.btn-white:hover {
    transform: translateY(-2px) scale(1.015);
    box-shadow: var(--shadow-md);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 610px;
    gap: 14px;
}

.hero-stats div,
.metric-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
}

.hero-stats strong,
.metric-card strong {
    display: block;
    font-size: 1.5rem;
    color: var(--rose-600);
}

.hero-stats span,
.metric-card span {
    color: var(--slate-500);
    font-size: 0.92rem;
}

.hero-stage {
    position: relative;
    min-height: 460px;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 22px;
    align-items: stretch;
    opacity: 0;
    transform: translateX(18px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.45s ease, transform 0.45s ease;
}

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

.hero-feature {
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 24px 70px rgba(244, 63, 94, 0.18);
}

.hero-feature h2 {
    margin: 12px 0 12px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.1;
}

.hero-feature p {
    margin: 0 0 18px;
    color: var(--slate-700);
}

.hero-dots {
    position: absolute;
    left: 50%;
    bottom: -28px;
    transform: translateX(-50%);
    display: flex;
    gap: 9px;
}

.hero-dots button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(244, 63, 94, 0.28);
    cursor: pointer;
}

.hero-dots button.is-active {
    width: 28px;
    background: var(--rose-500);
}

main,
.content-section,
.page-shell,
.detail-shell {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: 22px;
    padding-right: 22px;
}

.content-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

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

.section-heading h2,
.page-heading h1 {
    margin: 10px 0 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.12;
}

.section-heading p,
.page-heading p {
    max-width: 780px;
    margin: 10px 0 0;
    color: var(--slate-600);
}

.section-link {
    color: var(--rose-600);
    font-weight: 780;
}

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

.movie-grid.compact {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.74);
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(244, 63, 94, 0.22);
    box-shadow: var(--shadow-md);
}

.poster-link {
    display: block;
}

.poster-art {
    position: relative;
    min-height: 260px;
    padding: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: var(--white);
    background: linear-gradient(135deg, #fb7185, #ec4899);
}

.poster-art::before {
    content: "";
    position: absolute;
    inset: -18%;
    background: radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.46), transparent 28%), radial-gradient(circle at 78% 74%, rgba(255, 255, 255, 0.22), transparent 32%);
}

.poster-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.02), rgba(15, 23, 42, 0.52));
}

.poster-art strong,
.poster-art small,
.poster-year {
    position: relative;
    z-index: 1;
}

.poster-art strong {
    font-size: 1.7rem;
    line-height: 1.12;
    letter-spacing: -0.02em;
    text-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.poster-art small {
    margin-top: 8px;
    opacity: 0.86;
}

.poster-year {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--white);
    background: rgba(15, 23, 42, 0.2);
    backdrop-filter: blur(8px);
}

.tone-1 { background: linear-gradient(135deg, #fb7185, #ec4899); }
.tone-2 { background: linear-gradient(135deg, #f97316, #fb7185); }
.tone-3 { background: linear-gradient(135deg, #8b5cf6, #ec4899); }
.tone-4 { background: linear-gradient(135deg, #06b6d4, #8b5cf6); }
.tone-5 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.tone-6 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.tone-7 { background: linear-gradient(135deg, #0f172a, #e11d48); }
.tone-8 { background: linear-gradient(135deg, #334155, #14b8a6); }

.card-body {
    padding: 18px;
}

.card-meta,
.detail-meta,
.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 0.88rem;
}

.card-meta span,
.detail-meta span,
.rank-meta span {
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--slate-100);
}

.card-title {
    margin: 12px 0 8px;
    font-size: 1.18rem;
    line-height: 1.25;
}

.card-title a:hover {
    color: var(--rose-600);
}

.card-desc {
    margin: 0 0 14px;
    min-height: 48px;
    color: var(--slate-600);
    font-size: 0.94rem;
}

.card-tags,
.detail-tags,
.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span,
.detail-tags span,
.footer-tags a {
    padding: 5px 9px;
    color: var(--rose-600);
    background: var(--rose-50);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 720;
}

.card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 16px;
    color: var(--slate-500);
    font-size: 0.88rem;
}

.card-foot a {
    color: var(--rose-600);
    font-weight: 760;
}

.movie-card.horizontal {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
}

.movie-card.horizontal .poster-art {
    min-height: 100%;
}

.movie-card.minimal .poster-art {
    min-height: 190px;
}

.category-band,
.cta-band {
    margin: 20px 0 0;
    padding: 64px 0;
    background: linear-gradient(90deg, var(--pink-50), var(--rose-50));
}

.category-grid,
.metric-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 22px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-tile {
    padding: 24px;
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 24px;
    background: var(--white);
    border: 1px solid rgba(244, 63, 94, 0.12);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-tile:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.category-tile strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.28rem;
}

.category-tile p {
    margin: 0;
    color: var(--slate-600);
}

.category-tile span {
    margin-top: 18px;
    color: var(--rose-600);
    font-weight: 760;
}

.page-hero {
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    color: var(--white);
}

.page-hero-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 62px 22px;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 1.1;
}

.page-hero p {
    max-width: 820px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.page-shell {
    padding-top: 42px;
    padding-bottom: 74px;
}

.filter-panel {
    margin-bottom: 30px;
    padding: 20px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(150px, 0.55fr));
    gap: 14px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.82);
    box-shadow: var(--shadow-sm);
}

.filter-panel input,
.filter-panel select,
.search-box input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--slate-200);
    border-radius: 14px;
    color: var(--slate-900);
    background: var(--white);
    outline: none;
}

.filter-panel input:focus,
.filter-panel select:focus,
.search-box input:focus {
    border-color: var(--rose-400);
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.1);
}

.result-count {
    margin: 0 0 18px;
    color: var(--slate-500);
    font-weight: 700;
}

.detail-shell {
    padding-top: 36px;
    padding-bottom: 76px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    color: var(--slate-500);
    font-size: 0.92rem;
}

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

.detail-top {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: stretch;
    margin-bottom: 42px;
}

.detail-top .poster-art {
    min-height: 460px;
    border-radius: 30px;
    box-shadow: var(--shadow-md);
}

.detail-info {
    padding: 34px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: var(--shadow-sm);
}

.detail-info h1 {
    margin: 16px 0 14px;
    font-size: clamp(2.1rem, 4vw, 4rem);
    line-height: 1.08;
}

.detail-info .one-line {
    margin: 0 0 20px;
    color: var(--slate-700);
    font-size: 1.08rem;
}

.detail-tags {
    margin: 20px 0 24px;
}

.player-section,
.text-panel,
.related-section {
    margin-top: 30px;
    padding: 28px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: var(--shadow-sm);
}

.player-section h2,
.text-panel h2,
.related-section h2 {
    margin: 0 0 18px;
    font-size: 1.75rem;
}

.stream-player {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: radial-gradient(circle at 20% 20%, rgba(244, 63, 94, 0.24), transparent 32%), linear-gradient(135deg, #111827, #0f172a);
}

.stream-player video {
    width: 100%;
    height: 100%;
    display: block;
    background: #050816;
}

.play-trigger {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    color: var(--white);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.22), rgba(15, 23, 42, 0.72));
    cursor: pointer;
}

.play-trigger span {
    width: 78px;
    height: 78px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    box-shadow: 0 18px 40px rgba(244, 63, 94, 0.3);
    font-size: 2rem;
}

.play-trigger strong {
    font-size: 1.35rem;
}

.play-trigger small {
    color: rgba(255, 255, 255, 0.72);
}

.stream-player.is-playing .play-trigger {
    opacity: 0;
    pointer-events: none;
}

.player-message {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 4;
    display: none;
    padding: 12px 14px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.78);
    border-radius: 14px;
}

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

.text-panel p {
    margin: 0;
    color: var(--slate-700);
    font-size: 1.03rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.mini-card {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: var(--slate-50);
    border: 1px solid var(--slate-200);
}

.mini-card:hover {
    border-color: rgba(244, 63, 94, 0.24);
    background: var(--rose-50);
}

.mini-poster {
    min-height: 118px;
    border-radius: 14px;
    padding: 12px;
}

.mini-poster strong {
    font-size: 0.95rem;
}

.mini-card span {
    display: block;
    font-weight: 800;
}

.mini-card small {
    display: block;
    margin-top: 5px;
    color: var(--slate-500);
}

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

.rank-item {
    display: grid;
    grid-template-columns: 70px 96px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 16px;
    border-radius: 22px;
    background: var(--white);
    border: 1px solid rgba(226, 232, 240, 0.78);
    box-shadow: var(--shadow-sm);
}

.rank-number {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    border-radius: 18px;
    background: linear-gradient(135deg, var(--rose-500), var(--pink-500));
    font-weight: 900;
    font-size: 1.25rem;
}

.rank-item .poster-art {
    min-height: 126px;
    border-radius: 16px;
    padding: 12px;
}

.rank-item .poster-art strong {
    font-size: 1rem;
}

.rank-copy h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
}

.rank-copy p {
    margin: 8px 0 0;
    color: var(--slate-600);
}

.rank-score {
    color: var(--rose-600);
    font-weight: 900;
    font-size: 1.3rem;
}

.search-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    margin: 0 0 26px;
    padding: 18px;
    border-radius: 22px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.search-box button {
    min-width: 118px;
    border: 0;
    color: var(--white);
    background: linear-gradient(90deg, var(--rose-500), var(--pink-500));
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.site-footer {
    background: linear-gradient(180deg, var(--slate-50), var(--slate-100));
    border-top: 1px solid rgba(226, 232, 240, 0.86);
}

.footer-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 54px 22px 30px;
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 28px;
}

.footer-grid h2 {
    margin: 0 0 14px;
    font-size: 1rem;
}

.footer-grid p {
    margin: 12px 0 0;
    color: var(--slate-600);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: var(--slate-600);
}

.footer-grid a:hover {
    color: var(--rose-600);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 22px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--slate-500);
    border-top: 1px solid var(--slate-200);
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--slate-500);
    border: 1px dashed var(--slate-200);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.76);
}

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

@media (max-width: 1040px) {
    .hero-inner,
    .detail-top {
        grid-template-columns: 1fr;
    }

    .hero-stage {
        min-height: 430px;
    }

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

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .menu-toggle {
        display: block;
    }

    .mobile-nav.is-open {
        display: block;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 48px;
        padding-bottom: 70px;
    }

    .hero-stats,
    .hero-slide,
    .movie-card.horizontal,
    .related-grid,
    .rank-item,
    .search-box {
        grid-template-columns: 1fr;
    }

    .hero-slide {
        gap: 16px;
    }

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

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .metric-grid {
        grid-template-columns: 1fr 1fr;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .section-heading,
    .page-heading,
    .footer-bottom {
        align-items: start;
        flex-direction: column;
    }

    .rank-score {
        justify-self: start;
    }
}

@media (max-width: 520px) {
    .header-inner,
    main,
    .content-section,
    .page-shell,
    .detail-shell,
    .page-hero-inner,
    .category-grid,
    .metric-grid,
    .footer-grid,
    .footer-bottom {
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo-text {
        font-size: 1.05rem;
    }

    .hero-stage {
        min-height: 660px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .metric-grid {
        grid-template-columns: 1fr;
    }

    .poster-art {
        min-height: 230px;
    }

    .detail-top .poster-art {
        min-height: 360px;
    }

    .detail-info,
    .player-section,
    .text-panel,
    .related-section {
        padding: 20px;
        border-radius: 22px;
    }

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