:root {
    --golden-50: #fff8e7;
    --golden-100: #ffefc2;
    --golden-200: #ffdd82;
    --golden-300: #ffc247;
    --golden-400: #f5a524;
    --golden-500: #d9890c;
    --golden-600: #b96a08;
    --golden-700: #934f0e;
    --golden-800: #773f12;
    --golden-900: #45210b;
    --sunshine-50: #fffbea;
    --sunshine-100: #fff0b4;
    --sunshine-200: #ffe27a;
    --ink: #20150a;
    --muted: #75624d;
    --paper: #ffffff;
    --line: rgba(147, 79, 14, 0.16);
    --shadow: 0 18px 45px rgba(87, 48, 14, 0.16);
    --shadow-strong: 0 26px 70px rgba(87, 48, 14, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 20% 0%, rgba(255, 213, 112, 0.34), transparent 34rem),
        linear-gradient(135deg, var(--golden-50), var(--sunshine-50));
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.65;
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--golden-800), var(--golden-500), #edb94a);
    box-shadow: 0 12px 35px rgba(111, 63, 16, 0.24);
}

.nav-shell {
    max-width: 1280px;
    height: 68px;
    margin: 0 auto;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 20px;
}

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

.brand {
    color: #fff;
    flex-shrink: 0;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(12px);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.88);
    padding: 8px 11px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
}

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

.nav-search {
    margin-left: auto;
}

.nav-search input,
.mobile-search input,
.filter-input,
.filter-select {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    padding: 10px 14px;
    outline: none;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.94);
    min-width: 210px;
}

.nav-search button,
.mobile-search button,
.btn,
.player-button {
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    color: #fff;
    background: linear-gradient(135deg, var(--golden-700), var(--golden-400));
    box-shadow: 0 10px 25px rgba(147, 79, 14, 0.28);
    cursor: pointer;
    font-weight: 800;
    transition: 0.25s ease;
}

.nav-search button {
    background: rgba(255, 255, 255, 0.2);
}

.nav-search button:hover,
.mobile-search button:hover,
.btn:hover,
.player-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 35px rgba(147, 79, 14, 0.32);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    color: #fff;
    background: rgba(255, 255, 255, 0.16);
    border: 0;
    border-radius: 12px;
    width: 42px;
    height: 42px;
    cursor: pointer;
}

.mobile-nav {
    display: none;
    padding: 12px 18px 18px;
    background: rgba(104, 54, 12, 0.96);
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #130a04;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 0.7s ease;
    background-image:
        linear-gradient(90deg, rgba(19, 10, 4, 0.94) 0%, rgba(57, 29, 7, 0.78) 42%, rgba(19, 10, 4, 0.38) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 22px 74px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 430px);
    gap: 44px;
    align-items: center;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--golden-100);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 8px 14px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
    font-weight: 800;
}

.hero-copy h1 {
    margin: 22px 0 16px;
    color: #fff;
    font-size: clamp(40px, 7vw, 78px);
    line-height: 1.04;
    letter-spacing: -0.05em;
}

.hero-copy p {
    max-width: 760px;
    margin: 0 0 24px;
    color: rgba(255, 248, 231, 0.88);
    font-size: 18px;
}

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

.btn-outline {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.hero-tags span,
.card-tags span,
.detail-tags span,
.filter-chip {
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--golden-800);
    background: rgba(255, 239, 194, 0.92);
}

.hero-poster {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    transform: rotate(1.5deg);
    background: rgba(255, 255, 255, 0.1);
}

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

.hero-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.68));
}

.hero-poster-badge {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 1;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-weight: 900;
}

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

.hero-dot {
    width: 42px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

.hero-dot.is-active {
    background: var(--golden-200);
}

.main-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 46px 22px 72px;
}

.section-block {
    margin: 0 0 62px;
}

.section-panel {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
}

.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 22px;
}

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

.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(135deg, var(--golden-700), var(--golden-400));
    box-shadow: 0 12px 24px rgba(147, 79, 14, 0.25);
}

.section-more {
    color: var(--golden-700);
    font-weight: 900;
}

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

.category-tile {
    min-height: 142px;
    padding: 22px;
    border-radius: 24px;
    color: #fff;
    background: linear-gradient(145deg, var(--golden-700), var(--golden-400));
    box-shadow: var(--shadow);
    transition: 0.25s ease;
}

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

