:root {
    --bg-main: #020617;
    --bg-soft: #0f172a;
    --bg-card: rgba(15, 23, 42, 0.78);
    --bg-glass: rgba(15, 23, 42, 0.68);
    --line: rgba(245, 158, 11, 0.22);
    --line-soft: rgba(255, 255, 255, 0.08);
    --text: #fff7ed;
    --muted: rgba(253, 230, 138, 0.72);
    --muted-soft: rgba(253, 230, 138, 0.52);
    --amber: #f59e0b;
    --amber-light: #fcd34d;
    --amber-deep: #b45309;
    --red: #ef4444;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    --radius: 22px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    background:
        radial-gradient(circle at top left, rgba(245, 158, 11, 0.16), transparent 32rem),
        radial-gradient(circle at 80% 10%, rgba(239, 68, 68, 0.12), transparent 28rem),
        linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
}

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

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

button,
input,
select {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 60;
    border-bottom: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.82);
    backdrop-filter: blur(18px);
}

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

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

.logo-mark {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: #1f1300;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 16px 38px rgba(245, 158, 11, 0.32);
}

.logo-text {
    font-size: 22px;
    background: linear-gradient(90deg, #fde68a, #f59e0b, #fff7ed);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    color: rgba(255, 237, 213, 0.86);
    font-size: 15px;
}

.nav-links a {
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    color: var(--amber-light);
}

.nav-links a.is-active::after,
.nav-links a:hover::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -10px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, var(--amber-light), transparent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-form input,
.filter-input,
.filter-select {
    width: 220px;
    border: 1px solid rgba(245, 158, 11, 0.26);
    border-radius: 999px;
    color: #fffbeb;
    background: rgba(255, 255, 255, 0.08);
    outline: none;
    padding: 11px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-form input:focus,
.filter-input:focus,
.filter-select:focus {
    border-color: rgba(252, 211, 77, 0.78);
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.14);
    background: rgba(255, 255, 255, 0.12);
}

.search-form button,
.nav-toggle,
.btn,
.ghost-btn,
.play-link {
    border: 0;
    cursor: pointer;
}

.search-form button {
    min-width: 48px;
    height: 43px;
    border-radius: 999px;
    color: #1f1300;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    font-weight: 800;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.mobile-nav {
    display: none;
    border-top: 1px solid var(--line);
    background: rgba(2, 6, 23, 0.96);
}

.mobile-nav-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    gap: 14px;
    padding: 16px 0 20px;
}

.mobile-nav a {
    padding: 10px 0;
    color: rgba(255, 237, 213, 0.9);
}

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

.hero-slider {
    position: relative;
    min-height: 720px;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
    background: #020617;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.75s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.04) contrast(1.04);
    opacity: 0.46;
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 18%, rgba(245, 158, 11, 0.2), transparent 24rem),
        linear-gradient(90deg, rgba(2, 6, 23, 0.98) 0%, rgba(2, 6, 23, 0.86) 38%, rgba(2, 6, 23, 0.35) 100%),
        linear-gradient(180deg, rgba(2, 6, 23, 0.36) 0%, #020617 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: min(1220px, calc(100% - 32px));
    min-height: 720px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    align-items: center;
    gap: 44px;
    padding: 80px 0 92px;
}

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

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--amber-light);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: var(--amber);
    box-shadow: 0 0 20px var(--amber);
}

.hero-copy h1 {
    margin: 0 0 18px;
    max-width: 760px;
    font-size: clamp(42px, 6vw, 78px);
    line-height: 1.03;
    letter-spacing: -0.05em;
}

.hero-copy p {
    margin: 0 0 28px;
    max-width: 660px;
    color: rgba(255, 237, 213, 0.82);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.75;
}

.hero-meta,
.detail-meta,
.movie-kicker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
}

.hero-meta span,
.detail-meta span,
.movie-kicker span,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.58);
    padding: 7px 11px;
    font-size: 13px;
}

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

.btn,
.ghost-btn,
.play-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    border-radius: 999px;
    padding: 0 21px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn,
.play-link {
    color: #1c1305;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 16px 44px rgba(245, 158, 11, 0.28);
}

.ghost-btn {
    border: 1px solid rgba(252, 211, 77, 0.28);
    color: var(--amber-light);
    background: rgba(255, 255, 255, 0.08);
}

.btn:hover,
.ghost-btn:hover,
.play-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(245, 158, 11, 0.34);
}

.hero-feature {
    align-self: stretch;
    display: flex;
    align-items: center;
}

