:root {
    --bg: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --gold: #f59e0b;
    --gold-light: #fbbf24;
    --orange: #fb923c;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
    --radius: 24px;
    font-family: Inter, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 10% 0%, rgba(245, 158, 11, 0.18), transparent 26rem),
        radial-gradient(circle at 90% 12%, rgba(251, 146, 60, 0.13), transparent 32rem),
        linear-gradient(135deg, #020617 0%, #0f172a 45%, #020617 100%);
}

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;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.86);
    backdrop-filter: blur(20px);
}

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

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

.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.32);
}

.brand-text {
    font-size: 1.28rem;
    background: linear-gradient(135deg, #fff7ed, var(--gold-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.desktop-nav a,
.mobile-nav a {
    padding: 10px 14px;
    border-radius: 999px;
    color: #cbd5e1;
    transition: 0.2s ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.mobile-nav a:hover,
.mobile-nav a.is-active {
    color: #fff;
    background: rgba(245, 158, 11, 0.16);
}

.header-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    min-width: min(420px, 32vw);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.72);
    overflow: hidden;
}

.header-search input,
.search-panel input,
.filter-bar input {
    width: 100%;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.header-search input {
    padding: 12px 16px;
}

.header-search button,
.search-panel button {
    border: 0;
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 800;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: #fff;
    background: rgba(15, 23, 42, 0.8);
}

.mobile-nav {
    display: none;
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 16px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.94);
}

.hero {
    width: min(1380px, calc(100% - 32px));
    margin: 28px auto 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.hero-shell {
    position: relative;
    min-height: 610px;
    border: 1px solid var(--line);
    border-radius: 34px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background: #0f172a;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: center;
    gap: 32px;
    padding: 74px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(18px) brightness(0.42) saturate(1.25);
    transform: scale(1.12);
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.72) 46%, rgba(2, 6, 23, 0.34) 100%),
        radial-gradient(circle at 74% 36%, rgba(245, 158, 11, 0.2), transparent 24rem);
}

.hero-content,
.hero-poster {
    position: relative;
    z-index: 2;
}

.eyebrow,
.content-section .section-heading p,
.page-hero p,
.search-panel p {
    margin: 0 0 12px;
    color: var(--gold-light);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-content h1 {
    margin: 0;
    max-width: 820px;
    font-size: clamp(2.6rem, 5vw, 5.8rem);
    line-height: 1.02;
    letter-spacing: -0.06em;
}

.hero-content p {
    max-width: 680px;
    margin: 24px 0 0;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

.hero-tags {
    margin: 24px 0 0;
}

.hero-tags span,
.tag-row span {
    border: 1px solid rgba(251, 191, 36, 0.26);
    border-radius: 999px;
    padding: 7px 12px;
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
}

.hero-actions,
.detail-actions {
    margin-top: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.primary-button,
.ghost-button,
.section-more,
.filter-bar a,
.card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    font-weight: 900;
    transition: 0.2s ease;
}

.primary-button,
.card-actions a {
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.28);
}

.primary-button,
.ghost-button {
    padding: 0 24px;
}

.ghost-button,
.section-more,
.filter-bar a {
    border: 1px solid var(--line);
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.64);
}

.primary-button:hover,
.card-actions a:hover,
.header-search button:hover,
.search-panel button:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.ghost-button:hover,
.section-more:hover,
.filter-bar a:hover {
    color: #fff;
    border-color: rgba(251, 191, 36, 0.45);
    background: rgba(245, 158, 11, 0.14);
}

