/* --- style_modern.css (Holometer V3 - Cyber-Minimal) --- */

:root {
    --bg-dark: #050505;
    --bg-card: #0a0a0a;
    --bg-card-hover: #111;

    /* Brand red (softer, less "financial" harsh) */
    --primary: #ff6b61;
    --primary-soft: rgba(255, 107, 97, 0.18);
    --secondary: #3b82f6;
    /* Blue */
    --tertiary: #a855f7;
    /* Purple */
    --gold: #fbbf24;

    --text-main: #f3f4f6;
    --text-dim: #9ca3af;
    --text-muted: #4b5563;

    --border-color: transparent;
    --border-highlight: transparent;

    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);

    --shadow-card: none;
    --shadow-glow: none;

    --font-heading: 'Space Grotesk', 'BIZ UDPGothic', 'Inter', sans-serif;
    --font-body: 'BIZ UDPGothic', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Layout spacing tokens */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --content-max: 1200px;
    --layout-gap: 20px;
    --side-sticky-top: 96px;
    --section-gap: var(--space-5);
    --section-gap-tight: var(--space-3);
    --ui-radius: 6px;
    --card-radius-md: var(--ui-radius);
    --card-radius-lg: var(--ui-radius);
    --card-pad-md: var(--space-4);
    --card-pad-sm: var(--space-3);
    --page-hero-title-size: clamp(1.95rem, 3vw, 2.55rem);
    --page-hero-subtitle-size: clamp(1rem, 1.75vw, 1.2rem);
    --page-heading-size: clamp(1.52rem, 2.55vw, 2rem);
    --page-ranking-nav-title-size: clamp(1.12rem, 1.7vw, 1.42rem);
    --page-section-title-size: clamp(1.28rem, 2vw, 1.58rem);
    --page-card-title-size: clamp(1.08rem, 1.55vw, 1.22rem);
    --page-heading-gap: 18px;
    --page-body-size: 0.96rem;
    --page-body-size-sm: 0.84rem;
    --page-panel-pad-lg: 24px;
    --page-panel-pad-md: 20px;

    --palette-glow-a: rgba(255, 107, 97, 0.08);
    --palette-glow-b: rgba(59, 130, 246, 0.06);
    --palette-light-glow-a: rgba(31, 111, 235, 0.09);
    --palette-light-glow-b: rgba(14, 165, 165, 0.07);
}

html[data-palette="coral"] {
    --primary: #ff6b61;
    --secondary: #f97316;
    --tertiary: #fb7185;
    --gold: #facc15;
    --bg-dark: #0f0c0f;
    --bg-card: #171214;
    --bg-card-hover: #1f171a;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(255, 107, 97, 0.12);
    --palette-glow-b: rgba(249, 115, 22, 0.08);
    --palette-light-glow-a: rgba(255, 107, 97, 0.08);
    --palette-light-glow-b: rgba(249, 115, 22, 0.06);
}

html[data-palette="ocean"] {
    --primary: #38bdf8;
    --secondary: #3b82f6;
    --tertiary: #06b6d4;
    --gold: #22d3ee;
    --bg-dark: #081118;
    --bg-card: #0f1b24;
    --bg-card-hover: #132330;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(56, 189, 248, 0.12);
    --palette-glow-b: rgba(59, 130, 246, 0.08);
    --palette-light-glow-a: rgba(56, 189, 248, 0.08);
    --palette-light-glow-b: rgba(59, 130, 246, 0.06);
}

html[data-palette="mint"] {
    --primary: #34d399;
    --secondary: #10b981;
    --tertiary: #06b6d4;
    --gold: #a3e635;
    --bg-dark: #09150f;
    --bg-card: #111f18;
    --bg-card-hover: #162a21;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(52, 211, 153, 0.12);
    --palette-glow-b: rgba(16, 185, 129, 0.08);
    --palette-light-glow-a: rgba(52, 211, 153, 0.08);
    --palette-light-glow-b: rgba(16, 185, 129, 0.06);
}

html[data-palette="sunset"] {
    --primary: #fb7185;
    --secondary: #f43f5e;
    --tertiary: #f97316;
    --gold: #f59e0b;
    --bg-dark: #140c0d;
    --bg-card: #231416;
    --bg-card-hover: #2d181c;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(244, 63, 94, 0.12);
    --palette-glow-b: rgba(249, 115, 22, 0.08);
    --palette-light-glow-a: rgba(244, 63, 94, 0.08);
    --palette-light-glow-b: rgba(249, 115, 22, 0.06);
}

html[data-palette="amethyst"] {
    --primary: #a78bfa;
    --secondary: #8b5cf6;
    --tertiary: #6366f1;
    --gold: #f472b6;
    --bg-dark: #100d18;
    --bg-card: #191527;
    --bg-card-hover: #231c35;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(167, 139, 250, 0.12);
    --palette-glow-b: rgba(99, 102, 241, 0.08);
    --palette-light-glow-a: rgba(167, 139, 250, 0.08);
    --palette-light-glow-b: rgba(99, 102, 241, 0.06);
}

html[data-palette="amber"] {
    --primary: #f59e0b;
    --secondary: #f97316;
    --tertiary: #fb7185;
    --gold: #fde047;
    --bg-dark: #171108;
    --bg-card: #251a0f;
    --bg-card-hover: #312112;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(245, 158, 11, 0.12);
    --palette-glow-b: rgba(249, 115, 22, 0.08);
    --palette-light-glow-a: rgba(245, 158, 11, 0.08);
    --palette-light-glow-b: rgba(249, 115, 22, 0.06);
}

html[data-palette="rose"] {
    --primary: #f43f5e;
    --secondary: #ec4899;
    --tertiary: #8b5cf6;
    --gold: #f9a8d4;
    --bg-dark: #140b14;
    --bg-card: #221324;
    --bg-card-hover: #2b1930;
    --gradient-bg: var(--bg-dark);
    --gradient-card: var(--bg-card);
    --palette-glow-a: rgba(244, 63, 94, 0.12);
    --palette-glow-b: rgba(236, 72, 153, 0.08);
    --palette-light-glow-a: rgba(244, 63, 94, 0.08);
    --palette-light-glow-b: rgba(236, 72, 153, 0.06);
}



/* Header / Brand */
.header-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.header-title {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
    min-width: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.share-x-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    text-decoration: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.share-x-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.share-x-btn i {
    font-size: 1.05rem;
}

.theme-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.theme-toggle-btn i {
    font-size: 1rem;
}

.theme-toggle-btn.is-active {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.14);
}

.palette-picker {
    position: relative;
}

.palette-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease;
}

.palette-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.palette-toggle-btn.is-active {
    border-color: color-mix(in srgb, var(--primary) 62%, rgba(255, 255, 255, 0.25));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 35%, transparent);
}

.palette-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1400;
    width: 238px;
    border-radius: 14px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-card) 86%, #000);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: var(--shadow-card);
    padding: 10px;
}

.palette-popover-title {
    font-size: 0.72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 8px;
}

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

.palette-chip {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    background:
        linear-gradient(145deg, var(--c1) 0%, var(--c2) 37%, var(--c3) 70%, var(--c4) 100%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
}

.palette-chip.is-active {
    outline: 2px solid color-mix(in srgb, var(--primary) 60%, white);
    outline-offset: 1px;
}

.palette-caption {
    margin-top: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: right;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
}

.brand-logo .brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.brand-logo .brand-needle {
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    filter: none;
}

.brand-logo .brand-textblock {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    line-height: 1.0;
}

.brand-logo .brand-title {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    text-transform: none;
    font-size: 1.12rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.brand-logo .bt-holo {
    /* Keep HOLO a touch wider, but avoid pushing away "Meter". */
    letter-spacing: 0.04em;
    margin-right: 0;
}

.brand-logo .bt-meter {
    letter-spacing: 0.02em;
}

.brand-logo .bt-gap {
    width: 0.16em;
    display: inline-block;
}

.brand-logo .brand-subtitle {
    margin-top: 0;
    font-family: var(--font-body);
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    opacity: 0.9;
    white-space: nowrap;
}

.header-search-box {
    flex: 1;
    max-width: 400px;
    position: relative;
    margin-left: 20px;
}

.header-search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 0.9rem;
}

.header-search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 8px 15px 8px 35px;
    border-radius: 20px;
    font-size: 0.9rem;
    outline: none;
    transition: 0.3s;
}

.search-mobile-btn {
    color: #888;
    font-size: 1.2rem;
    display: none;
}

.separator {
    border-left: 1px solid #333;
}

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

    .search-mobile-btn {
        display: block;
    }
}

/* Mobile menu search */
.mm-title--top {
    margin-top: 0;
}

.mm-grid--primary {
    margin-bottom: 30px;
}

.mm-section--search {
    margin-bottom: 20px;
}

.mm-search-form {
    display: flex;
    gap: 10px;
}

.mm-search-input {
    flex: 1;
    background: #1a1a1a;
    border: 1px solid #333;
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    outline: none;
}

.mm-search-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}


/* 1. Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    width: 100%;
    position: relative;
}

html {
    overflow-x: hidden;
}

body {
    overflow-x: visible;
    overflow-y: visible;
    background:
        radial-gradient(1200px 680px at 6% -8%, var(--palette-glow-a), transparent 56%),
        radial-gradient(1000px 520px at 100% 0%, var(--palette-glow-b), transparent 60%),
        var(--bg-dark);
}

/* Accessibility utility */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
}

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

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

/* 2. Header */
.header-container {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.stats-hub-page .header-container {
    position: static;
    top: auto;
}

.header-top-row {
    padding: 15px 20px 10px;
    width: min(var(--content-max), 100%);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.scroll-nav {
    padding: 5px 20px 15px;
    width: min(var(--content-max), 100%);
    margin: 0 auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

.header-title h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    margin: 0;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
}

.header-title .meta {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* Scroll Nav */
.scroll-nav {
    display: flex;
    gap: 10px;
    align-items: center;
    overflow-x: auto;
    padding-bottom: 5px;
    scrollbar-width: none;
}

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

.pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    white-space: nowrap;
    padding: 8px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-dim);
    background: #111;
    border: 1px solid var(--border-color);
    text-decoration: none;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.pill:hover {
    color: #fff;
    border-color: var(--border-highlight);
    background: #1a1a1a;
}

.pill.active {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* 3. Main Container & Layout */
.main-container {
    max-width: var(--content-max);
    margin: var(--space-5) auto;
    padding: 0 var(--space-4);
    width: 100%;
    overflow: visible;
}

@media (max-width: 768px) {
    .main-container {
        padding: 0 var(--space-3);
        margin: var(--space-3) auto;
    }

    .header-top-row {
        width: 100%;
        margin: 0;
        padding: 10px 10px 8px !important;
    }

    .scroll-nav {
        width: 100%;
        margin: 0;
        padding: 5px 10px 12px !important;
    }

    /* Move logo and items closer to the left edge */
    .header-title {
        gap: 8px !important;
    }

    .brand-logo {
        gap: 4px !important;
        font-size: 0.9rem !important;
    }

    .scroll-nav {
        gap: 6px;
    }

    .scroll-nav .pill {
        min-height: 36px;
        padding: 7px 12px;
        font-size: 0.74rem;
    }
}

/* 4. Section Titles */
.hero-section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: #fff;
    margin: 30px 0 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title {
    margin: 0 0 calc(var(--section-gap-tight) + 4px);
    font-size: var(--page-section-title-size);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.hero-section-title i {
    color: var(--text-muted);
}

.hero-section-title.live i {
    color: var(--primary);
}

.hero-section-title.next i {
    color: var(--secondary);
}

/* 5. Hero Cards (Live/Next) */
.stream-scroll-box {
    overflow-x: auto;
    padding-bottom: 15px;
    margin: 0 -20px;
    /* Bleed on mobile */
    padding: 0 20px 15px;
}

.hero-grid {
    display: flex;
    gap: 15px;
}

.hero-grid li {
    flex: 0 0 280px;
}

.hero-card {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    height: 100%;
    align-items: center;
}

.hero-card:hover {
    border-color: var(--border-highlight);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.hero-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.hero-content {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #eee;
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-pill {
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 6px;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.pill-live {
    background: rgba(239, 68, 68, 0.2);
    color: var(--primary);
}

.pill-next {
    background: rgba(59, 130, 246, 0.2);
    color: var(--secondary);
}

/* 6. Ranking Cards */
.ranking-card-detailed {
    background: var(--bg-card);
    border: 1px solid var(--accent-color, var(--border-color));
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s, border-color 0.2s;
}

.ranking-card-detailed:hover {
    border-color: var(--accent-color, var(--border-highlight));
    box-shadow: var(--shadow-card);
}

.stats-ranking-page {
    padding-bottom: 28px;
}

.stats-ranking-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px 10px 0;
}

.stats-ranking-header {
    margin-bottom: 18px;
}

.stats-ranking-meta {
    margin: 8px 0 0;
    color: var(--text-dim);
    font-size: 0.82rem;
    font-weight: 600;
}

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

.stats-ranking-list .ranking-card-detailed {
    margin-bottom: 0;
}

.stats-ranking-actions {
    display: flex;
    justify-content: center;
    margin: 30px 0;
}

/* Rank Number */
.rc-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.rc-rank {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    font-style: italic;
    line-height: 1;
    margin-right: 20px;
    min-width: 40px;
    text-align: center;
    color: var(--border-highlight);
}

.rk-1 .rc-rank {
    color: var(--gold);
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
}

.rk-2 .rc-rank {
    color: #e5e5e5;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.rk-3 .rc-rank {
    color: #d97706;
    text-shadow: 0 0 20px rgba(217, 119, 6, 0.2);
}

.rc-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.rc-info {
    flex: 1;
    min-width: 0;
}

.rc-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.rc-name span {
    font-size: 0.8rem;
    color: var(--text-dim);
    font-weight: 400;
    opacity: 0.7;
}

.rc-name-link {
    color: inherit;
    text-decoration: none;
}

.rc-name-link:hover {
    text-decoration: underline;
}

.rc-name .rc-oshi {
    color: var(--accent-color, var(--text-dim));
    font-weight: 600;
    opacity: 0.95;
}

.rc-diff {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-color, var(--text-dim));
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border: 1px solid var(--accent-color, rgba(255, 255, 255, 0.12));
    border-radius: 6px;
    display: inline-block;
}

.rc-diff--up {
    color: #10b981;
    border-color: #10b981;
}

.rc-diff--down {
    color: #ef4444;
    border-color: #ef4444;
}

.rc-stream-title {
    font-size: 0.8rem;
    margin-top: 4px;
    opacity: 0.8;
}

.rc-stream-title a {
    color: #fff;
    text-decoration: none;
}

.rc-stream-title a:hover {
    text-decoration: underline;
}

.rc-love-area {
    text-align: right;
}

.rc-love-val {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rc-love-label {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

/* Stats Grid in Card */
.rc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (min-width: 768px) {
    .rc-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.rc-box {
    background: #111;
    border: 1px solid #222;
    border-radius: 8px;
    padding: 12px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.rc-box--accent {
    border-color: var(--accent-color, #94a3b8);
    background: rgba(255, 255, 255, 0.05);
}

.rc-box-label {
    font-size: 0.7rem;
    color: #666;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rc-box--accent .rc-box-label {
    color: var(--accent-color, #94a3b8);
}

.rc-box-val {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    color: #ddd;
}

.rc-unit-small {
    font-size: 0.7em;
    color: #555;
    margin-left: 2px;
}

/* 6.5. Dashboard & Navigation */
.dashboard-desc {
    text-align: center;
    margin-bottom: var(--section-gap);
    padding: var(--page-panel-pad-lg);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--card-radius-md);
    border: none;
}

.dashboard-desc h1,
.dashboard-desc .dashboard-desc-title {
    font-size: var(--page-section-title-size);
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.dashboard-desc h1 i,
.dashboard-desc .dashboard-desc-title i {
    color: var(--secondary);
    margin-right: 6px;
    font-size: 1.2rem;
}

.dashboard-desc p,
.dashboard-desc .dashboard-desc-copy {
    font-size: var(--page-body-size);
    color: var(--text-dim);
    line-height: 1.68;
    max-width: 650px;
    margin: 0 auto;
}

.dashboard-desc--hero {
    text-align: left;
    background: linear-gradient(90deg, rgba(255, 107, 97, 0.08) 0%, transparent 100%);
    padding: var(--page-panel-pad-lg);
}

.dashboard-desc--hero .dashboard-desc-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    font-size: var(--page-section-title-size);
    line-height: 1.2;
}

.dashboard-hero-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    filter: drop-shadow(0 0 6px var(--primary-soft));
}

.dashboard-desc-main {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.005em;
}

.dashboard-desc--hero .dashboard-desc-subtitle {
    font-size: var(--page-body-size-sm);
    font-weight: 500;
    color: var(--text-dim);
    margin: 0 0 10px 0;
    letter-spacing: 0.01em;
    line-height: 1.62;
}

.dashboard-desc--hero .dashboard-desc-copy {
    font-size: var(--page-body-size);
    margin: 0;
    opacity: 0.92;
    line-height: 1.72;
}

.holonavi-cta {
    margin: 0 0 18px;
    padding: var(--page-panel-pad-md);
    border: none;
    border-radius: var(--ui-radius);
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 16%, transparent) 0%, color-mix(in srgb, var(--bg-card) 92%, var(--secondary) 8%) 100%);
    display: grid;
    gap: 14px;
}

.holonavi-cta--compact {
    margin-top: 14px;
}

.holonavi-cta__meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.holonavi-cta__lead {
    min-width: 0;
}

.holonavi-cta__eyebrow {
    margin: 0 0 6px;
    color: #93c5fd;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.holonavi-cta__title {
    margin: 0;
    color: var(--text-main);
    font-size: var(--page-card-title-size);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.holonavi-cta__copy {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: var(--page-body-size);
    line-height: 1.72;
    max-width: 56rem;
}

.holonavi-cta__chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.holonavi-cta__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    border: none;
    border-radius: var(--ui-radius);
    background: rgba(15, 23, 42, 0.4);
    color: #cbd5e1;
    font-size: var(--page-body-size-sm);
    font-weight: 600;
}

.holonavi-cta__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.holonavi-cta__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 14px 16px;
    min-height: 58px;
    border: none;
    border-radius: var(--ui-radius);
    background: rgba(15, 23, 42, 0.42);
    color: var(--text-main);
    text-decoration: none;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.holonavi-cta__link:hover {
    transform: translateY(-1px);
    background: rgba(30, 41, 59, 0.66);
}

.holonavi-cta__link.is-primary {
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 82%, #0f172a) 0%, color-mix(in srgb, var(--secondary) 58%, #111827) 100%);
    border-color: transparent;
    color: #ffffff;
}

.holonavi-cta__link.is-primary:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--secondary) 88%, #0f172a) 0%, color-mix(in srgb, var(--secondary) 64%, #111827) 100%);
}

.holonavi-cta__link-body {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.holonavi-cta__link-label {
    display: block;
    min-width: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
}

.holonavi-cta__link-sub {
    display: block;
    min-width: 0;
    color: var(--text-dim);
    font-size: var(--page-body-size-sm);
    line-height: 1.48;
}

.holonavi-cta__link.is-primary .holonavi-cta__link-sub {
    color: rgba(255, 255, 255, 0.82);
}

@media (max-width: 640px) {
    .dashboard-desc {
        display: none;
    }

    .holonavi-cta {
        padding: 14px;
        gap: 10px;
    }

    .holonavi-cta__title {
        font-size: 1.04rem;
    }

    .holonavi-cta__copy {
        font-size: 0.88rem;
        margin-top: 6px;
    }

    .holonavi-cta__chips {
        width: 100%;
    }

    .holonavi-cta__actions {
        grid-template-columns: 1fr;
    }

    .holonavi-cta__link {
        padding: 12px;
        min-height: 50px;
    }

    .holonavi-cta__link-label {
        font-size: 0.9rem;
    }

    .holonavi-cta__link-sub {
        font-size: 0.75rem;
    }
}

.date-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.2rem;
    font-weight: bold;
    line-height: 1;
    padding: 8px 12px;
    min-height: 56px;
    border-radius: 18px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.date-nav a,
.date-nav .nav-disabled {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    padding: 0;
    line-height: 1;
}

.date-nav a {
    color: #fff;
    transition: transform 0.2s;
    text-decoration: none;
}

.date-nav a:hover {
    transform: translateY(-1px);
}

.date-nav-bottom {
    margin-top: 18px;
}

.hm-display-ad {
    margin: 16px 0 24px;
    padding: 10px 12px;
    overflow: hidden;
}

.hm-display-ad .adsbygoogle {
    display: block;
    width: 100%;
    min-height: 100px;
}

@media (max-width: 768px) {
    .hm-display-ad {
        margin: 14px 0 20px;
        padding: 8px 10px;
    }
}

.date-nav time,
.date-nav span:not(.nav-disabled) {
    min-width: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.date-nav .nav-disabled {
    color: #444;
    cursor: default;
}

.date-nav a i,
.date-nav .nav-disabled i {
    display: block;
    font-size: 0.92rem;
    line-height: 1;
}

/* 7. Parts Stream Card (Shared) */
.stream-card {
    display: flex;
    flex-direction: row;
    background: #0f0f0f;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
    text-decoration: none;
}

.stream-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    background:
        radial-gradient(900px 240px at 12% 18%, color-mix(in srgb, var(--card-accent, var(--oshi-color)) 26%, transparent) 0%, transparent 60%),
        radial-gradient(700px 220px at 88% 82%, color-mix(in srgb, var(--card-accent, var(--oshi-color)) 18%, transparent) 0%, transparent 62%);
}

.stream-card>* {
    position: relative;
    z-index: 1;
}

.rank-card {
    margin-bottom: 10px;
}

.rank-card .stream-thumb {
    width: 180px;
    aspect-ratio: 16/9;
}

.rank-card .stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: auto;
}

.rank-card .thumb-owner-wrap {
    display: none;
}

.rank-card .thumb-owner-overlay {
    display: none;
}

@media (max-width: 640px) {
    .rank-card {
        flex-direction: column;
    }

    .rank-card .stream-thumb {
        width: 100%;
        aspect-ratio: 16/9;
    }

    .rank-card .stream-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        aspect-ratio: auto;
    }

    .rank-card .stream-info {
        justify-content: flex-start;
        width: 100%;
        padding-top: 6px;
    }

    .rank-card .stream-title {
        margin-top: 0;
    }

    .rank-card .stream-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px 10px;
        margin-top: 8px;
        font-size: 0.72rem;
    }

    .rank-card .stream-stats .stat-item {
        min-width: 0;
        white-space: nowrap;
    }

    .rank-card .stream-owner-line {
        display: flex;
        margin-bottom: 4px;
    }

    .rank-card .stream-owner-line .owner-icon {
        display: inline-block;
        width: 16px;
        height: 16px;
    }

    .rank-card .thumb-owner-wrap {
        display: none;
    }

    .rank-card .thumb-owner-overlay {
        display: none !important;
    }

    .rank-card.is-owner-under-thumb {
        display: grid;
        grid-template-columns: 180px minmax(0, 1fr);
        grid-template-areas: "thumb info";
        align-items: stretch;
        column-gap: 9px;
    }

    .rank-card.is-owner-under-thumb .stream-thumb {
        grid-area: thumb;
        width: 100%;
    }

    .rank-card.is-owner-under-thumb .thumb-owner-below {
        display: none;
    }

    .rank-card.is-owner-under-thumb .stream-info {
        grid-area: info;
        width: 100%;
        padding-top: 0;
        min-height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: 4px;
    }

    .rank-card.is-owner-under-thumb .stream-owner-line {
        display: flex;
        margin-bottom: 2px;
        gap: 6px;
    }

    .rank-card.is-owner-under-thumb .stream-owner-line .owner-icon {
        width: 14px;
        height: 14px;
    }

    .rank-card.is-owner-under-thumb .stream-owner-line .owner-name {
        font-size: 0.78rem;
        line-height: 1.1;
    }

    .rank-card.is-owner-under-thumb .stream-title {
        margin-bottom: 4px;
        line-height: 1.32;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .rank-card.is-owner-under-thumb .stream-stats {
        margin-top: 0;
        gap: 2px 10px;
        font-size: 0.7rem;
        line-height: 1.05;
    }
}

.stream-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--card-accent, var(--oshi-color));
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.38),
        0 0 0 1px color-mix(in srgb, var(--card-accent, var(--oshi-color)) 38%, transparent);
}

.stream-card:hover::before {
    opacity: 1;
}

.stream-thumb {
    width: 160px;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.stream-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    border-radius: 12px;
}

/* Badges within Stream Thumb */
.thumb-badge {
    position: absolute;
    z-index: 5;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.85);
}

