:root {
    --bg: #fffaf0;
    --surface: #ffffff;
    --surface-soft: #fff7ed;
    --text: #24180b;
    --muted: #7c5f3f;
    --line: rgba(146, 64, 14, 0.16);
    --amber: #d97706;
    --orange: #ea580c;
    --dark: #1f1305;
    --shadow: 0 20px 55px rgba(120, 53, 15, 0.14);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.22), transparent 30rem),
        linear-gradient(180deg, #fff7ed 0%, #fffaf0 38%, #ffffff 100%);
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
}

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, 250, 240, 0.88);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: max-content;
}

.brand-mark {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #fff;
    font-weight: 900;
    font-size: 22px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.32);
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-text strong {
    font-size: 22px;
    background: linear-gradient(90deg, #92400e, #ea580c);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.brand-text em {
    margin-top: 4px;
    font-style: normal;
    color: var(--amber);
    font-size: 12px;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    color: #5b3b16;
    font-weight: 700;
}

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

.desktop-nav a:hover,
.mobile-nav a:hover {
    color: var(--orange);
}

.header-search {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 280px;
}

.header-search input,
.hero-search input,
.filter-bar input,
.filter-bar select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 999px;
    outline: none;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    padding: 12px 16px;
    box-shadow: 0 10px 26px rgba(120, 53, 15, 0.06);
}

.header-search button,
.hero-search button,
.primary-btn {
    border: none;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    padding: 12px 18px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(234, 88, 12, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-search button:hover,
.hero-search button:hover,
.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.28);
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: none;
    color: var(--text);
    background: transparent;
    font-size: 28px;
}

.mobile-nav {
    display: none;
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 0 0 18px;
    gap: 12px;
    flex-direction: column;
    font-weight: 800;
}

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

.hero-shell {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: #261203;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.7s ease, transform 1.2s ease;
    pointer-events: none;
}

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

.hero-slide img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.05) contrast(1.08);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(31, 19, 5, 0.92), rgba(31, 19, 5, 0.58) 48%, rgba(31, 19, 5, 0.2)),
        radial-gradient(circle at 82% 18%, rgba(251, 191, 36, 0.42), transparent 26rem);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding-top: 70px;
    color: #fff8ea;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border: 1px solid rgba(251, 191, 36, 0.36);
    border-radius: 999px;
    padding: 8px 14px;
    color: #fbbf24;
    background: rgba(120, 53, 15, 0.32);
    font-size: 14px;
    font-weight: 800;
}

