:root {
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-800: #1e293b;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --cyan-600: #0891b2;
    --cyan-500: #06b6d4;
    --cyan-400: #22d3ee;
    --white: #ffffff;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.10);
    --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.12);
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 10px;
}

* {
    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;
    color: var(--slate-900);
    background: var(--slate-50);
    line-height: 1.6;
}

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

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

button,
input {
    font: inherit;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: linear-gradient(90deg, var(--slate-900), var(--slate-800), var(--slate-900));
    border-bottom: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 18px 40px rgba(2, 6, 23, 0.28);
}

.header-inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 22px;
}

.brand,
.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
}

.brand-icon,
.footer-brand span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.32);
}

.brand-copy strong {
    display: block;
    font-size: 22px;
    letter-spacing: 0.02em;
}

.brand-copy em {
    display: block;
    margin-top: 1px;
    font-style: normal;
    font-size: 12px;
    color: var(--slate-400);
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav-link,
.mobile-link {
    color: var(--slate-300);
    padding: 10px 14px;
    border-radius: 10px;
    transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover,
.nav-link.is-active,
.mobile-link:hover,
.mobile-link.is-active {
    color: var(--white);
    background: rgba(51, 65, 85, 0.72);
}

.header-search {
    width: 260px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.22);
}

.header-search input,
.mobile-search input,
.local-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
    padding: 9px 12px;
}

.header-search input::placeholder,
.mobile-search input::placeholder,
.local-search input::placeholder {
    color: var(--slate-400);
}

.header-search button,
.mobile-search button {
    border: 0;
    cursor: pointer;
    color: var(--white);
    background: var(--cyan-500);
    border-radius: 999px;
    padding: 8px 13px;
}

.menu-toggle {
    display: none;
    margin-left: auto;
    border: 0;
    cursor: pointer;
    color: var(--slate-200);
    background: rgba(51, 65, 85, 0.62);
    border-radius: 10px;
    padding: 9px 12px;
}

.mobile-nav {
    display: none;
    border-top: 1px solid rgba(148, 163, 184, 0.22);
    padding: 12px 16px 18px;
}

.mobile-nav.is-open {
    display: grid;
    gap: 8px;
}

.mobile-search {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 999px;
    padding: 4px;
    background: rgba(15, 23, 42, 0.5);
}

.hero-carousel {
    position: relative;
    height: 72vh;
    min-height: 560px;
    overflow: hidden;
    background: var(--slate-900);
}

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

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

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.03);
}

.hero-shade,
.ranking-hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.98), rgba(15, 23, 42, 0.68) 46%, rgba(15, 23, 42, 0.20));
}

.hero-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding-bottom: 72px;
}

.hero-copy {
    width: min(760px, 100%);
    color: var(--white);
}

.hero-meta,
.card-meta,
.detail-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-meta span,
.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    color: var(--white);
    background: var(--cyan-500);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.hero-meta em {
    font-style: normal;
    color: var(--slate-300);
    font-size: 14px;
}

.hero-copy h1 {
    margin: 18px 0 16px;
    font-size: clamp(38px, 7vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hero-copy p {
    margin: 0 0 28px;
    color: var(--slate-200);
    font-size: clamp(17px, 2vw, 22px);
    max-width: 720px;
}

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

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

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

.btn-primary {
    color: var(--white);
    background: var(--cyan-500);
    box-shadow: 0 14px 30px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
    background: var(--cyan-600);
}

.btn-ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(12px);
}

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

.hero-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    cursor: pointer;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.50);
    transition: width 0.3s ease, background 0.3s ease;
}

.hero-dot.is-active {
    width: 34px;
    background: var(--cyan-500);
}

.section {
    padding: 72px 0;
}

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

.section-head h2,
.discovery-section h2,
.ranking-side h2 {
    margin: 8px 0 0;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
}

.section-more {
    color: var(--cyan-600);
    font-weight: 800;
}

.section-head-light h2,
.section-head-light .section-more {
    color: var(--white);
}

.grid {
    display: grid;
    gap: 24px;
}

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

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

.video-card {
    position: relative;
    overflow: hidden;
    display: block;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

.card-cover {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--slate-800);
}

