:root {
    color-scheme: dark;
    --bg: #09090b;
    --panel: rgba(24, 24, 27, 0.78);
    --panel-solid: #18181b;
    --line: rgba(245, 158, 11, 0.22);
    --text: #f8fafc;
    --muted: #cbd5e1;
    --soft: #94a3b8;
    --gold: #f59e0b;
    --gold-2: #facc15;
    --red: #ef4444;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
    --radius: 26px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 34rem),
        radial-gradient(circle at top right, rgba(239, 68, 68, 0.15), transparent 28rem),
        linear-gradient(180deg, #111111 0%, #09090b 42%, #060607 100%);
    color: var(--text);
    min-height: 100vh;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(9, 9, 11, 0.78);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-logo,
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.03em;
}

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 14px;
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.35);
}

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

.site-nav a {
    color: var(--muted);
    padding: 10px 16px;
    border-radius: 999px;
    transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
    color: #fff;
    background: rgba(245, 158, 11, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: #fff;
    border-radius: 999px;
}

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    border-bottom: 1px solid rgba(245, 158, 11, 0.14);
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.65s ease;
    background-image:
        linear-gradient(90deg, rgba(9, 9, 11, 0.96) 0%, rgba(9, 9, 11, 0.72) 45%, rgba(9, 9, 11, 0.28) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 34%, rgba(250, 204, 21, 0.24), transparent 24rem),
        linear-gradient(180deg, transparent 0%, rgba(9, 9, 11, 0.96) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 32px));
    min-height: 680px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) 380px;
    align-items: center;
    gap: 54px;
    padding: 86px 0 72px;
}

.hero-copy {
    max-width: 760px;
}

.hero-kicker,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-2);
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: 0.14em;
    font-size: 13px;
}

.hero-copy h1,
.page-hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 1.02;
    font-weight: 950;
    letter-spacing: -0.06em;
}

.hero-copy h2 {
    margin: 0 0 18px;
    font-size: clamp(28px, 4vw, 52px);
    line-height: 1.08;
    color: var(--gold-2);
    font-weight: 900;
}

.hero-copy p,
.page-hero p,
.section-head p {
    color: var(--muted);
    line-height: 1.8;
    font-size: 17px;
}

.hero-actions,
.search-row,
.detail-meta,
.hero-controls {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.section-link,
.search-row button,
.search-tools button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 800;
    border: 1px solid rgba(250, 204, 21, 0.32);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn,
.search-row button,
.search-tools button {
    color: #1f1300;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 16px 34px rgba(245, 158, 11, 0.28);
}

.ghost-btn,
.section-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover,
.section-link:hover,
.search-row button:hover,
.search-tools button:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 45px rgba(245, 158, 11, 0.24);
}

.hero-poster {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: var(--shadow);
    transform: rotate(2deg);
}

.hero-poster img,
.poster-link img,
.strip-item img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-controls {
    position: absolute;
    z-index: 4;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
}

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

.hero-dot.is-active {
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.tag-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tag-list span {
    color: #fde68a;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.22);
}

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

.quick-search {
    margin-top: -44px;
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 18px;
}

.search-panel,
.hot-entry,
.prose-card,
.side-card,
.category-overview-card,
.player-shell,
.movie-card,
.rank-feature,
.category-tile {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.search-panel {
    padding: 24px;
}

.search-panel label {
    display: block;
    margin-bottom: 12px;
    color: #fde68a;
    font-weight: 800;
}

.search-row input,
.search-tools input,
.search-tools select,
.inline-filter input,
.inline-filter select {
    min-height: 48px;
    color: #fff;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.32);
    padding: 0 18px;
    outline: none;
}

.search-row input {
    flex: 1;
    min-width: 220px;
}

.hot-entry {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    background:
        radial-gradient(circle at top right, rgba(250, 204, 21, 0.28), transparent 12rem),
        rgba(24, 24, 27, 0.86);
}

.hot-entry span {
    color: var(--gold-2);
    font-weight: 800;
}

.hot-entry strong {
    font-size: 24px;
}

.section-block {
    padding: 72px 0 0;
}

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

.section-head h2 {
    margin: 8px 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.04em;
}

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

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

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

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(250, 204, 21, 0.52);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
}

.poster-link {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.24), rgba(239, 68, 68, 0.18));
}

.poster-link img {
    transition: transform 0.35s ease, filter 0.35s ease;
}

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

.movie-year,
.rank-num {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #1f1300;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.rank-num {
    left: auto;
    right: 12px;
}

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

.movie-card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    font-weight: 900;
}

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

.movie-meta {
    margin-bottom: 12px;
    color: var(--soft);
    font-size: 13px;
}

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

.category-tile {
    min-height: 190px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    overflow: hidden;
    position: relative;
    background-image:
        linear-gradient(180deg, rgba(9, 9, 11, 0.12), rgba(9, 9, 11, 0.9)),
        var(--tile-image);
    background-size: cover;
    background-position: center;
}

.category-tile span,
.category-overview-card span {
    color: var(--gold-2);
    font-weight: 900;
}

.category-tile strong {
    line-height: 1.45;
}

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

.strip-item {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    background: rgba(255, 255, 255, 0.05);
}

.strip-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 20%, rgba(0, 0, 0, 0.86) 100%);
}

.strip-item span,
.strip-item strong,
.strip-item small {
    position: absolute;
    left: 14px;
    right: 14px;
    z-index: 2;
}

