/*
 * Static movie site stylesheet.
 * The visual language follows the uploaded React/Tailwind bundle:
 * dark slate background, blue glow, glass panels, rounded poster cards,
 * fixed translucent navigation, large hero carousel and responsive grids.
 */

:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.72);
    --line: rgba(96, 165, 250, 0.22);
    --line-strong: rgba(96, 165, 250, 0.48);
    --text: #f8fafc;
    --muted: #94a3b8;
    --blue: #3b82f6;
    --blue-soft: #60a5fa;
    --yellow: #facc15;
    --purple: #a855f7;
    --shadow: 0 24px 70px rgba(15, 23, 42, 0.45);
    --radius: 22px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at 15% 0%, rgba(59, 130, 246, 0.28), transparent 34rem),
        radial-gradient(circle at 85% 18%, rgba(168, 85, 247, 0.18), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f2452 46%, #020617 100%);
}

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

img {
    display: block;
    max-width: 100%;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(37, 99, 235, 0.28));
}

button,
input,
select {
    font: inherit;
}

main {
    min-height: 70vh;
}

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    transition: background 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
    background: rgba(2, 6, 23, 0.94);
    border-color: rgba(148, 163, 184, 0.16);
    box-shadow: 0 20px 45px rgba(2, 6, 23, 0.32);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(100% - 32px, var(--max));
    min-height: 76px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    box-shadow: 0 12px 28px rgba(59, 130, 246, 0.35);
}

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

.brand-text strong {
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-text small {
    margin-top: 4px;
    color: rgba(191, 219, 254, 0.86);
    font-size: 12px;
}

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

.desktop-nav a,
.mobile-nav a {
    color: rgba(255, 255, 255, 0.88);
    border-radius: 12px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.desktop-nav a {
    padding: 10px 12px;
    font-size: 14px;
}

.desktop-nav a:hover,
.desktop-nav a.active,
.mobile-nav a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    padding: 9px;
    border: 0;
    border-radius: 12px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 2px;
    margin: 5px 0;
    border-radius: 99px;
    background: #ffffff;
}

.mobile-nav {
    display: none;
    width: min(100% - 32px, var(--max));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    box-shadow: var(--shadow);
}

.mobile-nav a {
    display: block;
    padding: 12px 14px;
}

.mobile-nav.is-open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

.hero {
    position: relative;
    min-height: 700px;
    overflow: hidden;
    background: #020617;
}

.hero-slides {
    position: absolute;
    inset: 0;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
    filter: saturate(1.08);
}

.hero-slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.92) 0%, rgba(15, 23, 42, 0.70) 42%, rgba(2, 6, 23, 0.22) 100%),
        linear-gradient(0deg, #020617 0%, rgba(2, 6, 23, 0.42) 30%, rgba(2, 6, 23, 0.25) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, var(--max));
    min-height: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.96fr) minmax(280px, 0.48fr);
    align-items: center;
    gap: 46px;
    padding-top: 90px;
}

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

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--yellow);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero h1 {
    margin: 0 0 22px;
    font-size: clamp(38px, 7vw, 76px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.hero h1 span,
.gradient-text {
    color: transparent;
    background: linear-gradient(135deg, #93c5fd, #60a5fa 45%, #c084fc);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero-desc {
    max-width: 700px;
    margin: 0 0 28px;
    color: rgba(226, 232, 240, 0.86);
    font-size: 18px;
    line-height: 1.85;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 28px;
}

.hero-meta span,
.tag-row span,
.meta-pill,
.info-pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(96, 165, 250, 0.26);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.14);
}

.hero-meta span {
    padding: 8px 12px;
}

.hero-actions,
.section-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--blue), #2563eb);
    box-shadow: 0 16px 38px rgba(59, 130, 246, 0.35);
}

.btn-ghost {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px);
}

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

.hero-panel {
    align-self: end;
    margin-bottom: 72px;
    padding: 22px;
    border: 1px solid rgba(96, 165, 250, 0.24);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.62);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.hero-search {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.hero-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    color: #ffffff;
    border: 1px solid rgba(148, 163, 184, 0.20);
    border-radius: 14px;
    outline: 0;
    background: rgba(2, 6, 23, 0.62);
}

.hero-search input {
    min-height: 48px;
    padding: 0 14px;
}

.hero-search button {
    flex: 0 0 auto;
}

.hero-mini-list {
    display: grid;
    gap: 10px;
}

.hero-mini-list a {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hero-mini-list a:hover {
    border-color: rgba(96, 165, 250, 0.38);
    background: rgba(59, 130, 246, 0.16);
}

.hero-mini-list img {
    width: 54px;
    height: 72px;
    object-fit: cover;
    border-radius: 12px;
}

.hero-mini-list strong,
.hero-mini-list small {
    display: block;
}

.hero-mini-list small {
    margin-top: 4px;
    color: var(--muted);
}

.hero-mini-list em {
    color: var(--yellow);
    font-style: normal;
    font-weight: 800;
}

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

.hero-dots button {
    width: 32px;
    height: 5px;
    padding: 0;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.32);
    cursor: pointer;
}

