:root {
    color-scheme: light;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-400: #60a5fa;
    --blue-100: #dbeafe;
    --blue-50: #eff6ff;
    --white: #ffffff;
    --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.12);
    --shadow-card: 0 12px 28px rgba(15, 23, 42, 0.10);
    --radius-xl: 24px;
    --radius-lg: 18px;
    --radius-md: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--slate-800);
    background:
        radial-gradient(circle at top left, rgba(96, 165, 250, 0.18), transparent 32rem),
        linear-gradient(135deg, #f8fafc 0%, #eff6ff 52%, #f8fafc 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

body.menu-open {
    overflow: hidden;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    background: linear-gradient(90deg, rgba(248, 250, 252, 0.94), rgba(239, 246, 255, 0.94), rgba(248, 250, 252, 0.94));
    border-bottom: 1px solid rgba(203, 213, 225, 0.74);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1220px, calc(100% - 32px));
    height: 68px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-500), var(--slate-700));
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-copy strong {
    font-size: 1.22rem;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, var(--blue-600), var(--slate-700));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-copy em {
    margin-top: 3px;
    color: var(--slate-500);
    font-size: 0.76rem;
    font-style: normal;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 9px 13px;
    border-radius: 12px;
    color: var(--slate-600);
    font-size: 0.94rem;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--blue-600);
    background: rgba(219, 234, 254, 0.82);
}

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

.header-search input,
.mobile-search input,
.large-search input,
.filter-search input,
.filter-groups select {
    border: 1px solid rgba(203, 213, 225, 0.9);
    color: var(--slate-700);
    background: rgba(255, 255, 255, 0.88);
    outline: none;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.header-search input {
    width: 230px;
    padding: 10px 16px;
    border-radius: 999px;
}

.header-search button,
.mobile-search button,
.large-search button,
.filter-panel button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: var(--white);
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    box-shadow: 0 12px 22px rgba(37, 99, 235, 0.22);
}

.header-search input:focus,
.mobile-search input:focus,
.large-search input:focus,
.filter-search input:focus,
.filter-groups select:focus {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.18);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(219, 234, 254, 0.9);
}

.menu-button span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 2px;
    background: var(--slate-700);
}

.mobile-panel {
    display: none;
    border-top: 1px solid rgba(203, 213, 225, 0.7);
    background: rgba(255, 255, 255, 0.96);
}

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

.mobile-nav {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.mobile-search {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 8px 0 16px;
}

.mobile-search input {
    flex: 1;
    padding: 11px 14px;
    border-radius: 999px;
}

main {
    min-height: 60vh;
}

.hero {
    width: min(1220px, calc(100% - 32px));
    margin: 26px auto 0;
}

.hero-stage {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 32px;
    background: var(--slate-950);
    box-shadow: var(--shadow-soft);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.8s ease, transform 0.8s ease;
    pointer-events: none;
}

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

.hero-bg,
.detail-backdrop {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: blur(4px) saturate(1.08);
    transform: scale(1.06);
    opacity: 0.42;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 78% 28%, rgba(59, 130, 246, 0.35), transparent 26rem),
        linear-gradient(100deg, rgba(2, 6, 23, 0.95), rgba(15, 23, 42, 0.68), rgba(30, 64, 175, 0.42));
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    padding: clamp(32px, 6vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
    align-items: center;
    gap: 42px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--blue-500);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1,
.intro-card h1 {
    margin: 0;
    font-size: clamp(2.35rem, 6vw, 5.25rem);
    line-height: 0.98;
    letter-spacing: -0.075em;
}

.hero-copy h1 {
    max-width: 780px;
    color: var(--white);
}

.hero-summary {
    max-width: 680px;
    margin: 22px 0 0;
    color: rgba(226, 232, 240, 0.94);
    font-size: clamp(1.05rem, 1.8vw, 1.26rem);
    line-height: 1.85;
}

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

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

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 0.78rem;
    color: var(--blue-700);
    background: rgba(219, 234, 254, 0.72);
}

.hero-tags span {
    color: rgba(219, 234, 254, 0.98);
    background: rgba(37, 99, 235, 0.26);
    border-color: rgba(147, 197, 253, 0.35);
}

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

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

.primary-button {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
    box-shadow: 0 18px 32px rgba(37, 99, 235, 0.28);
}

.ghost-button {
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
}

.ghost-dark {
    color: var(--slate-700);
    border-color: rgba(148, 163, 184, 0.4);
    background: rgba(255, 255, 255, 0.7);
}

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

.hero-poster {
    position: relative;
    isolation: isolate;
    width: min(100%, 330px);
    justify-self: center;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(2, 6, 23, 0.45);
}

.hero-poster::before {
    content: "";
    position: absolute;
    inset: -24px;
    z-index: -1;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.7), rgba(255, 255, 255, 0.16));
    filter: blur(18px);
}

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

