:root {
    color-scheme: dark;
    --bg: #020617;
    --panel: rgba(15, 23, 42, 0.86);
    --panel-strong: rgba(15, 23, 42, 0.96);
    --line: rgba(148, 163, 184, 0.18);
    --text: #f8fafc;
    --muted: #94a3b8;
    --soft: #cbd5e1;
    --accent: #f59e0b;
    --accent-2: #fbbf24;
    --accent-dark: #92400e;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 25px 90px rgba(0, 0, 0, 0.35);
    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 20% 0%, rgba(245, 158, 11, 0.16), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(14, 165, 233, 0.12), transparent 36rem),
        linear-gradient(180deg, #020617 0%, #0f172a 42%, #020617 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), transparent 70%);
    z-index: -1;
}

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

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

button,
input,
select {
    font: inherit;
}

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

.nav-shell {
    max-width: 1440px;
    height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 205px;
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    color: #111827;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 12px 34px rgba(245, 158, 11, 0.28);
}

.brand-text {
    display: grid;
    line-height: 1.1;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: 0.02em;
}

.brand-text em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    margin-top: 4px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav::-webkit-scrollbar {
    display: none;
}

.main-nav a {
    white-space: nowrap;
    padding: 10px 14px;
    color: var(--soft);
    border-radius: 12px;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: #fff;
    background: rgba(148, 163, 184, 0.14);
    transform: translateY(-1px);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
    border-radius: 99px;
}

main {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 24px 64px;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 22px;
    min-height: 630px;
    margin-bottom: 44px;
}

.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    background: rgba(15, 23, 42, 0.7);
    box-shadow: var(--shadow);
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 40px;
    align-items: center;
    padding: 60px;
    opacity: 0;
    pointer-events: none;
    transform: scale(1.015);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

.hero-backdrop {
    position: absolute;
    inset: 0;
    z-index: -2;
    overflow: hidden;
}

.hero-backdrop img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(10px) saturate(1.1);
    opacity: 0.38;
    transform: scale(1.08);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2, 6, 23, 0.94), rgba(15, 23, 42, 0.78), rgba(2, 6, 23, 0.42)),
        linear-gradient(0deg, rgba(2, 6, 23, 0.86), transparent 55%);
}

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

.eyebrow {
    margin: 0 0 14px;
    color: var(--accent-2);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 13px;
}

.hero h1,
.page-hero h1,
.detail-info h1 {
    margin: 0;
    font-size: clamp(40px, 6vw, 76px);
    line-height: 0.96;
    letter-spacing: -0.05em;
}

.hero-desc,
.page-hero p,
.detail-one-line {
    margin: 24px 0 0;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.8;
}

.hero-tags,
.tag-row,
.detail-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
}

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

.hero-tags span,
.tag-row span,
.detail-meta span {
    color: #fde68a;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.22);
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
}

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

.primary-btn,
.ghost-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
    font-weight: 800;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.primary-btn {
    color: #111827;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.25);
}

.ghost-btn {
    color: #fff;
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid var(--line);
}

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

.hero-poster,
.detail-cover,
.poster-frame {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(15, 23, 42, 0.88)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.08), transparent 50%);
}

.hero-poster {
    aspect-ratio: 2 / 3;
    border-radius: 26px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.48);
}

.hero-poster img,
.detail-cover img,
.poster-frame img {
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease, opacity 0.25s ease;
}

.hero-dots {
    position: absolute;
    left: 58px;
    bottom: 34px;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 36px;
    height: 8px;
    border: 0;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.28);
    cursor: pointer;
}

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

.hero-side {
    display: grid;
    gap: 18px;
}

.hero-side a {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 180px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.82));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
    flex-direction: column;
    justify-content: flex-end;
}

.hero-side a::before {
    content: "";
    position: absolute;
    inset: auto -20% -35% auto;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.18);
    filter: blur(2px);
}

.hero-side strong {
    font-size: 24px;
}

.hero-side span {
    margin-top: 8px;
    color: var(--muted);
}

.content-section {
    margin-top: 46px;
}

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

.section-title-row h2 {
    margin: 0;
    font-size: clamp(28px, 3vw, 42px);
    letter-spacing: -0.03em;
}

.section-more {
    color: #fde68a;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

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

.category-card,
.category-overview-card {
    position: relative;
    overflow: hidden;
    min-height: 172px;
    padding: 22px;
    border-radius: 24px;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.92));
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.16);
}

.category-card::after,
.category-overview-card::after {
    content: "";
    position: absolute;
    right: -50px;
    bottom: -50px;
    width: 150px;
    height: 150px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.12);
}

.category-card span {
    color: var(--accent-2);
    font-weight: 900;
    font-size: 13px;
}

.category-card strong,
.category-heading span {
    display: block;
    margin-top: 12px;
    font-size: 24px;
}

.category-card em,
.category-overview-card p {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-style: normal;
    line-height: 1.7;
}

.category-heading {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.category-heading strong {
    color: #fde68a;
    font-size: 13px;
    white-space: nowrap;
}

.mini-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mini-links a {
    padding: 7px 10px;
    border-radius: 999px;
    color: #e2e8f0;
    background: rgba(148, 163, 184, 0.12);
    font-size: 13px;
}

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

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

.movie-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.78);
    box-shadow: 0 16px 46px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.movie-card:hover {
    transform: translateY(-5px);
    border-color: rgba(245, 158, 11, 0.38);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
}

.poster-frame {
    position: relative;
    display: block;
    aspect-ratio: 2 / 3;
    border-width: 0;
    border-radius: 0;
}

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

.play-chip,
.rank-badge {
    position: absolute;
    z-index: 2;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 900;
}

