:root {
    --gold-50: #fffbeb;
    --gold-100: #fef3c7;
    --gold-300: #fcd34d;
    --gold-500: #f59e0b;
    --gold-600: #d97706;
    --gold-700: #b45309;
    --gold-900: #78350f;
    --ink: #1f2937;
    --muted: #6b7280;
    --panel: #ffffff;
    --soft: #fff7ed;
    --line: rgba(180, 83, 9, 0.16);
    --shadow: 0 22px 50px rgba(120, 53, 15, 0.16);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: linear-gradient(180deg, #fffbeb 0%, #ffffff 36%, #fff7ed 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

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

img {
    max-width: 100%;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    color: #fff;
    background: linear-gradient(90deg, var(--gold-600), var(--gold-500));
    box-shadow: 0 10px 30px rgba(146, 64, 14, 0.28);
}

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

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.logo-mark {
    width: 46px;
    height: 46px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--gold-600);
    background: #fff;
    font-weight: 900;
    box-shadow: inset 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.logo-title {
    display: block;
    font-size: 22px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.logo-subtitle {
    display: block;
    margin-top: 5px;
    color: rgba(255, 251, 235, 0.86);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 700;
}

.main-nav a {
    position: relative;
    opacity: 0.94;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width 0.25s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-search {
    position: relative;
    width: min(280px, 24vw);
}

.header-search input,
.search-panel input,
.filter-box input,
.filter-box select {
    width: 100%;
    border: 0;
    outline: 0;
    border-radius: 999px;
    padding: 11px 44px 11px 18px;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.header-search input::placeholder {
    color: rgba(255, 251, 235, 0.75);
}

.header-search button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 0;
    color: var(--gold-700);
    background: #fff;
}

.mobile-toggle {
    display: none;
    border: 0;
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 900;
}

.mobile-nav {
    display: none;
    padding: 0 0 18px;
}

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

.hero {
    position: relative;
    min-height: 580px;
    overflow: hidden;
    color: #fff;
    background: #2b1704;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 0.8s ease, transform 1.2s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 23, 4, 0.92), rgba(120, 53, 15, 0.64) 48%, rgba(0, 0, 0, 0.12)), linear-gradient(0deg, rgba(43, 23, 4, 0.78), transparent 46%);
}

.hero-content {
    position: relative;
    z-index: 2;
    min-height: 580px;
    display: grid;
    align-content: center;
    gap: 22px;
    max-width: 760px;
    padding: 80px 0 110px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(245, 158, 11, 0.26);
    border: 1px solid rgba(252, 211, 77, 0.45);
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(40px, 7vw, 74px);
    line-height: 0.95;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.hero p {
    max-width: 720px;
    color: rgba(255, 251, 235, 0.9);
    font-size: 18px;
    line-height: 1.85;
}

.hero-actions,
.section-head,
.meta-row,
.card-meta,
.tag-row,
.detail-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 850;
    transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
    color: var(--gold-900);
    background: #fff;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.26);
}

.btn-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
}

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

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 999px;
    border: 0;
    background: rgba(255, 255, 255, 0.46);
}

.hero-dot.is-active {
    width: 34px;
    background: #fff;
}

.section {
    padding: 62px 0;
}

.section.soft {
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.72), rgba(255, 255, 255, 0.8));
}

.section-head {
    justify-content: space-between;
    margin-bottom: 28px;
}

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.15;
    font-weight: 950;
    color: #431407;
}

.section-desc {
    max-width: 780px;
    margin-top: 10px;
    color: var(--muted);
    line-height: 1.8;
}

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

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

.movie-card {
    overflow: hidden;
    border-radius: 24px;
    background: var(--panel);
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.12);
    border: 1px solid var(--line);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-300));
}

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

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

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    color: #fff;
    background: rgba(217, 119, 6, 0.92);
}

.poster .badge {
    position: absolute;
    left: 12px;
    top: 12px;
}

.card-body {
    padding: 16px;
}

.card-title {
    display: block;
    color: #431407;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.32;
}

.card-title:hover {
    color: var(--gold-700);
}

.card-meta {
    margin: 10px 0;
    color: var(--gold-700);
    font-size: 13px;
    font-weight: 750;
}