.strip-item span {
    top: 12px;
    color: #1f1300;
    width: max-content;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.strip-item strong {
    bottom: 30px;
    font-size: 16px;
}

.strip-item small {
    bottom: 12px;
    color: var(--muted);
}

.page-hero {
    padding: 82px 0 24px;
}

.page-hero-inner {
    padding: 0;
}

.search-tools,
.inline-filter {
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-tools input,
.inline-filter input {
    min-width: 280px;
    flex: 1;
}

.search-tools select,
.inline-filter select {
    min-width: 150px;
}

.category-page-hero {
    padding: 74px 0 34px;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.18), transparent 22rem),
        linear-gradient(180deg, rgba(24, 24, 27, 0.92), transparent);
}

.category-overview-list {
    display: grid;
    gap: 22px;
    padding-bottom: 36px;
}

.category-overview-card {
    padding: 24px;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 22px;
}

.category-overview-copy h2 {
    margin: 8px 0 14px;
    font-size: 28px;
}

.category-overview-copy p {
    color: var(--muted);
    line-height: 1.7;
}

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

.rank-feature {
    min-height: 260px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 8px;
    background-image:
        linear-gradient(180deg, rgba(9, 9, 11, 0.05), rgba(9, 9, 11, 0.92)),
        var(--rank-image);
    background-size: cover;
    background-position: center;
}

.rank-feature span {
    color: #1f1300;
    width: max-content;
    padding: 6px 10px;
    border-radius: 999px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.rank-feature strong {
    font-size: 26px;
}

.rank-feature small {
    color: var(--muted);
}

.detail-hero {
    position: relative;
    overflow: hidden;
}

.detail-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(9, 9, 11, 0.98), rgba(9, 9, 11, 0.72)),
        var(--detail-image);
    background-size: cover;
    background-position: center;
    filter: blur(8px) saturate(1.18);
    transform: scale(1.04);
}

.detail-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent, #09090b 100%);
}

.detail-hero-inner {
    position: relative;
    z-index: 2;
    min-height: 540px;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 42px;
    align-items: center;
    padding: 64px 0 46px;
}

.detail-poster {
    overflow: hidden;
    border-radius: 28px;
    aspect-ratio: 2 / 3;
    box-shadow: var(--shadow);
    background: rgba(255, 255, 255, 0.05);
}

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

.breadcrumb a {
    color: #fde68a;
}

.detail-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.detail-one-line {
    max-width: 760px;
    color: var(--muted);
    line-height: 1.8;
    font-size: 18px;
}

.detail-meta {
    margin: 22px 0 18px;
}

.detail-meta span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-tags {
    margin-bottom: 26px;
}

.player-section {
    margin-top: -24px;
    position: relative;
    z-index: 3;
}

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

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

.play-cover {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 16px;
    color: #fff;
    border: 0;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.28), rgba(0, 0, 0, 0.62));
    z-index: 2;
}

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

.play-icon {
    width: 86px;
    height: 86px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 18px 48px rgba(245, 158, 11, 0.38);
    position: relative;
}

.play-icon::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 26px;
    border-left: 25px solid #1f1300;
    border-top: 17px solid transparent;
    border-bottom: 17px solid transparent;
}

.play-cover strong {
    font-size: 20px;
}

.detail-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
}

.prose-card,
.side-card {
    padding: 28px;
}

.prose-card h2,
.side-card h2,
.site-footer h2 {
    margin: 0 0 16px;
    font-size: 22px;
    font-weight: 900;
}

.prose-card p {
    color: var(--muted);
    line-height: 1.9;
    margin: 0 0 22px;
}

.side-card dl {
    margin: 0;
}

.side-card div {
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.side-card dt {
    color: var(--soft);
    font-size: 13px;
}

.side-card dd {
    margin: 6px 0 0;
    color: #fff;
}

.site-footer {
    margin-top: 86px;
    border-top: 1px solid rgba(245, 158, 11, 0.16);
    background: rgba(0, 0, 0, 0.26);
}

.footer-grid {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 46px 0;
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 1fr;
    gap: 32px;
}

.site-footer p,
.site-footer a {
    color: var(--muted);
    line-height: 1.8;
}

.site-footer a {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    padding: 18px 0 28px;
    color: var(--soft);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

[hidden] {
    display: none !important;
}

@media (max-width: 1020px) {
    .hero-content,
    .detail-hero-inner,
    .detail-content,
    .category-overview-card,
    .footer-grid,
    .quick-search {
        grid-template-columns: 1fr;
    }

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

    .hero-poster {
        width: min(320px, 72vw);
        transform: none;
    }

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

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

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

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

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        left: 16px;
        right: 16px;
        top: 70px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border: 1px solid rgba(245, 158, 11, 0.22);
        border-radius: 20px;
        background: rgba(9, 9, 11, 0.96);
    }

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

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

    .hero-content {
        gap: 28px;
    }

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

    .movie-grid,
    .small-grid,
    .category-grid,
    .strip-list,
    .mini-strip,
    .rank-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
    }

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

    .search-tools input,
    .inline-filter input,
    .search-row input,
    .search-tools select,
    .inline-filter select,
    .search-row button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 460px) {
    .movie-grid,
    .small-grid,
    .category-grid,
    .strip-list,
    .mini-strip,
    .rank-feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .page-hero h1 {
        font-size: 36px;
    }
}