.play-chip {
    right: 10px;
    bottom: 10px;
    color: #111827;
    padding: 7px 10px;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.rank-badge {
    left: 10px;
    top: 10px;
    min-width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: #111827;
    background: #fde68a;
}

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

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}

.meta-row span:not(:last-child)::after {
    content: "·";
    padding-left: 8px;
    color: rgba(148, 163, 184, 0.45);
}

.movie-card h3 {
    margin: 12px 0 0;
    font-size: 18px;
    line-height: 1.35;
}

.movie-card h3 a:hover {
    color: var(--accent-2);
}

.movie-card p {
    min-height: 66px;
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.tag-row {
    margin-top: 14px;
}

.tag-row span {
    color: var(--soft);
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.18);
}

.page-hero,
.detail-hero,
.player-shell,
.article-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.9));
    box-shadow: var(--shadow);
}

.page-hero {
    overflow: hidden;
    position: relative;
    padding: clamp(36px, 8vw, 86px);
}

.page-hero::after {
    content: "";
    position: absolute;
    width: 430px;
    height: 430px;
    right: -110px;
    top: -160px;
    border-radius: 999px;
    background: rgba(245, 158, 11, 0.13);
}

.page-hero h1 {
    max-width: 880px;
}

.page-hero p {
    max-width: 780px;
}

.filter-panel {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) repeat(3, minmax(160px, 220px));
    gap: 14px;
    margin: 0 0 24px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.74);
}

.filter-panel label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
}

.filter-panel input,
.filter-panel select {
    width: 100%;
    min-height: 46px;
    color: var(--text);
    background: rgba(2, 6, 23, 0.82);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0 14px;
    outline: none;
}

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

.filter-empty {
    display: none;
    padding: 28px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--line);
    border-radius: 20px;
}

.filter-empty.is-visible {
    display: block;
}

.detail-hero {
    position: relative;
    overflow: hidden;
    background: rgba(15, 23, 42, 0.85);
}

.detail-backdrop {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    z-index: 0;
}

.detail-backdrop img {
    height: 100%;
    object-fit: cover;
    filter: blur(14px) saturate(1.12);
    transform: scale(1.08);
}

.detail-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(2, 6, 23, 0.96), rgba(15, 23, 42, 0.85), rgba(2, 6, 23, 0.64));
}

.detail-shell {
    position: relative;
    z-index: 1;
    padding: clamp(28px, 5vw, 58px);
}

.breadcrumb,
.breadcrumb-separator {
    color: var(--muted);
    font-size: 14px;
}

.breadcrumb:hover {
    color: var(--accent-2);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
    gap: clamp(26px, 4vw, 56px);
    align-items: center;
    margin-top: 30px;
}

.detail-cover {
    aspect-ratio: 2 / 3;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.detail-info h1 {
    max-width: 900px;
}

.detail-meta {
    margin-top: 24px;
}

.wide-tags span {
    margin-top: 4px;
}

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

.player-shell {
    padding: clamp(14px, 2vw, 24px);
}

.video-box {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    background: #000;
}

.movie-player {
    width: 100%;
    height: 100%;
    display: block;
    background: #000;
    cursor: pointer;
}

.player-cover {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    gap: 14px;
    color: var(--text);
    background: linear-gradient(180deg, rgba(2, 6, 23, 0.38), rgba(2, 6, 23, 0.72));
    border: 0;
    cursor: pointer;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.play-button {
    width: 82px;
    height: 82px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    color: #111827;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 18px 42px rgba(245, 158, 11, 0.28);
    font-size: 30px;
}

.player-cover strong {
    font-size: clamp(22px, 4vw, 38px);
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.article-panel {
    padding: clamp(24px, 4vw, 36px);
}

.article-panel:last-child {
    grid-column: 1 / -1;
}

.article-panel h2 {
    margin: 0;
    font-size: 28px;
}

.article-panel p {
    color: var(--soft);
    line-height: 1.9;
    font-size: 16px;
}

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

.footer-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 38px 24px;
    display: grid;
    gap: 14px;
    color: var(--muted);
}

.footer-brand {
    color: #fff;
    font-size: 24px;
    font-weight: 900;
}

.footer-inner p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-links a:hover {
    color: var(--accent-2);
}

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

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

    .hero {
        grid-template-columns: 1fr;
    }

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

    .hero-side a {
        min-height: 140px;
    }
}

@media (max-width: 900px) {
    .nav-shell {
        height: auto;
        min-height: 66px;
        flex-wrap: wrap;
        padding: 12px 18px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px 0;
    }

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

    .main-nav a {
        padding: 12px 14px;
    }

    main {
        padding: 20px 16px 48px;
    }

    .hero {
        min-height: auto;
    }

    .hero-slider {
        min-height: 780px;
    }

    .hero-slide {
        grid-template-columns: 1fr;
        padding: 34px 24px 80px;
        align-content: center;
    }

    .hero-poster {
        max-width: 260px;
    }

    .hero-dots {
        left: 24px;
        bottom: 26px;
    }

    .hero-side {
        grid-template-columns: 1fr;
    }

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

    .article-panel:last-child {
        grid-column: auto;
    }

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

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

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

@media (max-width: 640px) {
    .brand-text strong {
        font-size: 18px;
    }

    .brand-text em {
        display: none;
    }

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

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

    .movie-card p {
        display: none;
    }

    .tag-row span:nth-child(n + 4) {
        display: none;
    }

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

    .hero h1,
    .page-hero h1,
    .detail-info h1 {
        font-size: 40px;
    }

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

    .page-hero,
    .detail-shell {
        padding: 28px 20px;
    }

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