:root {
  --bg: #121014;
  --panel: #1c1a1f;
  --panel-alt: #242028;
  --accent: #a8e034;
  --accent-soft: rgba(168, 224, 52, 0.14);
  --text: #f5f1e8;
  --muted: #9a948c;
  --border: #322d33;
  --text-p: var(--muted);
}
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
}
.station {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
}

.content {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 16px;
  overflow: hidden;
}

/* ---------- header ---------- */
.station-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 16px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
.station-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* ---------- player ---------- */
#player-wrap {
  position: relative;
  flex: 0 0 33.3334%;
  width: 100%;
  overflow: hidden;
  background: #000;
}
#player-wrap iframe { width: 100%; height: 100%; border: 0; }
#vinheta-overlay {
  position: absolute;
  inset: 0;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
}
#vinheta-overlay span {
  font-family: 'Bebas Neue', sans-serif;
  color: var(--accent);
  font-size: 26px;
  letter-spacing: 0.05em;
}

.status { font-size: 13px; color: var(--muted); margin-top: 10px; text-align: center; }

/* ---------- now playing / liner-note card ---------- */
.now-block {
  margin-top: 4px;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.now-eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.now-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 10px;
  min-height: 34px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}
.chip {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: 999px;
}
.chip.year { color: var(--accent); border-color: var(--accent); }

/* ---------- tabs ---------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 4px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.tab-btn.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.specs {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  row-gap: 10px;
  margin: 0;
  font-size: 14px;
  overflow: hidden;
}
.specs dt {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 2px;
  white-space: nowrap;
}
.specs dd {
  margin: 0;
  color: var(--text);
}

#song-details {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#tab-detalhes {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.playlist-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.playlist-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.playlist-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.playlist-year {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--accent);
  flex: 0 0 auto;
}
.playlist-title {
  color: var(--text);
}
.menu-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.menu-about {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-p);
}

p.menu-about{
  max-width: 600px;
}
.menu-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.menu-links a {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  color: var(--text);
  text-decoration: none;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.menu-links a:hover { color: var(--accent); }
.letra-panel {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.letra-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 0 0 auto;
}
.reload-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.reload-btn:hover { color: var(--text); border-color: var(--accent); }
.reload-btn:active { transform: scale(0.97); }
.open-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--accent);
  text-decoration: none;
}
.open-link:hover { text-decoration: underline; }
#lyrics-frame {
  display: block;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-alt);
  -webkit-overflow-scrolling: touch;
  overflow: auto;
}

.site-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.site-footer img {
  display: block;
  width: 80px;
  height: 15px;
  image-rendering: pixelated;
}

/* ---------- station picker ---------- */
.picker-content { padding-top: 20px; }
.picker-heading { margin: 22px 0 20px; }
.picker-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.picker-loading { color: var(--muted); font-size: 14px; }
.picker-about {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 16px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.station-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease;
}
.station-option:hover { border-color: var(--accent); }
.station-option:active { transform: scale(0.99); }
.station-option[disabled] {
  color: var(--muted);
  cursor: default;
  opacity: 0.55;
}
.station-option[disabled]:hover { border-color: var(--border); }
.station-option .soon-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px 8px;
  flex: 0 0 auto;
}

.back-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 5px 0;
}
.back-btn:hover { color: var(--accent); }

[hidden] { display: none !important; }

/* ---------- picker menu panel ---------- */
.picker-menu-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  cursor: pointer;
  padding: 5px 0;
}
.picker-menu-btn:hover { color: var(--accent); }
.picker-menu-btn.open { color: var(--text); }

.picker-nav-panel {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.25s ease;
}
.picker-nav-panel.open {
  max-height: 280px;
}
.picker-nav-panel .menu-links {
  border-top: 1px solid var(--border);
  padding-top: 4px;
  padding-bottom: 12px;
}

/* ---------- theme swatches ---------- */
.theme-swatches {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  padding-bottom: 4px;
  flex-wrap: wrap;
}
.theme-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.swatch {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  outline: 2px solid transparent;
  outline-offset: 2px;
  transition: outline-color 0.15s;
}
.swatch:hover { outline-color: var(--muted); }
.swatch.active { outline-color: var(--text); }