.thumb-badge.badge-seen {
    bottom: 8px;
    right: 8px;
    background: rgba(16, 185, 129, 0.9);
}

.stream-card.is-seen .stream-title::after {
    content: "（見た）";
    font-size: 0.75em;
    color: #10b981;
    margin-left: 6px;
}

.seen-filter-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 0 14px;
}

.seen-filter-toolbar .pill {
    cursor: pointer;
}

.seen-filter-toolbar .seen-reset {
    opacity: 0.9;
}

body.seen-filter-enabled.hm-hide-seen .stream-card.is-seen {
    display: none !important;
}

.stream-thumb img.thumb-fallback {
    opacity: 0.4;
}

.badge-time {
    bottom: 4px;
    left: 4px;
}

.badge-total-duration {
    bottom: 4px;
    right: 4px;
    background: rgba(0, 0, 0, 0.9);
    font-size: 1rem;
    padding: 4px 8px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-status {
    top: 4px;
    right: 4px;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.badge-live {
    background: var(--primary);
}

.badge-next {
    background: var(--secondary);
}

.badge-mem {
    bottom: 4px;
    left: 4px;
    background: #10b981;
}

.stream-info {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

@media (max-width: 480px) {
    .stream-thumb {
        width: 130px;
    }

    .stream-title {
        font-size: 0.85rem;
        margin-bottom: 4px;
    }

    .stream-stats {
        gap: 8px;
        font-size: 0.7rem;
    }

    .badge-total-duration {
        font-size: 0.8rem;
        padding: 2px 4px;
    }
}

.stream-owner-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.thumb-owner-below {
    display: none;
}

.owner-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.owner-name {
    font-size: 0.75rem;
    color: #cbd5e1;
    /* Brighter than #999 */
}

.stream-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    /* Max brightness */
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.stream-stats {
    display: flex;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #cbd5e1;
    /* Brighter than text-dim */
    list-style: none;
    padding: 0;
    margin: 0;
}

.stream-card .stream-stats {
    margin-top: 6px;
}

.stream-card.card-16x9-row {
    flex-direction: row;
    align-items: flex-start;
}

.stream-card.card-16x9-row .stream-thumb {
    width: 180px;
    flex: 0 0 180px;
}

.stream-card.card-16x9-row .stream-thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    aspect-ratio: 16/9;
}

.stream-card.card-top-thumb {
    flex-direction: column;
}

.stream-card.card-top-thumb .stream-thumb {
    width: 100%;
}

.stream-card.card-top-thumb .stream-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.stream-card.is-owner-hidden .stream-title {
    margin-top: 0;
}

.stream-card.is-stats-compact .stream-stats {
    margin-top: 4px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.stat-item i {
    font-size: 0.7rem;
    opacity: 0.7;
}

.unit {
    font-size: 0.8em;
    opacity: 0.7;
    margin-left: 1px;
}

.inline-time {
    margin-left: 8px;
    color: var(--secondary);
    font-weight: 700;
    background: rgba(59, 130, 246, 0.1);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.75rem;
}

.stat-item.c-sc {
    color: var(--gold);
}

.stat-item.c-gift {
    color: var(--secondary);
}

.stat-item.c-member {
    color: #10b981;
}

/* Summary Stat Cards (Global) */
.stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin: 18px 0 24px;
}

.s-card {
    background: rgba(12, 12, 12, 0.9);
    border: none;
    border-radius: 12px;
    padding: 18px;
    box-shadow: none;
}

.s-card-label {
    color: #777;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.s-card-val {
    font-size: clamp(1.14rem, 1.9vw, 1.32rem);
    font-weight: 800;
    color: #fff;
    font-family: var(--font-mono);
}

.s-card .unit-small {
    font-size: 0.7em;
    opacity: 0.6;
}

/* Rank Badge in Stream Card */
.rank-badge {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    padding: 2px 8px;
    border-bottom-right-radius: 6px;
    font-weight: 800;
    font-family: var(--font-heading);
    font-style: italic;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.rank-badge.rank-1 {
    background: var(--gold);
    color: #000;
    text-shadow: none;
}

.rank-badge.rank-2 {
    background: #e5e5e5;
    color: #000;
    text-shadow: none;
}

.rank-badge.rank-3 {
    background: #d97706;
    color: #000;
    text-shadow: none;
}

.rank-badge.rank-other {
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.8rem;
}

/* 7.5. Timeline */
.timeline-section {
    margin-bottom: var(--space-7);
}

.timeline-title {
    font-size: var(--page-section-title-size);
    color: #e2e8f0;
    margin: 0 0 var(--page-heading-gap);
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.15;
    font-weight: 600;
}

.timeline-title i {
    color: var(--secondary);
}

.page-title {
    color: #e5e7eb;
    font-weight: 700;
    margin: 0 0 var(--page-heading-gap);
}

/* ============================
   Members Page (members.php)
   ============================ */
.members-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 10px 0 22px;
    flex-wrap: wrap;
}

.members-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
    min-width: min(520px, 92vw);
}

.members-search i {
    color: rgba(255, 255, 255, 0.55);
}

.members-search input {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    font-size: 0.95rem;
}

.members-chips {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.members-chips .chip {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.85);
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.members-chips .chip:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
}

.members-chips .chip.active {
    background: rgba(255, 0, 85, 0.18);
    border-color: rgba(255, 0, 85, 0.35);
    color: #fff;
}

.members-section {
    margin: 28px 0 38px;
}

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

@media (min-width: 720px) {
    .member-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .member-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

.member-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
    transform: translateZ(0);
    position: relative;
    transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.member-card::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 20px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    background:
        radial-gradient(260px 200px at 28% 20%, color-mix(in srgb, var(--card-accent, var(--oshi-color)) 28%, transparent) 0%, transparent 60%),
        radial-gradient(260px 200px at 72% 80%, color-mix(in srgb, var(--card-accent, var(--oshi-color)) 22%, transparent) 0%, transparent 62%);
    filter: blur(0.2px);
}

.member-card:hover {
    border-color: var(--card-accent, var(--oshi-color));
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px color-mix(in srgb, var(--card-accent, var(--oshi-color)) 55%, transparent), 0 0 26px color-mix(in srgb, var(--card-accent, var(--oshi-color)) 18%, transparent);
    background: rgba(255, 255, 255, 0.04);
}

.member-card:hover::before {
    opacity: 1;
}

.member-card__media {
    position: relative;
    aspect-ratio: 1 / 1;
    background: #0b0b0b;
}

.member-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translateZ(0);
}

.member-card__bg {
    position: absolute;
    inset: -18% -18% auto -18%;
    height: 70%;
    background-size: cover;
    background-position: center;
    transform: scaleY(-1);
    filter: blur(18px) saturate(0.95);
    opacity: 0.55;
}

.member-card__overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 14px 14px 12px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.65) 55%, rgba(0, 0, 0, 0.92) 100%);
}

.member-card__name {
    font-weight: 800;
    letter-spacing: 0.02em;
    font-size: 1.02rem;
    text-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}

.member-card__sub {
    margin-top: 4px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.78);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* New stacked layout for members page */
.member-grid.member-grid--all {
    margin-top: 4px;
}

.member-card.member-card--stack {
    display: flex;
    flex-direction: column;
}

.member-card.member-card--stack .member-card__media {
    aspect-ratio: 1 / 1;
}

.member-card.member-card--stack .member-card__meta {
    padding: 12px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.member-card.member-card--stack .member-card__name {
    font-size: 1.02rem;
    text-shadow: none;
}

.member-card__group {
    align-self: flex-start;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
    padding: 5px 10px;
    border-radius: 999px;
}

.timeline-count {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: auto;
}

/* Live page */
.page-title.page-title--live {
    font-size: 1.4rem;
    margin-bottom: 14px;
}

.no-data-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: block;
}

.live-badge.scheduled {
    background: #555;
}

.live-ccv-badge.scheduled {
    background: rgba(0, 0, 0, 0.7);
    font-size: 0.85rem;
}

.live-badge.ended {
    background: #333;
}

.live-ccv-badge.ended {
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.85rem;
    color: #ddd;
}

.update-time {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
    text-align: right;
}

.live-ccv-badge i {
    margin-right: 4px;
}

.live-stats-row {
    display: flex;
    justify-content: flex-end;
}

.live-icon {
    border-color: var(--accent, #ccc);
}

.timeline-hour-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 25px;
    margin-bottom: 8px;
    padding: 10px 14px;
    background: rgba(148, 163, 184, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 14px;
}

/* Ratio Ranking Card */
.ranking-card-ratio {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* Ratio ranking card refresh */
.ratio-card {
    background: var(--gradient-card);
    /* Use per-card oshi color when available (index.php sets --oshi-color inline). */
    border: 1px solid color-mix(in srgb, var(--oshi-color) 85%, var(--border-color));
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.ratio-card__header-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 9px;
    border-bottom: 1px solid var(--border-color);
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

.ratio-card__header-link:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--oshi-color) 55%, transparent);
    outline-offset: 2px;
    border-radius: 12px;
}

.ratio-card:hover {
    border-color: var(--oshi-color);
    box-shadow:
        var(--shadow-card),
        0 0 0 1px color-mix(in srgb, var(--oshi-color) 38%, transparent),
        0 0 22px color-mix(in srgb, var(--oshi-color) 14%, transparent);
}

.ranking-card-detailed.is-hero,
.ratio-card.is-hero {
    border-width: 2px;
    border-color: var(--oshi-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.ranking-card-detailed.is-hero .rc-thumb,
.ratio-card.is-hero .ratio-card__avatar {
    transform: scale(1.05);
    transition: transform 0.2s ease;
}

.ratio-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.82rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.ca-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.75rem;
}

.ca-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.rank-more-wrap {
    display: flex;
    justify-content: center;
    margin: 18px 0 30px;
}

.rank-more-btn {
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    padding: 10px 24px;
    font-weight: 700;
    cursor: pointer;
}

.rank-hidden {
    display: none;
}

@media (max-width: 768px) {
    .stream-card {
        padding: 10px;
    }

    .stream-card .stream-title {
        font-size: 0.9rem;
    }

    .stream-card .stream-stats {
        gap: 8px;
        flex-wrap: wrap;
    }

    .stream-card .stat-item {
        font-size: 0.75rem;
    }
}

/* Quick Actions */
.quick-actions {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 16px 0 22px;
}

.qa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.2s ease;
}

.qa-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

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

.ratio-card__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 9px;
    border-bottom: 1px solid var(--border-color);
}

.ratio-card__rank {
    font-size: 1.35rem;
    font-weight: 900;
    font-family: var(--font-heading);
    color: rgba(226, 232, 240, 0.82);
    font-style: italic;
    min-width: 24px;
    text-align: left;
    text-shadow: 0 1px 2px rgba(2, 6, 23, 0.5);
}