.hero-dots button.is-active {
    background: #ffffff;
}

.section,
.page-hero,
.detail-wrap {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
}

.section {
    padding: 64px 0;
}

.section.alt {
    width: 100%;
    padding: 64px max(16px, calc((100% - var(--max)) / 2));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.42), rgba(30, 64, 175, 0.14));
}

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

.section-head h2,
.page-hero h1,
.detail-title h1 {
    margin: 0;
    letter-spacing: -0.03em;
}

.section-head h2 {
    font-size: clamp(26px, 4vw, 42px);
}

.section-head p,
.page-hero p {
    max-width: 760px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    min-width: 0;
}

.movie-link,
.category-card,
.stat-card,
.info-card,
.related-card,
.detail-panel,
.filter-panel,
.rank-row a,
.compact-link {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 58, 138, 0.26));
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.20);
    backdrop-filter: blur(12px);
}

.movie-link {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-link:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 26px 60px rgba(37, 99, 235, 0.18);
}

.poster-wrap {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

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

.poster-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.78));
}

.poster-play {
    position: absolute;
    inset: 50% auto auto 50%;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(59, 130, 246, 0.88);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.88);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

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

.poster-badge,
.poster-year {
    position: absolute;
    padding: 6px 9px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 12px;
    background: rgba(59, 130, 246, 0.88);
    backdrop-filter: blur(10px);
}

.poster-badge {
    top: 12px;
    left: 12px;
}

.poster-year {
    right: 12px;
    bottom: 12px;
    background: rgba(2, 6, 23, 0.76);
}

.movie-body {
    display: block;
    padding: 16px;
}

.movie-body strong {
    display: -webkit-box;
    min-height: 48px;
    overflow: hidden;
    color: #ffffff;
    font-size: 17px;
    line-height: 1.4;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin-top: 8px;
    overflow: hidden;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.movie-meta em {
    color: #bfdbfe;
    font-size: 12px;
    font-style: normal;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
}

.tag-row span {
    padding: 4px 8px;
    font-size: 12px;
}

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

.category-card {
    position: relative;
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 24px;
    border-radius: var(--radius);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.category-card::before {
    content: "";
    position: absolute;
    inset: -20% -20% auto auto;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.22);
    filter: blur(8px);
}

.category-card:hover {
    transform: translateY(-4px);
    border-color: var(--line-strong);
}

.category-card strong {
    font-size: 24px;
}

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

.category-card span {
    color: #bfdbfe;
}

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

.stat-card {
    padding: 22px;
    border-radius: 20px;
}

.stat-card strong {
    display: block;
    font-size: 32px;
}

.stat-card span {
    color: var(--muted);
}

.page-hero {
    padding: 140px 0 42px;
}

.page-hero h1 {
    max-width: 900px;
    font-size: clamp(36px, 6vw, 64px);
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: #bfdbfe;
}

.breadcrumb a:hover {
    color: #ffffff;
}

.filter-panel {
    margin-bottom: 26px;
    padding: 18px;
    border-radius: 22px;
}

.filter-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}

.filter-title small {
    color: var(--muted);
}

.filter-controls {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(150px, 0.5fr));
    gap: 12px;
}

.filter-controls label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    min-height: 46px;
    padding: 0 12px;
}

.filter-panel option {
    color: #111827;
}

.empty-state {
    display: none;
    padding: 30px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

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

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

.rank-row a,
.compact-link {
    display: grid;
    align-items: center;
    border-radius: 18px;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.rank-row a {
    grid-template-columns: 64px 74px 1fr 72px;
    gap: 16px;
    padding: 12px 16px;
}

.rank-row a:hover,
.compact-link:hover {
    transform: translateX(4px);
    border-color: var(--line-strong);
    background: rgba(59, 130, 246, 0.16);
}

.rank-number {
    color: rgba(255, 255, 255, 0.38);
    font-size: 28px;
    font-weight: 900;
}

.rank-row.is-top .rank-number {
    color: var(--yellow);
}

.rank-thumb img {
    width: 74px;
    height: 96px;
    object-fit: cover;
    border-radius: 12px;
}

.rank-content strong,
.rank-content small,
.rank-content em {
    display: block;
}

.rank-content small {
    margin: 5px 0;
    color: #bfdbfe;
}

.rank-content em {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted);
    font-style: normal;
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.rank-score {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
    text-align: right;
}

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

.compact-link {
    grid-template-columns: 54px 56px 1fr auto;
    gap: 12px;
    padding: 10px;
}

.compact-rank {
    color: var(--yellow);
    font-weight: 900;
}

.compact-poster img {
    width: 56px;
    height: 76px;
    object-fit: cover;
    border-radius: 10px;
}

.compact-info strong,
.compact-info small {
    display: block;
}

.compact-info small {
    margin-top: 5px;
    color: var(--muted);
}

.compact-score {
    color: var(--yellow);
    font-weight: 900;
}

.detail-wrap {
    padding: 118px 0 70px;
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.player-card,
.detail-panel,
.sidebar-panel {
    border: 1px solid var(--line);
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.78), rgba(30, 58, 138, 0.22));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.video-player-box {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #000000;
}

.video-player-box video,
.video-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-player-box video {
    display: block;
    background: #000000;
}

.video-poster {
    position: absolute;
    inset: 0;
    opacity: 0.58;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.16), rgba(2, 6, 23, 0.42));
}

