:root {
    color-scheme: dark;
    --bg-deep: #020617;
    --bg-panel: rgba(15, 23, 42, 0.78);
    --bg-panel-solid: #0f172a;
    --text-main: #e2e8f0;
    --text-soft: #94a3b8;
    --text-muted: #64748b;
    --line: rgba(56, 189, 248, 0.18);
    --cyan: #22d3ee;
    --cyan-soft: rgba(34, 211, 238, 0.16);
    --blue: #3b82f6;
    --violet: #8b5cf6;
    --radius-xl: 28px;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-cyan: 0 24px 70px rgba(8, 145, 178, 0.22);
    --shadow-card: 0 16px 50px rgba(2, 6, 23, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 12% 12%, rgba(34, 211, 238, 0.15), transparent 30%),
        radial-gradient(circle at 85% 10%, rgba(59, 130, 246, 0.14), transparent 34%),
        linear-gradient(135deg, #020617 0%, #0f172a 42%, #08111f 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 86%);
}

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

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.shell {
    width: min(1240px, calc(100% - 32px));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(56, 189, 248, 0.16);
    background: rgba(2, 6, 23, 0.74);
    backdrop-filter: blur(18px);
}

.nav-shell {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 76px;
}

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

.brand-text {
    white-space: nowrap;
    font-size: 1.28rem;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 14px;
    color: #06111f;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), #60a5fa 60%, var(--violet));
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.32);
}

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

.nav-link,
.mobile-nav-link {
    color: var(--text-soft);
    font-weight: 650;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link.active,
.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--cyan);
}

.site-search {
    position: relative;
    display: flex;
    align-items: center;
    width: min(320px, 34vw);
    padding: 4px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
}

.site-search-input {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    border: 0;
    outline: 0;
    color: var(--text-main);
    background: transparent;
}

.site-search-input::placeholder,
.filter-search::placeholder {
    color: var(--text-muted);
}

.site-search-button {
    flex: 0 0 auto;
    padding: 9px 16px;
    border: 0;
    border-radius: 999px;
    color: #04111d;
    font-weight: 800;
    background: var(--cyan);
}

.search-results {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    display: none;
    width: min(420px, 88vw);
    max-height: 460px;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(56, 189, 248, 0.26);
    border-radius: 20px;
    background: rgba(2, 6, 23, 0.96);
    box-shadow: var(--shadow-cyan);
}

.search-results.is-open {
    display: block;
}

.search-results a {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    color: var(--text-main);
}

.search-results a:hover {
    background: rgba(34, 211, 238, 0.12);
}

.search-results img {
    width: 48px;
    height: 66px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
}

.search-results b,
.search-results em {
    display: block;
}

.search-results em {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-style: normal;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.72);
    align-items: center;
    justify-content: center;
}

.menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text-main);
}

.mobile-nav {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(56, 189, 248, 0.14);
}

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

.mobile-nav-link {
    padding: 12px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.82);
}

.hero-slider {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-bottom: 1px solid rgba(56, 189, 248, 0.12);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    background-position: center;
    background-size: cover;
    transition: opacity 0.65s ease, visibility 0.65s ease;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 42%, rgba(2, 6, 23, 0.28) 100%),
        linear-gradient(0deg, rgba(2, 6, 23, 0.92) 0%, transparent 45%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) 320px;
    align-items: center;
    gap: 52px;
    padding-block: 88px 74px;
}

.hero-copy {
    max-width: 780px;
}

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

.hero-tags span,
.tag-row span,
.card-year,
.rank-badge,
.section-kicker {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border: 1px solid rgba(34, 211, 238, 0.24);
    border-radius: 999px;
    color: var(--cyan);
    background: rgba(8, 145, 178, 0.12);
}

.hero-tags span,
.tag-row span {
    padding: 6px 10px;
    font-size: 0.82rem;
}

.hero-copy h1 {
    margin: 22px 0 18px;
    font-size: clamp(2.7rem, 8vw, 5.8rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-copy p {
    max-width: 690px;
    color: var(--text-soft);
    font-size: clamp(1.05rem, 2.1vw, 1.35rem);
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #03111f;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.28);
}

.btn-ghost {
    border: 1px solid rgba(148, 163, 184, 0.26);
    color: var(--text-main);
    background: rgba(15, 23, 42, 0.64);
}

.btn-ghost:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 12px 34px rgba(34, 211, 238, 0.16);
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 30px;
    background: rgba(15, 23, 42, 0.8);
    box-shadow: var(--shadow-cyan);
    transform: rotate(2deg);
}

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

.hero-poster span {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    border-radius: 50%;
    color: #06111f;
    background: rgba(34, 211, 238, 0.92);
    transform: translate(-50%, -50%);
    box-shadow: 0 0 45px rgba(34, 211, 238, 0.4);
}

.hero-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 2rem;
    background: rgba(2, 6, 23, 0.62);
    transform: translateY(-50%);
}

