* {
    box-sizing: border-box;
}

:root {
    --bg-950: #020617;
    --bg-900: #0f172a;
    --bg-850: #111827;
    --bg-800: #1e293b;
    --bg-700: #334155;
    --text-100: #f8fafc;
    --text-200: #e2e8f0;
    --text-300: #cbd5e1;
    --text-400: #94a3b8;
    --text-500: #64748b;
    --cyan: #22d3ee;
    --cyan-strong: #06b6d4;
    --blue: #3b82f6;
    --line: rgba(148, 163, 184, 0.18);
    --panel: rgba(30, 41, 59, 0.62);
    --panel-strong: rgba(15, 23, 42, 0.82);
    --shadow: 0 24px 70px rgba(2, 6, 23, 0.36);
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    color: var(--text-200);
    background: linear-gradient(180deg, var(--bg-900), var(--bg-800) 42%, var(--bg-900));
}

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

button,
input {
    font: inherit;
}

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

.image-empty {
    opacity: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.96), rgba(30, 41, 59, 0.94), rgba(15, 23, 42, 0.96));
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.22);
}

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

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

.brand-icon {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: white;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 0 26px rgba(34, 211, 238, 0.42);
}

.brand-text {
    display: grid;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    background: linear-gradient(90deg, var(--cyan), #60a5fa);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text small {
    color: var(--text-400);
    font-size: 12px;
    margin-top: 2px;
}

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

.nav-link,
.mobile-link {
    color: var(--text-300);
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-link {
    padding: 10px 12px;
    white-space: nowrap;
    font-size: 14px;
}

.nav-link:hover,
.nav-link.active,
.mobile-link:hover,
.mobile-link.active {
    color: var(--cyan);
    background: rgba(51, 65, 85, 0.52);
}

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

.header-search input,
.mobile-search input,
.local-filter input {
    width: 250px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 12px;
    color: var(--text-200);
    background: rgba(51, 65, 85, 0.52);
    padding: 11px 14px;
    outline: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

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

.header-search button,
.mobile-search button,
.local-filter button {
    border: 0;
    cursor: pointer;
    border-radius: 12px;
    color: white;
    padding: 11px 16px;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
}

.menu-toggle {
    display: none;
    color: var(--text-200);
    border: 0;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.52);
    padding: 10px 13px;
    cursor: pointer;
}

.mobile-panel {
    display: none;
    padding: 14px 20px 18px;
    border-top: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.98);
}

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

.mobile-link {
    padding: 12px 14px;
}

.hero {
    position: relative;
    min-height: 72vh;
    height: 760px;
    max-height: 88vh;
    overflow: hidden;
    background: var(--bg-950);
}

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

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

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

.hero-bg img,
.detail-bg img,
.focus-large img,
.focus-small img,
.wide-thumb img,
.movie-poster img,
.timeline-thumb img,
.ranking-thumb img,
.rank-thumb img,
.detail-cover img,
.category-covers img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-bg {
    background: radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.22), transparent 36%), linear-gradient(135deg, #0f172a, #1e293b);
}

.hero-gradient,
.poster-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient-bottom {
    background: linear-gradient(0deg, rgba(15, 23, 42, 1), rgba(15, 23, 42, 0.72) 36%, rgba(15, 23, 42, 0.08));
}

.hero-gradient-side {
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.26) 52%, rgba(15, 23, 42, 0.62));
}

.poster-shade {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.12));
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1280px;
    height: 100%;
    margin: 0 auto;
    padding: 0 24px 105px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    color: var(--cyan);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero h1,
