:root {
    --stone-950: #1c1917;
    --stone-900: #292524;
    --stone-800: #44403c;
    --stone-700: #57534e;
    --stone-600: #78716c;
    --stone-500: #a8a29e;
    --stone-200: #e7e5e4;
    --stone-100: #f5f5f4;
    --stone-50: #fafaf9;
    --amber-900: #78350f;
    --amber-800: #92400e;
    --amber-700: #b45309;
    --amber-600: #d97706;
    --amber-500: #f59e0b;
    --amber-300: #fcd34d;
    --orange-950: #431407;
    --orange-900: #7c2d12;
    --ring: rgba(245, 158, 11, 0.34);
    --shadow-soft: 0 18px 45px rgba(28, 25, 23, 0.15);
    --shadow-strong: 0 26px 70px rgba(28, 25, 23, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--stone-50);
    color: var(--stone-900);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--amber-800), var(--orange-900));
    box-shadow: 0 14px 30px rgba(67, 20, 7, 0.24);
}

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.brand-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-300);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.45);
    font-size: 15px;
}

.desktop-nav,
.mobile-nav {
    align-items: center;
    gap: 20px;
    font-size: 15px;
    font-weight: 600;
}

.desktop-nav {
    display: flex;
}

.desktop-nav a,
.mobile-nav a {
    opacity: 0.9;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: var(--amber-300);
    opacity: 1;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    display: block;
    margin: 5px auto;
    background: #fff;
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
}

.mobile-nav.is-open {
    display: flex;
}

.site-main,
.page-main {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.hero-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 30px auto 0;
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.7fr);
    gap: 22px;
}

.hero-carousel {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    border-radius: 28px;
    color: #fff;
    background: var(--stone-950);
    box-shadow: var(--shadow-strong);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: end;
    gap: 28px;
    padding: 48px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
}

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

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

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(28, 25, 23, 0.92), rgba(28, 25, 23, 0.62) 48%, rgba(28, 25, 23, 0.1)),
                linear-gradient(0deg, rgba(28, 25, 23, 0.82), rgba(28, 25, 23, 0.02));
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(252, 211, 77, 0.34);
    border-radius: 999px;
    color: var(--amber-300);
    background: rgba(28, 25, 23, 0.32);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 700;
}

.hero-content h1,
.hero-content h2 {
    max-width: 720px;
    margin: 0 0 16px;
    font-size: clamp(34px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.hero-content p {
    max-width: 690px;
    margin: 0 0 22px;
    color: #e7e5e4;
    font-size: 17px;
    line-height: 1.85;
}

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

.hero-tags span,
.tag-row span {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.hero-tags span {
    padding: 7px 10px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.28);
    border: 1px solid rgba(252, 211, 77, 0.18);
}

.hero-actions,
.inline-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

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

.btn-primary {
    padding: 13px 21px;
    color: #fff;
    background: var(--amber-600);
    box-shadow: 0 14px 26px rgba(217, 119, 6, 0.3);
}

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

.btn-ghost {
    padding: 12px 20px;
    color: #fff7ed;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.hero-poster {
    align-self: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
    transform: rotate(2deg);
}

.hero-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.hero-control {
    position: absolute;
    top: 50%;
    width: 42px;
    height: 42px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.38);
    cursor: pointer;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
}

.hero-control.prev {
    left: 18px;
}

.hero-control.next {
    right: 18px;
}

.hero-dots {
    position: absolute;
    left: 48px;
    bottom: 28px;
    z-index: 3;
    display: flex;
    gap: 9px;
}

.hero-dot {
    width: 22px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
}

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

.hero-side {
    display: grid;
    gap: 16px;
}

.hero-side-card {
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--stone-900), var(--amber-900));
    box-shadow: var(--shadow-soft);
}

.hero-side-card h2,
.hero-side-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    font-weight: 900;
}

.hero-side-card p {
    margin: 0 0 18px;
    color: #e7e5e4;
    line-height: 1.75;
}