.card-summary {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

.category-tile {
    min-height: 132px;
    display: grid;
    align-content: end;
    gap: 10px;
    border-radius: 24px;
    padding: 22px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
    box-shadow: 0 18px 38px rgba(146, 64, 14, 0.2);
}

.category-tile strong {
    font-size: 22px;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 56px 74px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(120, 53, 15, 0.1);
}

.rank-num {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--gold-700), var(--gold-500));
    font-weight: 950;
}

.rank-cover {
    width: 74px;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 14px;
}

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

.page-hero {
    padding: 72px 0;
    color: #fff;
    background: radial-gradient(circle at 20% 20%, rgba(252, 211, 77, 0.28), transparent 34%), linear-gradient(135deg, #78350f, #d97706);
}

.page-hero h1 {
    font-size: clamp(34px, 6vw, 58px);
    line-height: 1.06;
    font-weight: 950;
}

.page-hero p {
    max-width: 840px;
    margin-top: 16px;
    color: rgba(255, 251, 235, 0.88);
    line-height: 1.9;
}

.breadcrumb {
    margin-bottom: 18px;
    color: rgba(255, 251, 235, 0.78);
    font-weight: 750;
}

.filter-box {
    display: grid;
    grid-template-columns: 1fr 180px 180px;
    gap: 14px;
    padding: 18px;
    margin-bottom: 28px;
    border-radius: 26px;
    background: linear-gradient(90deg, var(--gold-700), var(--gold-500));
    box-shadow: 0 16px 36px rgba(146, 64, 14, 0.2);
}

.filter-box input,
.filter-box select {
    color: #fff;
    appearance: none;
}

.filter-box input::placeholder {
    color: rgba(255, 251, 235, 0.78);
}

.detail-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: #2b1704;
}

.detail-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(43, 23, 4, 0.95), rgba(120, 53, 15, 0.68)), var(--detail-bg);
    background-size: cover;
    background-position: center;
    filter: blur(2px);
    transform: scale(1.03);
}

.detail-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
    padding: 64px 0;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

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

.detail-info h1 {
    font-size: clamp(36px, 6vw, 62px);
    line-height: 1.05;
    font-weight: 950;
}

.detail-info p {
    margin-top: 18px;
    color: rgba(255, 251, 235, 0.9);
    line-height: 1.9;
    font-size: 17px;
}

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

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

.player-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

.player-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.48), rgba(120, 53, 15, 0.42));
}

.play-button {
    position: relative;
    z-index: 2;
    width: 86px;
    height: 86px;
    border-radius: 999px;
    border: 0;
    color: var(--gold-700);
    background: #fff;
    font-size: 30px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.player-box.is-playing .player-cover {
    display: none;
}

.article-box {
    padding: 28px;
    border-radius: 28px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 18px 42px rgba(120, 53, 15, 0.1);
}

.article-box h2 {
    margin-bottom: 14px;
    color: #431407;
    font-size: 26px;
    font-weight: 950;
}

.article-box p {
    color: #374151;
    line-height: 2;
    margin: 12px 0;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    color: var(--gold-800);
    background: var(--gold-100);
    font-size: 13px;
    font-weight: 800;
}

.site-footer {
    color: #fffbeb;
    background: linear-gradient(180deg, #92400e, #78350f);
    padding: 46px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 28px;
}

.footer-grid p,
.footer-grid a {
    color: rgba(255, 251, 235, 0.78);
    line-height: 1.9;
}

.empty-state {
    display: none;
    padding: 28px;
    border-radius: 24px;
    text-align: center;
    color: var(--muted);
    background: #fff;
    border: 1px solid var(--line);
}

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

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

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

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

    .detail-layout {
        grid-template-columns: 220px 1fr;
    }
}

@media (max-width: 720px) {
    .container-wrap {
        width: min(100% - 22px, 1180px);
    }

    .hero,
    .hero-content {
        min-height: 620px;
    }

    .hero-content {
        padding: 60px 0 100px;
    }

    .movie-grid,
    .movie-grid.compact,
    .category-grid,
    .rank-list,
    .footer-grid,
    .filter-box,
    .detail-layout {
        grid-template-columns: 1fr;
    }

    .rank-item {
        grid-template-columns: 48px 64px 1fr;
    }

    .detail-layout {
        padding: 38px 0;
    }

    .detail-poster {
        max-width: 260px;
    }

    .section {
        padding: 42px 0;
    }
}