.rk-1 .ratio-card__rank {
    color: #ffd64f;
}

.rk-2 .ratio-card__rank {
    color: #c7d2e0;
}

.rk-3 .ratio-card__rank {
    color: #d79b57;
}


.ratio-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid var(--oshi-color);
    box-shadow: 0 0 16px rgba(0, 0, 0, 0.35);
    object-fit: cover;
}

.ratio-card__name {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.98rem;
    line-height: 1.2;
}

.ratio-card__grow {
    flex: 1;
    min-width: 0;
}

.ratio-card__oshi {
    font-size: 0.95rem;
    color: var(--oshi-color);
    font-weight: 600;
}

.ratio-unit {
    font-size: 0.55em;
    margin-left: 2px;
}

.ratio-card__meta {
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.ratio-card__metric {
    margin-left: auto;
    text-align: right;
}

.ratio-card__metric-label {
    font-size: 0.68rem;
    color: var(--text-dim);
    font-weight: 700;
}

.ratio-card__metric-val {
    font-size: 1.22rem;
    font-weight: 900;
    color: var(--secondary);
    font-family: var(--font-mono);
    line-height: 1;
}

.ratio-card-compact .ratio-card__header {
    border-bottom: 0;
    padding-left: 10px;
    padding-right: 10px;
    gap: 9px;
}

.ratio-card-compact .ratio-card__name {
    flex-wrap: nowrap;
    min-width: 0;
    margin-left: -1px;
}

.ratio-card-compact .ratio-card__name a {
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ratio-card__body {
    padding: 16px;
}

.ratio-card__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.ratio-card__panel {
    flex: 1;
    min-width: 170px;
}

.ratio-card__panel-title {
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 6px;
    margin-bottom: 10px;
}

.ratio-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 6px;
    margin-bottom: 10px;
    overflow: hidden;
}

.ratio-bar__fill {
    height: 100%;
    background: var(--secondary);
    border-radius: 6px;
}

.ratio-card__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.02rem;
}

.ratio-card__stats span {
    white-space: nowrap;
}

.ratio-card__total {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.6rem;
    font-weight: 900;
    font-family: var(--font-mono);
}

.ratio-card__streams {
    border-top: 1px dashed var(--border-color);
    margin-top: 16px;
    padding-top: 12px;
}

@media (max-width: 720px) {
    .ratio-card__header {
        flex-wrap: wrap;
        gap: 12px;
    }

    .ratio-card__metric {
        width: 100%;
        text-align: left;
    }

    .ratio-card__grid {
        gap: 12px;
    }

    .ratio-card-compact .ratio-card__header {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .ratio-card-compact .ratio-card__metric {
        width: auto;
        text-align: right;
    }

    .ratio-card-compact .ratio-card__name {
        font-size: 0.9rem;
    }
}

.ratio-header {
    display: flex;
    padding: 15px 20px;
}

.ratio-main-info {
    flex: 2;
    padding-right: 15px;
}

.ratio-val-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.ratio-label {
    font-size: 0.7rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ratio-value {
    font-size: 1.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
}

.ratio-inc-stats {
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    gap: 15px;
}

.ratio-side-info {
    flex: 1;
    min-width: 120px;
    border-left: 1px solid var(--border-color);
    padding-left: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ratio-total-label {
    font-size: 0.7rem;
    color: #aaa;
    margin-bottom: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.ratio-total-label span {
    font-size: 0.6rem;
    opacity: 0.7;
}

.ratio-total-value {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gold);
    margin-bottom: 2px;
}

/* Archive List in Rankings */
.archive-section {
    padding: 10px 15px;
    border-top: 1px solid #222;
}

.archive-section-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.archive-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.timeline-hour-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #dbe7f3;
}

.timeline-hour-count {
    font-size: 0.85rem;
    color: var(--text-dim);
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.timeline-grid .rank-hidden {
    display: flex !important;
    opacity: 1 !important;
}

.home-member-quick {
    margin-top: 18px;
}

.home-member-quick-title {
    margin: 0 0 10px;
    font-size: 0.98rem;
    font-weight: 800;
    color: #dbeafe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.home-member-quick-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.home-member-quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid color-mix(in oklab, var(--oshi-color) 55%, #334155);
    border-radius: 10px;
    padding: 8px 9px;
    min-width: 0;
}

.home-member-quick-item img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid color-mix(in oklab, var(--oshi-color) 70%, #64748b);
    flex-shrink: 0;
}

.home-member-quick-item span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.home-member-quick-item:hover {
    background: rgba(15, 23, 42, 0.68);
    transform: translateY(-1px);
}

@media (min-width: 1280px) {
    .timeline-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .home-member-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1100px) and (min-width: 769px) {
    .home-member-quick-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.ranking-section-title {
    text-align: center;
    font-size: var(--page-section-title-size);
    color: #fff;
    margin-bottom: var(--page-heading-gap);
    font-weight: 600;
    line-height: 1.15;
}

/* Ranking title with built-in date navigation (daily mode) */
.ranking-title-nav {
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 800;
    color: #fff;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.ranking-title-nav .rt-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 34px;
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.10);
    user-select: none;
    font-weight: 900;
}

.ranking-title-nav .rt-nav:hover {
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.16);
}

.ranking-title-nav .rt-disabled {
    opacity: 0.35;
}

.ranking-title-nav .rt-text {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
}

.ranking-title-nav .rt-date {
    font-size: 0.95rem;
    font-weight: 700;
    opacity: 0.85;
}

.ranking-title-nav .rt-desc {
    font-size: var(--page-ranking-nav-title-size);
    font-weight: 900;
}

@media (max-width: 600px) {
    .ranking-title-nav {
        gap: 6px;
        padding: 6px 8px;
        margin-bottom: 14px;
    }

    .ranking-title-nav .rt-text {
        gap: 4px;
        white-space: nowrap;
    }

    .ranking-title-nav .rt-desc {
        font-size: 1.02rem;
    }

    .ranking-title-nav .rt-date {
        font-size: 0.78rem;
    }

    .ranking-title-nav .rt-nav {
        width: 30px;
        height: 28px;
        border-radius: 8px;
    }
}

/* 8. Utility & Footer */
.no-data-msg {
    text-align: center;
    color: #666;
    padding: 40px;
    margin: 40px 0;
    border: 1px dashed #333;
    border-radius: 8px;
}

.footer-copy {
    text-align: center;
    color: #444;
    font-size: 0.75rem;
    margin-top: 60px;
    padding-bottom: 40px;
    font-family: var(--font-mono);
}

.footer-seo-copy {
    max-width: 980px;
    margin: 0 auto 12px auto;
    padding: 0 12px;
    font-size: 0.78rem;
    line-height: 1.6;
    color: rgba(220, 225, 235, 0.58);
    letter-spacing: 0.01em;
    font-family: var(--font-body);
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.footer-nav a {
    color: var(--text-dim);
    font-size: 0.85rem;
    font-weight: 600;
}

.footer-nav a:hover {
    color: var(--secondary);
}

.site-footer {
    margin-top: auto;
    padding: 30px 20px;
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #1a1a1a;
}

.site-footer-links {
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.site-footer-links a {
    color: #666;
    text-decoration: none;
}

.site-footer-copy {
    font-family: var(--font-mono);
}

/* 9. Mobile Tweaks */
@media (max-width: 480px) {
    .header-container {
        padding: 15px;
    }

    .main-container {
        padding: 0 15px;
    }

    .stream-thumb {
        width: 130px;
    }

    .rc-rank {
        font-size: 2rem;
        margin-right: 15px;
        min-width: 30px;
    }

    .rc-thumb {
        width: 50px;
        height: 50px;
        margin-right: 12px;
    }

    .rc-name {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .stream-thumb {
        width: 140px;
    }
}

.timeline-card {
    --timeline-card-radius: var(--card-radius-md);
    --timeline-thumb-inset: 10px;
    flex-direction: column;
    border-radius: var(--timeline-card-radius);
    padding: 0;
}

.timeline-card .stream-thumb {
    width: 100%;
    padding: var(--timeline-thumb-inset) var(--timeline-thumb-inset) 0;
    box-sizing: border-box;
}

.timeline-card .stream-thumb img {
    height: auto;
    aspect-ratio: 16/9;
    border-radius: calc(var(--timeline-card-radius) - var(--timeline-thumb-inset) / 3 - 1px);
}

.timeline-card .stream-info {
    padding: 12px 14px;
}

@media (max-width: 640px) {
    .timeline-card {
        padding: 0;
    }

    .stream-graph-page .related-row .stream-card {
        flex-direction: column;
    }

    .stream-graph-page .related-row .stream-thumb {
        width: 100%;
    }

    .stream-graph-page .related-row .stream-thumb img {
        height: auto;
        aspect-ratio: 16/9;
    }
}

@media (max-width: 640px) {
    .search-title .search-title-query {
        display: block;
        margin-top: 6px;
    }

    .search-form {
        flex-direction: column;
        gap: 10px;
    }

    .search-field {
        width: 100%;
    }

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

    .search-submit {
        text-align: center;
    }
}

/* History Page Specifics (retained structure, updated style) */
.history-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
}

/* History Profile + Timeline (refactor) */
.history-page {
    padding: 20px 20px 8px;
}

.history-page+.main-container {
    margin-top: var(--space-2);
}

.history-header {
    display: flex;
    gap: 24px;
    align-items: center;
    padding: var(--page-panel-pad-lg);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    border: none;
    box-shadow: none;
}

.history-avatar {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.history-header img.history-avatar {
    width: 92px !important;
    height: 92px !important;
    border-radius: 50%;
    object-fit: cover;
}

.profile-card {
    padding: var(--page-panel-pad-lg);
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
    box-shadow: none;
    gap: 26px;
    align-items: center;
}

.profile-card .stream-thumb.profile-thumb {
    width: 96px;
    height: 96px;
    max-width: 30vw;
    border-radius: 50%;
    overflow: hidden;
}

.stream-thumb.profile-thumb img.profile-thumb-img {
    width: 100%;
    height: 100%;
    display: block;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.profile-info {
    padding: 0;
}

.profile-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
}

.profile-name {
    font-size: 2rem;
    margin: 0 0 6px;
    font-family: var(--font-heading);
}

.profile-affiliation {
    font-size: 0.95rem;
}

.history-header-body {
    flex: 1;
    min-width: 0;
}

.history-header-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.history-name {
    font-size: 2.1rem;
    margin: 0 0 6px;
    font-family: var(--font-heading);
}

.history-oshi-mark {
    font-size: 1.1rem;
    margin-left: 8px;
    opacity: 0.9;
}

.history-affiliation {
    color: var(--text-dim);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    word-break: keep-all;
}

.history-unit-sep {
    opacity: 0.4;
}

.history-unit-tag {
    color: #cbd5f5;
    font-weight: 700;
    white-space: nowrap;
    word-break: keep-all;
}

.history-socials {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.history-social-btn.is-youtube {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.3);
    color: #ff8a80;
}

.history-social-btn.is-x {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #e5e7eb;
}

.history-meta {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    color: #b8b8b8;
    font-size: 0.9rem;
    flex-wrap: wrap;
}

.history-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.history-meta-label {
    color: #94a3b8;
    font-weight: 700;
}

.history-meta-value {
    color: #e5e7eb;
    font-weight: 700;
}

.history-meta-item-birthday .history-meta-value {
    color: #f8b4c5;
}

.history-member-color-btn {
    border-color: color-mix(in srgb, var(--primary) 34%, rgba(255, 255, 255, 0.2));
    color: #e2e8f0;
}

.history-member-color-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 52%, rgba(255, 255, 255, 0.24));
}

.history-meta-icon {
    color: #666;
    margin-right: 6px;
}

.history-hero .hero-live-box {
    border: 1px solid #1a1a1a;
    background: #0b0b0b;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-live-box.is-live {
    --hero-accent: #ef4444;
}

.hero-live-box.is-next {
    --hero-accent: #3b82f6;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    color: var(--hero-accent);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 999px;
    margin-bottom: 12px;
    font-size: 0.85rem;
}

.hero-content {
    display: flex;
    gap: 18px;
    align-items: center;
}

.hero-thumb {
    width: 200px;
    max-width: 45vw;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.hero-thumb-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.hero-live-pill {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ef4444;
    color: #fff;
    font-weight: 800;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 8px;
}

.hero-info {
    flex: 1;
    min-width: 0;
}

.hero-title {
    font-size: 1.15rem;
    margin: 0 0 8px;
    color: #fff;
}

.hero-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--hero-accent);
    font-family: var(--font-mono);
}

.hero-meta.is-live {
    --hero-accent: #ff4d4d;
}

.hero-meta.is-next {
    --hero-accent: #4da3ff;
}

.hero-meta-unit {
    font-size: 0.75rem;
    opacity: 0.6;
    margin-left: 2px;
}

.hero-meta i {
    font-size: 0.9rem;
}

.history-fans-box {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
}

.fans-scroll-box {
    max-height: 200px;
    overflow-y: auto;
}

.history-fans-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.history-fan-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
    transition: 0.2s;
}

.history-fan-item:hover {
    background: #151515;
}

.history-fan-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--fan-fill, 0%);
    background: rgba(251, 191, 36, 0.05);
    z-index: 0;
}

.history-fan-rank {
    width: 35px;
    font-family: var(--font-mono);
    font-weight: 800;
    color: #555;
    font-size: 0.9rem;
    z-index: 1;
}

.history-fan-rank.is-top {
    color: var(--gold);
    font-size: 1.1rem;
}

.history-fan-body {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1;
}

.history-fan-name {
    color: #eee;
    font-weight: 600;
    font-size: 0.82rem;
}

.history-timeline-title {
    border-left: 4px solid #6366f1;
    padding-left: 10px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #6366f1;
}

.history-section {
    margin-bottom: var(--section-gap);
}

.history-timeline-item {
    background: #0a0a0a;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.history-pref-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
    justify-content: flex-start;
    margin-top: 14px;
}

.ios-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #cbd5e1;
    user-select: none;
    position: relative;
}

.ios-toggle__label {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.ios-toggle__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.ios-toggle__ui {
    width: 44px;
    height: 26px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.25);
    border: 1px solid rgba(148, 163, 184, 0.35);
    position: relative;
    transition: background 0.18s ease, border-color 0.18s ease;
    flex: 0 0 auto;
}

.ios-toggle__ui::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    transform: translateY(-50%);
    transition: left 0.18s ease, background 0.18s ease;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
}

.ios-toggle:has(.ios-toggle__input:checked) .ios-toggle__ui {
    background: color-mix(in srgb, var(--oshi-color) 60%, rgba(16, 185, 129, 0.55));
    border-color: color-mix(in srgb, var(--oshi-color) 50%, rgba(16, 185, 129, 0.75));
}

.ios-toggle:has(.ios-toggle__input:checked) .ios-toggle__ui::after {
    left: 21px;
}

.ios-toggle:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.12);
    outline-offset: 2px;
}

/* Preference: Hide like ratio UI */
body.pref-hide-suki .history-timeline-daily,
body.pref-hide-suki .history-timeline-right {
    display: none !important;
}

/* Also hide "Stats (Gain)" area (including title) when preference is OFF */
body.pref-hide-suki .history-timeline-left {
    display: none !important;
}

/* Preference: Hide archive list in timeline */
body.pref-hide-archives .history-timeline-streams {
    display: none !important;
}

.timeline-item.hidden {
    display: none;
}

.history-timeline-header {
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

.history-timeline-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.history-pref-toggles.is-compact {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    margin-left: auto;
    justify-content: flex-end;
    align-self: flex-end;
}

.history-pref-toggles.is-compact .ios-toggle__label {
    font-size: 0.85rem;
    color: var(--text-dim);
    font-weight: 800;
    letter-spacing: 0.2px;
    min-width: auto;
}

/* Stream Graph preference toggles */
.sg-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: 14px 0 10px;
    flex-wrap: wrap;
}

.stream-graph-page .sg-actions[data-stream-graph-prefs] {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.stream-graph-page .sg-actions.sg-actions--plain {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

.sg-actions-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}

.sg-actions-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    min-width: 0;
}

.sg-pref-toggles {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

.stream-graph-page .sg-pref-toggles .ios-toggle {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(148, 163, 184, 0.34);
    color: #e2e8f0;
    min-height: 40px;
}

.stream-graph-page .sg-pref-toggles .ios-toggle__label {
    color: #dbe7f5;
    font-size: 0.88rem;
    font-weight: 800;
}

.stream-graph-page .sg-pref-toggles .ios-toggle__ui {
    background: rgba(71, 85, 105, 0.46);
    border-color: rgba(148, 163, 184, 0.6);
}

.stream-graph-page .sg-pref-toggles .ios-toggle__ui::after {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.45);
}

@media (max-width: 520px) {
    .sg-pref-toggles {
        width: 100%;
        justify-content: space-between;
    }
}

/* Preferences: hide sections on stream_graph.php */
body.pref-hide-sg-graph .graph-container {
    display: none !important;
}

body.pref-hide-sg-cards .stat-cards-grid {
    display: none !important;
}

@media (max-width: 520px) {
    .history-timeline-titlebar {
        align-items: flex-start;
    }

    .history-pref-toggles.is-compact {
        width: 100%;
        justify-content: flex-end;
    }
}

.history-timeline-date {
    font-weight: 700;
    color: #eee;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.history-timeline-date-icon {
    color: #666;
    font-size: 0.9em;
}

.history-timeline-date-text {
    font-family: 'JetBrains Mono', var(--font-mono);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.history-timeline-daily {
    color: #888;
    font-size: 0.8rem;
    font-weight: 500;
    text-align: right;
    flex-shrink: 0;
}

.history-timeline-daily-value {
    color: #3b82f6;
    font-size: 1rem;
    font-weight: 700;
    margin-left: 3px;
    font-family: 'JetBrains Mono', var(--font-mono);
}

.history-timeline-body {
    padding: 0 15px 15px;
}

.history-timeline-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    position: relative;
}

