:root {
    --bg: #fafaf9;
    --panel: #ffffff;
    --panel-soft: rgba(255, 255, 255, 0.78);
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-200: #e7e5e4;
    --amber-50: #fffbeb;
    --amber-100: #fef3c7;
    --amber-200: #fde68a;
    --amber-500: #f59e0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
    --amber-900: #78350f;
    --orange-100: #ffedd5;
    --orange-600: #ea580c;
    --shadow: 0 18px 45px rgba(41, 37, 36, 0.12);
    --shadow-soft: 0 10px 28px rgba(41, 37, 36, 0.08);
    --radius-lg: 1rem;
    --radius-xl: 1.4rem;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--stone-900);
    min-height: 100vh;
}

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;
    background: rgba(255, 251, 235, 0.94);
    border-bottom: 1px solid var(--amber-200);
    backdrop-filter: blur(16px);
}

.navbar {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--amber-900);
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.logo-mark {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-500), var(--orange-600));
    color: white;
    box-shadow: 0 12px 22px rgba(217, 119, 6, 0.28);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    color: var(--amber-900);
    font-weight: 650;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
    color: var(--amber-600);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--amber-900);
    font-size: 28px;
    cursor: pointer;
}

.mobile-menu {
    display: none;
    border-top: 1px solid var(--amber-200);
    background: var(--amber-50);
}

.mobile-menu a {
    display: block;
    padding: 14px 24px;
    color: var(--amber-900);
    font-weight: 700;
    border-bottom: 1px solid rgba(253, 230, 138, 0.7);
}

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

.page-main {
    min-height: 70vh;
}

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 45%, #fed7aa 100%);
}

.hero-slider {
    position: relative;
    min-height: 630px;
}

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

.hero-slide:first-child {
    position: relative;
}

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

.hero-inner {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 630px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    align-items: center;
    gap: 48px;
    padding: 52px 0 64px;
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--amber-700);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--shadow-soft);
}

.hero h1,
.hero-title {
    margin: 20px 0 16px;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: var(--stone-900);
}

.hero-text {
    max-width: 650px;
    color: var(--stone-700);
    font-size: 18px;
    line-height: 1.8;
}

.hero-meta,
.movie-meta,
.card-meta,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
}

.hero-meta {
    margin: 18px 0 26px;
}

.pill,
.movie-meta span,
.card-meta span,
.tag-list span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--amber-100);
    color: var(--amber-900);
    font-size: 13px;
    font-weight: 700;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(180, 83, 9, 0.18);
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    color: white;
    box-shadow: 0 16px 30px rgba(217, 119, 6, 0.26);
}

.btn-light {
    background: rgba(255, 255, 255, 0.75);
    color: var(--amber-900);
}

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

.hero-art {
    position: relative;
    z-index: 2;
}

.hero-poster {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 21 / 28;
    box-shadow: var(--shadow);
    background: linear-gradient(135deg, rgba(68, 64, 60, 0.12), rgba(217, 119, 6, 0.18));
}

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

.hero-slide.is-active .hero-poster img {
    transform: scale(1.04);
}

.hero-card-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 18px;
    border-radius: 22px;
    background: linear-gradient(135deg, rgba(28, 25, 23, 0.88), rgba(68, 64, 60, 0.72));
    color: white;
    backdrop-filter: blur(12px);
}

.hero-card-caption strong {
    display: block;
    font-size: 20px;
    margin-bottom: 6px;
}

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

.hero-dot {
    width: 38px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    background: rgba(120, 113, 108, 0.35);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
    width: 58px;
    background: var(--amber-600);
}

.search-panel {
    margin-top: 30px;
    padding: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: var(--shadow-soft);
    display: flex;
    gap: 10px;
    align-items: center;
    max-width: 650px;
}

.search-panel input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--stone-200);
    outline: 0;
    border-radius: 999px;
    background: white;
    padding: 13px 16px;
    color: var(--stone-900);
}

.search-panel .btn {
    min-width: 120px;
}

.section {
    padding: 58px 0;
}

.section-soft {
    background: linear-gradient(135deg, var(--amber-100), var(--orange-100));
}

.section-dark {
    background: var(--stone-900);
    color: var(--amber-50);
}

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

.section-title {
    margin: 12px 0 0;
    font-size: clamp(26px, 4vw, 40px);
    line-height: 1.15;
    color: var(--stone-900);
}

.section-dark .section-title,
.section-dark .section-lead {
    color: var(--amber-50);
}