.hero-content h1 {
    margin: 22px 0 18px;
    max-width: 780px;
    font-size: clamp(42px, 8vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-content p {
    max-width: 720px;
    margin: 0;
    color: #fdecc8;
    font-size: clamp(17px, 2vw, 22px);
}

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

.hero-tags span,
.tags span {
    border-radius: 999px;
    color: #9a3412;
    background: #ffedd5;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 800;
}

.hero-actions,
.page-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
}

.ghost-btn {
    border: 1px solid rgba(251, 191, 36, 0.46);
    border-radius: 999px;
    color: #fff7ed;
    background: rgba(255, 255, 255, 0.1);
    padding: 11px 18px;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.page-hero .ghost-btn {
    color: #9a3412;
    background: rgba(255, 237, 213, 0.72);
}

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

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

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

.search-panel,
.content-section,
.filter-bar,
.page-hero,
.detail-hero {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr minmax(280px, 520px);
    gap: 24px;
    align-items: center;
    margin-top: -64px;
    position: relative;
    z-index: 4;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.search-panel h2,
.section-head h2,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    color: var(--text);
}

.search-panel h2 {
    font-size: clamp(24px, 4vw, 42px);
    line-height: 1.15;
}

.search-panel p,
.section-head p,
.page-hero p {
    margin: 8px 0 0;
    color: var(--muted);
}

.hero-search {
    display: flex;
    gap: 10px;
}

.content-section {
    padding: 74px 0 0;
}

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

.section-head h2 {
    font-size: clamp(26px, 4vw, 42px);
}

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

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

.category-tile,
.category-card-large,
.movie-card,
.ranking-item,
.video-shell,
.detail-text article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: 0 16px 36px rgba(120, 53, 15, 0.08);
}

.category-tile {
    min-height: 150px;
    padding: 22px;
    background:
        linear-gradient(135deg, rgba(255, 247, 237, 0.94), rgba(255, 237, 213, 0.9)),
        radial-gradient(circle at top right, rgba(251, 191, 36, 0.26), transparent 10rem);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-tile strong,
.category-card-large h2 {
    display: block;
    color: #9a3412;
    font-size: 22px;
    margin-bottom: 10px;
}

.category-tile span,
.category-card-large p {
    color: var(--muted);
}

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

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

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

.movie-card {
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.poster {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #431407;
}

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

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

.score,
.play-badge,
.ranking-cover span {
    position: absolute;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.score {
    top: 12px;
    right: 12px;
    padding: 5px 10px;
}

.play-badge {
    left: 12px;
    bottom: 12px;
    padding: 7px 12px;
}

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

.movie-card-body h2 {
    min-height: 54px;
    margin: 8px 0;
    font-size: 20px;
    line-height: 1.35;
}

.movie-card-body h2 a:hover,
.ranking-item h2 a:hover {
    color: var(--orange);
}

.movie-card-body p {
    min-height: 72px;
    margin: 0;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #9a3412;
    font-size: 13px;
    font-weight: 800;
}

.movie-meta span,
.detail-meta span {
    border-radius: 999px;
    background: #ffedd5;
    padding: 4px 9px;
}

.split-section {
    display: grid;
    grid-template-columns: 0.82fr 1.18fr;
    gap: 34px;
    align-items: start;
}

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

.rank-row {
    display: grid;
    grid-template-columns: auto 58px 1fr auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.74);
    padding: 10px;
}

.rank-row img {
    width: 58px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.rank-num {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-title {
    font-weight: 900;
}

.rank-info {
    color: var(--muted);
    font-size: 13px;
}

.page-hero,
.detail-hero {
    margin-top: 34px;
    padding: 60px;
    border-radius: 32px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 16%, rgba(251, 191, 36, 0.26), transparent 20rem),
        linear-gradient(135deg, #fff7ed, #ffffff 52%, #ffedd5);
    box-shadow: var(--shadow);
}

.page-hero h1,
.detail-info h1 {
    margin-top: 18px;
    font-size: clamp(34px, 6vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.filter-bar {
    display: grid;
    grid-template-columns: 1fr 220px 180px;
    gap: 14px;
    margin-top: 34px;
}

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

.category-card-large {
    overflow: hidden;
    padding: 18px;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 20px;
    align-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.category-preview img {
    height: 120px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.category-card-large span {
    display: inline-flex;
    margin-top: 14px;
    color: var(--orange);
    font-weight: 900;
}

.ranking-list {
    display: grid;
    gap: 18px;
}

.ranking-item {
    display: grid;
    grid-template-columns: 132px 1fr;
    gap: 20px;
    padding: 14px;
}

.ranking-cover {
    position: relative;
    display: block;
}

.ranking-cover img {
    width: 132px;
    height: 182px;
    border-radius: 18px;
    object-fit: cover;
}

.ranking-cover span {
    left: 10px;
    top: 10px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
}

.ranking-item h2 {
    margin: 4px 0 10px;
    font-size: 26px;
}

.ranking-item p {
    color: var(--muted);
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: #9a3412;
    font-weight: 800;
    margin-bottom: 28px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 36px;
    align-items: center;
}

.detail-poster img {
    width: 300px;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.lead {
    max-width: 820px;
    color: var(--muted);
    font-size: 20px;
}

.detail-meta {
    margin-top: 20px;
}

.player-section {
    padding-top: 46px;
}

.video-shell {
    position: relative;
    overflow: hidden;
    background: #130902;
    aspect-ratio: 16 / 9;
}

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

.video-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 14px;
    border: none;
    color: #fff7ed;
    background:
        radial-gradient(circle, rgba(234, 88, 12, 0.22), transparent 20rem),
        linear-gradient(180deg, rgba(19, 9, 2, 0.25), rgba(19, 9, 2, 0.82));
    cursor: pointer;
    z-index: 2;
}

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

.big-play {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 36px rgba(234, 88, 12, 0.38);
    font-size: 34px;
}

.video-cover strong {
    max-width: 80%;
    font-size: clamp(22px, 4vw, 44px);
    text-align: center;
}

.detail-text {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.detail-text article {
    padding: 28px;
}

.detail-text h2 {
    margin: 0 0 14px;
    font-size: 28px;
}

.detail-text p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
}

.site-footer {
    margin-top: 86px;
    color: #fdecc8;
    background:
        radial-gradient(circle at top left, rgba(251, 191, 36, 0.2), transparent 24rem),
        linear-gradient(135deg, #431407, #1f1305);
}

.footer-grid {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 54px 0;
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 34px;
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 12px;
    color: #fbbf24;
    font-size: 28px;
    font-weight: 900;
}

.footer-grid p {
    color: #fed7aa;
}

.footer-grid h2 {
    margin: 0 0 14px;
    color: #fff7ed;
    font-size: 20px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-links a {
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 12px;
    color: #fed7aa;
}

.copyright {
    width: min(1240px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    border-top: 1px solid rgba(255, 237, 213, 0.12);
    color: #fdba74;
}

.hidden {
    display: none !important;
}

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

    .menu-toggle {
        display: block;
    }

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

    .split-section,
    .search-panel,
    .detail-text,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .category-overview-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        min-height: 66px;
    }

    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

    .hero-shell {
        min-height: 610px;
    }

    .hero-content {
        padding-top: 20px;
    }

    .hero-actions,
    .hero-search,
    .page-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .search-panel,
    .page-hero,
    .detail-hero {
        padding: 28px;
    }

    .category-grid,
    .movie-grid,
    .mini-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .category-card-large,
    .ranking-item,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .category-preview img {
        height: 90px;
    }

    .detail-poster img,
    .ranking-cover img {
        width: 100%;
        height: auto;
    }

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

    .rank-info {
        display: none;
    }
}
