/* style_modern.css */
/* --- 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;
    --oshi-primary: var(--primary);
    --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;
    --ui-radius-inner: max(2px, calc(var(--ui-radius) - 2px));
    --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: 12px;
    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;
}

@media (max-width: 640px) {





}

.share-x-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

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

.hm-stat-share-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    margin-left: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    color: #e5e7eb;
    cursor: pointer;
    appearance: none;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    z-index: 1;
}

.hm-stat-share-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    color: var(--oshi-primary);
    transform: translateY(-1px);
}

.hm-stat-share-btn i {
    font-size: 0.9375rem;
}

.palette-picker {
    position: relative;
}

.palette-toggle-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    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: none;
}

.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: 12px;
    border: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--bg-card) 86%, #363636);
    backdrop-filter: blur(10px) saturate(120%);
    box-shadow: var(--shadow-card);
    padding: 10px;
}

.palette-popover-title {
    font-size: 0.75rem;
    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: none;
}

.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.75rem;
    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;
}

.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.875rem;
}

.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: 12px;
    font-size: 0.875rem;
    outline: none;
    transition: 0.3s;
}

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

@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;
}

body.hm-member-picker-open {
    overflow: hidden;
}

.hm-member-picker-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 72px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(2, 6, 23, 0.86);
    color: #f8fafc;
    text-align: left;
    box-shadow: none;
}

.hm-member-picker-trigger-main {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.hm-member-picker-trigger-avatar,
.hm-member-picker-current-avatar {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 auto;
    background: rgba(15, 23, 42, 0.52);
    border: 1px solid rgba(148, 163, 184, 0.18);
}

.hm-member-picker-trigger-avatar--fallback,
.hm-member-picker-current-avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e2e8f0;
}

.hm-member-picker-trigger-copy,
.hm-member-picker-current-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.hm-member-picker-trigger-label,
.hm-member-picker-search-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #94a3b8;
}

.hm-member-picker-trigger-name,
.hm-member-picker-current-copy strong {
    display: block;
    min-width: 0;
    font-size: 1rem;
    font-weight: 900;
    color: #f8fafc;
}

.hm-member-picker-current-copy span {
    color: #cbd5e1;
    font-size: 0.875rem;
}

.hm-member-picker-trigger-icon {
    color: #e2e8f0;
    font-size: 1rem;
    flex: 0 0 auto;
}

.hm-member-picker-overlay {
    z-index: 1600;
}

.hm-member-picker-overlay .mm-content {
    width: min(1080px, 100%);
    margin: 0 auto;
}

.hm-member-picker-current {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 18px;
}

.hm-member-picker-search {
    display: grid;
    gap: 8px;
}

.hm-member-picker-empty {
    display: block;
    margin: 4px 0 18px;
    color: #cbd5e1;
}

.hm-member-picker-link {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    text-align: left;
}

.hm-member-picker-link-name {
    font-weight: 800;
    color: inherit;
}

.hm-member-picker-link-meta {
    font-size: 0.75rem;
    color: #94a3b8;
}

.hm-member-picker-overlay .mm-link.active {
    background: rgba(59, 130, 246, 0.2);
    border-color: rgba(96, 165, 250, 0.68);
    color: #f8fbff;
}

/* 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: clip;
}

body {
    overflow-x: clip;
    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);
}

/* 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.8125rem;
    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: #363636;
    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.875rem !important;
    }

    .scroll-nav {
        gap: 6px;
    }

    .scroll-nav .pill {
        min-height: 35px;
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}

/* 4. Section Titles */

.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;
}

/* 5. Hero Cards (Live/Next) */

/* 6. Ranking Cards */

/* 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);
}

.rk-2 .rc-rank {
    color: #e5e5e5;
}

.rk-3 .rc-rank {
    color: #d97706;
}

.rc-thumb {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    object-fit: cover;
    margin-right: 16px;
    box-shadow: none;
}

.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.8125rem;
    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: color-mix(in srgb, var(--accent-color, #93c5fd) 74%, #f8fafc 26%);
    font-weight: 700;
    opacity: 1;
}

.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: #34d399;
    border-color: #34d399;
    background: rgba(52, 211, 153, 0.1);
}

.rc-diff--down {
    color: #f87171;
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.1);
}

.rc-stream-title {
    font-size: 0.8125rem;
    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.75rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.rc-love-label {
    font-size: 0.75rem;
    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.75rem;
    color: #8ea3b7;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.rc-box--accent .rc-box-label {
    color: color-mix(in srgb, var(--accent-color, #94a3b8) 68%, #e2e8f0 32%);
}

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

.rc-unit-small {
    font-size: 0.7em;
    color: #8ea3b7;
    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.25rem;
}

.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: rgba(255, 107, 97, 0.06);
    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-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: color-mix(in srgb, var(--secondary) 10%, var(--bg-card));
    display: grid;
    gap: 14px;
}

.holonavi-cta--home-entry {
    margin-top: 4px;
}

.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.75rem;
    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: color-mix(in srgb, var(--secondary) 80%, #0f172a);
    border-color: transparent;
    color: #ffffff;
}

.holonavi-cta__link.is-primary:hover {
    background: color-mix(in srgb, var(--secondary) 90%, #0f172a);
}

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

.holonavi-cta__link-label {
    display: block;
    min-width: 0;
    font-size: 1rem;
    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);
}

.history-intro-guide {
    display: grid;
    gap: 14px;
}

.history-intro-guide__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.history-intro-guide__card {
    display: grid;
    gap: 8px;
    padding: 18px;
    border-radius: var(--ui-radius);
    background: color-mix(in srgb, var(--bg-card) 88%, var(--secondary) 12%);
    color: var(--text-main);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.history-intro-guide__card:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--bg-card-hover) 82%, var(--secondary) 18%);
}

.history-intro-guide__card.is-primary {
    background: color-mix(in srgb, var(--secondary) 82%, #0f172a);
    color: #fff;
}

.history-intro-guide__kicker {
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.history-intro-guide__title {
    font-size: 1rem;
    line-height: 1.45;
}

.history-intro-guide__text {
    color: var(--text-dim);
    font-size: var(--page-body-size-sm);
    line-height: 1.65;
}

.history-intro-guide__card.is-primary .history-intro-guide__text {
    color: rgba(255, 255, 255, 0.82);
}

.history-intro-guide__action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    font-size: var(--page-body-size-sm);
    font-weight: 700;
}

.spotlight-page {
    display: grid;
    gap: 18px;
}

.spotlight-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 16px;
    margin-top: 16px;
    align-items: stretch;
}

.spotlight-story-card {
    border-radius: var(--ui-radius);
    padding: 18px 20px;
    background: color-mix(in srgb, var(--secondary) 10%, var(--bg-card));
}

.spotlight-story-card p {
    margin: 10px 0 0;
    color: var(--text-main);
    font-size: var(--page-body-size);
    line-height: 1.72;
}

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

.spotlight-focus-card,
.spotlight-highlights-panel,
.spotlight-summary-panel,
.spotlight-next-panel {
    display: grid;
    gap: 16px;
}

.spotlight-focus-top {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.spotlight-focus-avatar {
    width: 104px;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
    box-shadow: none;
}

.spotlight-focus-copy {
    min-width: 0;
}

.spotlight-focus-kicker,
.spotlight-panel-kicker {
    margin: 0 0 6px;
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.spotlight-focus-title {
    margin: 0;
    color: var(--text-main);
    font-size: clamp(1.45rem, 2.6vw, 2.1rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.spotlight-focus-text,
.spotlight-next-copy {
    margin: 10px 0 0;
    color: var(--text-dim);
    font-size: var(--page-body-size);
    line-height: 1.72;
}

.spotlight-focus-links,
.spotlight-panel-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spotlight-pick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.spotlight-pick-grid--wide {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.spotlight-pick-card {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 16px;
    border-radius: var(--ui-radius);
    background: color-mix(in srgb, var(--bg-card) 92%, var(--secondary) 8%);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.spotlight-pick-card:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--bg-card) 84%, var(--secondary) 16%);
}

.spotlight-pick-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: var(--page-body-size-sm);
    font-weight: 700;
}

.spotlight-pick-title {
    color: var(--text-main);
    font-size: var(--page-card-title-size);
    line-height: 1.45;
}

.spotlight-pick-meta {
    color: var(--text-dim);
    font-size: var(--page-body-size-sm);
    line-height: 1.52;
}

.spotlight-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}

.spotlight-lower-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.9fr);
    gap: 18px;
}

.spotlight-summary-grid {
    gap: 14px;
}

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

.spotlight-next-link {
    display: grid;
    gap: 4px;
    padding: 16px;
    border-radius: var(--ui-radius);
    background: color-mix(in srgb, var(--bg-card) 92%, var(--secondary) 8%);
    border: 1px solid var(--border-subtle);
    text-decoration: none;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.spotlight-next-link:hover {
    transform: translateY(-1px);
    background: color-mix(in srgb, var(--bg-card) 86%, var(--secondary) 14%);
}

.spotlight-next-link.is-primary {
    background: color-mix(in srgb, var(--secondary) 80%, #0f172a);
    border-color: transparent;
}

.spotlight-next-link.is-primary .spotlight-next-label,
.spotlight-next-link.is-primary .spotlight-next-sub {
    color: #ffffff;
}

.spotlight-next-label {
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.spotlight-next-sub {
    color: var(--text-dim);
    font-size: var(--page-body-size-sm);
    line-height: 1.52;
}

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

    .spotlight-page .dashboard-desc {
        display: block;
    }

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

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

    .holonavi-cta__copy {
        font-size: 0.875rem;
        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.875rem;
    }

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

    .history-intro-guide__grid {
        grid-template-columns: 1fr;
    }

    .spotlight-metrics-grid,
    .spotlight-pick-grid,
    .spotlight-pick-grid--wide,
    .spotlight-next-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-focus-top {
        grid-template-columns: 1fr;
    }

    .spotlight-focus-avatar {
        width: 88px;
        height: 88px;
    }
}

@media (max-width: 980px) {
    .spotlight-hero-grid,
    .spotlight-lower-grid {
        grid-template-columns: 1fr;
    }

    .spotlight-pick-grid,
    .spotlight-pick-grid--wide,
    .spotlight-next-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .spotlight-pick-grid,
    .spotlight-pick-grid--wide,
    .spotlight-next-grid {
        grid-template-columns: 1fr;
    }
}

.date-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 1.25rem;
    font-weight: bold;
    line-height: 1;
    padding: 8px 12px;
    min-height: 56px;
    border-radius: 12px;
    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;
    max-width: 100%;
}

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

.hm-display-ad > *,
.hm-display-ad [id^="aswift_"],
.hm-display-ad iframe,
.hm-display-ad iframe[id^="aswift_"] {
    max-width: 100% !important;
}

@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.9375rem;
    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: transparent;
}

.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-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.75rem;
    }

    .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-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.75rem;
        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.75rem;
        line-height: 1.05;
    }
}

.stream-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--card-accent, var(--oshi-color));
    box-shadow: none;
}

.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);
}

.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.8125rem;
    font-weight: bold;
    padding: 3px 8px;
    border-radius: 6px;
    box-shadow: none;
}

.badge-next {
    background: #1d4ed8;
}

.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.875rem;
        margin-bottom: 4px;
    }

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

    .badge-total-duration {
        font-size: 0.8125rem;
        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.875rem;
    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.75rem;
    opacity: 0.7;
}

.inline-time {
    margin-left: 8px;
    color: #1d4ed8;
    font-weight: 700;
    background: rgba(29, 78, 216, 0.16);
    border: 1px solid rgba(29, 78, 216, 0.24);
    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.75rem;
    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: #363636;
    text-shadow: none;
}

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

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

.rank-badge.rank-other {
    background: rgba(0, 0, 0, 0.7);
    color: #f3f4f6;
    font-size: 0.8125rem;
}

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

.timeline-hero {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
    padding: 24px;
    border-radius: 12px;
    background: rgba(20, 19, 32, 0.98);
}

.timeline-kicker {
    margin: 0 0 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
}

.timeline-hero-text {
    max-width: 64ch;
    margin: 10px 0 0;
    color: var(--text-dim);
}

.timeline-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.timeline-hero-stat {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.timeline-hero-stat span {
    display: block;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.timeline-hero-stat strong {
    display: block;
    margin-top: 6px;
    color: var(--text-primary);
    font-size: 1.25rem;
    font-family: var(--font-mono);
}

.timeline-hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.timeline-date-nav {
    margin: 0;
    justify-content: flex-start;
    padding: 0;
    min-height: 0;
}

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

.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)
   ============================ */

.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: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
    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: 12px;
    pointer-events: none;
    opacity: 0;
    transition: opacity .18s ease;
    background: transparent;
}

.member-card:hover {
    border-color: var(--card-accent, var(--oshi-color));
    box-shadow: none;
    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: 1rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

/* 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: 1rem;
    text-shadow: none;
}

.member-card__group {
    align-self: flex-start;
    font-size: 0.75rem;
    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.875rem;
    color: var(--text-dim);
    font-weight: 400;
    margin-left: auto;
}

/* Live page */
.page-title.page-title--live {
    font-size: 1.5rem;
    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.875rem;
}

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

.live-ccv-badge.ended {
    background: rgba(0, 0, 0, 0.6);
    font-size: 0.875rem;
    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: 12px;
}

/* 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: 12px;
    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: none;
}

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

.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.8125rem;
    color: var(--text-dim);
    margin-bottom: 12px;
}

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

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

    .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.875rem;
    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.25rem;
    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: none;
    object-fit: cover;
}

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

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

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

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

.ratio-card__meta {
    font-size: 0.75rem;
    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.75rem;
    color: var(--text-dim);
    font-weight: 700;
}

.ratio-card__metric-val {
    font-size: 1.25rem;
    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.75rem;
    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: 1rem;
}

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

.ratio-card__total {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    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.875rem;
    }
}

.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.75rem;
    color: #666;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.ratio-inc-stats {
    font-size: 0.875rem;
    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.75rem;
    color: #aaa;
    margin-bottom: 2px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

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

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

/* Archive List in Rankings */

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

.timeline-hour-count {
    font-size: 0.875rem;
    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: 1rem;
    font-weight: 800;
    color: #f1f5f9;
    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: #f8fafc;
    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.75rem;
    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);
}

.myhome-section {
    margin: 18px 0 20px;
    padding: 18px;
    border-radius: var(--ui-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(10, 16, 24, 0.9) 0%, rgba(17, 25, 34, 0.78) 100%);
    box-shadow: none;
}

.myhome-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.myhome-copy {
    max-width: 720px;
}

.myhome-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: var(--oshi-primary);
    margin-bottom: 8px;
}

.myhome-title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: #f8fafc;
}

.myhome-sub {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.9375rem;
    line-height: 1.65;
}

.myhome-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.myhome-register {
    display: grid;
    gap: 8px;
    margin: 0 0 12px;
    max-width: 560px;
}

.myhome-register-label {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #9fb1c3;
}

.myhome-register-row {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.myhome-register-select {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: var(--ui-radius-inner);
    background: rgba(15, 23, 42, 0.6);
    color: #f8fafc;
}

.myhome-register-btn {
    min-width: 88px;
    min-height: 38px;
    padding: 0 14px;
    border-radius: var(--ui-radius-inner) !important;
}

.myhome-register-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.myhome-count {
    margin-bottom: 12px;
    color: #94a3b8;
    font-size: 0.8125rem;
    font-weight: 700;
}

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

.myhome-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.58);
    border: 1px solid color-mix(in oklab, var(--oshi-color) 46%, rgba(255, 255, 255, 0.1));
    box-shadow: none;
}

.myhome-card-main {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.myhome-card-main:hover .myhome-card-name {
    color: color-mix(in srgb, var(--oshi-color) 68%, #ffffff);
}

.myhome-card img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid color-mix(in oklab, var(--oshi-color) 72%, rgba(255, 255, 255, 0.18));
    flex-shrink: 0;
}

.myhome-card-copy {
    min-width: 0;
}

.myhome-card-name {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
}

.myhome-card-meta {
    margin-top: 4px;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.5;
}

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

.myhome-card-link,
.myhome-card-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 700;
}

.myhome-card-link {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e5eef8;
}

.myhome-card-remove {
    appearance: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #cbd5e1;
}

.myhome-card-link:hover,
.myhome-card-remove:hover {
    border-color: color-mix(in srgb, var(--oshi-color) 52%, rgba(255, 255, 255, 0.22));
    color: #ffffff;
}

.myhome-empty {
    padding: 16px;
    border-radius: var(--ui-radius-inner);
    border: 1px dashed rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.myhome-empty-copy {
    margin: 0 0 12px;
    color: #cbd5e1;
    line-height: 1.65;
}

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

@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));
    }

    .myhome-section {
        padding: 16px;
    }

    .myhome-head {
        flex-direction: column;
    }

    .myhome-actions {
        justify-content: flex-start;
    }

    .myhome-register-row {
        flex-direction: column;
    }

    .myhome-grid {
        grid-template-columns: 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: 12px;
    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.9375rem;
    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: 1rem;
    }

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

    .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;
}

.site-footer {
    margin-top: auto;
    padding: 30px 20px;
    text-align: center;
    color: #555;
    font-size: 0.8125rem;
    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-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 10px;
    }

    .timeline-hero {
        padding: 18px;
        gap: 14px;
        border-radius: 12px;
    }

    .timeline-hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-hero-controls {
        align-items: stretch;
    }

    .timeline-date-nav {
        justify-content: center;
        width: 100%;
    }

    .timeline-hero-actions {
        width: 100%;
    }

    .timeline-hero-actions .pill {
        flex: 1 1 calc(50% - 10px);
        justify-content: center;
    }

    .timeline-card {
        padding: 0;
    }

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

    .timeline-card .stream-title {
        font-size: 1rem;
        line-height: 1.32;
    }

    .timeline-card .stream-stats {
        gap: 8px 12px;
    }

    .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: 12px;
    background: rgba(255, 255, 255, 0.03);
    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;
}

.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: 2rem;
    margin: 0 0 6px;
    font-family: var(--font-heading);
}

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

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

.history-fv-records {
    display: grid;
    grid-template-columns: repeat(4, minmax(92px, 1fr));
    gap: 8px;
    margin-top: 14px;
    max-width: 680px;
}

.history-fv-record {
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
}

.history-fv-record span {
    display: block;
    margin-bottom: 5px;
    color: #94a3b8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.history-fv-record strong {
    display: block;
    color: var(--text-main);
    font-size: clamp(1rem, 1.7vw, 1.35rem);
    font-weight: 900;
    line-height: 1.05;
    white-space: nowrap;
}

.history-fv-record small {
    margin-left: 2px;
    color: #94a3b8;
    font-size: 0.68em;
    font-weight: 800;
}

.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-favorite-btn {
    background: color-mix(in srgb, var(--primary) 18%, rgba(255, 255, 255, 0.06));
    border: 1px solid color-mix(in srgb, var(--primary) 42%, rgba(255, 255, 255, 0.16));
    color: #eff6ff;
}

.history-favorite-btn.is-active {
    background: color-mix(in srgb, var(--primary) 28%, rgba(255, 255, 255, 0.1));
    border-color: color-mix(in srgb, var(--primary) 72%, rgba(255, 255, 255, 0.2));
    color: #ffffff;
}

.history-home-hint {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #b9c8d8;
    font-size: 0.8125rem;
}

.history-meta {
    display: flex;
    gap: 18px;
    margin-top: 12px;
    color: #b8b8b8;
    font-size: 0.875rem;
    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: 12px;
    padding: 16px;
    box-shadow: none;
}

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

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

.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;
}

.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.875rem;
    z-index: 1;
}

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

.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.8125rem;
}

.history-timeline-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-left: 0;
    margin-top: 0;
    margin-bottom: 15px;
    color: #6366f1;
}

.history-timeline-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: currentColor;
    flex: 0 0 auto;
}

.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: none;
}

.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.8125rem;
    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: none;
}

.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 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-timeline-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* 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.875rem;
    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: none;
}

@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-timeline-actions {
        width: 100%;
        justify-content: space-between;
    }
}

.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.8125rem;
    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.75rem;
    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.875rem;
    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.875rem;
    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.25rem;
    font-weight: 800;
    color: #fff;
}

.history-timeline-ratio-diff {
    font-size: 0.8125rem;
    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: #94a3b8;
}

.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.875rem;
}

.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.875rem;
    cursor: pointer;
    background: #111111;
    border: 1px solid #333;
    color: #eee;
    border-radius: 12px;
    box-shadow: none;
}

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

.history-activity-section {
    display: grid;
    gap: 14px;
    margin-bottom: 16px;
}

.history-activity-copy {
    color: var(--text-subtle);
    font-size: 0.9375rem;
    line-height: 1.7;
}

.history-activity-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.history-activity-card {
    display: grid;
    gap: 10px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.38);
    padding: 16px;
}

.history-activity-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.history-activity-type {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(96, 165, 250, 0.14);
    border: 1px solid rgba(96, 165, 250, 0.26);
    color: #93c5fd;
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
}

.history-activity-date-label {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 800;
}

.history-activity-title {
    color: #f8fafc;
    font-weight: 800;
    line-height: 1.55;
    text-decoration: none;
}

.history-activity-title:hover {
    color: #bfdbfe;
}

.history-activity-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #cbd5e1;
    font-size: 0.8125rem;
    align-items: center;
}

.history-activity-date,
.history-activity-source {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.history-activity-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.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: 0.8125rem;
    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: 0.75rem;
    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.9375rem;
    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.875rem;
}

.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.875rem;
    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.875rem;
    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.75rem;
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: 0;
}

.history-header-stats .s-card-val {
    font-family: var(--font-body);
    font-size: 1.5rem;
    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.8125rem;
    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.25rem;
    }
}

.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.875rem;
}

.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.875rem;
    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-header-top {
        width: 100%;
        flex-direction: column;
    }

    .history-fv-records {
        width: 100%;
        max-width: none;
    }

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


}

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

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

    .history-fv-records {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
    }

    .history-fv-record {
        padding: 9px 10px;
    }

    .history-fv-record span {
        font-size: 0.68rem;
    }

    .history-fv-record strong {
        font-size: 1.02rem;
    }

    .history-socials {
        gap: 8px;
    }

    .history-social-btn {
        font-size: 0.75rem;
        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.75rem;
        letter-spacing: 0.6px;
    }

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

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

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

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

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

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

.search-title {
    font-size: 1.75rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 10px;
}

.search-title::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--primary);
    flex: 0 0 auto;
}

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

.search-meta {
    color: #888;
}

.search-panel {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 12px;
    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.55);
    font-size: 0.875rem;
}

.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: none;
}

.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: #363636;
    box-shadow: none;
}

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

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

.search-tag {
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.8125rem;
    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-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.9375rem;
}

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

@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: minmax(128px, 142px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

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

.side-mini-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: var(--ui-radius-inner);
    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.125rem;
}

.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.875rem;
    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.75rem;
    }
}

.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: none;
}

.stats-hub-hero-card-label {
    font-size: 0.75rem;
    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: 1rem;
    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.75rem;
    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.8125rem;
}

.stats-guide-callout {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(15, 23, 42, 0.75);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stats-guide-callout-copy {
    min-width: 0;
}

.stats-guide-callout-eyebrow {
    margin-bottom: 6px;
    color: var(--oshi-primary);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

.stats-guide-callout-title {
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
}

.stats-guide-callout-text {
    margin: 6px 0 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}

.stats-guide-callout-actions {
    display: flex;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .stats-guide-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

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

.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.875rem;
}

.stats-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    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;
    min-width: 24px;
    height: 24px;
    padding: 0 4px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-style: normal;
    white-space: nowrap;
    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;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

.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);
}

.timeline-status-note {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    color: #e5e7eb;
}

.timeline-status-note.is-live {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(74, 222, 128, 0.2);
}

.timeline-status-note.is-stale {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(96, 165, 250, 0.22);
}

