/* =========================
   1. Global Reset
========================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;

    background: #0B0B0B;
    color: #F5F5F5;

    font-family:
        "Helvetica Neue",
        Arial,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;

    overflow-x: hidden;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #0B0B0B;
}

body::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 10px;
}

body::-webkit-scrollbar-thumb:hover {
    background: #E50914;
}

::selection {
    background: #E50914;
    color: #FFFFFF;
}


/* =========================
   2. Common Layout
========================= */

section {
    position: relative;
}

.container {
    max-width: 1320px;
}

.section-title {
    margin-bottom: 46px;
    text-align: center;
}

.section-title h2 {
    margin: 0 0 14px;

    font-size: 2.55rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    color: #F5F5F5;
}

.section-title p {
    margin: 0;

    color: #AAAAAA;
    font-size: 1.05rem;
    letter-spacing: 0.4px;
}


/* =========================
   3. Hero Section
========================= */

#hero-section {
    position: relative;

    width: 100%;
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;

    background:
        radial-gradient(
            circle at center,
            rgba(229, 9, 20, 0.28) 0%,
            rgba(11, 11, 11, 0.25) 34%,
            rgba(11, 11, 11, 0.96) 78%
        ),
        linear-gradient(
            180deg,
            rgba(0,0,0,0.35) 0%,
            rgba(0,0,0,0.92) 100%
        ),
        url('../assets/images/netflix-bg.jpg');

    background-size: cover;
    background-position: center;
    background-attachment: fixed;

    overflow: hidden;
}

#hero-section::before {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.08) 50%,
            rgba(0,0,0,0.7) 100%
        );

    z-index: 1;
}

#hero-section::after {
    content: "";

    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;

    height: 180px;

    background:
        linear-gradient(
            to bottom,
            rgba(11,11,11,0),
            #0B0B0B
        );

    z-index: 2;
}

.hero-overlay {
    position: absolute;
    inset: 0;

    background:
        repeating-linear-gradient(
            0deg,
            rgba(255,255,255,0.015),
            rgba(255,255,255,0.015) 1px,
            transparent 1px,
            transparent 4px
        );

    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;

    width: 90%;
    max-width: 1100px;

    padding: 30px;
}

.hero-title {
    margin: 0 0 18px;

    font-size: clamp(4rem, 10vw, 8.8rem);
    line-height: 0.95;

    font-weight: 900;
    letter-spacing: 12px;

    color: #E50914;

    text-shadow:
        0 0 24px rgba(229,9,20,0.35),
        0 16px 36px rgba(0,0,0,0.65);
}

.hero-subtitle {
    margin: 0 0 20px;

    font-size: clamp(1.75rem, 4vw, 3rem);
    font-weight: 500;
    letter-spacing: 2px;

    color: #FFFFFF;
}

.hero-description {
    margin: 0 auto;

    max-width: 760px;

    font-size: 1.05rem;
    color: #BEBEBE;
    letter-spacing: 1.8px;
    text-transform: uppercase;
}

.scroll-indicator {
    margin-top: 80px;

    color: #888888;
    font-size: 0.9rem;
    letter-spacing: 2px;

    animation: float 2.2s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0);
        opacity: 0.75;
    }

    50% {
        transform: translateY(10px);
        opacity: 1;
    }

    100% {
        transform: translateY(0);
        opacity: 0.75;
    }
}


/* =========================
   4. Statistics Dashboard
========================= */

#stats-section {
    padding: 78px 0 70px;

    background:
        linear-gradient(
            180deg,
            #0B0B0B 0%,
            #101010 100%
        );
}

.stats-container {
    width: min(92%, 1280px);

    margin: 0 auto;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-card {
    position: relative;

    padding: 38px 22px 34px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.025)
        );

    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 22px;

    box-shadow:
        0 18px 55px rgba(0,0,0,0.34),
        inset 0 1px 0 rgba(255,255,255,0.05);

    backdrop-filter: blur(12px);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 22px;
    right: 22px;

    height: 3px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #E50914,
            transparent
        );

    opacity: 0.75;
}

