:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-500: #64748b;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --cyan-400: #22d3ee;
    --cyan-500: #06b6d4;
    --blue-600: #2563eb;
    --orange-500: #f97316;
    --red-500: #ef4444;
    --amber-50: #fffbeb;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 22px 70px rgba(15, 23, 42, 0.16);
    --shadow-card: 0 16px 40px rgba(15, 23, 42, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--slate-900);
    background: #f8fafc;
    line-height: 1.65;
}

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

img {
    display: block;
    width: 100%;
}

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    color: #fff;
    box-shadow: 0 14px 35px rgba(2, 6, 23, 0.28);
}

.nav-shell {
    max-width: 1240px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--cyan-400), var(--blue-600));
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 182, 212, 0.28);
}

.brand-text {
    max-width: 260px;
    font-size: 19px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: linear-gradient(90deg, var(--cyan-400), #60a5fa);
    -webkit-background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    padding: 9px 12px;
    border-radius: 10px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 700;
    transition: 0.22s ease;
}

.nav-link:hover,
.mobile-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active,
.mobile-link.active {
    color: #fff;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.top-search,
.mobile-search {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-search input,
.mobile-search input,
.big-search input,
.filter-grid input,
.filter-grid select {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--slate-900);
    background: #fff;
    outline: none;
}

.top-search input {
    width: 210px;
}

.top-search button,
.mobile-search button,
.big-search button,
.filter-grid button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    cursor: pointer;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    cursor: pointer;
}

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

.mobile-panel {
    display: none;
    padding: 12px 22px 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    background: var(--slate-800);
}

.mobile-panel.open {
    display: grid;
    gap: 8px;
}

.hero-section {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(34, 211, 238, 0.34), transparent 34%), linear-gradient(135deg, #020617 0%, #0f172a 46%, #111827 100%);
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(249, 115, 22, 0.16), transparent 35%),
        radial-gradient(circle at 78% 28%, rgba(37, 99, 235, 0.28), transparent 33%);
    pointer-events: none;
}

.hero-slider {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    min-height: 680px;
    padding: 74px 22px 92px;
}

.hero-slide {
    position: absolute;
    inset: 74px 22px 92px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.68fr);
    gap: 48px;
    align-items: center;
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    transition: opacity 0.6s ease, transform 0.6s ease;
    pointer-events: none;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #67e8f9;
    background: rgba(8, 145, 178, 0.14);
    border: 1px solid rgba(103, 232, 249, 0.22);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.hero-copy h1 {
    max-width: 760px;
    margin: 0 0 16px;
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 16px;
    font-size: clamp(24px, 3vw, 38px);
    color: #a5f3fc;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 18px;
}

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

.hero-tags span,
.detail-tags span,
.tag-row span {
    border-radius: 999px;
    padding: 5px 10px;
    color: #e0f2fe;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.24);
    font-size: 12px;
    font-weight: 700;
}

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

.primary-btn,
.ghost-btn,
.rank-action,
.section-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 12px 18px;
    font-weight: 900;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.primary-btn,
.rank-action {
    color: #fff;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
    box-shadow: 0 18px 34px rgba(239, 68, 68, 0.24);
}

.ghost-btn {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.ghost-btn.dark {
    color: var(--slate-900);
    background: #fff;
    border: 1px solid #e2e8f0;
}

.primary-btn:hover,
.ghost-btn:hover,
.rank-action:hover,
.section-link:hover {
    transform: translateY(-2px);
}

.hero-poster {
    position: relative;
    min-height: 460px;
    border-radius: 34px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(34, 211, 238, 0.2), rgba(37, 99, 235, 0.2)), rgba(15, 23, 42, 0.8);
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.34);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-poster img {
    height: 100%;
    min-height: 460px;
    object-fit: cover;
    opacity: 0.82;
}

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 52%);
}

.hero-poster-info {
    position: absolute;
    left: 22px;
    right: 22px;
    bottom: 22px;
    z-index: 2;
    display: grid;
    gap: 6px;
}

.hero-poster-info strong {
    font-size: 24px;
}

.hero-poster-info em {
    color: #cbd5e1;
    font-style: normal;
}

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

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

.hero-dot.active {
    background: linear-gradient(90deg, var(--cyan-400), var(--blue-600));
}

.section-wrap {
    max-width: 1240px;
    margin: 0 auto;
    padding: 64px 22px;
}

.intro-strip {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
    gap: 28px;
    align-items: center;
}