.history-timeline-left {
    padding-bottom: 5px;
}

.history-timeline-subtitle {
    font-size: 0.64rem;
    color: #666;
    font-weight: 700;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.history-timeline-stats {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 10px;
    font-family: 'JetBrains Mono', var(--font-mono);
    font-weight: 700;
    font-size: 0.86rem;
    line-height: 1.2;
}

.history-timeline-stat.is-like {
    color: #fbbf24;
    white-space: nowrap;
}

.history-timeline-stat.is-dislike {
    color: #888;
    white-space: nowrap;
}

.history-timeline-stat.is-comment {
    color: #555;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.history-archive-row-card {
    flex-direction: row;
}

.history-archive-row-card .stream-thumb {
    width: 180px;
}

.history-archive-row-card .stream-thumb img {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
}

.history-timeline-right {
    border-left: 1px solid #1a1a1a;
    padding-left: 15px;
}

.history-timeline-ratio {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: 'JetBrains Mono', var(--font-mono);
}

.history-timeline-ratio-main {
    font-size: 1.2rem;
    font-weight: 800;
    color: #fff;
}

.history-timeline-ratio-diff {
    font-size: 0.8rem;
    font-weight: 600;
}

.history-timeline-ratio-diff.is-up {
    color: #ef4444;
}

.history-timeline-ratio-diff.is-down {
    color: #3b82f6;
}

.history-timeline-ratio-diff.is-flat {
    color: #64748b;
}

.history-timeline-streams {
    border-top: 1px dashed #222;
    margin-top: 15px;
    padding-top: 15px;
}

.history-timeline-streams-title {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.history-timeline-streams-icon {
    font-size: 0.9rem;
}

.history-timeline-streams-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.history-timeline-more {
    text-align: center;
    margin: 30px 0;
}

.history-timeline-more-btn {
    padding: 14px 40px;
    font-size: 0.9rem;
    cursor: pointer;
    background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
    border: 1px solid #333;
    color: #eee;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.history-rss-section {
    margin-bottom: 16px;
}

.history-section-title.is-news {
    color: #e2e8f0;
}

.history-rss-day {
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.38);
    padding: 10px 12px;
    margin-bottom: 10px;
}

.history-rss-date {
    font-weight: 700;
    font-size: 13px;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.history-rss-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.history-rss-item {
    border-top: 1px dashed rgba(148, 163, 184, 0.3);
    padding-top: 8px;
}

.history-rss-item:first-child {
    border-top: none;
    padding-top: 0;
}

.history-rss-title {
    display: inline-block;
    font-weight: 600;
    color: #f8fafc;
    text-decoration: none;
}

.history-rss-title:hover {
    text-decoration: underline;
}

.history-rss-meta {
    margin-top: 4px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}

.history-timeline-news {
    margin: 10px 0 6px;
    padding: 10px 12px;
    border-top: 1px solid rgba(148, 163, 184, 0.24);
    border-bottom: 1px solid rgba(148, 163, 184, 0.24);
    border-left: none;
    border-right: none;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.24);
}

.history-rss-source,
.history-rss-time {
    font-weight: 500;
}

.history-rss-chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 2px 8px;
    line-height: 1.2;
    border: 1px solid transparent;
}

.history-rss-chip.is-cat {
    background: rgba(148, 163, 184, 0.18);
    color: #cbd5e1;
    border-color: rgba(148, 163, 184, 0.35);
}

.history-rss-chip.is-member {
    background: rgba(99, 102, 241, 0.22);
    color: #c7d2fe;
    border-color: rgba(129, 140, 248, 0.45);
}

.timeline-rss-section {
    margin: 0 0 14px;
}

.timeline-rss-section .section-title {
    margin-bottom: 8px;
}

.news-detail-section {
    max-width: 980px;
    margin: 0 auto 18px;
}

.news-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
}

.news-detail-card {
    padding: 14px 14px 16px;
}

.news-detail-card-header {
    margin-bottom: 6px;
}

.news-detail-title {
    margin: 6px 0 0;
    line-height: 1.55;
    font-size: clamp(1.04rem, 2vw, 1.26rem);
    color: var(--text-main);
}

.news-detail-notice {
    margin: 8px 0 10px;
    color: var(--text-dim);
    font-size: 0.93rem;
    line-height: 1.6;
}

.news-detail-tags {
    margin-top: 4px;
}

.news-detail-member-links {
    margin-top: 8px;
}

.news-detail-subtitle {
    margin-bottom: 6px;
    color: var(--text-dim);
    font-weight: 700;
    font-size: 0.88rem;
}

.news-detail-actions {
    margin-top: 12px;
}

.news-detail-actions .pill {
    text-decoration: none;
}

.news-detail-cta-section {
    margin-top: 12px;
}

.news-detail-cta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.news-detail-cta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 12px;
    border-radius: 12px;
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    text-decoration: none;
    transition: border-color .18s ease, transform .18s ease;
}

.news-detail-cta-item:hover {
    border-color: var(--border-highlight);
    transform: translateY(-1px);
}

.news-detail-cta-item i {
    color: var(--secondary);
}

@media (max-width: 760px) {
    .news-detail-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

.history-game-tags {
    margin: var(--space-1) 0 var(--space-2);
}

.history-game-tags.is-top {
    margin-top: var(--space-1);
    padding: var(--card-pad-sm) var(--card-pad-md);
    border-radius: var(--card-radius-lg);
    background: rgba(15, 23, 42, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.history-game-tags .section-title {
    margin: 0 0 var(--section-gap-tight);
}

.history-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: var(--section-gap);
    align-items: start;
    margin-top: var(--space-2);
}

.history-side-menu {
    position: static;
    top: auto;
    align-self: start;
    background: rgba(10, 10, 10, 0.8);
    border: none;
    border-radius: var(--card-radius-lg);
    padding: var(--card-pad-md);
    max-height: none;
    overflow: visible;
}

.history-side-title {
    font-size: 0.9rem;
    color: #9ca3af;
    margin: 0 0 var(--space-3);
    letter-spacing: 0.08em;
}

.history-side-group {
    margin-bottom: var(--space-3);
}

.history-side-group-title {
    font-size: 0.85rem;
    color: #cbd5f5;
    font-weight: 700;
    margin-bottom: 6px;
    list-style: none;
    cursor: pointer;
}

.history-side-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
}

.history-side-group>summary {
    list-style: none;
}

.history-side-group>summary::-webkit-details-marker {
    display: none;
}

.history-side-group[open] .history-side-group-title::after {
    content: "−";
    float: right;
    color: #94a3b8;
}

.history-side-group:not([open]) .history-side-group-title::after {
    content: "+";
    float: right;
    color: #94a3b8;
}

.history-period-nav {
    display: flex;
    gap: 10px;
    margin: 6px 0 18px;
    flex-wrap: wrap;
}

.history-header-stats.stat-cards-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    max-width: none;
    margin: var(--space-2) 0 var(--space-4);
    gap: var(--space-3);
}

.history-header-stats .s-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 86px;
    padding: 12px 14px;
    background: #090b0e;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    box-shadow: none;
}

.history-header-stats .s-card-label,
.history-header-stats .s-card-val {
    width: 100%;
    text-align: center;
}