.hero-poster span {
    position: absolute;
    left: 18px;
    bottom: 18px;
    border-radius: 999px;
    padding: 9px 14px;
    color: var(--white);
    font-weight: 800;
    background: rgba(37, 99, 235, 0.88);
}

.hero-controls {
    position: absolute;
    left: clamp(32px, 6vw, 72px);
    bottom: 32px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dot.is-active {
    background: var(--blue-400);
}

.hero-quick {
    margin: -54px auto 0;
    position: relative;
    z-index: 8;
    width: min(1080px, calc(100% - 32px));
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 18px;
}

.hero-search-card,
.hero-category-card,
.intro-card,
.category-overview-card a,
.movie-card,
.rank-row,
.detail-article,
.player-box,
.filter-panel {
    border: 1px solid rgba(226, 232, 240, 0.82);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(16px);
}

.hero-search-card,
.hero-category-card {
    padding: 22px;
}

.hero-search-card h2,
.hero-category-card h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.18rem;
}

.hero-search-card form {
    display: flex;
    gap: 8px;
}

.hero-search-card input {
    width: 100%;
    min-width: 0;
    padding: 13px 15px;
    border: 1px solid rgba(203, 213, 225, 0.88);
    border-radius: 999px;
    outline: none;
}

.hero-search-card button {
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    color: var(--white);
    cursor: pointer;
    background: var(--blue-600);
}

.chip-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-chip {
    border-radius: 999px;
    padding: 9px 13px;
    color: var(--blue-700);
    font-weight: 700;
    background: var(--blue-50);
    transition: all 0.2s ease;
}

.category-chip:hover {
    color: var(--white);
    background: var(--blue-600);
}

.content-section {
    width: min(1220px, calc(100% - 32px));
    margin: 64px auto;
}

.intro-section {
    margin-top: 86px;
}

.intro-card {
    padding: clamp(26px, 4vw, 46px);
}

.intro-card h1 {
    color: var(--slate-900);
    font-size: clamp(2rem, 5vw, 4rem);
}

.intro-card p:last-child {
    max-width: 900px;
    color: var(--slate-600);
    font-size: 1.08rem;
    line-height: 1.85;
}

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

.section-heading h2 {
    margin: 0;
    color: var(--slate-900);
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    letter-spacing: -0.05em;
}

.section-heading p {
    margin: 8px 0 0;
    max-width: 760px;
    color: var(--slate-500);
    line-height: 1.7;
}

.section-more,
.text-button {
    color: var(--blue-700);
    background: rgba(219, 234, 254, 0.8);
}

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--slate-200);
}

.poster-link img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(2, 6, 23, 0.78));
}

.play-pill {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 7px 12px;
    color: var(--white);
    font-size: 0.8rem;
    font-weight: 800;
    background: rgba(37, 99, 235, 0.88);
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 20px rgba(239, 68, 68, 0.28);
}

.card-body {
    padding: 14px;
}

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

.card-body h2 {
    margin: 8px 0 7px;
    color: var(--slate-900);
    font-size: 1rem;
    line-height: 1.35;
}

.card-body h2 a:hover,
.rank-info h2 a:hover {
    color: var(--blue-600);
}

.card-body p {
    display: -webkit-box;
    min-height: 3.4em;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--slate-500);
    font-size: 0.88rem;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-tile,
.category-overview-card a {
    min-height: 150px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.82));
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover,
.category-overview-card a:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(37, 99, 235, 0.16);
}

.category-tile span,
.category-overview-card h2 {
    color: var(--slate-900);
    font-size: 1.16rem;
    font-weight: 900;
}

.category-tile strong,
.category-count {
    color: var(--blue-600);
    font-size: 2rem;
    line-height: 1;
}

.category-tile em,
.category-overview-card em {
    color: var(--slate-500);
    font-style: normal;
}

.category-overview-card p {
    color: var(--slate-600);
    line-height: 1.7;
}

.page-hero,
.detail-hero {
    position: relative;
    overflow: hidden;
    margin: 26px auto 0;
    width: min(1220px, calc(100% - 32px));
    border-radius: 32px;
    background:
        radial-gradient(circle at 82% 18%, rgba(96, 165, 250, 0.22), transparent 22rem),
        linear-gradient(135deg, #ffffff, #eff6ff 65%, #f8fafc);
    box-shadow: var(--shadow-soft);
}

.page-hero > div {
    padding: clamp(34px, 6vw, 70px);
}

.page-hero h1 {
    max-width: 850px;
    color: var(--slate-900);
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--slate-600);
    font-size: 1.08rem;
    line-height: 1.8;
}

.large-search {
    margin-top: 28px;
    max-width: 680px;
}

.large-search input {
    flex: 1;
    min-width: 0;
    padding: 15px 18px;
    border-radius: 999px;
}

.filter-panel {
    margin-bottom: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 14px;
}

.filter-search input {
    width: 100%;
    padding: 13px 15px;
    border-radius: 999px;
}

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

.filter-groups select {
    min-width: 0;
    padding: 12px 13px;
    border-radius: 14px;
}

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