.hero-side-link {
    padding: 10px 16px;
    color: var(--amber-900);
    background: var(--amber-300);
}

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

.side-mini-list a {
    display: grid;
    grid-template-columns: 64px 1fr;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(28, 25, 23, 0.08);
}

.side-mini-list img {
    width: 64px;
    height: 82px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--stone-200);
}

.side-mini-list strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    line-height: 1.35;
}

.side-mini-list em {
    color: var(--stone-600);
    font-size: 12px;
    font-style: normal;
}

.section {
    padding: 54px 0 0;
}

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

.section-kicker {
    color: var(--amber-700);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.14em;
}

.section-head h1,
.section-head h2 {
    margin: 6px 0 8px;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1.15;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.section-head p {
    max-width: 680px;
    margin: 0;
    color: var(--stone-600);
    line-height: 1.8;
}

.section-link {
    flex: 0 0 auto;
    padding: 10px 16px;
    color: var(--amber-800);
    background: #fff7ed;
    box-shadow: 0 8px 20px rgba(146, 64, 14, 0.1);
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 26px rgba(28, 25, 23, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 40px rgba(28, 25, 23, 0.16);
}

.movie-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--stone-200), #fff7ed);
}

.movie-poster img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.movie-card:hover .movie-poster img,
.compact-card:hover img {
    transform: scale(1.07);
}

.poster-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, 0.56));
    opacity: 0.72;
}

.play-mark {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 119, 6, 0.92);
    box-shadow: 0 14px 24px rgba(0, 0, 0, 0.28);
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.84);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

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

.rank-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    padding: 6px 9px;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber-600), var(--orange-900));
    font-size: 12px;
    font-weight: 900;
}

.movie-body {
    padding: 15px;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
    color: var(--amber-700);
    font-size: 12px;
    font-weight: 800;
}

.movie-body h3 {
    margin: 0 0 9px;
    color: var(--stone-900);
    font-size: 17px;
    line-height: 1.35;
    font-weight: 850;
}

.movie-body h3 a:hover {
    color: var(--amber-700);
}

.movie-body p {
    min-height: 46px;
    margin: 0 0 12px;
    color: var(--stone-600);
    font-size: 13px;
    line-height: 1.65;
}

.tag-row span {
    padding: 5px 8px;
    color: var(--stone-700);
    background: var(--stone-100);
}

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

.category-tile {
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 22px;
    color: #fff;
    background: linear-gradient(145deg, var(--amber-800), var(--stone-900));
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-strong);
}

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 23px;
    font-weight: 900;
}

.category-tile p {
    margin: 0;
    color: #e7e5e4;
    line-height: 1.7;
    font-size: 14px;
}

.category-tile span {
    margin-top: 18px;
    color: var(--amber-300);
    font-weight: 900;
}

.filter-panel {
    margin: 26px 0 28px;
    padding: 20px;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
    gap: 16px;
    align-items: end;
    border: 1px solid rgba(146, 64, 14, 0.1);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(28, 25, 23, 0.07);
}

.filter-search label,
.filter-controls span {
    display: block;
    margin-bottom: 8px;
    color: var(--stone-700);
    font-size: 13px;
    font-weight: 850;
}

.filter-search input,
.filter-controls select {
    width: 100%;
    height: 44px;
    border: 1px solid var(--stone-200);
    border-radius: 14px;
    padding: 0 14px;
    color: var(--stone-900);
    background: var(--stone-50);
    outline: none;
}

.filter-search input:focus,
.filter-controls select:focus {
    border-color: var(--amber-500);
    box-shadow: 0 0 0 4px var(--ring);
}

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

.empty-state {
    margin: 26px 0;
    padding: 28px;
    border-radius: 20px;
    color: var(--stone-600);
    background: #fff;
    text-align: center;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 74px 86px 1fr auto;
    gap: 16px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(28, 25, 23, 0.08);
}