.stat-card:hover {
    transform: translateY(-8px);

    border-color: rgba(229,9,20,0.55);

    box-shadow:
        0 22px 70px rgba(0,0,0,0.45),
        0 0 30px rgba(229,9,20,0.15);
}

.stat-card h2 {
    margin: 0 0 10px;

    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 850;
    line-height: 1;

    color: #E50914;
}

.stat-card p {
    margin: 0;

    color: #BDBDBD;
    font-size: 0.9rem;
    font-weight: 600;

    letter-spacing: 1.6px;
    text-transform: uppercase;
}


/* =========================
   5. Filter Section
========================= */

#filter-section {
    position: sticky;
    top: 0;
    z-index: 100;

    padding: 22px 0 24px;

    text-align: center;

    background:
        linear-gradient(
            180deg,
            rgba(17,17,17,0.98),
            rgba(13,13,13,0.96)
        );

    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(14px);
}

#current-view {
    margin-bottom: 16px;

    color: #9A9A9A;
    font-size: 0.98rem;
    letter-spacing: 0.7px;
}

#current-genre {
    color: #FFFFFF;
    font-weight: 700;
}

.filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 14px;
}

.filter-container label {
    color: #CCCCCC;
    font-size: 0.98rem;
    font-weight: 600;
}

#genre-filter,
#director-search {
    min-height: 44px;

    background: #191919;
    color: #FFFFFF;

    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;

    padding: 0 16px;

    font-size: 0.95rem;
    outline: none;

    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        background 0.22s ease;
}

#genre-filter {
    min-width: 220px;
}

#director-search {
    width: 250px;
}

#genre-filter:hover,
#director-search:hover,
#genre-filter:focus,
#director-search:focus {
    background: #202020;

    border-color: rgba(229,9,20,0.78);

    box-shadow:
        0 0 0 3px rgba(229,9,20,0.12);
}

#director-search::placeholder {
    color: #777777;
}

#reset-filter {
    min-height: 44px;

    padding: 0 18px;

    border: none;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #E50914,
            #B20710
        );

    color: #FFFFFF;

    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0.5px;

    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(229,9,20,0.25);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

#reset-filter:hover {
    transform: translateY(-2px);

    filter: brightness(1.12);

    box-shadow:
        0 14px 32px rgba(229,9,20,0.35);
}

#reset-filter:active {
    transform: translateY(0);
}


/* =========================
   6. Chart Sections
========================= */

#growth-section,
#bubble-section,
#network-section,
#duration-section {
    padding: 115px 0;

    background:
        radial-gradient(
            circle at top,
            rgba(229,9,20,0.06),
            transparent 28%
        ),
        #0B0B0B;
}

#heatmap-section,
#country-section,
#treemap-section,
#director-section,
#sunburst-section,
#world-map-section,
#trending-section {
    padding: 115px 0;

    background:
        linear-gradient(
            180deg,
            #101010 0%,
            #0D0D0D 100%
        );
}

#line-chart,
#heatmap-chart,
#trending-chart,
#country-chart,
#bubble-chart,
#treemap-chart,
#director-chart,
#network-chart,
#world-map,
#duration-chart,
#sunburst-chart {
    position: relative;

    width: 100%;
    min-height: 560px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;

    box-shadow:
        0 22px 70px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.045);

    overflow: hidden;
}

#line-chart::before,
#heatmap-chart::before,
#trending-chart::before,
#country-chart::before,
#bubble-chart::before,
#treemap-chart::before,
#director-chart::before,
#network-chart::before,
#world-map::before,
#duration-chart::before,
#sunburst-chart::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(229,9,20,0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 100%,
            rgba(255,255,255,0.035),
            transparent 32%
        );

    z-index: 0;
}

#line-chart svg,
#heatmap-chart svg,
#trending-chart svg,
#country-chart svg,
#bubble-chart svg,
#treemap-chart svg,
#director-chart svg,
#network-chart svg,
#world-map svg,
#duration-chart svg,
#sunburst-chart svg {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;
}

#heatmap-chart {
    min-height: 720px;
}

#bubble-chart {
    min-height: 760px;

    background:
        radial-gradient(
            circle at center,
            rgba(229,9,20,0.12),
            rgba(20,20,20,0.95) 38%,
            #0B0B0B 100%
        );
}