.play-button {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border: 0;
    border-radius: 50%;
    color: #ffffff;
    font-size: 32px;
    background: linear-gradient(135deg, var(--blue), #7c3aed);
    box-shadow: 0 18px 48px rgba(59, 130, 246, 0.36);
    cursor: pointer;
}

.player-overlay strong {
    display: block;
    margin-bottom: 6px;
    font-size: 24px;
}

.player-overlay span {
    color: var(--muted);
}

.video-player-box.is-playing .player-overlay,
.video-player-box.is-playing .video-poster {
    display: none;
}

.player-message {
    padding: 14px 18px;
    color: #bfdbfe;
    border-top: 1px solid rgba(148, 163, 184, 0.12);
    background: rgba(2, 6, 23, 0.38);
}

.detail-panel {
    margin-top: 22px;
    padding: 26px;
}

.detail-title {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
}

.detail-title h1 {
    font-size: clamp(28px, 4vw, 44px);
}

.share-button {
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #bfdbfe;
    background: rgba(255, 255, 255, 0.08);
    padding: 10px 12px;
    cursor: pointer;
}

.info-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 18px 0;
}

.info-pill {
    padding: 7px 11px;
}

.detail-section {
    margin-top: 24px;
}

.detail-section h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.detail-section p {
    margin: 0;
    color: rgba(226, 232, 240, 0.86);
    line-height: 1.9;
}

.sidebar-panel {
    padding: 18px;
}

.sidebar-panel + .sidebar-panel {
    margin-top: 18px;
}

.sidebar-panel h2 {
    margin: 0 0 14px;
}

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

.related-card {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
}

.related-card img {
    width: 64px;
    height: 86px;
    object-fit: cover;
    border-radius: 12px;
}

.related-card strong,
.related-card small {
    display: block;
}

.related-card small {
    margin-top: 5px;
    color: var(--muted);
}

.site-footer {
    border-top: 1px solid rgba(96, 165, 250, 0.18);
    background: rgba(2, 6, 23, 0.88);
}

.footer-grid {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.35fr 0.8fr 0.8fr 1fr;
    gap: 34px;
    padding: 48px 0 34px;
}

.footer-grid h2 {
    margin: 0 0 16px;
    font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: var(--muted);
    line-height: 1.8;
}

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

.footer-grid a:hover {
    color: var(--blue-soft);
}

.back-top {
    margin-top: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
    cursor: pointer;
}

.footer-bottom {
    width: min(100% - 32px, var(--max));
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(148, 163, 184, 0.10);
    font-size: 14px;
}

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

@media (max-width: 1180px) {
    .desktop-nav a:nth-last-child(-n+4) {
        display: none;
    }

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

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

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

    .menu-button {
        display: block;
    }

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

    .hero-content {
        grid-template-columns: 1fr;
        align-content: center;
        gap: 24px;
    }

    .hero-panel {
        align-self: auto;
        margin-bottom: 58px;
    }

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

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

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

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

@media (max-width: 680px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 38px;
        height: 38px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text small {
        font-size: 11px;
    }

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

    .hero h1 {
        font-size: 39px;
    }

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

    .hero-panel {
        padding: 16px;
    }

    .hero-search {
        flex-direction: column;
    }

    .section {
        padding: 44px 0;
    }

    .section-head {
        display: block;
    }

    .section-actions {
        margin-top: 16px;
    }

    .stats-grid,
    .category-grid,
    .footer-grid,
    .filter-controls,
    .compact-grid {
        grid-template-columns: 1fr;
    }

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

    .movie-body {
        padding: 13px;
    }

    .movie-body strong {
        font-size: 15px;
    }

    .rank-row a {
        grid-template-columns: 42px 58px 1fr;
        gap: 10px;
    }

    .rank-score {
        grid-column: 3;
        text-align: left;
        font-size: 16px;
    }

    .rank-thumb img {
        width: 58px;
        height: 78px;
    }

    .footer-bottom {
        display: grid;
    }
}

@media (max-width: 420px) {
    .movie-grid,
    .movie-grid.large {
        grid-template-columns: 1fr;
    }

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