:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --panel: #111827;
    --panel-2: #1e293b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --amber: #f59e0b;
    --orange: #ea580c;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(circle at top left, rgba(245, 158, 11, 0.12), transparent 30%),
        linear-gradient(180deg, #020617 0%, #0f172a 45%, #020617 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.8));
}

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.95));
    backdrop-filter: blur(18px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

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

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

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

.brand-text,
.footer-brand span:last-child {
    font-size: 1.45rem;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #f59e0b);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    color: #cbd5e1;
    font-weight: 700;
}

.site-nav a {
    transition: color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #fbbf24;
    transform: translateY(-1px);
}

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

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    border-radius: 999px;
    background: #e2e8f0;
}

.hero {
    position: relative;
    min-height: 72vh;
    overflow: hidden;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hero-slider,
.hero-slide,
.hero-bg {
    position: absolute;
    inset: 0;
}

.hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.7s ease;
}

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

.hero-bg {
    background-size: cover;
    background-position: center;
    filter: blur(10px) saturate(1.1);
    transform: scale(1.08);
    opacity: 0.34;
}

.hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #020617 0%, rgba(2, 6, 23, 0.86) 42%, rgba(2, 6, 23, 0.55) 100%),
        radial-gradient(circle at 20% 20%, rgba(245, 158, 11, 0.28), transparent 28%),
        linear-gradient(180deg, transparent 0%, #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1180px, calc(100% - 32px));
    min-height: 72vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.72fr);
    align-items: center;
    gap: 54px;
    padding: 56px 0;
}

.hero-copy h1 {
    max-width: 850px;
    margin: 14px 0 18px;
    font-size: clamp(2.7rem, 7vw, 6.6rem);
    line-height: 0.95;
    font-weight: 950;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #facc15);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.hero-copy p {
    max-width: 720px;
    margin: 0 0 24px;
    color: #cbd5e1;
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    line-height: 1.85;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(245, 158, 11, 0.1);
    font-size: 0.86rem;
    font-weight: 800;
}

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

.hero-tags span,
.detail-tags span,
.tag-list span {
    padding: 5px 10px;
    border-radius: 999px;
    color: #dbeafe;
    background: rgba(30, 41, 59, 0.78);
    border: 1px solid rgba(148, 163, 184, 0.16);
    font-size: 0.82rem;
}

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

.hero-actions.centered {
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 13px;
    border: 1px solid transparent;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 18px 40px rgba(234, 88, 12, 0.28);
}

.btn-ghost {
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.22);
    background: rgba(15, 23, 42, 0.58);
}

.btn.wide {
    width: 100%;
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4.1;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(251, 191, 36, 0.22);
    transform: rotate(2deg);
}

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

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

.hero-dot {
    width: 28px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    background: rgba(226, 232, 240, 0.38);
    cursor: pointer;
}

.hero-dot.is-active {
    width: 48px;
    background: linear-gradient(90deg, var(--amber), var(--orange));
}

.intro-search {
    margin-top: -28px;
    position: relative;
    z-index: 10;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(15, 23, 42, 0.86);
    box-shadow: var(--shadow);
}

.intro-search h2,
.section-heading h2,
.page-hero h1,
.detail-copy h1,
.story-card h2 {
    margin: 0;
}

.intro-search h2 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.intro-search p,
.page-hero p,
.section-heading p {
    color: var(--muted);
    line-height: 1.8;
}

.search-panel {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin-top: 22px;
}

.search-panel input,
.search-panel select {
    width: 100%;
    height: 48px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 14px;
    padding: 0 16px;
    color: #f8fafc;
    outline: none;
    background: rgba(2, 6, 23, 0.62);
}

.search-panel input:focus,
.search-panel select:focus {
    border-color: rgba(245, 158, 11, 0.78);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.12);
}

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

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 28px;
}

.section-heading.compact {
    align-items: center;
    margin-bottom: 18px;
}

.section-heading span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 12px 24px rgba(234, 88, 12, 0.22);
    flex: 0 0 auto;
}

.section-heading h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
}

.section-heading p {
    margin: 6px 0 0;
}

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

.movie-card {
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.98), rgba(15, 23, 42, 0.98));
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.32);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.movie-cover {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: #0f172a;
}

.movie-cover img {
    transition: transform 0.45s ease;
}

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

.play-dot {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fbbf24;
    background: rgba(0, 0, 0, 0.66);
    backdrop-filter: blur(10px);
}

.movie-info {
    display: flex;
    min-height: 208px;
    flex-direction: column;
    gap: 11px;
    padding: 17px;
}

.movie-info h2 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.35;
}

.movie-info h2 a:hover {
    color: #fbbf24;
}

.movie-info p {
    display: -webkit-box;
    min-height: 48px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    line-height: 1.6;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
    color: var(--muted-2);
    font-size: 0.82rem;
}

.movie-meta span {
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(15, 23, 42, 0.68);
}

.movie-card-compact .movie-info {
    min-height: 182px;
}

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

.category-tile,
.category-overview-card {
    display: block;
    min-height: 150px;
    padding: 22px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
    transition: transform 0.24s ease, border-color 0.24s ease;
}

.category-tile:hover,
.category-overview-card:hover {
    transform: translateY(-5px);
    border-color: rgba(251, 191, 36, 0.34);
}