.hero-poster-card {
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(252, 211, 77, 0.24);
    border-radius: 30px;
    background: rgba(2, 6, 23, 0.42);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.hero-poster {
    position: relative;
    aspect-ratio: 3 / 4.1;
    overflow: hidden;
}

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

.hero-poster-card:hover img {
    transform: scale(1.04);
}

.hero-poster::after,
.poster-frame::after,
.detail-cover::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 44%;
    background: linear-gradient(180deg, transparent, rgba(2, 6, 23, 0.88));
}

.hero-poster-info {
    padding: 20px;
}

.hero-poster-info h2 {
    margin: 0 0 10px;
    font-size: 22px;
}

.hero-poster-info p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

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

.hero-dot {
    width: 34px;
    height: 5px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.28);
    transition: width 0.2s ease, background 0.2s ease;
}

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

.page-shell,
.main-shell {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
}

.main-shell {
    padding: 54px 0 80px;
}

.section {
    margin-top: 64px;
}

.section:first-child {
    margin-top: 0;
}

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

.section-kicker {
    margin: 0 0 8px;
    color: var(--amber-light);
    font-weight: 900;
    letter-spacing: 0.06em;
}

.section h2,
.section-head h2,
.page-hero h1,
.detail-copy h1,
.story-block h2,
.player-section h2 {
    margin: 0;
    color: #fff7ed;
}

.section-head h2,
.page-hero h1 {
    font-size: clamp(30px, 4vw, 48px);
    letter-spacing: -0.035em;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.54));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
    transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.movie-card:hover {
    transform: translateY(-6px);
    border-color: rgba(252, 211, 77, 0.46);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.poster-frame {
    position: relative;
    aspect-ratio: 2 / 2.95;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.92);
}

.poster-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.32s ease, filter 0.32s ease;
}

.movie-card:hover .poster-frame img {
    transform: scale(1.06);
    filter: saturate(1.12);
}

.poster-badge {
    position: absolute;
    left: 12px;
    top: 12px;
    z-index: 2;
    border-radius: 999px;
    padding: 6px 10px;
    color: #1f1300;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    font-size: 12px;
    font-weight: 900;
}

.movie-info {
    padding: 15px 15px 17px;
}

.movie-kicker {
    gap: 6px;
    margin-bottom: 10px;
}

.movie-kicker span {
    padding: 4px 8px;
    font-size: 11px;
}

.movie-info h3 {
    margin: 0 0 9px;
    min-height: 2.7em;
    color: #fff7ed;
    font-size: 17px;
    line-height: 1.35;
}

.movie-info h3 a:hover {
    color: var(--amber-light);
}

.movie-info p {
    margin: 0;
    min-height: 4.7em;
    color: rgba(254, 243, 199, 0.66);
    font-size: 13px;
    line-height: 1.58;
}

.movie-tags,
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 13px;
}

.movie-tags span,
.movie-tags a,
.tag-list span,
.tag-list a {
    border-radius: 999px;
    padding: 5px 9px;
    color: rgba(253, 230, 138, 0.84);
    background: rgba(245, 158, 11, 0.1);
    font-size: 12px;
}

.movie-tags a:hover,
.tag-list a:hover {
    color: #1f1300;
    background: var(--amber-light);
}

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

.category-card {
    min-height: 210px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 28px;
    padding: 24px;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 10%, rgba(245, 158, 11, 0.18), transparent 12rem),
        linear-gradient(145deg, rgba(15, 23, 42, 0.88), rgba(30, 41, 59, 0.42));
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.category-card:hover {
    transform: translateY(-5px);
    border-color: rgba(252, 211, 77, 0.5);
}

.category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
}

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

.category-samples {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    color: rgba(255, 237, 213, 0.82);
    font-size: 14px;
}

.category-samples span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 74px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 10px 14px;
    background: rgba(15, 23, 42, 0.62);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.rank-row:hover {
    transform: translateX(4px);
    border-color: rgba(252, 211, 77, 0.44);
}

.rank-no {
    color: var(--amber-light);
    font-size: 24px;
    font-weight: 950;
    font-variant-numeric: tabular-nums;
}

.rank-cover {
    aspect-ratio: 1 / 1.3;
    overflow: hidden;
    border-radius: 13px;
    background: rgba(15, 23, 42, 0.9);
}

.rank-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rank-main h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.rank-main p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.rank-meta {
    color: rgba(253, 230, 138, 0.82);
    text-align: right;
    font-size: 14px;
}

.page-hero {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 34px;
    padding: 48px;
    background:
        radial-gradient(circle at 85% 10%, rgba(245, 158, 11, 0.24), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.72));
    box-shadow: var(--shadow);
}