.page-hero h1,
.detail-copy h1 {
    margin: 0;
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero h1 {
    max-width: 850px;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
}

.hero p {
    max-width: 760px;
    margin: 22px 0 0;
    color: var(--text-300);
    font-size: 20px;
    line-height: 1.75;
}

.hero-meta,
.movie-meta,
.hero-actions,
.tag-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hero-meta {
    margin-top: 22px;
    color: var(--text-400);
}

.hero-meta span,
.movie-meta span,
.tag-row span,
.pill-meta span {
    border-radius: 999px;
    background: rgba(51, 65, 85, 0.62);
    color: var(--text-300);
    padding: 7px 11px;
    font-size: 13px;
}

.hero-actions {
    margin-top: 30px;
}

.primary-btn,
.ghost-btn,
.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.primary-btn {
    color: white;
    padding: 14px 28px;
    background: linear-gradient(90deg, var(--cyan-strong), var(--blue));
    box-shadow: 0 14px 35px rgba(6, 182, 212, 0.28);
}

.ghost-btn {
    color: var(--text-200);
    padding: 13px 24px;
    border: 1px solid rgba(226, 232, 240, 0.22);
    background: rgba(15, 23, 42, 0.38);
}

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

.hero-dots {
    position: absolute;
    z-index: 5;
    right: 28px;
    bottom: 112px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.35);
}

.hero-dot.active {
    height: 30px;
    background: var(--cyan);
}

.hero-category-bar {
    position: absolute;
    z-index: 6;
    left: 50%;
    bottom: 20px;
    width: min(1180px, calc(100% - 32px));
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(18px);
}

.hero-category-bar a {
    flex: 0 0 auto;
    color: var(--text-200);
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.55);
}

.hero-category-bar a:hover {
    color: var(--cyan);
}

.section {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 76px 0;
}

.strip-section,
.muted-section {
    width: 100%;
    padding-left: max(20px, calc((100% - 1280px) / 2));
    padding-right: max(20px, calc((100% - 1280px) / 2));
}

.strip-section {
    background: rgba(30, 41, 59, 0.48);
}

.muted-section {
    background: rgba(15, 23, 42, 0.22);
}

.section-head {
    margin-bottom: 30px;
}

.section-head h2,
.content-card h2,
.aside-card h2,
.footer-inner h2 {
    margin: 0;
    color: white;
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 900;
}

.section-head p,
.page-hero p,
.category-info p,
.footer-brand p,
.content-card p,
.rank-info p,
.ranking-content p,
.timeline-content p,
.movie-info p,
.focus-large p {
    color: var(--text-400);
    line-height: 1.75;
}

.split-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.text-link {
    color: var(--cyan);
    padding: 10px 0;
}

.wide-scroll {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    padding: 4px 0 16px;
    scrollbar-width: thin;
}

.wide-card {
    flex: 0 0 360px;
    transition: transform 0.2s ease;
}

.wide-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(59, 130, 246, 0.14));
    box-shadow: var(--shadow);
}

.wide-card h3,
.movie-info h3,
.timeline-content h3,
.focus-large h3,
.focus-small h3,
.ranking-content h2,
.rank-info strong {
    color: white;
    transition: color 0.2s ease;
}

.wide-card h3 {
    margin: 14px 0 6px;
    font-size: 20px;
}

.wide-card p {
    margin: 0;
    color: var(--text-400);
}

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

.poster-grid .movie-poster {
    aspect-ratio: 4 / 5;
}

.movie-card-link {
    display: block;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: 0 14px 45px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.movie-card-link:hover {
    border-color: rgba(34, 211, 238, 0.48);
    background: rgba(51, 65, 85, 0.68);
}

.movie-card-link:hover h3,
.wide-card:hover h3,
.timeline-card:hover h3,
.focus-large:hover h3,
.focus-small:hover h3,
.ranking-row:hover h2,
.rank-card:hover strong {
    color: var(--cyan);
}

.movie-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.16), rgba(59, 130, 246, 0.12));
}

.cover-img {
    transition: transform 0.45s ease, opacity 0.2s ease;
}