#network-chart {
    min-height: 820px;

    background:
        radial-gradient(
            circle at center,
            rgba(255,255,255,0.055),
            rgba(20,20,20,0.97) 42%,
            #0B0B0B 100%
        );
}

#sunburst-chart {
    min-height: 980px;

    background:
        radial-gradient(
            circle at center,
            rgba(229,9,20,0.10),
            rgba(20,20,20,0.95) 40%,
            #0B0B0B 100%
        );
}

#world-map {
    min-height: 720px;
}


/* =========================
   7. Tooltip
========================= */

.tooltip {
    position: absolute;

    opacity: 0;

    background: rgba(10,10,10,0.94);
    color: #F5F5F5;

    padding: 12px 15px;

    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.12);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.45);

    font-size: 13px;
    line-height: 1.6;

    pointer-events: none;
    z-index: 9999;

    backdrop-filter: blur(10px);

    transition: opacity 0.18s ease;
}

.tooltip strong {
    color: #FFFFFF;
    font-weight: 800;
}


/* =========================
   8. Map Placeholder / Empty Chart
========================= */

.map-placeholder {
    position: relative;
    z-index: 2;

    min-height: 420px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    padding: 48px 24px;

    text-align: center;

    color: #CCCCCC;
}

.map-placeholder h3 {
    margin: 0 0 12px;

    color: #FFFFFF;
    font-size: 1.45rem;
    font-weight: 800;
}

.map-placeholder p {
    margin: 0;

    max-width: 580px;

    color: #9A9A9A;
    font-size: 0.98rem;
    line-height: 1.7;
}


/* =========================
   9. SVG Text / Axis Base
========================= */

svg text {
    font-family:
        "Helvetica Neue",
        Arial,
        "PingFang SC",
        "Microsoft YaHei",
        sans-serif;
}

svg .domain {
    stroke: rgba(255,255,255,0.22);
}

svg .tick line {
    stroke: rgba(255,255,255,0.15);
}

svg .tick text {
    fill: #AAAAAA;
}


/* =========================
   10. Error Message
========================= */

.system-error {
    margin: 24px;

    border-radius: 16px;

    box-shadow:
        0 18px 45px rgba(229,9,20,0.35);
}


/* =========================
   11. Responsive
========================= */

@media (max-width: 1200px) {

    .container {
        max-width: 94%;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-title h2 {
        font-size: 2.2rem;
    }

    #line-chart,
    #heatmap-chart,
    #trending-chart,
    #country-chart,
    #bubble-chart,
    #treemap-chart,
    #director-chart,
    #network-chart,
    #world-map,
    #duration-chart,
    #sunburst-chart {
        border-radius: 22px;
    }
}


@media (max-width: 768px) {

    #hero-section {
        background-attachment: scroll;
    }

    .hero-title {
        letter-spacing: 7px;
    }

    .hero-subtitle {
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.88rem;
        letter-spacing: 1px;
    }

    .scroll-indicator {
        margin-top: 55px;
    }

    #stats-section {
        padding: 55px 0;
    }

    .stats-container {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .stat-card {
        padding: 30px 18px;
    }

    #filter-section {
        position: relative;

        padding: 24px 14px;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;

        width: 92%;
        margin: 0 auto;
    }

    .filter-container label {
        text-align: left;
    }

    #genre-filter,
    #director-search,
    #reset-filter {
        width: 100%;
    }

    #growth-section,
    #bubble-section,
    #network-section,
    #duration-section,
    #heatmap-section,
    #country-section,
    #treemap-section,
    #director-section,
    #sunburst-section,
    #world-map-section,
    #trending-section {
        padding: 78px 0;
    }

    .section-title {
        margin-bottom: 32px;
    }

    .section-title h2 {
        font-size: 1.75rem;
    }

    .section-title p {
        font-size: 0.92rem;
    }

    #line-chart,
    #heatmap-chart,
    #trending-chart,
    #country-chart,
    #bubble-chart,
    #treemap-chart,
    #director-chart,
    #network-chart,
    #world-map,
    #duration-chart,
    #sunburst-chart {
        min-height: 420px;
        border-radius: 18px;
    }

    #sunburst-chart {
        min-height: 560px;
    }

    #network-chart {
        min-height: 520px;
    }

    #heatmap-chart {
        min-height: 500px;
    }

    #bubble-chart {
        min-height: 520px;
    }
}