.hero-poster {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

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

.hero-dots {
    position: absolute;
    left: 74px;
    bottom: 42px;
    z-index: 5;
    display: flex;
    gap: 10px;
}

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

.hero-dots button.is-active {
    width: 58px;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.hero-side,
.ranking-panel,
.detail-aside,
.category-card,
.search-panel,
.filter-bar,
.detail-article {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-side {
    padding: 24px;
}

.hero-side h2,
.detail-aside h2,
.footer-links h2 {
    margin: 0 0 18px;
    font-size: 1.2rem;
}

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

.mini-link {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 10px;
    border: 1px solid transparent;
    border-radius: 18px;
    transition: 0.2s ease;
}

.mini-link:hover {
    border-color: rgba(251, 191, 36, 0.3);
    background: rgba(245, 158, 11, 0.1);
}

.mini-link img {
    width: 58px;
    height: 78px;
    border-radius: 12px;
    object-fit: cover;
    background: #0f172a;
}

.mini-link strong,
.mini-link em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-link strong {
    color: #fff;
}

.mini-link em {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.86rem;
    font-style: normal;
}

.category-pills {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto 26px;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 0 10px;
}

.category-pills a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 12px 18px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.7);
}

.category-pills a:hover {
    color: #fff;
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(245, 158, 11, 0.14);
}

.content-section,
.category-overview,
.filter-bar,
.search-panel,
.detail-layout,
.player-section,
.page-hero,
.detail-hero {
    width: min(1380px, calc(100% - 32px));
    margin-left: auto;
    margin-right: auto;
}

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

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

.section-heading h2,
.page-hero h1,
.search-panel h2,
.detail-info h1,
.detail-article h2 {
    margin: 0;
    letter-spacing: -0.04em;
}

.section-heading h2,
.search-panel h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.section-more {
    padding: 0 18px;
}

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

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

.movie-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.76);
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
    transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.36);
    background: rgba(30, 41, 59, 0.88);
}

.poster-link {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0f172a;
}

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

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

.poster-glow {
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(0deg, rgba(2, 6, 23, 0.9), transparent);
}

.rank-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    min-width: 38px;
    height: 38px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

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

.movie-meta-line,
.card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.movie-meta-line {
    color: var(--muted);
    font-size: 0.82rem;
}

.movie-card h3 {
    margin: 10px 0 8px;
    min-height: 2.7em;
    color: #fff;
    font-size: 1.05rem;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--gold-light);
}

.movie-card p {
    min-height: 4.5em;
    margin: 0 0 14px;
    color: #aebbd0;
    font-size: 0.92rem;
    line-height: 1.65;
}

.tag-row {
    margin-bottom: 16px;
    gap: 7px;
}

.tag-row span {
    padding: 5px 9px;
    font-size: 0.78rem;
}

.card-actions a {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.9rem;
}

.card-actions span {
    color: var(--gold-light);
    font-weight: 900;
}

.search-panel {
    margin-top: 38px;
    margin-bottom: 54px;
    padding: 32px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 560px);
    gap: 28px;
    align-items: center;
}

.search-panel form {
    display: flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(2, 6, 23, 0.52);
}

.search-panel input {
    padding: 16px 18px;
}

.search-panel button {
    padding: 0 24px;
}

.page-hero {
    margin-top: 28px;
    padding: 54px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 28px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(30, 41, 59, 0.68)),
        radial-gradient(circle at right center, rgba(245, 158, 11, 0.2), transparent 24rem);
    box-shadow: var(--shadow);
}

.compact-hero {
    display: block;
}

.page-hero h1 {
    font-size: clamp(2rem, 4vw, 4rem);
}

.page-hero span {
    display: block;
    max-width: 850px;
    margin-top: 16px;
    color: #cbd5e1;
    line-height: 1.9;
}

.category-overview {
    padding: 34px 0 54px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.category-card {
    padding: 24px;
}

.category-main {
    display: block;
    margin-bottom: 18px;
}

.category-main span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--gold-light);
    font-weight: 900;
}

.category-main strong {
    display: block;
    color: #fff;
    font-size: 1.14rem;
    line-height: 1.7;
}

