:root {
    --night-950: #0a1929;
    --night-900: #102a43;
    --night-850: #173653;
    --night-800: #243b53;
    --night-700: #334e68;
    --night-600: #486581;
    --amber-500: #f59e0b;
    --amber-400: #fbbf24;
    --amber-300: #fcd34d;
    --text: #f3f4f6;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.08);
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--night-950);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(16, 42, 67, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--amber-400), #d97706);
    color: #102a43;
    box-shadow: 0 10px 28px rgba(245, 158, 11, 0.28);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: #d1d5db;
    font-size: 15px;
}

.desktop-nav a:hover,
.mobile-nav a:hover,
.section-link:hover,
.back-link:hover {
    color: var(--amber-400);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--night-800);
    padding: 10px;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;
    background: #ffffff;
    border-radius: 999px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 0 16px 16px;
    background: rgba(16, 42, 67, 0.98);
}

.mobile-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #e5e7eb;
}

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

.hero-slider {
    position: relative;
    min-height: 680px;
    overflow: hidden;
    background: var(--night-900);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.04);
    filter: saturate(1.08);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 24%, rgba(251, 191, 36, 0.20), transparent 26%),
        linear-gradient(90deg, rgba(10, 25, 41, 0.96) 0%, rgba(10, 25, 41, 0.74) 42%, rgba(10, 25, 41, 0.24) 100%),
        linear-gradient(0deg, var(--night-950) 0%, rgba(10, 25, 41, 0.10) 38%);
}

.hero-content {
    position: relative;
    min-height: 680px;
    display: flex;
    align-items: center;
    padding-top: 34px;
    padding-bottom: 96px;
}

.hero-copy {
    width: min(720px, 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--amber-400);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--amber-400);
    border-radius: 999px;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.hero-copy h1,
.page-hero h1,
.detail-copy h1 {
    font-size: clamp(40px, 6vw, 78px);
    line-height: 1.04;
    font-weight: 900;
    color: #ffffff;
    text-wrap: balance;
}

.hero-lead,
.detail-lead,
.page-hero p,
.intro-strip p {
    margin-top: 18px;
    color: #d1d5db;
    font-size: 18px;
    max-width: 780px;
}

.hero-meta,
.detail-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.hero-meta span,
.detail-facts span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid rgba(251, 191, 36, 0.22);
    border-radius: 999px;
    background: rgba(36, 59, 83, 0.72);
    color: #fde68a;
    font-size: 13px;
}

.hero-actions,
.detail-copy .btn-primary {
    margin-top: 30px;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 12px;
    font-weight: 800;
    transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
    color: #111827;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.24);
}

.btn-secondary {
    margin-left: 10px;
    background: rgba(51, 78, 104, 0.92);
    color: #ffffff;
    border: 1px solid var(--line);
}

.btn-secondary.small {
    min-height: 38px;
    padding: 0 16px;
    margin-left: 0;
    font-size: 14px;
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.hero-controls {
    position: absolute;
    left: 50%;
    bottom: 34px;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.hero-arrow,
.hero-dot {
    border: 0;
    color: #ffffff;
    background: rgba(36, 59, 83, 0.84);
    cursor: pointer;
}

.hero-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 28px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border-radius: 999px;
    opacity: 0.6;
}

.hero-dot.is-active {
    width: 28px;
    opacity: 1;
    background: var(--amber-400);
}

.intro-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-top: -48px;
    position: relative;
    z-index: 5;
    padding: 28px;
    border-radius: 24px;
    background: rgba(36, 59, 83, 0.92);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
    backdrop-filter: blur(14px);
}

.intro-strip h2,
.section-heading h2,
.content-card h2 {
    color: #ffffff;
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.15;
}

.mini-search {
    display: flex;
    width: min(420px, 100%);
    background: var(--night-900);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
}

.mini-search input,
.search-box input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: #ffffff;
}

.mini-search input {
    padding: 0 16px;
}

.mini-search button {
    border: 0;
    min-width: 86px;
    background: var(--amber-500);
    color: #111827;
    font-weight: 800;
    cursor: pointer;
}

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

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

.section-link,
.back-link {
    color: #d1d5db;
    font-weight: 700;
}

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

.video-card {
    overflow: hidden;
    border-radius: 18px;
    background: var(--night-800);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--line);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: var(--shadow);
}

.card-poster {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--night-900);
}

.card-poster img,
.related-card img,
.ranking-poster img,
.detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-poster img {
    transition: transform 420ms ease;
}

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

.year-badge,
.play-badge {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
}

.year-badge {
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    background: rgba(0, 0, 0, 0.58);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
}

.play-badge {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
    background: rgba(245, 158, 11, 0.94);
    color: #111827;
    font-size: 15px;
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    color: #ffffff;
    font-size: 18px;
    line-height: 1.35;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-meta,
.card-summary,
.category-card p,
.category-overview-card p,
.ranking-info p,
.site-footer p {
    color: var(--muted);
}

.card-meta {
    font-size: 13px;
    margin-bottom: 9px;
}

.card-summary {
    font-size: 14px;
    min-height: 46px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 14px;
}

.tag-list span {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    padding: 3px 8px;
    border-radius: 999px;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.12);
    font-size: 12px;
}