.history-header-stats .s-card-label {
    color: #7d8596;
    font-size: 0.72rem;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.history-header-stats .s-card-val {
    font-family: var(--font-body);
    font-size: 1.38rem;
    line-height: 1.05;
    font-weight: 800;
    white-space: nowrap;
}

.history-main-content .history-header.profile-card {
    max-width: 980px;
    margin: 0 auto var(--space-4);
}

.history-data-note {
    margin: var(--space-2) 0 var(--space-3);
    font-size: 0.8rem;
    color: #94a3b8;
    letter-spacing: 0.02em;
    text-align: right;
}

@media (max-width: 1200px) {
    .history-header-stats.stat-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .history-header-stats .s-card-val {
        font-size: 1.24rem;
    }
}

.history-side-link {
    display: block;
    padding: 6px 10px;
    border-radius: 10px;
    color: #e5e7eb;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    font-size: 0.85rem;
}

.history-side-link.is-active {
    background: rgba(59, 130, 246, 0.14);
    color: #dbeafe;
}

.history-side-link:hover {
    background: rgba(255, 255, 255, 0.09);
}

.history-main-content {
    min-width: 0;
}

@media (max-width: 1100px) {
    .history-layout {
        grid-template-columns: 1fr;
    }

    .history-side-menu {
        display: none;
    }
}

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

.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e7eb;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.tag-chip:hover {
    background: rgba(255, 255, 255, 0.12);
}

.tag-count {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

@media (max-width: 900px) {

    .history-header,
    .profile-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-socials {
        justify-content: flex-start;
    }

    .history-avatar {
        width: 68px;
        height: 68px;
    }

    .profile-card .stream-thumb.profile-thumb,
    .hero-thumb {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 640px) {
    .history-header {
        padding: 14px;
    }

    .history-name {
        font-size: 1.6rem;
    }

    .history-socials {
        gap: 8px;
    }

    .history-social-btn {
        font-size: 0.76rem;
        padding: 4px 10px;
    }

    .history-social-btn.is-x {
        padding: 4px 8px;
    }

    .history-unit-sep,
    .history-unit-tag {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .history-timeline-content {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .history-timeline-right {
        border-left: 1px solid #1a1a1a;
        padding-left: 10px;
    }

    .history-timeline-subtitle {
        font-size: 0.58rem;
        letter-spacing: 0.6px;
    }

    .history-timeline-stats {
        font-size: 0.76rem;
        gap: 8px;
    }

    .history-timeline-ratio-main {
        font-size: 1rem;
    }

    .history-timeline-ratio-diff {
        font-size: 0.72rem;
    }
}

@media (max-width: 768px) {
    .history-timeline-content {
        grid-template-columns: 1fr 1fr !important;
    }
}

.h-header {
    background: #111;
    padding: 10px 15px;
    border-bottom: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.h-date {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #ccc;
}

.val-high {
    color: var(--primary);
}

.val-low {
    color: var(--secondary);
}

.h-body {
    padding: 15px;
}

.stat-split-container {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.h-bar-area {
    background: #222;
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin: 5px 0;
}

.bg-high {
    background: var(--gold);
}

.bg-low {
    background: var(--secondary);
}

.val-pos {
    color: var(--gold);
    font-weight: bold;
}

.stream-sec-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #666;
    margin: 15px 0 10px;
    text-transform: uppercase;
}

.stream-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.search-wrap {
    margin: 0 auto;
    padding: 20px;
}

.search-heading {
    margin-bottom: 30px;
}

.search-title {
    font-size: 1.8rem;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
    margin-bottom: 10px;
}

.search-title-query {
    color: var(--primary);
}

.search-meta {
    color: #888;
}

.search-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 18px;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
}

.search-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.search-field {
    flex: 1;
    position: relative;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
}

.search-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 14px 20px 14px 45px;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
    transition: 0.3s;
}

.search-autocomplete {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #111;
    border: 1px solid #222;
    border-top: none;
    border-radius: 0 0 12px 12px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.search-autocomplete-item {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #222;
}

.search-autocomplete-item.is-hover {
    background: #222;
}

.search-select {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0 20px;
    border-radius: 12px;
    font-weight: 600;
    height: 50px;
    outline: none;
}

.search-submit {
    border: none;
    cursor: pointer;
    padding: 0 35px;
    font-weight: 800;
    border-radius: 12px;
    height: 50px;
    background: #fff;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

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

.search-trending-label {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-right: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-tag {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    text-decoration: none;
    transition: 0.2s;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.search-tag.is-active {
    background: var(--primary);
    color: #fff;
}

.search-filter-meta {
    margin-top: 20px;
    font-size: 0.85rem;
    color: #888;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-filter-chip {
    background: rgba(255, 59, 48, 0.1);
    color: var(--primary);
    padding: 3px 10px;
    border-radius: 6px;
    font-weight: 700;
}

.search-filter-clear {
    color: #fff;
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.8rem;
    border-bottom: 1px solid #444;
    margin-left: 10px;
}

.search-empty {
    text-align: center;
    padding: 50px;
    color: #666;
}

.search-empty-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.search-empty-guides {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.search-empty-guide-card {
    display: block;
    text-decoration: none;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.search-empty-guide-card:hover {
    border-color: rgba(255, 255, 255, 0.32);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.search-empty-guide-title {
    display: block;
    color: #fff;
    font-weight: 800;
    font-size: 0.96rem;
}

.search-empty-guide-text {
    display: block;
    margin-top: 6px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

@media (min-width: 768px) {
    .search-empty-guides {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.search-card {
    border-color: rgba(59, 130, 246, 0.24);
}

.search-card .stream-thumb {
    width: 100%;
}

.search-card .stream-thumb img {
    height: auto;
    aspect-ratio: 16/9;
}

/* Search results: grid layout (max 4 columns on desktop) */
.search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .search-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1280px) {
    .search-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.search-grid .stream-card {
    height: 100%;
}

/* Side Mini Nav (PC only) */
.layout-with-side {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: var(--section-gap);
    align-items: start;
}

.layout-with-side.layout-single-column {
    grid-template-columns: minmax(0, 1fr);
}

.side-mini-nav {
    position: static;
    top: auto;
    align-self: start;
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    padding: var(--card-pad-sm) var(--space-2);
    border-radius: var(--card-radius-md);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.side-mini-title {
    font-size: 0.7rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #888;
    font-weight: 700;
    text-align: center;
}

.side-mini-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: 10px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid transparent;
}

.side-mini-link i {
    font-size: 1.1rem;
}

.side-mini-link.active,
.side-mini-link:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

.side-content {
    min-width: 0;
}

.side-content>.page-title:first-child,
.side-content>.stats-hub-title:first-child,
.side-content>.dashboard-desc:first-child {
    margin-top: 0;
}

.side-content> :first-child {
    margin-top: 0 !important;
}

@media (max-width: 1100px) {
    .layout-with-side {
        grid-template-columns: 1fr;
    }

    .side-mini-nav {
        display: none;
    }

    .stats-hub-period-mobile {
        display: flex !important;
        gap: 8px;
        margin: 0 0 14px;
        flex-wrap: wrap;
    }
}

/* Stats Hub */
.stats-hub-title {
    margin: 0 0 var(--page-heading-gap);
    font-size: var(--page-heading-size);
}

.stats-hub-period-mobile {
    display: none;
}

.stats-hub-hero {
    background: rgba(12, 18, 24, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--card-radius-lg);
    padding: var(--card-pad-md);
}

.stats-hub-hero-head {
    margin-bottom: 14px;
}

.stats-hub-hero-title {
    font-size: var(--page-section-title-size);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

.stats-hub-hero-sub {
    margin-top: 4px;
    font-size: 0.86rem;
    color: #9ca3af;
}

.stats-hub-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

@media (min-width: 1280px) {
    .stats-hub-hero-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
    }

    .stats-hub-hero-card {
        padding: 10px;
    }

    .stats-hub-hero-card-label {
        font-size: 0.74rem;
    }
}

.stats-hub-hero-card {
    display: block;
    text-decoration: none;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.stats-hub-hero-card:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stats-hub-hero-card-label {
    font-size: 0.78rem;
    color: #9ca3af;
}

.stats-hub-hero-card-name {
    margin-top: 6px;
    font-size: 1rem;
    font-weight: 700;
    color: #f9fafb;
}

.stats-hub-hero-card-val {
    margin-top: 4px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
}

.stats-hub-hero-card.is-gold {
    border-color: rgba(251, 191, 36, 0.45);
}

.stats-hub-hero-card.is-red {
    border-color: rgba(239, 68, 68, 0.45);
}

.stats-hub-hero-card.is-green {
    border-color: rgba(16, 185, 129, 0.45);
}

.stats-hub-hero-card.is-blue {
    border-color: rgba(59, 130, 246, 0.45);
}

.stats-hub-hero-card.is-orange {
    border-color: rgba(251, 146, 60, 0.45);
}

.stats-hub-hotline {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.stats-hub-hotline-label {
    font-size: 0.78rem;
    color: #fca5a5;
    letter-spacing: 0.03em;
}

.stats-hub-hotline-items {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stats-hub-hot-chip {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #ffe4e6;
    border: 1px solid rgba(255, 107, 97, 0.35);
    background: rgba(255, 107, 97, 0.14);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.8rem;
}

.stats-hub-hot-chip:hover {
    background: rgba(255, 107, 97, 0.22);
    color: #fff;
}

.stats-hub-subheading {
    grid-column: 1 / -1;
    margin: 4px 0 0;
    padding: 8px 10px;
    border: 1px solid rgba(251, 191, 36, 0.24);
    border-radius: 12px;
    background: rgba(251, 191, 36, 0.05);
    font-size: 0.9rem;
    color: #fcd34d;
}

.stats-hub-period-nav {
    margin: 6px 0 16px;
}

.stats-hub-link {
    color: var(--text-main);
    text-decoration: none;
}

.stats-hub-link.is-secondary {
    color: var(--text-main);
}

.stats-hub-link.is-gold {
    color: var(--text-main);
}

.stats-hub-link.is-green {
    color: var(--text-main);
}

.stats-hub-link.is-pink {
    color: var(--text-main);
}

.stats-hub-chevron {
    font-size: 0.8em;
    opacity: 0.5;
}

.stats-hub-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 10px;
    max-height: 400px;
}

.stats-hub-page .layout-with-side,
.stats-hub-page .side-content,
.stats-hub-page .stats-hub-grid,
.stats-hub-page .stats-hub-box,
.stats-hub-page .fans-scroll-box.stats-hub-box {
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
}
.stats-hub-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stats-hub-empty-state {
    padding: 8px 4px;
    color: #94a3b8;
    font-size: 0.86rem;
}

.stats-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
}

.stats-row-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--bar-width, 0%);
    background: linear-gradient(90deg, var(--bar-color, rgba(255, 255, 255, 0.06)) 0%, rgba(255, 255, 255, 0.01) 100%);
    z-index: 0;
}

.stats-row-rank {
    position: static;
    margin-right: 15px;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-style: normal;
    z-index: 1;
}

.stats-row-name {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.stats-row-link {
    color: #ddd;
    font-weight: 600;
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.stats-row-val {
    font-family: var(--font-mono);
    font-weight: bold;
    color: #fff;
    z-index: 1;
    text-align: right;
}

.unit-small {
    font-size: 0.7em;
    opacity: 0.5;
    margin-left: 2px;
    font-weight: normal;
}

.fans-scroll-box::-webkit-scrollbar {
    width: 4px;
}

.fans-scroll-box::-webkit-scrollbar-track {
    background: transparent;
}

.fans-scroll-box::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 10px;
}

.timeline-page-title {
    margin-bottom: var(--page-heading-gap);
    font-size: var(--page-heading-size);
}

/* Simple Ranking */
.simple-ranking-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
}

.simple-ranking-head {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.simple-ranking-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.simple-ranking-meta {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.simple-ranking-hero {
    text-align: left;
    border-left: 4px solid var(--secondary);
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    margin-bottom: 40px;
    padding-left: 12px;
}

.simple-ranking-title {
    font-family: var(--font-heading);
    font-size: var(--page-heading-size);
    margin: 0 0 12px;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.12;
    font-weight: 600;
}

.simple-ranking-sub {
    color: #888;
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.simple-ranking-card {
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    max-height: none !important;
    overflow: visible !important;
}

.simple-ranking-page.main-container,
.simple-ranking-page .layout-with-side,
.simple-ranking-page .side-content,
.simple-ranking-page .simple-ranking-wrap,
.simple-ranking-page .simple-ranking-card,
.simple-ranking-page .simple-ranking-list {
    height: auto !important;
    max-height: none !important;
    overflow-y: visible !important;
    overflow: visible !important;
}

.simple-ranking-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.simple-ranking-empty {
    padding: 60px;
    text-align: center;
    color: #444;
    font-style: italic;
}

.simple-ranking-row {
    position: relative;
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
}

.simple-ranking-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--bar-width, 0%);
    background: linear-gradient(90deg, var(--bar-color, rgba(255, 255, 255, 0.06)) 0%, rgba(255, 255, 255, 0.01) 100%);
    z-index: 0;
}

.simple-ranking-rank {
    position: static;
    margin-right: 15px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-style: normal;
    z-index: 1;
    font-weight: 900;
}

.simple-ranking-name {
    flex: 1;
    min-width: 0;
    z-index: 1;
}

.simple-ranking-link {
    color: #eee;
    font-weight: 700;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.simple-ranking-link-text {
    font-size: 1.1rem;
}

.simple-ranking-val {
    font-family: var(--font-mono);
    font-weight: bold;
    color: #fff;
    z-index: 1;
    text-align: right;
    font-size: 1.1rem;
}

.simple-ranking-footer {
    margin-top: 40px;
    text-align: center;
}

.simple-ranking-jump-nav {
    margin-top: 16px;
}

.simple-ranking-mobile-nav {
    display: none;
    margin-top: 14px;
    gap: 8px;
    flex-wrap: wrap;
}

.simple-ranking-mobile-nav .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.simple-ranking-period-nav {
    margin: 6px 0 12px;
}

.simple-ranking-top {
    padding: 12px 30px;
    font-size: 1rem;
    border-radius: 30px;
    background: #111;
    border: 1px solid #333;
}

@media (max-width: 1100px) {
    .simple-ranking-mobile-nav {
        display: flex;
    }
}

/* Stream Graph Page */
.stream-graph-page .main-thumb-wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto 30px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    position: relative;
}

.stream-graph-page .sg-sticky-scope {
    position: relative;
}

.stream-graph-page .sg-tag-row {
    max-width: 720px;
    margin: -18px auto 18px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
}

.stream-graph-page .sg-tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.22s ease, transform 0.18s ease;
}

.stream-graph-page .sg-tag-chip:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

/* Desktop: large "glass" player that sticks until related sections */
@media (min-width: 900px) {
    .stream-graph-page .main-thumb-wrapper.sg-player-pin {
        max-width: min(80vw, 1280px);
        border-radius: 14px;
        border: 1px solid rgba(255, 255, 255, 0.10);
        background: linear-gradient(180deg, rgba(20, 20, 20, 0.75) 0%, rgba(8, 8, 8, 0.55) 100%);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 18px 70px rgba(0, 0, 0, 0.55);
    }

    .stream-graph-page .main-thumb-wrapper.sg-player-pin {
        position: sticky;
        top: 18px;
        z-index: 30;
    }

    .stream-graph-page .main-thumb-wrapper.sg-player-pin::before {
        content: "";
        position: absolute;
        inset: -24px -18px;
        background: radial-gradient(closest-side, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.0));
        filter: blur(10px);
        pointer-events: none;
        z-index: -1;
    }

    .stream-graph-page .main-thumb-wrapper.sg-player-pin .main-embed {
        border-radius: 14px;
        overflow: hidden;
    }

    .stream-graph-page .graph-container {
        max-width: min(80vw, 1280px);
        margin-left: auto;
        margin-right: auto;
    }

    .stream-graph-page .stat-cards-grid {
        max-width: min(80vw, 1280px);
        margin-left: auto;
        margin-right: auto;
    }

    .stream-graph-page .sg-tag-row {
        max-width: min(80vw, 1280px);
        margin-left: auto;
        margin-right: auto;
    }
}

.stream-graph-page .main-thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.stream-graph-page .main-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000;
}

.stream-graph-page .main-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Lightweight YouTube embed (loads iframe only after click) */
.yt-lite {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    cursor: pointer;
}

@supports not (aspect-ratio: 16/9) {
    .yt-lite {
        height: 0;
        padding-top: 56.25%;
    }

    .yt-lite>* {
        position: absolute;
        inset: 0;
    }
}

.yt-lite-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

.yt-lite-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .35));
    opacity: .9;
    transition: opacity .22s ease;
}

.yt-lite-play {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 64px;
    height: 64px;
    transform: translate(-50%, -50%);
    border-radius: 999px;
    background: rgba(0, 0, 0, .55);
    border: 1px solid rgba(255, 255, 255, .25);
    box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.yt-lite-play::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-38%, -50%);
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 12px 0 12px 20px;
    border-color: transparent transparent transparent rgba(255, 255, 255, .92);
}

.yt-lite-open {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    text-decoration: none;
    color: #fff;
    background: rgba(0, 0, 0, .45);
    border: 1px solid rgba(255, 255, 255, .18);
}

.yt-lite:hover .yt-lite-shade {
    opacity: 1;
}

.yt-lite:focus-visible {
    outline: 2px solid rgba(0, 190, 255, .7);
    outline-offset: 2px;
}

.yt-lite.is-loaded {
    cursor: default;
    background: transparent;
    border: none;
}

.yt-lite iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* If someone passes "main-embed" class, undo the legacy padding-top trick */
.stream-graph-page .yt-lite.main-embed {
    padding-top: 0;
    background: transparent;
}

/* Keep the player corner radius perfectly aligned between outer frame and YouTube layer. */
.stream-graph-page .main-thumb-wrapper .main-embed,
.stream-graph-page .main-thumb-wrapper .yt-lite.main-embed {
    border-radius: inherit;
    overflow: hidden;
}

.stream-graph-page .main-thumb-wrapper .yt-lite {
    border-radius: inherit;
    border: 0;
    background: transparent;
}

.stream-graph-page .stat-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.stream-graph-page .s-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid #333;
    padding: 15px;
    text-align: center;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.stream-graph-page .s-card-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stream-graph-page .s-card-sub.js-metric-diff {
    font-size: 0.72rem;
    color: #94a3b8;
}

.stream-graph-page .s-card-sub.js-metric-diff.is-up {
    color: #22c55e;
}

.stream-graph-page .s-card-sub.js-metric-diff.is-down {
    color: #f87171;
}

.stream-graph-page .s-card-val {
    font-size: 1.2rem;
    font-weight: bold;
    font-family: var(--font-mono);
    color: #fff;
}

.s-card-val-ccv {
    color: #ef4444;
}

.s-card-val-early-avg {
    color: #fbbf24;
}

.s-card-val-early-gain {
    color: #3b82f6;
}

.s-card-val-sc {
    color: #e11d48;
}

.s-card-val-gift {
    color: #ec4899;
}

.s-card-val-mem {
    color: #10b981;
}

.sg-early-pct {
    font-size: 0.75em;
    color: #94a3b8;
}

.stream-graph-page .graph-container {
    background: rgba(10, 10, 10, 0.6);
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #333;
}

/* Stream graph: when color mode is active, remove outer frame lines around graph/card area */
html[data-custom-accent="1"] .stream-graph-page .sg-sticky-scope,
html[data-palette] .stream-graph-page .sg-sticky-scope {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-custom-accent="1"] .stream-graph-page .graph-container,
html[data-palette] .stream-graph-page .graph-container {
    border: none !important;
}

.graph-title {
    font-size: 0.9rem;
    margin-bottom: 15px;
    color: #475569;
    font-weight: 700;
}

.graph-warning,
.graph-missing {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    border-radius: 6px;
    text-align: center;
}

.graph-warning {
    padding: 10px;
    font-size: 0.85rem;
    margin-bottom: 15px;
}

.graph-warning-note {
    font-size: 0.75rem;
    opacity: 0.8;
}

.graph-missing {
    padding: 20px;
    margin: 20px;
}

.graph-missing-icon {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.graph-missing-note {
    font-size: 0.9rem;
}

.graph-scheduled,
.graph-empty {
    color: #94a3b8;
    text-align: center;
    padding: 40px;
}

.graph-scheduled-icon {
    font-size: 2rem;
    margin-bottom: 10px;
    display: inline-block;
}

.graph-scheduled-note {
    font-size: 0.8rem;
}

.graph-canvas {
    position: relative;
    height: 400px;
    width: 100%;
}

.related-section {
    margin-top: 40px;
}

.sec-title {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-list>li {
    margin-bottom: 12px;
}

.related-row {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding: 6px 0 14px;
    overflow-y: visible;
}

.related-row .stream-card {
    min-width: 280px;
    max-width: 320px;
    flex: 0 0 auto;
}

.related-row.is-stacked .stream-card {
    flex-direction: column;
}

.related-row.is-stacked .stream-thumb {
    width: 100%;
}

.related-row.is-stacked .stream-thumb img {
    height: auto;
    aspect-ratio: 16/9;
}

@media (max-width: 768px) {
    .related-row .stream-card {
        min-width: 220px;
        max-width: 260px;
    }
}

@media (max-width: 640px) {
    .related-row .stream-card {
        min-width: 180px;
        max-width: 220px;
    }
}

.same-day-list .stream-thumb {
    width: 180px;
}

.same-day-list .stream-thumb img {
    height: auto;
    aspect-ratio: 16/9;
}

.same-day-row {
    display: grid;
    gap: 12px;
    overflow: visible;
    padding: 0;
}

.same-day-row .stream-card {
    max-width: none;
    min-width: 0;
}

@media (max-width: 640px) {
    .same-day-row {
        display: flex;
        gap: 14px;
        overflow-x: auto;
        padding: 6px 0 14px;
    }

    .same-day-row .stream-card {
        min-width: 180px;
        max-width: 220px;
        flex: 0 0 auto;
    }

    .same-day-list .stream-card {
        flex-direction: column;
    }

    .same-day-list .stream-thumb {
        width: 100%;
    }
}

.chart-legend-mobile {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 10px;
    font-size: 0.75rem;
    color: #cbd5e1;
}

.legend-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    white-space: nowrap;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.ccv {
    background: var(--oshi-color);
}

.legend-dot.sc {
    background: #e11d48;
    border: 1px dashed rgba(225, 29, 72, 0.8);
}

.legend-dot.cmt {
    background: #f59e0b;
}

.legend-dot.rate {
    background: rgba(245, 158, 11, 0.35);
    border: 1px solid rgba(245, 158, 11, 0.6);
}

.legend-dot.other {
    background: #fff;
    border: 1px solid #0f0f0f;
}

.yt-link-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    text-align: center;
}

.yt-link-btn {
    display: inline-block;
    background: #c4302b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    margin: 20px 0;
    transition: 0.2s;
}

.yt-link-btn:hover {
    background: #e62117;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(196, 48, 43, 0.4);
}

.yt-link-btn.yt-link-btn-music {
    background: #2d7eff;
}

.yt-link-btn.yt-link-btn-music:hover {
    background: #4a8fff;
    box-shadow: 0 4px 10px rgba(45, 126, 255, 0.38);
}

.nav-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 30px;
}

.nav-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #333;
    text-decoration: none;
    color: #ccc;
    transition: 0.2s;
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-btn.is-disabled {
    opacity: 0.5;
    background: #f1f5f9;
}

.nav-label {
    font-size: 0.7rem;
    color: #888;
    margin-bottom: 4px;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sg-debug {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #cbd5e1;
}

.sg-debug-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.sg-debug-line {
    margin-top: 6px;
}

.sg-title {
    font-size: 1.3rem;
    line-height: 1.5;
    margin-bottom: 10px;
    color: #f1f5f9;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.sg-title-link {
    color: inherit;
    text-decoration: none;
    display: inline-block;
}

.sg-live-badge {
    display: inline-block;
    background: #ef4444;
    color: #fff;
    font-size: 0.75rem;
    padding: 2px 6px;
    border-radius: 6px;
    vertical-align: middle;
    margin-right: 6px;
    animation: sg-pulse 2s infinite;
}

.sg-title-external {
    font-size: 0.8em;
    opacity: 0.6;
    margin-left: 4px;
}

.sg-meta {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 8px;
}

.sg-sep {
    margin: 0 8px;
}

.sg-meta-link {
    color: #fff;
    text-decoration: underline;
    text-decoration-color: rgba(255, 255, 255, 0.3);
}

.sg-meta-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
}

.sg-meta-arrow {
    margin: 0 6px;
}

.sg-summary-lines {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin: 10px 0 12px;
}

.sg-summary-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 10px;
    padding: 10px 12px;
}

.sg-summary-label {
    display: block;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 4px;
}

.sg-summary-value {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #f8fafc;
}

.sg-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
}

.sg-thumb-wrapper {
    position: relative;
}

.sg-thumb-link {
    display: block;
}

.sg-thumb-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    transition: background 0.2s;
}

.sg-thumb-yt-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.8rem;
}

@keyframes sg-pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Daily Ratio Card Special */
.ranking-card-daily-ratio {
    background: #0a0a0a;
    border: 1px solid #222;
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.ratio-val-high {
    color: var(--primary);
    font-family: var(--font-mono);
    font-weight: 700;
}

.ratio-val-low {
    color: var(--secondary);
    font-family: var(--font-mono);
    font-weight: 700;
}

/* =========================================
   10. Hamburger Menu (Mobile/Global)
   ========================================= */
.hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    z-index: 150;
    display: none;
    /* JS toggle */
    flex-direction: column;
    overflow-y: auto;
    padding: 60px 20px 40px;
}

.mobile-menu-overlay.open {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.mm-section {
    margin-bottom: 25px;
}

.mm-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.mm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.mm-grid li {
    list-style: none;
}

.mm-link {
    display: block;
    padding: 8px 10px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    color: #ddd;
    font-size: 0.85rem;
    text-align: center;
    transition: 0.2s;
}

.mm-link:hover {
    background: #333;
    color: #fff;
    border-color: var(--secondary);
}

/* Mobile Bottom Nav */
.has-mobile-nav {
    padding-bottom: 86px;
}

.mobile-bottom-nav {
    display: none;
}

/* ----------------------------- */
/* Shorts Corner                  */
/* ----------------------------- */
.shorts-corner {
    margin: 18px 0 26px;
}

.shorts-corner .section-title {
    margin: 10px 0 12px;
}

.shorts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 900px) {
    .shorts-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.shorts-grid {
    margin-top: 10px;
}

.shorts-ck {
    margin-top: -10px;
    padding: 6px 10px 10px;
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.stream-card.is-short .thumb-badge.badge-status {
    /* keep LIVE/NEXT visible if any, but soften on shorts */
    opacity: 0.95;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 50%;
        bottom: 10px;
        -webkit-transform: translateX(-50%);
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: 520px;
        background: rgba(12, 12, 12, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 16px;
        padding: 8px 6px;
        gap: 4px;
        z-index: 1200;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .mb-nav-item {
        flex: 1;
        text-decoration: none;
        color: #d1d5db;
        font-size: 0.7rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        padding: 6px 4px;
        border-radius: 12px;
        transition: 0.2s ease;
    }

    .mb-nav-item i {
        font-size: 1rem;
        color: #f8fafc;
    }

    .mb-nav-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .footer-nav {
        display: none;
    }

    .footer-copy,
    .site-footer {
        margin-top: 20px;
        padding-bottom: 110px;
    }

    .site-footer-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 14px;
        justify-content: stretch;
        max-width: 520px;
        margin: 0 auto 10px;
    }

    .site-footer-links a {
        font-size: 0.78rem;
        text-align: center;
    }

    .timeline-section:last-child,
    .stats-hub-grid>.timeline-section:last-child,
    .history-main-content>section:last-child {
        margin-bottom: 18px;
    }
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

/* Animations */
.stream-card,
.ranking-card-detailed,
.ranking-card-ratio {
    animation: fadeIn 0.4s ease-out forwards;
}

.stream-card:hover {
    transform: none;
}

/* Better Ratio Card V2 */
.ranking-card-ratio {
    display: flex;
    flex-direction: column;
    padding: 14px;
    background: #0d0d0d;
    border: 1px solid #1a1a1a;
    border-radius: 12px;
    margin-bottom: 14px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.4s ease-out forwards;
}

.ratio-main-row {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.ratio-rank-big {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    font-style: italic;
    color: #444;
    min-width: 40px;
    text-align: center;
}

.rk-1 .ratio-rank-big {
    color: var(--gold);
}

.rk-2 .ratio-rank-big {
    color: #aaa;
}

.rk-3 .ratio-rank-big {
    color: #cd7f32;
}

.ratio-streamer-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid #333;
}

.ratio-streamer-info {
    flex: 1;
    min-width: 0;
}

.ratio-name-line {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.ratio-name-line a:hover {
    color: var(--secondary);
}

.ratio-badge-daily {
    display: inline-block;
    font-size: 0.65rem;
    background: #222;
    color: #888;
    padding: 2px 6px;
    border-radius: 6px;
    text-transform: uppercase;
}

.ratio-sub-metrics {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 5px;
}

.ratio-sub-label {
    font-size: 0.7rem;
    color: #555;
    font-weight: bold;
    text-transform: uppercase;
}

.ratio-counts {
    display: flex;
    gap: 10px;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.9rem;
}

.ratio-percent-large {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0 20px;
}

.ratio-total-stat {
    border-left: 1px solid #222;
    padding-left: 20px;
    min-width: 140px;
}

.stat-label-dim {
    font-size: 0.65rem;
    color: #666;
    text-transform: uppercase;
}

.stat-val-love {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--gold);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.oshi-mark {
    font-size: 1rem;
    opacity: 0.8;
}

/* Statistics Hub Grid */
.stats-hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    content-visibility: auto;
    contain-intrinsic-size: 800px;
}

.stats-hub-grid>.stats-hub-order-10 {
    order: 10;
}

.stats-hub-grid>.stats-hub-order-11 {
    order: 11;
}

.stats-hub-grid>.stats-hub-order-12 {
    order: 12;
}

.stats-hub-grid>.stats-hub-order-13 {
    order: 13;
}

.stats-hub-grid>.stats-hub-order-20 {
    order: 20;
}

.stats-hub-grid>.stats-hub-order-21 {
    order: 21;
}

.stats-hub-grid>.stats-hub-order-22 {
    order: 22;
}

.stats-hub-grid>.stats-hub-order-23 {
    order: 23;
}

.stats-hub-grid>.stats-hub-order-24 {
    order: 24;
}

.stats-hub-grid>.stats-hub-order-25 {
    order: 25;
}

.stats-hub-grid>.stats-hub-order-26 {
    order: 26;
}

.stats-hub-grid>.stats-hub-order-30 {
    order: 30;
}

.stats-hub-grid>.stats-hub-order-31 {
    order: 31;
}

.stats-hub-grid>.stats-hub-order-40 {
    order: 40;
}

.stats-hub-grid>.stats-hub-order-41 {
    order: 41;
}

.stats-hub-grid>.stats-hub-order-50 {
    order: 50;
}

.stats-hub-grid>.stats-hub-order-60 {
    order: 60;
}

.stats-hub-grid>.stats-hub-order-61 {
    order: 61;
}

.stats-hub-grid>.stats-hub-order-90 {
    order: 90;
}

@media (min-width: 900px) {
    .stats-hub-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .stats-hub-hero-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.antenna-summary {
    margin: 8px 0 14px;
    color: #94a3b8;
    font-size: 13px;
}

.antenna-empty-state {
    padding: 16px;
    color: #94a3b8;
}

.antenna-row-content {
    max-width: none;
}

.antenna-row {
    --bar-width: 100%;
    --bar-color: rgba(255, 255, 255, 0.02);
}

.antenna-row-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.antenna-row-meta {
    margin-top: 5px;
}

.antenna-more-nav {
    margin-top: 14px;
    text-align: center;
}

.antenna-more-btn {
    cursor: pointer;
}

.utility-table-page {
    padding: 20px;
}

.utility-table {
    width: 100%;
    max-width: 720px;
    border-collapse: collapse;
    margin-top: 16px;
    background: var(--bg-card);
    color: var(--text-main);
}

.utility-table th,
.utility-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.utility-table th {
    color: var(--text-dim);
    font-size: 0.9rem;
}

.utility-status {
    margin: 16px 0;
    color: var(--text-main);
}

.utility-status--ok {
    color: #86efac;
}

.utility-status--warn {
    color: #fca5a5;
}

.utility-cta-danger {
    background: #ef4444;
    color: #fff;
}

.stream-grid,
.history-timeline-list,
.timeline-section-group {
    content-visibility: auto;
    contain-intrinsic-size: 700px;
}

.sg-next-guide {
    margin: 10px 0 16px;
}

.sg-next-guide-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(59, 130, 246, 0.45);
    color: #dbeafe;
    background: rgba(29, 78, 216, 0.15);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.86rem;
}

.history-related-link-wrap {
    margin-bottom: 8px;
}

.history-related-link {
    color: #93c5fd;
    font-size: 0.78rem;
    text-decoration: none;
}

.history-related-link:hover {
    color: #bfdbfe;
}

.history-ranking-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 10px;
}

.history-ranking-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.35);
    background: rgba(30, 41, 59, 0.45);
    color: #bfdbfe;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
}

.history-ranking-link:hover {
    color: #e0f2fe;
    border-color: rgba(125, 211, 252, 0.55);
    background: rgba(37, 99, 235, 0.22);
}

.history-ranking-link.is-active {
    color: #f8fafc;
    border-color: color-mix(in srgb, var(--oshi-color, #2d7eff) 60%, rgba(255, 255, 255, 0.35));
    background: color-mix(in srgb, var(--oshi-color, #2d7eff) 20%, rgba(15, 23, 42, 0.75));
}

.history-next-guide {
    margin-top: 14px;
}

.history-next-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.history-next-panel {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.28);
    padding: 12px;
}

.history-next-title {
    margin: 0 0 10px;
    font-size: 0.94rem;
    color: #dbeafe;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-next-member-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.history-next-shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.history-next-member-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid color-mix(in oklab, var(--oshi-color, #334155) 55%, var(--border-color));
    border-radius: 10px;
    padding: 7px 8px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.48);
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.history-next-member-chip:hover {
    transform: translateY(-1px);
    background: rgba(15, 23, 42, 0.72);
}

.history-next-member-chip img {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid color-mix(in oklab, var(--oshi-color, #64748b) 65%, #64748b);
    flex-shrink: 0;
}

.history-next-member-chip span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    line-height: 1.2;
}

.history-next-shortcut-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    border: 1px solid rgba(96, 165, 250, 0.22);
    border-radius: 10px;
    padding: 9px 10px;
    text-decoration: none;
    color: #e5e7eb;
    background: rgba(15, 23, 42, 0.48);
    transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.history-next-shortcut-chip:hover {
    transform: translateY(-1px);
    background: rgba(30, 64, 175, 0.18);
    border-color: rgba(125, 211, 252, 0.38);
}

.history-next-shortcut-chip i {
    width: 16px;
    text-align: center;
    color: #93c5fd;
    flex-shrink: 0;
}

.history-next-shortcut-chip span {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    line-height: 1.2;
}

.history-next-stream-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.history-next-stream-card {
    min-height: 100%;
}

.history-next-stream-row {
    padding-top: 2px;
}

@media (max-width: 1100px) {
    .history-next-stream-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .history-next-grid {
        grid-template-columns: 1fr;
    }

    .history-next-member-grid {
        grid-template-columns: 1fr;
    }

    .history-next-shortcut-grid {
        grid-template-columns: 1fr;
    }

    .history-next-stream-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 1400px) {
    .stats-hub-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Fix mobile grid issues */
@media (max-width: 600px) {
    .ratio-main-row {
        flex-wrap: wrap;
    }

    .ratio-percent-large {
        width: 100%;
        margin: 10px 0;
        text-align: center;
        font-size: 2rem;
    }

    .ratio-total-stat {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid #222;
        padding-top: 10px;
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.unit-small {
    font-size: 0.7em;
    font-weight: normal;
    color: #888;
    margin: 0 2px;
}

/* News Ticker */
.news-bar {
    background: #000;
    border-bottom: 1px solid #222;
    padding: 8px 15px;
    font-size: 0.8rem;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.news-label {
    background: var(--primary);
    color: #fff;
    padding: 2px 8px;
    font-weight: 800;
    font-size: 0.7rem;
    border-radius: 3px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: 4px 0 10px rgba(0, 0, 0, 0.5);
}

.news-content {
    display: inline-block;
    padding-left: 100%;
    animation: ticker 30s linear infinite;
    color: #ccc;
}

.news-content span {
    margin-right: 50px;
}

.news-content a {
    color: var(--secondary);
    font-weight: 700;
}

.news-content a:hover {
    text-decoration: underline;
}

@keyframes ticker {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

/* Mobile Overlay Menu Polish */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 2000;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 40px 20px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-overlay.open {
    left: 0;
}

.close-menu-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
}

.mm-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.mm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
    margin-bottom: 25px;
}

.mm-link {
    background: #111;
    border: 1px solid #222;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    text-align: center;
    color: #ccc;
    display: block;
}

.mm-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #333;
}

/* === Daily Summary Card === */
.daily-summary-card {
    background: linear-gradient(135deg, rgba(255, 107, 97, 0.08) 0%, rgba(59, 130, 246, 0.08) 100%);
    border: 1px solid var(--border-highlight);
    border-radius: var(--card-radius-lg);
    padding: var(--space-6);
    margin-bottom: var(--space-6);
    box-shadow: var(--shadow-card);
}

.daily-summary-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    text-align: center;
    margin: 0 0 var(--space-5) 0;
    letter-spacing: 0.05em;
}

.daily-summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-4);
}

.daily-stat-item {
    background: rgba(10, 10, 10, 0.6);
    border: 1px solid var(--border-color);
    border-radius: var(--card-radius-md);
    padding: var(--space-4);
    text-align: center;
    transition: all 0.2s ease;
}

.daily-stat-item:hover {
    border-color: var(--border-highlight);
    transform: translateY(-2px);
}

.daily-stat-label {
    font-size: 0.875rem;
    color: var(--text-dim);
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.daily-stat-label i {
    color: var(--primary);
}

.daily-stat-value {
    font-family: var(--font-mono);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: var(--space-1);
}

.daily-stat-sub {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: var(--space-1);
}

@media (max-width: 768px) {
    .daily-summary-stats {
        grid-template-columns: 1fr;
    }

    .daily-summary-title {
        font-size: 1.25rem;
    }

    .daily-stat-value {
        font-size: 1.5rem;
    }
}

/* --- Today's News Bar (Breaking News Style) --- */
.daily-news-container {
    background: linear-gradient(90deg, #111 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: var(--section-gap);
    display: flex;
    align-items: stretch;
    overflow: hidden;
    height: 40px;
}

.daily-news-label {
    background: var(--primary);
    color: #000;
    font-size: 0.85rem;
    font-weight: 800;
    padding: 0 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
    padding-right: 25px;
}

.daily-news-label i {
    animation: flash 2s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.daily-news-content {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 0 20px;
    overflow: hidden;
    scrollbar-width: none;
}

.index-page .main-container,
.index-page .layout-with-side,
.index-page .side-content,
.index-page .daily-news-container,
.index-page .daily-news-content,
.index-page .daily-news-content--digest {
    max-height: none !important;
    overflow-y: visible !important;
}

.daily-news-content::-webkit-scrollbar {
    display: none;
}

.news-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    font-size: 0.85rem;
    color: #eee;
}

.news-item-label {
    color: var(--text-dim);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-item-label i {
    color: var(--primary);
    opacity: 0.8;
}

.news-item-value {
    font-family: var(--font-mono);
    font-weight: 700;
    color: #fff;
    font-size: 0.95rem;
}

.news-item-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: 4px;
    opacity: 0.8;
}

.news-item.revenue .news-item-label i {
    color: var(--gold);
}

.news-divider {
    width: 1px;
    height: 16px;
    background: #333;
}

.daily-news-container--digest {
    height: auto;
    align-items: stretch;
}

.daily-news-content--digest {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding-top: 6px;
    padding-bottom: 6px;
    overflow: hidden;
}

.news-item--digest-summary {
    width: 100%;
    min-width: 0;
    white-space: normal;
}

.news-item--digest-summary .news-item-value {
    display: block;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
}

.hm-digest-summary-ticker > span {
    display: inline-block;
    padding-left: 100%;
    min-width: max-content;
    animation-name: hmDigestSummaryTicker;
    animation-duration: 22s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

@keyframes hmDigestSummaryTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.hm-digest-ticker {
    position: relative;
    overflow: hidden;
    flex: 0 1 auto;
    min-width: 0;
    width: 100%;
}

.hm-digest-ticker-track {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    width: max-content;
    min-width: max-content;
    animation-name: hmRankTicker;
    animation-duration: 20s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    animation-play-state: running;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

@keyframes hmRankTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.hm-digest-ticker-link {
    color: #dbeafe;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
}

.hm-digest-ticker-link:hover {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hm-digest-ticker-sep {
    color: #7f8ea8;
    font-size: 0.78rem;
}

@media (max-width: 600px) {
    .daily-news-container {
        height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding: 5px 0;
    }

    .daily-news-label {
        width: 100%;
        clip-path: none;
        padding: 5px 15px;
        font-size: 0.75rem;
        background: transparent;
        color: var(--primary);
        border-bottom: 1px solid #222;
        margin-bottom: 5px;
    }

    .daily-news-content {
        width: 100%;
        padding: 5px 15px 10px;
        display: flex;
        flex-wrap: wrap;
        gap: 15px;
    }

    .news-divider {
        display: none;
    }

    .news-item--digest-summary {
        width: 100%;
    }

    .hm-digest-ticker {
        width: 100%;
        overflow: hidden;
        padding-bottom: 2px;
    }
}

/* --- Shorts Ranking Styles --- */
.shorts-ranking-page .simple-ranking-wrap {
    max-width: none;
    margin: 0;
    padding: 0;
}

.shorts-ranking-page .simple-ranking-head {
    margin-bottom: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.shorts-ranking-page .shorts-head-nav,
.shorts-ranking-page .shorts-sort-nav {
    margin: 0;
}

.shorts-ranking-page .shorts-sort-nav {
    margin-bottom: 10px;
}

.shorts-ranking-page .simple-ranking-hero {
    margin-bottom: 18px;
}

.shorts-date-nav {
    margin-top: 10px;
    margin-bottom: 0;
}

.shorts-ranking-page .music-ranking-list-panel {
    margin-top: 12px;
    padding: 8px;
}

.shorts-ranking-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 0;
}

.shorts-ranking-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px;
    gap: 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    box-shadow: var(--shadow-soft-2);
}

.shorts-ranking-item:hover {
    border-color: var(--oshi-color, var(--primary));
    background: var(--bg-card-hover);
    box-shadow: var(--shadow-soft-2);
}

.shorts-rank-badge {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    border-radius: 6px;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: #888;
    background: #252525;
    font-family: var(--font-heading);
}

.shorts-rank-badge.rank-1 { background: linear-gradient(135deg, #FFD700 0%, #FDB931 100%); color: #000; box-shadow: 0 0 15px rgba(253, 185, 49, 0.2); }
.shorts-rank-badge.rank-2 { background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%); color: #000; }
.shorts-rank-badge.rank-3 { background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%); color: #000; }

.shorts-thumb-wrap {
    width: 72px;
    height: 128px; /* 9:16 aspect ratio */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: var(--shadow-card);
}

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

.shorts-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.shorts-title-link {
    text-decoration: none;
    color: inherit;
}

.shorts-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 6px;
    color: var(--text-main);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.shorts-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-dim);
    align-items: center;
    margin-bottom: 8px;
}

.shorts-author {
    color: var(--primary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.shorts-author-avatar {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 auto;
}

.shorts-stats-row {
    display: flex;
    gap: 20px;
    align-items: center;
}

.shorts-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
}

.shorts-stat.highlight {
    color: var(--text-main);
}

.shorts-stat i { color: #888; }
.shorts-stat.highlight i { color: var(--primary); }
.shorts-stat:nth-child(2).highlight i { color: #f91880; } /* Likes pink */

@media (max-width: 600px) {
    .shorts-ranking-item {
        display: grid;
        grid-template-columns: 30px 56px minmax(0, 1fr);
        align-items: start;
        padding: 10px;
        gap: 10px;
    }
    .shorts-thumb-wrap {
        width: 56px;
        height: 100px;
    }
    .shorts-info {
        min-width: 0;
    }
    .shorts-title {
        font-size: 0.9rem;
        line-height: 1.35;
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
    }
    .shorts-meta {
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 6px;
        font-size: 0.76rem;
    }
    .shorts-stats-row {
        gap: 12px;
        flex-wrap: wrap;
    }
    .shorts-stat {
        font-size: 0.86rem;
    }
    .shorts-rank-badge {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
}

/* Upcoming events (birthday / anniversary) */
.upcoming-events-section {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.members-upcoming-events-section {
    margin-bottom: 16px;
}

.upcoming-events-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.upcoming-events-grid > .upcoming-event-box:only-child {
    grid-column: 1 / -1;
}

.upcoming-event-box {
    border: 0;
    border-radius: 0;
    padding: 14px;
    background: transparent;
    box-sizing: border-box;
}

.upcoming-event-title {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #f1f5f9;
    letter-spacing: 0.01em;
}

.upcoming-event-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.upcoming-event-item {
    display: grid;
    grid-template-columns: 32px 1fr auto auto;
    gap: 8px;
    align-items: center;
    text-decoration: none;
    color: #e2e8f0;
    border: 1px solid rgba(100, 116, 139, 0.25);
    border-left: 3px solid var(--oshi-color, #64748b);
    border-radius: 10px;
    padding: 6px 8px;
    background: rgba(15, 23, 42, 0.55);
    width: calc(25% - 6px);
    min-width: 0;
}

.upcoming-event-item--hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 12px;
    border-left-width: 4px;
    min-height: 52px;
    width: 100%;
    min-width: 0;
}

.upcoming-event-item img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.upcoming-event-item--hero img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.upcoming-event-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}

.upcoming-event-name {
    font-size: 0.9rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
}

.upcoming-event-date {
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.1;
}

.upcoming-event-countdown {
    font-size: 0.95rem;
    color: #fda4af;
    white-space: nowrap;
}

.upcoming-event-item--hero .upcoming-event-countdown {
    margin-left: auto;
    font-weight: 800;
    color: #fda4af;
}

@media (max-width: 1100px) {
    .upcoming-event-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .upcoming-event-item {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }
    .upcoming-event-box {
        padding: 12px;
    }
    .upcoming-event-item {
        width: 100%;
    }
    .upcoming-event-item--hero {
        gap: 10px;
        padding: 9px 10px;
    }
    .upcoming-event-main {
        gap: 6px;
    }
    .upcoming-event-item--hero .upcoming-event-date {
        font-size: 0.78rem;
    }
}

.history-meta-upcoming {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-upcoming-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(244, 114, 182, 0.35);
    background: rgba(244, 114, 182, 0.08);
    font-size: 0.82rem;
    color: #fbcfe8;
}

.history-upcoming-chip strong {
    font-weight: 800;
}

.history-upcoming-chip em {
    font-style: normal;
    color: #fda4af;
}

@media (max-width: 900px) {
    .upcoming-events-grid {
        grid-template-columns: 1fr;
    }

    .upcoming-event-item {
        grid-template-columns: 30px 1fr auto;
    }

    .upcoming-event-date {
        display: none;
    }
}

/* Music ranking page (layout structure) */
.music-ranking-page .section-card {
    padding: 14px;
}

.music-ranking-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.music-ranking-title {
    margin: 0;
}

.music-ranking-period-nav,
.music-ranking-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.music-ranking-period-nav {
    margin-bottom: 4px;
}

.music-ranking-filter-row {
    margin-top: 14px;
}

.music-ranking-filter-row.is-tight {
    margin-top: 8px;
}

.music-ranking-list-panel {
    margin-top: 12px;
    padding: 8px;
}

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

.music-ranking-card {
    margin-bottom: 0;
}

.music-ranking-empty {
    opacity: 0.82;
    margin: 6px 4px;
}

.music-ranking-cta-panel {
    margin-top: 12px;
}

.music-ranking-cta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.member-music-page {
    padding-bottom: 28px;
}

.member-music-sections {
    display: grid;
    gap: 12px;
}

.member-music-filter-links {
    margin: 0;
}

.member-music-filter-section {
    margin-top: 12px;
    padding-top: 8px;
    padding-bottom: 10px;
    position: sticky;
    top: calc(var(--side-sticky-top) - 10px);
    z-index: 15;
    background: var(--bg-dark);
    background: color-mix(in srgb, var(--bg-dark) 92%, transparent);
}

.member-music-filter-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.member-music-filter-meta {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
    min-width: 0;
}

.member-music-filter-kicker,
.member-music-filter-summary {
    margin: 0;
}

.member-music-filter-kicker {
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-music-filter-summary {
    color: #cbd5e1;
    font-size: 0.84rem;
    font-weight: 600;
}

.member-music-filter-links .history-ranking-link {
    white-space: nowrap;
}

.member-music-section {
    margin-top: 0;
    scroll-margin-top: calc(var(--side-sticky-top) + 54px);
}

.member-music-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 4px 6px 12px;
}

.member-music-count {
    color: #cbd5e1;
    font-size: 0.82rem;
    font-weight: 700;
}

.info-static-page {
    max-width: 980px;
    margin: 0 auto;
}

.info-page-intro {
    color: #94a3b8;
    margin: 8px 0 16px;
}

.info-page-meta {
    color: #64748b;
    margin: 0 0 16px;
    font-size: 0.9rem;
}

.info-page-row {
    --bar-width: 100%;
    --bar-color: rgba(255, 255, 255, 0.02);
}

.info-page-row-body {
    max-width: none;
}

.info-page-row-title {
    font-size: 1rem;
    margin: 0;
}

.info-page-row-copy {
    margin-top: 6px;
    color: #cbd5e1;
}

.info-page-inline-link {
    color: #60a5fa;
}

.member-music-card {
    text-decoration: none;
}

.member-music-card .stream-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.member-music-type-pill {
    margin-left: 6px;
    padding: 2px 8px;
    font-size: 11px;
}

@media (max-width: 640px) {
    .member-music-filter-section {
        top: 76px;
        padding-top: 6px;
        padding-bottom: 8px;
    }

    .member-music-filter-shell {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .member-music-filter-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .member-music-filter-links .history-ranking-link {
        justify-content: center;
        min-width: 0;
        text-align: center;
        white-space: normal;
    }

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

/* Stream graph: align "初回 / 最新" links to player width */
.stream-graph-page .sg-next-watch-links {
    max-width: 720px;
    margin: 10px auto 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
}

@media (min-width: 900px) {
    .stream-graph-page .sg-next-watch-links {
        max-width: min(80vw, 1280px);
    }
}

/* Oshi Share */
.oshi-maker-page,
.oshi-share-page,
.oshi-ranking-page {
    padding-bottom: 36px;
}

.oshi-maker-hero,
.oshi-ranking-hero,
.oshi-share-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background:
        radial-gradient(circle at top right, rgba(251, 113, 133, 0.16), transparent 32%),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.12), transparent 28%),
        linear-gradient(180deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.96));
}

.oshi-share-hero {
    align-items: flex-start;
    row-gap: 20px;
    padding: 22px;
}

.oshi-share-hero-copy {
    display: grid;
    gap: 12px;
    flex: 1 1 640px;
    min-width: 0;
}

.oshi-share-hero-copy .section-title,
.oshi-share-hero-copy .music-ranking-empty,
.oshi-share-created-note {
    margin: 0;
}

.oshi-share-member-tags {
    margin-top: 0;
}

.oshi-share-priority-cta {
    align-self: flex-start;
    margin-top: 4px;
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fb7185;
    font-weight: 800;
}

.oshi-maker-hero-tags,
.oshi-share-actions,
.oshi-maker-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oshi-maker-actions {
    margin-top: 14px;
    align-items: stretch;
    justify-content: center;
}

.oshi-maker-actions-desktop {
    display: none;
}

.oshi-maker-actions .history-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 0.95rem;
    font-weight: 900;
}

.oshi-maker-submit-btn {
    background: linear-gradient(180deg, rgba(251, 113, 133, 0.26), rgba(225, 29, 72, 0.2));
    border: 1px solid rgba(251, 113, 133, 0.6);
    color: #ffe4e6;
    box-shadow: 0 12px 24px rgba(225, 29, 72, 0.24);
}

.oshi-maker-submit-btn:hover {
    border-color: rgba(251, 113, 133, 0.82);
    box-shadow: 0 16px 28px rgba(225, 29, 72, 0.3);
    transform: translateY(-1px);
}

.oshi-maker-ranking-btn {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(15, 23, 42, 0.94));
    border: 1px solid rgba(96, 165, 250, 0.46);
    color: #dbeafe;
}

.oshi-maker-ranking-btn:hover {
    border-color: rgba(96, 165, 250, 0.68);
    transform: translateY(-1px);
}

.oshi-alert-panel {
    margin-top: 12px;
    border-color: rgba(248, 113, 113, 0.28);
}

.oshi-alert-list {
    margin: 10px 0 0;
    padding-left: 18px;
    color: #fecaca;
}

.oshi-maker-form-panel,
.oshi-share-preview-shell {
    margin-top: 12px;
}

.oshi-maker-page .oshi-maker-hero,
.oshi-maker-page .oshi-maker-form-panel,
.oshi-share-page .oshi-share-hero,
.oshi-share-page .oshi-share-preview-shell {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.oshi-maker-form-panel {
    overflow: hidden;
}

/* Border trim: non-card wrappers (cards/buttons are excluded by class). */
.layout-with-side,
.side-content,
.history-layout,
.history-main-content,
.oshi-maker-grid,
.oshi-maker-main,
.oshi-maker-side {
    border: none !important;
}

.oshi-maker-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.95fr);
    align-items: start;
    min-height: 0;
}

.oshi-maker-secondary-grid {
    display: grid;
    gap: 14px;
}

.oshi-maker-main,
.oshi-maker-side {
    display: grid;
    gap: 14px;
    align-content: start;
    min-height: 0;
}

.oshi-maker-block {
    border: 1px solid rgba(148, 163, 184, 0.12);
    border-radius: var(--ui-radius);
    background: rgba(15, 23, 42, 0.64);
    padding: 16px;
}

.oshi-maker-song-block {
    display: flex;
    flex-direction: column;
    min-height: 0;
    gap: 10px;
}

.oshi-maker-song-block .oshi-maker-block-head {
    margin-bottom: 0;
}

.oshi-maker-block-head {
    margin-bottom: 12px;
}

.oshi-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.82rem;
    color: #cbd5e1;
    font-weight: 700;
}

.oshi-input,
.oshi-textarea {
    width: 100%;
    border-radius: var(--ui-radius);
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.88);
    color: #f8fafc;
    padding: 12px 14px;
    font-size: 0.95rem;
}

.oshi-textarea {
    resize: vertical;
    min-height: 110px;
    line-height: 1.55;
}

.oshi-member-summary {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oshi-member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.oshi-member-name {
    font-weight: 800;
    color: #f8fafc;
}

.oshi-upload-box {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 16px;
    border-radius: var(--ui-radius);
    border: 1px dashed rgba(148, 163, 184, 0.32);
    background: rgba(2, 6, 23, 0.72);
    cursor: pointer;
    color: #f8fafc;
}

.oshi-upload-input {
    display: none;
}

.oshi-upload-copy {
    font-weight: 700;
}

.oshi-current-image {
    margin-top: 12px;
    display: grid;
    gap: 10px;
}

.oshi-current-image-preview {
    width: 100%;
    max-width: 460px;
    border-radius: var(--ui-radius);
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.oshi-remove-image-chip input {
    margin-right: 6px;
}

.oshi-song-toolbar {
    display: grid;
    gap: 10px;
    margin-bottom: 0;
    min-width: 0;
}

.oshi-song-toolbar-top {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.oshi-song-toolbar-top > * {
    min-width: 0;
}

.oshi-song-count {
    white-space: nowrap;
    font-size: 0.84rem;
    color: #cbd5e1;
    font-weight: 800;
}

.oshi-song-type-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 132px));
    justify-content: start;
    gap: 8px;
    min-width: 0;
    overflow: visible;
    padding-bottom: 2px;
}

.oshi-song-type-tab {
    appearance: none;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(2, 6, 23, 0.72);
    color: #cbd5e1;
    border-radius: var(--ui-radius);
    padding: 8px 10px;
    display: grid;
    gap: 1px;
    min-width: 0;
    text-align: left;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease, color .18s ease;
}

.oshi-song-type-tab:hover {
    border-color: rgba(125, 211, 252, 0.34);
    transform: translateY(-1px);
}

.oshi-song-type-tab.is-active {
    border-color: rgba(96, 165, 250, 0.62);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.96));
    color: #f8fafc;
    box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.18);
}

.oshi-song-type-tab-label {
    font-size: 0.84rem;
    font-weight: 800;
}

.oshi-song-type-tab-meta {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.2;
}

.oshi-song-grid {
    display: grid;
    gap: 12px;
    min-height: 0;
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

.oshi-song-section {
    display: grid;
    gap: 10px;
}

.oshi-maker-page .oshi-song-section[hidden],
.oshi-maker-page .oshi-song-option[hidden] {
    display: none !important;
}

.oshi-song-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 0 2px;
}

.oshi-song-section-title {
    margin: 0;
    color: #f8fafc;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.oshi-song-section-count {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
}

.oshi-song-section-list {
    display: grid;
    gap: 8px;
}

@media (min-width: 981px) {
    .oshi-maker-actions-desktop {
        display: flex;
    }

    .oshi-maker-actions-mobile {
        display: none;
    }

    .oshi-maker-actions {
        margin-top: 12px;
    }

    .oshi-maker-actions .history-social-btn {
        min-width: 220px;
    }
}

.oshi-song-option {
    display: block;
    cursor: pointer;
}

.oshi-song-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.oshi-song-option-body {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    border-radius: var(--ui-radius);
    border: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(15, 23, 42, 0.74);
    padding: 10px;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.oshi-song-option input:checked + .oshi-song-option-body {
    border-color: rgba(251, 113, 133, 0.82);
    background: rgba(251, 113, 133, 0.1);
    transform: translateY(-1px);
}

.oshi-song-option.is-unavailable .oshi-song-option-body {
    border-color: rgba(251, 191, 36, 0.42);
    background: rgba(251, 191, 36, 0.08);
}

.oshi-song-option-body img {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--ui-radius);
    object-fit: cover;
}

.oshi-song-meta {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.oshi-song-meta strong {
    color: #f8fafc;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.oshi-song-meta span {
    color: #94a3b8;
    font-size: 0.84rem;
}

.oshi-song-type {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.oshi-song-unavailable-chip {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: none;
    color: #fef3c7;
    background: rgba(245, 158, 11, 0.22);
    border: 1px solid rgba(245, 158, 11, 0.42);
}

.member-music-card.is-unavailable {
    opacity: 0.86;
    border-color: rgba(251, 191, 36, 0.28);
}

.oshi-honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.oshi-share-created-note {
    margin: 10px 0 0;
    color: #f8fafc;
    font-weight: 700;
}

.oshi-share-member-tags {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.oshi-share-priority-cta {
    display: grid;
    gap: 10px;
    min-width: min(100%, 340px);
}

.oshi-share-secondary-cta {
    margin: 14px 0 10px;
}

.oshi-share-cta-main,
.oshi-share-cta-sub {
    display: flex;
    align-items: center;
    gap: 12px;
    border-radius: 18px;
    padding: 14px 16px;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .2s ease, border-color .18s ease, background .18s ease;
}

.oshi-share-cta-main {
    background: #0b0b0b;
    border: 1px solid #1b1b1b;
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.oshi-share-cta-main:hover {
    transform: translateY(-1px);
    border-color: #333333;
    background: #1a1a1a;
    box-shadow: 0 16px 28px rgba(0, 0, 0, 0.44);
}

.oshi-share-cta-sub {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(96, 165, 250, 0.34);
    color: #dbeafe;
}

.oshi-share-cta-maker {
    border-color: rgba(250, 204, 21, 0.36);
    color: #fef3c7;
}

.oshi-share-cta-maker .oshi-share-cta-copy small {
    color: rgba(253, 230, 138, 0.86);
}

.oshi-share-cta-sub:hover {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.52);
}

.oshi-share-cta-maker:hover {
    border-color: rgba(250, 204, 21, 0.56);
    box-shadow: 0 12px 24px rgba(250, 204, 21, 0.14);
}

.oshi-share-cta-main i,
.oshi-share-cta-sub i {
    font-size: 1.34rem;
    width: 1.4em;
    text-align: center;
}

.oshi-share-cta-copy {
    display: grid;
    gap: 2px;
}

.oshi-share-cta-copy strong {
    color: inherit;
    font-size: 1.08rem;
    font-weight: 900;
    line-height: 1.24;
}

.oshi-share-cta-copy small {
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.77rem;
    font-weight: 700;
    line-height: 1.2;
}

.oshi-share-preview-card {
    position: relative;
    min-height: 460px;
    border-radius: 28px;
    overflow: hidden;
    padding: 26px;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(245, 250, 255, 0.96)),
        var(--oshi-share-bg, linear-gradient(135deg, #fbfdff, #edf6ff));
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 56px rgba(148, 163, 184, 0.18);
}

.oshi-share-preview-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--oshi-color, #ff6b61) 18%, transparent), transparent 32%),
        radial-gradient(circle at bottom left, rgba(34, 211, 238, 0.18), transparent 28%);
    z-index: -1;
}

.oshi-share-preview-top {
    display: flex;
    align-items: center;
    gap: 14px;
}

.oshi-share-preview-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.88);
    box-shadow: 0 8px 24px rgba(148, 163, 184, 0.22);
}

.oshi-share-preview-name {
    font-size: clamp(1.8rem, 2.7vw, 2.7rem);
    font-weight: 900;
    color: #102331;
}

.oshi-share-preview-sub {
    margin-top: 4px;
    color: #56707f;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.oshi-share-preview-message {
    margin-top: 18px;
    max-width: 680px;
    color: #203745;
    font-size: 1.04rem;
    line-height: 1.7;
}

.oshi-share-preview-list {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.oshi-share-preview-list li {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #102331;
}

.oshi-share-preview-type {
    color: color-mix(in srgb, var(--oshi-color, #ff6b61) 72%, #ef476f 28%);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.oshi-share-preview-tags {
    margin-top: 22px;
    color: #516a77;
    font-size: 0.88rem;
    font-weight: 700;
}

.oshi-share-actions {
    margin-top: 16px;
}

.oshi-share-selected-shell {
    margin-top: 12px;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
}

.oshi-share-selected-cta {
    margin-top: 14px;
    display: flex;
    justify-content: flex-end;
}

.oshi-ranking-hero,
.oshi-maker-hero,
.oshi-share-hero,
.oshi-maker-form-panel,
.oshi-share-preview-shell {
    margin-top: 12px;
}

@media (max-width: 980px) {
    .oshi-maker-grid {
        grid-template-columns: 1fr;
    }

    .oshi-maker-side,
    .oshi-maker-song-block {
        min-height: 0;
    }

    .oshi-song-toolbar-top {
        flex-direction: column;
        align-items: stretch;
    }

    .oshi-song-count {
        text-align: right;
    }
}

@media (max-width: 640px) {
    .oshi-maker-hero,
    .oshi-ranking-hero,
    .oshi-share-hero {
        padding: 16px;
    }

    .oshi-song-option-body {
        grid-template-columns: 84px minmax(0, 1fr);
    }

    .oshi-song-type-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
    }

    .oshi-song-type-tab {
        padding: 7px 8px;
    }

    .oshi-song-type-tab-label {
        font-size: 0.8rem;
    }

    .oshi-song-type-tab-meta {
        font-size: 0.66rem;
    }

    .oshi-share-preview-card {
        min-height: 0;
        padding: 18px;
    }

    .oshi-share-preview-avatar {
        width: 58px;
        height: 58px;
    }

    .oshi-share-preview-message {
        font-size: 0.95rem;
    }

    .oshi-maker-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .oshi-maker-actions .history-social-btn {
        width: 100%;
    }

    .oshi-share-priority-cta {
        min-width: 100%;
    }

    .oshi-share-cta-main,
    .oshi-share-cta-sub {
        padding: 12px 14px;
    }

    .oshi-share-selected-cta {
        justify-content: stretch;
    }

    .oshi-share-selected-cta .oshi-share-cta-sub {
        width: 100%;
    }
}

/* Global surface simplification */
:where(
    .header-container,
    .panel,
    .section-card,
    .pill,
    .stream-card,
    .s-card,
    .graph-container,
    .related-section,
    .history-header,
    .history-fan-card,
    .history-live-card,
    .history-chat-card,
    .history-activity-card,
    .history-section,
    .history-next-panel,
    .search-panel,
    .ratio-card,
    .ranking-card-detailed,
    .timeline-section,
    .stats-hub-hero,
    .member-music-section,
    .music-ranking-list-panel,
    .dashboard-desc--hero,
    .music-ranking-filter,
    .members-toolbar,
    .members-search,
    .members-chips .chip,
    .members-section,
    .member-card,
    .member-card__group,
    .upcoming-event-box,
    .upcoming-event-item,
    .history-next-member-chip,
    .history-social-btn,
    .mobile-bottom-nav,
    .mb-nav-item,
    .theme-toggle-btn,
    .palette-toggle-btn,
    .share-x-btn,
    .hamburger-btn,
    .theme-mode-chip,
    .palette-popover,
    .palette-chip,
    .palette-chip-member,
    .mm-link,
    .header-search-input,
    .mm-search-input,
    .oshi-maker-block,
    .oshi-input,
    .oshi-textarea,
    .oshi-upload-box,
    .oshi-song-type-tab,
    .oshi-song-option-body,
    .oshi-current-image-preview,
    .oshi-remove-image-chip,
    .oshi-share-preview-card,
    .oshi-share-preview-list li,
    .site-footer-links a,
    [class*="-card"],
    [class*="-panel"],
    [class*="-chip"],
    [class*="-btn"]
) {
    border: none !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

.members-search,
.members-chips .chip,
.member-card,
.member-card__group,
.upcoming-event-box,
.upcoming-event-item,
.history-next-member-chip {
    background: var(--bg-card) !important;
}

.member-card::before {
    display: none !important;
}

.members-discovery-hero {
	display: grid;
	grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
	gap: 20px;
	align-items: center;
	margin-bottom: 18px;
	padding: var(--page-panel-pad-lg);
	background: linear-gradient(180deg, rgba(8, 15, 35, 0.98), rgba(12, 18, 30, 0.98)) !important;
	border: none;
}

.members-discovery-kicker {
	margin: 0 0 8px;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: #fda4af;
	font-weight: 800;
}

.members-discovery-copy h2 {
	margin: 0 0 10px;
	font-size: var(--page-hero-title-size);
	line-height: 1.08;
	letter-spacing: -0.03em;
	color: #ffffff;
}

.members-discovery-copy p:last-child {
	margin: 0;
	color: rgba(255, 255, 255, 0.9);
	line-height: 1.75;
	font-size: var(--page-body-size);
	font-weight: 500;
}

.members-discovery-actions {
	display: grid;
	gap: 12px;
	align-content: center;
}

.members-discovery-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 18px;
	border-radius: 16px;
	border: none;
	background: rgba(15, 23, 42, 0.78);
	color: #fff;
	font-weight: 800;
	text-decoration: none;
	transition: transform 0.18s ease, background 0.18s ease;
}

.members-discovery-btn:hover {
	transform: translateY(-1px);
	background: rgba(23, 37, 84, 0.62);
}

.members-discovery-btn.is-primary {
	background: rgba(96, 165, 250, 0.24);
	color: #eff6ff;
}

@media (max-width: 860px) {
	.members-discovery-hero {
		grid-template-columns: 1fr;
		padding: 22px;
	}
}

/* Apple DESIGN.md structural tuning while preserving the current palette system. */
:root {
    --font-heading: "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "BIZ UDPGothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-body: "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "BIZ UDPGothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --font-mono: "SFMono-Regular", "SF Mono", "JetBrains Mono", Consolas, monospace;
    --content-max: 1120px;
    --content-narrow: 980px;
    --layout-gap: 24px;
    --section-gap: clamp(32px, 5vw, 64px);
    --section-gap-tight: 12px;
    --side-sticky-top: 84px;
    --card-radius-md: 8px;
    --card-radius-lg: 12px;
    --card-pad-md: 20px;
    --card-pad-sm: 14px;
    --shadow-card: 3px 5px 30px rgba(0, 0, 0, 0.22);
    --shadow-glow: 3px 5px 30px rgba(0, 0, 0, 0.18);
    --surface-1: color-mix(in srgb, var(--bg-card) 94%, #000 6%);
    --surface-2: color-mix(in srgb, var(--bg-card-hover) 94%, #000 6%);
    --surface-glass: color-mix(in srgb, var(--bg-dark) 74%, transparent);
    --border-subtle: color-mix(in srgb, var(--border-color) 72%, transparent);
    --text-muted: #7a8594;
    --focus-ring: color-mix(in srgb, var(--secondary) 72%, white 28%);
}

html,
body {
    font-family: var(--font-body);
    line-height: 1.47;
    letter-spacing: -0.012em;
    text-rendering: optimizeLegibility;
}

body {
    background: var(--bg-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 2px;
}

.header-container {
    background: var(--surface-glass);
    border-bottom: 1px solid var(--border-subtle);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

.header-top-row {
    padding-top: 10px;
    padding-bottom: 8px;
}

.scroll-nav {
    gap: 8px;
    padding-top: 0;
    padding-bottom: 10px;
}

.header-title,
.header-actions {
    gap: 12px;
}

.share-x-btn,
.theme-toggle-btn,
.palette-toggle-btn,
.hamburger-btn,
.search-mobile-btn {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 84%, transparent);
    color: var(--text-main);
    box-shadow: none;
}

.share-x-btn:hover,
.theme-toggle-btn:hover,
.palette-toggle-btn:hover,
.hamburger-btn:hover,
.search-mobile-btn:hover {
    background: color-mix(in srgb, var(--bg-card-hover) 88%, transparent);
    border-color: color-mix(in srgb, var(--border-highlight) 72%, transparent);
    box-shadow: none;
    transform: translateY(-1px);
}

.hamburger-btn {
    border-width: 1px;
    border-style: solid;
    font-size: 1.12rem;
}

.palette-popover {
    border-radius: 12px;
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    box-shadow: var(--shadow-card);
    padding: 12px;
}

.palette-chip {
    border-radius: 8px;
    box-shadow: none;
}

.header-search-box {
    max-width: 360px;
    margin-left: 16px;
}

.header-search-input,
.mm-search-input,
.search-input {
    border-radius: 11px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 90%, transparent);
    box-shadow: none;
}

.header-search-icon,
.search-icon {
    color: var(--text-dim);
}

.separator {
    border-left-color: var(--border-subtle);
}

.pill,
.home-command__link {
    min-height: 34px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.01em;
}

.pill:hover,
.home-command__link:hover {
    background: color-mix(in srgb, var(--bg-card) 76%, transparent);
    border-color: color-mix(in srgb, var(--border-highlight) 74%, transparent);
}

.pill.active {
    background: color-mix(in srgb, var(--text-main) 94%, transparent);
    color: var(--bg-dark);
    border-color: transparent;
    box-shadow: none;
}

.main-container {
    margin-top: 20px;
    padding-bottom: var(--section-gap);
}

.hero-section-title,
.section-title,
.timeline-title,
.page-title,
.ranking-section-title,
.music-ranking-title,
.simple-ranking-title,
.stats-hub-hero-title,
.home-command__title {
    font-family: var(--font-heading);
    letter-spacing: -0.03em;
}

.hero-section-title {
    font-size: clamp(1.45rem, 2.6vw, 2rem);
    font-weight: 600;
    line-height: 1.1;
    margin: clamp(28px, 5vw, 56px) 0 18px;
    text-transform: none;
}

.section-title,
.timeline-title,
.ranking-section-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.15;
    font-weight: 600;
}

.page-title {
    font-size: var(--page-heading-size);
    line-height: 1.12;
}

.hero-card {
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    border-color: var(--border-subtle);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
}

.hero-card:hover {
    transform: none;
    background: var(--surface-2);
    border-color: color-mix(in srgb, var(--primary) 24%, var(--border-color) 76%);
    box-shadow: var(--shadow-card);
}

.hero-icon {
    border: 0;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.2);
}

.hero-title {
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.015em;
}

.hero-meta {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.4;
}

.status-pill,
.thumb-badge,
.badge-status,
.badge-total-duration {
    border-radius: 999px;
    box-shadow: none;
}

.dashboard-desc,
.simple-ranking-hero,
.home-command,
.quick-actions,
.date-nav,
.ranking-title-nav {
    max-width: var(--content-narrow);
    margin-left: auto;
    margin-right: auto;
}

.dashboard-desc,
.simple-ranking-hero {
    padding: clamp(22px, 4vw, 30px);
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
}

.dashboard-desc--hero,
.simple-ranking-hero {
    border-left: 0;
}

.dashboard-desc h1,
.dashboard-desc .dashboard-desc-title,
.simple-ranking-title {
    font-size: var(--page-heading-size);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.dashboard-desc p,
.dashboard-desc .dashboard-desc-copy,
.simple-ranking-sub,
.home-command__copy {
    font-size: 1rem;
    line-height: 1.47;
}

.home-command {
    gap: 24px;
    padding: clamp(24px, 4vw, 36px);
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
}

.home-command::before {
    display: none;
}

.home-command__main {
    gap: 22px;
}

.home-command__pill {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--border-highlight) 64%, transparent);
    background: transparent;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.home-command__pill--mode {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--border-color) 58%);
    box-shadow: none;
}

.home-command__mark {
    filter: none;
}

.home-command__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.07;
}

.home-command__copy {
    max-width: 42rem;
    margin-top: 12px;
}

.home-command__stat,
.home-command__spotlight,
.qa-btn,
.music-ranking-page .section-card,
.search-panel,
.history-header,
.profile-card,
.simple-ranking-card,
.ranking-card-detailed,
.ratio-card,
.s-card,
.stats-hub-hero-card {
    border: 1px solid var(--border-subtle);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
}

.home-command__stat {
    padding: 16px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-dark) 12%);
    backdrop-filter: none;
    box-shadow: none;
}

.home-command__stat-label,
.stats-hub-hero-card-label,
.s-card-label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.home-command__stat-value,
.s-card-val,
.stats-hub-hero-card-val,
.simple-ranking-val,
.rc-love-val {
    font-family: var(--font-body);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.home-command__spotlight {
    padding: 16px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-card-hover) 90%, var(--bg-dark) 10%);
}

.home-command__spotlight-media {
    border-radius: 12px;
}

.home-command__spotlight-rank {
    min-width: 40px;
    height: 28px;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    background: color-mix(in srgb, var(--bg-dark) 82%, transparent);
}

.home-command__spotlight-kicker {
    letter-spacing: 0.08em;
}

.home-command__spotlight-title {
    font-size: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.home-command__spotlight-copy {
    font-size: 0.9rem;
    line-height: 1.47;
}

.home-command__spotlight-metric {
    padding: 12px 14px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--bg-card) 88%, var(--bg-dark) 12%);
    border-color: var(--border-subtle);
}

.quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0 auto 30px;
}

.qa-btn {
    min-height: 108px;
    padding: 18px;
    border-radius: 12px;
}

.qa-btn i {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--text-main);
}

.qa-btn__label {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.qa-btn__meta {
    font-size: 0.82rem;
    line-height: 1.47;
}

.qa-btn:hover,
.qa-btn.is-active {
    transform: translateY(-1px);
    background: var(--surface-2);
    box-shadow: var(--shadow-card);
}

.date-nav,
.ranking-title-nav {
    margin-bottom: var(--page-heading-gap);
    padding: 0;
    gap: 10px;
    border: 0;
}

.date-nav a,
.ranking-title-nav .rt-nav {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-main);
}

.date-nav span,
.ranking-title-nav .rt-date {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.ranking-title-nav .rt-desc {
    font-size: var(--page-ranking-nav-title-size);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.stream-card,
.ranking-card-detailed,
.ratio-card,
.s-card,
.stats-hub-hero-card,
.simple-ranking-card,
.music-ranking-page .section-card,
.search-panel,
.history-header,
.profile-card {
    border-radius: var(--card-radius-lg);
}

.stream-card {
    border-radius: var(--card-radius-md);
    background: var(--surface-1);
    border-color: var(--border-subtle);
    box-shadow: none;
}

.stream-card::before {
    display: none;
}

.stream-card:hover {
    transform: translateY(-1px);
    background: var(--surface-2);
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color) 72%);
    box-shadow: var(--shadow-card);
}