.category-tile span,
.category-main-link span {
    display: block;
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 900;
    color: #fbbf24;
}

.category-tile p,
.category-main-link p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.category-samples a {
    color: #cbd5e1;
    font-size: 0.92rem;
}

.category-samples a:hover {
    color: #fbbf24;
}

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
    align-items: start;
}

.rank-panel {
    position: sticky;
    top: 92px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.88);
    box-shadow: var(--shadow);
}

.rank-list {
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.rank-list a {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 11px;
    align-items: center;
    padding: 12px;
    border-radius: 14px;
    background: rgba(30, 41, 59, 0.62);
}

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

.rank-list strong,
.rank-list em {
    display: block;
}

.rank-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    color: var(--muted);
    font-style: normal;
    font-size: 0.82rem;
}

.page-main {
    padding-bottom: 80px;
}

.page-hero {
    position: relative;
    margin-top: 36px;
    padding: 54px 26px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.18), transparent 28%),
        linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(2, 6, 23, 0.92));
    box-shadow: var(--shadow);
}

.compact-hero h1 {
    margin-top: 14px;
    font-size: clamp(2.3rem, 5vw, 4.8rem);
    line-height: 1;
    background: linear-gradient(90deg, #fbbf24, #fb923c, #facc15);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

.compact-hero p {
    max-width: 760px;
    margin: 18px auto 0;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    padding: 26px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 34px;
    align-items: center;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(2, 6, 23, 0.9));
    box-shadow: var(--shadow);
}

.detail-poster {
    aspect-ratio: 3 / 4.2;
    overflow: hidden;
    border-radius: 24px;
    border: 1px solid rgba(251, 191, 36, 0.2);
}

.detail-copy h1 {
    margin-top: 16px;
    font-size: clamp(2.4rem, 5vw, 5rem);
    line-height: 1;
}

.detail-one-line {
    margin: 18px 0;
    color: #cbd5e1;
    font-size: 1.15rem;
    line-height: 1.75;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0;
}

.detail-meta span {
    padding: 7px 12px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.16);
}

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

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 28px;
    background: #000;
    box-shadow: var(--shadow);
}

.movie-player {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.player-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border: 0;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.78));
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.player-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.player-button {
    display: inline-flex;
    width: 86px;
    height: 86px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    box-shadow: 0 20px 55px rgba(234, 88, 12, 0.42);
    font-size: 2.2rem;
}

.player-overlay strong {
    max-width: 80%;
    text-align: center;
    font-size: clamp(1.3rem, 3vw, 2rem);
}

.article-section {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding-top: 34px;
}

.story-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.72);
}

.story-card h2 {
    margin-bottom: 14px;
    color: #fbbf24;
    font-size: 1.45rem;
}

.story-card p {
    margin: 0;
    color: #cbd5e1;
    line-height: 1.9;
}

.prev-next {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding-top: 24px;
}

.prev-next a {
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.78);
}

.prev-next a:hover {
    border-color: rgba(251, 191, 36, 0.34);
    color: #fbbf24;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    align-items: stretch;
}

.ranking-cover {
    position: relative;
    display: block;
    min-height: 136px;
    overflow: hidden;
}

.ranking-number {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: #fff;
    background: linear-gradient(135deg, var(--amber), var(--orange));
    font-weight: 950;
}

.ranking-info {
    padding: 20px;
}

.ranking-info h2 {
    margin: 0 0 10px;
    font-size: 1.25rem;
}

.ranking-info p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.7;
}

.site-footer {
    margin-top: 80px;
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.74), #020617);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.7fr 1fr;
    gap: 36px;
    padding: 46px 0;
}

.site-footer p {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.8;
}

.site-footer h2 {
    margin: 0 0 16px;
    font-size: 1.05rem;
}

.footer-links {
    display: grid;
    gap: 9px;
}

.footer-links a {
    color: var(--muted);
}

.footer-links a:hover {
    color: #fbbf24;
}

.is-hidden-card {
    display: none;
}

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

    .split-section,
    .article-section {
        grid-template-columns: 1fr;
    }

    .rank-panel {
        position: static;
    }
}

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

    .site-nav {
        position: absolute;
        top: 68px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 10px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(15, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

    .site-nav a {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .site-nav a:hover {
        background: rgba(30, 41, 59, 0.8);
        transform: none;
    }

    .hero-content,
    .detail-hero,
    .footer-grid,
    .ranking-card {
        grid-template-columns: 1fr;
    }

    .hero-content {
        gap: 28px;
        padding: 40px 0 74px;
    }

    .hero-poster {
        width: min(320px, 82vw);
        margin: 0 auto;
        transform: none;
    }

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

    .search-panel {
        grid-template-columns: 1fr;
    }
}

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

    .brand-text,
    .footer-brand span:last-child {
        font-size: 1.15rem;
    }

    .hero-copy h1 {
        font-size: clamp(2.35rem, 14vw, 4rem);
    }

    .movie-grid,
    .category-grid,
    .category-overview-grid,
    .prev-next {
        grid-template-columns: 1fr;
    }

    .intro-search,
    .page-hero,
    .detail-hero,
    .story-card {
        padding: 20px;
        border-radius: 20px;
    }

    .movie-cover {
        aspect-ratio: 16 / 9;
    }
}
