
:root {
    --bg: #f8fafc;
    --panel: #ffffff;
    --text: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --soft: #fff7ed;
    --amber: #d97706;
    --amber-dark: #b45309;
    --orange: #ea580c;
    --slate: #0f172a;
    --slate-soft: #1e293b;
    --radius: 18px;
    --shadow: 0 20px 55px rgba(15, 23, 42, 0.12);
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), transparent 32rem), var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    line-height: 1.65;
}

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

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

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 26px;
}

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

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 26px rgba(217, 119, 6, 0.28);
}

.brand-text {
    font-size: 1.35rem;
    background: linear-gradient(90deg, var(--amber-dark), var(--orange));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
}

.desktop-nav > a,
.nav-dropdown > button {
    border: 0;
    background: transparent;
    color: #334155;
    font-weight: 700;
    cursor: pointer;
    padding: 8px 0;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.nav-dropdown:hover > button {
    color: var(--amber);
}

.nav-dropdown {
    position: relative;
}

.dropdown-panel {
    position: absolute;
    top: 100%;
    left: 50%;
    min-width: 168px;
    padding: 10px;
    transform: translate(-50%, 10px);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav-dropdown:hover .dropdown-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.dropdown-panel a {
    display: block;
    padding: 9px 12px;
    border-radius: 10px;
    color: #475569;
    font-size: 0.95rem;
}

.dropdown-panel a:hover {
    background: var(--soft);
    color: var(--amber);
}

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

.header-search input,
.mobile-search input,
.filter-form input {
    width: 190px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    padding: 10px 14px;
    color: var(--text);
    background: #fff;
    outline: none;
}

.header-search input:focus,
.mobile-search input:focus,
.filter-form input:focus {
    border-color: var(--amber);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}

.header-search button,
.mobile-search button,
.filter-form button {
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 800;
    cursor: pointer;
}

.menu-button {
    display: none;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 12px;
    background: var(--soft);
    cursor: pointer;
}

.menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    margin: 4px auto;
    background: var(--amber-dark);
}

.mobile-nav {
    display: none;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px 18px;
    border-top: 1px solid var(--line);
}

.mobile-nav a {
    display: block;
    padding: 11px 0;
    color: #334155;
    font-weight: 700;
}

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

.hero {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--slate);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
    align-items: center;
    gap: 44px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 84px 20px 110px;
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.38;
    filter: saturate(1.08);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.93), rgba(15, 23, 42, 0.62), rgba(15, 23, 42, 0.2)),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.34), transparent 28rem),
        radial-gradient(circle at 90% 50%, rgba(234, 88, 12, 0.24), transparent 24rem);
}

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

.hero-kicker,
.page-kicker,
.category-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 13px;
    color: #fed7aa;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.28);
    font-size: 0.88rem;
    font-weight: 800;
}

.hero h1,
.hero h2 {
    max-width: 820px;
    margin: 22px 0 18px;
    color: #fff;
    font-size: clamp(2.7rem, 6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.06em;
}

.hero p {
    max-width: 660px;
    color: #e2e8f0;
    font-size: 1.1rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 30px 0 24px;
}

.btn-primary,
.btn-secondary,
.btn-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 999px;
    padding: 12px 20px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 32px rgba(217, 119, 6, 0.28);
}

.btn-secondary {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
}

