    :root {
      --neon-cyan: #00f0ff;
      --neon-pink: #ff00aa;
      --neon-purple: #9d00ff;
      --bg-dark: #0a0015;
      --card-bg: rgba(20, 5, 35, 0.75);
      --text: #e0e0ff;
      --glitch: #ff0055;
    }

    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      font-family: 'Orbitron', sans-serif;
      background: var(--bg-dark);
      color: var(--text);
      min-height: 100vh;
      overflow-x: hidden;
      position: relative;
    }

    .matrix-bg {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      opacity: 0.15;
    }

    .matrix-bg canvas {
      width: 100%;
      height: 100%;
    }

    .container {
      position: relative;
      width: 93%;
      max-width: 800px;
      padding: 0rem 0.3rem;
      background: var(--card-bg);
      border: 2px solid #00f0ff9e;
      border-radius: 12px;
      box-shadow: 
        0 0 20px #00f0ff9e,
        0 0 40px rgba(0, 240, 255, 0.4),
        inset 0 0 20px rgba(0, 240, 255, 0.2);
      backdrop-filter: blur(8px);
      margin: 2rem auto;
    }

    h1 {
      font-family: 'VT323', monospace;
      font-size: clamp(2.5rem, 8vw, 4.2rem);
      color: var(--neon-cyan);
      text-shadow: 
        0 0 10px var(--neon-cyan),
        0 0 20px var(--neon-cyan),
        0 0 40px var(--neon-pink);
      letter-spacing: 4px;
      margin-bottom: 0.5rem;
      animation: flicker 4s infinite alternate;
      text-align: center;
      margin-top: 0.2em;
    }

    .subtitle {
      font-size: clamp(1rem, 4vw, 1.3rem);
      color: var(--neon-purple);
      text-shadow: 0 0 8px var(--neon-purple);
      text-align: center;
    }

    .player { margin: 1rem 0; }

    audio {
      width: 100%;
      height: 60px;
      background: rgba(0,0,0,0.4);
      border-radius: 8px;
      padding-top: 1em;
      display: block;
      margin: 0 auto;
      max-width: 575px;
    }

    .album-art-container {
      position: relative;
      width: 100%;
      max-width: 575px;
      aspect-ratio: 1 / 1;
      margin: 0 auto 1rem;
    }

    .album-art {
      width: 100%;
      height: 100%;
      object-fit: cover;
      /* border: 3px solid var(--neon-pink); */
      border-radius: 12px;
      /* box-shadow: 
        0 0 20px var(--neon-pink),
        inset 0 0 15px var(--neon-cyan); */
      transition: all 0.3s ease;
      image-rendering: pixelated;
    }

    .now-playing { margin: 1rem 1rem; }

    .artist {
      font-size: clamp(1.8rem, 6vw, 2.2rem);
      font-weight: 900;
      color: var(--neon-cyan);
      text-shadow: 0 0 15px var(--neon-cyan);
      animation: glitch-text 2.5s infinite;
    }

    .title {
      font-size: clamp(1.3rem, 5vw, 1.8rem);
      color: #fff;
      text-shadow: 0 0 10px var(--neon-pink);
      margin-bottom: 0.3rem;
    }

    .albumDisplay {
      font-size: clamp(1rem, 5vw, 1rem);
      color: #fff;
      text-shadow: 0 0 10px var(--neon-pink);
      margin-bottom: 0.4rem;
    }

    .meta {
      font-family: 'VT323', monospace;
      color: var(--neon-purple);
      text-shadow: 0 0 8px var(--neon-purple);
      font-size: 1.2em;
      word-wrap: break-word;
    }

    .meta strong { color: var(--neon-cyan); }
    .meta a { color: var(--neon-pink); text-decoration: none; transition: all 0.3s; }
    .meta a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }

    .metaUpNext {
      font-family: 'VT323', monospace;
      color: var(--neon-purple);
      text-shadow: 0 0 8px var(--neon-purple);
      font-size: 1.2em;
      word-wrap: break-word;
      margin-top: 1rem;
    }

    .metaUpNext strong { color: var(--neon-cyan); }
    .metaUpNext a { color: var(--neon-pink); text-decoration: none; transition: all 0.3s; }
    .metaUpNext a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }

    .stat-label a { color: var(--neon-pink); text-decoration: none; transition: all 0.3s; }
    .stat-label a:hover { color: var(--neon-cyan); text-shadow: 0 0 12px var(--neon-cyan); }

    /* .stats-section, .stream-stats {
      margin: 1rem 1rem;
      background: rgba(0, 240, 255, 0.08);
      border: 1px solid var(--neon-cyan);
      border-radius: 8px;
      padding-left: 1em;
      padding-right: 1em;
      padding-top: 0.25em;
      padding-bottom: 0.25em;
    } */

    .stats-section, .stream-stats {
      margin: 1rem 1rem;
      background: rgba(0, 240, 255, 0.08);
      border: 1px solid var(--neon-cyan);
      border-radius: 8px;
      padding: 0.25em 1em;

      /* NEW */
      max-height: 1220px;
      display: flex;
      flex-direction: column;
      overflow: hidden; /* important */
    }

    .stats-title {
      font-family: 'VT323', monospace;
      font-size: clamp(1.4rem, 4vw, 1.4rem);
      color: var(--neon-pink);
      text-shadow: 0 0 10px var(--neon-pink);
      text-align: center;
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
      gap: 1rem;
    }

    .stat-item {
      font-size: clamp(0.95rem, 3vw, 1.1rem);
      color: var(--text);
    }

    .stat-item strong {
      color: var(--neon-cyan);
      text-shadow: 0 0 6px var(--neon-cyan);
    }

    .history-list-card-date{
      font-size: 0.85em;
    }

    .cyber-stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 1.2rem;
      padding: 1rem 0;
    }

    .cyber-stat {
      background: rgba(10, 0, 21, 0.65);
      border: 1px solid;
      border-radius: 8px;
      padding: 1.2rem;
      position: relative;
      overflow: hidden;
      transition: all 0.3s ease;
      backdrop-filter: blur(4px);
    }

    /* .cyber-stat:hover {
      transform: translateY(-3px);
      box-shadow: 0 0 25px currentColor;
    } */

    /* .cyber-stat::before {
      content: "";
      position: absolute;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(
        45deg,
        transparent 0%,
        rgba(255,255,255,0.03) 50%,
        transparent 100%
      );
      pointer-events: none;
      animation: scanline 8s linear infinite;
    } */

    .neon-cyan  { border-color: var(--neon-cyan);  color: var(--neon-cyan);  }
    .neon-purple{ border-color: var(--neon-purple); color: var(--neon-purple); }
    .neon-pink  { border-color: var(--neon-pink);   color: var(--neon-pink);   }

    .stat-label {
      font-family: 'VT323', monospace;
      font-size: 1.05rem;
      opacity: 0.85;
      letter-spacing: 1px;
      margin-bottom: 0.4rem;
      text-transform: uppercase;
    }

    .stat-value {
      font-size: 2.2rem;
      font-weight: bold;
      text-shadow: 0 0 10px currentColor;
      margin: 0.3rem 0;
      letter-spacing: 2px;
      min-height: 2.5rem;
    }

    .stat-sub {
      font-size: 0.8rem;
      opacity: 0.6;
      font-family: 'VT323', monospace;
      letter-spacing: 1.5px;
    }

    .glitch {
      position: relative;
      font-size: 2.2rem;
      font-family: 'Orbitron', sans-serif;
      color: var(--neon-cyan);
      text-shadow: 
        0.05em 0 0 var(--glitch),
        -0.05em 0 0 var(--neon-pink);
      animation: glitch-text 2.8s infinite;
    }

    .glitch::before,
    .glitch::after {
      content: attr(data-text);
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
    }

    .glitch::before {
      left: 2px;
      text-shadow: -2px 0 var(--glitch);
      clip: rect(44px, 450px, 56px, 0);
      animation: glitch-anim 5s infinite linear alternate-reverse;
    }

    .glitch::after {
      left: -2px;
      text-shadow: -2px 0 var(--neon-purple);
      clip: rect(44px, 450px, 56px, 0);
      animation: glitch-anim2 4s infinite linear alternate-reverse;
    }

    .glitch-error {
      color: var(--glitch);
      text-align: center;
      font-family: 'VT323', monospace;
      font-size: 1.3rem;
      margin-top: 1.5rem;
      text-shadow: 0 0 10px var(--glitch);
      animation: flicker 1.5s infinite alternate;
    }

    /* Scanline animation */
    @keyframes scanline {
      0% { transform: translateY(-100%); }
      100% { transform: translateY(100%); }
    }

    @keyframes flicker {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.95; }
      75% { opacity: 0.98; }
    }

    .tab-btn {
      background: none;
      border: none;
      padding: 0.8rem 1.2rem;
      color: var(--neon-purple);
      font-family: 'VT323', monospace;
      font-size: 1.1rem;
      cursor: pointer;
      transition: all 0.3s;
      border-bottom: 3px solid transparent;
    }
    .tab-btn:hover {
      color: var(--neon-cyan);
      text-shadow: 0 0 8px var(--neon-cyan);
    }
    .tab-btn.active {
      color: var(--neon-cyan);
      border-bottom: 3px solid var(--neon-cyan);
      text-shadow: 0 0 10px var(--neon-cyan);
    }
    /* .tab-content {
      display: none;
    }
    .tab-content.active {
      display: block;
    } */

    .tab-content {
      display: none;
      flex: 1;
      overflow-y: auto;
      padding-right: 6px; /* scrollbar space */
    }

    .tab-content.active {
      display: block;
    }

    #log-output .log-info { color: #00f0ff; }
    #log-output .log-warn { color: #ff00aa; }
    #log-output .log-error { color: #ff0055; }

    #trackCommentsDiv {
      max-height: 150px;      /* adjust as needed */
      overflow-y: auto;
      padding: 8px;
      border-radius: 6px;
      background: rgba(255, 255, 255, 0.05);
    }

    /* Optional: nicer scrolling */
    #trackCommentsDiv::-webkit-scrollbar {
      width: 6px;
    }
    #trackCommentsDiv::-webkit-scrollbar-thumb {
      background: rgba(255,255,255,0.3);
      border-radius: 4px;
    }

    #vote-container {
      background: rgba(255,0,170,0.12);
      border: 1px solid var(--neon-pink);
      border-radius: 8px;
      padding: 1rem;
      margin: 1rem 0;
      text-align: center;
      display: none;
    }

    #vote-track {
      font-size: 1.1rem;
      color: var(--neon-cyan);
      margin-bottom: 0.5rem;
    }

    #vote-count, #vote-timer {
      font-family: 'VT323', monospace;
      font-size: 1.2rem;
      margin-bottom: 0.8rem;
    }

    #vote-buttons button {
      padding: 0.6rem 1.2rem;
      margin: 0 0.5rem;
      border: none;
      border-radius: 6px;
      cursor: pointer;
      font-family: 'VT323', monospace;
      font-size: 1rem;
      transition: all 0.3s;
    }

    #vote-yes {
      background: var(--neon-pink);
      color: white;
    }

    #vote-yes:hover {
      box-shadow: 0 0 15px var(--neon-pink);
    }

    #vote-no {
      background: var(--neon-purple);
      color: white;
    }

    #vote-no:hover {
      box-shadow: 0 0 15px var(--neon-purple);
    }

    #vote-buttons button.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    #skip-btn {
      padding: 0.4rem 0.8rem;
      background: var(--neon-purple);
      border: none;
      border-radius: 6px;
      color: white;
      cursor: pointer;
      font-family: 'VT323', monospace;
      /* margin-left: 1rem; */
      transition: all 0.3s;
      margin-bottom: 0.2rem;
      margin-top: 0.2rem;
    }

    #skip-btn:hover {
      box-shadow: 0 0 15px var(--neon-cyan);
    }

    #skip-btn.disabled {
      opacity: 0.5;
      cursor: not-allowed;
    }

    .schedule-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1rem;
    }
    .schedule-card {
      background: rgba(255,255,255,0.05);
      border-radius: 12px;
      padding: 1rem;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    }
    .schedule-time {
      font-size: 0.9rem;
      opacity: 0.8;
    }
    .schedule-title {
      font-size: 1.1rem;
      margin-top: 0.25rem;
    }
    .schedule-desc {
      margin-top: 0.5rem;
      font-size: 0.9rem;
    }

    .schedule-card.active {
      border: 2px solid var(--neon-cyan);
      box-shadow:
        0 0 12px var(--neon-cyan),
        0 0 30px rgba(0, 255, 255, 0.4);
      transform: scale(1.02);
    }

    .schedule-card.active::before {
      content: "🔴 LIVE NOW";
      display: block;
      font-size: 0.75rem;
      margin-bottom: 0.4rem;
      color: var(--neon-pink);
      text-shadow: 0 0 6px var(--neon-pink);
    }

    #cast-btn{
      font-size: 1rem;
      display: block;
      margin: 0 auto;
      background: rgba(255, 255, 255, 0.05);
      border-radius: 6px;
      padding: 0.1rem 0.3rem;
      cursor: pointer;
      margin-top: 8px;
    }
     /* #cast-btn {
      font-family: 'VT323', monospace;
      font-size: 1.1rem;
      color: var(--neon-cyan);
      background: rgba(0, 240, 255, 0.08);
      border: 2px solid var(--neon-cyan);
      border-radius: 8px;
      padding: 0.6rem 1.4rem;
      margin: 1rem auto;
      display: block;
      cursor: pointer;
      transition: all 0.25s ease;
      text-shadow: 0 0 8px var(--neon-cyan);
      box-shadow: 
        0 0 12px rgba(0, 240, 255, 0.4),
        inset 0 0 8px rgba(0, 240, 255, 0.2);
    } */

    #cast-btn:hover:not(:disabled) {
      background: rgba(0, 240, 255, 0.18);
      box-shadow: 
        0 0 5px var(--neon-cyan),
        0 0 5px rgba(0, 240, 255, 0.5);
      transform: translateY(-1px);
    }

    #cast-btn:disabled,
    #cast-btn.casting-active {
      background: linear-gradient(135deg, rgba(0,240,255,0.25), rgba(157,0,255,0.18));
      color: #e0e0ff;
      border-color: var(--neon-purple);
      box-shadow: 
        0 0 18px rgba(157, 0, 255, 0.6),
        inset 0 0 10px rgba(157, 0, 255, 0.3);
      cursor: default;
      text-shadow: 0 0 10px var(--neon-purple);
    }

    #cast-btn.casting-active::before {
      content: "📡 ";
      opacity: 0.9;
    }

    @media (max-width: 768px) {
      .container { width: 100%; margin: 0rem 0rem; backdrop-filter: blur(1px); background: none !important;}
      .stats-section, .stream-stats { margin: 1rem 0rem; padding-left: 0.2em; padding-right: 0.2em;}
      .now-playing { margin: 0rem 0.2rem; }
      .album-art-container { width: 85%; }
      .history-list-card-date { font-size: 0.65em !important;}
      audio { width: 85% }
      h1 { font-size: 2em; letter-spacing: 2px;}
      .stat-item { font-size: 0.8em; } 
      .stats-grid { display: flex; padding-top: 0.15em;}
      .stream-stats { height: 2em; }
    }

    @media (max-width: 480px) {
      .container { width: 100%; margin: 0rem 0rem; backdrop-filter: blur(1px); background: none !important;}
      .stats-section, .stream-stats { margin: 1rem 0rem; padding-left: 0.2em; padding-right: 0.2em;}
      .now-playing { margin: 0rem 0.2rem; }
      .album-art-container { width: 85%; }
      .history-list-card-date { font-size: 0.65em !important;}
      audio { width: 85% }
      h1 { font-size: 2em; letter-spacing: 2px;}
      .stat-item { font-size: 0.8em; } 
      .stats-grid { display: flex; padding-top: 0.15em;}
      .stream-stats { height: 2em; }
    }

    @media (max-width: 768px) {
      .stats-section {
        padding: 0.5rem 0.3rem;           /* reduce side padding */
        margin: 1rem 0.4rem;              /* tighter margins */
      }

      .stats-grid,
      .cyber-stats-grid {
        grid-template-columns: 1fr;       /* force single column on small screens */
        gap: 0.8rem;                      /* smaller gap between cards */
      }

      .cyber-stat {
        padding: 1rem 0.8rem;             /* less internal padding */
        font-size: 0.95rem;               /* slightly smaller text if needed */
      }

      .stat-value {
        font-size: 1.8rem;                /* reduce big numbers a bit */
      }

      .tab-btn {
        padding: 0.6rem 0.5rem;           /* make tab buttons smaller */
        font-size: 0.95rem;
      }

      /* Prevent horizontal scroll from any element */
      body, html, .container, .stats-section {
        overflow-x: hidden;
      }

      /* Optional: make the whole stats area scrollable vertically if still too tall */
      /* .stats-section {
        max-height: 80vh;
        overflow-y: auto;
      } */

      .tab-content::-webkit-scrollbar {
        width: 8px;
      }

      .tab-content::-webkit-scrollbar-thumb {
        background: rgba(0, 240, 255, 0.45);
        border-radius: 4px;
      }

      .tab-content::-webkit-scrollbar-track {
        background: rgba(0, 0, 0, 0.35);
      }
    }