.movie-card-link:hover .cover-img,
.wide-card:hover .cover-img,
.timeline-card:hover .cover-img,
.focus-large:hover .cover-img,
.focus-small:hover .cover-img,
.ranking-row:hover .cover-img,
.rank-card:hover .cover-img {
    transform: scale(1.06);
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    color: white;
    background: rgba(6, 182, 212, 0.78);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card-link:hover .play-badge {
    opacity: 1;
}

.movie-info {
    padding: 18px;
}

.movie-info h3 {
    margin: 12px 0 8px;
    font-size: 19px;
    line-height: 1.35;
}

.movie-info p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    border-radius: 10px;
    padding: 5px 8px;
    font-size: 12px;
}

.timeline-section {
    width: 100%;
    padding-left: max(20px, calc((100% - 1280px) / 2));
    padding-right: max(20px, calc((100% - 1280px) / 2));
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.56));
}

.timeline-list {
    display: grid;
    gap: 24px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: stretch;
}

.timeline-no {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: white;
    font-weight: 900;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 16px 38px rgba(6, 182, 212, 0.24);
}

.timeline-card {
    display: grid;
    grid-template-columns: 290px 1fr;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: transform 0.2s ease, background 0.2s ease;
}

.timeline-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(51, 65, 85, 0.4);
}

.timeline-content h3 {
    margin: 12px 0 10px;
    font-size: 24px;
}

.focus-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.focus-large,
.focus-small {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(30, 41, 59, 0.5);
    box-shadow: var(--shadow);
    transition: transform 0.22s ease;
}

.focus-large {
    aspect-ratio: 16 / 9;
}

.focus-large > div:last-child,
.focus-small > div:last-child {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 22px;
}

.focus-large span,
.focus-small span {
    color: var(--cyan);
    font-weight: 800;
}

.focus-large h3 {
    margin: 10px 0;
    font-size: 30px;
}

.focus-large p {
    margin: 0;
}

.focus-side {
    display: grid;
    gap: 24px;
}

.focus-small {
    aspect-ratio: 16 / 9;
}

.focus-small h3 {
    margin: 6px 0 0;
    font-size: 18px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 90px 24px;
    background: radial-gradient(circle at 28% 20%, rgba(34, 211, 238, 0.16), transparent 36%), linear-gradient(135deg, var(--bg-800), var(--bg-900));
}

.page-hero > div {
    width: min(980px, 100%);
    margin: 0 auto;
    text-align: center;
}

.compact-hero h1 {
    font-size: clamp(36px, 6vw, 58px);
    line-height: 1.05;
}

.compact-hero p {
    max-width: 760px;
    margin: 20px auto 0;
    font-size: 18px;
}

.local-filter {
    justify-content: center;
    margin: 28px auto 0;
}

.local-filter input {
    width: min(520px, 72vw);
}

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

.category-card a {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    height: 100%;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 18px 52px rgba(2, 6, 23, 0.22);
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card a:hover {
    border-color: rgba(34, 211, 238, 0.48);
}

.category-covers {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.category-covers img {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.5);
}

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

.category-info h2 {
    margin: 10px 0;
    color: white;
    font-size: 26px;
}

.category-info p {
    margin: 0;
}

.ranking-section {
    display: grid;
    gap: 16px;
}

.ranking-row a {
    display: grid;
    grid-template-columns: 64px 150px 1fr;
    align-items: center;
    gap: 18px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    transition: transform 0.22s ease, background 0.22s ease;
}

.ranking-row a:hover {
    background: rgba(51, 65, 85, 0.68);
}

.ranking-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    color: white;
    font-weight: 900;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
}

.ranking-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px;
    background: rgba(51, 65, 85, 0.45);
}

.ranking-content h2 {
    margin: 0 0 8px;
    font-size: 22px;
}

.ranking-content p {
    margin: 0 0 10px;
}

.empty-state {
    display: none;
    margin: 34px auto 0;
    text-align: center;
    color: var(--text-400);
}

.empty-state.show {
    display: block;
}