.rank-row {
    padding: 14px;
    display: grid;
    grid-template-columns: 52px 92px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
}

.rank-number {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: var(--white);
    font-weight: 900;
    background: linear-gradient(135deg, var(--blue-600), var(--slate-700));
}

.rank-cover img {
    width: 92px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.rank-info h2 {
    margin: 0 0 8px;
    color: var(--slate-900);
    font-size: 1.1rem;
}

.rank-info p {
    margin: 0 0 10px;
    color: var(--slate-500);
    line-height: 1.65;
}

.detail-hero {
    color: var(--white);
    background: var(--slate-950);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 82% 24%, rgba(59, 130, 246, 0.34), transparent 25rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(30, 64, 175, 0.5));
}

.detail-inner {
    position: relative;
    z-index: 2;
    padding: clamp(24px, 5vw, 54px);
}

.breadcrumbs {
    margin-bottom: 26px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.9rem;
}

.breadcrumbs a:hover {
    color: var(--blue-100);
}

.detail-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
}

.detail-poster img {
    width: 260px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.45);
}

.detail-copy h1 {
    max-width: 860px;
    color: var(--white);
}

.detail-one-line {
    max-width: 860px;
    color: rgba(226, 232, 240, 0.9);
    font-size: 1.1rem;
    line-height: 1.86;
}

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

.detail-stats {
    color: rgba(203, 213, 225, 0.9);
}

.player-box {
    position: relative;
    overflow: hidden;
    background: #000;
}

.player-box video {
    width: 100%;
    aspect-ratio: 16 / 9;
    display: block;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: 0;
    color: var(--white);
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.34), rgba(2, 6, 23, 0.62));
}

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

.player-play-icon {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    padding-left: 5px;
    color: var(--blue-600);
    font-size: 2.2rem;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.3);
}

.player-cover strong {
    font-size: 1.2rem;
}

.detail-article {
    padding: clamp(24px, 4vw, 42px);
}

.detail-article h2 {
    margin: 0 0 14px;
    color: var(--slate-900);
    font-size: 1.55rem;
}

.detail-article h2:not(:first-child) {
    margin-top: 34px;
}

.detail-article p {
    margin: 0;
    color: var(--slate-600);
    font-size: 1.02rem;
    line-height: 1.95;
}

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

.info-list div {
    padding: 14px;
    border-radius: 16px;
    background: var(--slate-100);
}

.info-list dt {
    margin-bottom: 6px;
    color: var(--slate-500);
    font-size: 0.85rem;
}

.info-list dd {
    margin: 0;
    color: var(--slate-800);
    line-height: 1.6;
}

.site-footer {
    margin-top: 80px;
    color: var(--slate-400);
    background: var(--slate-950);
}

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 36px;
}

.brand-footer .brand-copy strong {
    color: var(--white);
    background: none;
    -webkit-background-clip: initial;
    background-clip: initial;
}

.footer-brand p {
    max-width: 460px;
    line-height: 1.8;
}

.footer-column h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 1rem;
}

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

.footer-column a:hover {
    color: var(--blue-400);
}

.is-hidden-by-filter {
    display: none !important;
}

.empty-state {
    padding: 34px;
    border-radius: var(--radius-xl);
    color: var(--slate-500);
    text-align: center;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-card);
}

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

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

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

    .menu-button {
        display: block;
    }

    .hero-stage,
    .hero-content {
        min-height: 760px;
    }

    .hero-content,
    .detail-layout,
    .hero-quick,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        width: min(100%, 270px);
    }

    .hero-controls {
        left: 32px;
        bottom: 24px;
    }

    .hero-quick {
        margin-top: 18px;
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-row .text-button {
        grid-column: 2 / -1;
        justify-self: start;
    }

    .rank-cover img {
        width: 74px;
    }

    .detail-poster img {
        width: 220px;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .hero,
    .content-section,
    .page-hero,
    .detail-hero,
    .footer-inner {
        width: min(100% - 24px, 1220px);
    }

    .hero-stage {
        border-radius: 24px;
    }

    .hero-content {
        padding: 28px;
    }

    .hero-copy h1,
    .page-hero h1,
    .detail-copy h1,
    .intro-card h1 {
        font-size: clamp(2rem, 13vw, 3.5rem);
    }

    .hero-search-card form,
    .large-search {
        flex-direction: column;
    }

    .movie-grid,
    .compact-grid,
    .category-grid,
    .category-overview-grid,
    .filter-groups,
    .info-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .filter-groups,
    .info-list {
        grid-template-columns: 1fr;
    }

    .card-body {
        padding: 12px;
    }

    .card-body h2 {
        font-size: 0.94rem;
    }

    .card-body p {
        font-size: 0.82rem;
    }
}

.archive-list {
    columns: 4 220px;
    margin: 0;
    padding-left: 20px;
}

.archive-list li {
    break-inside: avoid;
    margin: 0 0 8px;
    color: var(--slate-600);
}

.archive-list a:hover {
    color: var(--blue-600);
}