@media (max-width: 480px) {

    .hero-content {
        padding: 20px;
    }

    .hero-title {
        letter-spacing: 4px;
    }

    .hero-subtitle {
        font-size: 1.45rem;
    }

    .section-title h2 {
        font-size: 1.55rem;
    }

    .stat-card h2 {
        font-size: 2.25rem;
    }

    #current-view {
        font-size: 0.86rem;
    }

    #line-chart,
    #heatmap-chart,
    #trending-chart,
    #country-chart,
    #bubble-chart,
    #treemap-chart,
    #director-chart,
    #network-chart,
    #world-map,
    #duration-chart,
    #sunburst-chart {
        min-height: 390px;
    }
}

/* =========================
   Country-Genre Chord Diagram
========================= */

#chord-section {
    padding: 115px 0;

    background:
        radial-gradient(
            circle at top,
            rgba(229,9,20,0.08),
            transparent 30%
        ),
        #0B0B0B;
}

#chord-chart {
    position: relative;

    width: 100%;
    min-height: 900px;

    background:
        radial-gradient(
            circle at center,
            rgba(229,9,20,0.10),
            rgba(20,20,20,0.96) 42%,
            #0B0B0B 100%
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;

    box-shadow:
        0 22px 70px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.045);

    overflow: hidden;
}

#chord-chart::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 0%,
            rgba(229,9,20,0.12),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 100%,
            rgba(255,255,255,0.035),
            transparent 32%
        );

    z-index: 0;
}

#chord-chart svg {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #chord-section {
        padding: 78px 0;
    }

    #chord-chart {
        min-height: 620px;
        border-radius: 18px;
    }
}

/* =========================
   Year Brush Section
========================= */

#year-brush-section {
    padding: 60px 0 70px;

    background:
        linear-gradient(
            180deg,
            #101010 0%,
            #0B0B0B 100%
        );

    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.small-title {
    margin-bottom: 26px;
}

.small-title h2 {
    font-size: 1.8rem;
}

.small-title p {
    font-size: 0.95rem;
}

#year-brush-panel {
    position: relative;

    width: 100%;

    padding: 26px 28px 22px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 22px;

    box-shadow:
        0 18px 55px rgba(0,0,0,0.36),
        inset 0 1px 0 rgba(255,255,255,0.045);

    overflow: hidden;
}

#year-range-label {
    margin-bottom: 10px;

    color: #FFFFFF;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;

    text-align: center;
}

#year-brush {
    width: 100%;
    min-height: 150px;
}

#year-brush svg {
    display: block;
    width: 100%;
    height: auto;
}

#year-brush .selection {
    fill: rgba(229,9,20,0.30);
    stroke: #E50914;
    stroke-width: 1.5px;
}

#year-brush .handle {
    fill: #E50914;
    stroke: #FFFFFF;
    stroke-width: 1px;
}

#year-brush .overlay {
    cursor: crosshair;
}

#year-brush .brush-bar {
    fill: rgba(229,9,20,0.72);
}

#year-brush .brush-bar-muted {
    fill: rgba(255,255,255,0.12);
}

@media (max-width: 768px) {
    #year-brush-section {
        padding: 45px 0 52px;
    }

    #year-brush-panel {
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    .small-title h2 {
        font-size: 1.45rem;
    }

    #year-brush {
        min-height: 130px;
    }
}

/* =========================
   Added Year vs Release Year
========================= */

#added-release-section {
    padding: 115px 0;

    background:
        linear-gradient(
            180deg,
            #101010 0%,
            #0D0D0D 100%
        );
}

#added-release-chart {
    position: relative;

    width: 100%;
    min-height: 760px;

    background:
        radial-gradient(
            circle at center,
            rgba(229,9,20,0.10),
            rgba(20,20,20,0.96) 42%,
            #0B0B0B 100%
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 26px;

    box-shadow:
        0 22px 70px rgba(0,0,0,0.42),
        inset 0 1px 0 rgba(255,255,255,0.045);

    overflow: hidden;
}

