  /* ══════════════════════════════════════════
     LIGHT THEME (default)
  ══════════════════════════════════════════ */
  :root {
    --bg:        #f5f2ee;
    --surface:   #ede9e3;
    --surface2:  #e4dfd7;
    --card:      #faf8f5;
    --border:    #d4cdc4;
    --gold:      #b07a10;
    --gold2:     #c98f20;
    --red:       #c0392b;
    --text:      #1a1410;
    --muted:     #7a6e60;
    --accent:    #b07a10;
    --radius:    12px;
    --radius-lg: 20px;
    --header-bg:    rgba(245,242,238,0.94);
    --sticky-ad-bg: rgba(245,242,238,0.97);
    --grad1: rgba(176,122,16,0.07);
    --grad2: rgba(192,57,43,0.05);
  }

  /* ══════════════════════════════════════════
     DARK THEME
  ══════════════════════════════════════════ */
  [data-theme="dark"] {
    --bg:        #111008;
    --surface:   #1c1a12;
    --surface2:  #252218;
    --card:      #1a1810;
    --border:    #38341f;
    --gold:      #d4960e;
    --gold2:     #e8aa20;
    --red:       #e05040;
    --text:      #f0ead8;
    --muted:     #9a9070;
    --accent:    #d4960e;
    --header-bg:    rgba(17,16,8,0.94);
    --sticky-ad-bg: rgba(17,16,8,0.97);
    --grad1: rgba(212,150,14,0.07);
    --grad2: rgba(224,80,64,0.05);
  }

  /* ── Smooth theme transition ── */
  *, *::before, *::after {
    box-sizing: border-box; margin: 0; padding: 0;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  }
  img, svg, .hero::after { transition: none !important; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
  }

  body::before {
    content: '';
    position: fixed; inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 20% 10%, var(--grad1) 0%, transparent 60%),
      radial-gradient(ellipse 60% 50% at 80% 80%, var(--grad2) 0%, transparent 60%);
    pointer-events: none; z-index: 0;
  }

  /* ── HEADER ── */
  header {
    position: sticky; top: 0; z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 0 20px;
  }
  .header-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; height: 64px;
  }
  .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
  .logo-icon {
    width: 100px; height: 60px; background: var(--surface2);
    border-radius: 1px; display: flex; align-items: center; justify-content: center;
    font-size: 18px; overflow: hidden;
  }
  .logo-icon img { width: 100%; height: 100%; object-fit: cover; }
  .logo-text { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.3rem; color: var(--gold); letter-spacing: -0.5px; }
  .logo-sub { font-size: 0.65rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; display: block; line-height: 1; }

  .search-bar { flex: 1; max-width: 420px; position: relative; }
  .search-bar input {
    width: 100%; background: var(--surface2); border: 1px solid var(--border);
    border-radius: 999px; padding: 9px 18px 9px 42px;
    color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 0.88rem; outline: none;
  }
  .search-bar input:focus { border-color: var(--gold); }
  .search-bar input::placeholder { color: var(--muted); }
  .search-bar .s-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; }

  .header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

  .header-btn {
    background: var(--gold); color: #fff; border: none; border-radius: 8px;
    padding: 9px 16px; font-family: 'DM Sans', sans-serif; font-size: 0.8rem;
    font-weight: 600; cursor: pointer; white-space: nowrap;
    text-decoration: none; display: inline-block;
  }
  .header-btn:hover { background: var(--gold2); }

  /* ── THEME TOGGLE ── */
  .theme-toggle {
    width: 36px; height: 36px;
    border: 1px solid var(--border); border-radius: 8px;
    background: var(--surface2); color: var(--muted);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 17px; flex-shrink: 0; padding: 0; line-height: 1;
  }
  .theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
  .theme-toggle .icon-moon { display: inline; }
  .theme-toggle .icon-sun  { display: none; }
  [data-theme="dark"] .theme-toggle .icon-moon { display: none; }
  [data-theme="dark"] .theme-toggle .icon-sun  { display: inline; }

  @media (max-width: 540px) { .search-bar { display: none; } .header-btn { display: none; } }

  /* ── TOP AD ── */
  .ad-leaderboard {
    background: var(--surface); border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; padding: 8px 20px;
  }
  .ad-slot {
    background: var(--surface2); border: 1px dashed var(--border); border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    color: var(--muted); font-size: 0.72rem; letter-spacing: 0.1em;
    text-transform: uppercase; font-family: 'DM Mono', monospace;
  }
  .ad-leaderboard .ad-slot { width: 100%; max-width: 728px; height: 90px; }

   @media (max-width: 768px) {
      .ad-leaderboard { display: none; }
      .ad-half        { display: none; }
   }

  /* ── ALPHABET NAV ── */
  .alpha-nav {
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 10px 20px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .alpha-nav::-webkit-scrollbar { display: none; }
  .alpha-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 4px; min-width: max-content; }
  .alpha-label { font-size: 0.7rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; margin-right: 8px; white-space: nowrap; }
  .alpha-nav a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
    color: var(--muted); text-decoration: none; border: 1px solid transparent;
  }
  .alpha-nav a:hover { color: var(--gold); border-color: var(--gold); background: rgba(232,168,48,0.08); }
  .alpha-nav a.cat { width: auto; padding: 0 10px; font-size: 0.72rem; color: var(--red); border-color: rgba(192,57,43,0.3); }
  .alpha-nav a.cat:hover { color: #e74c3c; border-color: #e74c3c; background: rgba(192,57,43,0.08); }

  /* ── LAYOUT ── */
  .layout {
    max-width: 1100px; margin: 0 auto; padding: 28px 20px;
    display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start;
    position: relative; z-index: 1;
  }
  @media (max-width: 768px) { .layout { grid-template-columns: 1fr; padding: 16px; gap: 20px; } }

  /* ── HERO ── */
  .hero {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #1a140e 0%, #231a10 50%, #1a130a 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px; overflow: hidden; position: relative;
    animation: fadeUp 0.5s ease both;
  }
  /* Hero stays dark in both themes — it's intentionally dramatic */
  [data-theme="dark"] .hero { border-color: #38341f; }

  .hero::after {
    content: '🎸'; position: absolute; right: 24px; top: 50%;
    transform: translateY(-50%); font-size: 80px; opacity: 0.08;
  }
  .hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900;
    color: var(--gold); line-height: 1.2; margin-bottom: 8px;
  }
  .hero-text p { color: #9a9070; font-size: 0.9rem; max-width: 480px; }
  .stat-num { font-family: 'Playfair Display', serif; font-size: 1.8rem; font-weight: 900; color: var(--gold); line-height: 1; }
  .stat-label { font-size: 0.68rem; color: #9a9070; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }
  .hero-stats { display: flex; gap: 24px; flex-shrink: 0; }
  .stat { text-align: center; }
  @media (max-width: 600px) { .hero { flex-direction: column; align-items: flex-start; padding: 20px; } .hero-stats { gap: 16px; } .hero::after { display: none; } }

  /* ── IN-FEED AD ── */
  .ad-infeed { grid-column: 1 / -1; display: flex; justify-content: center; }
  .ad-infeed .ad-slot { width: 100%; max-width: 728px; height: 90px; }
  @media (max-width: 768px) { .ad-infeed .ad-slot { height: 60px; } }

  /* ── SECTION HEADER ── */
  .section-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
  .section-head h2 { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--text); }
  .section-head .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
  .badge { font-size: 0.65rem; font-weight: 600; background: rgba(232,168,48,0.12); color: var(--gold); border: 1px solid rgba(232,168,48,0.25); border-radius: 999px; padding: 2px 8px; text-transform: uppercase; letter-spacing: 0.07em; }
  .badge.new { background: rgba(192,57,43,0.12); color: #e74c3c; border-color: rgba(192,57,43,0.25); }

  /* ── SONG LIST ── */
  .song-list { display: flex; flex-direction: column; gap: 4px; }
  .song-item {
    display: flex; align-items: center; gap: 12px; padding: 11px 14px;
    border-radius: 10px; text-decoration: none;
    background: var(--card); border: 1px solid var(--border);
    position: relative; overflow: hidden;
    animation: fadeUp 0.4s ease both;
  }
  .song-item::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(232,168,48,0.04) 0%, transparent 100%);
    opacity: 0;
  }
  .song-item:hover { border-color: rgba(232,168,48,0.3); }
  .song-item:hover::before { opacity: 1; }
  .song-num { font-family: 'DM Mono', monospace; font-size: 0.7rem; color: var(--muted); width: 20px; text-align: right; flex-shrink: 0; }
  .song-icon { width: 32px; height: 32px; background: var(--surface2); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
  .song-info { flex: 1; min-width: 0; }
  .song-title { font-size: 0.88rem; font-weight: 500; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .song-item:hover .song-title { color: var(--gold); }
  .song-artist { font-size: 0.75rem; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .req-tag { font-size: 0.62rem; background: rgba(192,57,43,0.15); color: #e74c3c; border-radius: 4px; padding: 2px 6px; flex-shrink: 0; font-weight: 500; }
  .chord-icon { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; opacity: 0; }
  .song-item:hover .chord-icon { opacity: 1; }
  .song-item:nth-child(1) { animation-delay: 0.05s; }
  .song-item:nth-child(2) { animation-delay: 0.08s; }
  .song-item:nth-child(3) { animation-delay: 0.11s; }
  .song-item:nth-child(4) { animation-delay: 0.14s; }
  .song-item:nth-child(5) { animation-delay: 0.17s; }
  .song-item:nth-child(6) { animation-delay: 0.20s; }

  /* ── SIDEBAR ── */
  .sidebar { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 80px; }
  .ad-sidebar { display: flex; flex-direction: column; gap: 16px; }
  .ad-sidebar .ad-rect { width: 100%; height: 250px; border-radius: var(--radius); }
  .ad-sidebar .ad-half { width: 100%; height: 600px; max-height: 55vh; border-radius: var(--radius); }

  .card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }

  .quick-links { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
  .quick-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border-radius: 8px; background: var(--surface2); text-decoration: none;
    color: var(--text); font-size: 0.85rem; border: 1px solid transparent;
  }
  .quick-link:hover { border-color: var(--gold); color: var(--gold); }
  .quick-link span { flex: 1; }
  .quick-link .arrow { color: var(--muted); font-size: 0.8rem; }

  /* ── FACEBOOK CTA ── */
  .fb-cta {
    background: linear-gradient(135deg, #1a1f36, #151b30);
    border: 1px solid #2a3060;
    border-radius: var(--radius-lg); padding: 20px; text-align: center;
  }
  .fb-cta .fb-icon { font-size: 28px; margin-bottom: 8px; }
  .fb-cta h3 { font-size: 0.9rem; font-weight: 600; color: yellow; margin-bottom: 6px; }
  .fb-cta p { font-size: 0.78rem; color: white; margin-bottom: 14px; }
  .fb-btn { display: inline-block; background: #1877f2; color: white; text-decoration: none; border-radius: 8px; padding: 9px 18px; font-size: 0.82rem; font-weight: 600; }
  .fb-btn:hover { background: #0d6fe0; }

  /* ── TOOLS GRID ── */
  .tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .tool-btn { background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 12px 10px; text-align: center; cursor: pointer; text-decoration: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: 0.78rem; }
  .tool-btn .ti { font-size: 20px; }
  .tool-btn:hover { border-color: var(--gold); color: var(--gold); }

  /* ── FOOTER ── */
  footer { background: var(--surface); border-top: 1px solid var(--border); padding: 28px 20px; position: relative; z-index: 1; }
  .footer-inner { max-width: 1100px; margin: 0 auto; }
  .footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
  .footer-desc { max-width: 380px; font-size: 0.8rem; color: var(--muted); line-height: 1.6; margin-top: 8px; }
  .footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
  .footer-links a { font-size: 0.78rem; color: var(--muted); text-decoration: none; }
  .footer-links a:hover { color: var(--gold); }
  .footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
  .footer-copy { font-size: 0.72rem; color: var(--muted); }
  .footer-genre { font-size: 0.72rem; color: var(--muted); text-align: right; }

  /* ── MOBILE STICKY AD ── */
  .ad-mobile-bottom { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; padding: 6px; background: var(--sticky-ad-bg); border-top: 1px solid var(--border); justify-content: center; }
  .ad-mobile-bottom .ad-slot { width: 100%; max-width: 320px; height: 50px; }
  @media (max-width: 768px) { .ad-mobile-bottom { display: flex; } body { padding-bottom: 70px; } }

  /* ── LOAD MORE ── */
  .load-more { margin-top: 12px; width: 100%; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; padding: 12px; font-family: 'DM Sans', sans-serif; font-size: 0.85rem; color: var(--muted); cursor: pointer; }
  .load-more:hover { border-color: var(--gold); color: var(--gold); }

  /* ── SCROLLBAR ── */
  ::-webkit-scrollbar { width: 6px; height: 6px; }
  ::-webkit-scrollbar-track { background: var(--bg); }
  ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--muted); }

  @keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