.filter-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.filter-input {
    width: min(100%, 360px);
}

.filter-select {
    width: 170px;
}

.empty-state {
    display: none;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 24px;
    margin-top: 26px;
    padding: 34px;
    color: var(--muted);
    text-align: center;
    background: rgba(15, 23, 42, 0.58);
}

.detail-main {
    padding: 34px 0 86px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    color: var(--muted-soft);
    font-size: 14px;
}

.breadcrumb a:hover {
    color: var(--amber-light);
}

.detail-hero {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    gap: 36px;
    align-items: center;
    border: 1px solid rgba(245, 158, 11, 0.18);
    border-radius: 34px;
    padding: 28px;
    background:
        radial-gradient(circle at 84% 14%, rgba(245, 158, 11, 0.2), transparent 22rem),
        linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.72));
    box-shadow: var(--shadow);
}

.detail-cover {
    position: relative;
    overflow: hidden;
    border-radius: 26px;
    aspect-ratio: 2 / 2.95;
    background: rgba(15, 23, 42, 0.92);
}

.detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-copy h1 {
    margin-bottom: 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.detail-one-line {
    margin: 0 0 22px;
    color: rgba(255, 237, 213, 0.84);
    font-size: 19px;
    line-height: 1.8;
}

.player-section,
.story-block,
.related-section {
    margin-top: 48px;
}

.player-section h2,
.story-block h2,
.related-section h2 {
    margin-bottom: 20px;
    font-size: clamp(26px, 3vw, 36px);
}

.player-shell {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 30px;
    background: #020617;
    box-shadow: var(--shadow);
    aspect-ratio: 16 / 9;
}

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

.player-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    border: 0;
    color: #1f1300;
    cursor: pointer;
    background:
        radial-gradient(circle at 50% 44%, rgba(245, 158, 11, 0.18), transparent 18rem),
        linear-gradient(180deg, rgba(2, 6, 23, 0.2), rgba(2, 6, 23, 0.76));
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.player-overlay span {
    width: 86px;
    height: 86px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--amber-light), var(--amber));
    box-shadow: 0 20px 70px rgba(245, 158, 11, 0.34);
    font-size: 34px;
    padding-left: 5px;
}

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

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 24px;
}

.story-card,
.info-card {
    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: 26px;
    padding: 26px;
    background: rgba(15, 23, 42, 0.62);
}

.story-card p,
.info-card p {
    margin: 0 0 16px;
    color: rgba(255, 237, 213, 0.78);
    line-height: 1.9;
}

.info-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.info-list div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line-soft);
    padding-bottom: 12px;
}

.info-list dt {
    color: rgba(253, 230, 138, 0.58);
}

.info-list dd {
    margin: 0;
    color: #fff7ed;
    text-align: right;
}

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

.footer-inner {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(160px, 0.6fr));
    gap: 28px;
    padding: 44px 0;
}

.footer-inner h3,
.footer-inner h4 {
    margin: 0 0 14px;
    color: var(--amber-light);
}

.footer-inner p,
.footer-inner li {
    color: rgba(253, 230, 138, 0.66);
    line-height: 1.8;
}

.footer-inner ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-inner a:hover {
    color: var(--amber-light);
}

.copyright {
    width: min(1220px, calc(100% - 32px));
    margin: 0 auto;
    border-top: 1px solid var(--line-soft);
    padding: 18px 0 24px;
    color: rgba(253, 230, 138, 0.54);
    font-size: 13px;
}

@media (max-width: 1180px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 980px) {
    .nav-links,
    .header-actions .search-form {
        display: none;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

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

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

    .hero-feature {
        max-width: 360px;
    }

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

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

@media (max-width: 720px) {
    .header-inner,
    .page-shell,
    .main-shell,
    .footer-inner,
    .copyright,
    .mobile-nav-inner {
        width: min(100% - 22px, 1220px);
    }

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

    .hero-content {
        gap: 24px;
        padding-bottom: 70px;
    }

    .hero-feature {
        display: none;
    }

    .hero-copy h1 {
        font-size: 42px;
    }

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

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

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

    .rank-meta {
        display: none;
    }

    .page-hero,
    .detail-hero,
    .story-card,
    .info-card {
        padding: 22px;
        border-radius: 24px;
    }

    .filter-input,
    .filter-select {
        width: 100%;
    }
}

@media (max-width: 460px) {
    .logo-text {
        font-size: 19px;
    }

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

    .hero-copy p,
    .detail-one-line {
        font-size: 16px;
    }

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

    .movie-info h3 {
        min-height: auto;
    }

    .movie-info p {
        min-height: auto;
    }
}
