    :root {
      --font-display: 'Space Grotesk', sans-serif;
      --font-body: 'JetBrains Mono', monospace;
      --ink: #050911;
      --panel: rgba(15, 21, 31, 0.74);
      --panel-2: rgba(10, 14, 22, 0.88);
      --stroke: rgba(148, 163, 184, 0.22);
      --accent: #3b82f6;
      --accent-soft: rgba(59, 130, 246, 0.22);
      color-scheme: dark;
    }
    html, body { scroll-behavior: smooth; }
    body { overflow-x: hidden; background: var(--ink); }
    .font-display { font-family: var(--font-display); }
    .font-body { font-family: var(--font-body); }
    #canvas-container { position: fixed; inset: 0; z-index: -4; opacity: 0.78; }
    .aurora-layer {
      position: fixed;
      inset: 0;
      z-index: -3;
      pointer-events: none;
      background:
        radial-gradient(52rem 30rem at 90% -10%, rgba(6, 182, 212, 0.2), transparent 70%),
        radial-gradient(44rem 28rem at 0% 100%, rgba(59, 130, 246, 0.24), transparent 72%),
        radial-gradient(42rem 30rem at 60% 120%, rgba(56, 189, 248, 0.18), transparent 70%);
    }
    .grid-overlay {
      position: fixed;
      inset: 0;
      z-index: -2;
      pointer-events: none;
      opacity: 0.2;
      background-image:
        linear-gradient(rgba(148, 163, 184, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: radial-gradient(circle at 50% 30%, black 35%, transparent 88%);
    }
    .noise-overlay {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 3;
      opacity: 0.045;
      background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    }
    .soft-vignette {
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background: radial-gradient(circle at center, transparent 38%, rgba(2, 6, 14, 0.72) 100%);
    }
    .glowing-text { text-shadow: 0 0 20px rgba(59, 130, 246, 0.42); }
    .bento-card {
      background: linear-gradient(140deg, rgba(22, 30, 44, 0.84), rgba(12, 18, 28, 0.78));
      border: 1px solid var(--stroke);
      backdrop-filter: blur(16px);
      transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
      box-shadow: 0 30px 80px rgba(2, 6, 23, 0.45);
    }
    .bento-card:hover {
      transform: translateY(-2px);
      border-color: rgba(125, 211, 252, 0.35);
      box-shadow: 0 34px 95px rgba(2, 6, 23, 0.62);
    }
    .bento-card::before {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      padding: 1px;
      background: radial-gradient(900px circle at var(--mouse-x) var(--mouse-y), rgba(56, 189, 248, 0.45), transparent 45%);
      -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
      -webkit-mask-composite: xor;
      mask-composite: exclude;
      opacity: 0;
      transition: opacity 0.25s ease;
      pointer-events: none;
    }
    .bento-card:hover::before { opacity: 1; }
    .chart-shell { overflow: hidden; }
    .chart-scroll { overflow-x: auto; padding-bottom: 6px; }
    .chart-table { width: 100%; }
    .chart-scroll::-webkit-scrollbar { height: 8px; width: 8px; }
    .chart-scroll::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.35); border-radius: 999px; }
    .chart-scroll::-webkit-scrollbar-thumb { background: rgba(125, 211, 252, 0.35); border-radius: 999px; }
    .cover-image { width: 42px; height: 42px; }
    .song-title {
      display: block;
      max-width: 100%;
      word-break: break-word;
    }
    .plays-bar-wrap { width: 11.5rem; max-width: 100%; }
    .stat-card {
      background: linear-gradient(180deg, rgba(30, 41, 59, 0.44), rgba(15, 23, 42, 0.34));
      border: 1px solid var(--card-border, rgba(56, 189, 248, 0.25));
    }
    .stat-head {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
    }
    .stat-icon {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 1.75rem;
      height: 1.75rem;
      border-radius: 0.7rem;
      border: 1px solid rgba(255, 255, 255, 0.08);
      background: var(--icon-bg, rgba(14, 165, 233, 0.16));
      color: var(--icon-color, #38bdf8);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
    .stat-icon svg {
      width: 0.95rem;
      height: 0.95rem;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }
    .stat-total { --icon-bg: rgba(244, 63, 94, 0.2); --icon-color: #fb7185; --card-border: rgba(251, 113, 133, 0.38); }
    .stat-artists { --icon-bg: rgba(139, 92, 246, 0.2); --icon-color: #a78bfa; --card-border: rgba(167, 139, 250, 0.38); }
    .stat-avg { --icon-bg: rgba(37, 99, 235, 0.2); --icon-color: #60a5fa; --card-border: rgba(96, 165, 250, 0.38); }
    .stat-top { --icon-bg: rgba(245, 158, 11, 0.2); --icon-color: #fbbf24; --card-border: rgba(251, 191, 36, 0.38); }
    .stat-card .value {
      font-family: var(--font-display);
      letter-spacing: -0.02em;
      font-size: 1.15rem;
    }
    .pill-scroll { overflow-x: auto; scrollbar-width: none; }
    .pill-scroll::-webkit-scrollbar { display: none; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .cell-label {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    .artist-name {
      display: block;
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    .overflow-wrap-anywhere {
      overflow-wrap: anywhere;
      word-break: break-word;
    }
    button:focus-visible,
    a:focus-visible,
    input:focus-visible {
      outline: 2px solid rgba(125, 211, 252, 0.95);
      outline-offset: 2px;
    }
    button:disabled {
      opacity: 0.65;
      cursor: not-allowed;
    }
    @keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-100%); } }
    .animate-marquee { animation: marquee 25s linear infinite; }
    .top-btn {
      position: fixed;
      right: 1.25rem;
      bottom: calc(1rem + env(safe-area-inset-bottom));
      z-index: 70;
      border: 1px solid rgba(56, 189, 248, 0.35);
      background: rgba(2, 6, 23, 0.68);
      backdrop-filter: blur(12px);
      transition: transform 220ms ease, opacity 220ms ease, border-color 220ms ease;
    }
    .top-btn:hover { transform: translateY(-2px); border-color: rgba(125, 211, 252, 0.7); }
    .top-btn.hidden-y {
      opacity: 0;
      pointer-events: none;
      transform: translateY(16px);
    }
    @media (min-width: 640px) {
      .cover-image { width: 48px; height: 48px; }
      .plays-bar-wrap { width: 13rem; }
    }
    @media (min-width: 768px) {
      .plays-bar-wrap { width: 16rem; }
    }
    @media (max-width: 640px) {
      #stats {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
      #stats .stat-card { padding: 0.6rem 0.72rem; }
      #stats .value {
        display: block;
        min-width: 0;
      }
      #statTopArtist {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .stat-head { gap: 0.35rem; }
      .stat-icon { width: 1.5rem; height: 1.5rem; border-radius: 0.6rem; }
      .stat-icon svg { width: 0.8rem; height: 0.8rem; }
      .stat-card .value { font-size: 1rem; }
      .chart-shell { border-radius: 1rem; }
      .chart-scroll {
        overflow-x: visible;
        padding-bottom: 0;
      }
      .chart-scroll table.chart-table {
        min-width: 0 !important;
        width: 100%;
        border-collapse: separate;
        border-spacing: 0 0.58rem;
      }
      .chart-scroll colgroup { display: none; }
      .chart-scroll thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }
      .chart-scroll tbody { display: block; }
      .chart-scroll tr {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-areas:
          "rank song"
          "rank artist"
          "plays plays";
        gap: 0.2rem 0.65rem;
        align-items: center;
        border: 1px solid rgba(125, 211, 252, 0.2);
        background: linear-gradient(160deg, rgba(22, 30, 44, 0.62), rgba(8, 14, 24, 0.9)) !important;
        border-radius: 0.95rem;
        padding: 0.62rem 0.72rem;
      }
      .chart-scroll td {
        border: none !important;
        padding: 0 !important;
      }
      .chart-scroll td.rank-cell {
        grid-area: rank;
        align-self: stretch;
      }
      .chart-scroll .rank-cell > div {
        height: 100%;
        justify-content: center;
      }
      .chart-scroll .rank-badge {
        width: 1.9rem;
        height: 1.9rem;
        font-size: 0.82rem;
      }
      .chart-scroll td.cover-cell { display: none; }
      .chart-scroll td.song-cell { grid-area: song; }
      .chart-scroll .cell-label.mobile-visible {
        position: static;
        width: auto;
        height: auto;
        margin: 0 0 0.18rem;
        overflow: visible;
        clip: auto;
        white-space: normal;
        border: 0;
        font-size: 0.62rem;
        line-height: 1.2;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: rgba(147, 164, 184, 0.92);
      }
      .chart-scroll td.artist-cell {
        grid-area: artist;
        font-size: 0.78rem;
        opacity: 0.92;
      }
      .chart-scroll td.plays-cell {
        grid-area: plays;
        padding-top: 0.24rem !important;
      }
      .chart-scroll td.plays-cell .cell-label.mobile-visible { margin-bottom: 0.35rem; }
      .chart-scroll td.plays-cell .plays-bar-wrap { width: 100%; }
      .chart-scroll td.plays-cell .h-6 { height: 1.35rem; }
      .chart-scroll td.plays-cell span { font-size: 0.72rem; }
      .song-title {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        line-height: 1.28;
      }
      #loading {
        width: 100%;
        justify-content: center;
      }
      .top-btn {
        right: 0.85rem;
        bottom: calc(0.85rem + env(safe-area-inset-bottom));
      }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
      }
    }
    @media (max-width: 380px) {
      #stats { grid-template-columns: 1fr; }
    }
    @media (max-width: 768px) {
      .glowing-text { text-shadow: 0 0 14px rgba(59, 130, 246, 0.35); }
      .noise-overlay { opacity: 0.03; }
    }
    @media (prefers-reduced-motion: reduce) {
      * { animation: none !important; transition-duration: 0.001ms !important; }
      .bento-card:hover { transform: none; }
    }
