/* ── Kok Gospel — Main Stylesheet (index.html) ── */

:root {
  --bg: #0d0d0f;
  --surface: #141417;
  --surface2: #1c1c21;
  --border: #2e2e3a;
  --border2: #3a3a4a;
  --accent: #ff6b6b;
  --accent2: #ff9b6b;
  --glow: rgba(255,107,107,0.14);
  --glow2: rgba(255,107,107,0.07);
  --text: #f0eff5;
  --text2: #9b9aaa;
  --text3: #4e4e60;
  --green: #6bffb8;
  --r: 14px;
  --shadow: 0 20px 60px rgba(0,0,0,0.6);
}
body.light {
  --bg: #f5f4f0;
  --surface: #ffffff;
  --surface2: #efefeb;
  --border: #e0ded8;
  --border2: #c8c5bc;
  --accent: #e05555;
  --accent2: #e07a3a;
  --glow: rgba(224,85,85,0.10);
  --glow2: rgba(224,85,85,0.06);
  --text: #1a1a1f;
  --text2: #4a4a5a;
  --text3: #9a9aaa;
  --green: #1a9e6a;
  --shadow: 0 20px 60px rgba(0,0,0,0.10);
}
/* Light mode section label overrides — darker tones readable on white */
body.light .section-label.verse   { background: rgba(59,130,246,0.10); color: #2563eb; border-color: rgba(59,130,246,0.25); }
body.light .section-label.chorus  { background: rgba(220,38,38,0.08);  color: #dc2626; border-color: rgba(220,38,38,0.20); }
body.light .section-label.bridge  { background: rgba(180,130,0,0.10);  color: #a16207; border-color: rgba(180,130,0,0.22); }
body.light .section-label.intro   { background: rgba(5,150,105,0.10);  color: #047857; border-color: rgba(5,150,105,0.22); }
body.light .section-label.outro   { background: rgba(5,150,105,0.10);  color: #047857; border-color: rgba(5,150,105,0.22); }
body.light .section-label.tagline { background: rgba(190,24,93,0.08);  color: #be185d; border-color: rgba(190,24,93,0.20); }
/* Light mode pill overrides */
body.light .pill-yt { background: rgba(220,38,38,0.08);  color: #dc2626; }
body.light .pill-ly { background: rgba(5,150,105,0.08);  color: #047857; }
body.light .pill-ch { background: rgba(161,98,7,0.08);   color: #a16207; }
body.light .pill-fc { background: rgba(124,58,237,0.08); color: #7c3aed; }
/* Light mode chord marks */
body.light .chord-mark { color: #2563eb; }
/* Light mode capo badge */
body.light .capo-badge { background: rgba(124,58,237,0.08); color: #7c3aed; border-color: rgba(124,58,237,0.20); }
/* ── THEME TOGGLE SWITCH ── */
.theme-toggle {
  cursor: pointer; flex-shrink: 0;
}
.theme-toggle-track {
  position: relative; width: 56px; height: 28px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: 999px; display: flex; align-items: center;
  justify-content: space-between; padding: 0 6px;
  transition: background .3s, border-color .3s;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.25);
}
body.light .theme-toggle-track {
  background: #e8e4d4; border-color: #ccc9be;
  box-shadow: inset 0 1px 4px rgba(0,0,0,.10);
}
.theme-icon { font-size: 13px; line-height: 1; z-index: 1; transition: opacity .3s; }
.theme-icon.moon { opacity: 1; }
.theme-icon.sun  { opacity: 0.35; }
body.light .theme-icon.moon { opacity: 0.35; }
body.light .theme-icon.sun  { opacity: 1; }
.theme-toggle-thumb {
  position: absolute; top: 3px; left: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  box-shadow: 0 2px 6px rgba(255,107,107,0.5);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), background .3s;
}
body.light .theme-toggle-thumb {
  transform: translateX(28px);
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  box-shadow: 0 2px 6px rgba(245,158,11,0.5);
}

body, .sidebar, .main, .top-bar, .lyrics-view, .song-item,
.lyr-section, .section-lines, .act-btn, .np-title, .np-meta,
.section-label, .pill-yt, .pill-ly, .pill-ch, .chord-mark, .capo-badge
{ transition: background-color .2s, border-color .2s, color .15s; }
/* ── USER AUTH ── */
.user-btn { position: relative; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex-shrink: 0; }
.user-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--surface2); border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--text2); overflow: hidden; transition: border-color .2s; }
.user-btn:hover .user-avatar { border-color: var(--accent); }
.user-avatar.signed-in { border-color: var(--accent); }
.user-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.user-menu { position: fixed; top: 60px; right: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 220px; max-width: calc(100vw - 32px); box-shadow: var(--shadow); z-index: 9999; animation: menuIn .15s ease; }
@keyframes menuIn { from { opacity:0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); } }
.user-menu-info { padding: 8px 10px 6px; }
.user-menu-name { font-size: 13px; font-weight: 600; color: var(--text); }
.user-menu-email { font-size: 11px; color: var(--text2); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.user-menu-badge { display: inline-block; margin-top: 5px; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: linear-gradient(135deg,#1c1c28,#2a2a3a); color: #e0d4ff; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 0 8px rgba(192,132,252,0.2); }
.user-menu-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-menu-item { width: 100%; padding: 8px 10px; background: none; border: none; border-radius: 8px; color: var(--text2); font-family: 'DM Sans', sans-serif; font-size: 13px; text-align: left; cursor: pointer; transition: all .15s; display: block; }
.user-menu-item:hover { background: var(--surface2); color: var(--text); }
.user-menu-item.signout { color: var(--accent); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; background: var(--bg); color: var(--text); font-family: 'DM Sans', sans-serif; overflow: hidden; touch-action: manipulation; -webkit-text-size-adjust: 100%; }

.app { display: grid; grid-template-columns: 300px 1fr; height: 100dvh; overflow: hidden; }

.mob-menu-btn { display: none; width: 36px; height: 36px; background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; color: var(--text2); cursor: pointer; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; transition: all .15s; }
.mob-menu-btn:hover { border-color: var(--border2); color: var(--text); }
.drawer-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 100; opacity: 0; pointer-events: none; transition: opacity .25s; }
.drawer-overlay.open { opacity: 1; pointer-events: all; }
.app::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.35;
}

/* ── SIDEBAR ── */
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.sidebar::before {
  content: ''; position: absolute; top: -60px; left: -60px; width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(255,107,107,0.05) 0%, transparent 70%);
  pointer-events: none; border-radius: 50%;
}
.sidebar-header { padding: 24px 20px 16px; flex-shrink: 0; }
.logo { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: 0 4px 20px rgba(255,107,107,0.35);
}
.logo-name { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 900; color: var(--text); line-height: 1; }
.logo-sub { font-size: 10px; font-weight: 500; color: var(--text3); letter-spacing: 0.14em; text-transform: uppercase; margin-top: 3px; }
.search-wrap { position: relative; margin-bottom: 10px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text3); font-size: 13px; pointer-events: none; }
#search-input {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 9px 32px 9px 34px;
  font-family: 'DM Sans', sans-serif; font-size: 13px; color: var(--text); outline: none;
  transition: border-color .2s, box-shadow .2s;
}
#search-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow2); }
#search-input::placeholder { color: var(--text3); }
.s-clear { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text3); cursor: pointer; font-size: 14px; display: none; padding: 2px; }
.s-clear:hover { color: var(--text); }
.count-bar { font-size: 11px; color: var(--text3); padding: 0 2px; }
.count-bar span { color: var(--accent); font-weight: 600; }

.song-list-wrap { flex: 1; overflow-y: auto; padding: 6px 8px 16px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.song-list-wrap::-webkit-scrollbar { width: 3px; }
.song-list-wrap::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── SIDEBAR TABS ── */
.sidebar-tabs { display: flex; gap: 3px; padding: 0 8px 8px; flex-shrink: 0; }
.stab { flex: 1; padding: 6px 4px; font-size: 11px; font-weight: 600; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--text3); cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all .15s; text-align: center; }
.stab:hover { color: var(--text2); background: var(--surface2); }
.stab.active { background: var(--glow); border-color: rgba(255,107,107,0.2); color: var(--accent); }

/* ── HEART BUTTON ── */
.song-item { position: relative; }

/* ── PLAYLISTS PANEL ── */
.pl-header { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 4px; }
.pl-header-label { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); }
.pl-new-btn { font-size: 18px; line-height: 1; background: none; border: none; color: var(--text3); cursor: pointer; padding: 2px 4px; border-radius: 6px; transition: all .15s; }
.pl-new-btn:hover { color: var(--accent); background: var(--glow); }
.pl-item { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; cursor: pointer; transition: background .12s; margin-bottom: 1px; }
.pl-item:hover { background: var(--surface2); }
.pl-item.active { background: var(--glow); }
.pl-icon { font-size: 14px; flex-shrink: 0; }
.pl-name { font-size: 13px; font-weight: 500; color: var(--text2); flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item.active .pl-name { color: var(--accent); }
.pl-count { font-size: 10px; color: var(--text3); flex-shrink: 0; }
.pl-actions { display: flex; gap: 2px; opacity: 0; transition: opacity .15s; }
.pl-item:hover .pl-actions { opacity: 1; }
.pl-action-btn { background: none; border: none; font-size: 12px; cursor: pointer; padding: 3px 5px; border-radius: 5px; color: var(--text3); transition: all .15s; }
.pl-action-btn:hover { background: var(--surface); color: var(--text); }
.pl-action-btn.del:hover { color: var(--accent); }
.pl-songs-header { display: flex; align-items: center; gap: 8px; padding: 8px 10px 4px; }
.pl-back-btn { background: none; border: none; color: var(--text2); cursor: pointer; font-size: 13px; padding: 3px 6px; border-radius: 6px; transition: all .15s; font-family: 'DM Sans', sans-serif; }
.pl-back-btn:hover { background: var(--surface2); color: var(--text); }
.pl-songs-title { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-item-info { flex: 1; min-width: 0; }
.pl-item-name { font-size: 11.5px; font-weight: 500; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-item-count { font-size: 10px; color: var(--text3); margin-top: 1px; }
.pl-remove-btn { flex-shrink: 0; background: none; border: 1px solid transparent; border-radius: 6px; color: var(--text3); font-size: 16px; line-height: 1; cursor: pointer; padding: 2px 7px; transition: all .15s; font-family: inherit; }
.pl-remove-btn:hover { color: var(--accent); border-color: rgba(255,107,107,0.3); background: rgba(255,107,107,0.08); }
/* Public/Admin playlists */
.pl-section-label { font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); padding: 10px 10px 4px; }
.pl-kok-badge { font-size: 9px; font-weight: 700; background: linear-gradient(135deg,var(--accent),var(--accent2)); color: #fff; border-radius: 4px; padding: 1px 5px; letter-spacing: .03em; flex-shrink: 0; }
.pl-item.kok { border-left: 2px solid var(--accent); padding-left: 8px; }

/* ── ADD TO PLAYLIST MENU ── */
.pl-popup { position: fixed; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px; min-width: 200px; box-shadow: var(--shadow); z-index: 9999; animation: menuIn .15s ease; }
.pl-popup-title { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text3); padding: 4px 8px 6px; }
.pl-popup-item { width: 100%; padding: 7px 10px; background: none; border: none; border-radius: 7px; color: var(--text2); font-family: 'DM Sans', sans-serif; font-size: 13px; text-align: left; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: all .15s; }
.pl-popup-item:hover { background: var(--surface2); color: var(--text); }
.pl-popup-item .check { color: var(--accent); font-size: 12px; margin-left: auto; }

/* ── CUSTOM MODAL ── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 99999;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 18px; padding: 28px 28px 22px;
  min-width: 300px; max-width: 420px; width: 90%;
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  animation: modalIn .2s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalIn { from { opacity:0; transform:scale(.92) translateY(10px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 16px; }
.modal-input { width: 100%; background: var(--surface2); border: 1.5px solid var(--border); border-radius: 10px; padding: 10px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; }
.modal-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--glow2); }
.modal-input::placeholder { color: var(--text3); }
.modal-message { font-size: 14px; color: var(--text2); line-height: 1.6; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.modal-btn { padding: 9px 22px; border-radius: 10px; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all .15s; }
.modal-btn.cancel { background: var(--surface2); color: var(--text2); border: 1px solid var(--border); }
.modal-btn.cancel:hover { background: var(--border); color: var(--text); }
.modal-btn.confirm { background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; box-shadow: 0 4px 14px rgba(255,107,107,0.3); }
.modal-btn.confirm:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,107,107,0.45); }
.modal-btn.danger { background: rgba(255,107,107,0.12); color: var(--accent); border: 1px solid rgba(255,107,107,0.25); }
.modal-btn.danger:hover { background: rgba(255,107,107,0.2); }

/* ── CHORDS LOCKED BAR ── */
.chords-locked-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: rgba(255,107,107,0.08);
  border: 1px solid rgba(255,107,107,0.18); border-radius: 10px;
  margin-bottom: 10px; gap: 12px; flex-shrink: 0;
  font-size: 13px; color: var(--text2);
}
body.light .chords-locked-bar { background: rgba(220,38,38,0.06); border-color: rgba(220,38,38,0.15); }
.unlock-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: 8px; padding: 6px 14px;
  color: #fff; font-size: 12px; font-weight: 700;
  font-family: 'DM Sans', sans-serif; cursor: pointer; flex-shrink: 0;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(255,107,107,0.3);
}
.unlock-btn:hover { transform: translateY(-1px); box-shadow: 0 5px 16px rgba(255,107,107,0.45); }

/* ── UPGRADE MODAL ── */
.upgrade-overlay {
  display: none; position: fixed; inset: 0; z-index: 99998;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(6px);
  align-items: center; justify-content: center; padding: 16px;
}
.upgrade-overlay.open { display: flex; }
.upgrade-box {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: 20px; padding: 20px 20px 18px; width: 100%;
  max-width: 500px; max-height: 92dvh; overflow-y: auto;
  position: relative; box-shadow: 0 40px 100px rgba(0,0,0,0.6);
  animation: modalIn .22s cubic-bezier(.34,1.56,.64,1);
}
@media (max-width: 480px) {
  .upgrade-box { padding: 16px 14px 14px; border-radius: 16px; max-height: 88dvh; }
  .upgrade-overlay { padding: 10px; align-items: flex-end; }
  .upgrade-grid-2col { grid-template-columns: 1fr !important; }
}
.upgrade-close { position: absolute; top: 16px; right: 16px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; width: 30px; height: 30px; color: var(--text2); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all .15s; }
.upgrade-close:hover { color: var(--text); background: var(--border); }
.upgrade-header { text-align: center; margin-bottom: 14px; }
.upgrade-icon { font-size: 26px; margin-bottom: 4px; }
.upgrade-title { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 900; color: var(--text); }
.upgrade-sub { font-size: 12px; color: var(--text2); margin-top: 2px; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 480px) { .plan-cards { grid-template-columns: 1fr; } }
.plan-card { border-radius: 14px; padding: 14px 14px; border: 1px solid var(--border); background: var(--surface2); position: relative; }
.plan-card.premium { border-color: rgba(255,107,107,0.35); background: linear-gradient(145deg, rgba(255,107,107,0.06), rgba(255,155,107,0.04)); }
.plan-badge { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; font-size: 9px; font-weight: 800; letter-spacing: .1em; padding: 3px 12px; border-radius: 999px; white-space: nowrap; }
.plan-emoji { font-size: 18px; margin-bottom: 4px; }
.free-spark-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 6px;
  padding: 3px 10px; border-radius: 999px;
  background: linear-gradient(135deg, #1c1c28, #2a2a3a);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e0d4ff;
  box-shadow: 0 0 12px rgba(192,132,252,0.25), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: spark-pulse 2.5s ease-in-out infinite;
}
@keyframes spark-pulse {
  0%, 100% { box-shadow: 0 0 10px rgba(192,132,252,0.2), inset 0 1px 0 rgba(255,255,255,0.08); }
  50%       { box-shadow: 0 0 22px rgba(192,132,252,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }
}
.plan-name { font-size: 14px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.plan-price { font-size: 20px; font-weight: 800; color: var(--accent); margin-bottom: 8px; font-family: 'Playfair Display', serif; }
.plan-price span { font-size: 11px; font-weight: 400; color: var(--text2); font-family: 'DM Sans', sans-serif; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.plan-features li { font-size: 11px; line-height: 1.3; }
.plan-features li.yes { color: var(--text2); }
.plan-features li.no { color: var(--text3); }
.upgrade-cta { width: 100%; padding: 9px; background: linear-gradient(135deg, var(--accent), var(--accent2)); border: none; border-radius: 9px; color: #fff; font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 18px rgba(255,107,107,0.35); transition: transform .15s, box-shadow .15s; }
.upgrade-cta:hover { transform: translateY(-1px); box-shadow: 0 7px 26px rgba(255,107,107,0.5); }
.upgrade-note { text-align: center; font-size: 11px; color: var(--text3); line-height: 1.5; padding: 0 8px; }
.price-old { font-size: 11px; color: var(--text3); text-decoration: line-through; margin-bottom: 1px; }
.price-old span { font-size: 10px; }
.trial-offer { margin-top: 7px; text-align: center; font-size: 11px; color: var(--green); background: var(--green-bg); border: 1px solid rgba(107,255,184,0.2); border-radius: 7px; padding: 6px 8px; cursor: pointer; transition: background .15s; line-height: 1.4; }
.trial-offer:hover { background: rgba(107,255,184,0.12); }
.trial-offer.hidden { display: none; }
.trial-used { display: none !important; }
/* ── ADSTERRA SIDEBAR AD (desktop) ── */
/* ── AD SYSTEM ────────────────────────────────────────────── */
.ad-unit {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: var(--surface);
}
.ad-unit.visible { display: flex; }
.ad-label {
  font-size: 9px;
  color: var(--text3);
  letter-spacing: .07em;
  text-transform: uppercase;
  line-height: 1;
  user-select: none;
}
.ad-frame {
  width: 320px;
  height: 50px;
  border: none;
  display: block;
  overflow: hidden;
  background: transparent;
}
/* Lyrics ad is 300x250 */
#ad-lyrics-slot {
  width: 300px;
  height: 250px;
}

/* Ad injected into song list every N songs */
.ad-list-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 4px 0;
  background: var(--surface);
}
.ad-list-item .ad-label {
  font-size: 9px;
  color: var(--text3);
  letter-spacing: .07em;
  text-transform: uppercase;
  user-select: none;
}
.ad-list-item .ad-frame { width: 320px; height: 50px; border: none; overflow: hidden; background: transparent; }
.ad-sidebar {
  border-top: 1px solid var(--border);
  padding: 8px 8px max(8px, env(safe-area-inset-bottom)) 8px;
  flex-shrink: 0;
}
@media (max-width: 699px) { .ad-sidebar { display: none !important; } }

/* Ad 2 — below lyrics (both mobile + desktop) */
.ad-lyrics {
  border-top: 1px solid var(--border);
  padding: 12px 0 max(16px, env(safe-area-inset-bottom)) 0;
  margin-top: 8px;
  width: 100%;
}

/* Ad 3 — sticky bottom mobile bar */
.ad-sticky {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  border-top: 1px solid var(--border);
  padding: 5px 8px max(5px, env(safe-area-inset-bottom)) 8px;
  justify-content: center;
}
@media (min-width: 700px) { .ad-sticky { display: none !important; } }
/* Push content above sticky ad */
body.ad-shown .lyr-scroll { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
body.ad-shown .sidebar { padding-bottom: 0; }

/* Legacy classes kept for compat */
.sidebar-ad, .lyr-ad-banner { display: none !important; }


.song-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px; border-radius: 8px; cursor: pointer;
  transition: background .12s; margin-bottom: 1px; border: 1px solid transparent;
}
.song-item:hover { background: var(--surface2); }
.song-item.active { background: var(--glow); border-color: rgba(255,107,107,0.2); }
.song-item.active .s-num { color: var(--accent); }
.song-item.active .s-title { color: var(--text); }
.s-num { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); min-width: 22px; text-align: right; flex-shrink: 0; }
.s-info { flex: 1; min-width: 0; }
.s-title { font-size: 11.5px; font-weight: 500; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s-pills { display: flex; gap: 3px; margin-top: 2px; }
.pill { font-size: 8px; font-weight: 600; letter-spacing: 0.05em; padding: 1px 4px; border-radius: 3px; text-transform: uppercase; }
.pill-yt { background: rgba(255,107,107,.12); color: var(--accent); }
.pill-ly { background: rgba(107,255,184,.1); color: var(--green); }
.pill-ch { background: rgba(255,208,107,.1); color: #ffd06b; }
/* song-num/title used in playlist & category views */
.song-num { font-family: 'DM Mono', monospace; font-size: 10px; color: var(--text3); min-width: 22px; text-align: right; flex-shrink: 0; }
.song-info { flex: 1; min-width: 0; }
.song-title { font-size: 11.5px; font-weight: 500; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-pills { display: flex; gap: 3px; margin-top: 2px; }
.pill-fc { background: rgba(192,132,252,.1); color: #c084fc; }
.pl-add-hint { padding: 20px 14px; text-align: center; font-size: 12.5px; color: var(--text3); line-height: 1.8; }
.no-results { text-align: center; padding: 36px 14px; color: var(--text3); font-size: 12.5px; line-height: 1.8; }

/* ── MAIN ── */
.main { display: flex; flex-direction: column; overflow: hidden; position: relative; }
.main::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 600px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,107,107,0.025) 0%, transparent 65%);
  border-radius: 50%;
}

/* ── TOP BAR ── */
.top-bar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 14px 28px; display: flex; align-items: center; gap: 20px;
  flex-shrink: 0; z-index: 10; box-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.now-playing { flex: 1; min-width: 0; }
.np-eyebrow { font-size: 9.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); margin-bottom: 2px; }
.np-title { font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.np-meta { font-size: 11px; color: var(--text3); margin-top: 1px; }
.top-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ctrl-btn {
  width: 34px; height: 34px; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 9px; color: var(--text3); cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 12px; transition: all .15s;
}
.ctrl-btn:hover { border-color: var(--border2); color: var(--text); }
.yt-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; border-radius: 10px; color: #fff;
  font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600;
  padding: 10px 20px; cursor: pointer;
  box-shadow: 0 4px 18px rgba(255,107,107,0.35);
  transition: transform .15s, box-shadow .15s, opacity .15s;
  white-space: nowrap;
}
.yt-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 26px rgba(255,107,107,0.5); }
.yt-btn:disabled { opacity: .3; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── CONTENT ── */
.content { flex: 1; overflow: hidden; display: flex; flex-direction: column; }

/* Empty state */
.empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px 32px; text-align: center; }
.empty-cross { opacity: .9; }
.empty-headline { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; color: var(--text); }
.empty-body { font-size: 14px; color: var(--text2); }
.empty-search-wrap { position: relative; width: 100%; max-width: 380px; margin-top: 4px; }
.empty-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 14px; pointer-events: none; }
.empty-search-input { width: 100%; padding: 11px 16px 11px 40px; background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; color: var(--text); font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: border .2s; }
.empty-search-input:focus { border-color: var(--accent); }
.empty-search-input::placeholder { color: var(--text3); }
.empty-stats { display: flex; align-items: center; gap: 20px; margin-top: 4px; }
.empty-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.empty-stat-num { font-size: 22px; font-weight: 800; color: var(--accent); font-family: 'Playfair Display', serif; }
.empty-stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .06em; }
.empty-stat-div { width: 1px; height: 32px; background: var(--border); }
.empty-tip { font-size: 12px; color: var(--text3); margin-top: 4px; }
/* Splash */
@keyframes splashPulse { 0%,80%,100%{transform:scale(.6);opacity:.3} 40%{transform:scale(1);opacity:1} }
.splash-dot { width:8px;height:8px;border-radius:50%;background:var(--accent);animation:splashPulse 1.2s ease-in-out infinite; }
/* Empty state suggestions */
.empty-suggestions { width:100%;max-width:420px;margin-top:4px; }
.empty-sugg-title { font-size:11px;color:var(--text3);text-transform:uppercase;letter-spacing:.07em;margin-bottom:8px; }
.empty-sugg-list { display:flex;flex-direction:column;gap:4px; }
.empty-sugg-item { display:flex;align-items:center;gap:10px;padding:9px 14px;background:var(--surface2);border:1px solid var(--border);border-radius:10px;cursor:pointer;transition:all .15s;text-align:left; }
.empty-sugg-item:hover { border-color:var(--accent);background:rgba(255,107,107,0.06); }
.empty-sugg-num { font-size:11px;color:var(--text3);min-width:22px; }
.empty-sugg-name { font-size:13px;font-weight:600;color:var(--text);flex:1; }
.empty-sugg-pills { display:flex;gap:4px; }
.empty-glyph { font-size: 60px; animation: levitate 3.5s ease-in-out infinite; opacity: 0.45; }
@keyframes levitate { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.empty-headline {
  font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--text), var(--text2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.empty-body { font-size: 13.5px; color: var(--text3); max-width: 360px; line-height: 1.7; }

/* Lyrics view */
.lyrics-view { flex: 1; display: flex; flex-direction: column; overflow: hidden; padding: 28px 40px 24px; }
.lyr-header { flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.lyr-title-block { min-width: 0; flex: 1; }
.lyr-eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.lyr-title { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 900; color: var(--text); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lyr-header-row1 { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; min-width: 0; }
.lyr-rating-row { display: flex; align-items: center; gap: 4px; margin-top: 3px; min-height: 14px; }
.lyr-avg-stars { font-size: 11px; color: var(--yellow); letter-spacing: 0.5px; }
.lyr-avg-num { font-size: 10px; color: var(--text3); font-weight: 600; }
.s-avg-stars { font-size: 9px; color: var(--yellow); letter-spacing: 0px; margin-left: 2px; opacity: 0.85; }
.lyr-actions-row { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; padding-bottom: 1px; flex-wrap: nowrap; }
.lyr-actions-row::-webkit-scrollbar { display: none; }
.lyr-actions { display: flex; gap: 5px; align-items: center; flex-shrink: 0; }
.lyr-actions-divider { width: 1px; height: 18px; background: var(--border); margin: 0 2px; flex-shrink: 0; }
/* Spacer that pushes chord/size tools right on desktop */
.lyr-actions-spacer { flex: 1; min-width: 0; }
.lyr-fav-btn { font-size: 15px; padding: 5px 8px; }
.lyr-fav-btn.active { color: #ff6b6b; border-color: rgba(255,107,107,0.4); background: rgba(255,107,107,0.08); }
.lyr-rate-btn.rated {
  color: var(--yellow);
  border-color: rgba(255,208,107,0.5);
  background: rgba(255,208,107,0.1);
  box-shadow: 0 0 10px rgba(255,208,107,0.4), 0 0 0 1px rgba(255,208,107,0.2);
  animation: starGlow 2s ease-in-out infinite alternate;
}
@keyframes starGlow { from { box-shadow: 0 0 6px rgba(255,208,107,0.3); } to { box-shadow: 0 0 14px rgba(255,208,107,0.55); } }
.rating-popup { position:fixed; z-index:99999; background:var(--surface); border:1px solid var(--border2); border-radius:14px; padding:14px 16px; box-shadow:0 20px 60px rgba(0,0,0,0.5); animation:menuIn .15s ease; }
.rating-stars { display:flex; gap:6px; }
.rating-star { font-size:26px; cursor:pointer; transition:transform .12s; user-select:none; filter:grayscale(1) opacity(.4); }
.rating-star:hover, .rating-star.on { filter:none; transform:scale(1.2); }
.rating-label { font-size:11px; color:var(--text3); text-align:center; margin-top:6px; height:16px; }
.wa-btn { color: #25D366; padding: 5px 8px; }
.wa-btn:hover { border-color: rgba(37,211,102,0.4) !important; background: rgba(37,211,102,0.08) !important; color: #25D366 !important; }
.transpose-wrap { display: flex; align-items: center; gap: 2px; background: var(--surface2); border: 1px solid var(--border); border-radius: 8px; padding: 2px; }
.transpose-btn { background: none; border: none; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 600; }
.transpose-btn:hover { background: var(--surface); border-color: transparent; }
.transpose-label { font-size: 12px; font-weight: 700; color: var(--accent); min-width: 24px; text-align: center; font-family: 'DM Mono', monospace; }
.act-btn {
  display: flex; align-items: center; gap: 5px;
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 11px; color: var(--text3);
  font-family: 'DM Sans', sans-serif; font-size: 12px; font-weight: 500;
  cursor: pointer; transition: all .15s; white-space: nowrap;
}
.act-btn:hover { border-color: var(--border2); color: var(--text2); }
.act-btn.on { background: var(--glow); border-color: rgba(255,107,107,0.25); color: var(--accent); }
.lyr-divider { height: 1px; background: var(--border); margin-bottom: 22px; flex-shrink: 0; }
.lyr-scroll { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.lyr-scroll::-webkit-scrollbar { width: 3px; }
.lyr-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.capo-badge {
  display: none; align-items: center; gap: 5px; margin-top: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(192,132,252,0.1); color: #c084fc;
  border: 1px solid rgba(192,132,252,0.25); border-radius: 6px; padding: 3px 9px;
}
.lyr-section { margin-bottom: 28px; }
.section-label {
  font-size: 9.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 5px; display: inline-block; margin-bottom: 10px;
}
.section-label.verse   { background: rgba(107,184,255,0.1);  color: #6bb8ff; border: 1px solid rgba(107,184,255,0.2); }
.section-label.chorus  { background: rgba(255,107,107,0.12); color: var(--accent); border: 1px solid rgba(255,107,107,0.2); }
.section-label.bridge  { background: rgba(255,208,107,0.1);  color: #ffd06b; border: 1px solid rgba(255,208,107,0.2); }
.section-label.intro   { background: rgba(107,255,184,0.1);  color: var(--green); border: 1px solid rgba(107,255,184,0.2); }
.section-label.outro   { background: rgba(107,255,184,0.1);  color: var(--green); border: 1px solid rgba(107,255,184,0.2); }
.section-label.tagline { background: rgba(244,114,182,0.1);  color: #f472b6; border: 1px solid rgba(244,114,182,0.2); }

/* ── CHORDS ── */
.section-lines { font-size: 17px; color: var(--text2); font-weight: 400; letter-spacing: 0.01em; }
.lyr-body.sz-lg .section-lines { font-size: 22px; }
.lyr-body.sz-sm .section-lines { font-size: 13px; }

.chord-line { display: flex; flex-wrap: wrap; align-items: flex-end; line-height: 1; margin-bottom: 3px; min-height: 1.2em; }
.chord-line.plain { display: block; line-height: 1.2; margin-bottom: 0; min-height: unset; }
.chord-token { display: inline-flex; flex-direction: column; align-items: flex-start; }
.chord-mark {
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.04em; line-height: 1;
  background: rgba(255,107,107,0.09); padding: 1px 5px; border-radius: 3px;
  border: 1px solid rgba(255,107,107,0.2); margin-bottom: 2px;
  white-space: nowrap;
}
.chord-mark-spacer { display: block; height: 18px; }
.chord-lyric { line-height: 1.2; white-space: pre; }
.lyr-body.sz-lg .chord-mark { font-size: 13px; }
.lyr-body.sz-sm .chord-mark { font-size: 10px; }
.lyr-body.sz-lg .chord-mark-spacer { height: 22px; }
.lyr-body.sz-sm .chord-mark-spacer { height: 14px; }

/* When chords hidden — collapse to simple text flow */
.lyr-body.chords-off .chord-line { display: block; line-height: 1.2; min-height: unset; margin-bottom: 0; }
.lyr-body.chords-off .chord-token { display: inline; }

/* ── CHORD SCREENSHOT PROTECTION ── */
.chord-protect {
  display: none;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 10;
  background-image: radial-gradient(circle, rgba(150,150,170,0.18) 1px, transparent 1px),
                    radial-gradient(circle, rgba(150,150,170,0.10) 1px, transparent 1px);
  background-size: 18px 18px, 9px 9px;
  background-position: 0 0, 9px 9px;
}
body.light .chord-protect {
  background-image: radial-gradient(circle, rgba(80,80,100,0.13) 1px, transparent 1px),
                    radial-gradient(circle, rgba(80,80,100,0.07) 1px, transparent 1px);
  background-size: 18px 18px, 9px 9px;
  background-position: 0 0, 9px 9px;
}
.chord-protect.active { display: block; }
.lyr-body.chords-off .chord-mark,
.lyr-body.chords-off .chord-mark-spacer { display: none; }
.lyr-body.chords-off .chord-lyric { display: inline; white-space: normal; }
.section-lines { line-height: 1.2; }

.no-lyr { display: flex; flex-direction: column; align-items: center; justify-content: center; flex: 1; gap: 12px; color: var(--text3); text-align: center; min-height: 220px; }
.no-lyr-icon { font-size: 40px; opacity: 0.3; }
.no-lyr p { font-size: 13.5px; line-height: 1.7; max-width: 280px; }

/* ══════════════════════════════════════════════════════════
   TABLET  (481px – 900px)
══════════════════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 900px) {
  .app { grid-template-columns: 260px 1fr; height: 100dvh; }
  .top-bar { padding: 12px 20px; gap: 12px; }
  .np-title { font-size: 16px; }
  .lyrics-view { padding: 20px 24px 16px; }
  .lyr-title { font-size: 26px; }
  .section-lines { font-size: 15px; line-height: 1.75; }
  .lyr-body.sz-lg .section-lines { font-size: 19px; }
  .lyr-body.sz-sm .section-lines { font-size: 13px; }
  .song-item { padding: 7px 12px; min-height: 40px; }
  .s-title { font-size: 11.5px; }
  .song-title { font-size: 11.5px; }
  .act-btn { padding: 7px 12px; font-size: 12px; }
  /* Touch-friendly tap targets */
  .yt-btn, .act-btn, .mob-menu-btn { min-height: 40px; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE PORTRAIT  (≤ 480px)
══════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  html, body { overflow: hidden; }
  .app { display: flex; flex-direction: column; grid-template-columns: unset; height: 100dvh; }
  .sidebar {
    position: fixed; top: 0; left: 0; bottom: 0;
    width: 82vw; max-width: 320px; z-index: 110;
    transform: translateX(-100%);
    transition: transform .28s cubic-bezier(.4,0,.2,1);
    border-right: 1px solid var(--border2);
  }
  .sidebar.drawer-open { transform: translateX(0); }
  .drawer-overlay { display: block; }
  .main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .top-bar { padding: 10px 14px; gap: 10px; }
  .mob-menu-btn { display: flex; }
  .np-title { font-size: 14px; }
  .np-eyebrow { display: none; }
  .np-meta { font-size: 10px; }
  .yt-btn { padding: 9px 13px; font-size: 12px; gap: 5px; }
  .yt-btn .yt-label { display: none; }
  .lyrics-view { padding: 14px 16px 10px; }
  .lyr-title { font-size: 21px; }
  .lyr-eyebrow { font-size: 9px; }
  .lyr-header { margin-bottom: 8px; }
  .lyr-actions { gap: 5px; }
  .act-btn { padding: 7px 10px; font-size: 11px; min-height: 36px; }
  .transpose-wrap { gap: 1px; }
  .transpose-btn { padding: 4px 7px; }
  /* Double-decker toolbar: social row + chord row */
  .lyr-actions-row { flex-wrap: wrap; gap: 4px; }
  .lyr-actions-spacer { display: none; }
  .lyr-divider-desktop { display: none; }
  #chord-tools-group { order: 10; width: 100%; border-top: 1px solid var(--border); padding-top: 5px; display: flex; gap: 5px; flex-wrap: wrap; }
  /* Keep title big and readable above toolbar */
  .lyr-title { white-space: normal; line-height: 1.1; overflow: visible; text-overflow: unset; }
  .section-lines { font-size: 15px; line-height: 1.75; }
  .lyr-body.sz-lg .section-lines { font-size: 19px; }
  .lyr-body.sz-sm .section-lines { font-size: 12px; }
  .chord-mark { font-size: 10px; }
  .empty { padding: 28px 24px; }
  .empty-glyph { font-size: 44px; }
  .empty-headline { font-size: 22px; }
  .empty-body { font-size: 13px; }
  .sidebar-header { padding: 20px 16px 12px; }
  .song-list-wrap { padding: 6px 6px 16px; }
  .song-item { padding: 7px 10px; min-height: 38px; }
  .s-title { font-size: 11.5px; }
  .song-title { font-size: 11.5px; }
  .capo-badge { font-size: 10px; padding: 2px 7px; }
  .section-label { font-size: 9px; padding: 2px 7px; }
}

/* ══════════════════════════════════════════════════════════
   LANDSCAPE PHONE  (height ≤ 480px, any width)
   Handles horizontal hold on phones
══════════════════════════════════════════════════════════ */
@media (max-height: 480px) and (orientation: landscape) {
  html, body { overflow: hidden; }
  .app {
    display: grid;
    grid-template-columns: 220px 1fr;
    height: 100dvh;
    height: -webkit-fill-available;
  }
  /* Sidebar stays visible on the left in landscape — no drawer */
  .sidebar {
    position: relative; transform: none !important;
    border-right: 1px solid var(--border);
  }
  .mob-menu-btn { display: none !important; }
  .drawer-overlay { display: none !important; }
  .sidebar-header { padding: 10px 14px 8px; }
  .sidebar-header h1 { font-size: 16px; }
  .sidebar-search { padding: 0 10px 8px; }
  .search-input { padding: 7px 10px 7px 32px; font-size: 12px; }
  .song-list-wrap { padding: 4px 6px 8px; }
  .song-item { padding: 7px 10px; min-height: 36px; }
  .s-num { font-size: 10px; }
  .s-title { font-size: 11.5px; }
  .song-title { font-size: 11.5px; }
  .pills { display: none; } /* hide pills in landscape to save space */
  .main { overflow: hidden; }
  .top-bar { padding: 7px 16px; gap: 10px; }
  .np-title { font-size: 13px; }
  .np-eyebrow { display: none; }
  .np-meta { font-size: 10px; }
  .yt-btn { padding: 7px 11px; font-size: 11px; }
  .yt-btn .yt-label { display: none; }
  .lyrics-view { padding: 10px 20px 8px; }
  .lyr-title { font-size: 18px; }
  .lyr-eyebrow { font-size: 8px; }
  .lyr-header { margin-bottom: 6px; }
  .lyr-divider { margin: 6px 0; }
  .act-btn { padding: 5px 9px; font-size: 11px; min-height: 30px; }
  .section-lines { font-size: 13px; line-height: 1.65; }
  .lyr-body.sz-lg .section-lines { font-size: 16px; }
  .lyr-section { margin-bottom: 14px; }
  .section-label { font-size: 9px; padding: 2px 7px; margin-bottom: 5px; }
  .capo-badge { font-size: 9px; }
  .theme-toggle-track { width: 46px; height: 24px; }
  .theme-toggle-thumb { width: 16px; height: 16px; top: 3px; left: 3px; }
  body.light .theme-toggle-thumb { transform: translateX(22px); }
}

/* ══════════════════════════════════════════════════════════
   TABLET LANDSCAPE  (481–1024px width, landscape)
══════════════════════════════════════════════════════════ */
@media (min-width: 481px) and (max-width: 1024px) and (orientation: landscape) {
  .app { grid-template-columns: 240px 1fr; height: 100dvh; }
  .lyrics-view { padding: 16px 28px 12px; }
  .lyr-title { font-size: 24px; }
  .section-lines { font-size: 14px; line-height: 1.7; }
  .act-btn { padding: 7px 11px; font-size: 12px; }
  .song-item { min-height: 44px; }
}

/* ══════════════════════════════════════════════════════════
   ANDROID WEBVIEW SAFE AREA — notches, nav bars
══════════════════════════════════════════════════════════ */
@supports (padding: env(safe-area-inset-bottom)) {
  .lyr-scroll { padding-bottom: env(safe-area-inset-bottom); }
  .top-bar { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  @media (max-width: 480px) {
    .sidebar { padding-top: env(safe-area-inset-top); }
  }
}