.category-tile h3 {
    margin: 0 0 8px;
    font-size: 22px;
}

.category-tile p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
}

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

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

.movie-card {
    min-width: 0;
    overflow: hidden;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    transition: 0.25s ease;
}

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

.card-poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: linear-gradient(135deg, var(--golden-200), var(--golden-700));
}

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

.card-large .card-poster img {
    aspect-ratio: 16 / 10;
}

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

.play-dot {
    position: absolute;
    right: 13px;
    bottom: 13px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #fff;
    background: rgba(0, 0, 0, 0.48);
    backdrop-filter: blur(8px);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #ff6a00, #ffc247);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.card-body {
    padding: 16px;
}

.card-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.card-body h3 {
    margin: 9px 0 7px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.card-tags,
.detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.page-hero {
    padding: 62px 0 16px;
}

.page-hero-card {
    border-radius: 30px;
    padding: 42px;
    color: #fff;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.24), transparent 24rem),
        linear-gradient(135deg, var(--golden-800), var(--golden-500));
    box-shadow: var(--shadow-strong);
}

.page-hero-card h1 {
    margin: 0 0 12px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
}

.page-hero-card p {
    margin: 0;
    max-width: 820px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
}

.filter-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 24px;
}

.filter-input,
.filter-select {
    border-color: var(--line);
    min-width: 220px;
}

.filter-chip {
    border: 0;
    cursor: pointer;
}

.filter-chip.active {
    color: #fff;
    background: var(--golden-700);
}

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

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

.player-frame video {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    border: 0;
    padding: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.34);
}

.player-cover.hidden {
    display: none;
}

.player-button {
    min-width: 136px;
    font-size: 18px;
}

.player-error {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    display: none;
    padding: 12px 14px;
    color: #fff;
    border-radius: 16px;
    background: rgba(120, 26, 18, 0.86);
}

.player-error.show {
    display: block;
}

.detail-card,
.side-card {
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 24px;
}

.detail-card h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
}

.detail-card h2,
.side-card h2 {
    margin: 22px 0 10px;
    font-size: 22px;
}

.detail-card p {
    color: #473829;
}

.detail-cover {
    overflow: hidden;
    border-radius: 24px;
    margin-bottom: 16px;
}

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

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

.related-item {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 12px;
    align-items: center;
    padding: 10px;
    border-radius: 18px;
    background: rgba(255, 248, 231, 0.72);
    transition: 0.25s ease;
}

.related-item:hover {
    transform: translateX(4px);
    background: var(--golden-100);
}

.related-item img {
    width: 72px;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 14px;
}

.related-item h3 {
    margin: 0 0 5px;
    font-size: 15px;
    line-height: 1.3;
}

.related-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    color: var(--golden-700);
    font-weight: 800;
}

.empty-state {
    display: none;
    padding: 36px;
    text-align: center;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.74);
    border-radius: 24px;
}

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

.site-footer {
    color: #fff;
    background: linear-gradient(135deg, var(--golden-900), var(--golden-700));
}

.footer-grid {
    max-width: 1280px;
    margin: 0 auto;
    padding: 44px 22px;
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 32px;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
    color: rgba(255, 255, 255, 0.76);
}

.footer-grid a {
    display: block;
    margin: 8px 0;
}

.footer-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-tags a {
    margin: 0;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 18px 22px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 14px;
}

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

    .menu-toggle {
        display: grid;
        place-items: center;
    }

    .nav-search {
        margin-left: auto;
    }

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

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

    .hero-slider {
        min-height: 760px;
    }

    .hero-inner,
    .detail-layout,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-poster {
        max-width: 330px;
        transform: none;
    }

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

    .page-hero-card {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .nav-shell {
        padding: 0 14px;
    }

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

    .hero-copy h1 {
        font-size: 38px;
    }

    .hero-inner {
        padding: 92px 16px 76px;
    }

    .main-wrap {
        padding: 32px 14px 54px;
    }

    .section-panel,
    .detail-card,
    .side-card {
        padding: 18px;
        border-radius: 22px;
    }

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

    .filter-input,
    .filter-select {
        width: 100%;
    }
}