.rank-num {
    color: var(--amber-700);
    font-size: 22px;
    font-weight: 950;
    text-align: center;
}

.rank-row img {
    width: 86px;
    height: 112px;
    object-fit: cover;
    border-radius: 14px;
    background: var(--stone-200);
}

.rank-row h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 900;
}

.rank-row p {
    margin: 0;
    color: var(--stone-600);
    line-height: 1.7;
}

.rank-row .btn-primary {
    padding: 10px 16px;
    white-space: nowrap;
}

.breadcrumb {
    margin: 26px 0 18px;
    color: var(--stone-600);
    font-size: 14px;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.72fr);
    gap: 26px;
    align-items: start;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    background: #000;
    box-shadow: var(--shadow-strong);
}

.player-shell video {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 0;
    padding: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    cursor: pointer;
}

.player-cover.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62);
}

.big-play {
    position: relative;
    z-index: 1;
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: var(--amber-600);
    box-shadow: 0 22px 42px rgba(0, 0, 0, 0.35);
    font-size: 34px;
}

.detail-info {
    padding: 26px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--stone-900), var(--amber-900));
    box-shadow: var(--shadow-soft);
}

.detail-info h1 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.03em;
}

.detail-info p {
    color: #e7e5e4;
    line-height: 1.85;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin: 16px 0 18px;
}

.detail-badges span {
    padding: 7px 11px;
    border-radius: 999px;
    color: var(--amber-900);
    background: var(--amber-300);
    font-size: 12px;
    font-weight: 900;
}

.content-card {
    margin-top: 28px;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(28, 25, 23, 0.08);
}

.content-card h2 {
    margin: 0 0 14px;
    font-size: 26px;
    font-weight: 900;
}

.content-card p {
    margin: 0 0 18px;
    color: var(--stone-700);
    font-size: 16px;
    line-height: 1.9;
}

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

.compact-card {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 16px;
    background: var(--stone-50);
    transition: background 0.2s ease, transform 0.2s ease;
}

.compact-card:hover {
    background: #fff7ed;
    transform: translateY(-2px);
}

.compact-card img {
    width: 80px;
    height: 104px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--stone-200);
    transition: transform 0.25s ease;
}

.compact-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.35;
}

.compact-card em {
    color: var(--stone-600);
    font-size: 12px;
    font-style: normal;
}

.site-footer {
    margin-top: 68px;
    color: #d6d3d1;
    background: var(--stone-900);
}

.footer-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 36px 0;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 24px;
}

.footer-inner strong {
    color: #fff;
    font-size: 20px;
}

.footer-inner p {
    max-width: 560px;
    line-height: 1.75;
}

.footer-links {
    display: flex;
    align-content: flex-start;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px 18px;
}

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

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(231, 229, 228, 0.12);
    color: var(--stone-500);
    font-size: 14px;
    text-align: center;
}

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

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

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

    .nav-toggle {
        display: block;
    }

    .hero-wrap {
        width: 100%;
        margin-top: 0;
        gap: 0;
    }

    .hero-carousel {
        min-height: 620px;
        border-radius: 0 0 26px 26px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 36px 24px 74px;
    }

    .hero-poster {
        display: none;
    }

    .hero-side {
        width: min(100% - 32px, 1180px);
        margin: 20px auto 0;
    }

    .section-head,
    .filter-panel,
    .footer-inner {
        grid-template-columns: 1fr;
    }

    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

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

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

    .rank-row {
        grid-template-columns: 56px 72px 1fr;
    }

    .rank-row .btn-primary {
        grid-column: 1 / -1;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (max-width: 540px) {
    .site-main,
    .page-main {
        width: min(100% - 24px, 1180px);
    }

    .brand {
        font-size: 18px;
    }

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

    .hero-content p {
        font-size: 15px;
    }

    .rank-row {
        grid-template-columns: 54px 1fr;
    }

    .rank-row img {
        display: none;
    }
}