.timeline-status-note.is-error {
    background: rgba(251, 191, 36, 0.10);
    border-color: rgba(251, 191, 36, 0.24);
}

.timeline-status-note-main {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.timeline-status-note-main strong {
    color: #f8fafc;
}

.timeline-status-note-main span {
    color: rgba(226, 232, 240, 0.88);
}

.timeline-error-card {
    margin-bottom: 16px;
}

html[data-theme="light_apple"] .timeline-hero,
html[data-theme="light"] .timeline-hero,
html[data-theme="light_apple"] .timeline-hero-stat,
html[data-theme="light"] .timeline-hero-stat {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(60, 86, 130, 0.12);
    box-shadow: none;
}

html[data-theme="light_apple"] .timeline-page-title,
html[data-theme="light"] .timeline-page-title,
html[data-theme="light_apple"] .timeline-hero-stat strong,
html[data-theme="light"] .timeline-hero-stat strong {
    color: #172033;
}

html[data-theme="light_apple"] .timeline-hero-text,
html[data-theme="light_apple"] .timeline-kicker,
html[data-theme="light_apple"] .timeline-hero-stat span,
html[data-theme="light"] .timeline-hero-text,
html[data-theme="light"] .timeline-kicker,
html[data-theme="light"] .timeline-hero-stat span {
    color: #5d6982;
}

/* 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.8125rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.simple-ranking-hero {
    text-align: left;
    background: color-mix(in srgb, var(--surface-1) 90%, var(--secondary) 10%);
    border: 1px solid color-mix(in srgb, var(--secondary) 24%, var(--border-subtle));
    margin-bottom: 40px;
    padding-left: 0;
}

.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.9375rem;
}

.simple-ranking-card {
    border-radius: 12px;
    padding: 10px;
    box-shadow: none;
    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;
    gap: 12px;
    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.125rem;
}

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

.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: 12px;
    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: 12px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: none;
    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: 12px;
}

.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.875rem;
    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: none;
    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: 12px;
        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: none;
    }

    .stream-graph-page .main-thumb-wrapper.sg-player-pin {
        position: relative;
        top: auto;
        z-index: auto;
    }

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

    .stream-graph-page .main-thumb-wrapper.sg-player-pin .main-embed {
        border-radius: 12px;
        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: #363636;
}

.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: 12px;
    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: none;
}

.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: 0.75rem;
    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;
}

/* 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: none;
}

.stream-graph-page .s-card-label {
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.stream-graph-page .s-card-sub.js-metric-diff {
    font-size: 0.75rem;
    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.25rem;
    font-weight: bold;
    font-family: var(--font-mono);
    color: #fff;
}

.s-card-val-ccv {
    color: #ef4444;
}

.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-page .sg-graph-details {
    max-width: 100%;
    margin-bottom: 30px;
}

.stream-graph-page .sg-graph-details>summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    margin: 0 auto 10px;
    padding: 12px 16px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.72);
    color: #e2e8f0;
    cursor: pointer;
    font-weight: 900;
    list-style: none;
}

.stream-graph-page .sg-graph-details>summary::-webkit-details-marker {
    display: none;
}

.stream-graph-page .sg-graph-details>summary::after {
    content: "閉じる";
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
}

.stream-graph-page .sg-graph-details:not([open])>summary::after {
    content: "開く";
}

.stream-graph-page .sg-graph-details .graph-container {
    margin-bottom: 0;
}

@media (min-width: 900px) {
    .stream-graph-page .sg-graph-details>summary {
        max-width: min(80vw, 1280px);
    }
}

/* 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.875rem;
    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.875rem;
    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.875rem;
}

.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.8125rem;
}

.graph-canvas {
    position: relative;
    height: 400px;
    width: 100%;
}

.sg-compare-active {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 14px;
}

.sg-compare-chip,
.sg-compare-clear {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 32px;
    padding: 7px 10px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.sg-compare-chip:hover,
.sg-compare-clear:hover {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.1);
}

.sg-compare-chip--base {
    color: #fff;
}

.sg-compare-dot,
.sg-compare-legend-dot {
    background: var(--compare-color, var(--oshi-color));
}

.sg-compare-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--compare-color, var(--oshi-color)) 20%, transparent);
}

.sg-compare-clear {
    color: #cbd5e1;
}

.related-section {
    margin-top: 40px;
}

.sec-title {
    font-size: 1.125rem;
    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;
}

.sg-compare-row .sg-compare-card {
    overflow: hidden;
}

.sg-compare-card-main {
    display: block;
    color: inherit;
    text-decoration: none;
}

.sg-compare-card-main:hover .stream-title {
    color: #fff;
}

.sg-compare-card .stream-stats {
    flex-wrap: wrap;
}

.sg-compare-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 0 12px 12px;
}

.sg-compare-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    padding: 8px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: #e5e7eb;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.sg-compare-actions a:first-child {
    background: rgba(45, 126, 255, 0.92);
    border-color: rgba(96, 165, 250, 0.55);
    color: #fff;
}

.sg-compare-actions a:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.24);
}

@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;
    }

    .stream-graph-page .related-section .related-row {
        display: grid;
        grid-template-columns: 1fr;
        overflow: visible;
        padding: 6px 0 4px;
    }

    .stream-graph-page .related-section .related-row .stream-card {
        min-width: 0;
        max-width: none;
    }

    .sg-compare-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {







}

.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: none;
}

.yt-link-btn.yt-link-btn-music {
    background: #1d4ed8;
}

.yt-link-btn.yt-link-btn-music:hover {
    background: #1e40af;
    box-shadow: none;
}

.sg-debug {
    background: #111;
    border: 1px solid #333;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.8125rem;
    color: #cbd5e1;
}

.sg-debug-title {
    font-weight: 700;
    margin-bottom: 6px;
}

.sg-debug-line {
    margin-top: 6px;
}

.sg-title {
    font-size: 1.25rem;
    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.875rem;
    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.875rem;
    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.8125rem;
}

@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.125rem;
    color: var(--primary);
    border-bottom: 1px solid #333;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.mm-section-copy {
    margin: -2px 0 12px;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.6;
}

.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.875rem;
    text-align: center;
    transition: 0.2s;
}

.mm-link.active {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.68);
    color: #f8fbff;
}

.mm-link.is-strong {
    background: rgba(20, 30, 44, 0.96);
    border-color: rgba(148, 163, 184, 0.28);
    color: #ffffff;
    font-weight: 800;
}

.mm-link:hover,
.mm-link:focus-visible {
    background: #333;
    color: #fff;
    border-color: var(--secondary);
}

.mm-note-card {
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #dbe7f3;
}

.mm-note-card strong {
    display: inline-block;
    color: #ffffff;
    font-size: 0.875rem;
    margin-bottom: 6px;
}

.mm-note-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8125rem;
    line-height: 1.6;
}

/* Mobile Bottom Nav */
.has-mobile-nav {
    padding-bottom: 86px;
}

.mobile-bottom-nav {
    display: none;
}

/* ----------------------------- */
/* Shorts Corner                  */
/* ----------------------------- */

@media (min-width: 900px) {

}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 10px;
        -webkit-transform: none;
        transform: none;
        width: auto;
        max-width: none;
        background: rgba(12, 12, 12, 0.92);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 12px;
        padding: 8px 6px;
        gap: 4px;
        z-index: 1200;
        box-shadow: none;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
    }

    .mb-nav-item {
        flex: 1;
        min-width: 0;
        text-decoration: none;
        color: #d1d5db;
        font-size: 0.75rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 4px;
        justify-content: center;
        min-height: 54px;
        padding: 7px 4px 6px;
        border-radius: 12px;
        transition: 0.2s ease;
        text-align: center;
    }

    .mb-nav-item i {
        font-size: 1rem;
        color: #f8fafc;
    }

    .mb-nav-item span {
        line-height: 1.15;
        font-weight: 700;
    }

    .mb-nav-item.active {
        background: rgba(255, 255, 255, 0.08);
        color: #ffffff;
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    }

    .mb-nav-item.active i {
        color: var(--oshi-primary);
    }

    .mb-nav-item.active span {
        color: #ffffff;
    }

    .mb-nav-item:hover {
        background: rgba(255, 255, 255, 0.06);
    }



    .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.75rem;
        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: none;
    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: 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.75rem;
    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.75rem;
    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.875rem;
}

.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;
}

/* 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;
}

@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: 0.8125rem;
}

.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;
}

.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.875rem;
}

.history-related-link-wrap {
    margin-bottom: 8px;
}

.history-related-link {
    color: #93c5fd;
    font-size: 0.75rem;
    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.75rem;
    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));
}

button.history-ranking-link {
    appearance: none;
    cursor: pointer;
    font: inherit;
}

.history-clips-section {
    border: 1px solid rgba(96, 165, 250, 0.16);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.88) 0%, rgba(10, 18, 32, 0.72) 100%);
    padding: 16px;
}

.history-clips-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.history-clips-copy {
    min-width: 0;
}

.history-clips-sub {
    margin: 6px 0 0;
    color: #9fb3c8;
    font-size: 0.875rem;
    line-height: 1.6;
}

.history-clips-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-width: min(340px, 100%);
}

.history-clips-stat {
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.16);
    background: rgba(15, 23, 42, 0.56);
    padding: 10px 12px;
}

.history-clips-stat-label {
    display: block;
    color: #9fb3c8;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.history-clips-stat-value {
    display: block;
    margin-top: 4px;
    color: #f8fafc;
    font-size: 1rem;
    font-weight: 800;
}

.history-clips-tabs {
    margin: 0 0 8px;
}

.history-clips-tab small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.history-clips-footnote,
.history-clips-feedback {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #8fa5bd;
    font-size: 0.75rem;
}

.history-clips-footnote {
    margin-bottom: 10px;
}

.history-clips-feedback {
    min-height: 20px;
    margin-bottom: 10px;
}

.history-clips-feedback.is-error {
    color: #fda4af;
}

.history-clips-panel[hidden] {
    display: none !important;
}

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

.history-clip-card {
    display: grid;
    grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
    gap: 12px;
    border-radius: 12px;
    border: 1px solid rgba(96, 165, 250, 0.14);
    background: rgba(15, 23, 42, 0.52);
    overflow: hidden;
}

.history-clip-thumb {
    position: relative;
    display: block;
    min-height: 120px;
    background: rgba(2, 6, 23, 0.75);
}

.history-clip-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.history-clip-rank,
.history-clip-views {
    position: absolute;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 800;
    color: #f8fafc;
}

.history-clip-rank {
    top: 10px;
    left: 10px;
    background: color-mix(in srgb, var(--oshi-color, #2d7eff) 58%, rgba(2, 6, 23, 0.88));
}

.history-clip-views {
    right: 10px;
    bottom: 10px;
    background: rgba(2, 6, 23, 0.78);
}

.history-clip-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 12px 12px 12px 0;
}

.history-clip-meta,
.history-clip-subline,
.history-clip-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.history-clip-kicker,
.history-clip-lang {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 800;
}

.history-clip-kicker {
    color: #dbeafe;
    background: rgba(37, 99, 235, 0.18);
}

.history-clip-lang {
    color: #bfdbfe;
    background: rgba(59, 130, 246, 0.12);
}

.history-clip-title {
    color: #f8fafc;
    font-weight: 800;
    line-height: 1.45;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.history-clip-title:hover {
    color: #dbeafe;
}

.history-clip-subline {
    color: #9fb3c8;
    font-size: 0.75rem;
}

.history-clip-clipper {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.history-clip-clipper img {
    width: 20px;
    height: 20px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid rgba(191, 219, 254, 0.35);
}

.history-clip-action {
    justify-content: center;
}

.history-clips-empty {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 12px;
    border: 1px dashed rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.38);
    padding: 16px;
    color: #9fb3c8;
}

.history-clips-empty.is-pending {
    justify-content: center;
}

.history-next-guide {
    margin-top: 14px;
}

.history-strengths {
    margin-top: 14px;
}

.history-strengths-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.history-strengths-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.history-strengths-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.history-strength-card {
    border: 1px solid color-mix(in oklab, var(--oshi-color, #334155) 22%, var(--border-color));
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.34));
    padding: 14px;
}

.history-strength-kicker {
    display: inline-flex;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: color-mix(in oklab, var(--oshi-color, #93c5fd) 75%, #e2e8f0);
}

.history-strength-title {
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
    color: #f8fafc;
}

.history-strength-copy {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.875rem;
    line-height: 1.6;
}

.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.9375rem;
    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.8125rem;
    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.8125rem;
    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;
}

.history-timeline-jump {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

html[data-theme="light"] .history-strength-card,
html[data-theme="light_apple"] .history-strength-card {
    background: rgba(248, 250, 253, 0.98);
}

html[data-theme="light"] .history-strength-title,
html[data-theme="light_apple"] .history-strength-title {
    color: #172033;
}

html[data-theme="light"] .history-strength-copy,
html[data-theme="light_apple"] .history-strength-copy {
    color: #556179;
}

html[data-theme="light"] .history-activity-card,
html[data-theme="light_apple"] .history-activity-card {
    background: rgba(248, 250, 253, 0.98);
    border-color: rgba(190, 201, 220, 0.9);
}

html[data-theme="light"] .history-activity-copy,
html[data-theme="light_apple"] .history-activity-copy,
html[data-theme="light"] .history-activity-date-label,
html[data-theme="light_apple"] .history-activity-date-label,
html[data-theme="light"] .history-activity-meta,
html[data-theme="light_apple"] .history-activity-meta {
    color: #556179;
}

html[data-theme="light"] .history-activity-title,
html[data-theme="light_apple"] .history-activity-title {
    color: #172033;
}

html[data-theme="light"] .history-activity-title:hover,
html[data-theme="light_apple"] .history-activity-title:hover {
    color: #2563eb;
}

html[data-theme="light"] .history-activity-type,
html[data-theme="light_apple"] .history-activity-type {
    color: #1d4ed8;
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.18);
}

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

    .history-next-stream-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 780px) {
    .history-strengths-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .history-strengths-grid {
        grid-template-columns: 1fr;
    }

    .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;
    }

    .history-clips-head {
        flex-direction: column;
    }

    .history-clips-summary,
    .history-clips-grid {
        grid-template-columns: 1fr;
    }

    .history-clip-card {
        grid-template-columns: 1fr;
    }

    .history-clip-body {
        padding: 0 12px 12px;
    }
}

@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: #363636;
    border-bottom: 1px solid #222;
    padding: 8px 15px;
    font-size: 0.8125rem;
    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.75rem;
    border-radius: 3px;
    flex-shrink: 0;
    z-index: 2;
    box-shadow: none;
}

.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.125rem;
    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.875rem;
    text-align: center;
    color: #ccc;
    display: block;
}

.mm-link:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: #333;
}

/* === Daily Summary Card === */

@media (max-width: 768px) {





}

/* --- 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: #363636;
    font-size: 0.875rem;
    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.875rem;
    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.9375rem;
}

.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.8125rem;
    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.75rem;
}

@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-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: 12px;
    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.125rem;
    flex-shrink: 0;
    color: #888;
    background: #252525;
    font-family: var(--font-heading);
}

.shorts-rank-badge.rank-1 { background: #FDB931; color: #363636; }
.shorts-rank-badge.rank-2 { background: #BDBDBD; color: #363636; }
.shorts-rank-badge.rank-3 { background: #A0522D; color: #fff; }

.shorts-thumb-wrap {
    width: 72px;
    height: 128px; /* 9:16 aspect ratio */
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    background: #363636;
    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.8125rem;
    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.9375rem;
    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.875rem;
        line-height: 1.35;
        -webkit-line-clamp: 3;
        margin-bottom: 8px;
    }
    .shorts-meta {
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 6px;
        font-size: 0.75rem;
    }
    .shorts-stats-row {
        gap: 12px;
        flex-wrap: wrap;
    }
    .shorts-stat {
        font-size: 0.875rem;
    }
    .shorts-rank-badge {
        width: 28px;
        height: 28px;
        font-size: 0.875rem;
    }
}

/* 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.9375rem;
    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;
}

/* members.php の誕生日/周年カードは情報量が多いため 1 カラムで表示する */
.members-upcoming-events-section .upcoming-event-list {
    grid-template-columns: 1fr;
}

.members-upcoming-events-section .upcoming-event-item {
    width: 100%;
}

.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 color-mix(in srgb, var(--oshi-color, #64748b) 38%, rgba(100, 116, 139, 0.25));
    border-radius: 10px;
    padding: 8px 10px;
    background: color-mix(in srgb, rgba(15, 23, 42, 0.92) 92%, var(--oshi-color, #64748b) 8%);
    width: calc(25% - 6px);
    min-width: 0;
}

.upcoming-event-item--hero {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    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.875rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f8fafc;
}

.upcoming-event-date {
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.1;
}

.upcoming-event-countdown {
    font-size: 0.9375rem;
    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));
    }
    .members-upcoming-events-section .upcoming-event-list {
        grid-template-columns: 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.75rem;
    }
}

.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.8125rem;
    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;
}

.hm-display-ad-ins {
    display: block;
}

.member-music-page {
    padding-bottom: 28px;
    overflow-x: hidden;
}

.member-music-page .history-layout,
.member-music-page .history-main-content,
.member-music-page .history-section,
.member-music-page .member-music-section {
    min-width: 0;
}

.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: #a9bfd1;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.member-music-filter-summary {
    color: #cbd5e1;
    font-size: 0.8125rem;
    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: #d9e4ee;
    font-size: 0.8125rem;
    font-weight: 700;
}

.info-static-page {
    max-width: 980px;
    margin: 0 auto;
}

.info-page-intro {
    color: #c4d3df;
    margin: 8px 0 16px;
}

.info-page-meta {
    color: #9eb2c4;
    margin: 0 0 16px;
    font-size: 0.875rem;
}

.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;
}

.error-state-page .main-container {
    min-height: calc(100vh - 220px);
}

.error-state {
    max-width: 920px;
    margin: 0 auto;
}

.error-state-card {
    padding: 28px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(circle at top right, rgba(96, 165, 250, 0.15), transparent 34%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(8, 13, 22, 0.96));
    box-shadow: none;
}

.error-state-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.14);
    color: #cfe3ff;
    font-size: 0.8125rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.error-state-title {
    margin: 18px 0 12px;
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    color: #ffffff;
}

.error-state-copy {
    margin: 0;
    max-width: 720px;
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.8;
}

.error-state-copy + .error-state-copy {
    margin-top: 10px;
}

.error-state-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.error-state-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.error-state-link:hover,
.error-state-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(96, 165, 250, 0.48);
    background: rgba(59, 130, 246, 0.12);
}

.error-state-link.is-primary {
    background: linear-gradient(135deg, #1f6feb, #2563eb);
    border-color: transparent;
}

.error-state-meta {
    margin-top: 18px;
    color: #94a3b8;
    font-size: 0.875rem;
    line-height: 1.7;
}

.member-music-card {
    text-decoration: none;
}

.member-music-card .stream-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

@media (max-width: 640px) {
    .member-music-page {
        padding-bottom: 120px;
    }

    .member-music-page .history-header {
        padding: 18px;
    }

    .member-music-page .history-socials {
        width: 100%;
        justify-content: flex-start;
    }

    .member-music-page .history-social-btn {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        min-width: 0;
    }

    .member-music-page .stat-cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .member-music-page .s-card {
        min-width: 0;
    }

    .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;
    }

    .member-music-card.stream-card.card-16x9-row {
        flex-direction: column;
    }

    .member-music-card.stream-card.card-16x9-row .stream-thumb {
        width: 100%;
        flex: 0 0 auto;
    }

    .member-music-card .stream-info {
        width: 100%;
        min-width: 0;
    }

    .member-music-page .member-music-section {
        padding-left: 14px;
        padding-right: 14px;
    }

    .member-music-page .music-ranking-list {
        gap: 12px;
    }
}

/* 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;
    overflow-x: hidden;
}

.oshi-maker-hero,
.oshi-ranking-hero,
.oshi-share-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: rgba(10, 15, 30, 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.75rem;
    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 .history-social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 12px 18px;
    border-radius: 12px;
    font-size: 0.9375rem;
    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: none;
}

.oshi-maker-submit-btn:hover {
    border-color: rgba(251, 113, 133, 0.82);
    box-shadow: none;
    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-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-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-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.8125rem;
    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.9375rem;
}

.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-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.8125rem;
    font-weight: 800;
}

.oshi-song-type-tab-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 700;
    line-height: 1.2;
}

.oshi-song-section {
    display: grid;
    gap: 10px;
}

.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.9375rem;
    font-weight: 900;
    letter-spacing: 0.02em;
}

.oshi-song-section-count {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 800;
}

.oshi-song-section-list {
    display: grid;
    gap: 8px;
}

@media (min-width: 981px) {




    .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-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.8125rem;
}

.oshi-song-type {
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.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: 12px;
    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: none;
}

.oshi-share-cta-main:hover {
    transform: translateY(-1px);
    border-color: #333333;
    background: #1a1a1a;
    box-shadow: none;
}

.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: none;
}

.oshi-share-cta-main i,
.oshi-share-cta-sub i {
    font-size: 1.25rem;
    width: 1.4em;
    text-align: center;
}

.oshi-share-cta-copy {
    display: grid;
    gap: 2px;
}

.oshi-share-cta-copy strong {
    color: inherit;
    font-size: 1.125rem;
    font-weight: 900;
    line-height: 1.24;
}

.oshi-share-cta-copy small {
    color: rgba(226, 232, 240, 0.9);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
}

.oshi-share-preview-card {
    position: relative;
    min-height: 460px;
    border-radius: 12px;
    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: none;
}

.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: none;
}

.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.8125rem;
}

.oshi-share-preview-message {
    margin-top: 18px;
    max-width: 680px;
    color: #203745;
    font-size: 1rem;
    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: 12px;
    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.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 800;
}

.oshi-share-preview-tags {
    margin-top: 22px;
    color: #516a77;
    font-size: 0.875rem;
    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) {







}

@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.8125rem;
    }

    .oshi-song-type-tab-meta {
        font-size: 0.75rem;
    }

    .oshi-share-preview-card {
        min-height: 0;
        padding: 18px;
    }

    .oshi-share-preview-avatar {
        width: 58px;
        height: 58px;
    }

    .oshi-share-preview-message {
        font-size: 0.9375rem;
    }

    .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,
    .holonavi-cta,
    .myhome-section,
    .myhome-empty,
    .home-command,
    .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;
}

:where(
    .panel,
    .section-card,
    .timeline-section,
    .history-section,
    .history-header,
    .history-next-panel,
    .search-panel,
    .ratio-card,
    .ranking-card-detailed,
    .stats-hub-hero,
    .member-music-section,
    .music-ranking-list-panel,
    .dashboard-desc,
    .holonavi-cta,
    .myhome-section,
    .myhome-empty,
    .home-command,
    .members-section
) :where(
    .pill,
    .history-social-btn,
    .mm-link,
    .theme-toggle-btn,
    .palette-toggle-btn,
    .share-x-btn,
    .hamburger-btn,
    .search-mobile-btn,
    .header-search-input,
    .mm-search-input,
    .search-input,
    .members-chips .chip,
    .member-card,
    .member-card__group,
    .upcoming-event-item,
    .history-next-member-chip,
    .myhome-card,
    .myhome-card-link,
    .myhome-card-remove,
    .myhome-register-select,
    .myhome-register-btn,
    .qa-btn,
    .site-footer-links a,
    .oshi-input,
    .oshi-textarea,
    .oshi-song-type-tab,
    .oshi-song-option-body,
    .oshi-upload-box,
    .oshi-current-image-preview,
    .oshi-remove-image-chip,
    .palette-chip,
    .palette-chip-member,
    [class*="-btn"],
    [class*="-chip"]
) {
    border-radius: var(--ui-radius-inner) !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: rgba(10, 15, 32, 0.98) !important;
	border: none;
}

.members-discovery-kicker {
	margin: 0 0 8px;
	font-size: 0.75rem;
	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: 12px;
	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;
    --ui-radius: 6px;
    --ui-radius-inner: max(2px, calc(var(--ui-radius) - 2px));
    --card-radius-md: var(--ui-radius);
    --card-radius-lg: var(--ui-radius);
    --card-pad-md: 20px;
    --card-pad-sm: 14px;
    --shadow-card: none;
    --shadow-glow: none;
    --surface-1: color-mix(in srgb, var(--bg-card) 94%, #363636 6%);
    --surface-2: color-mix(in srgb, var(--bg-card-hover) 94%, #363636 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.125rem;
}

.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);
}

.pill,
.home-command__link {
    min-height: 34px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    font-size: 0.875rem;
    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;
}

.section-title,
.timeline-title,
.ranking-section-title {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    line-height: 1.15;
    font-weight: 600;
}

body.timeline-page .timeline-section {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

body.timeline-page .timeline-hour-group {
    background: transparent;
    border-color: transparent;
    padding: 6px 2px 8px;
    border-radius: 0;
}

.page-title {
    font-size: var(--page-heading-size);
    line-height: 1.12;
}

.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__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-label,
.stats-hub-hero-card-label,
.s-card-label {
    font-size: 0.75rem;
    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.8125rem;
    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.875rem;
    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: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.9375rem;
    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.8125rem;
    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.8125rem;
    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.5rem;
}

.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.75rem;
    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: 1rem;
    line-height: 1.2;
}

.simple-ranking-val {
    font-size: 1.125rem;
}

.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));
    }




}

@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;
    }



    .home-command,
    .dashboard-desc,
    .simple-ranking-hero {
        padding: 18px;
        border-radius: 12px;
    }



    .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.9375rem;
    }

    .simple-ranking-row {
        padding: 15px 16px;
    }
}

/* Header: fixed/sticky を解除して 2重スクロールの原因を減らす */
.header-container {
    position: static !important;
    top: auto !important;
}