.tag-list.large span {
    min-height: 32px;
    padding: 4px 12px;
    font-size: 13px;
}

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

.category-card,
.category-overview-card,
.content-card {
    border: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(36, 59, 83, 0.95), rgba(16, 42, 67, 0.95));
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 4px 22px rgba(0, 0, 0, 0.14);
}

.category-card {
    min-height: 190px;
    transition: transform 180ms ease, border-color 180ms ease;
}

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

.category-card span,
.category-overview-card h2 {
    display: block;
    color: #ffffff;
    font-size: 21px;
    font-weight: 850;
    margin-bottom: 12px;
}

.category-card small {
    display: block;
    color: var(--amber-300);
    margin-top: 16px;
}

.rank-section {
    padding-bottom: 80px;
}

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

.rank-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border-radius: 16px;
    background: var(--night-800);
    border: 1px solid var(--line);
}

.rank-row:hover {
    border-color: rgba(251, 191, 36, 0.36);
}

.rank-num {
    color: var(--amber-400);
    font-weight: 900;
    font-size: 22px;
}

.rank-title {
    color: #ffffff;
    font-weight: 800;
}

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

.page-main {
    min-height: 70vh;
}

.page-hero {
    padding: 92px 0 56px;
    background:
        radial-gradient(circle at 80% 20%, rgba(251, 191, 36, 0.20), transparent 24%),
        linear-gradient(180deg, var(--night-900), var(--night-950));
    border-bottom: 1px solid var(--line);
}

.page-hero.compact {
    padding-bottom: 42px;
}

.filter-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 28px;
    padding: 16px;
    border-radius: 18px;
    background: var(--night-800);
    border: 1px solid var(--line);
}

.search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-height: 46px;
    padding: 0 14px;
    background: var(--night-900);
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--muted);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--night-700);
    color: #e5e7eb;
    cursor: pointer;
}

.filter-chip.is-active,
.filter-chip:hover {
    background: var(--amber-500);
    color: #111827;
    border-color: var(--amber-500);
}

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

.category-samples {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 18px 0 20px;
}

.category-samples a {
    color: #fde68a;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(251, 191, 36, 0.12);
    font-size: 13px;
}

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

.ranking-card {
    display: grid;
    grid-template-columns: 210px 1fr;
    gap: 22px;
    align-items: center;
    padding: 16px;
    border-radius: 20px;
    background: var(--night-800);
    border: 1px solid var(--line);
}

.ranking-poster {
    position: relative;
    height: 118px;
    overflow: hidden;
    border-radius: 16px;
}

.ranking-poster span {
    position: absolute;
    left: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--amber-500);
    color: #111827;
    font-weight: 900;
}

.ranking-title {
    display: inline-block;
    color: #ffffff;
    font-size: 22px;
    font-weight: 850;
    margin-bottom: 8px;
}

.detail-hero {
    padding: 70px 0 44px;
    background:
        radial-gradient(circle at 74% 16%, rgba(251, 191, 36, 0.18), transparent 28%),
        linear-gradient(180deg, var(--night-900), var(--night-950));
}

.detail-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 42px;
    align-items: center;
}

.detail-poster {
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 26px;
    background: var(--night-800);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

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

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

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

.player-shell {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 24px;
    background: #000000;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.media-player,
.player-poster,
.player-poster img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.media-player {
    background: #000000;
}

.player-poster {
    z-index: 3;
    border: 0;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    background: #000000;
}

.player-poster::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.22));
}

.player-poster img {
    object-fit: cover;
    filter: saturate(1.05);
}

.player-poster.is-hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 240ms ease;
}

.play-circle {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    transform: translate(-50%, -50%);
    display: grid;
    place-items: center;
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: var(--amber-500);
    color: #111827;
    font-size: 32px;
    box-shadow: 0 18px 50px rgba(245, 158, 11, 0.36);
}

.detail-content {
    display: grid;
    gap: 22px;
    padding: 42px 0 80px;
}

.content-card p {
    color: #d1d5db;
    margin-top: 16px;
    font-size: 17px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.related-card a {
    display: block;
    overflow: hidden;
    border-radius: 16px;
    background: var(--night-900);
    border: 1px solid var(--line);
}

.related-card img {
    aspect-ratio: 16 / 9;
}

.related-card span {
    display: block;
    padding: 10px;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--night-900);
    padding: 44px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    gap: 28px;
}

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

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    color: #d1d5db;
}

.is-filtered-out {
    display: none !important;
}

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

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

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

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

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

    .nav-toggle {
        display: block;
    }

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

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

    .intro-strip,
    .filter-panel,
    .section-heading,
    .footer-grid {
        flex-direction: column;
        align-items: stretch;
    }

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

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

    .ranking-poster {
        height: 190px;
    }

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

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

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

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

    .hero-lead,
    .detail-lead,
    .page-hero p,
    .intro-strip p {
        font-size: 16px;
    }

    .hero-actions {
        display: grid;
        gap: 10px;
    }

    .btn-secondary {
        margin-left: 0;
    }

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

    .rank-row {
        grid-template-columns: 46px 1fr;
    }

    .rank-meta {
        display: none;
    }

    .play-circle {
        width: 72px;
        height: 72px;
        font-size: 26px;
    }
}