.stream-thumb img,
.rc-thumb {
    border-radius: 8px;
}

.stream-info {
    padding: 14px 16px;
    gap: 4px;
}

.owner-name {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--text-main) 72%, var(--text-dim) 28%);
}

.stream-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -0.02em;
}

.stream-stats {
    flex-wrap: wrap;
    gap: 10px 14px;
    font-family: var(--font-body);
    font-size: 0.82rem;
    color: color-mix(in srgb, var(--text-main) 76%, var(--text-dim) 24%);
}

.stat-item i {
    opacity: 0.55;
}

.ranking-card-detailed:hover,
.ratio-card:hover,
.stats-hub-hero-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-card);
}

.rc-header {
    margin-bottom: 18px;
}

.rc-rank {
    font-size: clamp(2rem, 4vw, 3rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: -0.03em;
    text-shadow: none;
}

.rc-name,
.stats-hub-hero-card-name,
.simple-ranking-link-text {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.rc-grid {
    gap: 10px;
}

.rc-box {
    border-radius: 8px;
    border-color: var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 90%, var(--bg-dark) 10%);
}

.s-card {
    padding: 18px 16px;
}

.s-card-val {
    font-size: 1.45rem;
}

.stats-hub-hero-card {
    padding: 16px;
}

.simple-ranking-head {
    gap: 12px;
    margin-bottom: 18px;
}

.simple-ranking-meta {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0.08em;
}

.simple-ranking-hero {
    margin: 0 auto 28px;
}

.simple-ranking-row {
    padding: 18px 20px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
}

.simple-ranking-rank {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    font-weight: 600;
}

.simple-ranking-link {
    gap: 12px;
}

.simple-ranking-link-text {
    font-size: 1.04rem;
    line-height: 1.2;
}

.simple-ranking-val {
    font-size: 1.08rem;
}

.music-ranking-head {
    gap: 16px;
    margin-bottom: var(--page-heading-gap);
}

.music-ranking-title {
    font-size: var(--page-heading-size);
    font-weight: 600;
    line-height: 1.12;
}

.music-ranking-page .section-card {
    padding: 20px;
}

.music-ranking-list-panel {
    padding: 12px;
}

.music-ranking-list {
    gap: 10px;
}

@media (max-width: 960px) {
    .quick-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-command {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .main-container {
        padding-bottom: 24px;
    }

    .header-top-row {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }

    .scroll-nav {
        padding-bottom: 10px !important;
    }

    .hero-section-title {
        font-size: 1.32rem;
    }

    .home-command,
    .dashboard-desc,
    .simple-ranking-hero {
        padding: 18px;
        border-radius: 12px;
    }

    .home-command__stats {
        grid-template-columns: 1fr;
    }

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

    .qa-btn {
        min-height: 96px;
        padding: 14px;
    }

    .date-nav,
    .ranking-title-nav {
        gap: 6px;
    }

    .date-nav a,
    .ranking-title-nav .rt-nav {
        width: 32px;
        height: 32px;
    }

    .stream-info {
        padding: 12px;
    }

    .stream-title {
        font-size: 0.94rem;
    }

    .simple-ranking-row {
        padding: 15px 16px;
    }
}

/* Contrast AA hardening for recurring dark-theme metadata text. */
.header-search-icon,
.rc-box-label,
.rc-unit-small,
.date-nav .nav-disabled,
.s-card-label,
.ratio-label,
.no-data-msg,
.footer-copy,
.site-footer,
.site-footer-links a,
.history-meta-icon,
.search-meta,
.search-empty,
.simple-ranking-meta,
.simple-ranking-empty,
.music-ranking-empty,
.unit-small,
.ratio-rank-big,
.search-filter-clear {
    color: var(--text-muted);
}

.search-filter-clear {
    opacity: 1;
    border-bottom-color: currentColor;
}