#added-release-chart svg {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;
}

@media (max-width: 768px) {
    #added-release-section {
        padding: 78px 0;
    }

    #added-release-chart {
        min-height: 520px;
        border-radius: 18px;
    }
}

/* =========================
   Field Usage Section
========================= */

#field-section {
    padding: 110px 0;

    background:
        linear-gradient(
            180deg,
            #101010 0%,
            #0B0B0B 100%
        );
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.field-card {
    padding: 26px 24px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,0.055),
            rgba(255,255,255,0.02)
        );

    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;

    box-shadow:
        0 18px 55px rgba(0,0,0,0.32),
        inset 0 1px 0 rgba(255,255,255,0.045);

    transition:
        transform 0.22s ease,
        border-color 0.22s ease;
}

.field-card:hover {
    transform: translateY(-6px);

    border-color: rgba(229,9,20,0.58);
}

.field-card h3 {
    margin: 0 0 12px;

    color: #E50914;
    font-size: 1.25rem;
    font-weight: 850;
}

.field-card p {
    margin: 0;

    color: #BBBBBB;
    font-size: 0.95rem;
    line-height: 1.7;
}

@media (max-width: 1100px) {
    .field-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .field-grid {
        grid-template-columns: 1fr;
    }

    #field-section {
        padding: 76px 0;
    }
}

/* =========================================================
   Light Vibrant Theme Override
   浅色活力数据看板风
   追加到 style.css 最后
========================================================= */

/* 全局浅色背景 */
body {
    background:
        radial-gradient(
            circle at 8% 0%,
            rgba(229, 9, 20, 0.10),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 6%,
            rgba(37, 99, 235, 0.14),
            transparent 32%
        ),
        radial-gradient(
            circle at 50% 100%,
            rgba(124, 58, 237, 0.10),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            #F8FAFC 0%,
            #EEF2FF 45%,
            #F4F7FB 100%
        ) !important;

    color: #0F172A !important;
}

body::-webkit-scrollbar-track {
    background: #EEF2FF;
}

body::-webkit-scrollbar-thumb {
    background: #CBD5E1;
}

body::-webkit-scrollbar-thumb:hover {
    background: #E50914;
}

/* Hero 改成明亮首页 */
#hero-section {
    background:
        radial-gradient(
            circle at 16% 18%,
            rgba(229, 9, 20, 0.18),
            transparent 32%
        ),
        radial-gradient(
            circle at 82% 20%,
            rgba(37, 99, 235, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 50% 82%,
            rgba(124, 58, 237, 0.14),
            transparent 38%
        ),
        linear-gradient(
            180deg,
            rgba(248,250,252,0.90),
            rgba(238,242,255,0.94)
        ),
        url('../assets/images/netflix-bg.jpg') !important;

    background-size: cover !important;
    background-position: center !important;
}

#hero-section::before {
    background:
        linear-gradient(
            90deg,
            rgba(248,250,252,0.88) 0%,
            rgba(248,250,252,0.35) 50%,
            rgba(248,250,252,0.88) 100%
        ) !important;
}

#hero-section::after {
    background:
        linear-gradient(
            to bottom,
            rgba(248,250,252,0),
            #F8FAFC
        ) !important;
}

.hero-overlay {
    background:
        repeating-linear-gradient(
            0deg,
            rgba(15,23,42,0.025),
            rgba(15,23,42,0.025) 1px,
            transparent 1px,
            transparent 5px
        ) !important;
}

.hero-title {
    color: #E50914 !important;

    text-shadow:
        0 8px 20px rgba(229,9,20,0.22),
        0 18px 45px rgba(15,23,42,0.14) !important;
}

