:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: rgba(15, 23, 42, 0.78);
    --panel-strong: rgba(15, 23, 42, 0.94);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-strong: #fbbf24;
    --cyan: #22d3ee;
    --rose: #fb7185;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 28rem),
        radial-gradient(circle at top right, rgba(34, 211, 238, 0.12), transparent 30rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

body.menu-open {
    overflow: hidden;
}

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

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

img.image-error {
    opacity: 0;
}

button,
input,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(2, 6, 23, 0.76);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

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

.brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 15px;
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 10px 34px rgba(245, 158, 11, 0.35);
}

.brand-text {
    font-size: 19px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--soft);
    transition: 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #111827;
    background: var(--accent-strong);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.24);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.8);
}

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

.hero-slider {
    position: relative;
    min-height: min(760px, calc(100vh - 72px));
    overflow: hidden;
    background: #020617;
}

.hero-track {
    position: relative;
    min-height: min(760px, calc(100vh - 72px));
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
    align-items: center;
    gap: clamp(24px, 5vw, 72px);
    width: 100%;
    padding: clamp(44px, 8vw, 96px) max(32px, calc((100vw - 1200px) / 2 + 32px));
    opacity: 0;
    pointer-events: none;
    transform: scale(1.01);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: blur(8px) saturate(1.25);
    transform: scale(1.08);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(2, 6, 23, 0.64) 44%, rgba(2, 6, 23, 0.9)),
        radial-gradient(circle at 18% 32%, rgba(245, 158, 11, 0.34), transparent 24rem),
        radial-gradient(circle at 78% 28%, rgba(34, 211, 238, 0.22), transparent 28rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 1;
}

.hero-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    gap: 8px;
    padding: 8px 14px;
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.1);
    font-size: 14px;
    font-weight: 700;
}

.hero-content h1 {
    max-width: 760px;
    margin: 22px 0 18px;
    font-size: clamp(44px, 8vw, 88px);
    line-height: 0.96;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 0;
    color: var(--soft);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.8;
}

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

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

.hero-tags span,
.tag-row span,
.tag-row a {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.14);
    font-size: 12px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    font-weight: 800;
    transition: 0.25s ease;
}

.btn-primary {
    color: #111827;
    background: linear-gradient(135deg, #fbbf24, #f97316);
    box-shadow: 0 16px 36px rgba(245, 158, 11, 0.28);
}

.btn-soft {
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.76);
    border: 1px solid var(--line);
}

.btn-ghost {
    color: #fde68a;
    border: 1px solid rgba(245, 158, 11, 0.36);
    background: rgba(245, 158, 11, 0.1);
}

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

.hero-poster {
    display: block;
    width: min(100%, 420px);
    aspect-ratio: 2 / 3;
    justify-self: end;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 30px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.55);
    backdrop-filter: blur(14px);
    transform: translateY(-50%);
    transition: 0.24s ease;
    font-size: 36px;
    line-height: 1;
}

.hero-control:hover {
    background: rgba(245, 158, 11, 0.9);
    color: #111827;
}

.hero-prev {
    left: 24px;
}

.hero-next {
    right: 24px;
}

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

.hero-dots button {
    width: 42px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    transition: 0.24s ease;
}

.hero-dots button.is-active {
    width: 64px;
    background: var(--accent-strong);
}

.quick-search-card,
.page-section,
.page-main {
    position: relative;
}

.quick-search-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -64px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
    z-index: 4;
}

.quick-search-card h2 {
    margin: 0 0 6px;
    font-size: clamp(24px, 3vw, 36px);
}

.quick-search-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.8;
}

.home-search {
    display: flex;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.78);
}

.home-search input,
.filter-panel input,
.filter-panel select {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.18);
    outline: none;
    color: var(--text);
    background: rgba(2, 6, 23, 0.76);
}

.home-search input {
    min-width: 0;
    padding: 0 18px;
    border: 0;
    background: transparent;
}

.home-search button {
    min-width: 92px;
    border: 0;
    border-radius: 999px;
    color: #111827;
    background: var(--accent-strong);
    font-weight: 800;
}

.page-section {
    margin-top: 58px;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.section-heading > span {
    font-size: 24px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(24px, 3vw, 34px);
    letter-spacing: -0.03em;
}

.section-heading i {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.54), transparent);
}

.section-heading p {
    width: 100%;
    margin: 0;
    color: var(--muted);
}

.rail-wrap {
    position: relative;
}

.movie-rail {
    display: grid;
    grid-auto-columns: 210px;
    grid-auto-flow: column;
    gap: 18px;
    overflow-x: auto;
    padding: 6px 4px 16px;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.movie-rail::-webkit-scrollbar {
    display: none;
}

.rail-btn {
    position: absolute;
    top: 42%;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.84);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
    font-size: 32px;
}

.rail-left {
    left: -12px;
}

.rail-right {
    right: -12px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}

.catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.6);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

.poster-link {
    display: block;
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background:
        radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.24), transparent 12rem),
        linear-gradient(145deg, #1e293b, #020617);
}

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

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

.poster-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 52%, rgba(2, 6, 23, 0.82));
    opacity: 0;
    transition: opacity 0.25s ease;
}

.movie-card:hover .poster-frame::after {
    opacity: 1;
}