/* 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);
}

.rc-box-label,
.rc-unit-small {
    color: #8ea3b7;
}

.rc-box--accent .rc-box-label {
    color: color-mix(in srgb, var(--accent-color, #94a3b8) 68%, #e2e8f0 32%);
}

.stats-row-val .unit-small {
    color: currentColor;
    opacity: 0.78;
}

/* =========================================================================
   Aurora v1  (2026-04-22 introduction)
   --------------------------------------------------------------------------
   ブランド刷新「ホロライブの今日を、読む・残す・渡す。」
   - 既定パレットを Aurora（紫寄りダーク + オーロラ3色）に変更。
   - data-palette="coral|ocean|mint" は従来通り有効（各ブロックで上書き）。
   - 新トークン (--aurora-1/2/3, --aurora-grad, --oshi など) を追加。
   - ロールバックはこのブロックをコメントアウトするだけで旧値に戻る。
   ========================================================================= */
:root {
    /* --- 既存トークンを Aurora 値に上書き --- */
    --bg-dark: #0B0A12;           /* やや紫寄りの深い夜 */
    --bg-card: #141320;           /* カード基盤 */
    --bg-card-hover: #1B1930;     /* ホバー / elevated */

    --primary: #FF74B6;           /* Aurora-1 ピンク（コーラル赤から更新） */
    --oshi-primary: var(--primary);
    --primary-soft: rgba(255, 116, 182, 0.18);
    --secondary: #B06CFF;         /* Aurora-2 パープル */
    --tertiary: #5FC9FF;          /* Aurora-3 シアン */
    --gold: #F8D072;              /* 柔らかいゴールド */

    --text-main: #F4F3FB;
    --text-dim: #B6B4C8;
    --text-muted: #7A7890;

    /* --- 新トークン: Aurora パレット --- */
    --aurora-1: #FF74B6;
    --aurora-2: #B06CFF;
    --aurora-3: #5FC9FF;
    --aurora-grad: linear-gradient(135deg, #FF74B6 0%, #B06CFF 50%, #5FC9FF 100%);
    --aurora-soft: color-mix(in srgb, #B06CFF 18%, transparent);

    /* --- 推しカラー既定値（未選択時はアンバー） --- */
    --oshi: var(--oshi-color, #FF74B6);
    --oshi-soft: color-mix(in srgb, var(--oshi, #FF74B6) 22%, transparent);

    /* --- Magazine feel: 角丸は 6px → 10/16/22 に刷新 --- */
    --ui-radius: 10px;
    --r-sm: 10px;
    --r-md: 16px;
    --r-lg: 22px;
    --card-radius-md: var(--r-md);
    --card-radius-lg: var(--r-lg);

    /* --- カードの呼吸域を広げる --- */
    --card-pad-md: 24px;
    --card-pad-sm: 18px;
    --page-panel-pad-lg: 32px;
    --page-panel-pad-md: 24px;

    /* --- 影と内部ハイライト --- */
    --shadow-card: none;
    --shadow-glow: none;

    /* --- フォント: 見出しに Noto Serif JP を追加 --- */
    --font-display: 'Noto Serif JP', 'BIZ UDPGothic', serif;
    --font-heading: 'Noto Serif JP', 'Inter', 'BIZ UDPGothic', sans-serif;
    --font-ui: 'Inter', 'BIZ UDPGothic', system-ui, sans-serif;
    --font-body: 'BIZ UDPGothic', 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', 'SF Mono', Consolas, monospace;

    /* --- フォーカスリングを推し色発光に --- */
    --focus-ring: color-mix(in srgb, var(--oshi) 72%, white 28%);

    /* --- 背景の発光グラデーション（bodyに乗せる用） --- */
    --palette-glow-a: rgba(255, 116, 182, 0.08);
    --palette-glow-b: rgba(176, 108, 255, 0.06);
}

/* Body に微かなオーロラ光を敷く — 既存背景を上書きしない形で追加 */
body {
    background-image:
        radial-gradient(900px 600px at 12% -10%, rgba(255, 116, 182, 0.06), transparent 60%),
        radial-gradient(900px 700px at 88% 105%, rgba(95, 201, 255, 0.05), transparent 55%);
    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* 推し未選択時の既定アクセントを Aurora ピンクに（既存の inline 設定があればそちらが優先される） */
html:not([style*="--oshi-color"]) {
    --oshi-color: #FF74B6;
}

/* -------------------------------------------------------------------------
   Aurora v1 — Header / Footer refinement (Phase 1-3)
   -------------------------------------------------------------------------
   既存クラス (.header-container / .brand-logo / .brand-lockup 等) に
   視覚的な刷新だけを上から適用する。HTML 構造は触らない。
   ------------------------------------------------------------------------- */

/* --- ヘッダー: 余白を広げ、オーロラの薄膜 + メンバーカラー下線を足す --- */
.header-container {
    background:
        linear-gradient(180deg,
            color-mix(in srgb, var(--bg-dark) 88%, transparent) 0%,
            color-mix(in srgb, var(--bg-dark) 72%, transparent) 100%);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid transparent;
    /* 下端に推しカラー + オーロラの 1px グラデライン */
    background-image:
        linear-gradient(var(--bg-dark), var(--bg-dark)),
        linear-gradient(90deg,
            transparent 0%,
            var(--oshi-soft) 30%,
            var(--aurora-2) 50%,
            var(--oshi-soft) 70%,
            transparent 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    border-bottom: 1px solid transparent;
}

.header-top-row {
    padding-top: 14px;
    padding-bottom: 14px;
}

/* --- ブランドロックアップ: 推しカラー発光を足して「ここは holometer だ」感 --- */
.brand-logo {
    position: relative;
    text-decoration: none;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px;
    border-radius: var(--r-sm);
    transition: background 0.2s ease, transform 0.2s ease;
}

.brand-logo:hover .brand-lockup {
    background: color-mix(in srgb, var(--oshi) 12%, transparent);
    transform: translateY(-1px);
}

.brand-needle {
    filter: none;
    transition: filter 0.25s ease;
}

.brand-logo:hover .brand-needle {
    filter: none;
}

/* --- 検索ボックス: よりマガジン調に、fuocus ring は推し色発光 --- */
.header-search-box form {
    border-radius: var(--r-md);
    background: color-mix(in srgb, var(--bg-card) 85%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-muted) 25%, transparent);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.header-search-box form:focus-within {
    border-color: var(--oshi);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--oshi) 18%, transparent);
    background: color-mix(in srgb, var(--bg-card-hover) 92%, transparent);
}

.header-search-input {
    font-family: var(--font-body);
}

.header-search-input::placeholder {
    color: var(--text-muted);
}

/* --- ヘッダーアクション: ボタンを丸く、推しカラーホバー --- */

/* --- グローバルナビ: アクティブリンクを推しカラーの発光下線に --- */

/* --- フッター: 暗色の足元 + オーロラの薄い天井ライン --- */
footer,
.site-footer,
.page-footer,
.footer-container {
    position: relative;
    background: color-mix(in srgb, var(--bg-dark) 94%, #363636 6%);
    border-top: 1px solid color-mix(in srgb, var(--aurora-2) 18%, transparent);
    color: var(--text-dim);
    padding-top: calc(var(--space-7, 28px) + 12px);
}

footer::before,
.site-footer::before,
.page-footer::before,
.footer-container::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        color-mix(in srgb, var(--aurora-1) 35%, transparent) 20%,
        color-mix(in srgb, var(--aurora-2) 45%, transparent) 50%,
        color-mix(in srgb, var(--aurora-3) 35%, transparent) 80%,
        transparent 100%);
    pointer-events: none;
}

footer a,
.site-footer a,
.page-footer a {
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.16s ease;
}

footer a:hover,
.site-footer a:hover,
.page-footer a:hover {
    color: var(--oshi);
}

/* --- カード全般: 柔らかい角丸と微妙な内側ハイライト --- */
.card,
.panel,
.mod-card,
.page-card,
[class*="-card"]:not([class*="oshi-card"]):not([class*="share-card"]) {
    border-radius: var(--r-md);
    box-shadow: none;
}

/* ===== Aurora v1 end ===================================================== */

/* ==========================================================================
   General Website Normalization (new_design)
   --------------------------------------------------------------------------
   Shared final-pass overrides focused on readability, lighter decoration,
   clearer navigation, and more stable card patterns across pages.
   ========================================================================== */
:root {
    --content-max: 1120px;
    --content-narrow: 980px;
    --ui-radius: 10px;
    --ui-radius-inner: 8px;
    --card-radius-md: 12px;
    --card-radius-lg: 14px;
    --page-heading-gap: 14px;
    --page-body-size: 1rem;
    --page-body-size-sm: 0.875rem;
    --page-panel-pad-lg: clamp(24px, 4vw, 32px);
    --page-panel-pad-md: clamp(18px, 3vw, 24px);
    --shadow-card: none;
    --surface-1: color-mix(in srgb, var(--bg-card) 94%, #363636 6%);
    --surface-2: color-mix(in srgb, var(--bg-card-hover) 94%, #363636 6%);
    --border-subtle: color-mix(in srgb, var(--text-muted) 28%, transparent);
}

body {
    background: linear-gradient(180deg, color-mix(in srgb, var(--bg-dark) 96%, #363636 4%) 0%, var(--bg-dark) 100%) !important;
    background-attachment: scroll !important;
    background-image: linear-gradient(180deg, color-mix(in srgb, var(--bg-dark) 96%, #363636 4%) 0%, var(--bg-dark) 100%) !important;
}

.header-container {
    background: color-mix(in srgb, var(--bg-dark) 92%, transparent) !important;
    background-image: none !important;
    border-bottom: 1px solid var(--border-subtle) !important;
    box-shadow: none !important;
}

.header-top-row {
    padding-top: 12px;
    padding-bottom: 10px;
}

.scroll-nav {
    gap: 10px;
    padding-top: 0;
    padding-bottom: 12px;
}

.pill,
.home-command__link {
    min-height: 38px;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    color: var(--text-dim);
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.pill:hover,
.home-command__link:hover {
    background: color-mix(in srgb, var(--bg-card-hover) 90%, transparent);
    border-color: color-mix(in srgb, var(--secondary) 40%, transparent);
    color: var(--text-main);
}

.pill.active,
.home-command__link.is-active {
    background: var(--text-main);
    color: var(--bg-dark);
    border-color: transparent;
}

.panel,
.section-card,
.dashboard-desc,
.home-command,
.holonavi-cta,
.history-header,
.history-section,
.search-panel,
.ratio-card,
.ranking-card-detailed,
.s-card,
.stats-hub-hero,
.member-card,
.member-music-section,
.music-ranking-list-panel,
.timeline-section,
.upcoming-event-box {
    border-radius: var(--card-radius-md);
    border: 1px solid var(--border-subtle);
    background: var(--surface-1);
    box-shadow: var(--shadow-card);
}

.dashboard-desc,
.home-command {
    max-width: var(--content-narrow);
}

.dashboard-desc--hero,
.holonavi-cta,
.members-discovery-hero {
    background: var(--surface-1) !important;
    border: 1px solid var(--border-subtle) !important;
    box-shadow: var(--shadow-card) !important;
}

.dashboard-desc--hero,
.members-discovery-hero {
    background-image: none !important;
}

.dashboard-desc h1,
.dashboard-desc .dashboard-desc-title,
.page-title,
.section-title,
.timeline-title,
.ranking-section-title,
.music-ranking-title,
.simple-ranking-title,
.stats-hub-hero-title,
.home-command__title {
    color: var(--text-main);
    letter-spacing: -0.03em;
}

.section-title,
.timeline-title,
.ranking-section-title {
    margin: 0 0 var(--page-heading-gap);
    font-size: clamp(1.15rem, 1.9vw, 1.48rem);
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
}

.dashboard-desc p,
.dashboard-desc .dashboard-desc-copy,
.holonavi-cta__copy,
.members-discovery-copy p:last-child,
.qa-btn__meta,
.footer-seo-copy {
    color: var(--text-dim);
}

.holonavi-cta__chip {
    background: color-mix(in srgb, var(--bg-card-hover) 88%, transparent);
    border: 1px solid var(--border-subtle);
    color: var(--text-dim);
}

.holonavi-cta__actions {
    gap: 12px;
}

.holonavi-cta__link {
    min-height: 72px;
    padding: 16px 18px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card-hover) 90%, transparent);
}

.holonavi-cta__link:hover {
    background: color-mix(in srgb, var(--bg-card-hover) 96%, transparent);
    border-color: color-mix(in srgb, var(--secondary) 34%, transparent);
}

.holonavi-cta__link.is-primary {
    background: color-mix(in srgb, var(--secondary) 26%, var(--bg-card) 74%);
    color: #ffffff;
}

.holonavi-cta__link.is-primary .holonavi-cta__link-sub,
.holonavi-cta__link.is-primary .holonavi-cta__link-label {
    color: #ffffff;
}

.holonavi-cta__link-sub {
    color: var(--text-dim);
}

.members-discovery-hero {
    gap: 22px;
    align-items: stretch;
}

.members-discovery-kicker {
    color: color-mix(in srgb, var(--secondary) 74%, #ffffff 26%);
}

.members-discovery-copy h2 {
    color: var(--text-main);
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    line-height: 1.12;
}

.members-discovery-actions {
    gap: 10px;
}

.members-discovery-btn {
    min-height: 52px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-card-hover) 90%, transparent);
    color: var(--text-main);
}

.members-discovery-btn:hover {
    background: color-mix(in srgb, var(--bg-card-hover) 96%, transparent);
    border-color: color-mix(in srgb, var(--secondary) 34%, transparent);
}

.members-discovery-btn.is-primary {
    background: color-mix(in srgb, var(--secondary) 26%, var(--bg-card) 74%);
    color: #ffffff;
}

.site-footer {
    margin-top: auto;
    padding: 36px 20px 48px;
    border-top: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--bg-dark) 94%, #363636 6%);
    color: var(--text-dim);
    font-size: 0.9375rem;
}

.site-footer-links {
    max-width: 900px;
    margin: 0 auto 14px;
    gap: 12px 18px;
}

.site-footer-links a {
    color: var(--text-dim);
    font-size: 0.875rem;
}

.site-footer-links a:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .scroll-nav {
        padding-bottom: 10px;
    }

    .pill,
    .home-command__link {
        min-height: 36px;
        padding: 8px 14px;
        font-size: 0.875rem;
    }

    .holonavi-cta__actions,
    .members-discovery-actions {
        grid-template-columns: 1fr;
    }

    .members-discovery-hero,
    .dashboard-desc--hero,
    .holonavi-cta {
        padding: 20px !important;
    }

    .section-title,
    .timeline-title,
    .ranking-section-title {
        margin-bottom: 12px;
    }
}


/* style_layout.css */
/* Shared layout layer.
   Keep structural rules here so theme files can focus on colors. */

:root {
    --content-max: 1200px;
    --layout-shell-pad: var(--space-4, 16px);
    --layout-shell-pad-mobile: 10px;
}

.header-top-row,
.scroll-nav {
    width: min(var(--content-max), 100%);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--layout-shell-pad);
    padding-right: var(--layout-shell-pad);
}

.main-container {
    max-width: var(--content-max);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--layout-shell-pad);
    padding-right: var(--layout-shell-pad);
}

@media (max-width: 768px) {
    .header-top-row {
        width: 100%;
        margin: 0;
        padding-left: var(--layout-shell-pad-mobile) !important;
        padding-right: var(--layout-shell-pad-mobile) !important;
    }

    .scroll-nav {
        width: 100%;
        margin: 0;
        padding-left: var(--layout-shell-pad-mobile) !important;
        padding-right: var(--layout-shell-pad-mobile) !important;
    }

    .main-container {
        padding-left: var(--space-3, 12px);
        padding-right: var(--space-3, 12px);
    }
}


/* style_theme_dark.css */
/* Dark theme color layer.
   Applied when no explicit light theme is selected. */

html:not([data-theme]),
html[data-theme="dark"] {
    color-scheme: dark;
}

html:not([data-theme]) .header-container,
html[data-theme="dark"] .header-container {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--border-color);
}

html:not([data-theme]) .pill,
html[data-theme="dark"] .pill {
    background: #111;
    color: var(--text-dim);
    border-color: var(--border-color);
}

html:not([data-theme]) .pill:hover,
html[data-theme="dark"] .pill:hover {
    background: #1a1a1a;
    color: #fff;
    border-color: var(--border-highlight);
}

html:not([data-theme]) .pill.active,
html[data-theme="dark"] .pill.active {
    background: #fff;
    color: #363636;
    border-color: #fff;
}

html:not([data-theme]) .side-mini-nav,
html[data-theme="dark"] .side-mini-nav {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

html:not([data-theme]) .side-mini-title,
html[data-theme="dark"] .side-mini-title {
    color: #888;
}

html:not([data-theme]) .side-mini-link,
html[data-theme="dark"] .side-mini-link {
    color: #cbd5e1;
    border: 1px solid transparent;
    background: transparent;
}

html:not([data-theme]) .side-mini-link.active,
html:not([data-theme]) .side-mini-link:hover,
html[data-theme="dark"] .side-mini-link.active,
html[data-theme="dark"] .side-mini-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}


/* style_light_apple.css */
/* Light theme (high-contrast) using #0c161a as brand base.
   Activated by html[data-theme="light_apple"] or html[data-theme="light"]. */

html[data-theme="light_apple"],
html[data-theme="light"] {
    color-scheme: light;
    --surface-max: #EDEDED;

    --base-ink: #0c161a;
    --base-ink-soft: #1f2f36;
    --base-ink-dim: #3f5561;

    --bg-dark: #edf2f6;
    --bg-card: rgba(255, 255, 255, 0.92);
    --bg-card-hover: rgba(255, 255, 255, 0.97);

    --primary: #0c161a;
    --primary-soft: rgba(12, 22, 26, 0.12);
    --secondary: #1f6feb;
    --tertiary: #0ea5a5;
    --gold: #c3870a;

    --text-main: #0c161a;
    --text-dim: #223640;
    --text-muted: #435864;

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

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

    --shadow-soft-1: 0 1px 2px rgba(12, 22, 26, 0.03);
    --shadow-soft-2: 0 1px 4px rgba(12, 22, 26, 0.05);
    --shadow-card: var(--shadow-soft-2);
    --shadow-glow: var(--shadow-soft-2);
    --content-max: 1200px;
}

html[data-theme="light_apple"] body,
html[data-theme="light"] body {
    background: var(--bg-dark);
    color: var(--text-main);
}

html[data-theme="light_apple"] .header-container,
html[data-theme="light"] .header-container {
    background: var(--bg-card);
    border-bottom: 1px solid transparent;
    box-shadow: none;
    backdrop-filter: none;
}

html[data-theme="light_apple"] .brand-logo,
html[data-theme="light"] .brand-logo,
html[data-theme="light_apple"] .brand-subtitle,
html[data-theme="light"] .brand-subtitle,
html[data-theme="light_apple"] .search-mobile-btn,
html[data-theme="light"] .search-mobile-btn {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .brand-logo .brand-needle,
html[data-theme="light"] .brand-logo .brand-needle {
    border-radius: 0;
    box-shadow: none;
    filter: none;
}

html[data-theme="light_apple"] .share-x-btn,
html[data-theme="light"] .share-x-btn,
html[data-theme="light_apple"] .theme-toggle-btn,
html[data-theme="light"] .theme-toggle-btn,
html[data-theme="light_apple"] .palette-toggle-btn,
html[data-theme="light"] .palette-toggle-btn,
html[data-theme="light_apple"] .hamburger-btn,
html[data-theme="light"] .hamburger-btn {
    background: rgba(237, 237, 237, 0.92);
    border: 1px solid #c6d3de;
    color: var(--base-ink);
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .palette-popover,
html[data-theme="light"] .palette-popover {
    background: rgba(237, 237, 237, 0.96);
    border-color: #bccbd8;
}

html[data-theme="light_apple"] .palette-chip,
html[data-theme="light"] .palette-chip {
    border-color: rgba(12, 22, 26, 0.15);
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .theme-mode-chip,
html[data-theme="light"] .theme-mode-chip {
    background: rgba(237, 237, 237, 0.92);
    border: 1px solid #c6d3de;
    color: #1a313c;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .theme-mode-chip:hover,
html[data-theme="light"] .theme-mode-chip:hover {
    background: #eef5fc;
    border-color: #9db3c3;
    color: #10242d;
}

html[data-theme="light_apple"] .theme-mode-chip.is-active,
html[data-theme="light"] .theme-mode-chip.is-active {
    background: #0c161a;
    border-color: transparent;
    color: #ffffff;
}

html[data-theme="light_apple"] .header-search-input,
html[data-theme="light"] .header-search-input,
html[data-theme="light_apple"] .mm-search-input,
html[data-theme="light"] .mm-search-input {
    background: rgba(237, 237, 237, 0.94);
    border: 1px solid #bdcbd8;
    color: var(--base-ink);
}

html[data-theme="light_apple"] .header-search-input::placeholder,
html[data-theme="light"] .header-search-input::placeholder,
html[data-theme="light_apple"] .mm-search-input::placeholder,
html[data-theme="light"] .mm-search-input::placeholder {
    color: #556d7a;
}

html[data-theme="light_apple"] .pill,
html[data-theme="light"] .pill {
    background: rgba(245, 247, 250, 0.96);
    border: 1px solid #c3d0db;
    color: var(--base-ink-soft);
    box-shadow: none;
}

html[data-theme="light_apple"] .pill:hover,
html[data-theme="light"] .pill:hover {
    border-color: #8ea4b3;
    color: var(--base-ink);
    background: #eef3f7;
}

html[data-theme="light_apple"] .pill.active,
html[data-theme="light"] .pill.active {
    background: #13202b;
    color: #ffffff;
    border-color: #13202b;
    box-shadow: none;
}

html[data-theme="light_apple"] .mb-nav-item.active,
html[data-theme="light"] .mb-nav-item.active {
    background: rgba(15, 23, 42, 0.06);
    color: var(--base-ink);
    border-color: rgba(31, 111, 235, 0.18);
    box-shadow: none;
}

html[data-theme="light_apple"] .main-container,
html[data-theme="light"] .main-container {
    background: transparent;
}

html[data-theme="light_apple"] .stream-card,
html[data-theme="light"] .stream-card,
html[data-theme="light_apple"] .panel,
html[data-theme="light"] .panel,
html[data-theme="light_apple"] .s-card,
html[data-theme="light"] .s-card,
html[data-theme="light_apple"] .graph-container,
html[data-theme="light"] .graph-container,
html[data-theme="light_apple"] .related-section,
html[data-theme="light"] .related-section,
html[data-theme="light_apple"] .history-header,
html[data-theme="light"] .history-header,
html[data-theme="light_apple"] .history-fan-card,
html[data-theme="light"] .history-fan-card,
html[data-theme="light_apple"] .history-live-card,
html[data-theme="light"] .history-live-card,
html[data-theme="light_apple"] .history-chat-card,
html[data-theme="light"] .history-chat-card,
html[data-theme="light_apple"] .history-activity-card,
html[data-theme="light"] .history-activity-card,
html[data-theme="light_apple"] .stats-hub-hero,
html[data-theme="light"] .stats-hub-hero,
html[data-theme="light_apple"] .search-panel,
html[data-theme="light"] .search-panel,
html[data-theme="light_apple"] .ranking-card-detailed,
html[data-theme="light"] .ranking-card-detailed,
html[data-theme="light_apple"] .ratio-card,
html[data-theme="light"] .ratio-card,
html[data-theme="light_apple"] .history-section,
html[data-theme="light"] .history-section {
    background: var(--gradient-card);
    border: 1px solid #c8d5df;
    box-shadow: var(--shadow-card);
}

html[data-theme="light_apple"] .stream-card:hover,
html[data-theme="light"] .stream-card:hover,
html[data-theme="light_apple"] .ranking-card-detailed:hover,
html[data-theme="light"] .ranking-card-detailed:hover,
html[data-theme="light_apple"] .ratio-card:hover,
html[data-theme="light"] .ratio-card:hover {
    background: rgba(237, 237, 237, 0.98);
    border-color: #88a1b1;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .dashboard-desc--hero,
html[data-theme="light"] .dashboard-desc--hero {
    background: #ffffff;
    border: 1px solid #b8c9d8;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .holonavi-cta,
html[data-theme="light"] .holonavi-cta {
    background: #ffffff;
    border: 1px solid #b8c9d8;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .holonavi-cta__eyebrow,
html[data-theme="light"] .holonavi-cta__eyebrow {
    color: var(--secondary);
}

html[data-theme="light_apple"] .holonavi-cta__title,
html[data-theme="light"] .holonavi-cta__title,
html[data-theme="light_apple"] .holonavi-cta__copy,
html[data-theme="light"] .holonavi-cta__copy {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .holonavi-cta__chip,
html[data-theme="light"] .holonavi-cta__chip {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #c8d5df;
    color: var(--base-ink-dim);
}

html[data-theme="light_apple"] .holonavi-cta__link,
html[data-theme="light"] .holonavi-cta__link {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #c8d5df;
    color: var(--base-ink);
}

html[data-theme="light_apple"] .holonavi-cta__link:hover,
html[data-theme="light"] .holonavi-cta__link:hover {
    background: #ffffff;
    border-color: #9db3c3;
}

html[data-theme="light_apple"] .holonavi-cta__link-sub,
html[data-theme="light"] .holonavi-cta__link-sub {
    color: var(--base-ink-dim);
}

html[data-theme="light_apple"] .holonavi-cta__link.is-primary,
html[data-theme="light"] .holonavi-cta__link.is-primary {
    background: #0c161a;
    border-color: transparent;
    color: #ffffff;
}

html[data-theme="light_apple"] .holonavi-cta__link.is-primary .holonavi-cta__link-sub,
html[data-theme="light"] .holonavi-cta__link.is-primary .holonavi-cta__link-sub {
    color: rgba(255, 255, 255, 0.82);
}

html[data-theme="light_apple"] .dashboard-desc,
html[data-theme="light"] .dashboard-desc {
    background: #ffffff;
    border: 1px solid #c4d2de;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .dashboard-desc h1,
html[data-theme="light"] .dashboard-desc h1,
html[data-theme="light_apple"] .dashboard-desc .dashboard-desc-title,
html[data-theme="light"] .dashboard-desc .dashboard-desc-title,
html[data-theme="light_apple"] .dashboard-desc p,
html[data-theme="light"] .dashboard-desc p,
html[data-theme="light_apple"] .dashboard-desc .dashboard-desc-copy,
html[data-theme="light"] .dashboard-desc .dashboard-desc-copy {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .stats-ranking-meta,
html[data-theme="light"] .stats-ranking-meta,
html[data-theme="light_apple"] .rc-love-label,
html[data-theme="light"] .rc-love-label,
html[data-theme="light_apple"] .rc-box-label,
html[data-theme="light"] .rc-box-label,
html[data-theme="light_apple"] .rc-unit-small,
html[data-theme="light"] .rc-unit-small {
    color: var(--base-ink-dim);
}

html[data-theme="light_apple"] .rc-name .rc-oshi,
html[data-theme="light"] .rc-name .rc-oshi {
    color: color-mix(in srgb, var(--accent-color, #3d6280) 60%, #102434 40%);
    opacity: 1;
}

html[data-theme="light_apple"] .rc-diff--up,
html[data-theme="light"] .rc-diff--up {
    color: #0f8a5f;
    border-color: #0f8a5f;
    background: rgba(15, 138, 95, 0.08);
}

html[data-theme="light_apple"] .rc-diff--down,
html[data-theme="light"] .rc-diff--down {
    color: #b42318;
    border-color: #b42318;
    background: rgba(180, 35, 24, 0.08);
}

html[data-theme="light_apple"] .rc-box--accent .rc-box-label,
html[data-theme="light"] .rc-box--accent .rc-box-label {
    color: color-mix(in srgb, var(--accent-color, #4a6b86) 52%, #163247 48%);
}

html[data-theme="light_apple"] .rc-name,
html[data-theme="light"] .rc-name,
html[data-theme="light_apple"] .rc-name-link,
html[data-theme="light"] .rc-name-link,
html[data-theme="light_apple"] .rc-love-val,
html[data-theme="light"] .rc-love-val,
html[data-theme="light_apple"] .rc-box-val,
html[data-theme="light"] .rc-box-val {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .rc-box,
html[data-theme="light"] .rc-box {
    background: rgba(237, 237, 237, 0.95);
    border-color: #c3d2de;
}

html[data-theme="light_apple"] .rc-box--accent,
html[data-theme="light"] .rc-box--accent {
    background: #eef5fc;
}

html[data-theme="light_apple"] .dashboard-desc--hero .dashboard-desc-title,
html[data-theme="light"] .dashboard-desc--hero .dashboard-desc-title,
html[data-theme="light_apple"] .dashboard-desc--hero .dashboard-desc-subtitle,
html[data-theme="light"] .dashboard-desc--hero .dashboard-desc-subtitle,
html[data-theme="light_apple"] .dashboard-desc--hero .dashboard-desc-copy,
html[data-theme="light"] .dashboard-desc--hero .dashboard-desc-copy,
html[data-theme="light_apple"] .ranking-section-title,
html[data-theme="light"] .ranking-section-title,
html[data-theme="light_apple"] .ranking-title-nav .rt-text,
html[data-theme="light"] .ranking-title-nav .rt-text,
html[data-theme="light_apple"] .ranking-title-nav .rt-date,
html[data-theme="light"] .ranking-title-nav .rt-date,
html[data-theme="light_apple"] .ranking-title-nav .rt-desc,
html[data-theme="light"] .ranking-title-nav .rt-desc,
html[data-theme="light_apple"] .stream-title,
html[data-theme="light"] .stream-title,
html[data-theme="light_apple"] .rc-stream-title,
html[data-theme="light"] .rc-stream-title,
html[data-theme="light_apple"] .ratio-card__metric-val,
html[data-theme="light"] .ratio-card__metric-val,
html[data-theme="light_apple"] .stats-hub-hero-title,
html[data-theme="light"] .stats-hub-hero-title,
html[data-theme="light_apple"] .stats-hub-hero-card-name,
html[data-theme="light"] .stats-hub-hero-card-name,
html[data-theme="light_apple"] .history-name,
html[data-theme="light"] .history-name,
html[data-theme="light_apple"] .hero-title,
html[data-theme="light"] .hero-title,
html[data-theme="light_apple"] .graph-title,
html[data-theme="light"] .graph-title,
html[data-theme="light_apple"] .sec-title,
html[data-theme="light"] .sec-title,
html[data-theme="light_apple"] .hm-table,
html[data-theme="light"] .hm-table {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .stream-owner-line,
html[data-theme="light"] .stream-owner-line,
html[data-theme="light_apple"] .owner-name,
html[data-theme="light"] .owner-name,
html[data-theme="light_apple"] .stream-stats,
html[data-theme="light"] .stream-stats,
html[data-theme="light_apple"] .stat-item,
html[data-theme="light"] .stat-item,
html[data-theme="light_apple"] .stream-date,
html[data-theme="light"] .stream-date,
html[data-theme="light_apple"] .s-card-label,
html[data-theme="light"] .s-card-label,
html[data-theme="light_apple"] .s-card-sub,
html[data-theme="light"] .s-card-sub,
html[data-theme="light_apple"] .stats-hub-hero-sub,
html[data-theme="light"] .stats-hub-hero-sub,
html[data-theme="light_apple"] .history-meta,
html[data-theme="light"] .history-meta,
html[data-theme="light_apple"] .history-affiliation,
html[data-theme="light"] .history-affiliation,
html[data-theme="light_apple"] .hero-meta,
html[data-theme="light"] .hero-meta {
    color: var(--base-ink-dim);
}

html[data-theme="light_apple"] .s-card-val,
html[data-theme="light"] .s-card-val {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .s-card-val-ccv,
html[data-theme="light"] .s-card-val-ccv {
    color: #1457c0;
}

html[data-theme="light_apple"] .s-card-val-sc,
html[data-theme="light"] .s-card-val-sc {
    color: #0a7ea8;
}

html[data-theme="light_apple"] .s-card-val-gift,
html[data-theme="light"] .s-card-val-gift {
    color: #0c8e79;
}

html[data-theme="light_apple"] .s-card-val-mem,
html[data-theme="light"] .s-card-val-mem {
    color: #1f6feb;
}

html[data-theme="light_apple"] .mobile-menu-overlay,
html[data-theme="light"] .mobile-menu-overlay {
    background: rgba(244, 248, 252, 0.95);
}

html[data-theme="light_apple"] .mm-link,
html[data-theme="light"] .mm-link {
    background: #ffffff;
    color: var(--base-ink);
    border: 1px solid #becedb;
}

html[data-theme="light_apple"] .mm-section-copy,
html[data-theme="light"] .mm-section-copy {
    color: #607885;
}

html[data-theme="light_apple"] .mm-link.active,
html[data-theme="light"] .mm-link.active {
    background: #e9f0f9;
    color: var(--base-ink);
    border-color: #91a7b8;
}

html[data-theme="light_apple"] .mm-link.is-strong,
html[data-theme="light"] .mm-link.is-strong {
    background: #13202b;
    color: #ffffff;
    border-color: #13202b;
}

html[data-theme="light_apple"] .mm-note-card,
html[data-theme="light"] .mm-note-card {
    background: #f6f9fc;
    border-color: #bfd0de;
    color: var(--base-ink);
}

html[data-theme="light_apple"] .mm-note-card strong,
html[data-theme="light"] .mm-note-card strong {
    color: #102433;
}

html[data-theme="light_apple"] .mm-note-card p,
html[data-theme="light"] .mm-note-card p {
    color: #607885;
}

html[data-theme="light_apple"] body.hm-member-picker-open,
html[data-theme="light"] body.hm-member-picker-open {
    overflow: hidden;
}

html[data-theme="light_apple"] .hm-member-picker-trigger,
html[data-theme="light"] .hm-member-picker-trigger,
html[data-theme="light_apple"] .hm-member-picker-current,
html[data-theme="light"] .hm-member-picker-current {
    background: rgba(255, 255, 255, 0.95);
    border-color: #c7d5e0;
    color: #102433;
    box-shadow: none;
}

html[data-theme="light_apple"] .hm-member-picker-trigger-label,
html[data-theme="light"] .hm-member-picker-trigger-label,
html[data-theme="light_apple"] .hm-member-picker-search-label,
html[data-theme="light"] .hm-member-picker-search-label,
html[data-theme="light_apple"] .hm-member-picker-link-meta,
html[data-theme="light"] .hm-member-picker-link-meta,
html[data-theme="light_apple"] .hm-member-picker-empty,
html[data-theme="light"] .hm-member-picker-empty,
html[data-theme="light_apple"] .hm-member-picker-current-copy span,
html[data-theme="light"] .hm-member-picker-current-copy span {
    color: #516976;
}

html[data-theme="light_apple"] .hm-member-picker-trigger-name,
html[data-theme="light"] .hm-member-picker-trigger-name,
html[data-theme="light_apple"] .hm-member-picker-current-copy strong,
html[data-theme="light"] .hm-member-picker-current-copy strong,
html[data-theme="light_apple"] .hm-member-picker-trigger-icon,
html[data-theme="light"] .hm-member-picker-trigger-icon {
    color: #102433;
}

html[data-theme="light_apple"] .hm-member-picker-trigger-avatar,
html[data-theme="light"] .hm-member-picker-trigger-avatar,
html[data-theme="light_apple"] .hm-member-picker-current-avatar,
html[data-theme="light"] .hm-member-picker-current-avatar {
    background: #eef4f8;
    border-color: #d2dde6;
}

html[data-theme="light_apple"] .hm-member-picker-overlay .mm-link.active,
html[data-theme="light"] .hm-member-picker-overlay .mm-link.active {
    background: #e9f0f9;
    border-color: #91a7b8;
    color: #102433;
}

html[data-theme="light_apple"] .mobile-bottom-nav,
html[data-theme="light"] .mobile-bottom-nav {
    background: rgba(244, 249, 253, 0.96);
    border-top: 1px solid #c4d2dd;
    backdrop-filter: blur(8px) saturate(140%);
}

html[data-theme="light_apple"] .mb-nav-item,
html[data-theme="light"] .mb-nav-item {
    color: var(--base-ink-soft);
}

html[data-theme="light_apple"] .mb-nav-item i,
html[data-theme="light"] .mb-nav-item i {
    color: var(--base-ink) !important;
    opacity: 0.92;
}

html[data-theme="light_apple"] .mb-nav-item.active i,
html[data-theme="light"] .mb-nav-item.active i {
    color: var(--oshi-primary) !important;
    opacity: 1;
}

html[data-theme="light_apple"] .mb-nav-item.active span,
html[data-theme="light"] .mb-nav-item.active span {
    color: var(--base-ink) !important;
}

html[data-theme="light_apple"] .hm-stat-share-btn,
html[data-theme="light"] .hm-stat-share-btn {
    background: rgba(255, 255, 255, 0.82);
    border-color: #c4d2dd;
    color: var(--base-ink);
}

html[data-theme="light_apple"] .hm-stat-share-btn:hover,
html[data-theme="light"] .hm-stat-share-btn:hover {
    border-color: rgba(31, 111, 235, 0.28);
    color: var(--oshi-primary);
}

html[data-theme="light_apple"] .graph-warning,
html[data-theme="light"] .graph-warning,
html[data-theme="light_apple"] .graph-missing,
html[data-theme="light"] .graph-missing,
html[data-theme="light_apple"] .chart-legend-mobile .legend-item,
html[data-theme="light"] .chart-legend-mobile .legend-item {
    background: #ffffff;
    border-color: #bfd0de;
    color: var(--base-ink-soft);
}

/* Timeline readability */
html[data-theme="light_apple"] .timeline-page-title,
html[data-theme="light"] .timeline-page-title,
html[data-theme="light_apple"] .page-title,
html[data-theme="light"] .page-title,
html[data-theme="light_apple"] .timeline-title,
html[data-theme="light"] .timeline-title,
html[data-theme="light_apple"] .timeline-count,
html[data-theme="light"] .timeline-count {
    color: var(--base-ink) !important;
}

html[data-theme="light_apple"] .date-nav,
html[data-theme="light"] .date-nav {
    color: var(--base-ink);
    background: rgba(255, 255, 255, 0.92);
    border-color: #cfd9e2;
    box-shadow: none;
}

html[data-theme="light_apple"] .date-nav a,
html[data-theme="light"] .date-nav a {
    color: var(--base-ink);
    background: #f5f8fb;
    border: 1px solid #c9d4de;
}

html[data-theme="light_apple"] .date-nav a:hover,
html[data-theme="light"] .date-nav a:hover {
    color: #10242d;
    background: #eaf0f5;
    border-color: #aebfcd;
}

html[data-theme="light_apple"] .date-nav .nav-disabled,
html[data-theme="light"] .date-nav .nav-disabled {
    color: #8193a0;
    background: #f7f9fb;
    border: 1px solid #d7e0e7;
}

html[data-theme="light_apple"] .timeline-hour-group,
html[data-theme="light"] .timeline-hour-group {
    background: #edf2f7;
    border-color: #d2dbe4;
}

html[data-theme="light_apple"] .timeline-hour-label,
html[data-theme="light"] .timeline-hour-label {
    color: #114f9d;
}

html[data-theme="light_apple"] .timeline-hour-count,
html[data-theme="light"] .timeline-hour-count {
    color: var(--base-ink-soft);
}

/* Stream graph readability */
html[data-theme="light_apple"] .sg-title,
html[data-theme="light"] .sg-title {
    color: var(--base-ink);
    text-shadow: none;
}

html[data-theme="light_apple"] .sg-title-external,
html[data-theme="light"] .sg-title-external {
    opacity: 0.8;
}

html[data-theme="light_apple"] .sg-meta,
html[data-theme="light"] .sg-meta,
html[data-theme="light_apple"] .sg-meta-note,
html[data-theme="light"] .sg-meta-note,
html[data-theme="light_apple"] .sg-summary-label,
html[data-theme="light"] .sg-summary-label {
    color: var(--base-ink-dim);
}

html[data-theme="light_apple"] .sg-meta-link,
html[data-theme="light"] .sg-meta-link,
html[data-theme="light_apple"] .sg-summary-value,
html[data-theme="light"] .sg-summary-value {
    color: var(--base-ink);
    text-decoration-color: rgba(12, 22, 26, 0.35);
}

html[data-theme="light_apple"] .sg-summary-item,
html[data-theme="light"] .sg-summary-item {
    background: #f4f8fc;
    border-color: #c4d3de;
}

/* UX lift for light mode: scanning speed and click confidence */
html[data-theme="light_apple"] .main-container,
html[data-theme="light"] .main-container {
    max-width: var(--content-max);
}

html[data-theme="light_apple"] .timeline-grid,
html[data-theme="light"] .timeline-grid {
    gap: 12px;
}

html[data-theme="light_apple"] .stream-card,
html[data-theme="light"] .stream-card {
    border-radius: 12px;
}

html[data-theme="light_apple"] .stream-card:hover,
html[data-theme="light"] .stream-card:hover {
    transform: translateY(-2px);
}

html[data-theme="light_apple"] .ranking-title-nav,
html[data-theme="light"] .ranking-title-nav {
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid #c6d4de;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .ranking-title-nav .rt-nav,
html[data-theme="light"] .ranking-title-nav .rt-nav {
    color: #162c38;
    background: #f2f6fa;
    border: 1px solid #b8cad8;
}

html[data-theme="light_apple"] .ranking-title-nav .rt-nav:hover,
html[data-theme="light"] .ranking-title-nav .rt-nav:hover {
    color: #0f2430;
    background: #e4edf5;
    border-color: #9eb6c9;
}

html[data-theme="light_apple"] .ranking-title-nav .rt-disabled,
html[data-theme="light"] .ranking-title-nav .rt-disabled {
    color: #7890a3;
    background: #edf3f8;
    border-color: #c6d4de;
    opacity: 1;
}

html[data-theme="light_apple"] .sg-quick-links .pill,
html[data-theme="light"] .sg-quick-links .pill {
    font-weight: 700;
}

/* Digest ticker readability in light mode */
html[data-theme="light_apple"] .daily-news-container--digest,
html[data-theme="light"] .daily-news-container--digest {
    background: rgba(255, 255, 255, 0.92);
    border-top: 1px solid #c2cfdb;
    border-bottom: 1px solid #c2cfdb;
}

html[data-theme="light_apple"] .daily-news-container--digest .daily-news-label,
html[data-theme="light"] .daily-news-container--digest .daily-news-label {
    background: #0c161a;
    color: #ffffff;
}

html[data-theme="light_apple"] .daily-news-container--digest .news-item-value,
html[data-theme="light"] .daily-news-container--digest .news-item-value {
    color: #0f2230;
}

html[data-theme="light_apple"] .daily-news-container--digest .hm-digest-ticker-link,
html[data-theme="light"] .daily-news-container--digest .hm-digest-ticker-link {
    color: #0d2a3b;
    text-shadow: none;
}

html[data-theme="light_apple"] .daily-news-container--digest .hm-digest-ticker-link:hover,
html[data-theme="light"] .daily-news-container--digest .hm-digest-ticker-link:hover {
    color: #061722;
}

html[data-theme="light_apple"] .daily-news-container--digest .hm-digest-ticker-sep,
html[data-theme="light"] .daily-news-container--digest .hm-digest-ticker-sep {
    color: #516676;
}

/* TODAY'S NEWS palette (light mode) */
html[data-theme="light_apple"] .daily-news-container,
html[data-theme="light"] .daily-news-container {
    background: #edf4fb;
    border-top: 1px solid #c2d4e3;
    border-bottom: 1px solid #c2d4e3;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .daily-news-label,
html[data-theme="light"] .daily-news-label {
    background: #0c161a;
    color: #ffffff;
}

html[data-theme="light_apple"] .daily-news-content,
html[data-theme="light"] .daily-news-content {
    background: transparent;
}

html[data-theme="light_apple"] .news-item,
html[data-theme="light"] .news-item {
    color: #182a33;
}

html[data-theme="light_apple"] .news-item-label,
html[data-theme="light"] .news-item-label,
html[data-theme="light_apple"] .news-item-sub,
html[data-theme="light"] .news-item-sub {
    color: #3d5765;
    opacity: 1;
}

html[data-theme="light_apple"] .news-item-value,
html[data-theme="light"] .news-item-value {
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .news-item-label i,
html[data-theme="light"] .news-item-label i {
    color: #1f6feb;
    opacity: 1;
}

html[data-theme="light_apple"] .news-item.revenue .news-item-label i,
html[data-theme="light"] .news-item.revenue .news-item-label i {
    color: #b87a00;
}

html[data-theme="light_apple"] .news-divider,
html[data-theme="light"] .news-divider {
    background: #b9cddd;
}

/* Cross-page contrast hardening (members/history/stats_hub/simple_ranking). */
html[data-theme="light_apple"] .section-title,
html[data-theme="light"] .section-title,
html[data-theme="light_apple"] .hero-section-title,
html[data-theme="light"] .hero-section-title,
html[data-theme="light_apple"] .timeline-title,
html[data-theme="light"] .timeline-title,
html[data-theme="light_apple"] .stats-hub-title,
html[data-theme="light"] .stats-hub-title,
html[data-theme="light_apple"] .simple-ranking-title,
html[data-theme="light"] .simple-ranking-title,
html[data-theme="light_apple"] .simple-ranking-link,
html[data-theme="light"] .simple-ranking-link,
html[data-theme="light_apple"] .simple-ranking-val,
html[data-theme="light"] .simple-ranking-val,
html[data-theme="light_apple"] .stats-row-link,
html[data-theme="light"] .stats-row-link,
html[data-theme="light_apple"] .stats-row-val,
html[data-theme="light"] .stats-row-val {
    color: var(--base-ink) !important;
}

html[data-theme="light_apple"] .simple-ranking-sub,
html[data-theme="light"] .simple-ranking-sub,
html[data-theme="light_apple"] .simple-ranking-meta,
html[data-theme="light"] .simple-ranking-meta,
html[data-theme="light_apple"] .stats-hub-hero-sub,
html[data-theme="light"] .stats-hub-hero-sub,
html[data-theme="light_apple"] .stats-row-sub,
html[data-theme="light"] .stats-row-sub,
html[data-theme="light_apple"] .stats-hub-hero-card-label,
html[data-theme="light"] .stats-hub-hero-card-label {
    color: var(--base-ink-dim) !important;
    opacity: 1 !important;
}

html[data-theme="light_apple"] .stats-hub-hero,
html[data-theme="light"] .stats-hub-hero {
    background: rgba(255, 255, 255, 0.96);
    border-color: #c4d2dd;
}

html[data-theme="light_apple"] .stats-hub-hero-card,
html[data-theme="light"] .stats-hub-hero-card,
html[data-theme="light_apple"] .simple-ranking-card,
html[data-theme="light"] .simple-ranking-card,
html[data-theme="light_apple"] .stats-hub-box,
html[data-theme="light"] .stats-hub-box {
    background: rgba(244, 247, 250, 0.96);
    border: 1px solid #c3d2de;
    box-shadow: none;
}

html[data-theme="light_apple"] .stats-row,
html[data-theme="light"] .stats-row,
html[data-theme="light_apple"] .simple-ranking-row,
html[data-theme="light"] .simple-ranking-row {
    border-bottom-color: #d7e1ea;
}

html[data-theme="light_apple"] .stats-row-bar,
html[data-theme="light"] .stats-row-bar,
html[data-theme="light_apple"] .simple-ranking-bar,
html[data-theme="light"] .simple-ranking-bar {
    background: rgba(31, 111, 235, 0.08);
}

html[data-theme="light_apple"] .stats-hub-hero-title,
html[data-theme="light"] .stats-hub-hero-title,
html[data-theme="light_apple"] .stats-hub-hero-card-name,
html[data-theme="light"] .stats-hub-hero-card-name,
html[data-theme="light_apple"] .stats-hub-hero-card-val,
html[data-theme="light"] .stats-hub-hero-card-val {
    color: var(--text-main, #35485a) !important;
}

html[data-theme="light_apple"] .stats-hub-hotline-label,
html[data-theme="light"] .stats-hub-hotline-label {
    color: #365166 !important;
}

html[data-theme="light_apple"] .stats-hub-hot-chip,
html[data-theme="light"] .stats-hub-hot-chip {
    color: #23435a !important;
    background: #e7f1f8 !important;
    border-color: #b8cbdb !important;
}

html[data-theme="light_apple"] .stats-hub-hot-chip:hover,
html[data-theme="light"] .stats-hub-hot-chip:hover {
    color: #152f43 !important;
    background: #dbeaf5 !important;
}

html[data-theme="light_apple"] .stats-guide-callout,
html[data-theme="light"] .stats-guide-callout {
    background: rgba(252, 254, 255, 0.98);
    border-color: #bfd0dd;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .stats-guide-callout-title,
html[data-theme="light"] .stats-guide-callout-title {
    color: #102433;
}

html[data-theme="light_apple"] .stats-guide-callout-text,
html[data-theme="light"] .stats-guide-callout-text {
    color: #486171;
}

html[data-theme="light_apple"] .stats-hub-empty-state,
html[data-theme="light"] .stats-hub-empty-state,
html[data-theme="light_apple"] .antenna-summary,
html[data-theme="light"] .antenna-summary,
html[data-theme="light_apple"] .antenna-empty-state,
html[data-theme="light"] .antenna-empty-state {
    color: #5a7180;
}

html[data-theme="light_apple"] .member-card__name,
html[data-theme="light"] .member-card__name,
html[data-theme="light_apple"] .member-card__group,
html[data-theme="light"] .member-card__group,
html[data-theme="light_apple"] .upcoming-event-title,
html[data-theme="light"] .upcoming-event-title,
html[data-theme="light_apple"] .upcoming-event-name,
html[data-theme="light"] .upcoming-event-name,
html[data-theme="light_apple"] .upcoming-event-date,
html[data-theme="light"] .upcoming-event-date,
html[data-theme="light_apple"] .upcoming-event-countdown,
html[data-theme="light"] .upcoming-event-countdown {
    color: var(--base-ink) !important;
    opacity: 1 !important;
}

html[data-theme="light_apple"] .upcoming-event-date,
html[data-theme="light"] .upcoming-event-date {
    color: #476170 !important;
}

html[data-theme="light_apple"] .upcoming-event-countdown,
html[data-theme="light"] .upcoming-event-countdown {
    color: #9d422f !important;
}

html[data-theme="light_apple"] .upcoming-event-box,
html[data-theme="light"] .upcoming-event-box,
html[data-theme="light_apple"] .upcoming-event-item,
html[data-theme="light"] .upcoming-event-item {
    background: rgba(237, 237, 237, 0.94);
    border-color: #c6d3de;
}

html[data-theme="light_apple"] .history-upcoming-chip,
html[data-theme="light"] .history-upcoming-chip {
    color: #1d3342;
    background: rgba(237, 243, 250, 0.96);
    border: 1px solid #b7c9d8;
}

html[data-theme="light_apple"] .history-upcoming-chip strong,
html[data-theme="light"] .history-upcoming-chip strong {
    color: #102130;
}

html[data-theme="light_apple"] .history-upcoming-chip time,
html[data-theme="light"] .history-upcoming-chip time {
    color: #3f5b6f;
}

html[data-theme="light_apple"] .history-upcoming-chip em,
html[data-theme="light"] .history-upcoming-chip em {
    color: color-mix(in srgb, var(--primary) 70%, #1f2f36);
    font-weight: 700;
}

html[data-theme="light_apple"] .history-theme-btn,
html[data-theme="light"] .history-theme-btn {
    border-color: color-mix(in srgb, var(--primary) 38%, #bcd0de);
    color: #173244;
}

html[data-theme="light_apple"] .history-member-color-btn,
html[data-theme="light"] .history-member-color-btn {
    border-color: color-mix(in srgb, var(--primary) 46%, #b7cad9);
    color: #102130;
    background: color-mix(in srgb, var(--primary) 10%, #edf3fa);
}

html[data-theme="light_apple"] .history-member-color-btn:hover,
html[data-theme="light"] .history-member-color-btn:hover {
    border-color: color-mix(in srgb, var(--primary) 58%, #9db5c8);
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .history-theme-btn.is-applied,
html[data-theme="light"] .history-theme-btn.is-applied {
    background: color-mix(in srgb, var(--primary) 14%, #edf3fa);
    border-color: color-mix(in srgb, var(--primary) 55%, #9eb4c4);
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .history-meta-item,
html[data-theme="light"] .history-meta-item {
    color: #304a5a;
}

html[data-theme="light_apple"] .history-meta-label,
html[data-theme="light"] .history-meta-label {
    color: #3e596b;
}

html[data-theme="light_apple"] .history-meta-value,
html[data-theme="light"] .history-meta-value {
    color: #0f2330;
}

html[data-theme="light_apple"] .history-meta-item-birthday .history-meta-value,
html[data-theme="light"] .history-meta-item-birthday .history-meta-value {
    color: color-mix(in srgb, var(--primary) 72%, #0f2330);
}

html[data-theme="light_apple"] .history-side-menu,
html[data-theme="light"] .history-side-menu {
    background: #edf3f9;
    border: none;
}

html[data-theme="light_apple"] .history-side-title,
html[data-theme="light"] .history-side-title,
html[data-theme="light_apple"] .history-side-group-title,
html[data-theme="light"] .history-side-group-title,
html[data-theme="light_apple"] .history-side-link,
html[data-theme="light"] .history-side-link {
    color: #132a35;
}

html[data-theme="light_apple"] .history-side-group[open] .history-side-group-title::after,
html[data-theme="light"] .history-side-group[open] .history-side-group-title::after,
html[data-theme="light_apple"] .history-side-group:not([open]) .history-side-group-title::after,
html[data-theme="light"] .history-side-group:not([open]) .history-side-group-title::after {
    color: #49616e;
}

html[data-theme="light_apple"] .history-side-link,
html[data-theme="light"] .history-side-link {
    background: rgba(237, 237, 237, 0.94);
    border: none;
}

html[data-theme="light_apple"] .history-side-link:hover,
html[data-theme="light"] .history-side-link:hover {
    background: #eef5fc;
}

html[data-theme="light_apple"] .history-side-link.is-active,
html[data-theme="light"] .history-side-link.is-active {
    background: #dce9f8;
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .side-mini-nav,
html[data-theme="light"] .side-mini-nav {
    background: #edf3f9;
    border: 1px solid #bccbd8;
}

html[data-theme="light_apple"] .side-mini-link,
html[data-theme="light"] .side-mini-link {
    background: rgba(237, 237, 237, 0.94);
    border-color: #c6d3de;
    color: #1c3846;
}

html[data-theme="light_apple"] .side-mini-link i,
html[data-theme="light"] .side-mini-link i {
    color: #3f5a67;
}

html[data-theme="light_apple"] .side-mini-link:hover,
html[data-theme="light"] .side-mini-link:hover {
    background: #eef5fc;
    border-color: #98afc0;
    color: #11242e;
}

html[data-theme="light_apple"] .side-mini-link.active,
html[data-theme="light"] .side-mini-link.active {
    background: #0c161a;
    border-color: transparent;
    color: #ffffff;
}

html[data-theme="light_apple"] .side-mini-link.active i,
html[data-theme="light"] .side-mini-link.active i {
    color: #ffffff;
}

html[data-theme="light_apple"] .history-ranking-link,
html[data-theme="light"] .history-ranking-link {
    background: #f4f8fc;
    border-color: #c4d4e2;
    color: #173244;
}

html[data-theme="light_apple"] .history-ranking-link:hover,
html[data-theme="light"] .history-ranking-link:hover {
    background: #eef5fc;
    border-color: #96b0c4;
    color: #0f2531;
}

html[data-theme="light_apple"] .history-ranking-link.is-active,
html[data-theme="light"] .history-ranking-link.is-active {
    background: #dce9f8;
    border-color: #88a7bf;
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .history-clips-section,
html[data-theme="light"] .history-clips-section {
    background: rgba(255, 255, 255, 0.98);
    border-color: #c4d2dd;
    box-shadow: none;
}

html[data-theme="light_apple"] .history-clips-sub,
html[data-theme="light"] .history-clips-sub,
html[data-theme="light_apple"] .history-clips-footnote,
html[data-theme="light"] .history-clips-footnote,
html[data-theme="light_apple"] .history-clips-feedback,
html[data-theme="light"] .history-clips-feedback,
html[data-theme="light_apple"] .history-clip-subline,
html[data-theme="light"] .history-clip-subline,
html[data-theme="light_apple"] .history-clips-empty,
html[data-theme="light"] .history-clips-empty {
    color: #51697a;
}

html[data-theme="light_apple"] .history-clips-feedback.is-error,
html[data-theme="light"] .history-clips-feedback.is-error {
    color: #b42318;
}

html[data-theme="light_apple"] .history-clips-stat,
html[data-theme="light"] .history-clips-stat,
html[data-theme="light_apple"] .history-clip-card,
html[data-theme="light"] .history-clip-card,
html[data-theme="light_apple"] .history-clips-empty,
html[data-theme="light"] .history-clips-empty {
    background: rgba(244, 247, 250, 0.96);
    border-color: #c5d3de;
}

html[data-theme="light_apple"] .history-clips-stat-label,
html[data-theme="light"] .history-clips-stat-label {
    color: #587181;
}

html[data-theme="light_apple"] .history-clips-stat-value,
html[data-theme="light"] .history-clips-stat-value,
html[data-theme="light_apple"] .history-clip-title,
html[data-theme="light"] .history-clip-title {
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .history-clip-thumb,
html[data-theme="light"] .history-clip-thumb {
    background: #dfe8f0;
}

html[data-theme="light_apple"] .history-clip-rank,
html[data-theme="light"] .history-clip-rank {
    color: #ffffff;
}

html[data-theme="light_apple"] .history-clip-views,
html[data-theme="light"] .history-clip-views {
    background: rgba(15, 23, 42, 0.82);
    color: #f8fafc;
}

html[data-theme="light_apple"] .history-clip-kicker,
html[data-theme="light"] .history-clip-kicker {
    color: #16406c;
    background: rgba(31, 111, 235, 0.12);
}

html[data-theme="light_apple"] .history-clip-lang,
html[data-theme="light"] .history-clip-lang {
    color: #31546e;
    background: rgba(49, 84, 110, 0.08);
}

html[data-theme="light_apple"] .member-music-filter-section,
html[data-theme="light"] .member-music-filter-section {
    background: color-mix(in srgb, var(--bg-dark) 96%, transparent);
}

html[data-theme="light_apple"] .member-music-filter-kicker,
html[data-theme="light"] .member-music-filter-kicker {
    color: #4f6674;
}

html[data-theme="light_apple"] .member-music-filter-summary,
html[data-theme="light"] .member-music-filter-summary {
    color: #173244;
}

html[data-theme="light_apple"] .member-music-count,
html[data-theme="light"] .member-music-count {
    color: #4f6674;
}

html[data-theme="light_apple"] .info-page-intro,
html[data-theme="light"] .info-page-intro {
    color: #4f6674;
}

html[data-theme="light_apple"] .info-page-meta,
html[data-theme="light"] .info-page-meta {
    color: #5d7482;
}

html[data-theme="light_apple"] .home-member-quick-title,
html[data-theme="light"] .home-member-quick-title {
    color: #143247;
}

html[data-theme="light_apple"] .home-member-quick-item,
html[data-theme="light"] .home-member-quick-item {
    color: #102434;
    background: rgba(248, 251, 253, 0.96);
    border-color: #c3d0db;
}

html[data-theme="light_apple"] .home-member-quick-item span,
html[data-theme="light"] .home-member-quick-item span {
    color: #143247;
}

html[data-theme="light_apple"] .home-member-quick-item:hover,
html[data-theme="light"] .home-member-quick-item:hover {
    background: #eef3f7;
}

html[data-theme="light_apple"] .myhome-section,
html[data-theme="light"] .myhome-section {
    background: rgba(252, 254, 255, 0.98);
    border-color: #bcccdc;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .myhome-title,
html[data-theme="light"] .myhome-title {
    color: #102433;
}

html[data-theme="light_apple"] .myhome-sub,
html[data-theme="light"] .myhome-sub,
html[data-theme="light_apple"] .myhome-empty-copy,
html[data-theme="light"] .myhome-empty-copy {
    color: #486171;
}

html[data-theme="light_apple"] .myhome-count,
html[data-theme="light"] .myhome-count,
html[data-theme="light_apple"] .myhome-card-meta,
html[data-theme="light"] .myhome-card-meta {
    color: #5d7482;
}

html[data-theme="light_apple"] .myhome-register-label,
html[data-theme="light"] .myhome-register-label {
    color: #4f6675;
}

html[data-theme="light_apple"] .myhome-register-select,
html[data-theme="light"] .myhome-register-select {
    background: #f8fbff;
    border-color: #bfd0de;
    color: #102433;
}

html[data-theme="light_apple"] .myhome-card,
html[data-theme="light"] .myhome-card {
    background: #f8fbff;
    border-color: #bfd0de;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .myhome-card-name,
html[data-theme="light"] .myhome-card-name {
    color: #102433;
}

html[data-theme="light_apple"] .myhome-card-link,
html[data-theme="light"] .myhome-card-link,
html[data-theme="light_apple"] .myhome-card-remove,
html[data-theme="light"] .myhome-card-remove {
    background: rgba(248, 251, 255, 0.98);
    border-color: #c3d0db;
    color: #173244;
}

html[data-theme="light_apple"] .myhome-card-link:hover,
html[data-theme="light"] .myhome-card-link:hover,
html[data-theme="light_apple"] .myhome-card-remove:hover,
html[data-theme="light"] .myhome-card-remove:hover {
    background: #eef5fc;
    color: #102433;
}

html[data-theme="light_apple"] .myhome-empty,
html[data-theme="light"] .myhome-empty {
    background: rgba(248, 251, 255, 0.92);
    border-color: #c7d5e0;
}

html[data-theme="light_apple"] .inline-time,
html[data-theme="light"] .inline-time {
    color: #1e40af;
    background: rgba(30, 64, 175, 0.1);
    border-color: rgba(30, 64, 175, 0.18);
}

html[data-theme="light_apple"] .stats-row-val .unit-small,
html[data-theme="light"] .stats-row-val .unit-small {
    color: currentColor;
    opacity: 0.72;
}

html[data-theme="light_apple"] .info-page-row-copy,
html[data-theme="light"] .info-page-row-copy,
html[data-theme="light_apple"] .info-page-row-title,
html[data-theme="light"] .info-page-row-title {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .info-page-inline-link,
html[data-theme="light"] .info-page-inline-link {
    color: #1f6feb;
}

html[data-theme="light_apple"] .error-state-card,
html[data-theme="light"] .error-state-card {
    background:
        rgba(253, 254, 255, 0.98);
    border-color: #c0d1de;
    box-shadow: none;
}

html[data-theme="light_apple"] .error-state-eyebrow,
html[data-theme="light"] .error-state-eyebrow {
    background: rgba(37, 99, 235, 0.1);
    color: #1f4d73;
}

html[data-theme="light_apple"] .error-state-title,
html[data-theme="light"] .error-state-title,
html[data-theme="light_apple"] .error-state-link,
html[data-theme="light"] .error-state-link {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .error-state-copy,
html[data-theme="light"] .error-state-copy,
html[data-theme="light_apple"] .error-state-meta,
html[data-theme="light"] .error-state-meta {
    color: #607885;
}

html[data-theme="light_apple"] .error-state-link,
html[data-theme="light"] .error-state-link {
    background: #ffffff;
    border-color: #c0d1de;
}

html[data-theme="light_apple"] .error-state-link:hover,
html[data-theme="light_apple"] .error-state-link:focus-visible,
html[data-theme="light"] .error-state-link:hover,
html[data-theme="light"] .error-state-link:focus-visible {
    background: #eef4fb;
    border-color: #8ea4b3;
}

html[data-theme="light_apple"] .error-state-link.is-primary,
html[data-theme="light"] .error-state-link.is-primary {
    background: #13202b;
    border-color: #13202b;
    color: #ffffff;
}

html[data-theme="light_apple"] .timeline-status-note,
html[data-theme="light"] .timeline-status-note {
    background: rgba(248, 251, 255, 0.96);
    border-color: #c4d2dd;
    color: var(--base-ink);
}

html[data-theme="light_apple"] .timeline-status-note.is-live,
html[data-theme="light"] .timeline-status-note.is-live {
    background: rgba(34, 197, 94, 0.08);
    border-color: rgba(34, 197, 94, 0.18);
}

html[data-theme="light_apple"] .timeline-status-note.is-stale,
html[data-theme="light"] .timeline-status-note.is-stale {
    background: rgba(31, 111, 235, 0.08);
    border-color: rgba(31, 111, 235, 0.18);
}

html[data-theme="light_apple"] .timeline-status-note.is-error,
html[data-theme="light"] .timeline-status-note.is-error {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.18);
}

html[data-theme="light_apple"] .timeline-status-note-main strong,
html[data-theme="light"] .timeline-status-note-main strong,
html[data-theme="light_apple"] .timeline-status-note-main span,
html[data-theme="light"] .timeline-status-note-main span {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .history-next-panel,
html[data-theme="light"] .history-next-panel {
    background: #eef4fb;
    border-color: #c0cfdc;
}

html[data-theme="light_apple"] .history-next-title,
html[data-theme="light"] .history-next-title {
    color: #1b3645;
}

html[data-theme="light_apple"] .history-next-shortcut-chip,
html[data-theme="light"] .history-next-shortcut-chip {
    background: #ffffff;
    border-color: #c3d2de;
    color: #173244;
}

html[data-theme="light_apple"] .history-next-shortcut-chip i,
html[data-theme="light"] .history-next-shortcut-chip i {
    color: #4a687d;
}

html[data-theme="light_apple"] .history-next-shortcut-chip:hover,
html[data-theme="light"] .history-next-shortcut-chip:hover {
    background: #eef5fc;
    border-color: #99afbf;
}

html[data-theme="light_apple"] .history-next-member-chip,
html[data-theme="light"] .history-next-member-chip {
    background: #ffffff;
    border-color: color-mix(in oklab, var(--oshi-color, #6b7f90) 45%, #c1cfdb);
    color: #183140;
}

html[data-theme="light_apple"] .history-next-member-chip:hover,
html[data-theme="light"] .history-next-member-chip:hover {
    background: #eef5fc;
}

html[data-theme="light_apple"] .history-next-member-chip span,
html[data-theme="light"] .history-next-member-chip span {
    color: #183140;
}

html[data-theme="light_apple"] .member-card,
html[data-theme="light"] .member-card {
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .member-card:hover,
html[data-theme="light"] .member-card:hover {
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .member-card__group,
html[data-theme="light"] .member-card__group {
    color: #2a3c45;
    border-color: #ced9e2;
    background: #f3f8fc;
}

html[data-theme="light_apple"] .history-timeline-title,
html[data-theme="light"] .history-timeline-title,
html[data-theme="light_apple"] .history-timeline-date-text,
html[data-theme="light"] .history-timeline-date-text,
html[data-theme="light_apple"] .history-timeline-subtitle,
html[data-theme="light"] .history-timeline-subtitle,
html[data-theme="light_apple"] .history-timeline-stat,
html[data-theme="light"] .history-timeline-stat,
html[data-theme="light_apple"] .history-rss-title,
html[data-theme="light"] .history-rss-title,
html[data-theme="light_apple"] .history-rss-meta,
html[data-theme="light"] .history-rss-meta {
    color: var(--base-ink) !important;
    opacity: 1 !important;
}

html[data-theme="light_apple"] .history-timeline-item,
html[data-theme="light"] .history-timeline-item,
html[data-theme="light_apple"] .history-archive-row-card,
html[data-theme="light"] .history-archive-row-card {
    background: #ffffff;
    border-color: #c6d2dd;
}

/* Override inline pink banner text in stats_hub */
html[data-theme="light_apple"] .stats-hub-grid .timeline-section > a[style*="rgba(236,72,153"],
html[data-theme="light"] .stats-hub-grid .timeline-section > a[style*="rgba(236,72,153"] {
    background: #ffeef7 !important;
    border-color: #f7bddb !important;
}

html[data-theme="light_apple"] .stats-hub-grid .timeline-section > a[style*="rgba(236,72,153"] div,
html[data-theme="light"] .stats-hub-grid .timeline-section > a[style*="rgba(236,72,153"] div {
    color: #2a3f55 !important;
    opacity: 1 !important;
}

/* Stream thumbnail polish (light mode): remove heavy dark glow. */
html[data-theme="light_apple"] .stream-graph-page .main-thumb-wrapper,
html[data-theme="light"] .stream-graph-page .main-thumb-wrapper {
    border: 1px solid #c5d3de;
    box-shadow: var(--shadow-soft-2);
    border-radius: 14px;
}

html[data-theme="light_apple"] .stream-graph-page .main-thumb-wrapper.sg-player-pin::before,
html[data-theme="light"] .stream-graph-page .main-thumb-wrapper.sg-player-pin::before {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
}

html[data-theme="light_apple"] .stream-graph-page .main-thumb-wrapper img,
html[data-theme="light"] .stream-graph-page .main-thumb-wrapper img {
    filter: saturate(1.03) contrast(1.01);
}

/* Stream graph related blocks spacing */
html[data-theme="light_apple"] .stream-graph-page .related-section,
html[data-theme="light"] .stream-graph-page .related-section {
    padding: 16px 16px 18px;
    border-radius: 14px;
}

html[data-theme="light_apple"] .music-ranking-page .music-ranking-list-panel,
html[data-theme="light"] .music-ranking-page .music-ranking-list-panel {
    background: rgba(237, 237, 237, 0.72);
}

html[data-theme="light_apple"] .music-ranking-page .music-ranking-list,
html[data-theme="light"] .music-ranking-page .music-ranking-list {
    gap: 4px;
}

html[data-theme="light_apple"] .shorts-ranking-page .music-ranking-list-panel,
html[data-theme="light"] .shorts-ranking-page .music-ranking-list-panel {
    background: rgba(237, 237, 237, 0.72);
}

html[data-theme="light_apple"] .shorts-ranking-page .shorts-ranking-list,
html[data-theme="light"] .shorts-ranking-page .shorts-ranking-list {
    gap: 4px;
}

html[data-theme="light_apple"] .footer-seo-copy,
html[data-theme="light"] .footer-seo-copy,
html[data-theme="light_apple"] .site-footer,
html[data-theme="light"] .site-footer,
html[data-theme="light_apple"] .site-footer-links a,
html[data-theme="light"] .site-footer-links a {
    color: #2a3c45 !important;
    opacity: 1 !important;
}

html[data-theme="light_apple"] .stream-graph-page .related-section .sec-title,
html[data-theme="light"] .stream-graph-page .related-section .sec-title {
    margin: 0 0 14px;
    padding: 8px 0 10px;
}

html[data-theme="light_apple"] .stream-graph-page .related-section .related-row,
html[data-theme="light"] .stream-graph-page .related-section .related-row {
    padding: 6px 2px 2px;
    gap: 16px;
}

html[data-theme="light_apple"] .sg-compare-chip,
html[data-theme="light"] .sg-compare-chip,
html[data-theme="light_apple"] .sg-compare-clear,
html[data-theme="light"] .sg-compare-clear,
html[data-theme="light_apple"] .sg-compare-actions a,
html[data-theme="light"] .sg-compare-actions a {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(42, 60, 69, 0.14);
    color: #243642;
}

html[data-theme="light_apple"] .sg-compare-actions a:first-child,
html[data-theme="light"] .sg-compare-actions a:first-child {
    background: #2d7eff;
    border-color: rgba(45, 126, 255, 0.3);
    color: #fff;
}

html[data-theme="light_apple"] .sg-compare-card-main:hover .stream-title,
html[data-theme="light"] .sg-compare-card-main:hover .stream-title {
    color: #0f2530;
}

/* History page reset for light mode: layout stays same, colors become dedicated light pattern */
html[data-theme="light_apple"] .history-page,
html[data-theme="light"] .history-page {
    background: transparent;
    border-radius: 0;
    padding-top: 18px;
}

html[data-theme="light_apple"] .history-header,
html[data-theme="light"] .history-header {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #bacbda !important;
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .history-name,
html[data-theme="light"] .history-name {
    color: #0f1d2a !important;
}

html[data-theme="light_apple"] .history-unit-tag,
html[data-theme="light"] .history-unit-tag {
    color: #6e80c7 !important;
}

html[data-theme="light_apple"] .history-data-note,
html[data-theme="light"] .history-data-note {
    color: #627789 !important;
}

html[data-theme="light_apple"] .history-header-stats .s-card,
html[data-theme="light"] .history-header-stats .s-card {
    background: #f7fafd !important;
    border: 1px solid #bfd0df !important;
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .history-header-stats .s-card-label,
html[data-theme="light"] .history-header-stats .s-card-label {
    color: #476072 !important;
}

html[data-theme="light_apple"] .history-header-stats .s-card-val,
html[data-theme="light"] .history-header-stats .s-card-val {
    color: #0f1d2a !important;
}

html[data-theme="light_apple"] .history-fv-record,
html[data-theme="light"] .history-fv-record {
    background: #f7fafd !important;
    border-color: #c8d7e4 !important;
}

html[data-theme="light_apple"] .history-fv-record span,
html[data-theme="light"] .history-fv-record span,
html[data-theme="light_apple"] .history-fv-record small,
html[data-theme="light"] .history-fv-record small {
    color: #607489 !important;
}

html[data-theme="light_apple"] .history-fv-record strong,
html[data-theme="light"] .history-fv-record strong {
    color: #0f1d2a !important;
}

html[data-theme="light_apple"] .history-favorite-btn,
html[data-theme="light"] .history-favorite-btn {
    background: rgba(31, 111, 235, 0.1);
    border-color: rgba(31, 111, 235, 0.2);
    color: #123652;
}

html[data-theme="light_apple"] .history-favorite-btn.is-active,
html[data-theme="light"] .history-favorite-btn.is-active {
    background: #1f6feb;
    border-color: transparent;
    color: #ffffff;
}

html[data-theme="light_apple"] .history-home-hint,
html[data-theme="light"] .history-home-hint {
    color: #587082;
}

html[data-theme="light_apple"] .history-game-tags.is-top,
html[data-theme="light"] .history-game-tags.is-top {
    background: rgba(240, 245, 251, 0.92) !important;
    border: 1px solid #b8c8d8 !important;
}

html[data-theme="light_apple"] .tag-chip,
html[data-theme="light"] .tag-chip {
    color: #1f3444 !important;
    background: rgba(255, 255, 255, 0.82) !important;
    border-color: #c2d0dc !important;
}

html[data-theme="light_apple"] .tag-count,
html[data-theme="light"] .tag-count {
    color: #2f5f8e !important;
    background: #d9e7f7 !important;
}

html[data-theme="light_apple"] .history-section,
html[data-theme="light"] .history-section {
    background: rgba(247, 250, 253, 0.9);
    border: 1px solid #bcccdc;
    border-radius: 14px;
    padding: 12px;
}

html[data-theme="light_apple"] .history-fans-box,
html[data-theme="light"] .history-fans-box {
    background: #f8fbff !important;
    border: 1px solid #bfd0de !important;
}

html[data-theme="light_apple"] .history-fan-item,
html[data-theme="light"] .history-fan-item {
    border-bottom: 1px solid #d4e0ea !important;
    background: linear-gradient(90deg, rgba(255, 195, 74, 0.09) 0%, rgba(255, 195, 74, 0.03) var(--fan-fill, 0%), transparent var(--fan-fill, 0%)) !important;
}

html[data-theme="light_apple"] .history-fan-item:hover,
html[data-theme="light"] .history-fan-item:hover {
    background: #edf4fb !important;
}

html[data-theme="light_apple"] .history-fan-fill,
html[data-theme="light"] .history-fan-fill {
    background: transparent !important;
}

html[data-theme="light_apple"] .history-fan-name,
html[data-theme="light"] .history-fan-name {
    color: #162839 !important;
}

html[data-theme="light_apple"] .history-fan-rank,
html[data-theme="light"] .history-fan-rank {
    color: #6c7d8d !important;
}

html[data-theme="light_apple"] .history-fan-rank.is-top,
html[data-theme="light"] .history-fan-rank.is-top {
    color: #c27f00 !important;
}

html[data-theme="light_apple"] .history-timeline-item,
html[data-theme="light"] .history-timeline-item {
    background: #f9fbfe !important;
    border: 1px solid #c0cfdd !important;
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .history-timeline-header,
html[data-theme="light"] .history-timeline-header {
    border-bottom: 1px solid #d6e1eb;
}

html[data-theme="light_apple"] .history-timeline-date,
html[data-theme="light"] .history-timeline-date,
html[data-theme="light_apple"] .history-timeline-ratio-main,
html[data-theme="light"] .history-timeline-ratio-main {
    color: #132231 !important;
}

html[data-theme="light_apple"] .history-timeline-subtitle,
html[data-theme="light"] .history-timeline-subtitle {
    color: #5e7487 !important;
}

html[data-theme="light_apple"] .history-timeline-stat.is-dislike,
html[data-theme="light"] .history-timeline-stat.is-dislike,
html[data-theme="light_apple"] .history-timeline-stat.is-comment,
html[data-theme="light"] .history-timeline-stat.is-comment {
    color: #4d6170 !important;
}

html[data-theme="light_apple"] .history-timeline-right,
html[data-theme="light"] .history-timeline-right {
    border-left: 1px solid #d1dbe5 !important;
}

html[data-theme="light_apple"] .history-timeline-streams,
html[data-theme="light"] .history-timeline-streams {
    border-top: 1px dashed #c5d1db !important;
}

html[data-theme="light_apple"] .history-rss-day,
html[data-theme="light"] .history-rss-day {
    background: #f4f8fd !important;
    border: 1px solid #bdcddd !important;
}

html[data-theme="light_apple"] .history-rss-date,
html[data-theme="light"] .history-rss-date {
    color: #4a6175 !important;
}

html[data-theme="light_apple"] .history-rss-title,
html[data-theme="light"] .history-rss-title {
    color: #142536 !important;
}

html[data-theme="light_apple"] .history-rss-meta,
html[data-theme="light"] .history-rss-meta {
    color: #5e7486 !important;
}

html[data-theme="light_apple"] .history-rss-chip.is-cat,
html[data-theme="light"] .history-rss-chip.is-cat {
    color: #4f6478 !important;
    background: #e9f0f7 !important;
    border-color: #c7d4e0 !important;
}

html[data-theme="light_apple"] .history-rss-chip.is-member,
html[data-theme="light"] .history-rss-chip.is-member {
    color: #6b74c0 !important;
    background: #eef1ff !important;
    border-color: #c7cdf5 !important;
}

html[data-theme="light_apple"] .history-timeline-news,
html[data-theme="light"] .history-timeline-news {
    background: #eef4fb !important;
    border-top: 1px solid #c2d1df !important;
    border-bottom: 1px solid #c2d1df !important;
    border-left: none !important;
    border-right: none !important;
}

html[data-theme="light_apple"] .history-timeline-news .history-rss-title,
html[data-theme="light"] .history-timeline-news .history-rss-title {
    color: #112538 !important;
}

html[data-theme="light_apple"] .history-timeline-news .history-rss-meta,
html[data-theme="light"] .history-timeline-news .history-rss-meta,
html[data-theme="light_apple"] .history-timeline-news .history-rss-source,
html[data-theme="light"] .history-timeline-news .history-rss-source,
html[data-theme="light_apple"] .history-timeline-news .history-rss-time,
html[data-theme="light"] .history-timeline-news .history-rss-time {
    color: #50687d !important;
}

html[data-theme="light_apple"] .shorts-ranking-item,
html[data-theme="light"] .shorts-ranking-item {
    background: #f9fbfe !important;
    border-color: #c0cfdd !important;
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .shorts-ranking-item:hover,
html[data-theme="light"] .shorts-ranking-item:hover {
    background: #f1f6fc !important;
    border-color: #9eb7cc !important;
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .shorts-thumb-wrap,
html[data-theme="light"] .shorts-thumb-wrap {
    border: 1px solid #c6d5e2;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .shorts-title,
html[data-theme="light"] .shorts-title {
    color: #122638 !important;
}

html[data-theme="light_apple"] .shorts-meta,
html[data-theme="light"] .shorts-meta,
html[data-theme="light_apple"] .shorts-stat,
html[data-theme="light"] .shorts-stat {
    color: #4b6174 !important;
}

html[data-theme="light_apple"] .shorts-stat.highlight,
html[data-theme="light"] .shorts-stat.highlight {
    color: #102434 !important;
}

html[data-theme="light_apple"] .shorts-author,
html[data-theme="light"] .shorts-author {
    color: #1f4f78 !important;
}

html[data-theme="light_apple"] .history-timeline-actions .ios-toggle,
html[data-theme="light"] .history-timeline-actions .ios-toggle {
    background: #f7fbff !important;
    border: 1px solid #c7d5e1 !important;
    color: #1a3444 !important;
}

html[data-theme="light_apple"] .history-timeline-actions .ios-toggle__label,
html[data-theme="light"] .history-timeline-actions .ios-toggle__label {
    color: #163243 !important;
}

html[data-theme="light_apple"] .history-timeline-actions .ios-toggle__ui,
html[data-theme="light"] .history-timeline-actions .ios-toggle__ui {
    background: #d6e0ea !important;
    border-color: #b4c4d1 !important;
}

html[data-theme="light_apple"] .history-timeline-actions .ios-toggle__ui::after,
html[data-theme="light"] .history-timeline-actions .ios-toggle__ui::after {
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(12, 22, 26, 0.18) !important;
}

html[data-theme="light_apple"] .ratio-card__rank,
html[data-theme="light"] .ratio-card__rank {
    color: #5a6a7d !important;
    text-shadow: none !important;
}

html[data-theme="light_apple"] .rk-1 .ratio-card__rank,
html[data-theme="light"] .rk-1 .ratio-card__rank {
    color: #a56a00 !important;
}

html[data-theme="light_apple"] .rk-2 .ratio-card__rank,
html[data-theme="light"] .rk-2 .ratio-card__rank {
    color: #5f7388 !important;
}

html[data-theme="light_apple"] .rk-3 .ratio-card__rank,
html[data-theme="light"] .rk-3 .ratio-card__rank {
    color: #9b6331 !important;
}

/* Stream graph readability hardening (light mode) */
html[data-theme="light_apple"] .stream-graph-page .sg-tag-row,
html[data-theme="light"] .stream-graph-page .sg-tag-row {
    background: rgba(238, 245, 251, 0.92);
    border-color: #bfd0dd;
}

html[data-theme="light_apple"] .stream-graph-page .sg-tag-chip,
html[data-theme="light"] .stream-graph-page .sg-tag-chip {
    background: #f8fbff;
    border: 1px solid #c6d4df;
    color: #123042;
    box-shadow: none;
}

html[data-theme="light_apple"] .stream-graph-page .sg-tag-chip:hover,
html[data-theme="light"] .stream-graph-page .sg-tag-chip:hover {
    background: #eef5fc;
    border-color: #9ab2c2;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .stream-graph-page .sg-pref-toggles,
html[data-theme="light"] .stream-graph-page .sg-pref-toggles {
    background: transparent;
    border: 0;
    box-shadow: none;
}

html[data-theme="light_apple"] .stream-graph-page .sg-actions[data-stream-graph-prefs],
html[data-theme="light"] .stream-graph-page .sg-actions[data-stream-graph-prefs] {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .stream-graph-page .sg-actions.sg-actions--plain,
html[data-theme="light"] .stream-graph-page .sg-actions.sg-actions--plain {
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .stream-graph-page .sg-pref-toggles .ios-toggle,
html[data-theme="light"] .stream-graph-page .sg-pref-toggles .ios-toggle {
    background: #f7fbff;
    border: 1px solid #c7d5e1;
    color: #1a3444;
}

html[data-theme="light_apple"] .stream-graph-page .sg-pref-toggles .ios-toggle__label,
html[data-theme="light"] .stream-graph-page .sg-pref-toggles .ios-toggle__label {
    color: #163243;
    font-size: 0.875rem;
    font-weight: 800;
}

html[data-theme="light_apple"] .stream-graph-page .sg-pref-toggles .ios-toggle__ui,
html[data-theme="light"] .stream-graph-page .sg-pref-toggles .ios-toggle__ui {
    background: #d6e0ea;
    border-color: #b4c4d1;
}

html[data-theme="light_apple"] .stream-graph-page .sg-pref-toggles .ios-toggle__ui::after,
html[data-theme="light"] .stream-graph-page .sg-pref-toggles .ios-toggle__ui::after {
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(12, 22, 26, 0.18);
}

html[data-theme="light_apple"] .stream-graph-page .s-card,
html[data-theme="light"] .stream-graph-page .s-card {
    background: #f7fbff;
    border: 1px solid #c3d2de;
    box-shadow: var(--shadow-soft-2);
}

html[data-theme="light_apple"] .stream-graph-page .s-card-label,
html[data-theme="light"] .stream-graph-page .s-card-label,
html[data-theme="light_apple"] .stream-graph-page .s-card-sub,
html[data-theme="light"] .stream-graph-page .s-card-sub,
html[data-theme="light_apple"] .stream-graph-page .graph-title,
html[data-theme="light"] .stream-graph-page .graph-title {
    color: #395463 !important;
}

html[data-theme="light_apple"] .stream-graph-page .s-card-val,
html[data-theme="light"] .stream-graph-page .s-card-val,
html[data-theme="light_apple"] .stream-graph-page .stream-card .stream-title,
html[data-theme="light"] .stream-graph-page .stream-card .stream-title,
html[data-theme="light_apple"] .stream-graph-page .stream-card .owner-name,
html[data-theme="light"] .stream-graph-page .stream-card .owner-name,
html[data-theme="light_apple"] .stream-graph-page .stream-card .stat-item,
html[data-theme="light"] .stream-graph-page .stream-card .stat-item {
    color: var(--text-main, #35485a) !important;
}

html[data-theme="light_apple"] .stream-graph-page .stream-card .stat-item i,
html[data-theme="light"] .stream-graph-page .stream-card .stat-item i {
    color: #4e6675 !important;
}

/* Stream graph: in color mode, remove outer frame lines around graph/card area */
html[data-theme="light_apple"][data-custom-accent="1"] .stream-graph-page .sg-sticky-scope,
html[data-theme="light"][data-custom-accent="1"] .stream-graph-page .sg-sticky-scope,
html[data-theme="light_apple"][data-palette] .stream-graph-page .sg-sticky-scope,
html[data-theme="light"][data-palette] .stream-graph-page .sg-sticky-scope {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"][data-custom-accent="1"] .stream-graph-page .graph-container,
html[data-theme="light"][data-custom-accent="1"] .stream-graph-page .graph-container,
html[data-theme="light_apple"][data-palette] .stream-graph-page .graph-container,
html[data-theme="light"][data-palette] .stream-graph-page .graph-container {
    border: none !important;
}

/* Shorts ranking readability (light mode + mobile) */
html[data-theme="light_apple"] .shorts-ranking-item,
html[data-theme="light"] .shorts-ranking-item {
    box-shadow: var(--shadow-soft-2) !important;
}

html[data-theme="light_apple"] .shorts-ranking-item .shorts-date,
html[data-theme="light"] .shorts-ranking-item .shorts-date,
html[data-theme="light_apple"] .shorts-ranking-item .shorts-stat,
html[data-theme="light"] .shorts-ranking-item .shorts-stat {
    color: #3f5767 !important;
}

@media (max-width: 600px) {
    html[data-theme="light_apple"] .shorts-ranking-item,
    html[data-theme="light"] .shorts-ranking-item {
        background: #f8fbff !important;
        border-color: #b9cddd !important;
    }

    html[data-theme="light_apple"] .shorts-ranking-item .shorts-title,
    html[data-theme="light"] .shorts-ranking-item .shorts-title {
        color: #102434 !important;
        font-weight: 800;
    }
}

/* Oshi maker readability (light mode) */
html[data-theme="light_apple"] .oshi-maker-page .oshi-maker-hero,
html[data-theme="light"] .oshi-maker-page .oshi-maker-hero {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-maker-form-panel,
html[data-theme="light"] .oshi-maker-page .oshi-maker-form-panel {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .history-section,
html[data-theme="light"] .history-section,
html[data-theme="light_apple"] .history-next-panel,
html[data-theme="light"] .history-next-panel,
html[data-theme="light_apple"] .search-panel,
html[data-theme="light"] .search-panel,
html[data-theme="light_apple"] .member-music-section,
html[data-theme="light"] .member-music-section,
html[data-theme="light_apple"] .music-ranking-page .music-ranking-list-panel,
html[data-theme="light"] .music-ranking-page .music-ranking-list-panel,
html[data-theme="light_apple"] .shorts-ranking-page .music-ranking-list-panel,
html[data-theme="light"] .shorts-ranking-page .music-ranking-list-panel,
html[data-theme="light_apple"] .stream-graph-page .related-section,
html[data-theme="light"] .stream-graph-page .related-section,
html[data-theme="light_apple"] .oshi-share-page .oshi-share-preview-shell,
html[data-theme="light"] .oshi-share-page .oshi-share-preview-shell,
html[data-theme="light_apple"] .oshi-share-page .oshi-share-selected-shell,
html[data-theme="light"] .oshi-share-page .oshi-share-selected-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-share-page .oshi-share-preview-shell,
html[data-theme="light"] .oshi-share-page .oshi-share-preview-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-share-page .oshi-share-selected-shell,
html[data-theme="light"] .oshi-share-page .oshi-share-selected-shell {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-maker-block,
html[data-theme="light"] .oshi-maker-page .oshi-maker-block {
    background: var(--bg-card) !important;
    border: none !important;
    border-radius: var(--ui-radius) !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .section-title,
html[data-theme="light"] .oshi-maker-page .section-title,
html[data-theme="light_apple"] .oshi-maker-page .oshi-song-section-title,
html[data-theme="light"] .oshi-maker-page .oshi-song-section-title,
html[data-theme="light_apple"] .oshi-maker-page .oshi-member-name,
html[data-theme="light"] .oshi-maker-page .oshi-member-name,
html[data-theme="light_apple"] .oshi-maker-page .oshi-song-meta strong,
html[data-theme="light"] .oshi-maker-page .oshi-song-meta strong {
    color: #102433 !important;
}

html[data-theme="light_apple"] .oshi-maker-page .music-ranking-empty,
html[data-theme="light"] .oshi-maker-page .music-ranking-empty,
html[data-theme="light_apple"] .oshi-maker-page .oshi-field-label,
html[data-theme="light"] .oshi-maker-page .oshi-field-label,
html[data-theme="light_apple"] .oshi-maker-page .oshi-song-count,
html[data-theme="light"] .oshi-maker-page .oshi-song-count,
html[data-theme="light_apple"] .oshi-maker-page .oshi-song-section-count,
html[data-theme="light"] .oshi-maker-page .oshi-song-section-count,
html[data-theme="light_apple"] .oshi-maker-page .oshi-song-meta span,
html[data-theme="light"] .oshi-maker-page .oshi-song-meta span,
html[data-theme="light_apple"] .oshi-maker-page .history-affiliation,
html[data-theme="light"] .oshi-maker-page .history-affiliation {
    color: #3f5968 !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-input,
html[data-theme="light"] .oshi-maker-page .oshi-input,
html[data-theme="light_apple"] .oshi-maker-page .oshi-textarea,
html[data-theme="light"] .oshi-maker-page .oshi-textarea {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: transparent !important;
    border-radius: var(--ui-radius) !important;
    color: #102433 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-input::placeholder,
html[data-theme="light"] .oshi-maker-page .oshi-input::placeholder,
html[data-theme="light_apple"] .oshi-maker-page .oshi-textarea::placeholder,
html[data-theme="light"] .oshi-maker-page .oshi-textarea::placeholder {
    color: #69818f !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-upload-box,
html[data-theme="light"] .oshi-maker-page .oshi-upload-box {
    background: var(--bg-card) !important;
    border-color: transparent !important;
    border-radius: var(--ui-radius) !important;
    color: #16303d !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .history-social-btn,
html[data-theme="light"] .oshi-maker-page .history-social-btn {
    background: var(--bg-card) !important;
    border-color: transparent !important;
    border-radius: var(--ui-radius) !important;
    color: #1b3441 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-maker-submit-btn,
html[data-theme="light"] .oshi-maker-page .oshi-maker-submit-btn {
    background: #fff2f6 !important;
    border-color: transparent !important;
    border-radius: var(--ui-radius) !important;
    color: #8d2447 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-maker-page .oshi-maker-ranking-btn,
html[data-theme="light"] .oshi-maker-page .oshi-maker-ranking-btn {
    background: #f4f8fc !important;
    border-color: transparent !important;
    border-radius: var(--ui-radius) !important;
    color: #21435b !important;
    box-shadow: none !important;
}

/* Oshi share readability (light mode) */
html[data-theme="light_apple"] .oshi-share-page .oshi-share-hero,
html[data-theme="light"] .oshi-share-page .oshi-share-hero {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .oshi-share-page .oshi-share-created-note,
html[data-theme="light"] .oshi-share-page .oshi-share-created-note,
html[data-theme="light_apple"] .oshi-share-page .music-ranking-empty,
html[data-theme="light"] .oshi-share-page .music-ranking-empty {
    color: #3f5968 !important;
}

html[data-theme="light_apple"],
html[data-theme="light"] {
    --shadow-soft-1: none;
    --shadow-soft-2: none;
    --shadow-card: none;
    --shadow-glow: none;
    --ui-radius: 6px;
    --ui-radius-inner: max(2px, calc(var(--ui-radius) - 2px));
    --card-radius-md: var(--ui-radius);
    --card-radius-lg: var(--ui-radius);
}

html[data-theme="light_apple"] :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"]
),
html[data-theme="light"] :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;
}

html[data-theme="light_apple"] :is(
    .members-search,
    .members-chips .chip,
    .member-card,
    .member-card__group,
    .upcoming-event-box,
    .upcoming-event-item,
    .history-next-member-chip
),
html[data-theme="light"] :is(
    .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;
}

html[data-theme="light_apple"] .member-card::before,
html[data-theme="light"] .member-card::before {
    display: none !important;
}

html[data-theme="light_apple"] .oshi-share-page .oshi-share-member-tags .pill,
html[data-theme="light"] .oshi-share-page .oshi-share-member-tags .pill {
    background: #f4f8fc !important;
    border-color: transparent !important;
    color: #1b3340 !important;
}

/* Apple structural parity for the light theme while preserving the current light palette. */
html[data-theme="light_apple"],
html[data-theme="light"] {
    --content-max: 1120px;
    --shadow-card: none;
    --shadow-soft-2: none;
}

html[data-theme="light_apple"] body,
html[data-theme="light"] body {
    background: var(--bg-dark);
}

html[data-theme="light_apple"] .header-container,
html[data-theme="light"] .header-container {
    background: color-mix(in srgb, var(--bg-dark) 88%, transparent);
    border-bottom-color: #c4d1db;
    box-shadow: none;
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
}

html[data-theme="light_apple"] .pill,
html[data-theme="light"] .pill,
html[data-theme="light_apple"] .theme-mode-chip,
html[data-theme="light"] .theme-mode-chip,
html[data-theme="light_apple"] .home-command__link,
html[data-theme="light"] .home-command__link {
    background: transparent;
    border-radius: 999px;
    min-height: 34px;
    font-weight: 400;
    box-shadow: none;
}

html[data-theme="light_apple"] .pill:hover,
html[data-theme="light"] .pill:hover,
html[data-theme="light_apple"] .theme-mode-chip:hover,
html[data-theme="light"] .theme-mode-chip:hover,
html[data-theme="light_apple"] .home-command__link:hover,
html[data-theme="light"] .home-command__link:hover {
    background: #f7fbff;
    border-color: #95aabd;
    box-shadow: none;
}

html[data-theme="light_apple"] .pill.active,
html[data-theme="light"] .pill.active,
html[data-theme="light_apple"] .theme-mode-chip.is-active,
html[data-theme="light"] .theme-mode-chip.is-active {
    background: var(--base-ink);
    color: #ffffff;
    border-color: transparent;
    box-shadow: none;
}

html[data-theme="light_apple"] .dashboard-desc,
html[data-theme="light"] .dashboard-desc,
html[data-theme="light_apple"] .simple-ranking-hero,
html[data-theme="light"] .simple-ranking-hero,
html[data-theme="light_apple"] .home-command,
html[data-theme="light"] .home-command,
html[data-theme="light_apple"] .qa-btn,
html[data-theme="light"] .qa-btn,
html[data-theme="light_apple"] .music-ranking-page .section-card,
html[data-theme="light"] .music-ranking-page .section-card,
html[data-theme="light_apple"] .search-panel,
html[data-theme="light"] .search-panel,
html[data-theme="light_apple"] .history-header,
html[data-theme="light"] .history-header,
html[data-theme="light_apple"] .profile-card,
html[data-theme="light"] .profile-card,
html[data-theme="light_apple"] .simple-ranking-card,
html[data-theme="light"] .simple-ranking-card,
html[data-theme="light_apple"] .stream-card,
html[data-theme="light"] .stream-card,
html[data-theme="light_apple"] .ranking-card-detailed,
html[data-theme="light"] .ranking-card-detailed,
html[data-theme="light_apple"] .ratio-card,
html[data-theme="light"] .ratio-card,
html[data-theme="light_apple"] .s-card,
html[data-theme="light"] .s-card,
html[data-theme="light_apple"] .stats-hub-hero-card,
html[data-theme="light"] .stats-hub-hero-card {
    background: #f8fbff;
    border: 1px solid #c6d3dd;
    box-shadow: var(--shadow-card);
}

html[data-theme="light_apple"] .home-command__stat,
html[data-theme="light"] .home-command__stat,
html[data-theme="light_apple"] .home-command__spotlight,
html[data-theme="light"] .home-command__spotlight,
html[data-theme="light_apple"] .home-command__spotlight-metric,
html[data-theme="light"] .home-command__spotlight-metric,
html[data-theme="light_apple"] .rc-box,
html[data-theme="light"] .rc-box {
    background: #ffffff;
    border: 1px solid #cbd8e1;
    box-shadow: none;
}

html[data-theme="light_apple"] .qa-btn,
html[data-theme="light"] .qa-btn {
    color: var(--base-ink);
}

html[data-theme="light_apple"] .simple-ranking-jump-nav .qa-btn,
html[data-theme="light"] .simple-ranking-jump-nav .qa-btn {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
}

html[data-theme="light_apple"] .simple-ranking-jump-nav .qa-btn > span,
html[data-theme="light"] .simple-ranking-jump-nav .qa-btn > span {
    color: var(--base-ink);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

html[data-theme="light_apple"] .qa-btn i,
html[data-theme="light"] .qa-btn i {
    display: grid;
    place-items: center;
    line-height: 1;
    text-align: center;
    flex-shrink: 0;
    background: color-mix(in srgb, #ef8f86 28%, white);
    color: #102130;
}

html[data-theme="light_apple"] .simple-ranking-jump-nav .qa-btn > i,
html[data-theme="light"] .simple-ranking-jump-nav .qa-btn > i {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    padding: 0;
    border-radius: 999px;
    font-size: 0.9375rem;
}

html[data-theme="light_apple"] .qa-btn i::before,
html[data-theme="light"] .qa-btn i::before {
    display: block;
    margin: 0;
    line-height: 1;
}

html[data-theme="light_apple"] .simple-ranking-jump-nav .qa-btn > i::before,
html[data-theme="light"] .simple-ranking-jump-nav .qa-btn > i::before {
    transform: translateY(0.01em);
}

html[data-theme="light_apple"] .qa-btn:hover,
html[data-theme="light"] .qa-btn:hover,
html[data-theme="light_apple"] .stream-card:hover,
html[data-theme="light"] .stream-card:hover,
html[data-theme="light_apple"] .ranking-card-detailed:hover,
html[data-theme="light"] .ranking-card-detailed:hover,
html[data-theme="light_apple"] .ratio-card:hover,
html[data-theme="light"] .ratio-card:hover,
html[data-theme="light_apple"] .stats-hub-hero-card:hover,
html[data-theme="light"] .stats-hub-hero-card:hover {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

html[data-theme="light_apple"] .date-nav,
html[data-theme="light"] .date-nav,
html[data-theme="light_apple"] .ranking-title-nav,
html[data-theme="light"] .ranking-title-nav {
    border: 0;
    box-shadow: none;
}

html[data-theme="light_apple"] .date-nav a,
html[data-theme="light"] .date-nav a,
html[data-theme="light_apple"] .ranking-title-nav .rt-nav,
html[data-theme="light"] .ranking-title-nav .rt-nav {
    background: #ffffff;
    border: 1px solid #c6d3dd;
    border-radius: 999px;
    box-shadow: none;
    color: var(--text-main, #35485a);
}

/* Light mode radius harmonization (outer:6px / inner:4px) */
html[data-theme="light_apple"] :where(
    .panel,
    .section-card,
    .timeline-section,
    .history-section,
    .history-header,
    .history-next-panel,
    .search-panel,
    .ratio-card,
    .ranking-card-detailed,
    .stats-hub-hero,
    .member-music-section,
    .music-ranking-list-panel,
    .dashboard-desc,
    .holonavi-cta,
    .myhome-section,
    .myhome-empty,
    .home-command,
    .members-section
) :where(
    .pill,
    .history-social-btn,
    .mm-link,
    .theme-mode-chip,
    .theme-toggle-btn,
    .palette-toggle-btn,
    .share-x-btn,
    .hamburger-btn,
    .search-mobile-btn,
    .header-search-input,
    .mm-search-input,
    .search-input,
    .members-chips .chip,
    .member-card,
    .member-card__group,
    .upcoming-event-item,
    .history-next-member-chip,
    .myhome-card,
    .myhome-card-link,
    .myhome-card-remove,
    .myhome-register-select,
    .myhome-register-btn,
    .qa-btn,
    .site-footer-links a,
    .oshi-input,
    .oshi-textarea,
    .oshi-song-type-tab,
    .oshi-song-option-body,
    .oshi-upload-box,
    .oshi-current-image-preview,
    .oshi-remove-image-chip,
    [class*="-btn"],
    [class*="-chip"]
),
html[data-theme="light"] :where(
    .panel,
    .section-card,
    .timeline-section,
    .history-section,
    .history-header,
    .history-next-panel,
    .search-panel,
    .ratio-card,
    .ranking-card-detailed,
    .stats-hub-hero,
    .member-music-section,
    .music-ranking-list-panel,
    .dashboard-desc,
    .holonavi-cta,
    .myhome-section,
    .myhome-empty,
    .home-command,
    .members-section
) :where(
    .pill,
    .history-social-btn,
    .mm-link,
    .theme-mode-chip,
    .theme-toggle-btn,
    .palette-toggle-btn,
    .share-x-btn,
    .hamburger-btn,
    .search-mobile-btn,
    .header-search-input,
    .mm-search-input,
    .search-input,
    .members-chips .chip,
    .member-card,
    .member-card__group,
    .upcoming-event-item,
    .history-next-member-chip,
    .myhome-card,
    .myhome-card-link,
    .myhome-card-remove,
    .myhome-register-select,
    .myhome-register-btn,
    .qa-btn,
    .site-footer-links a,
    .oshi-input,
    .oshi-textarea,
    .oshi-song-type-tab,
    .oshi-song-option-body,
    .oshi-upload-box,
    .oshi-current-image-preview,
    .oshi-remove-image-chip,
    [class*="-btn"],
    [class*="-chip"]
) {
    border-radius: var(--ui-radius-inner) !important;
}

/* ==========================================================================
   Light theme final normalization (new_design)
   --------------------------------------------------------------------------
   Flatter surfaces, stronger contrast, and unified CTA/card behavior.
   ========================================================================== */
html[data-theme="light_apple"],
html[data-theme="light"] {
    --surface-max: #f3f5f7;
}

html[data-theme="light_apple"] body,
html[data-theme="light"] body {
    background: #eef2f5 !important;
}

html[data-theme="light_apple"] .header-container,
html[data-theme="light"] .header-container {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid #d5dee6 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .pill,
html[data-theme="light"] .pill,
html[data-theme="light_apple"] .home-command__link,
html[data-theme="light"] .home-command__link {
    background: #ffffff;
    border: 1px solid #c8d4de;
    color: #223640;
    font-weight: 600;
}

html[data-theme="light_apple"] .pill:hover,
html[data-theme="light"] .pill:hover,
html[data-theme="light_apple"] .home-command__link:hover,
html[data-theme="light"] .home-command__link:hover {
    background: #f6f9fc;
    border-color: #9cb2c3;
    color: #10242d;
}

html[data-theme="light_apple"] .pill.active,
html[data-theme="light"] .pill.active,
html[data-theme="light_apple"] .home-command__link.is-active,
html[data-theme="light"] .home-command__link.is-active {
    background: #13202b;
    color: #ffffff;
    border-color: #13202b;
}

html[data-theme="light_apple"] .dashboard-desc,
html[data-theme="light"] .dashboard-desc,
html[data-theme="light_apple"] .holonavi-cta,
html[data-theme="light"] .holonavi-cta,
html[data-theme="light_apple"] .members-discovery-hero,
html[data-theme="light"] .members-discovery-hero,
html[data-theme="light_apple"] .panel,
html[data-theme="light"] .panel,
html[data-theme="light_apple"] .section-card,
html[data-theme="light"] .section-card {
    background: #ffffff !important;
    border: 1px solid #cbd6e0 !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] .dashboard-desc--hero,
html[data-theme="light"] .dashboard-desc--hero,
html[data-theme="light_apple"] .holonavi-cta,
html[data-theme="light"] .holonavi-cta,
html[data-theme="light_apple"] .members-discovery-hero,
html[data-theme="light"] .members-discovery-hero {
    background-image: none !important;
}

html[data-theme="light_apple"] .holonavi-cta__chip,
html[data-theme="light"] .holonavi-cta__chip {
    background: #f7fafc;
    border: 1px solid #d1dbe4;
    color: #445966;
}

html[data-theme="light_apple"] .holonavi-cta__link,
html[data-theme="light"] .holonavi-cta__link {
    background: #ffffff;
    border: 1px solid #d1dbe4;
    color: #13202b;
}

html[data-theme="light_apple"] .holonavi-cta__link:hover,
html[data-theme="light"] .holonavi-cta__link:hover {
    background: #f7fafc;
    border-color: #9cb2c3;
}

html[data-theme="light_apple"] .holonavi-cta__link.is-primary,
html[data-theme="light"] .holonavi-cta__link.is-primary,
html[data-theme="light_apple"] .members-discovery-btn.is-primary,
html[data-theme="light"] .members-discovery-btn.is-primary {
    background: #13202b;
    color: #ffffff;
    border-color: #13202b;
}

html[data-theme="light_apple"] .holonavi-cta__link-sub,
html[data-theme="light"] .holonavi-cta__link-sub,
html[data-theme="light_apple"] .members-discovery-copy p:last-child,
html[data-theme="light"] .members-discovery-copy p:last-child {
    color: #435864;
}

html[data-theme="light_apple"] .members-discovery-kicker,
html[data-theme="light"] .members-discovery-kicker {
    color: #1f6feb;
}

html[data-theme="light_apple"] .members-discovery-copy h2,
html[data-theme="light"] .members-discovery-copy h2,
html[data-theme="light_apple"] .dashboard-desc-title,
html[data-theme="light"] .dashboard-desc-title,
html[data-theme="light_apple"] .ranking-section-title,
html[data-theme="light"] .ranking-section-title {
    color: var(--text-main, #35485a);
}

html[data-theme="light_apple"] .members-discovery-btn,
html[data-theme="light"] .members-discovery-btn {
    background: #ffffff;
    border: 1px solid #d1dbe4;
    color: #13202b;
}

html[data-theme="light_apple"] .members-discovery-btn:hover,
html[data-theme="light"] .members-discovery-btn:hover {
    background: #f7fafc;
    border-color: #9cb2c3;
}

html[data-theme="light_apple"] .footer-seo-copy,
html[data-theme="light"] .footer-seo-copy,
html[data-theme="light_apple"] .site-footer,
html[data-theme="light"] .site-footer,
html[data-theme="light_apple"] .site-footer-links a,
html[data-theme="light"] .site-footer-links a {
    color: #2a3c45 !important;
}

/* White-surface pass: remove pale gray page/card fills in light mode. */
html[data-theme="light_apple"],
html[data-theme="light"] {
    --surface-max: #ffffff;
    --bg-dark: #ffffff;
    --bg-card: #ffffff;
    --bg-card-hover: #ffffff;
    --gradient-bg: #ffffff;
    --gradient-card: #ffffff;
}

html[data-theme="light_apple"],
html[data-theme="light"],
html[data-theme="light_apple"] body,
html[data-theme="light"] body {
    background: #ffffff !important;
    background-image: none !important;
}

html[data-theme="light_apple"] :where(
    .panel,
    .section-card,
    .timeline-section,
    .stream-card,
    .simple-ranking-card,
    .ranking-card-detailed,
    .ratio-card,
    .s-card,
    .graph-container,
    .related-section,
    .history-header,
    .history-section,
    .history-fan-card,
    .history-live-card,
    .history-chat-card,
    .history-activity-card,
    .history-next-panel,
    .search-panel,
    .member-card,
    .members-section,
    .member-card__group,
    .music-ranking-list-panel,
    .member-music-section,
    .music-ranking-filter,
    .upcoming-event-box,
    .upcoming-event-item,
    .home-command__spotlight,
    .home-command__stat,
    .home-member-quick-item,
    .myhome-section,
    .myhome-card,
    .myhome-empty,
    .stats-guide-callout,
    .stats-hub-hero,
    .stats-hub-hero-card,
    .stats-hub-box
),
html[data-theme="light"] :where(
    .panel,
    .section-card,
    .timeline-section,
    .stream-card,
    .simple-ranking-card,
    .ranking-card-detailed,
    .ratio-card,
    .s-card,
    .graph-container,
    .related-section,
    .history-header,
    .history-section,
    .history-fan-card,
    .history-live-card,
    .history-chat-card,
    .history-activity-card,
    .history-next-panel,
    .search-panel,
    .member-card,
    .members-section,
    .member-card__group,
    .music-ranking-list-panel,
    .member-music-section,
    .music-ranking-filter,
    .upcoming-event-box,
    .upcoming-event-item,
    .home-command__spotlight,
    .home-command__stat,
    .home-member-quick-item,
    .myhome-section,
    .myhome-card,
    .myhome-empty,
    .stats-guide-callout,
    .stats-hub-hero,
    .stats-hub-hero-card,
    .stats-hub-box
) {
    background: #ffffff !important;
    background-image: none !important;
    box-shadow: none !important;
}

html[data-theme="light_apple"] :where(.simple-ranking-row, .stats-row),
html[data-theme="light"] :where(.simple-ranking-row, .stats-row) {
    background: #ffffff !important;
}


/* style_header_compact.css */
/* Header action density + dynamic oshi palette list */

.palette-popover-subtitle {
    margin-top: 10px;
    margin-bottom: 6px;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    color: var(--text-dim);
}

.palette-grid-members {
    max-height: 180px;
    overflow-y: auto;
    padding-right: 2px;
}

.palette-chip-member {
    border-color: rgba(255, 255, 255, 0.24);
}

@media (max-width: 768px) {
    .header-actions {
        gap: 8px;
    }

    .share-x-btn {
        display: none;
    }

    .palette-picker {
        display: inline-flex;
    }

    .palette-picker .palette-popover {
        right: -6px;
        width: min(86vw, 290px);
        max-height: min(70vh, 460px);
        overflow-y: auto;
    }

    .theme-toggle-btn,
    .palette-toggle-btn,
    .search-mobile-btn,
    .hamburger-btn {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
}


/* style_design_unified.css */
/* Final UI layer: shared density, radius, oshi-color accents, and mobile polish. */

/* =============================================================
   holometer デザイントークン API（唯一の公式トークン層）
   - 値は既存のテーマ変数（style_modern / light_apple が data-theme で
     再定義する --bg-* / --text-* 等）へのエイリアス。テーマ切替に自動追従する。
   - 新規CSSは必ず --hm-* を参照する。レガシー変数を直接参照しない。
   - 運用ルール: _docs/new_design/16_holometer_design_tokens.md
   ============================================================= */
:root {
	/* 角丸・タップ領域 */
	--hm-radius-outer: var(--ui-radius, 10px);
	--hm-radius-inner: max(3px, calc(var(--hm-radius-outer) - 2px));
	--hm-radius-card: var(--card-radius-md, 12px);
	--hm-radius-card-lg: var(--card-radius-lg, 14px);
	--hm-radius-pill: 999px;
	--hm-tap-min: 44px;

	/* 罫線・面 */
	--hm-line: color-mix(in srgb, var(--text-main, #102332) 12%, transparent);
	--hm-line-strong: color-mix(in srgb, var(--text-main, #102332) 20%, transparent);
	--hm-surface: color-mix(in srgb, var(--bg-card, #ffffff) 96%, var(--bg-dark, #ffffff) 4%);
	--hm-surface-soft: color-mix(in srgb, var(--bg-card-hover, #ffffff) 88%, var(--bg-dark, #eef3f8) 12%);
	--hm-bg: var(--bg-dark, #edf2f6);
	--hm-shadow-card: var(--shadow-card, none);

	/* 文字色 */
	--hm-copy: var(--text-main, #102332);
	--hm-copy-muted: var(--text-dim, #435864);
	--hm-copy-faint: var(--text-muted, #7a7890);

	/* ブランド・アクセント */
	--hm-accent: var(--oshi-color, var(--oshi-primary, var(--accent-color, var(--primary, #ff6b61))));
	--hm-primary: var(--primary, #FF74B6);
	--hm-secondary: var(--secondary, #B06CFF);
	--hm-tertiary: var(--tertiary, #5FC9FF);
	--hm-gold: var(--gold, #F8D072);
	--hm-aurora-grad: var(--aurora-grad, linear-gradient(120deg, #FF74B6, #B06CFF, #5FC9FF));

	/* タイポグラフィ */
	--hm-font-heading: var(--font-heading, "SF Pro Display", "Hiragino Sans", "BIZ UDPGothic", sans-serif);
	--hm-font-body: var(--font-body, "SF Pro Text", "Hiragino Sans", "BIZ UDPGothic", sans-serif);
	--hm-font-mono: var(--font-mono, "SF Mono", "JetBrains Mono", monospace);
	--hm-text-body: var(--page-body-size, 1rem);
	--hm-text-body-sm: var(--page-body-size-sm, 0.875rem);
	--hm-title-section: var(--page-section-title-size, clamp(1.28rem, 2vw, 1.58rem));
	--hm-title-card: var(--page-card-title-size, clamp(1.08rem, 1.55vw, 1.22rem));

	/* 余白・レイアウト */
	--hm-space-1: var(--space-1, 4px);
	--hm-space-2: var(--space-2, 8px);
	--hm-space-3: var(--space-3, 12px);
	--hm-space-4: var(--space-4, 16px);
	--hm-space-5: var(--space-5, 20px);
	--hm-space-6: var(--space-6, 24px);
	--hm-space-8: var(--space-8, 32px);
	--hm-section-gap: var(--section-gap, clamp(32px, 5vw, 64px));
	--hm-shell-max: min(1280px, calc(100vw - 80px));
	--hm-shell-pad: clamp(16px, 2vw, 24px);
	--content-max: var(--hm-shell-max);
	--hm-content-max: var(--hm-shell-max);

	/* 見出し・メンバー名は明朝体に戻さず、サンセリフで統一する。 */
	--font-heading: "SF Pro Display", "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
	/* 本文はシステムフォント（BIZ UDPGothic のWebフォント読み込みを廃止して軽量化） */
	--font-body: "SF Pro Text", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--hm-font-name: var(--font-heading);

	/* 角丸を全体的に +2px（2026-07 指示） */
	--ui-radius: 12px;
	--ui-radius-inner: 10px;
	--card-radius-md: 14px;
	--card-radius-lg: 16px;
}

/* 角丸+2px: ライトテーマは html[data-theme] 側の再定義（6px）が
   :root より強いため、同じ詳細度で上書きする（6px→8px） */
html[data-theme="light_apple"],
html[data-theme="light"] {
	--content-max: var(--hm-shell-max);
	--hm-content-max: var(--hm-shell-max);
	--ui-radius: 8px;
	--ui-radius-inner: 6px;
	--card-radius-md: 10px;
	--card-radius-lg: 12px;

	/* 文字色のモダン化: ほぼ黒（#0c161a）だったインクを
	   青みのあるソフトなスレート系へ（本文 約8:1 / 補助 4.5:1 以上を維持） */
	--base-ink: #35485a;
	--base-ink-soft: #44576a;
	--base-ink-dim: #5a6e7e;
	--text-main: #35485a;
	--text-dim: #52646f;
	--text-muted: #6b7c88;
}

/* メンバー名・年鑑タイトルも見出しフォントへ統一 */
.history-name,
.yearbook-title,
.vtuber-profile h1 {
	font-family: var(--hm-font-name);
}

/* ============================
   コントラスト改善（WCAG 4.5:1）
   ライトテーマで淡すぎて難読だった文字を可読側へ
   ============================ */
.history-unit-tag {
	color: #4a5db3 !important;
}

.history-rss-chip.is-member {
	color: #4d569f !important;
}

.history-timeline-streams-title {
	color: var(--hm-copy-muted) !important;
}

body * {
	box-shadow: none !important;
	text-shadow: none !important;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
	outline: 2px solid color-mix(in srgb, var(--hm-accent) 72%, #ffffff 28%);
	outline-offset: 2px;
}

html {
	scroll-padding-top: 12px;
}

.header-top-row,
.scroll-nav,
.main-container {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--hm-shell-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--hm-shell-pad);
	padding-right: var(--hm-shell-pad);
}

.header-container {
	position: static !important;
	top: auto !important;
	padding: 0 !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
}

.header-top-row {
	padding-top: 10px !important;
	padding-bottom: 6px !important;
}

.scroll-nav {
	padding-top: 2px !important;
	padding-bottom: 2px !important;
	gap: 8px;
}

.header-container .pill {
	min-height: 32px !important;
	padding: 5px 11px !important;
	font-size: 0.82rem !important;
}

:where(
	.card,
	.btn,
	.chip,
	.badge,
	.tag,
	.panel,
	[class$="-card"],
	[class*="-card "],
	[class$="-panel"],
	[class*="-panel "],
	[class$="-box"],
	[class*="-box "],
	.panel,
	.section-card,
	.dashboard-desc,
	.home-command,
	.holonavi-cta,
	.history-header,
	.history-section,
	.history-fan-card,
	.history-live-card,
	.history-chat-card,
	.history-activity-card,
	.history-next-panel,
	.search-panel,
	.ratio-card,
	.ranking-card-detailed,
	.simple-ranking-card,
	.s-card,
	.stats-hub-hero,
	.stats-hub-hero-card,
	.member-card,
	.members-section,
	.member-card__group,
	.member-music-section,
	.music-ranking-list-panel,
	.music-ranking-filter,
	.timeline-section,
	.upcoming-event-box,
	.upcoming-event-item,
	.aurora-card,
	.aurora-side-list,
	.aurora-member-card,
	.aurora-daily-panel,
	.aurora-priority-panel,
	.aurora-daybook-panel,
	.aurora-shortcut,
	.oshi-maker-block,
	.oshi-maker-page .panel.section-card,
	.od-stage-card,
	.od-side-card,
	.od-vote-card,
	.od-community-card,
	.mobile-bottom-nav,
	.vtuber-hero,
	.vtuber-section,
	.vtuber-stat,
	.vtuber-agency-card,
	.vtuber-talent-card,
	.vtuber-video-card
) {
	border-radius: var(--hm-radius-outer) !important;
	box-shadow: none !important;
}

:where(
	.stream-card,
	.ranking-card-detailed,
	.simple-ranking-card,
	.ratio-card,
	.s-card,
	.timeline-section,
	.search-panel,
	.history-section,
	.member-card,
	.member-music-section,
	.music-ranking-list-panel,
	.aurora-card,
	.aurora-shortcut,
	.vtuber-video-card
) {
	border-color: var(--hm-line) !important;
}

:where(
	.stream-thumb,
	.rank-thumb,
	.rank-thumb-img,
	.rc-thumb,
	.music-thumb,
	.history-song-thumb,
	.aurora-home-feature-media,
	.aurora-member-card img,
	.vtuber-video-thumb,
	.oshi-maker-test-thumb,
	.od-pick-thumb,
	.od-result-avatar
) {
	border-radius: var(--hm-radius-inner) !important;
}

:where(
	input,
	select,
	textarea,
	.button,
	button,
	[class$="-btn"],
	[class*="-btn "],
	[class$="-chip"],
	[class*="-chip "],
	[class$="-pill"],
	[class*="-pill "],
	.pill,
	.home-command__link,
	.holonavi-cta__chip,
	.holonavi-cta__link,
	.members-discovery-btn,
	.history-social-btn,
	.history-ranking-link,
	.music-ranking-filter-link,
	.aurora-home-pill,
	.aurora-card-action,
	.aurora-card-badge,
	.od-link-chip,
	.od-tab-btn,
	.od-answer-btn,
	.od-stage-btn,
	.mb-nav-item,
	.mm-link,
	.mm-note-card,
	.oshi-maker-hero-mode-btn,
	.oshi-maker-hero-chip,
	.oshi-maker-test-btn,
	.oshi-maker-test-modal-close,
	.vtuber-pill,
	.vtuber-action
) {
	min-height: var(--hm-tap-min);
	border-radius: var(--hm-radius-outer) !important;
	box-shadow: none !important;
}

:where(.share-x-btn, .theme-toggle-btn, .palette-toggle-btn, .hamburger-btn, .search-mobile-btn) {
	border-radius: var(--hm-radius-outer) !important;
	box-shadow: none !important;
}

:where(.pill.active, .home-command__link.is-active, .od-tab-btn.is-active, .vtuber-pill.is-active, .mb-nav-item.active, .mm-link.active) {
	background: color-mix(in srgb, var(--hm-accent) 18%, var(--hm-surface) 82%) !important;
	border-color: color-mix(in srgb, var(--hm-accent) 32%, transparent) !important;
	color: var(--hm-copy) !important;
}

:where(.history-social-btn.is-primary, .holonavi-cta__link.is-primary, .members-discovery-btn.is-primary, .od-link-chip.is-primary, .od-stage-btn.is-primary) {
	background: color-mix(in srgb, var(--hm-accent) 76%, #0c161a 24%) !important;
	border-color: color-mix(in srgb, var(--hm-accent) 80%, #0c161a 20%) !important;
	color: #ffffff !important;
}

:where(.history-social-btn.is-primary, .holonavi-cta__link.is-primary, .members-discovery-btn.is-primary, .od-link-chip.is-primary, .od-stage-btn.is-primary) :where(i, span, strong) {
	color: inherit !important;
}

:where(.upcoming-event-item, .member-card, .history-next-member-chip):hover {
	background: color-mix(in srgb, var(--hm-accent) 7%, var(--hm-surface) 93%) !important;
}

.site-footer {
	box-shadow: none !important;
}

.mobile-bottom-nav {
	background: color-mix(in srgb, var(--hm-surface) 88%, var(--bg-dark, #0c161a) 12%) !important;
	border: 1px solid var(--hm-line) !important;
	border-radius: var(--hm-radius-outer) !important;
	box-shadow: none !important;
}

.mb-nav-item {
	border-radius: var(--hm-radius-inner) !important;
	color: var(--hm-copy-muted) !important;
}

.mb-nav-item i,
.mb-nav-item span {
	color: inherit !important;
}

.mb-nav-item.active i {
	color: var(--hm-accent) !important;
}

.vtuber-hero {
	gap: 14px;
	padding: clamp(18px, 4vw, 30px) !important;
}

.vtuber-hero h1 {
	font-size: clamp(1.8rem, 5vw, 3rem) !important;
}

.vtuber-stat-grid {
	gap: 10px !important;
}

.vtuber-stat {
	padding: 12px !important;
	background: var(--hm-surface-soft) !important;
}

.vtuber-stat strong {
	font-size: clamp(1.45rem, 3vw, 2rem) !important;
	letter-spacing: -0.04em;
}

.vtuber-stat span {
	margin-top: 6px !important;
	font-size: 0.84rem !important;
}

.oshi-maker-test-page::before,
.oshi-maker-test-page::after,
.oshi-maker-page .oshi-maker-hero::before,
.oshi-maker-page .oshi-maker-hero::after {
	display: none !important;
}

.oshi-maker-page .oshi-maker-hero {
	background: var(--hm-surface) !important;
	border-color: var(--hm-line) !important;
}

.oshi-maker-hero-title,
.oshi-maker-step-title {
	color: var(--hm-copy) !important;
	text-shadow: none !important;
}

.oshi-maker-hero-title span,
.oshi-maker-hero-sub,
.oshi-maker-step-copy {
	color: var(--hm-copy-muted) !important;
}

.oshi-maker-test-modal {
	background: color-mix(in srgb, var(--bg-dark, #0c161a) 72%, transparent) !important;
}

.oshi-maker-test-modal-panel {
	border-radius: var(--hm-radius-outer) !important;
	background: var(--hm-surface) !important;
	box-shadow: none !important;
}

.od-vote-stage-footer {
	border-radius: var(--hm-radius-outer) !important;
	box-shadow: none !important;
}

html[data-theme="light_apple"],
html[data-theme="light"] {
	--hm-line: rgba(12, 22, 26, 0.12);
	--hm-line-strong: rgba(12, 22, 26, 0.2);
	--hm-surface: #ffffff;
	--hm-surface-soft: #f7fafc;
	--hm-copy: #0c161a;
	--hm-copy-muted: #435864;
}

html:not([data-theme]),
html[data-theme="dark"],
html[data-theme="default"] {
	--hm-line: rgba(255, 255, 255, 0.12);
	--hm-line-strong: rgba(255, 255, 255, 0.2);
	--hm-surface: color-mix(in srgb, var(--bg-card, #0a0a0a) 92%, #ffffff 8%);
	--hm-surface-soft: color-mix(in srgb, var(--bg-card-hover, #111111) 88%, #ffffff 12%);
	--hm-copy: var(--text-main, #f3f4f6);
	--hm-copy-muted: var(--text-dim, #9ca3af);
}

html[data-theme="light_apple"] :where(.oshi-maker-hero-mode-btn, .oshi-maker-hero-chip),
html[data-theme="light"] :where(.oshi-maker-hero-mode-btn, .oshi-maker-hero-chip) {
	background: #f7fafc !important;
	border: 1px solid var(--hm-line) !important;
	color: #102433 !important;
}

@media (max-width: 768px) {
	:root,
	html[data-theme="light_apple"],
	html[data-theme="light"],
	html[data-theme="dark"],
	html[data-theme="default"] {
		--hm-shell-max: 100%;
		--hm-shell-pad: 12px;
		--content-max: var(--hm-shell-max);
		--hm-content-max: var(--hm-shell-max);
	}

	.header-top-row,
	.scroll-nav,
	.main-container {
		max-width: 100%;
		padding-left: var(--hm-shell-pad) !important;
		padding-right: var(--hm-shell-pad) !important;
	}

	.header-top-row {
		padding-top: 8px !important;
		padding-bottom: 6px !important;
	}

	.brand-lockup {
		gap: 6px !important;
		padding: 2px 0 !important;
	}

	.brand-needle {
		width: 24px !important;
		height: 24px !important;
	}

	.brand-wordmark {
		width: min(148px, 40vw) !important;
		height: auto !important;
	}

	.header-container .scroll-nav {
		display: none !important;
	}

	.main-container {
		margin-top: 12px !important;
	}

	:where(.panel, .section-card, .dashboard-desc, .history-header, .history-section, .vtuber-hero, .vtuber-section) {
		padding: 16px !important;
	}

	:where(.pill, .home-command__link, .history-social-btn, .members-discovery-btn, .od-link-chip, .vtuber-pill) {
		min-height: 42px;
		padding: 9px 12px;
	}

	.vtuber-stat-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.vtuber-stat strong {
		font-size: 1.35rem !important;
	}
}

@media (max-width: 480px) {
	.vtuber-stat-grid {
		grid-template-columns: 1fr 1fr !important;
	}

	.vtuber-stat {
		padding: 10px !important;
	}

	.vtuber-stat span {
		font-size: 0.78rem !important;
	}
}

/* ============================
   X share button (home / rankings)
   ============================ */
.hm-share-row {
	display: flex;
	justify-content: flex-end;
	margin: var(--hm-space-3) 0 var(--hm-space-4);
}

.hm-x-share-btn {
	display: inline-flex;
	align-items: center;
	gap: var(--hm-space-2);
	padding: 9px 18px;
	border-radius: var(--hm-radius-pill);
	background: #0f1419; /* Xブランド黒（テーマ非依存） */
	color: #fff !important;
	font-size: var(--hm-text-body-sm);
	font-weight: 700;
	line-height: 1;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.14);
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.hm-x-share-btn:hover {
	opacity: 0.85;
	transform: translateY(-1px);
}

/* ============================
   LIVEページのカード（過去のCSS整理で喪失していたコンポーネントを再構築）
   ============================ */
.live-container {
	max-width: var(--hm-content-max);
	margin: 0 auto;
}

.live-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: var(--hm-space-4);
	margin-top: var(--hm-space-4);
}

.live-card {
	display: flex;
	flex-direction: column;
	background: var(--hm-surface);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-card-lg);
	overflow: hidden;
}

.live-thumb-link {
	display: block;
}

.live-thumb-wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: var(--hm-surface-soft);
}

.live-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.live-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	padding: 3px 10px;
	border-radius: var(--hm-radius-pill);
	background: #c62828; /* 白文字で4.5:1以上 */
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.06em;
}

.live-badge.scheduled {
	background: #1d4ed8;
}

.live-badge.ended {
	background: #4b5563;
}

.live-ccv-badge {
	position: absolute;
	bottom: 8px;
	right: 8px;
	padding: 3px 10px;
	border-radius: var(--hm-radius-pill);
	background: rgba(10, 10, 18, 0.72);
	color: #fff;
	font-size: 0.75rem;
	font-weight: 700;
}

.live-info {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px 4px;
}

.live-icon-link {
	flex-shrink: 0;
}

.live-icon {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--accent, var(--hm-accent));
}

.live-text {
	min-width: 0;
}

.live-title {
	line-height: 1.45;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.live-title a {
	color: var(--hm-copy);
	text-decoration: none;
}

.live-name {
	margin-top: 2px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--hm-copy-muted);
}

.live-stats-row {
	margin-top: auto;
	padding: 0 12px 10px;
}

.live-stats-row .update-time {
	font-size: 0.74rem;
	color: var(--hm-copy-faint);
}

/* ============================
   AdSense自動広告の暴走防止
   （ヘッダー内部に300px枠が注入され、未充填時に巨大な空白になる）
   ============================ */
.header-container .google-auto-placed {
	display: none !important;
}

/* ============================
   サイドメニュー共通化（rankings / stats_hub / music / shorts）
   同じ .side-mini-nav マークアップに対して見た目がページごとに
   異なっていたため、ここで正規のスタイルに統一する
   ============================ */
.side-mini-nav {
	display: flex !important;
	flex-direction: column;
	gap: 8px;
	padding: 10px !important;
	background: var(--hm-surface) !important;
	border: 1px solid var(--hm-line) !important;
	border-radius: var(--hm-radius-card) !important;
}

.side-mini-title {
	margin: 2px 4px 4px;
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	color: var(--hm-copy-faint) !important;
}

.side-mini-link {
	display: flex !important;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: var(--hm-tap-min);
	padding: 10px 8px !important;
	border: 1px solid transparent !important;
	border-radius: var(--hm-radius-outer) !important;
	background: transparent !important;
	color: var(--hm-copy-muted) !important;
	font-size: 0.78rem;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	line-height: 1.25;
}

/* stats_hub のテキストピル型を正とし、アイコンは全ページで非表示に統一 */
.side-mini-link i {
	display: none !important;
}

.side-mini-link:hover {
	background: var(--hm-surface-soft) !important;
	color: var(--hm-copy) !important;
}

.side-mini-link.active {
	background: color-mix(in srgb, var(--hm-accent) 16%, var(--hm-surface)) !important;
	border-color: color-mix(in srgb, var(--hm-accent) 34%, transparent) !important;
	color: var(--hm-copy) !important;
}

/* ============================
   ホロナビ（oshi_discovery）をAuroraパレットに統一
   青系の独自アクセントをサイト共通の世界観へ置換する
   ============================ */
/* .od-page.od-page はXPageSpeed変換後も確実に元定義へ勝たせるための詳細度ブースト */
body.oshi-discovery-page .od-page.od-page {
	/* ダークテーマ: Auroraのパステル原色 */
	--od-accent: #FF74B6;
	--od-accent-2: #B06CFF;
	--od-accent-3: #5FC9FF;
	--od-accent-4: #F8D072;
}

html[data-theme="light_apple"] body.oshi-discovery-page .od-page.od-page,
html[data-theme="light"] body.oshi-discovery-page .od-page.od-page {
	/* ライトテーマ: 白背景×白文字ボタンでも4.5:1を満たす濃色版Aurora */
	--od-accent: #db2777;
	--od-accent-2: #7c3aed;
	--od-accent-3: #0891b2;
	--od-accent-4: #b45309;
}

/* 背景の装飾グロー（青）もAuroraピンク／紫のトーンに */
html[data-theme="light_apple"] body.oshi-discovery-page .od-page::before,
html[data-theme="light"] body.oshi-discovery-page .od-page::before,
html[data-theme="light_apple"] body.oshi-discovery-page .od-hero::before,
html[data-theme="light"] body.oshi-discovery-page .od-hero::before {
	background: radial-gradient(circle, rgba(219, 39, 119, 0.09) 0%, rgba(219, 39, 119, 0) 72%) !important;
}

html[data-theme="light_apple"] body.oshi-discovery-page .od-page::after,
html[data-theme="light"] body.oshi-discovery-page .od-page::after,
html[data-theme="light_apple"] body.oshi-discovery-page .od-hero::after,
html[data-theme="light"] body.oshi-discovery-page .od-hero::after {
	background: radial-gradient(circle, rgba(124, 58, 237, 0.08) 0%, rgba(124, 58, 237, 0) 72%) !important;
}

/* ============================
   メンバーページ「記録」カード（最高同接・最高スパチャ）
   ============================ */
.history-records {
	margin-top: var(--hm-space-4);
}

.history-records-title {
	margin: 0 0 10px;
	font-size: var(--hm-title-card);
	font-weight: 800;
	color: var(--hm-copy);
}

.history-records-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: var(--hm-space-3);
}

.history-record-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 14px 16px;
	background: var(--hm-surface);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-card) !important;
	text-decoration: none;
	color: var(--hm-copy);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.history-record-card:hover {
	transform: translateY(-2px);
	border-color: color-mix(in srgb, var(--hm-accent) 40%, transparent);
}

.history-record-label {
	font-size: 0.76rem;
	font-weight: 800;
	letter-spacing: 0.05em;
	color: var(--hm-copy-muted);
}

.history-record-value {
	font-size: 1.5rem;
	font-weight: 800;
	line-height: 1.2;
}

.history-record-value small {
	font-size: 0.85rem;
	font-weight: 700;
	margin-left: 2px;
}

.history-record-stream {
	font-size: 0.82rem;
	color: var(--hm-copy-muted);
	line-height: 1.4;
}

.history-record-date {
	font-size: 0.74rem;
	color: var(--hm-copy-faint);
}

/* 「次に行く」パネル: 外枠と内側タイルの二重ボーダーを解消（外側を外す） */
.spotlight-next-panel {
	border: none !important;
	background: transparent !important;
	padding: 0 !important;
}

/* ============================
   大枠（セクション外枠）ボーダーの全体廃止（2026-07 指示）
   区切りは余白で表現し、枠線は内側のカード（s-card等）だけに残す
   テーマ層の html[data-theme] ルールに勝てるよう両テーマで詳細度を確保
   ============================ */
html:not([data-theme]) :is(.panel, .section-card, .dashboard-desc, .timeline-section, .history-section, .history-header, .members-section, .member-music-section, .music-ranking-list-panel, .music-ranking-filter, .stats-hub-hero, .vtuber-hero, .vtuber-section, .aurora-daily-panel, .aurora-daybook-panel, .aurora-priority-panel, .digest-metrics-panel, .digest-hero, .search-panel, .hm-display-ad),
html[data-theme] :is(.panel, .section-card, .dashboard-desc, .timeline-section, .history-section, .history-header, .members-section, .member-music-section, .music-ranking-list-panel, .music-ranking-filter, .stats-hub-hero, .vtuber-hero, .vtuber-section, .aurora-daily-panel, .aurora-daybook-panel, .aurora-priority-panel, .digest-metrics-panel, .digest-hero, .search-panel, .hm-display-ad) {
	border: none !important;
}

/* 大枠ボーダー廃止の巻き込まれ救済:
   「内側のカード」は枠線を維持する（白背景に白カードで溶けるのを防ぐ）。
   テーマ層の html[data-theme] :where(...) !important に勝つ詳細度で宣言 */
html:not([data-theme]) :is(.live-card, .history-record-card),
html[data-theme] :is(.live-card, .history-record-card) {
	border: 1px solid var(--hm-line) !important;
}

/* ============================
   アフィリエイト物販カード（.hm-affiliate-card）
   文脈に沿った関連グッズ・CD導線。PRラベル必須（ステマ規制）。
   ============================ */
.hm-affiliate-card {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--hm-space-3);
	margin-top: var(--hm-space-4);
	padding: 12px 14px;
	background: var(--hm-surface);
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-card);
}

.hm-affiliate-lead {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
}

.hm-affiliate-pr {
	flex-shrink: 0;
	padding: 2px 7px;
	border: 1px solid var(--hm-line-strong);
	border-radius: 4px;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--hm-copy-faint);
}

.hm-affiliate-copy {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hm-affiliate-title {
	font-size: 0.92rem;
	font-weight: 800;
	color: var(--hm-copy);
	line-height: 1.35;
}

.hm-affiliate-sub {
	font-size: 0.76rem;
	color: var(--hm-copy-muted);
}

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

.hm-affiliate-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	min-height: 38px;
	padding: 8px 14px;
	border-radius: var(--hm-radius-pill);
	font-size: 0.82rem;
	font-weight: 800;
	text-decoration: none;
	color: #fff !important;
	transition: opacity 0.15s ease, transform 0.15s ease;
}

.hm-affiliate-btn:hover {
	opacity: 0.9;
	transform: translateY(-1px);
}

/* ストアのブランド色（テーマ非依存の意匠） */
.hm-affiliate-btn.is-amazon {
	background: #ff9900;
	color: #16232e !important;
}

.hm-affiliate-btn.is-rakuten {
	background: #bf0000;
}

@media (max-width: 560px) {
	.hm-affiliate-card {
		flex-direction: column;
		align-items: stretch;
	}

	.hm-affiliate-actions {
		justify-content: stretch;
	}

	.hm-affiliate-btn {
		flex: 1;
		justify-content: center;
	}
}

/* ============================
   アフィリエイト物販カード: 楽天商品グリッド（画像・価格つき）
   ============================ */
.hm-affiliate-card.has-products {
	flex-direction: column;
	align-items: stretch;
}

.hm-affiliate-card.has-products .hm-affiliate-lead {
	margin-bottom: 2px;
}

.hm-affiliate-products {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 8px;
}

.hm-affiliate-product {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 6px;
	border: 1px solid var(--hm-line);
	border-radius: var(--hm-radius-inner);
	color: inherit;
	text-decoration: none;
	background: var(--hm-surface-soft);
	transition: border-color 0.15s ease, transform 0.15s ease;
}

.hm-affiliate-product:hover {
	border-color: color-mix(in srgb, var(--hm-accent) 40%, transparent);
	transform: translateY(-1px);
}

.hm-affiliate-product img {
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	border-radius: var(--hm-radius-inner);
	background: #fff;
}

.hm-affiliate-product-name {
	font-size: 0.7rem;
	line-height: 1.35;
	color: var(--hm-copy);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hm-affiliate-product-price {
	font-size: 0.76rem;
	font-weight: 800;
	color: var(--hm-copy);
}

.hm-affiliate-card.has-products .hm-affiliate-actions {
	justify-content: flex-end;
}

/* simple_ranking.php: stats_hub.php と横幅を揃える（レガシーCSSの重複定義で幅が狭まる経路を遮断） */
.simple-ranking-page .simple-ranking-wrap,
.simple-ranking-page .simple-ranking-hero,
.simple-ranking-page .simple-ranking-list,
.simple-ranking-page .simple-ranking-row,
.simple-ranking-page .simple-ranking-card {
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}

