:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.84);
    --panel-solid: #111827;
    --panel-light: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --line-strong: rgba(34, 211, 238, 0.35);
    --text: #e2e8f0;
    --muted: #94a3b8;
    --dim: #64748b;
    --cyan: #22d3ee;
    --cyan-dark: #0891b2;
    --blue: #3b82f6;
    --green: #22c55e;
    --orange: #f97316;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(34, 211, 238, 0.16), transparent 36rem),
        radial-gradient(circle at 80% 10%, rgba(59, 130, 246, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 48%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    min-height: 74px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    background: linear-gradient(90deg, #67e8f9, #3b82f6);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #02111d;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 12px 30px rgba(34, 211, 238, 0.25);
    font-size: 15px;
}

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

.nav-link,
.nav-dropdown > button {
    border: 0;
    color: var(--text);
    background: transparent;
    padding: 10px 13px;
    border-radius: 999px;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.nav-dropdown:hover > button {
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.08);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    min-width: 180px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-panel a {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
}

.dropdown-panel a:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.1);
}

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

.header-search input,
.mobile-search input,
.filter-search input,
.filter-selects select {
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: var(--text);
    background: rgba(15, 23, 42, 0.9);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.header-search input:focus,
.mobile-search input:focus,
.filter-search input:focus,
.filter-selects select:focus {
    border-color: var(--cyan);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.12);
}

.header-search button,
.mobile-search button,
.filter-selects button {
    border: 0;
    padding: 10px 16px;
    border-radius: 999px;
    color: #02111d;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    cursor: pointer;
    font-weight: 700;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.9);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

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

.mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 16px 24px 24px;
    background: rgba(2, 6, 23, 0.96);
}

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

.mobile-panel nav {
    display: grid;
    gap: 8px;
    margin-bottom: 16px;
}

.mobile-link {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.08);
}

.mobile-link.is-active {
    color: var(--cyan);
}

.mobile-search input {
    min-width: 0;
    flex: 1;
    padding: 11px 16px;
}

main {
    overflow: hidden;
}

.hero {
    position: relative;
    min-height: 650px;
    isolation: isolate;
    background: #020617;
}

.hero-track,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

.hero-slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.18) 52%, rgba(2, 6, 23, 0.78) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 24px 140px;
    width: 100%;
}

.hero-kicker,
.page-hero span,
.section-heading span,
.detail-kicker,
.category-overview-card span,
.hero-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 780px;
    margin: 16px 0 20px;
    font-size: clamp(44px, 7vw, 86px);
    line-height: 0.98;
    letter-spacing: -0.07em;
}

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

.hero-tags,
.detail-tags,
.mini-tags,
.inline-terms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.detail-tags span,
.inline-terms span {
    border: 1px solid rgba(34, 211, 238, 0.22);
    color: #cffafe;
    background: rgba(8, 145, 178, 0.14);
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
}

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

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

.primary-btn {
    color: #03131f;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 16px 40px rgba(34, 211, 238, 0.22);
}

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

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

.hero-card {
    position: absolute;
    right: max(24px, calc((100vw - 1280px) / 2 + 24px));
    bottom: 86px;
    z-index: 3;
    width: min(310px, 28vw);
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.58);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-card img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: 22px;
}

.hero-card strong {
    display: block;
    margin-top: 8px;
    font-size: 20px;
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 28px;
    z-index: 4;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 9px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
}

.hero-controls button {
    border: 0;
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
    cursor: pointer;
}

.hero-controls > button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 28px;
    line-height: 1;
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 50%;
}

.hero-dot.is-active {
    width: 28px;
    border-radius: 999px;
    background: var(--cyan);
}

.content-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 56px 24px 0;
}

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

.section-heading h2 {
    margin: 6px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading a {
    color: var(--cyan);
    font-weight: 800;
}

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

.category-card,
.category-overview-card,
.ranking-panel,
.detail-article,
.detail-side,
.player-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.72));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
}

.category-card {
    position: relative;
    min-height: 190px;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: end;
}

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

.category-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.94));
}

.category-card span,
.category-card p {
    position: relative;
    z-index: 2;
}

.category-card span {
    font-size: 24px;
    font-weight: 900;
}

.category-card p {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 14px;
}

.category-card:hover img {
    transform: scale(1.08);
    opacity: 0.46;
}

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

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.82);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(34, 211, 238, 0.36);
    box-shadow: 0 22px 55px rgba(8, 145, 178, 0.13);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: rgba(30, 41, 59, 0.8);
}

.poster-link img {
    width: 100%;
    height: 100%;
    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.84));
}

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #03131f;
    background: var(--cyan);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #04111d;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.35);
}

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

.movie-meta-line {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--dim);
    font-size: 12px;
}

.movie-card h3 {
    margin: 8px 0 8px;
    font-size: 17px;
    line-height: 1.35;
}

.movie-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mini-tags {
    margin-top: 12px;
}

.mini-tags span {
    color: #67e8f9;
    background: rgba(34, 211, 238, 0.08);
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 12px;
}

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

.ranking-panel {
    position: sticky;
    top: 96px;
    padding: 22px;
}

.compact-heading {
    margin-bottom: 16px;
}