.hero-subtitle {
    background:
        linear-gradient(
            90deg,
            #0F172A,
            #2563EB,
            #E50914
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    color: transparent !important;
}

.hero-description,
.scroll-indicator {
    color: #475569 !important;
}

/* 章节背景全部改亮 */
#stats-section,
#growth-section,
#bubble-section,
#network-section,
#duration-section,
#chord-section,
#heatmap-section,
#country-section,
#treemap-section,
#director-section,
#sunburst-section,
#world-map-section,
#trending-section,
#added-release-section,
#year-brush-section,
#field-section {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(229,9,20,0.07),
            transparent 30%
        ),
        radial-gradient(
            circle at 90% 10%,
            rgba(37,99,235,0.08),
            transparent 32%
        ),
        linear-gradient(
            180deg,
            #F8FAFC 0%,
            #EEF2FF 100%
        ) !important;
}

/* 标题文字改深色 */
.section-title h2 {
    color: #0F172A !important;

    text-shadow:
        0 8px 24px rgba(37,99,235,0.10) !important;
}

.section-title p {
    color: #475569 !important;
}

/* 统计卡片改白色 */
.stat-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(248,250,252,0.88)
        ) !important;

    border: 1px solid rgba(148, 163, 184, 0.28) !important;

    box-shadow:
        0 18px 45px rgba(15,23,42,0.10),
        inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.stat-card::before {
    background:
        linear-gradient(
            90deg,
            #E50914,
            #F97316,
            #2563EB,
            #7C3AED
        ) !important;
}

.stat-card h2 {
    background:
        linear-gradient(
            135deg,
            #E50914,
            #F97316,
            #7C3AED
        ) !important;

    -webkit-background-clip: text !important;
    background-clip: text !important;

    color: transparent !important;
}

.stat-card p {
    color: #475569 !important;
}

.stat-card:hover {
    border-color: rgba(229,9,20,0.36) !important;

    box-shadow:
        0 24px 60px rgba(15,23,42,0.16),
        0 0 26px rgba(229,9,20,0.10),
        0 0 36px rgba(37,99,235,0.10) !important;
}

/* 筛选栏改亮 */
#filter-section {
    background:
        rgba(255,255,255,0.86) !important;

    border-top: 1px solid rgba(148, 163, 184, 0.22) !important;
    border-bottom: 1px solid rgba(148, 163, 184, 0.28) !important;

    backdrop-filter: blur(18px) !important;
}

#current-view {
    color: #64748B !important;
}

#current-genre {
    color: #E50914 !important;
}

.filter-container label {
    color: #334155 !important;
}

#genre-filter,
#director-search {
    background: #FFFFFF !important;
    color: #0F172A !important;

    border: 1px solid rgba(148, 163, 184, 0.42) !important;

    box-shadow:
        0 8px 20px rgba(15,23,42,0.05) !important;
}

#genre-filter:hover,
#director-search:hover,
#genre-filter:focus,
#director-search:focus {
    background: #FFFFFF !important;

    border-color: rgba(37,99,235,0.70) !important;

    box-shadow:
        0 0 0 3px rgba(37,99,235,0.12),
        0 12px 28px rgba(15,23,42,0.08) !important;
}

#director-search::placeholder {
    color: #94A3B8 !important;
}

#reset-filter {
    background:
        linear-gradient(
            135deg,
            #E50914,
            #F97316,
            #2563EB
        ) !important;

    color: #FFFFFF !important;

    box-shadow:
        0 12px 28px rgba(229,9,20,0.20),
        0 10px 26px rgba(37,99,235,0.16) !important;
}

/* 图表容器全部改成亮色卡片 */
#line-chart,
#heatmap-chart,
#trending-chart,
#country-chart,
#bubble-chart,
#treemap-chart,
#director-chart,
#network-chart,
#world-map,
#duration-chart,
#sunburst-chart,
#chord-chart,
#added-release-chart,
#year-brush-panel {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.98),
            rgba(248,250,252,0.92)
        ) !important;

    border: 1px solid rgba(148, 163, 184, 0.26) !important;

    box-shadow:
        0 22px 60px rgba(15,23,42,0.10),
        0 0 24px rgba(37,99,235,0.05),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