.rating-badge,
.rank-badge {
    position: absolute;
    top: 10px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 28px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.rating-badge {
    right: 10px;
    color: #111827;
    background: var(--accent-strong);
}

.rank-badge {
    left: 10px;
    color: var(--text);
    background: rgba(15, 23, 42, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.poster-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 999px;
    color: #111827;
    background: rgba(251, 191, 36, 0.92);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.85);
    transition: 0.24s ease;
}

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

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

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

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

.movie-meta {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: 12px;
}

.movie-desc {
    display: -webkit-box;
    min-height: 44px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--soft);
    font-size: 13px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

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

.rank-panel {
    position: sticky;
    top: 94px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.rank-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.rank-panel-head h2 {
    margin: 0;
    font-size: 24px;
}

.rank-panel ol {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rank-panel li a {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 10px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.68);
    transition: 0.2s ease;
}

.rank-panel li a:hover {
    background: rgba(245, 158, 11, 0.14);
}

.rank-panel li span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    color: #111827;
    background: var(--accent-strong);
    font-weight: 900;
}

.rank-panel strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.rank-panel em {
    grid-column: 2;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-more {
    display: flex;
    justify-content: center;
    margin-top: 14px;
    padding: 12px;
    border-radius: 14px;
    color: #111827;
    background: var(--accent-strong);
    font-weight: 900;
}

.category-grid,
.category-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
}

.category-tile,
.category-card-large {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.64));
}

.category-tile a,
.category-card-large a {
    display: block;
    min-height: 100%;
    padding: 22px;
}

.category-glow {
    position: absolute;
    right: -24px;
    top: -24px;
    width: 110px;
    height: 110px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    filter: blur(2px);
}

.category-tile h3,
.category-card-large h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.category-tile p,
.category-card-large p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.75;
}

.category-samples,
.mini-link-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-samples a,
.mini-link-list a {
    padding: 6px 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(2, 6, 23, 0.42);
    font-size: 12px;
}

.page-main {
    padding-top: 48px;
    padding-bottom: 72px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 34px;
    padding: clamp(30px, 5vw, 60px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at top right, rgba(245, 158, 11, 0.2), transparent 24rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.9));
    box-shadow: var(--shadow);
}

.page-hero h1 {
    max-width: 900px;
    margin: 18px 0 12px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

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

.filter-panel {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) repeat(3, minmax(140px, 180px));
    gap: 12px;
    margin-bottom: 24px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(15, 23, 42, 0.72);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.filter-panel input,
.filter-panel select {
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
}

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

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

.movie-card-wide {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
}

.movie-card-wide .poster-frame {
    height: 100%;
    min-height: 156px;
}

.movie-card-wide .movie-card-body {
    display: grid;
    align-content: center;
}

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

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(24px, 5vw, 54px);
    align-items: center;
    margin-bottom: 34px;
    padding: clamp(24px, 5vw, 46px);
    border: 1px solid var(--line);
    border-radius: 30px;
    background:
        radial-gradient(circle at 0 0, rgba(34, 211, 238, 0.16), transparent 22rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.detail-poster {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: linear-gradient(145deg, #1e293b, #020617);
}

.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-info h1 {
    margin: 18px 0 14px;
    font-size: clamp(34px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-one-line {
    max-width: 760px;
    margin: 0 0 22px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.85;
}

.detail-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.detail-meta-grid div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(2, 6, 23, 0.45);
}

.detail-meta-grid span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 4px;
}

.detail-meta-grid strong {
    font-size: 16px;
}

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

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

.video-shell {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.video-shell video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 12px;
    width: 100%;
    border: 0;
    color: var(--text);
    background:
        radial-gradient(circle at center, rgba(245, 158, 11, 0.26), transparent 16rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.18), rgba(2, 6, 23, 0.82));
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

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

.play-circle {
    display: grid;
    place-items: center;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    color: #111827;
    background: var(--accent-strong);
    font-size: 34px;
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.36);
}

.player-cover-title {
    font-size: clamp(22px, 4vw, 42px);
    font-weight: 900;
}

.player-cover-subtitle {
    color: #fde68a;
    font-weight: 800;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

.text-panel {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.68);
}

.text-panel h2 {
    margin: 0 0 16px;
    font-size: 26px;
}

.text-panel p {
    margin: 0 0 14px;
    color: var(--soft);
    line-height: 1.95;
}

.related-grid {
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.74);
}

.footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    padding: 34px 0;
}

.footer-inner p {
    max-width: 620px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.8;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    max-width: 420px;
}

.footer-links a {
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--soft);
    background: rgba(148, 163, 184, 0.1);
}

[hidden] {
    display: none !important;
}

@media (max-width: 980px) {
    .site-nav {
        position: fixed;
        left: 16px;
        right: 16px;
        top: 82px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(2, 6, 23, 0.96);
        box-shadow: var(--shadow);
    }

    body.menu-open .site-nav {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding-top: 48px;
        padding-bottom: 84px;
    }

    .hero-poster {
        display: none;
    }

    .quick-search-card,
    .split-layout,
    .detail-hero,
    .detail-content,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }

    .filter-panel {
        grid-template-columns: 1fr 1fr;
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 22px, 1200px);
    }

    .header-inner {
        min-height: 64px;
    }

    .hero-slider,
    .hero-track,
    .hero-slide {
        min-height: 690px;
    }

    .hero-slide {
        padding-left: 18px;
        padding-right: 18px;
    }

    .hero-control {
        display: none;
    }

    .quick-search-card {
        margin-top: -36px;
        padding: 18px;
    }

    .home-search {
        flex-direction: column;
        border-radius: 20px;
    }

    .home-search input {
        min-height: 44px;
    }

    .home-search button {
        min-height: 44px;
    }

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

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

    .movie-desc {
        display: none;
    }

    .filter-panel {
        grid-template-columns: 1fr;
    }

    .movie-card-wide {
        grid-template-columns: 96px minmax(0, 1fr);
    }

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

    .play-circle {
        width: 66px;
        height: 66px;
    }
}