.section-lead {
    margin: 10px 0 0;
    color: var(--stone-700);
    max-width: 760px;
    line-height: 1.8;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
}

.poster {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4.15;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(68, 64, 60, 0.12));
}

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

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

.poster-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(28, 25, 23, 0.76);
    color: white;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.card-body {
    padding: 14px;
}

.card-title {
    margin: 0 0 8px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    margin: 10px 0 0;
    color: var(--stone-600);
    font-size: 14px;
    line-height: 1.65;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta {
    gap: 6px;
}

.card-meta span {
    padding: 4px 8px;
    font-size: 12px;
}

.feature-card {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 28px;
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--panel-soft);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.feature-card .poster {
    border-radius: 22px;
    aspect-ratio: 16 / 9;
}

.feature-content h3 {
    margin: 10px 0;
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.1;
}

.feature-content p {
    color: var(--stone-700);
    line-height: 1.85;
}

.category-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--panel-soft);
    border: 1px solid rgba(253, 230, 138, 0.72);
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card h2,
.category-card h3 {
    margin: 10px 0;
    color: var(--stone-900);
}

.category-card p {
    margin: 0;
    color: var(--stone-700);
    line-height: 1.75;
}

.rank-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
    align-items: center;
    border-radius: var(--radius-lg);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.rank-number {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: white;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    padding: 28px 0 8px;
    color: var(--stone-600);
    font-size: 14px;
}

.breadcrumb a {
    color: var(--amber-700);
    font-weight: 700;
}

.page-hero {
    padding: 48px 0 24px;
    background: linear-gradient(135deg, var(--amber-50), var(--orange-100));
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.12;
}

.page-hero p {
    max-width: 850px;
    color: var(--stone-700);
    line-height: 1.85;
    font-size: 17px;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 170px 170px;
    gap: 14px;
    margin: 26px 0;
    padding: 16px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-soft);
}

.watch-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: start;
    padding: 32px 0 54px;
}

.player-box {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: var(--stone-950);
    aspect-ratio: 16 / 9;
    box-shadow: var(--shadow);
}

.player-box video {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    border: 0;
    color: white;
    background: radial-gradient(circle, rgba(28, 25, 23, 0.18), rgba(28, 25, 23, 0.62));
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-overlay span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-600));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32);
    font-size: 34px;
    padding-left: 5px;
}

.movie-side {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.movie-side h1 {
    margin: 12px 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.16;
}

.movie-side p {
    color: var(--stone-700);
    line-height: 1.85;
}

.article-block {
    margin: 0 0 28px;
    padding: 26px;
    border-radius: var(--radius-xl);
    background: var(--panel);
    box-shadow: var(--shadow-soft);
}

.article-block h2 {
    margin: 0 0 14px;
    font-size: 26px;
}

.article-block p {
    color: var(--stone-700);
    line-height: 1.9;
    margin: 0;
}

.site-footer {
    padding: 42px 0;
    background: var(--stone-900);
    color: #d6d3d1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 32px;
}

.footer-grid h3 {
    color: var(--amber-100);
    margin-top: 0;
}

.footer-grid p,
.footer-grid li {
    color: #a8a29e;
    line-height: 1.8;
}

.footer-grid ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-bottom {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(231, 229, 228, 0.16);
    color: #a8a29e;
    font-size: 14px;
    text-align: center;
}

.empty-state {
    display: none;
    padding: 34px;
    border-radius: var(--radius-xl);
    background: var(--panel);
    color: var(--stone-600);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

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

.hidden-card {
    display: none !important;
}

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

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

    .hero-inner,
    .watch-layout,
    .feature-card {
        grid-template-columns: 1fr;
    }

    .hero-art {
        max-width: 520px;
    }
}

@media (max-width: 760px) {
    .navbar {
        min-height: 64px;
    }

    .nav-links {
        display: none;
    }

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

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

    .hero-slider,
    .hero-inner {
        min-height: auto;
    }

    .hero-inner {
        padding: 36px 0 70px;
        gap: 28px;
    }

    .search-panel {
        border-radius: 24px;
        flex-direction: column;
        align-items: stretch;
    }

    .section-head {
        display: block;
    }

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

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

    .hero-controls {
        bottom: 18px;
    }
}

@media (max-width: 520px) {
    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .card-body {
        padding: 12px;
    }

    .card-title {
        font-size: 15px;
    }

    .card-desc {
        -webkit-line-clamp: 2;
    }

    .rank-card {
        grid-template-columns: 54px minmax(0, 1fr);
    }

    .rank-number {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}