.intro-strip h2,
.section-head h2,
.inner-hero h1,
.story-card h2,
.side-card h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.intro-strip p,
.inner-hero p {
    margin: 12px 0 0;
    color: var(--slate-500);
    font-size: 18px;
}

.big-search {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-card);
}

.big-search input {
    flex: 1;
    min-width: 0;
    border: 0;
}

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

.section-head.invert h2 {
    color: #fff;
}

.section-link {
    color: #fff;
    background: linear-gradient(90deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.18);
}

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

.category-tile,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 178px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, #fff, #eff6ff);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

.tile-glow {
    position: absolute;
    width: 120px;
    height: 120px;
    right: -30px;
    top: -30px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.32), transparent 68%);
}

.tile-name,
.category-overview-name {
    position: relative;
    display: block;
    margin-bottom: 10px;
    font-size: 21px;
    font-weight: 900;
    color: var(--slate-900);
}

.tile-desc,
.category-overview-desc,
.tile-sample {
    position: relative;
    display: block;
    color: var(--slate-500);
    font-size: 14px;
}

.tile-sample {
    margin-top: 16px;
    color: var(--cyan-500);
    font-weight: 800;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.14);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.18);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.poster-frame img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.28s ease;
}

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

.year-badge,
.rank-mark {
    position: absolute;
    z-index: 3;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(10px);
}

.rank-mark {
    top: 12px;
    right: 12px;
    left: auto;
    background: linear-gradient(90deg, var(--orange-500), var(--red-500));
}

.poster-play {
    position: absolute;
    z-index: 3;
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.3);
}

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

.movie-title {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: var(--slate-900);
    font-weight: 900;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.movie-meta a {
    color: var(--cyan-500);
    font-weight: 800;
}

.card-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 13px;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-card .tag-row span {
    color: var(--slate-700);
    background: #f1f5f9;
    border-color: #e2e8f0;
}

.rank-section {
    background: linear-gradient(135deg, var(--slate-950), var(--slate-900));
}

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

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

.rank-row {
    display: grid;
    grid-template-columns: 54px 74px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.12);
}

.rank-section .rank-row {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.16);
}

.rank-number {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: #fff;
    font-weight: 900;
    background: linear-gradient(135deg, var(--orange-500), var(--red-500));
}

.rank-cover {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 12px;
    background: linear-gradient(145deg, #1e293b, #0f172a);
}

.rank-cover img {
    height: 100%;
    object-fit: cover;
}

.rank-title {
    display: block;
    color: var(--slate-900);
    font-size: 18px;
    font-weight: 900;
}

.rank-section .rank-title,
.rank-section .rank-info p {
    color: #fff;
}

.rank-info p {
    margin: 4px 0 8px;
    color: var(--slate-500);
}

.rank-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--slate-500);
    font-size: 13px;
}

.rank-section .rank-meta {
    color: #cbd5e1;
}

.rank-meta a {
    color: var(--cyan-500);
    font-weight: 800;
}

.inner-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 22px 68px;
    color: #fff;
    background: radial-gradient(circle at 20% 0%, rgba(34, 211, 238, 0.28), transparent 34%), linear-gradient(135deg, #020617, #0f172a 55%, #111827);
}

.inner-hero h1,
.inner-hero p {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #fff;
    text-align: center;
}

.inner-hero .section-kicker {
    margin-left: auto;
    margin-right: auto;
}

.filter-panel {
    max-width: 1240px;
    margin: -34px auto 0;
    padding: 0 22px;
    position: relative;
    z-index: 5;
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 170px 170px auto;
    gap: 14px;
    align-items: end;
    padding: 18px;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-soft);
}

.filter-grid label {
    display: grid;
    gap: 6px;
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 800;
}

.filter-grid input,
.filter-grid select {
    width: 100%;
    border-radius: 14px;
}

.empty-state {
    margin: 18px 0 0;
    padding: 18px;
    border-radius: 16px;
    color: var(--slate-500);
    text-align: center;
    background: #fff;
    box-shadow: var(--shadow-card);
}

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

.category-overview-card {
    min-height: 220px;
    display: grid;
    gap: 16px;
}

.category-overview-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-overview-samples span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--slate-700);
    background: #f1f5f9;
    font-size: 13px;
}

.category-overview-link {
    color: var(--cyan-500);
    font-weight: 900;
}

.detail-hero {
    padding-bottom: 76px;
}

.detail-hero-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 16%, rgba(249, 115, 22, 0.22), transparent 32%);
    pointer-events: none;
}

.breadcrumb,
.detail-layout {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #cbd5e1;
    font-size: 14px;
}

.breadcrumb a {
    color: #67e8f9;
}