/* 去掉暗色图表遮罩，改成轻微彩色光晕 */
#line-chart::before,
#heatmap-chart::before,
#trending-chart::before,
#country-chart::before,
#bubble-chart::before,
#treemap-chart::before,
#director-chart::before,
#network-chart::before,
#world-map::before,
#duration-chart::before,
#sunburst-chart::before,
#chord-chart::before,
#added-release-chart::before {
    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(229,9,20,0.07),
            transparent 32%
        ),
        radial-gradient(
            circle at 90% 100%,
            rgba(37,99,235,0.07),
            transparent 36%
        ) !important;
}

/* SVG 坐标轴和文字 */
svg text {
    fill: #0F172A;
}

svg .tick text {
    fill: #64748B !important;
}

svg .domain {
    stroke: rgba(15,23,42,0.22) !important;
}

svg .tick line {
    stroke: rgba(15,23,42,0.14) !important;
}

/* Tooltip 仍然用深色，保证可读性 */
.tooltip {
    background:
        linear-gradient(
            145deg,
            rgba(15,23,42,0.96),
            rgba(30,41,59,0.92)
        ) !important;

    color: #F8FAFC !important;

    border: 1px solid rgba(37,99,235,0.34) !important;

    box-shadow:
        0 18px 45px rgba(15,23,42,0.32),
        0 0 24px rgba(37,99,235,0.14) !important;
}

.tooltip strong {
    color: #93C5FD !important;
}

/* 年份刷选器 */
#year-range-label {
    color: #0F172A !important;
}

#year-brush .selection {
    fill: rgba(37, 99, 235, 0.20) !important;
    stroke: #2563EB !important;
    stroke-width: 1.6px !important;
}

#year-brush .handle {
    fill: #E50914 !important;
    stroke: #FFFFFF !important;
    stroke-width: 1px !important;
}

#year-brush .brush-bar {
    fill: rgba(229, 9, 20, 0.70) !important;
}

/* 字段卡片亮色 */
.field-card {
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.96),
            rgba(248,250,252,0.88)
        ) !important;

    border: 1px solid rgba(148, 163, 184, 0.26) !important;

    box-shadow:
        0 18px 45px rgba(15,23,42,0.09),
        inset 0 1px 0 rgba(255,255,255,0.96) !important;
}

.field-card h3 {
    color: #2563EB !important;
}

.field-card p {
    color: #475569 !important;
}

.field-card:hover {
    border-color: rgba(37,99,235,0.42) !important;

    box-shadow:
        0 22px 60px rgba(15,23,42,0.14),
        0 0 24px rgba(37,99,235,0.10) !important;
}

/* 空状态 */
.map-placeholder h3 {
    color: #0F172A !important;
}

.map-placeholder p {
    color: #475569 !important;
}

/* 强制修正浅色主题下的 SVG 文本可读性 */
#line-chart text,
#heatmap-chart text,
#trending-chart text,
#country-chart text,
#bubble-chart text,
#treemap-chart text,
#director-chart text,
#network-chart text,
#world-map text,
#duration-chart text,
#sunburst-chart text,
#chord-chart text,
#added-release-chart text {
    fill: #0F172A;
}

#line-chart .tick text,
#heatmap-chart .tick text,
#trending-chart .tick text,
#country-chart .tick text,
#bubble-chart .tick text,
#treemap-chart .tick text,
#director-chart .tick text,
#network-chart .tick text,
#world-map .tick text,
#duration-chart .tick text,
#sunburst-chart .tick text,
#chord-chart .tick text,
#added-release-chart .tick text {
    fill: #64748B !important;
}

/* =========================
   Group Heading Sections
========================= */

.analysis-group-heading {
    padding: 86px 0 42px;
    background:
        radial-gradient(circle at 10% 0%, rgba(229,9,20,0.08), transparent 34%),
        radial-gradient(circle at 90% 10%, rgba(37,99,235,0.10), transparent 34%),
        linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
    text-align: center;
}

.analysis-group-heading .group-label {
    display: inline-block;
    margin-bottom: 14px;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(229, 9, 20, 0.10);
    color: #E50914;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.analysis-group-heading h2 {
    margin: 0 0 12px;
    color: #0F172A;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    letter-spacing: 1px;
}

.analysis-group-heading p {
    margin: 0 auto;
    max-width: 820px;
    color: #475569;
    font-size: 1.05rem;
    line-height: 1.8;
}