.btn-light {
    color: var(--amber-dark);
    background: #fff;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-light:hover {
    transform: translateY(-2px);
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.hero-tags span,
.tag-row span,
.detail-tags span {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    color: #92400e;
    background: #ffedd5;
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-tags span {
    color: #ffedd5;
    background: rgba(255, 237, 213, 0.16);
}

.hero-side-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(18px);
}

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

.hero-side-card div {
    padding: 18px;
}

.hero-side-card strong {
    display: block;
    color: #fff;
    font-size: 1.12rem;
}

.hero-side-card em {
    display: block;
    color: #cbd5e1;
    font-style: normal;
    margin-top: 4px;
}

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

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

.hero-dots button.is-active {
    background: #fff;
}

.page-hero {
    padding: 76px 20px 46px;
    background:
        radial-gradient(circle at 20% 10%, rgba(245, 158, 11, 0.16), transparent 24rem),
        linear-gradient(135deg, #fff, #fff7ed);
    border-bottom: 1px solid var(--line);
}

.page-hero-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.page-kicker {
    color: var(--amber-dark);
    background: #fff7ed;
    border-color: #fed7aa;
}

.page-hero h1 {
    max-width: 900px;
    margin: 14px 0 12px;
    font-size: clamp(2.1rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.page-hero p {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
}

.section {
    max-width: var(--max);
    margin: 0 auto;
    padding: 58px 20px;
}

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

.section-heading span {
    color: var(--amber);
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h2 {
    margin: 6px 0 8px;
    font-size: clamp(1.75rem, 3vw, 2.55rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.section-heading p {
    max-width: 660px;
    margin: 0;
    color: var(--muted);
}

.section-link {
    flex: 0 0 auto;
    color: var(--amber-dark);
    font-weight: 900;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: #fbbf24;
    box-shadow: var(--shadow);
}

.poster-link {
    display: block;
}

.poster {
    position: relative;
    display: block;
    overflow: hidden;
    background: #e2e8f0;
}

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

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

.play-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    border-radius: 999px;
    padding: 6px 10px;
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    font-size: 0.8rem;
    font-weight: 900;
    backdrop-filter: blur(8px);
}

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

.movie-meta,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 800;
}

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

.movie-card h2 {
    margin: 10px 0 8px;
    font-size: 1.08rem;
    line-height: 1.32;
}

.movie-card h2 a:hover {
    color: var(--amber-dark);
}

.movie-card p {
    min-height: 52px;
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 0.92rem;
}

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

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

.category-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.category-card > a {
    display: block;
    padding: 24px;
    background: linear-gradient(135deg, #fff, #fff7ed);
}

.category-card h2 {
    margin: 12px 0 8px;
    font-size: 1.42rem;
}

.category-card p {
    margin: 0;
    color: var(--muted);
}

.category-card .category-kicker {
    color: var(--amber-dark);
    background: #ffedd5;
    border-color: #fed7aa;
}

.category-samples {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.category-samples a {
    display: block;
    padding: 12px 18px;
    color: #475569;
    background: #fff;
    font-size: 0.92rem;
}

.category-samples a:hover {
    color: var(--amber-dark);
    background: #fff7ed;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 48px 82px minmax(0, 1fr);
    align-items: center;
    gap: 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-item:hover {
    transform: translateY(-3px);
    border-color: #fbbf24;
}

.rank-number {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 900;
}

.rank-item img {
    width: 82px;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    object-fit: cover;
}

.rank-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 1rem;
}

.rank-item em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 0.88rem;
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 16px;
    background: #fff;
}

.filter-form {
    display: flex;
    gap: 10px;
}

.filter-form input {
    width: min(420px, 70vw);
}

.empty-state {
    display: none;
    border: 1px dashed #f59e0b;
    border-radius: 18px;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    background: #fff7ed;
}

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

.detail-hero {
    background:
        radial-gradient(circle at 12% 10%, rgba(245, 158, 11, 0.22), transparent 26rem),
        linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
}

.detail-hero-inner {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 34px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 70px 20px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 30px 75px rgba(0, 0, 0, 0.35);
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    color: #cbd5e1;
    font-size: 0.92rem;
}

.breadcrumb a:hover {
    color: #fed7aa;
}

.detail-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2.3rem, 5vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.detail-hero p {
    max-width: 780px;
    color: #e2e8f0;
    font-size: 1.05rem;
}

.detail-hero .detail-meta span {
    color: #fed7aa;
    background: rgba(255, 237, 213, 0.1);
}

.detail-body {
    max-width: var(--max);
    margin: 0 auto;
    padding: 58px 20px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 28px;
}

.player-panel,
.article-panel,
.sidebar-panel {
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.player-panel {
    overflow: hidden;
    margin-bottom: 24px;
}

.player-panel h2,
.article-panel h2,
.sidebar-panel h2 {
    margin: 0;
    padding: 20px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 1.28rem;
}

.player-box {
    position: relative;
    background: #020617;
}

.player-box video {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #020617;
    cursor: pointer;
}

.play-button {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
    cursor: pointer;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    line-height: 1;
    z-index: 2;
}

.player-box.is-playing .play-button {
    opacity: 0;
    pointer-events: none;
}

.article-panel {
    padding-bottom: 18px;
}

.article-panel p {
    margin: 0;
    padding: 20px 22px 0;
    color: #334155;
    font-size: 1rem;
}

.detail-tags {
    padding: 20px 22px 0;
}

.sidebar-panel {
    overflow: hidden;
    align-self: start;
}

.compact-list {
    display: grid;
    gap: 1px;
    background: var(--line);
}

.compact-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    background: #fff;
}

.compact-card:hover {
    background: #fff7ed;
}

.compact-card img {
    width: 64px;
    aspect-ratio: 3 / 4;
    border-radius: 10px;
    object-fit: cover;
}

.compact-card strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.compact-card em {
    display: block;
    color: var(--muted);
    font-style: normal;
    font-size: 0.86rem;
}

.info-pages {
    max-width: 840px;
    margin: 0 auto;
    padding: 58px 20px;
}

.info-card {
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.info-card h2 {
    margin-top: 0;
}

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

    .menu-button {
        display: block;
        margin-left: auto;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        min-height: 720px;
    }

    .hero-side-card {
        display: none;
    }

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

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

    .detail-body {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .header-inner {
        padding: 12px 16px;
    }

    .brand-text {
        font-size: 1.15rem;
    }

    .hero {
        min-height: 610px;
    }

    .hero-slide {
        padding: 58px 18px 88px;
        min-height: 610px;
    }

    .hero h1,
    .hero h2 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .section-heading,
    .filter-panel {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .rank-item {
        grid-template-columns: 42px 72px minmax(0, 1fr);
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        padding: 42px 18px;
    }

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

    .play-button {
        width: 66px;
        height: 66px;
    }
}