.card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-card:hover .card-cover img,
.related-card:hover img,
.category-tile:hover img {
    transform: scale(1.08);
}

.card-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.55), transparent 55%);
}

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

.card-category {
    left: 12px;
    top: 12px;
    color: var(--white);
    background: rgba(6, 182, 212, 0.92);
    padding: 6px 10px;
}

.card-year {
    right: 12px;
    bottom: 12px;
    color: var(--white);
    background: rgba(15, 23, 42, 0.82);
    padding: 5px 9px;
    backdrop-filter: blur(10px);
}

.rank-badge {
    left: 12px;
    bottom: 12px;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: linear-gradient(135deg, #f97316, #ef4444);
    box-shadow: 0 10px 24px rgba(239, 68, 68, 0.35);
}

.play-chip {
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: rgba(6, 182, 212, 0.92);
    transform: translate(-50%, -50%) scale(0.84);
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-card:hover .play-chip {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.card-body {
    padding: 18px;
}

.card-body h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.video-card:hover h3 {
    color: var(--cyan-600);
}

.card-body p {
    margin: 0 0 14px;
    color: var(--slate-600);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-foot,
.card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-500);
    font-size: 12px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-row span,
.detail-tags span,
.detail-tags a {
    border-radius: 999px;
    background: var(--slate-100);
    color: var(--slate-700);
    padding: 4px 9px;
    font-size: 12px;
    font-weight: 700;
}

.video-card-horizontal {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    min-height: 150px;
}

.video-card-horizontal .card-cover {
    height: 100%;
    aspect-ratio: auto;
}

.video-card-horizontal .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-card-large .card-cover {
    aspect-ratio: 21 / 10;
}

.video-card-large .card-body h3 {
    color: var(--slate-900);
    font-size: 23px;
}

.dark-rail-section {
    padding: 72px 0;
    background: linear-gradient(135deg, var(--slate-800), var(--slate-950));
}

.rail-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 320px;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 4px 18px;
    scroll-snap-type: x mandatory;
}

.rail-item {
    scroll-snap-align: start;
}

.category-band,
.discovery-section {
    padding: 72px 0;
    background: linear-gradient(135deg, #ecfeff, var(--slate-100));
}

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

.category-tile {
    overflow: hidden;
    display: block;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.category-tile:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.category-preview {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    min-height: 128px;
    background: var(--slate-900);
}

.category-preview img {
    width: 100%;
    height: 128px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-info {
    padding: 20px;
}

.category-info h2 {
    margin: 0 0 8px;
    font-size: 21px;
}

.category-info p {
    margin: 0;
    color: var(--slate-600);
    font-size: 14px;
}

.latest-list,
.ranking-list {
    display: grid;
    gap: 16px;
}

.discovery-section p {
    margin: 8px 0 28px;
    color: var(--slate-600);
}

.page-hero,
.ranking-hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background: linear-gradient(135deg, var(--slate-900), var(--slate-800));
}

.compact-hero {
    padding: 70px 0 54px;
}

.compact-hero h1,
.ranking-hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(38px, 6vw, 60px);
    line-height: 1.05;
}

.compact-hero p,
.ranking-hero p {
    width: min(760px, 100%);
    margin: 0;
    color: var(--slate-300);
    font-size: 18px;
}

.crumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--slate-300);
    margin-bottom: 18px;
    font-size: 14px;
}

.crumb a:hover {
    color: var(--cyan-400);
}

.local-search {
    width: min(520px, 100%);
    margin-top: 24px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    background: rgba(15, 23, 42, 0.62);
}

.wide-search {
    width: min(760px, 100%);
}

.filter-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.filter-pills button {
    border: 0;
    cursor: pointer;
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    padding: 8px 12px;
}

.filter-pills button:hover,
.filter-pills button.is-active {
    color: var(--white);
    background: var(--cyan-500);
}

.empty-state {
    display: none;
    padding: 32px;
    text-align: center;
    color: var(--slate-500);
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
}

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

.hidden-by-filter {
    display: none !important;
}

.ranking-hero {
    min-height: 440px;
}

.ranking-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-hero-content {
    position: relative;
    z-index: 2;
    padding: 96px 0 82px;
}

.ranking-hero-content .btn {
    margin-top: 26px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
    gap: 28px;
}

.ranking-side,
.side-card {
    position: sticky;
    top: 102px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.related-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px 0;
    border-top: 1px solid var(--slate-100);
}

.related-card:first-of-type {
    border-top: 0;
}

.related-card img {
    width: 96px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
    background: var(--slate-800);
    transition: transform 0.4s ease;
}

.related-card span {
    display: block;
    color: var(--slate-900);
    font-weight: 800;
    line-height: 1.35;
}

.related-card em {
    display: block;
    margin-top: 3px;
    color: var(--slate-500);
    font-style: normal;
    font-size: 12px;
}

.detail-top {
    padding: 24px 0;
    color: var(--white);
    background: var(--slate-900);
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    align-items: start;
    gap: 28px;
}

.detail-main {
    display: grid;
    gap: 24px;
}

.player-shell {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #000000;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}

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

.player-cover {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: #000000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

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

.player-cover img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.68;
}

.player-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.18), rgba(15, 23, 42, 0.72));
}

