@font-face {
  font-family: 'Bumper Sticker';
  src: url('assets/fonts/bumper_sticker.otf') format('opentype');
  font-display: swap;
}
@font-face {
  font-family: 'Heal The World';
  src: url('assets/fonts/HealTheWorld-ywjoV.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: 'Exo';
  src: url('assets/fonts/Exo-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --yellow: #FEBE16;
  --orange: #F47920;
  --green: #28B891;
  --ink: #12122E;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.14);
  --text: #fff7df;
  --muted: rgba(255,247,223,.78);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  touch-action: manipulation;
  overscroll-behavior: none;
  background: var(--ink);
  color: var(--text);
  font-family: 'Exo', system-ui, sans-serif;
  min-height: 100svh;
}
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
.skip-link, .sr-only { position:absolute; left:-999px; }
.skip-link:focus { left:1rem; top:1rem; z-index:10; background:#fff; color:var(--ink); padding:.75rem; border-radius:.75rem; }

.hero { position: relative; z-index: 0; overflow: hidden; padding: 2rem 1rem 1.2rem; text-align: center; }
.hero > *:not(.decor) { position: relative; z-index: 1; }
.logo { width: min(132px, 34vw); height: auto; filter: drop-shadow(0 16px 28px rgba(0,0,0,.25)); }
.eyebrow { margin: .75rem 0 .1rem; color: var(--yellow); letter-spacing: .08em; text-transform: uppercase; font-weight: 800; }
h1 { margin: 0; font-family: 'Bumper Sticker', 'Exo', sans-serif; font-size: clamp(2.1rem, 12vw, 5rem); line-height: .9; }
.intro { max-width: 38rem; margin: 1rem auto 0; color: var(--muted); }
.decor { position:absolute; z-index: -1; border-radius: 55% 45% 60% 40%; opacity:.9; pointer-events:none; }
.decor-one { width: 13rem; height: 8rem; right:-4rem; top:1.2rem; background: var(--green); transform: rotate(18deg); }
.decor-two { width: 9rem; height: 5rem; left:-3rem; bottom:0; background: var(--orange); transform: rotate(-12deg); }

.topbar { position: sticky; top: 0; z-index: 5; display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; padding: .75rem; background: rgba(18,18,46,.92); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255,255,255,.12); }
.tab, .ghost, .font-controls button { border: 0; border-radius: 999px; background: var(--panel); color: var(--text); padding: .8rem 1rem; font-weight: 800; }
.tab.is-active { background: var(--yellow); color: var(--ink); }
.layout { display: grid; gap: 1rem; padding: .75rem; max-width: 1180px; margin: 0 auto; }
.song-list-panel, .lyrics-panel { background: var(--panel); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); box-shadow: 0 18px 60px rgba(0,0,0,.24); }
.panel-header { display:flex; align-items:center; justify-content:space-between; padding: 1rem 1rem .25rem; }
h2 { margin: 0; font-size: 1.35rem; }
.count, .artist, .section-label { color: var(--muted); }
.song-list { display: grid; gap: .65rem; padding: .75rem; }
.song-card { text-align: left; border: 0; border-radius: 18px; padding: 1rem; color: var(--text); background: rgba(255,255,255,.08); border-left: 7px solid var(--orange); }
.song-card:nth-child(3n+2) { border-left-color: var(--yellow); }
.song-card:nth-child(3n+3) { border-left-color: var(--green); }
.song-card span { display:block; font-weight: 900; font-size: 1.05rem; }
.song-card small { display:block; margin-top: .2rem; color: var(--muted); }
.song-card.is-selected { outline: 3px solid var(--yellow); background: var(--panel-strong); }

.lyrics-panel { padding: 1rem; min-height: 55svh; }
.lyrics-actions { display:flex; align-items:center; justify-content:space-between; gap: .75rem; margin-bottom: 1rem; }
.font-controls { display:flex; gap:.5rem; margin-left:auto; }
.section-label { margin: 0 0 .25rem; font-weight:900; color: var(--green); }
.artist { margin: .3rem 0 1rem; }
.lyrics { line-height: 1.7; font-size: 1rem; padding-bottom: 20vh; }
.lyrics-stanza { margin: 0 0 1.35em; }
.lyrics-stanza:last-child { margin-bottom: 0; }
.lyrics.empty { color: var(--muted); }
.no-results { padding: 1rem; color: var(--muted); }

@media (max-width: 799px) {
  .lyrics-panel { display: none; }
  body.show-lyrics .song-list-panel { display: none; }
  body.show-lyrics .lyrics-panel { display: block; }
}

@media (min-width: 800px) {
  .topbar { grid-template-columns: auto auto; justify-content: start; padding-inline: 1.25rem; }
  .layout { grid-template-columns: 380px 1fr; padding: 1.25rem; align-items: start; }
  .song-list-panel, .lyrics-panel { max-height: calc(100svh - 95px); overflow: auto; }
  .hide-desktop { display: none; }
}