.hero-arrow:hover {
    color: #03111f;
    background: var(--cyan);
}

.hero-arrow-prev {
    left: 22px;
}

.hero-arrow-next {
    right: 22px;
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.36);
    transition: width 0.25s ease, background 0.25s ease;
}

.hero-dot.active {
    width: 34px;
    background: var(--cyan);
}

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: -42px;
    position: relative;
    z-index: 8;
}

.stats-strip div {
    padding: 24px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.84);
    box-shadow: var(--shadow-card);
    backdrop-filter: blur(14px);
}

.stats-strip strong {
    display: block;
    color: var(--cyan);
    font-size: 2rem;
    line-height: 1;
}

.stats-strip span {
    display: block;
    margin-top: 8px;
    color: var(--text-soft);
}

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

.content-section {
    margin-top: 72px;
}

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

.section-kicker {
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2,
.page-hero h1,
.category-overview-head h2,
.rank-panel h2,
.story-card h2 {
    margin: 10px 0 8px;
    font-size: clamp(1.7rem, 3.8vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.section-heading p,
.page-hero p,
.category-overview-head p,
.story-card p {
    color: var(--text-soft);
    line-height: 1.8;
}

.section-more {
    color: var(--cyan);
    font-weight: 750;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: var(--shadow-cyan);
    transform: translateY(-5px);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0b1220;
}

.poster-link img {
    width: 100%;
    aspect-ratio: 2 / 3;
    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(0deg, rgba(2, 6, 23, 0.72), transparent 48%);
}

.card-year,
.rank-badge {
    position: absolute;
    top: 10px;
    padding: 4px 9px;
    font-size: 0.76rem;
    font-weight: 850;
    backdrop-filter: blur(8px);
}

.card-year {
    right: 10px;
}

.rank-badge {
    left: 10px;
    color: #06111f;
    background: linear-gradient(135deg, #facc15, #fb923c);
    border-color: rgba(250, 204, 21, 0.5);
}

.play-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 50%;
    color: #06111f;
    background: rgba(34, 211, 238, 0.9);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.movie-card:hover .play-ring {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

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

.movie-card h3 {
    margin: 0;
    min-height: 2.8em;
    font-size: 1rem;
    line-height: 1.4;
}

.movie-card h3 a:hover {
    color: var(--cyan);
}

.movie-meta,
.movie-one-line {
    color: var(--text-soft);
    font-size: 0.86rem;
    line-height: 1.6;
}

.movie-meta {
    margin: 8px 0 6px;
}

.movie-one-line {
    display: -webkit-box;
    min-height: 2.8em;
    margin: 0 0 12px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.category-tile {
    position: relative;
    min-height: 230px;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.82);
    box-shadow: var(--shadow-card);
}

.category-tile img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.42;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.category-tile:hover img {
    opacity: 0.58;
    transform: scale(1.06);
}

.category-glow {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.92), rgba(2, 6, 23, 0.2));
}

.category-tile div {
    position: absolute;
    inset: auto 18px 18px;
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 1.35rem;
}

.category-tile p {
    min-height: 4.8em;
    margin: 0 0 12px;
    color: var(--text-soft);
    line-height: 1.6;
}

.category-tile strong {
    color: var(--cyan);
}

.small-hero {
    position: relative;
    overflow: hidden;
    padding: 54px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
    box-shadow: var(--shadow-card);
}

.small-hero h1 {
    margin-top: 14px;
}

.filter-panel {
    margin-top: 28px;
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(15, 23, 42, 0.72);
}

.filter-search-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.filter-search {
    flex: 1;
    min-width: 0;
    padding: 13px 16px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 16px;
    outline: 0;
    color: var(--text-main);
    background: rgba(2, 6, 23, 0.48);
}

.filter-groups {
    display: grid;
    gap: 12px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.filter-group > span {
    min-width: 42px;
    color: var(--text-soft);
    font-weight: 800;
}

.filter-chip {
    padding: 9px 13px;
    border: 1px solid rgba(56, 189, 248, 0.18);
    border-radius: 999px;
    color: var(--text-soft);
    background: rgba(2, 6, 23, 0.34);
}

.filter-chip:hover,
.filter-chip.active {
    color: #06111f;
    border-color: var(--cyan);
    background: var(--cyan);
}

.filter-empty {
    display: none;
    margin: 16px 0 0;
    color: var(--text-soft);
}

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

.category-overview-block {
    margin-top: 34px;
    padding: 28px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.64);
}

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

.category-overview-head span {
    color: var(--cyan);
    font-weight: 800;
}

.rank-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 96px;
    padding: 20px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.76);
}

.rank-panel h2 {
    font-size: 1.6rem;
}

.rank-row {
    display: grid;
    grid-template-columns: 42px 54px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
}

.rank-row:hover {
    background: rgba(34, 211, 238, 0.1);
}

.rank-row strong {
    color: var(--cyan);
}

.rank-row img {
    width: 54px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.rank-row b,
.rank-row em {
    display: block;
}

.rank-row em {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.82rem;
    font-style: normal;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 24px;
    color: var(--text-soft);
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.14), transparent 42%),
        rgba(15, 23, 42, 0.68);
}