.play-button {
    position: relative;
    z-index: 2;
    width: 82px;
    height: 82px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    color: var(--white);
    background: linear-gradient(135deg, var(--cyan-400), var(--cyan-600));
    font-size: 34px;
    padding-left: 7px;
    box-shadow: 0 22px 48px rgba(6, 182, 212, 0.42);
    transition: transform 0.2s ease;
}

.play-button:hover {
    transform: scale(1.06);
}

.detail-card,
.side-card {
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-soft);
}

.detail-card {
    padding: 28px;
}

.detail-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.detail-tags a {
    color: var(--white);
    background: var(--cyan-500);
}

.detail-card h1 {
    margin: 0 0 12px;
    font-size: clamp(30px, 5vw, 48px);
    line-height: 1.1;
}

.detail-card h2 {
    margin: 28px 0 10px;
    font-size: 22px;
}

.detail-card p {
    margin: 0 0 12px;
    color: var(--slate-700);
    font-size: 16px;
}

.lead-text {
    color: var(--slate-900) !important;
    font-weight: 800;
}

.detail-meta {
    color: var(--slate-500);
    font-size: 14px;
}

.side-card h2 {
    margin: 0 0 12px;
    font-size: 22px;
}

.site-footer {
    color: var(--slate-300);
    background: linear-gradient(180deg, var(--slate-900), var(--slate-950));
    border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 32px;
    padding: 48px 0 36px;
}

.footer-brand {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 900;
}

.site-footer p {
    margin: 0;
    color: var(--slate-400);
}

.site-footer h2 {
    margin: 0 0 14px;
    color: var(--white);
    font-size: 17px;
}

.site-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
    columns: 2;
}

.site-footer li {
    margin: 0 0 9px;
}

.site-footer a:hover {
    color: var(--cyan-400);
}

.footer-bottom {
    padding: 18px 16px 26px;
    text-align: center;
    color: var(--slate-500);
    border-top: 1px solid rgba(148, 163, 184, 0.12);
}

@media (max-width: 1080px) {
    .header-search {
        display: none;
    }

    .cards-grid-three,
    .cards-grid-four,
    .category-grid,
    .editor-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .ranking-side,
    .side-card {
        position: static;
    }
}

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

    .menu-toggle {
        display: inline-flex;
    }

    .hero-carousel {
        min-height: 620px;
        height: 80vh;
    }

    .hero-content {
        padding-bottom: 80px;
    }

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

    .video-card-horizontal {
        grid-template-columns: 150px minmax(0, 1fr);
    }

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

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1180px);
    }

    .header-inner {
        min-height: 66px;
    }

    .brand-copy em {
        display: none;
    }

    .brand-copy strong {
        font-size: 18px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .cards-grid-three,
    .cards-grid-four,
    .category-grid,
    .editor-grid {
        grid-template-columns: 1fr;
    }

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

    .hero-copy p {
        font-size: 16px;
    }

    .video-card-horizontal {
        grid-template-columns: 1fr;
    }

    .video-card-horizontal .card-cover {
        aspect-ratio: 16 / 9;
    }

    .rail-scroll {
        grid-auto-columns: 84%;
    }

    .detail-card {
        padding: 22px;
    }

    .play-button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}