.filter-bar {
    margin-top: 24px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.filter-bar label {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0 18px;
    background: rgba(2, 6, 23, 0.5);
}

.filter-bar label span {
    color: var(--gold-light);
    font-weight: 900;
    white-space: nowrap;
}

.filter-bar input {
    min-height: 48px;
}

.filter-bar a {
    padding: 0 18px;
}

.search-filter {
    align-items: flex-start;
    flex-direction: column;
}

.search-filter label {
    width: 100%;
}

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

.filter-buttons button {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 9px 14px;
    color: #e2e8f0;
    background: rgba(15, 23, 42, 0.7);
    cursor: pointer;
}

.filter-buttons button.is-active,
.filter-buttons button:hover {
    color: #1f1300;
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
}

.detail-hero {
    margin-top: 28px;
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    padding: 42px;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        radial-gradient(circle at 18% 20%, rgba(245, 158, 11, 0.2), transparent 28rem),
        rgba(15, 23, 42, 0.76);
    box-shadow: var(--shadow);
}

.detail-cover {
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
}

.detail-cover img {
    width: 100%;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    background: #0f172a;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--muted);
}

.breadcrumb a {
    color: #fde68a;
}

.detail-info h1 {
    font-size: clamp(2.1rem, 4.4vw, 5rem);
    line-height: 1.05;
}

.detail-info p {
    max-width: 900px;
    color: #cbd5e1;
    font-size: 1.08rem;
    line-height: 1.9;
}

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

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

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

.play-layer {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    border: 0;
    color: #fff;
    background: radial-gradient(circle, rgba(2, 6, 23, 0.28), rgba(2, 6, 23, 0.72));
    cursor: pointer;
    transition: 0.24s ease;
}

.play-layer.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-light), var(--orange));
    box-shadow: 0 20px 60px rgba(245, 158, 11, 0.34);
    font-size: 2rem;
}

.play-layer strong {
    font-size: 1.2rem;
}

.detail-layout {
    padding: 30px 0 8px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
}

.detail-article {
    padding: 30px;
}

.detail-article h2 {
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.6rem;
}

.detail-article p {
    color: #cbd5e1;
    line-height: 2;
}

.info-list {
    margin: 28px 0 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.info-list div {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    background: rgba(2, 6, 23, 0.34);
}

.info-list dt {
    color: var(--muted);
    font-size: 0.82rem;
}

.info-list dd {
    margin: 6px 0 0;
    color: #fff;
    font-weight: 800;
}

.detail-aside {
    padding: 24px;
    align-self: start;
    position: sticky;
    top: 100px;
}

.ranking-panel {
    padding: 16px;
}

.site-footer {
    margin-top: 34px;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.7);
}

.footer-inner {
    width: min(1380px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0;
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(180px, 0.45fr));
    gap: 34px;
}

.footer-brand {
    margin-bottom: 14px;
}

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

.footer-links {
    display: grid;
    gap: 10px;
    align-content: start;
}

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

.footer-links a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding: 18px;
    text-align: center;
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1180px) {
    .hero {
        grid-template-columns: 1fr;
    }

    .hero-side {
        display: none;
    }

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

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

    .detail-aside {
        position: static;
    }
}

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

    .menu-button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .mobile-nav.is-open {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }

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

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 38px 26px 80px;
    }

    .hero-poster {
        width: min(260px, 70vw);
    }

    .hero-dots {
        left: 28px;
        bottom: 28px;
    }

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

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

    .search-panel,
    .detail-hero {
        grid-template-columns: 1fr;
        padding: 28px;
    }

    .filter-bar {
        align-items: stretch;
        flex-direction: column;
    }

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

    .footer-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .header-inner,
    .hero,
    .category-pills,
    .content-section,
    .category-overview,
    .filter-bar,
    .search-panel,
    .detail-layout,
    .player-section,
    .page-hero,
    .detail-hero,
    .footer-inner {
        width: min(100% - 22px, 1380px);
    }

    .mobile-nav.is-open {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-shell {
        min-height: 680px;
        border-radius: 24px;
    }

    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-content p,
    .detail-info p {
        font-size: 1rem;
    }

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

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

    .detail-cover {
        max-width: 280px;
    }

    .info-list {
        grid-template-columns: 1fr;
    }
}