.detail-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 38px;
    align-items: end;
    margin-top: 32px;
}

.detail-poster {
    position: relative;
    overflow: hidden;
    min-height: 410px;
    border-radius: var(--radius-xl);
    background: linear-gradient(145deg, #1e293b, #020617);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
}

.detail-poster img {
    height: 100%;
    min-height: 410px;
    object-fit: cover;
}

.detail-poster span {
    position: absolute;
    left: 16px;
    top: 16px;
    padding: 6px 12px;
    border-radius: 999px;
    color: #fff;
    font-weight: 900;
    background: rgba(15, 23, 42, 0.72);
}

.detail-copy h1 {
    margin: 0 0 16px;
    max-width: 900px;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 880px;
    color: #cbd5e1;
    font-size: 18px;
}

.player-section {
    padding-top: 42px;
    padding-bottom: 20px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #020617;
    box-shadow: 0 30px 90px rgba(2, 6, 23, 0.35);
}

.movie-video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
}

.play-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    color: #fff;
    background: radial-gradient(circle at center, rgba(2, 6, 23, 0.24), rgba(2, 6, 23, 0.72));
    cursor: pointer;
}

.play-overlay span {
    width: 86px;
    height: 86px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    font-size: 30px;
    background: linear-gradient(135deg, var(--cyan-500), var(--blue-600));
    box-shadow: 0 22px 58px rgba(37, 99, 235, 0.42);
}

.player-shell.is-playing .play-overlay {
    opacity: 0;
    pointer-events: none;
}

.detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 24px;
    align-items: start;
}

.story-card,
.side-card,
.prose-card {
    padding: 28px;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(148, 163, 184, 0.14);
}

.story-card h2,
.side-card h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 26px;
}

.story-card p,
.prose-card p {
    color: var(--slate-700);
    font-size: 17px;
}

.meta-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 26px 0 0;
}

.meta-list div {
    padding: 14px;
    border-radius: 16px;
    background: #f8fafc;
}

.meta-list dt {
    color: var(--slate-500);
    font-size: 13px;
    font-weight: 900;
}

.meta-list dd {
    margin: 4px 0 0;
    color: var(--slate-900);
    font-weight: 900;
}

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

.side-links a {
    padding: 12px 14px;
    border-radius: 14px;
    color: var(--slate-700);
    background: #f8fafc;
    font-weight: 800;
}

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

.prose-card {
    max-width: 900px;
}

.site-footer {
    color: #cbd5e1;
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
}

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

.footer-grid h3 {
    margin: 0 0 12px;
    color: #fff;
}

.footer-grid p {
    color: #94a3b8;
}

.footer-grid a {
    display: block;
    margin: 8px 0;
    color: #94a3b8;
    transition: color 0.2s ease;
}

.footer-grid a:hover {
    color: #67e8f9;
}

.footer-brand {
    color: #fff;
}

.footer-bottom {
    max-width: 1240px;
    margin: 0 auto;
    padding: 20px 22px 30px;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    color: #94a3b8;
}

@media (max-width: 1120px) {
    .desktop-nav,
    .top-search {
        display: none;
    }

    .menu-toggle {
        display: block;
        margin-left: auto;
    }

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

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

    .compact-rank-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .hero-section,
    .hero-slider {
        min-height: 820px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hero-poster {
        min-height: 320px;
    }

    .hero-poster img {
        min-height: 320px;
    }

    .intro-strip,
    .detail-layout,
    .detail-content-grid,
    .footer-grid,
    .category-overview-grid {
        grid-template-columns: 1fr;
    }

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

    .rank-row {
        grid-template-columns: 42px 62px minmax(0, 1fr);
    }

    .rank-action {
        grid-column: 1 / -1;
    }

    .detail-poster {
        max-width: 280px;
    }

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

@media (max-width: 620px) {
    .nav-shell {
        padding: 0 16px;
    }

    .brand-text {
        max-width: 180px;
        font-size: 16px;
    }

    .section-wrap {
        padding: 44px 16px;
    }

    .hero-slider {
        padding: 46px 16px 82px;
    }

    .hero-slide {
        inset: 46px 16px 82px;
    }

    .hero-copy p,
    .intro-strip p,
    .inner-hero p,
    .detail-one-line {
        font-size: 16px;
    }

    .big-search {
        display: grid;
        border-radius: 24px;
    }

    .movie-grid,
    .wide-grid,
    .category-grid,
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

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

    .rank-info p,
    .rank-row .tag-row {
        display: none;
    }

    .meta-list {
        grid-template-columns: 1fr;
    }
}