.compact-heading h2 {
    font-size: 30px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 36px 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.28);
}

.rank-row:hover {
    border-color: rgba(34, 211, 238, 0.32);
    background: rgba(34, 211, 238, 0.07);
}

.rank-number {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--cyan);
    background: rgba(34, 211, 238, 0.1);
    font-weight: 900;
}

.rank-row img {
    width: 58px;
    height: 78px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-info {
    min-width: 0;
}

.rank-info strong,
.rank-info small {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rank-info small {
    color: var(--muted);
    font-size: 12px;
}

.rank-row em {
    color: var(--cyan);
    font-style: normal;
    font-weight: 800;
    font-size: 13px;
}

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

.page-hero {
    max-width: 1280px;
    margin: 0 auto;
    padding: 86px 24px 34px;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
}

.page-hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.06em;
}

.page-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.slim-hero,
.category-hero,
.ranking-hero {
    position: relative;
}

.slim-hero::before,
.category-hero::before,
.ranking-hero::before {
    content: "";
    position: absolute;
    right: 24px;
    bottom: 10px;
    width: min(420px, 44vw);
    height: 180px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.18), transparent 70%);
    pointer-events: none;
}

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

.category-overview-card {
    overflow: hidden;
    padding: 18px;
}

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

.category-thumbs img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 14px;
}

.category-overview-card h2 {
    margin: 8px 0 8px;
    font-size: 26px;
}

.category-overview-card p {
    margin: 0;
    color: var(--muted);
}

.filter-bar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.68);
}

.filter-search {
    flex: 1;
}

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

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

.filter-selects select,
.filter-selects button {
    min-height: 46px;
    padding: 0 14px;
    border-radius: 16px;
}

.filter-selects button {
    color: #03131f;
}

.empty-state {
    display: none;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.66);
}

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

.detail-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: end;
    isolation: isolate;
    background: #020617;
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -2;
}

.detail-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(8px) saturate(1.2);
    transform: scale(1.08);
    opacity: 0.55;
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.76), rgba(2, 6, 23, 0.4)),
        linear-gradient(0deg, #020617, rgba(2, 6, 23, 0.08) 50%, rgba(2, 6, 23, 0.86));
}

.detail-content {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 110px 24px 64px;
}

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

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

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

.detail-poster {
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    padding: 10px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
}

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

.detail-info h1 {
    margin: 12px 0 16px;
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1;
    letter-spacing: -0.06em;
}

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

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

.detail-meta span {
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(148, 163, 184, 0.1);
}

.detail-info .primary-btn {
    margin-top: 26px;
}

.player-shell {
    overflow: hidden;
}

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: var(--text);
    background:
        radial-gradient(circle, rgba(34, 211, 238, 0.18), rgba(2, 6, 23, 0.56) 42%, rgba(2, 6, 23, 0.82)),
        rgba(2, 6, 23, 0.35);
    cursor: pointer;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

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

.player-overlay span {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #03131f;
    background: linear-gradient(135deg, #22d3ee, #3b82f6);
    box-shadow: 0 20px 50px rgba(34, 211, 238, 0.24);
    font-size: 34px;
}

.player-overlay strong {
    font-size: 20px;
}

.player-meta {
    padding: 22px;
}

.player-meta h2 {
    margin: 0 0 8px;
}

.player-meta p {
    margin: 0;
    color: var(--muted);
}

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

.detail-article,
.detail-side {
    padding: 28px;
}

.detail-article h2,
.detail-side h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-article p {
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: 17px;
}

.detail-side dl {
    margin: 0;
}

.detail-side dt {
    margin-top: 18px;
    color: var(--dim);
    font-size: 13px;
}

.detail-side dd {
    margin: 4px 0 0;
    color: var(--text);
}

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

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

    .two-column-layout,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .ranking-panel {
        position: static;
    }

    .hero-card {
        display: none;
    }
}

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

    .header-inner {
        min-height: 66px;
        padding: 0 18px;
    }

    .brand {
        font-size: 22px;
    }

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

    .hero {
        min-height: 620px;
    }

    .hero-content {
        padding: 96px 18px 120px;
    }

    .hero h1 {
        font-size: clamp(40px, 13vw, 62px);
    }

    .hero p {
        font-size: 16px;
    }

    .content-section,
    .page-hero,
    .detail-content {
        padding-left: 18px;
        padding-right: 18px;
    }

    .page-hero {
        display: block;
        padding-top: 60px;
    }

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

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

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .filter-selects select,
    .filter-selects button {
        flex: 1 1 130px;
    }

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

    .detail-grid {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .detail-poster {
        width: min(240px, 70vw);
    }
}

@media (max-width: 520px) {
    .movie-grid,
    .compact-grid,
    .ranking-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

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

    .movie-card h3 {
        font-size: 15px;
    }

    .movie-card p,
    .mini-tags {
        display: none;
    }

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

    .rank-row em {
        display: none;
    }

    .rank-row img {
        width: 48px;
        height: 66px;
    }

    .detail-info h1 {
        font-size: 40px;
    }

    .detail-article,
    .detail-side,
    .player-meta {
        padding: 20px;
    }
}