.detail-hero {
    position: relative;
    min-height: 640px;
    overflow: hidden;
    background: var(--bg-950);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 66px 0 72px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-400);
    font-size: 14px;
    margin-bottom: 30px;
}

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

.detail-main {
    display: grid;
    grid-template-columns: 330px 1fr;
    gap: 36px;
    align-items: end;
}

.detail-cover {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(51, 65, 85, 0.52);
    box-shadow: var(--shadow);
}

.detail-copy h1 {
    max-width: 860px;
    font-size: clamp(40px, 6vw, 70px);
    line-height: 1.02;
}

.detail-copy p {
    max-width: 820px;
    margin: 22px 0 0;
    color: var(--text-300);
    font-size: 20px;
    line-height: 1.8;
}

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

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

.detail-primary {
    display: grid;
    gap: 24px;
}

.player-card,
.content-card,
.aside-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 16px 48px rgba(2, 6, 23, 0.2);
}

.player-card {
    overflow: hidden;
}

.player-stage {
    position: relative;
    aspect-ratio: 16 / 9;
    cursor: pointer;
    background: radial-gradient(circle at 50% 45%, rgba(34, 211, 238, 0.16), rgba(2, 6, 23, 0.92));
}

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

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
    border: 0;
    cursor: pointer;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.68), rgba(2, 6, 23, 0.18));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.play-overlay span {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    box-shadow: 0 18px 42px rgba(6, 182, 212, 0.36);
}

.player-stage.is-playing .play-overlay {
    opacity: 0;
    visibility: hidden;
}

.content-card,
.aside-card {
    padding: 26px;
}

.content-card h2,
.aside-card h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-size: 26px;
}

.content-card h2::before,
.aside-card h2::before {
    content: "";
    width: 5px;
    height: 26px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--cyan), var(--blue));
}

.content-card p {
    margin: 0;
    color: var(--text-300);
    white-space: pre-line;
}

.detail-aside {
    position: sticky;
    top: 96px;
}

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

.rank-link {
    display: grid;
    grid-template-columns: 118px 1fr;
    gap: 12px;
    align-items: center;
}

.rank-thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
    background: rgba(51, 65, 85, 0.5);
}

.rank-info strong {
    display: block;
    line-height: 1.35;
}

.rank-info span {
    display: block;
    color: var(--text-400);
    font-size: 12px;
    margin: 5px 0;
}

.rank-info p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--bg-900), var(--bg-950));
}

.footer-inner {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 34px;
}

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

.footer-inner h2 {
    margin-bottom: 14px;
    font-size: 18px;
}

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

.footer-links a {
    color: var(--text-400);
}

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

.footer-bottom {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 32px;
    color: var(--text-500);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

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

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

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

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

    .detail-aside {
        position: static;
    }
}

@media (max-width: 840px) {
    .header-inner {
        height: 66px;
        padding: 0 16px;
    }

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

    .hero {
        height: 720px;
        min-height: 72vh;
    }

    .hero-content {
        padding: 0 20px 118px;
    }

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

    .hero-dots {
        right: 16px;
        bottom: 124px;
    }

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

    .wide-card {
        flex-basis: 290px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-no {
        display: none;
    }

    .timeline-card,
    .category-card a,
    .detail-main,
    .ranking-row a {
        grid-template-columns: 1fr;
    }

    .detail-cover {
        width: min(280px, 80vw);
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .section,
    .detail-hero-inner,
    .footer-inner,
    .footer-bottom {
        width: min(100% - 28px, 1280px);
    }

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

    .hero h1,
    .compact-hero h1,
    .detail-copy h1 {
        font-size: 34px;
    }

    .hero-category-bar {
        bottom: 12px;
    }

    .local-filter,
    .mobile-search {
        flex-direction: column;
        align-items: stretch;
    }

    .local-filter input,
    .mobile-search input,
    .header-search input {
        width: 100%;
    }

    .rank-link {
        grid-template-columns: 96px 1fr;
    }
}
