      :root {
        --bg: #f8fafc;
        --surface: #ffffff;
        --soft: #f1f5f9;
        --text: #0d0d0d;
        --muted: #5e6470;
        --line: #e4e8ef;
        --line-strong: #ced4de;
        --brand: #ff2442;
        --brand-dark: #e01535;
        --blue: #2563eb;
        --blue-soft: #eff6ff;
        --green: #059669;
        --green-soft: #d1fae5;
        --amber: #d97706;
        --amber-soft: #fef3c7;
        --bad: #dc2626;
        --bad-soft: #fee2e2;
        --purple: #7c3aed;
        --purple-soft: #ede9fe;
        --cyan: #0891b2;
        --cyan-soft: #e0f7fa;
        --pink: #f43f5e;
        --shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 12px 32px rgba(15, 23, 42, 0.08);
        --glow-brand: 0 0 24px rgba(255, 36, 66, 0.18);
        --glow-blue: 0 0 24px rgba(37, 99, 235, 0.16);
        --glow-green: 0 0 24px rgba(5, 150, 105, 0.14);
        --glow-purple: 0 0 24px rgba(124, 58, 237, 0.16);
      }

      /* --- Dark mode --- */
      [data-theme="dark"] {
        --bg: #0f172a;
        --surface: #1e293b;
        --soft: #334155;
        --text: #f1f5f9;
        --muted: #94a3b8;
        --line: #334155;
        --line-strong: #475569;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
      }

      [data-theme="dark"] .topbar {
        background: rgba(15, 23, 42, 0.85);
        border-bottom-color: rgba(51, 65, 85, 0.6);
      }

      [data-theme="dark"] .search,
      [data-theme="dark"] .hero-search {
        background: var(--surface);
        border-color: var(--line-strong);
        color: var(--text);
      }

      [data-theme="dark"] .search input,
      [data-theme="dark"] .hero-search input {
        background: transparent;
        color: var(--text);
      }

      [data-theme="dark"] .hero { background: var(--surface); }
      [data-theme="dark"] .hero::before { background: radial-gradient(circle, rgba(255, 36, 66, 0.1) 0%, transparent 70%); }
      [data-theme="dark"] .hero::after { background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%); }

      [data-theme="dark"] .panel,
      [data-theme="dark"] .section-band,
      [data-theme="dark"] .channel-hero-card,
      [data-theme="dark"] .ch-chart-panel,
      [data-theme="dark"] .ch-side-card,
      [data-theme="dark"] .ch-metric-card,
      [data-theme="dark"] .period-summary-card,
      [data-theme="dark"] .hero-stat-cell,
      [data-theme="dark"] .ai-section,
      [data-theme="dark"] .history-board,
      [data-theme="dark"] .monthly-card,
      [data-theme="dark"] .top-lists-section,
      [data-theme="dark"] .performance-table {
        background: var(--surface);
        border-color: var(--line);
      }

      [data-theme="dark"] .channel-stat,
      [data-theme="dark"] .ch-metric-card,
      [data-theme="dark"] .summary-card,
      [data-theme="dark"] .feature-card,
      [data-theme="dark"] .video-tile,
      [data-theme="dark"] .trending-card,
      [data-theme="dark"] .dash-video-card,
      [data-theme="dark"] .signal-item,
      [data-theme="dark"] .creator-chip,
      [data-theme="dark"] .ai-card,
      [data-theme="dark"] .recent-video-card,
      [data-theme="dark"] .snapshot-card,
      [data-theme="dark"] .history-card,
      [data-theme="dark"] .video,
      [data-theme="dark"] .side-stat,
      [data-theme="dark"] .outlier-row,
      [data-theme="dark"] .coverage-item,
      [data-theme="dark"] .source-banner,
      [data-theme="dark"] .compare-tray,
      [data-theme="dark"] .empty,
      [data-theme="dark"] .achievement-badge,
      [data-theme="dark"] .upload-card,
      [data-theme="dark"] .vs-milestone-card,
      [data-theme="dark"] .history-nav-card,
      [data-theme="dark"] .history-upload,
      [data-theme="dark"] .history-source,
      [data-theme="dark"] .history-rail-card,
      [data-theme="dark"] .history-mini-metric,
      [data-theme="dark"] .history-flow,
      [data-theme="dark"] .creator-stats-grid,
      [data-theme="dark"] .creator-stat-card,
      [data-theme="dark"] .gained-chart-section,
      [data-theme="dark"] .compare-cards,
      [data-theme="dark"] .compare-card {
        background: var(--surface);
        border-color: var(--line);
      }

      [data-theme="dark"] .secondary {
        background: var(--surface);
        border-color: var(--line-strong);
        color: var(--text);
      }

      [data-theme="dark"] .performance-row,
      [data-theme="dark"] .daily-row,
      [data-theme="dark"] .pro-daily-row {
        background: var(--surface);
        border-color: var(--line);
      }

      [data-theme="dark"] .performance-row:nth-child(even),
      [data-theme="dark"] .daily-row:nth-child(even),
      [data-theme="dark"] .pro-daily-row:nth-child(odd):not(.header):not(.total) {
        background: rgba(51, 65, 85, 0.3);
      }

      [data-theme="dark"] .performance-row:hover,
      [data-theme="dark"] .daily-row:hover {
        background: rgba(51, 65, 85, 0.5);
      }

      [data-theme="dark"] .performance-row.header,
      [data-theme="dark"] .pro-daily-row.header {
        background: rgba(51, 65, 85, 0.4);
      }

      [data-theme="dark"] .channel-hero-card > .hero-banner {
        background: rgba(51, 65, 85, 0.3);
      }

      [data-theme="dark"] .history-main {
        background: rgba(30, 41, 59, 0.95);
      }

      [data-theme="dark"] .format-donut::after,
      [data-theme="dark"] .audience-ring::after {
        background: var(--surface);
      }

      [data-theme="dark"] .wide-visual img {
        opacity: 0.85;
      }

      [data-theme="dark"] .vs-sort-btn,
      [data-theme="dark"] .vs-video-search,
      [data-theme="dark"] .compare-search-box input {
        background: var(--surface);
        border-color: var(--line-strong);
        color: var(--text);
      }

      [data-theme="dark"] .vs-sort-menu {
        background: var(--surface);
        border-color: var(--line);
      }

      [data-theme="dark"] .vs-sort-menu button:hover,
      [data-theme="dark"] .top-lists-filters button.filter-item:hover {
        background: rgba(51, 65, 85, 0.5);
      }

      [data-theme="dark"] table.top-list-table tr:hover {
        background: rgba(51, 65, 85, 0.3);
      }

      [data-theme="dark"] .loading {
        background: linear-gradient(90deg, #334155 0%, #475569 30%, #334155 60%);
        background-size: 400% 100%;
      }

      [data-theme="dark"] .range-tabs span {
        background: #334155;
        color: var(--text);
      }

      [data-theme="dark"] .range-tabs span:hover:not(.active) {
        background: #475569;
      }

      [data-theme="dark"] .gained-toggle-group button {
        background: var(--soft);
        color: var(--muted);
        border-color: var(--line);
      }

      [data-theme="dark"] .pro-daily-range {
        background: var(--soft);
        border-color: var(--line);
      }

      [data-theme="dark"] .pro-daily-range button {
        color: var(--muted);
      }

      [data-theme="dark"] .pro-daily-range button.active {
        background: var(--surface);
        color: var(--brand);
      }

      [data-theme="dark"] .good,
      [data-theme="dark"] .warn,
      [data-theme="dark"] .info,
      [data-theme="dark"] .bad,
      [data-theme="dark"] .delta-badge.up,
      [data-theme="dark"] .delta-badge.down,
      [data-theme="dark"] .delta-badge.neutral,
      [data-theme="dark"] .metric-delta {
        background: var(--soft);
        border-color: var(--line-strong);
      }

      [data-theme="dark"] .compact-panel,
      [data-theme="dark"] .history-side-title {
        background: var(--surface);
      }

      [data-theme="dark"] .compare-table td {
        border-bottom-color: var(--line);
      }

      .theme-toggle {
        background: transparent;
        border: 1.5px solid var(--line);
        border-radius: 8px;
        color: var(--muted);
        cursor: pointer;
        font-size: 16px;
        height: 34px;
        width: 34px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.25s;
        flex-shrink: 0;
        margin-left: 4px;
      }

      .theme-toggle:hover {
        color: var(--text);
        border-color: var(--blue);
        transform: rotate(20deg);
      }

      @media (prefers-color-scheme: dark) {
        html:not([data-theme="light"]) {
          color-scheme: dark;
        }
      }

      * { box-sizing: border-box; min-width: 0; }

      html {
        overflow-x: hidden;
        scroll-behavior: smooth;
      }

      body {
        background: var(--bg);
        color: var(--text);
        font: 13.5px/1.5 'Plus Jakarta Sans', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
        margin: 0;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        letter-spacing: -0.01em;
      }

      button, input { font: inherit; }
      button { cursor: pointer; }
      button:focus-visible, input:focus-visible {
        outline: 3px solid rgba(37, 99, 235, 0.25);
        outline-offset: 2px;
      }

      /* --- Global animations --- */
      @keyframes fadeInUp {
        from { opacity: 0; transform: translateY(18px); }
        to { opacity: 1; transform: translateY(0); }
      }
      @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
      }
      @keyframes slideInLeft {
        from { opacity: 0; transform: translateX(-20px); }
        to { opacity: 1; transform: translateX(0); }
      }
      @keyframes scaleIn {
        from { opacity: 0; transform: scale(0.92); }
        to { opacity: 1; transform: scale(1); }
      }
      @keyframes shimmer {
        0% { background-position: -200% 0; }
        100% { background-position: 200% 0; }
      }
      @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-6px); }
      }
      @keyframes gradientShift {
        0% { background-position: 0% 50%; }
        50% { background-position: 100% 50%; }
        100% { background-position: 0% 50%; }
      }
      @keyframes glowPulse {
        0%, 100% { box-shadow: 0 0 8px rgba(255, 36, 66, 0.14); }
        50% { box-shadow: 0 0 20px rgba(255, 36, 66, 0.28); }
      }
      @keyframes wordCycleOut {
        from { opacity: 1; transform: translateY(0); }
        to   { opacity: 0; transform: translateY(-16px); }
      }
      @keyframes wordCycleIn {
        from { opacity: 0; transform: translateY(16px); }
        to   { opacity: 1; transform: translateY(0); }
      }
      @keyframes orbFloat1 {
        0%,100% { transform: translate(0,0) scale(1); }
        30%     { transform: translate(32px,-44px) scale(1.07); }
        65%     { transform: translate(-22px,20px) scale(0.95); }
      }
      @keyframes orbFloat2 {
        0%,100% { transform: translate(0,0) scale(1); }
        40%     { transform: translate(-38px,30px) scale(1.05); }
        72%     { transform: translate(24px,-20px) scale(0.97); }
      }
      @keyframes orbFloat3 {
        0%,100% { transform: translate(0,0) scale(1); }
        50%     { transform: translate(20px,36px) scale(1.06); }
      }
      @keyframes shimmerSwipe {
        from { transform: translateX(-160%) skewX(-12deg); }
        to   { transform: translateX(260%) skewX(-12deg); }
      }
      @keyframes springIn {
        0%   { opacity: 0; transform: scale(0.55); }
        55%  { opacity: 1; transform: scale(1.16); }
        78%  { transform: scale(0.93); }
        100% { opacity: 1; transform: scale(1); }
      }
      @keyframes progressRun {
        0%  { width: 0%;  opacity: 1; }
        50% { width: 62%; }
        85% { width: 80%; }
        100%{ width: 88%; opacity: 1; }
      }
      @keyframes progressFinish {
        0%  { width: 88%; opacity: 1; }
        65% { width: 100%; opacity: 1; }
        100%{ width: 100%; opacity: 0; }
      }


      .topbar {
        align-items: center;
        background: rgba(255, 255, 255, 0.82);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
        border-bottom: 1px solid rgba(226, 232, 240, 0.6);
        box-shadow: 0 1px 12px rgba(17, 24, 39, 0.06);
        display: flex;
        gap: 12px;
        padding: 8px 20px;
        position: sticky;
        top: 0;
        z-index: 30;
        overflow: hidden;
      }

      .topbar-nav {
        display: none;
        align-items: center;
        gap: 2px;
        position: relative;
      }
      .topbar-nav-pill {
        position: absolute;
        background: linear-gradient(135deg, rgba(255,36,66,0.11), rgba(124,58,237,0.09));
        border-radius: 8px;
        pointer-events: none;
        transition: left 0.3s cubic-bezier(0.4,0,0.2,1), width 0.3s cubic-bezier(0.4,0,0.2,1), top 0.3s, height 0.3s;
        z-index: 0;
      }

      body.has-results .topbar-nav {
        display: flex;
      }

      .topbar-nav-item {
        background: transparent;
        border: 0;
        border-radius: 8px;
        color: var(--muted);
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        padding: 7px 12px;
        transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        position: relative;
        z-index: 1;
      }

      .topbar-nav-item:hover { color: var(--text); }

      .topbar-nav-item.active {
        background: transparent;
        color: var(--brand);
        font-weight: 800;
      }

      .brand {
        align-items: center;
        display: flex;
        gap: 10px;
        min-width: 194px;
        white-space: nowrap;
      }

      .brand-mark {
        display: inline-flex;
        filter: drop-shadow(0 8px 14px rgba(217, 4, 53, 0.32));
        flex-shrink: 0;
        height: 36px;
        width: 36px;
      }

      .brand-name {
        font-size: 17px;
        font-weight: 800;
        letter-spacing: -0.02em;
      }

      .brand-name span:nth-child(1) { color: var(--text); }
      .brand-name span:nth-child(2) { background: linear-gradient(135deg, var(--brand), #ff6b8a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 900; }
      .brand-name span:nth-child(3) { color: var(--muted); font-weight: 700; }


      .search {
        align-items: center;
        background: #fff;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        display: flex;
        min-height: 42px;
        overflow: hidden;
        transition: border-color 0.25s, box-shadow 0.25s;
      }

      .search:focus-within {
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
      }

      .search input {
        border: 0;
        flex: 1;
        min-width: 0;
        outline: 0;
        padding: 10px 16px;
        font-weight: 500;
      }

      .search button, .primary, .secondary {
        border: 0;
        font-weight: 800;
      }

      .search button {
        background: linear-gradient(135deg, var(--brand), #ff6b8a);
        color: #fff;
        min-height: 42px;
        padding: 0 20px;
        transition: transform 0.2s, box-shadow 0.2s;
        letter-spacing: 0.01em;
      }

      .search button:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 14px rgba(255, 36, 66, 0.28);
      }

      .primary {
        background: linear-gradient(135deg, var(--brand), #ff6b8a);
        border-radius: 999px;
        color: #fff;
        min-height: 40px;
        padding: 0 20px;
        transition: transform 0.2s, box-shadow 0.25s;
        letter-spacing: 0.01em;
      }

      .primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 18px rgba(255, 36, 66, 0.32);
      }

      .secondary {
        background: #fff;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        color: var(--text);
        min-height: 36px;
        padding: 0 16px;
        transition: all 0.2s;
      }

      .secondary:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-1px);
      }

      .status-pill, .pill {
        border-radius: 999px;
        display: inline-flex;
        font-size: 11px;
        font-weight: 800;
        padding: 5px 12px;
        white-space: nowrap;
        letter-spacing: 0.02em;
        animation: scaleIn 0.3s ease-out both;
      }

      .good { background: #fff; border: 1px solid var(--line); color: #047857; }
      .warn { background: #fff; border: 1px solid var(--line); color: #b45309; }
      .info { background: #fff; border: 1px solid var(--line); color: #1d4ed8; }
      .bad { background: #fff; border: 1px solid var(--line); color: #b91c1c; }

      .rank-pill, .hero-stat-cell .rank-pill {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 8px;
        color: var(--text) !important;
        font-size: 12px;
        font-weight: 900;
        padding: 4px 10px;
        letter-spacing: 0.02em;
        display: inline-block;
        margin-top: 4px;
      }

      .rank-pill small {
        font-weight: 700;
        opacity: 0.85;
        margin-left: 3px;
      }

      .channel-grade {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 72px;
        height: 72px;
        border-radius: 18px;
        font-weight: 950;
        font-size: 28px;
        line-height: 1;
        color: #fff;
        flex-shrink: 0;
        position: relative;
        overflow: hidden;
        text-shadow: 0 2px 6px rgba(0,0,0,0.18);
        box-shadow: 0 10px 22px -6px var(--grade-glow, rgba(0,0,0,0.3)), inset 0 1px 0 rgba(255,255,255,0.4);
        transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.25s;
      }
      .channel-grade::before {
        content: "";
        position: absolute;
        z-index: -1;
        inset: 0;
        background: linear-gradient(135deg, rgba(255,255,255,0.45), transparent 55%);
      }
      .channel-grade:hover {
        transform: translateY(-2px) scale(1.05);
        box-shadow: 0 14px 28px -6px var(--grade-glow, rgba(0,0,0,0.35)), inset 0 1px 0 rgba(255,255,255,0.4);
      }
      .channel-grade small { font-size: 10px; font-weight: 800; opacity: 0.9; margin-top: 2px; letter-spacing: 0.04em; text-transform: uppercase; }
      .channel-grade.grade-aplus { background: linear-gradient(135deg, #0d9488, #10b981 50%, #4ade80); --grade-glow: rgba(16,185,129,0.5); }
      .channel-grade.grade-a { background: linear-gradient(135deg, #0891b2, #06b6d4 50%, #67e8f9); --grade-glow: rgba(6,182,212,0.45); }
      .channel-grade.grade-bplus { background: linear-gradient(135deg, #2563eb, #3b82f6 50%, #7dd3fc); --grade-glow: rgba(59,130,246,0.45); }
      .channel-grade.grade-b { background: linear-gradient(135deg, #4f46e5, #6366f1 50%, #a5b4fc); --grade-glow: rgba(99,102,241,0.45); }
      .channel-grade.grade-cplus { background: linear-gradient(135deg, #b45309, #d97706 50%, #fbbf24); --grade-glow: rgba(217,119,6,0.45); }
      .channel-grade.grade-c { background: linear-gradient(135deg, #c2410c, #ea580c 50%, #fdba74); --grade-glow: rgba(234,88,12,0.45); }
      .channel-grade.grade-d { background: linear-gradient(135deg, #b91c1c, #dc2626 50%, #fca5a5); --grade-glow: rgba(220,38,38,0.45); }

      .creator-stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
        animation: fadeInUp 0.4s ease-out both;
      }
      .creator-stat-card {
        padding: 22px;
        text-align: center;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .creator-stat-card:hover {
        box-shadow: 0 8px 22px rgba(17, 24, 39, 0.09);
        transform: translateY(-2px);
      }
      .creator-stat-card span { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
      .creator-stat-card strong { display: block; font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 26px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; }
      .creator-stat-card p { font-size: 11px; color: var(--muted); margin: 0; }

      .gained-chart-section {
        border: 1px solid var(--line);
        border-radius: 16px;
        background: #fff;
        overflow: hidden;
      }
      .gained-chart-section .chart-head {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 20px 0;
      }
      .gained-chart-section .chart-head h3 { font-size: 15px; font-weight: 900; margin: 0; }
      .gained-toggle-group {
        display: flex;
        gap: 0;
        border: 1px solid var(--line);
        border-radius: 8px;
        overflow: hidden;
      }
      .gained-toggle-group button {
        border: 0;
        background: #f8fafc;
        font-size: 11px;
        font-weight: 800;
        padding: 5px 12px;
        cursor: pointer;
        color: var(--muted);
        border-right: 1px solid var(--line);
      }
      .gained-toggle-group button:last-child { border-right: 0; }
      .gained-toggle-group button.active { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2); }

      .gained-bars-chart {
        display: flex;
        align-items: flex-end;
        gap: 4px;
        height: 118px;
      }
      .gained-bar-col {
        flex: 1 1 0;
        min-width: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
        height: 100%;
      }
      .gained-bar-val {
        font-size: 9px;
        font-weight: 800;
        color: var(--text);
        margin-bottom: 4px;
        white-space: nowrap;
        opacity: 0;
        transform: translateY(2px);
        transition: opacity 0.15s, transform 0.15s;
      }
      .gained-bar-col:hover .gained-bar-val { opacity: 1; transform: translateY(0); }
      .gained-bar-track {
        width: 100%;
        max-width: 30px;
        height: 88px;
        display: flex;
        align-items: flex-end;
        border-radius: 6px 6px 2px 2px;
        background: var(--soft);
      }
      .gained-bar-fill {
        width: 100%;
        min-height: 3px;
        border-radius: 6px 6px 2px 2px;
        opacity: 0.88;
        transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.15s;
      }
      .gained-bar-col:hover .gained-bar-fill { opacity: 1; }
      .gained-bar-label {
        font-size: 9px;
        font-weight: 700;
        color: var(--muted);
        margin-top: 6px;
        white-space: nowrap;
        height: 11px;
      }
      .gained-chart-empty { color: var(--muted); font-size: 12px; padding: 18px 4px; }

      /* --- Marquee auto-scroll --- */
      .marquee-track {
        overflow: hidden;
        position: relative;
        mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
        -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
      }

      .marquee-content {
        display: flex;
        gap: 10px;
        width: max-content;
        animation: marqueeScroll 30s linear infinite;
      }

      .marquee-track:hover .marquee-content {
        animation-play-state: paused;
      }

      @keyframes marqueeScroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-50%); }
      }

      .creator-chip {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 8px 16px 8px 8px;
        background: #fff;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        cursor: pointer;
        white-space: nowrap;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        flex-shrink: 0;
      }
      .creator-chip:hover { border-color: var(--blue); box-shadow: 0 4px 14px rgba(37,99,235,0.15); transform: translateY(-2px); }
      .creator-chip img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
      .creator-chip .chip-initial { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 14px; color: #fff; flex-shrink: 0; }
      .creator-chip span { font-size: 13px; font-weight: 800; }

      .compare-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
      .compare-card { padding: 16px 20px; display: flex; align-items: center; gap: 14px; }
      .compare-card:first-child { border-right: 1px solid var(--line); }
      .compare-card img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
      .compare-card .cc-info { flex: 1; min-width: 0; }
      .compare-card .cc-info h3 { font-size: 14px; font-weight: 900; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .compare-card .cc-stats { display: flex; gap: 16px; font-size: 12px; margin-top: 4px; }
      .compare-card .cc-stats span { font-weight: 800; }
      .compare-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 16px; }
      .compare-table th { padding: 12px 16px; font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; border-bottom: 2px solid var(--line); text-align: center; }
      .compare-table th:first-child { text-align: left; }
      .compare-table td { padding: 12px 16px; text-align: center; border-bottom: 1px solid #f1f4f8; font-weight: 600; }
      .compare-table td:first-child { text-align: left; font-weight: 800; color: var(--muted); }
      .compare-table td.winner { color: var(--green); font-weight: 900; }
      .compare-search-box { display: flex; gap: 8px; align-items: center; }
      .compare-search-box input { flex: 1; padding: 10px 14px; border: 2px solid var(--line); border-radius: 10px; font-size: 14px; font-weight: 700; outline: none; }
      .group-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; min-height: 20px; }
      .group-chip { display: inline-flex; align-items: center; gap: 6px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 6px 5px 12px; font-size: 12px; font-weight: 800; }
      .group-chip-remove { border: 0; background: none; cursor: pointer; font-size: 14px; font-weight: 900; color: var(--muted); line-height: 1; padding: 2px 6px; border-radius: 50%; }
      .group-chip-remove:hover { background: rgba(0,0,0,0.08); color: var(--bad); }
      .compare-search-box input:focus { border-color: var(--blue); }
      .compare-search-box button { padding: 10px 20px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-size: 13px; font-weight: 900; cursor: pointer; }
      @media (max-width: 768px) { .compare-cards { grid-template-columns: 1fr; } .compare-card:first-child { border-right: 0; border-bottom: 1px solid var(--line); } }

      .achievement-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
      }
      .achievement-badge {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 12px;
        font-size: 13px;
        font-weight: 800;
      }
      .achievement-badge .ach-icon {
        width: 28px;
        height: 28px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 13px;
        flex-shrink: 0;
        color: #fff;
      }
      .ach-badge-text {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
      }
      .ach-badge-val {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .ach-badge-type {
        font-size: 9px;
        font-weight: 800;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: 0.05em;
      }
      .ach-marker {
        flex-shrink: 0;
        font-size: 12px;
        font-weight: 900;
      }
      .ach-marker.ach-done {
        width: 18px;
        height: 18px;
        border-radius: 50%;
        background: var(--green);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 10px;
      }
      .ach-marker.ach-locked {
        opacity: 0.6;
      }
      .achievement-badge.locked {
        opacity: 0.45;
        filter: grayscale(1);
        background: #f1f4f8;
        border-style: dashed;
      }
      .ach-progress-bar {
        height: 10px;
        background: #eef2f7;
        border-radius: 6px;
        overflow: hidden;
      }
      .ach-progress-bar .fill {
        height: 100%;
        border-radius: 6px;
        background: linear-gradient(90deg, #f97316, #ef4444, #ec4899);
        background-size: 200% 100%;
        animation: gradientShift 3s ease infinite;
        transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .live-stats-hero {
        text-align: center;
        padding: 40px 20px 32px;
        background: linear-gradient(180deg, #fff8f9 0%, #fff 100%);
        border-bottom: 1px solid var(--line);
      }
      .live-stats-hero .live-big-number {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 72px;
        font-weight: 800;
        letter-spacing: -3px;
        line-height: 1;
        background: linear-gradient(135deg, var(--text) 40%, var(--brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .live-stats-hero .live-big-label {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 28px;
        font-weight: 700;
        color: var(--muted);
        margin-top: 4px;
      }
      .live-side-stats {
        display: flex;
        justify-content: center;
        gap: 48px;
        margin-top: 16px;
      }
      .live-side-stats .live-side-stat {
        text-align: center;
      }
      .live-side-stats .live-side-stat strong {
        display: block;
        font-size: 28px;
        font-weight: 950;
        color: var(--text);
      }
      .live-side-stats .live-side-stat span {
        font-size: 13px;
        font-weight: 700;
        color: var(--muted);
      }
      .live-chart-wrap {
        padding: 20px;
        min-height: 200px;
      }
      .live-pulse {
        display: inline-block;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ef4444;
        margin-right: 6px;
        animation: livePulse 1.5s ease-in-out infinite;
      }
      @keyframes livePulse {
        0%, 100% { opacity: 1; transform: scale(1); }
        50% { opacity: 0.4; transform: scale(0.7); }
      }

      @media (max-width: 768px) {
        .creator-stats-grid { grid-template-columns: repeat(2, 1fr); }
        .live-stats-hero .live-big-number { font-size: 48px; }
        .live-side-stats { gap: 24px; }
        .live-side-stats .live-side-stat strong { font-size: 20px; }
      }

      .page-shell {
        min-height: calc(100vh - 60px);
        overflow-x: hidden;
      }

      main {
        display: grid;
        gap: 16px;
        margin: 0 auto;
        max-width: 1200px;
        padding: 18px 40px;
        overflow-x: hidden;
      }

      .hero {
        background: linear-gradient(145deg, #ffffff 0%, #fff1f3 30%, #fdf4ff 62%, #eff6ff 100%);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: 0 1px 3px rgba(17,24,39,0.06), 0 24px 64px rgba(17,24,39,0.09);
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        gap: 28px;
        padding: 52px 44px;
        overflow: hidden;
        position: relative;
        animation: fadeInUp 0.7s cubic-bezier(0.22,1,0.36,1) both;
      }

      /* Animated gradient orbs */
      .hero-orb {
        border-radius: 50%;
        filter: blur(56px);
        pointer-events: none;
        position: absolute;
        z-index: 0;
      }
      .hero-orb-1 {
        background: radial-gradient(circle, rgba(255,36,66,0.26) 0%, transparent 68%);
        width: 460px; height: 460px;
        top: -140px; right: -100px;
        animation: orbFloat1 13s ease-in-out infinite;
      }
      .hero-orb-2 {
        background: radial-gradient(circle, rgba(37,99,235,0.20) 0%, transparent 68%);
        width: 360px; height: 360px;
        bottom: -100px; left: -80px;
        animation: orbFloat2 17s ease-in-out infinite;
      }
      .hero-orb-3 {
        background: radial-gradient(circle, rgba(192,38,211,0.16) 0%, transparent 68%);
        width: 300px; height: 300px;
        top: 38%; left: 42%;
        animation: orbFloat3 21s ease-in-out infinite;
      }

      /* Word cycle */
      .hero-cycle-wrap { display: inline-block; position: relative; }
      .hero-cycle-word {
        color: var(--brand);
        font-style: italic;
        display: inline-block;
        background: linear-gradient(135deg, var(--brand), #c026d3);
        -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        background-clip: text;
      }
      .hero-cycle-word.out { animation: wordCycleOut 0.3s cubic-bezier(0.4,0,1,1) forwards; }
      .hero-cycle-word.in  { animation: wordCycleIn  0.35s cubic-bezier(0,0,0.2,1) both; }

      .hero-visual {
        position: relative;
        z-index: 1;
        animation: float 7s ease-in-out infinite;
      }

      .hero-visual img {
        display: block;
        width: 100%;
        border-radius: 14px;
        border: 1px solid var(--line);
        box-shadow: 0 20px 50px rgba(17, 24, 39, 0.16);
      }

      @media (max-width: 900px) {
        .hero { grid-template-columns: 1fr; }
        .hero-visual { display: none; }
      }

      .hero::before { display: none; }
      .hero::after  { display: none; }

      body.has-results .home-only {
        display: none;
      }

      body.has-results #message {
        display: none;
      }

      body.has-results #compareTray {
        display: none;
      }

      h1, h2, h3, p { margin: 0; }
      h1 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: clamp(26px, 2.8vw, 42px); letter-spacing: -0.03em; line-height: 1.1; max-width: 780px; font-weight: 800; }
      h2 { font-family: 'Plus Jakarta Sans', 'Inter', sans-serif; font-size: 18px; line-height: 1.25; font-weight: 800; letter-spacing: -0.02em; }
      h3 { font-size: 13.5px; line-height: 1.3; font-weight: 700; }
      p { color: var(--muted); font-weight: 500; }

      .hero-copy {
        display: grid;
        gap: 12px;
        max-width: 680px;
      }

      .hero-search {
        align-items: center;
        background: #fff;
        border: 2px solid var(--line);
        border-radius: 999px;
        box-shadow: 0 8px 32px rgba(17, 24, 39, 0.08);
        display: flex;
        margin-top: 8px;
        min-height: 52px;
        max-width: 100%;
        overflow: hidden;
        transition: border-color 0.3s, box-shadow 0.3s;
        position: relative;
        z-index: 1;
        animation: heroSearchGlow 3.5s ease-in-out infinite;
      }

      @keyframes heroSearchGlow {
        0%, 100% { box-shadow: 0 8px 32px rgba(17, 24, 39, 0.08), 0 0 0 0 rgba(255, 36, 66, 0.12); }
        50% { box-shadow: 0 8px 32px rgba(17, 24, 39, 0.08), 0 0 0 5px rgba(255, 36, 66, 0); }
      }

      .hero-search:hover,
      .hero-search:focus-within {
        animation-play-state: paused;
      }

      .hero-search:focus-within {
        border-color: var(--brand);
        box-shadow: 0 8px 32px rgba(17, 24, 39, 0.08), 0 0 0 4px rgba(255, 36, 66, 0.1);
      }

      .hero-search input {
        border: 0;
        flex: 1;
        min-width: 0;
        outline: 0;
        padding: 14px 20px;
        font-size: 14.5px;
        font-weight: 500;
      }

      .hero-search button {
        background: linear-gradient(135deg, var(--brand), #ff6b8a);
        border: 0;
        color: #fff;
        font-weight: 800;
        min-height: 52px;
        padding: 0 24px;
        font-size: 14.5px;
        transition: transform 0.2s, box-shadow 0.25s;
        letter-spacing: 0.01em;
      }

      .hero-search button:hover {
        transform: scale(1.02);
        box-shadow: 0 4px 14px rgba(255, 36, 66, 0.32);
      }

      .hero-search button:active {
        transform: scale(0.95);
        box-shadow: 0 2px 8px rgba(255, 36, 66, 0.28);
      }


      .wide-visual {
        border-radius: 10px;
        overflow: hidden;
      }
      .wide-visual img {
        display: block;
        width: 100%;
        height: 100%;
        max-height: 360px;
        object-fit: cover;
        border-radius: 10px;
      }

      .proof-value {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 26px;
        font-weight: 800;
        letter-spacing: -0.02em;
      }

      .section-band {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
        display: grid;
        gap: 20px;
        grid-template-columns: 1fr 1.2fr;
        padding: 24px;
        overflow: hidden;
        max-width: 100%;
        animation: fadeInUp 0.5s ease-out both;
      }

      .section-band.reverse {
        grid-template-columns: 1.2fr 1fr;
      }

      .section-copy {
        display: grid;
        gap: 12px;
        padding: 8px;
      }

      .section-copy h2 {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: clamp(22px, 2.2vw, 34px);
        letter-spacing: -0.025em;
        line-height: 1.1;
        font-weight: 800;
      }

      .wide-visual {
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
      }

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

      .feature-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: var(--shadow);
        display: grid;
        gap: 10px;
        min-height: 158px;
        padding: 18px;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s;
        position: relative;
        overflow: hidden;
      }

      .feature-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,0.65) 50%, transparent 65%);
        transform: translateX(-200%) skewX(-12deg);
        border-radius: inherit;
        pointer-events: none;
        z-index: 2;
      }
      .feature-card:hover { transform: translateY(-5px); }
      .feature-card:hover::before { animation: shimmerSwipe 0.65s cubic-bezier(0.4,0,0.2,1) forwards; }
      .feature-card:nth-child(1):hover { box-shadow: 0 14px 40px rgba(239,68,68,0.2),  0 2px 8px rgba(17,24,39,0.06); }
      .feature-card:nth-child(2):hover { box-shadow: 0 14px 40px rgba(59,130,246,0.2), 0 2px 8px rgba(17,24,39,0.06); }
      .feature-card:nth-child(3):hover { box-shadow: 0 14px 40px rgba(139,92,246,0.2), 0 2px 8px rgba(17,24,39,0.06); }
      .feature-card:nth-child(4):hover { box-shadow: 0 14px 40px rgba(16,185,129,0.2), 0 2px 8px rgba(17,24,39,0.06); }

      .feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, #ef4444, #f97316); }
      .feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
      .feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #8b5cf6, #d946ef); }
      .feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #10b981, #34d399); }

      .feature-icon {
        align-items: center;
        border-radius: 10px;
        color: #fff;
        display: inline-flex;
        font-size: 16px;
        font-weight: 900;
        height: 36px;
        justify-content: center;
        width: 36px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
      }

      .panel {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: 0 1px 3px rgba(17, 24, 39, 0.06), 0 12px 36px rgba(17, 24, 39, 0.07);
        padding: 22px;
        animation: fadeInUp 0.4s ease-out both;
      }

      .live-workspace {
        display: grid;
        gap: 12px;
      }

      #results {
        scroll-margin-top: 92px;
      }

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

      .video-tile {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow: hidden;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .video-tile:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 32px rgba(17, 24, 39, 0.13);
        border-color: rgba(37, 99, 235, 0.25);
      }

      .video-tile img {
        aspect-ratio: 16 / 9;
        display: block;
        object-fit: cover;
        width: 100%;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .video-tile:hover img { transform: scale(1.05); }

      .video-tile div {
        padding: 9px;
      }

      .audience-ring {
        align-items: center;
        background: conic-gradient(var(--brand) 0 44%, #125cc7 44% 68%, #19a261 68% 86%, #f3b634 86% 100%);
        border-radius: 50%;
        display: grid;
        height: 116px;
        justify-items: center;
        margin: 10px auto;
        position: relative;
        width: 116px;
      }

      .audience-ring::after {
        background: #fbfcfe;
        border-radius: 50%;
        content: "";
        height: 70px;
        position: absolute;
        width: 70px;
      }

      .audience-ring strong {
        font-size: 20px;
        position: relative;
        z-index: 1;
      }

      .channelytics {
        background: transparent;
        display: grid;
        gap: 16px;
      }

      .source-banner {
        align-items: center;
        background: #fff;
        border: 1px solid rgba(37, 99, 235, 0.15);
        border-left: 3px solid #3b82f6;
        border-radius: 14px;
        box-shadow: 0 4px 16px rgba(37, 99, 235, 0.06);
        color: var(--text);
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        min-height: 48px;
        padding: 12px 16px;
      }

      .source-banner strong {
        font-size: 12px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .channel-hero-card,
      .ch-metric-card,
      .ch-chart-panel,
      .ch-side-card {
        background: rgba(255, 255, 255, 0.94);
        border: 1px solid var(--line);
        border-radius: 13px;
        min-width: 0;
      }

      .channel-hero-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
        display: grid;
        gap: 0;
        overflow: hidden;
        padding: 0;
        animation: fadeInUp 0.5s ease-out both;
      }

      .channel-hero-card > .hero-banner {
        background: linear-gradient(135deg, rgba(255, 36, 66, 0.04), rgba(37, 99, 235, 0.03));
        border-bottom: 1px solid var(--line);
        padding: 10px 24px;
      }

      .channel-hero-card > .hero-banner span {
        color: var(--muted);
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }

      .hero-body {
        display: grid;
        gap: 20px;
        padding: 20px 24px 24px;
      }

      .channel-overview-row {
        align-items: center;
        display: grid;
        gap: 14px;
      }

      .channel-identity {
        align-items: center;
        display: grid;
        gap: 14px;
        grid-template-columns: 76px minmax(0, 1fr);
      }

      .channel-avatar-large {
        aspect-ratio: 1;
        background: var(--soft);
        border: 3px solid #fff;
        border-radius: 50%;
        box-shadow: 0 4px 16px rgba(17, 24, 39, 0.1), 0 0 0 2px rgba(255, 36, 66, 0.1);
        object-fit: cover;
        width: 82px;
        transition: transform 0.3s, box-shadow 0.3s;
      }

      .channel-avatar-large:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 24px rgba(17, 24, 39, 0.15), 0 0 0 3px rgba(255, 36, 66, 0.15);
      }

      .channel-main-title {
        color: var(--text);
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 30px;
        font-weight: 800;
        letter-spacing: -0.025em;
        line-height: 1.1;
        overflow-wrap: anywhere;
      }

      .channel-main-meta {
        color: var(--muted);
        font-size: 13px;
        font-weight: 750;
        margin-top: 5px;
        overflow-wrap: anywhere;
      }

      .channel-description {
        color: var(--muted);
        display: -webkit-box;
        font-size: 13px;
        line-height: 1.45;
        margin-top: 9px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .channel-actions {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin-top: 14px;
      }

      .channel-actions button {
        min-height: 42px;
      }


      .channel-stat-strip {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .channel-stat {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
        min-height: 80px;
        padding: 14px 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease-out both;
      }

      .channel-stat:nth-child(1) { animation-delay: 0.05s; }
      .channel-stat:nth-child(2) { animation-delay: 0.1s; }
      .channel-stat:nth-child(3) { animation-delay: 0.15s; }
      .channel-stat:nth-child(4) { animation-delay: 0.2s; }

      .channel-stat:hover {
        box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, 0.25);
      }

      .channel-stat span,
      .ch-metric-card span,
      .daily-row.header {
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      .channel-stat strong {
        display: block;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 21px;
        font-weight: 800;
        line-height: 1.15;
        margin-top: 6px;
        overflow-wrap: anywhere;
        letter-spacing: -0.02em;
      }

      .ch-metric-card strong {
        display: block;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 28px;
        font-weight: 800;
        line-height: 1.08;
        margin-top: 6px;
        overflow-wrap: anywhere;
        letter-spacing: -0.02em;
      }

      .channel-stat p { font-size: 10px; color: var(--muted); margin-top: 2px; }

      .delta-badge {
        align-items: center;
        border-radius: 6px;
        display: inline-flex;
        font-size: 11px;
        font-weight: 850;
        gap: 3px;
        margin-top: 6px;
        padding: 3px 8px;
      }

      .delta-badge.up { background: #fff; border: 1px solid var(--line); color: #047857; }
      .delta-badge.down { background: #fff; border: 1px solid var(--line); color: #b91c1c; }
      .delta-badge.neutral { background: #fff; border: 1px solid var(--line); color: #1d4ed8; }
      .delta-badge.up::before { content: "▲"; font-size: 8px; }
      .delta-badge.down::before { content: "▼"; font-size: 8px; }

      .video-duration-badge {
        background: rgba(0, 0, 0, 0.78);
        border-radius: 4px;
        bottom: 6px;
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 2px 5px;
        position: absolute;
        right: 6px;
      }

      .thumb-wrap { position: relative; display: block; }

      .channel-layout {
        display: grid;
        gap: 0;
      }

      .channel-sidenav {
        display: none;
      }

      .tab-panel { display: grid; gap: 12px; }
      .tab-panel.hidden { display: none; }

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

      .hero-stat-cell {
        padding: 16px 18px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
        display: flex;
        flex-direction: column;
        gap: 3px;
        transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .hero-stat-cell:hover {
        box-shadow: 0 10px 28px rgba(17, 24, 39, 0.11);
        transform: translateY(-3px);
        border-color: rgba(255, 36, 66, 0.15);
      }

      .period-summary-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
        min-width: 0;
        padding: 16px 20px;
        transition: box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .period-summary-card:hover {
        box-shadow: 0 8px 22px rgba(17, 24, 39, 0.09);
        transform: translateY(-2px);
      }
      .hero-stat-cell span { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
      .hero-stat-cell strong { font-size: 20px; font-weight: 950; line-height: 1.1; }
      .hero-stat-cell p { font-size: 10px; color: var(--muted); margin-top: 2px; }

      .ch-metric-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
        min-height: 100px;
        padding: 14px 16px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease-out both;
      }

      .ch-metric-card:hover {
        box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
        transform: translateY(-3px);
        border-color: rgba(37, 99, 235, 0.2);
      }

      .ch-metric-card p { font-size: 11px; color: var(--muted); margin-top: 6px; letter-spacing: 0.03em; text-transform: uppercase; }

      .metric-delta {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 20px;
        color: #047857;
        display: inline-flex;
        font-size: 11px;
        font-weight: 800;
        margin-top: 8px;
        min-height: 26px;
        padding: 4px 12px;
        animation: scaleIn 0.3s ease-out both;
      }

      .metric-delta.neutral {
        color: #1d4ed8;
      }

      .metric-delta.warn {
        color: #b91c1c;
      }

      .ch-main-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) 340px;
      }

      .ch-chart-panel,
      .ch-side-card {
        display: grid;
        gap: 12px;
        padding: 14px;
      }

      .chart-toolbar {
        align-items: start;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(0, 1fr) auto;
      }

      .range-tabs {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
      }

      .range-tabs span {
        background: #f1f4f8;
        border: 1px solid var(--line);
        border-radius: 8px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 900;
        padding: 8px 14px;
        transition: all 0.15s;
      }

      .range-tabs span:hover:not(.active) {
        background: #e4e8ef;
      }

      .range-tabs .active {
        background: linear-gradient(135deg, var(--brand), #ff6b8a);
        border-color: var(--brand);
        color: #fff;
        box-shadow: 0 3px 10px rgba(255, 36, 66, 0.28);
      }

      .large-trend svg {
        display: block;
        height: 260px;
        width: 100%;
      }

      .chart-summary-line {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
      }

      .chart-summary-line strong {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 34px;
        font-weight: 800;
        line-height: 1;
        letter-spacing: -0.03em;
      }

      .daily-table {
        border: 1px solid var(--line);
        border-radius: 12px;
        overflow-x: auto;
      }

      .daily-row {
        align-items: center;
        border-top: 1px solid var(--line);
        display: grid;
        gap: 10px;
        grid-template-columns: 98px repeat(5, minmax(92px, 1fr));
        min-width: 720px;
        padding: 9px 11px;
      }

      .daily-row:first-child {
        border-top: 0;
      }

      .daily-row strong {
        font-size: 12px;
      }

      .video-row {
        align-items: center;
        border-top: 1px solid var(--line);
        display: grid;
        gap: 10px;
        grid-template-columns: 64px minmax(220px, 1fr) 90px 90px 100px 90px;
        min-width: 720px;
        padding: 8px 11px;
      }

      .video-row:first-child { border-top: 0; }
      .video-row:nth-child(even) { background: #f8fafc; }
      .video-row:hover { background: #eef2f7; }

      .video-row.header {
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 0.04em;
        text-transform: uppercase;
      }

      .video-row img {
        aspect-ratio: 16 / 9;
        border-radius: 4px;
        display: block;
        object-fit: cover;
        width: 100%;
      }

      .video-row strong {
        font-size: 12px;
        font-weight: 700;
      }

      .ch-side {
        display: grid;
        gap: 12px;
      }

      .recent-feature img {
        aspect-ratio: 16 / 9;
        border: 1px solid var(--line);
        border-radius: 11px;
        object-fit: cover;
        width: 100%;
      }

      .recent-feature h3,
      .outlier-list h3 {
        display: -webkit-box;
        font-size: 13px;
        line-height: 1.25;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .side-stat-list {
        display: grid;
        gap: 8px;
      }

      .side-stat {
        align-items: center;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        gap: 8px;
        grid-template-columns: minmax(0, 1fr) auto;
        min-height: 42px;
        padding: 9px;
      }

      .format-donut {
        align-items: center;
        background: conic-gradient(var(--brand) 0 42%, #125cc7 42% 70%, #19a261 70% 100%);
        border-radius: 50%;
        display: grid;
        height: 132px;
        justify-items: center;
        margin: 0 auto;
        position: relative;
        width: 132px;
      }

      .format-donut::after {
        background: #fff;
        border-radius: 50%;
        content: "";
        height: 78px;
        position: absolute;
        width: 78px;
      }

      .format-donut strong {
        font-size: 20px;
        position: relative;
        z-index: 1;
      }

      .outlier-list {
        display: grid;
        gap: 8px;
      }

      .outlier-row {
        align-items: center;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: flex;
        gap: 9px;
        padding: 7px 10px;
      }

      .outlier-row.highlighted {
        background: #fff3f5;
        border-color: var(--brand);
      }

      .outlier-row img {
        border-radius: 4px;
        flex-shrink: 0;
      }

      .outlier-row h3 {
        font-size: 11px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

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

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

      .featured-chart .large-trend svg {
        height: 280px;
      }

      .side-stack {
        display: grid;
        gap: 12px;
      }

      .dashboard-detail-grid {
        align-items: start;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .format-bars {
        display: grid;
        gap: 10px;
      }

      .pro-daily-table {
        border: 1px solid var(--line);
        border-radius: 12px;
        margin-top: 14px;
        overflow-x: auto;
      }

      .pro-daily-toolbar {
        align-items: center;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        margin: 12px 0 -2px;
      }

      .pro-daily-toolbar h3 {
        font-size: 13px;
        font-weight: 900;
        margin: 0;
      }

      .pro-daily-range {
        background: #eef2f7;
        border: 1px solid var(--line);
        border-radius: 999px;
        display: flex;
        gap: 2px;
        padding: 3px;
      }

      .pro-daily-range button {
        background: transparent;
        border: 0;
        border-radius: 999px;
        color: var(--muted);
        cursor: pointer;
        font-size: 11px;
        font-weight: 900;
        min-height: 28px;
        padding: 0 12px;
      }

      .pro-daily-range button.active {
        background: #fff;
        color: var(--brand);
        box-shadow: 0 1px 4px rgba(17, 24, 39, 0.08);
      }

      .pro-daily-row {
        align-items: center;
        display: grid;
        gap: 12px;
        grid-template-columns: 50px 100px 100px 130px 140px 150px 130px;
        min-height: 46px;
        min-width: 820px;
        padding: 0 14px;
      }

      .pro-daily-row:nth-child(odd):not(.header):not(.total) {
        background: #f8fafc;
      }

      .pro-daily-row.header {
        background: #eef2f7;
        color: #536176;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: 0.03em;
        text-transform: uppercase;
      }

      .pro-daily-row.total {
        border-top: 1px solid var(--line);
        font-weight: 900;
      }

      .table-positive {
        color: var(--green);
        font-weight: 900;
      }

      .pro-daily-row.pro-daily-estimated { opacity: 0.6; }
      .pro-daily-est-tag {
        display: inline-block;
        margin-left: 5px;
        font-size: 8px;
        font-weight: 800;
        letter-spacing: 0.03em;
        text-transform: uppercase;
        color: var(--muted);
        border: 1px solid var(--line);
        border-radius: 4px;
        padding: 1px 4px;
        vertical-align: middle;
        cursor: help;
      }

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

      .monthly-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 16px;
        box-shadow: var(--shadow);
        min-width: 0;
        padding: 20px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease-out both;
      }

      .monthly-card:hover {
        box-shadow: 0 8px 32px rgba(17, 24, 39, 0.1);
        transform: translateY(-2px);
      }

      .monthly-card .large-trend svg {
        height: 260px;
      }

      .analytics-note-grid {
        display: grid;
        gap: 10px;
      }

      .source-proof-list {
        display: grid;
        gap: 9px;
      }

      .source-proof-list div {
        align-items: center;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 11px;
        display: grid;
        gap: 10px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        min-height: 48px;
        padding: 10px;
      }

      .source-proof-list strong,
      .source-proof-list span {
        min-width: 0;
      }

      .recent-video-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 13px;
        display: grid;
        gap: 10px;
        padding: 10px;
      }

      .recent-video-card img {
        aspect-ratio: 16 / 9;
        border-radius: 10px;
        object-fit: cover;
        width: 100%;
      }

      .compact-panel {
        background: rgba(255, 255, 255, 0.7);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 14px;
      }

      .grid { display: grid; gap: 14px; }
      .two { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); }
      .three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .four { grid-template-columns: repeat(4, minmax(0, 1fr)); }

      .metric-label {
        color: var(--muted);
        font-size: 10px;
        font-weight: 850;
        text-transform: uppercase;
      }

      .axis-labels {
        color: var(--muted);
        display: flex;
        font-size: 10px;
        font-weight: 750;
        justify-content: space-between;
        min-height: 14px;
      }

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

      .coverage-item {
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 10px;
        min-height: 76px;
        padding: 12px;
      }

      .coverage-item strong {
        display: block;
        font-size: 15px;
        margin-top: 5px;
      }

      .trend-section {
        display: grid;
        gap: 12px;
      }

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

      .snapshot-note {
        align-items: center;
        background: #f8fafc;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        gap: 8px;
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 54px;
        padding: 10px 12px;
      }

      .history-board {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        display: grid;
        gap: 14px;
        grid-template-columns: 210px minmax(0, 1fr) 260px;
        overflow: hidden;
        padding: 14px;
        animation: fadeInUp 0.5s ease-out both;
        position: relative;
      }

      .history-board::before {
        content: "";
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 3px;
        background: linear-gradient(90deg, #ef4444, #f97316, #eab308, #22c55e, #3b82f6, #8b5cf6);
        background-size: 300% 100%;
        animation: gradientShift 6s ease infinite;
      }

      .history-side, .history-main, .history-rail {
        min-width: 0;
      }

      .history-side {
        display: grid;
        gap: 10px;
      }

      .history-side-title {
        background: rgba(255, 255, 255, 0.78);
        border: 1px solid var(--line);
        border-radius: 12px;
        padding: 12px;
      }

      .history-side-title strong {
        display: block;
        font-size: 15px;
        line-height: 1.15;
      }

      .history-nav-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: grid;
        gap: 6px;
        grid-template-columns: auto minmax(0, 1fr);
        min-height: 54px;
        padding: 10px;
      }

      .history-icon {
        align-items: center;
        background: var(--bad-soft);
        border-radius: 999px;
        color: var(--brand);
        display: inline-flex;
        font-weight: 950;
        height: 28px;
        justify-content: center;
        width: 28px;
      }

      .history-nav-card strong,
      .history-upload strong {
        display: -webkit-box;
        line-height: 1.22;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .history-nav-card p,
      .history-upload p {
        font-size: 11px;
      }

      .history-main {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 18px 44px rgba(17, 24, 39, 0.1);
        display: grid;
        gap: 11px;
        padding: 12px;
      }

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

      .snapshot-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 11px;
        min-height: 88px;
        padding: 9px;
      }

      .snapshot-card.is-active {
        border-color: rgba(250, 0, 63, 0.5);
        box-shadow: 0 10px 22px rgba(250, 0, 63, 0.12);
      }

      .snapshot-card span {
        color: var(--muted);
        display: block;
        font-size: 10px;
        font-weight: 850;
      }

      .snapshot-card strong {
        display: block;
        font-size: 14px;
        margin-top: 3px;
      }

      .snapshot-card svg {
        height: 24px;
        margin-top: 6px;
        width: 100%;
      }

      .history-chart-grid {
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(0, 1.3fr) minmax(210px, 0.7fr);
      }

      .history-card {
        background: #fbfcfe;
        border: 1px solid var(--line);
        border-radius: 13px;
        min-width: 0;
        padding: 12px;
      }

      .history-card svg {
        display: block;
        height: 154px;
        width: 100%;
      }

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

      .history-mini-metric {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        min-height: 62px;
        padding: 9px;
      }

      .history-mini-metric span {
        color: var(--muted);
        display: block;
        font-size: 10px;
        font-weight: 850;
        text-transform: uppercase;
      }

      .history-mini-metric strong {
        display: block;
        font-size: 15px;
        margin-top: 4px;
      }

      .history-flow {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        padding: 9px;
      }

      .flow-step {
        align-items: center;
        display: grid;
        gap: 8px;
        grid-template-columns: auto minmax(0, 1fr);
      }

      .flow-step span {
        align-items: center;
        background: var(--bad-soft);
        border: 1px solid rgba(250, 0, 63, 0.25);
        border-radius: 999px;
        color: var(--brand);
        display: inline-flex;
        font-size: 11px;
        font-weight: 950;
        height: 28px;
        justify-content: center;
        width: 28px;
      }

      .flow-step strong {
        font-size: 11px;
      }

      .flow-step p {
        font-size: 10px;
      }

      .history-rail {
        display: grid;
        gap: 10px;
      }

      .history-rail-card {
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid var(--line);
        border-radius: 13px;
        display: grid;
        gap: 9px;
        padding: 12px;
      }

      .history-upload {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        gap: 8px;
        grid-template-columns: 56px minmax(0, 1fr) auto;
        padding: 8px;
      }

      .history-upload img {
        aspect-ratio: 16 / 9;
        border-radius: 7px;
        object-fit: cover;
        width: 56px;
      }

      .history-upload-value {
        color: var(--green);
        font-weight: 900;
        white-space: nowrap;
      }

      .history-source-grid {
        display: grid;
        gap: 8px;
      }

      .history-source {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        gap: 8px;
        grid-template-columns: auto minmax(0, 1fr);
        padding: 9px;
      }

      .history-source strong {
        font-size: 12px;
      }

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

      .summary-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
        min-height: 90px;
        padding: 14px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease-out both;
        position: relative;
        overflow: hidden;
      }

      .summary-card:hover {
        box-shadow: 0 8px 24px rgba(17, 24, 39, 0.1);
        transform: translateY(-3px);
      }

      .summary-card strong {
        display: block;
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 23px;
        font-weight: 800;
        line-height: 1.05;
        margin-top: 6px;
        letter-spacing: -0.02em;
      }

      .summary-card p { font-size: 11px; }

      .workbench-grid {
        display: grid;
        gap: 12px;
      }

      .performance-table {
        border: 1px solid var(--line);
        border-radius: 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
      }

      .performance-row {
        align-items: center;
        background: #fff;
        border-top: 1px solid var(--line);
        display: grid;
        gap: 10px;
        grid-template-columns: 44px minmax(220px, 1fr) repeat(6, minmax(82px, 0.2fr));
        min-width: 820px;
        min-height: 62px;
        padding: 10px 14px;
        transition: background 0.15s;
      }

      .performance-row:first-child {
        border-top: 0;
      }

      .performance-row.header {
        background: #f8fafc;
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        min-height: 40px;
        text-transform: uppercase;
      }

      .rank-cell {
        color: var(--muted);
        font-weight: 900;
      }

      .video-title-cell {
        align-items: center;
        display: grid;
        gap: 9px;
        grid-template-columns: 72px minmax(0, 1fr);
        min-width: 0;
      }

      .video-title-cell img {
        aspect-ratio: 16 / 9;
        border: 1px solid var(--line);
        border-radius: 8px;
        object-fit: cover;
        width: 72px;
      }

      .video-title-cell strong {
        display: -webkit-box;
        line-height: 1.2;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .data-cell {
        font-weight: 850;
        min-width: 0;
      }

      .data-cell span {
        color: var(--muted);
        display: block;
        font-size: 10px;
        font-weight: 750;
      }

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

      .signal-item {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding: 14px;
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }

      .signal-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(17, 24, 39, 0.08);
        border-color: rgba(124, 58, 237, 0.2);
      }

      .signal-item strong {
        font-size: 12px;
        line-height: 1.3;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
      }

      .signal-item p { font-size: 11px; color: var(--muted); }

      .video-detail-grid {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
      @media (max-width: 1100px) { .video-detail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
      @media (max-width: 768px) { .video-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

      .vs-sort-dropdown {
        position: relative;
        display: inline-block;
      }
      .vs-sort-btn {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 8px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        font-size: 12px;
        font-weight: 800;
        cursor: pointer;
      }
      .vs-sort-btn:hover { border-color: var(--blue); }
      .vs-sort-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        margin-top: 4px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 10px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
        z-index: 20;
        min-width: 180px;
        overflow: hidden;
      }
      .vs-sort-menu.open { display: block; }
      .vs-sort-menu button {
        display: block;
        width: 100%;
        text-align: left;
        padding: 10px 16px;
        border: 0;
        background: none;
        font-size: 12px;
        font-weight: 700;
        cursor: pointer;
      }
      .vs-sort-menu button:hover { background: #f1f5f9; }
      .vs-sort-menu button.active { color: var(--blue); font-weight: 900; }

      .vs-video-search {
        padding: 8px 14px;
        border: 1px solid var(--line);
        border-radius: 8px;
        font-size: 13px;
        font-weight: 600;
        outline: none;
        width: 200px;
      }
      .vs-video-search:focus { border-color: var(--blue); }
      .vs-video-search::placeholder { color: #94a3b8; }

      .top-lists-section { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin-bottom: 16px; max-width: 100%; box-shadow: 0 1px 2px rgba(15,23,42,0.04); }
      .top-lists-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(135deg, rgba(37,99,235,0.06), rgba(124,58,237,0.05) 55%, rgba(236,72,153,0.05)); }
      .top-lists-title { font-size: 15px; font-weight: 900; background: linear-gradient(135deg, var(--blue), #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
      .top-lists-date { font-size: 11px; font-weight: 800; color: var(--blue); background: rgba(37,99,235,0.1); padding: 5px 12px; border-radius: 999px; letter-spacing: 0.02em; }

      .tl-pagination {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 14px 16px;
        border-top: 1px solid var(--line);
      }
      .tl-page-btn {
        background: #fff;
        border: 1.5px solid var(--line);
        border-radius: 999px;
        color: var(--text);
        cursor: pointer;
        font-size: 12px;
        font-weight: 800;
        padding: 7px 16px;
        transition: all 0.2s;
      }
      .tl-page-btn:hover:not(:disabled) {
        border-color: var(--blue);
        color: #fff;
        background: linear-gradient(135deg, var(--blue), #7c3aed);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px -2px rgba(37,99,235,0.4);
      }
      .tl-page-btn:disabled {
        opacity: 0.35;
        cursor: not-allowed;
      }
      .tl-page-info {
        font-size: 12px;
        font-weight: 700;
        color: var(--muted);
      }
      [data-theme="dark"] .tl-page-btn {
        background: var(--surface);
        border-color: var(--line-strong);
        color: var(--text);
      }
      .top-lists-body { min-height: 400px; }
      .top-lists-filters { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
      .top-lists-filters .filter-group { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
      .top-lists-filters .filter-group-title { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: 0.03em; margin-right: 2px; }
      .top-lists-filters button.filter-item { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; transition: all 0.15s; }
      .top-lists-filters button.filter-item:hover { border-color: var(--blue); color: var(--blue); }
      .top-lists-filters button.filter-item.active { background: #fff; border: 2px solid var(--blue); color: var(--text); font-weight: 900; }
      .top-lists-table-wrap { overflow-x: auto; }
      .top-lists-filter-tabs { display: flex; gap: 4px; padding: 12px 16px 0; }
      .top-lists-filter-tabs button { padding: 6px 14px; border: 0; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; background: #f1f5f9; color: var(--muted); }
      .top-lists-filter-tabs button.active { background: var(--blue); color: #fff; }
      .top-lists-filter-tabs button.longs.active { background: #dc2626; color: #fff; }
      .top-lists-filter-tabs button.shorts.active { background: #7c3aed; color: #fff; }
      table.top-list-table { width: 100%; border-collapse: collapse; }
      table.top-list-table th { padding: 10px 12px; font-size: 11px; font-weight: 900; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
      table.top-list-table td { padding: 10px 12px; border-bottom: 1px solid #f5f7fb; vertical-align: middle; font-size: 13px; white-space: nowrap; }
      table.top-list-table tbody tr[data-search] { cursor: pointer; transition: background 0.12s; }
      table.top-list-table tbody tr[data-search]:hover { background: #f0f4ff; }
      table.top-list-table tbody tr[data-search]:hover .top-ch-name { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
      table.top-list-table tbody tr.top-row-1 { background: linear-gradient(90deg, rgba(245,158,11,0.08), transparent 60%); }
      table.top-list-table tbody tr.top-row-2 { background: linear-gradient(90deg, rgba(100,116,139,0.07), transparent 60%); }
      table.top-list-table tbody tr.top-row-3 { background: linear-gradient(90deg, rgba(180,83,9,0.07), transparent 60%); }
      .top-rank-num { width: 44px; text-align: center; }
      .top-rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; font-size: 12px; font-weight: 900; color: var(--muted); background: #f1f5f9; }
      .top-rank-badge.rank-1 { width: 34px; height: 34px; font-size: 14px; color: #fff; background: linear-gradient(135deg, #f59e0b, #fbbf24 55%, #fde68a); box-shadow: 0 4px 12px -2px rgba(245,158,11,0.55); }
      .top-rank-badge.rank-2 { width: 34px; height: 34px; font-size: 14px; color: #fff; background: linear-gradient(135deg, #64748b, #94a3b8 55%, #cbd5e1); box-shadow: 0 4px 12px -2px rgba(100,116,139,0.45); }
      .top-rank-badge.rank-3 { width: 34px; height: 34px; font-size: 14px; color: #fff; background: linear-gradient(135deg, #b45309, #d97706 55%, #fbbf24); box-shadow: 0 4px 12px -2px rgba(180,83,9,0.45); }
      .top-channel-cell { display: flex; align-items: center; gap: 10px; }
      .top-channel-cell img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
      .top-channel-cell .top-ch-name { font-weight: 800; font-size: 13px; transition: color 0.12s; }
      .top-channel-cell .top-ch-handle { font-size: 11px; color: var(--muted); }
      .top-subs-val { color: var(--blue); font-weight: 800; }
      .top-new-subs { color: #16a34a; font-weight: 800; }
      .top-views-val { color: var(--green); font-weight: 800; }
      .top-uploads-val { color: var(--purple); font-weight: 800; }
      .top-null-val { color: var(--muted); font-weight: 600; }
      .top-video-cell { display: flex; align-items: center; gap: 10px; }
      .top-video-cell img { width: 80px; height: 45px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
      .top-video-cell .top-vid-title { font-weight: 700; font-size: 12px; max-width: 240px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
      .vs-milestone-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
      .vs-milestone-card { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
      .vs-milestone-icon { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 900; letter-spacing: -0.02em; flex-shrink: 0; }
      .vs-milestone-card .ms-val { font-size: 22px; font-weight: 950; }
      .vs-milestone-card .ms-label { font-size: 12px; color: var(--muted); font-weight: 700; }
      .vs-milestone-card .ms-eta { font-size: 11px; font-weight: 900; padding: 4px 12px; border-radius: 999px; color: #fff; white-space: nowrap; }
      .vs-proj-toggle { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
      .vs-proj-toggle button { padding: 0; border: 0; background: none; font-size: 18px; font-weight: 900; cursor: pointer; color: var(--muted); border-bottom: 3px solid transparent; padding-bottom: 4px; }
      .vs-proj-toggle button.active { color: var(--text); border-bottom-color: var(--brand); }
      .sim-score-badge { display: inline-block; font-size: 13px; font-weight: 900; padding: 4px 14px; border-radius: 999px; min-width: 36px; text-align: center; }
      .sim-score-high { background: #dcfce7; color: #15803d; }
      .sim-score-med { background: #ecfccb; color: #3f6212; }
      .sim-score-low { background: #f3f4f6; color: #6b7280; }
      @media (max-width: 900px) {
        .top-lists-header { flex-direction: column; align-items: flex-start; }
        .top-lists-filters .filter-group-title { display: none; }
        .top-lists-filters button.filter-item { padding: 6px 10px; font-size: 11px; }
        .vs-milestone-cards { grid-template-columns: 1fr; }
      }

      .dash-video-board { display: grid; gap: 10px; }
      .dash-video-strip { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .dash-video-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
      .dash-video-card:hover { box-shadow: 0 8px 24px rgba(17,24,39,0.1); transform: translateY(-3px); border-color: rgba(37, 99, 235, 0.2); }
      .dash-video-card img { aspect-ratio: 16/9; display: block; object-fit: cover; width: 100%; }
      .dash-video-card div { display: grid; gap: 3px; padding: 9px; }
      .dash-video-card h3 { display: -webkit-box; font-size: 11px; font-weight: 800; line-height: 1.28; min-height: 26px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
      .dash-video-card p { font-size: 10px; }

      .upload-card {
        align-items: start;
        background: #fbfcfe;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: grid;
        gap: 12px;
        grid-template-columns: 136px minmax(0, 1fr);
        min-height: 116px;
        padding: 10px;
      }

      .upload-card img {
        aspect-ratio: 16 / 9;
        border: 1px solid var(--line);
        border-radius: 9px;
        object-fit: cover;
        width: 100%;
      }

      .upload-card h3 {
        display: -webkit-box;
        font-size: 13px;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
      }

      .upload-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
        margin-top: 8px;
      }

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

      .channel-row {
        align-items: start;
        display: grid;
        gap: 14px;
        grid-template-columns: 86px minmax(0, 1fr) auto;
      }

      .avatar {
        aspect-ratio: 1;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 12px;
        object-fit: cover;
        width: 86px;
      }

      .description {
        color: var(--muted);
        margin-top: 8px;
        max-width: 860px;
      }

      .video {
        align-items: center;
        background: #fafbfc;
        border: 1px solid var(--line);
        border-radius: 10px;
        display: grid;
        gap: 12px;
        grid-template-columns: 116px minmax(0, 1fr) auto;
        min-height: 84px;
        padding: 10px;
      }

      .video img {
        aspect-ratio: 16 / 9;
        background: var(--soft);
        border: 1px solid var(--line);
        border-radius: 8px;
        display: block;
        object-fit: cover;
        width: 100%;
      }

      .muted { color: var(--muted); }
      .right { text-align: right; }

      .empty {
        background: #fff;
        border: 2px dashed var(--line);
        border-radius: 16px;
        color: var(--muted);
        display: grid;
        gap: 8px;
        min-height: 78px;
        padding: 24px;
        text-align: center;
        animation: fadeIn 0.4s ease-out both;
      }

      .empty strong { color: var(--text); font-size: 14px; }

      .loading {
        animation: shimmer 1.8s linear infinite;
        background: linear-gradient(90deg, #e2e8f0 0%, #f1f5f9 30%, #e2e8f0 60%);
        background-size: 400% 100%;
        border-radius: 14px;
        min-height: 96px;
      }

      .compare-tray {
        align-items: center;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 12px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: space-between;
        padding: 12px 14px;
      }

      .toast {
        background: linear-gradient(135deg, #1e40af, #3b82f6);
        border-radius: 12px;
        bottom: 20px;
        color: #fff;
        display: none;
        font-weight: 700;
        padding: 14px 18px;
        position: fixed;
        right: 20px;
        z-index: 50;
        box-shadow: 0 8px 32px rgba(37, 99, 235, 0.3);
      }

      .toast.active { display: block; animation: fadeInUp 0.35s ease-out both; }

      /* --- AI insight cards --- */
      .ai-section {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 18px;
        box-shadow: var(--shadow);
        display: grid;
        gap: 14px;
        padding: 20px;
        position: relative;
        overflow: hidden;
        animation: fadeInUp 0.5s ease-out both;
      }

      .ai-section::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 3px;
        background: linear-gradient(90deg, #2563eb, #7c3aed, #ec4899, #ef4444);
        background-size: 300% 100%;
        animation: gradientShift 4s ease infinite;
      }

      .ai-card {
        background: #fff;
        border: 1px solid var(--line);
        border-left: 3px solid;
        border-image: linear-gradient(180deg, #2563eb, #7c3aed) 1;
        border-radius: 0 14px 14px 0;
        display: grid;
        gap: 8px;
        padding: 16px;
        transition: transform 0.2s, box-shadow 0.2s;
      }

      .ai-card:hover {
        transform: translateX(2px);
        box-shadow: 0 4px 16px rgba(124, 58, 237, 0.08);
      }

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

      .health-gauge {
        display: grid;
        gap: 14px;
        padding: 8px 0;
      }

      .health-score-row {
        display: flex;
        align-items: center;
        gap: 14px;
      }

      .health-score-number {
        font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
        font-size: 44px;
        font-weight: 800;
        letter-spacing: -2px;
        line-height: 1;
        min-width: 60px;
        background: linear-gradient(135deg, var(--text) 60%, var(--brand));
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
      }

      .health-score-bar {
        flex: 1;
        display: flex;
        flex-direction: column;
        gap: 4px;
      }

      .health-score-track {
        background: #eef2f7;
        border-radius: 6px;
        height: 10px;
        overflow: hidden;
        width: 100%;
      }

      .health-score-fill {
        border-radius: 6px;
        height: 100%;
        transition: width 1s ease-out;
      }

      .health-score-labels {
        display: flex;
        justify-content: space-between;
        font-size: 9px;
        font-weight: 700;
        color: var(--muted);
      }
      .gauge-ring span { color: var(--muted); font-size: 9px; font-weight: 850; position: relative; text-transform: uppercase; z-index: 1; letter-spacing: 0.03em; }

      .heatmap-grid {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(7, minmax(0, 1fr));
      }

      .heatmap-cell {
        border-radius: 8px;
        min-height: 52px;
        padding: 8px;
        text-align: center;
      }

      .heatmap-cell strong { display: block; font-size: 11px; }
      .heatmap-cell span { color: var(--muted); display: block; font-size: 10px; font-weight: 800; }

      /* --- Enhanced metric cards --- */
      .ch-metric-card.positive { border-left: 3px solid #10b981; }
      .ch-metric-card.negative { border-left: 3px solid #ef4444; }
      .ch-metric-card.neutral { border-left: 3px solid #3b82f6; }

      /* --- Trend arrows --- */
      .trend-up { color: var(--green); }
      .trend-up::before { content: "▲ "; font-size: 9px; }
      .trend-down { color: var(--bad); }
      .trend-down::before { content: "▼ "; font-size: 9px; }

      /* --- Table polish --- */
      .daily-row:nth-child(even) { background: #f8fafc; }
      .daily-row:hover { background: #eef2f7; }
      .performance-row:nth-child(even) { background: #fafbfe; }
      .performance-row:hover { background: #eef2f7; }

      /* --- Bar chart rise animation --- */
      /* --- Line chart draw animation --- */
      @keyframes drawLine {
        from { stroke-dashoffset: var(--path-length, 2000); }
        to { stroke-dashoffset: 0; }
      }

      .animated-path {
        stroke-dasharray: var(--path-length, 2000);
        animation: drawLine 1.2s ease-out both;
      }

      /* --- Circle pop-in --- */
      @keyframes popIn {
        from { r: 0; opacity: 0; }
        to { opacity: 1; }
      }

      .large-trend circle, .history-card circle { animation: popIn 0.3s ease-out both; }

      /* --- Trending channel cards --- */
      .trending-card {
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 14px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        animation: fadeInUp 0.4s ease-out both;
      }
      .trending-card:hover {
        box-shadow: 0 8px 28px rgba(37, 99, 235, 0.18);
        transform: translateY(-3px) scale(1.015);
        border-color: rgba(37, 99, 235, 0.3);
      }
      .trending-card:hover .trending-avatar { transform: scale(1.08); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18); }
      .trending-card:hover .trending-rank { transform: scale(1.12); }
      .trending-avatar {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        object-fit: cover;
        background: var(--soft);
        border: 1px solid var(--line);
        flex-shrink: 0;
        transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
      }
      .trending-info { min-width: 0; flex: 1; }
      .trending-name { font-size: 12px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
      .trending-subs { font-size: 11px; color: var(--muted); font-weight: 600; margin-top: 1px; }
      .trending-rank {
        font-size: 10px; font-weight: 800; color: #fff; background: var(--blue); border-radius: 4px; padding: 2px 6px; flex-shrink: 0;
        transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1);
        animation: springIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both;
      }
      .trending-gain-pulse { display: inline-block; animation: gainPulse 2.2s ease-in-out infinite; }
      @keyframes gainPulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
      }
      @media (prefers-reduced-motion: reduce) {
        .hero-search, .trending-gain-pulse { animation: none; }
      }

      .trending-filter-select {
        font-size: 11px; font-weight: 700; color: var(--text); background: var(--surface);
        border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer;
      }
      .trending-filter-select:hover { border-color: var(--line-strong); }
      .trending-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: start; }
      .trending-col-label { font-size: 11px; font-weight: 800; color: var(--muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.04em; }
      .trending-channels-list { display: flex; flex-direction: column; gap: 8px; }
      .trending-video-tile { cursor: pointer; position: relative; }
      .trending-gain-badge { position: absolute; top: 6px; right: 6px; z-index: 1; }
      @media (max-width: 768px) {
        .trending-grid { grid-template-columns: 1fr; }
      }

      /* --- SVG donut chart --- */
      .svg-donut { display: block; margin: 0 auto; }
      .svg-donut circle { transition: stroke-dasharray 0.8s ease-out; }

      @keyframes pulse {
        0% { background-position: 0% 0; }
        100% { background-position: -220% 0; }
      }

      /* ---- Top progress bar ---- */
      #topProgress {
        position: fixed;
        top: 0; left: 0;
        height: 2.5px;
        width: 0%;
        background: linear-gradient(90deg, var(--brand), #ff6b8a, var(--purple), var(--blue));
        background-size: 300% 100%;
        z-index: 10000;
        opacity: 0;
        pointer-events: none;
        border-radius: 0 3px 3px 0;
        box-shadow: 0 0 10px rgba(255,0,0,0.5);
        animation: gradientShift 2s linear infinite;
      }
      #topProgress.loading {
        opacity: 1;
        animation: progressRun 12s ease-out forwards, gradientShift 2s linear infinite;
      }
      #topProgress.done {
        animation: progressFinish 0.55s ease-out forwards;
      }

      /* ---- Panel subtle hover ---- */
      .panel { transition: box-shadow 0.3s cubic-bezier(0.4,0,0.2,1), transform 0.3s cubic-bezier(0.4,0,0.2,1); }
      .panel:hover { box-shadow: 0 6px 32px rgba(17,24,39,0.11); }

      /* ---- Rank pill spring entrance ---- */
      .rank-pill { animation: springIn 0.45s cubic-bezier(0.34,1.56,0.64,1) both; }

      /* ---- Delta badge spring ---- */
      .delta-badge { animation: springIn 0.4s cubic-bezier(0.34,1.56,0.64,1) both; }

      /* ---- Scroll reveal (starts invisible, JS adds .revealed) ---- */
      .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s cubic-bezier(0.22,1,0.36,1), transform 0.55s cubic-bezier(0.22,1,0.36,1); }
      .reveal.revealed { opacity: 1; transform: translateY(0); }

      /* ---- Section band entrance on scroll ---- */
      .section-band { animation: none; }

      /* ---- Search focus elevate ---- */
      .hero-search:focus-within .hero-orb-1 { filter: blur(48px); opacity: 0.65; }

      /* ---- Dark mode depth upgrades ---- */
      [data-theme="dark"] .hero {
        background: linear-gradient(145deg, #1b2540 0%, #1d1638 50%, #141e38 100%);
        box-shadow: 0 1px 3px rgba(0,0,0,0.5), 0 24px 64px rgba(0,0,0,0.55);
      }
      [data-theme="dark"] .hero-orb-1 { opacity: 0.38; }
      [data-theme="dark"] .hero-orb-2 { opacity: 0.32; }
      [data-theme="dark"] .hero-orb-3 { opacity: 0.25; }
      [data-theme="dark"] .panel {
        box-shadow: 0 1px 3px rgba(0,0,0,0.4), 0 8px 32px rgba(0,0,0,0.45);
      }
      [data-theme="dark"] .panel:hover {
        box-shadow: 0 4px 24px rgba(0,0,0,0.55);
      }
      [data-theme="dark"] .feature-card::before {
        background: linear-gradient(108deg, transparent 35%, rgba(255,255,255,0.08) 50%, transparent 65%);
      }
      [data-theme="dark"] body::after {
        content: "";
        position: fixed;
        inset: 0;
        pointer-events: none;
        z-index: -1;
        opacity: 0.025;
        mix-blend-mode: overlay;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
      }

      @media (max-width: 940px) {
        .topbar, .hero, .section-band, .section-band.reverse, .feature-grid, .video-tile-grid, .channel-overview-row, .channel-stat-strip, .ch-card-grid, .ch-main-grid, .chart-toolbar, .analytics-metrics, .analytics-layout, .dashboard-detail-grid, .monthly-analytics-grid, .channel-layout, .workbench-grid, .summary-grid, .video-detail-grid, .history-board, .history-chart-grid, .history-metrics-row, .trend-chart-grid, .coverage-grid {
          grid-template-columns: 1fr;
        }
        .topbar-nav { gap: 0; }
        .topbar-nav-item { font-size: 10px; padding: 5px 6px; }

        .brand { min-width: 0; }
        .channel-hero-card > div { grid-template-columns: 1fr !important; }
        .channel-hero-card > div > div:last-child { border-left: 0 !important; border-top: 1px solid var(--line); }
        .topbar { padding: 10px 14px; }
        main { padding: 14px; }
        .video { grid-template-columns: 98px minmax(0, 1fr); }
        .video .right { grid-column: 2; text-align: left; }
        .large-trend svg { height: 210px; }
        .daily-table, .pro-daily-table, .performance-table {
          -webkit-overflow-scrolling: touch;
          background: linear-gradient(90deg, #fff 30%, transparent), linear-gradient(90deg, transparent, #fff 70%) right, linear-gradient(90deg, rgba(0,0,0,.06), transparent 20px), linear-gradient(90deg, transparent, rgba(0,0,0,.06) 20px) right;
          background-repeat: no-repeat;
          background-size: 40px 100%, 40px 100%, 20px 100%, 20px 100%;
          background-attachment: local, local, scroll, scroll;
        }
        .ai-grid { grid-template-columns: 1fr; }
        .heatmap-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      }