.detail-poster-card {
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 28px;
    box-shadow: var(--shadow-cyan);
}

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

.detail-copy h1 {
    margin: 16px 0;
    font-size: clamp(2.3rem, 6vw, 5rem);
    line-height: 1;
    letter-spacing: -0.075em;
}

.detail-copy > p {
    max-width: 820px;
    color: var(--text-soft);
    font-size: 1.12rem;
    line-height: 1.8;
}

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

.detail-meta-grid span {
    padding: 12px 14px;
    border: 1px solid rgba(56, 189, 248, 0.14);
    border-radius: 14px;
    color: var(--text-soft);
    background: rgba(2, 6, 23, 0.34);
}

.detail-meta-grid a {
    color: var(--cyan);
}

.large-tags {
    gap: 10px;
}

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

.video-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: var(--radius-xl);
    background: #000;
    box-shadow: var(--shadow-cyan);
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--text-main);
    background:
        radial-gradient(circle at center, rgba(34, 211, 238, 0.12), transparent 34%),
        rgba(2, 6, 23, 0.42);
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.video-shell.is-playing .player-overlay,
.video-shell.is-loaded .player-overlay {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.big-play {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 50%;
    color: #06111f;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--cyan), #60a5fa);
    box-shadow: 0 0 55px rgba(34, 211, 238, 0.42);
}

.detail-content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 34px;
}

.story-card {
    padding: 28px;
    border: 1px solid rgba(56, 189, 248, 0.16);
    border-radius: var(--radius-xl);
    background: rgba(15, 23, 42, 0.64);
}

.story-card h2 {
    font-size: 1.55rem;
}

.story-card p {
    white-space: pre-line;
}

.site-footer {
    margin-top: 92px;
    border-top: 1px solid rgba(56, 189, 248, 0.16);
    background: rgba(2, 6, 23, 0.74);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 34px;
    padding-block: 46px;
}

.footer-brand {
    margin-bottom: 14px;
    color: var(--cyan);
    font-size: 1.2rem;
}

.site-footer p,
.site-footer li,
.footer-bottom {
    color: var(--text-soft);
    line-height: 1.7;
}

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

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

.site-footer a:hover {
    color: var(--cyan);
}

.footer-bottom {
    padding: 18px 16px 26px;
    text-align: center;
    border-top: 1px solid rgba(56, 189, 248, 0.1);
}

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

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

    .menu-toggle {
        display: inline-flex;
    }

    .site-search {
        margin-left: auto;
    }

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

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

@media (max-width: 900px) {
    .nav-shell {
        gap: 12px;
    }

    .site-search {
        width: min(100%, 360px);
    }

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

    .hero-content,
    .detail-hero,
    .detail-content-grid,
    .rank-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding-top: 58px;
    }

    .hero-poster,
    .detail-poster-card {
        width: min(300px, 78vw);
        margin-inline: auto;
    }

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

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

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

    .rank-panel {
        position: static;
    }
}

@media (max-width: 680px) {
    .shell {
        width: min(100% - 22px, 1240px);
    }

    .nav-shell {
        min-height: 66px;
    }

    .brand-text {
        font-size: 1rem;
    }

    .site-search {
        order: 5;
        width: 100%;
        margin: 0 0 12px;
        flex-basis: 100%;
    }

    .nav-shell {
        flex-wrap: wrap;
    }

    .hero-slider {
        min-height: 730px;
    }

    .hero-copy h1 {
        font-size: 2.65rem;
    }

    .hero-arrow {
        display: none;
    }

    .hero-actions,
    .filter-search-row,
    .category-overview-head,
    .section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .stats-strip,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-meta-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .small-hero,
    .detail-hero,
    .story-card,
    .category-overview-block {
        padding: 22px;
        border-radius: 22px;
    }

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

    .movie-card h3 {
        font-size: 0.92rem;
    }

    .movie-meta,
    .movie-one-line,
    .tag-row span {
        font-size: 0.78rem;
    }
}

@media (max-width: 430px) {
    .stats-strip,
    .movie-grid,
    .compact-grid,
    .category-grid,
    .detail-meta-grid {
        grid-template-columns: 1fr;
    }

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

    .mobile-nav {
        grid-template-columns: 1fr;
    }
}
