/* ============================================================
   Voidline Radio – Zusatz-Styles (Upgrade-Stufe)
   Progressbar, Favoriten, Toasts, Install-Button, Sticky-Song
   ============================================================ */

/* ---------- Song-Fortschritt im Player ---------- */
.player-progress {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.07);
  overflow: hidden;
}
.player-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: var(--glow);
  transition: width .9s linear;
}

/* ---------- Favoriten-Herz ---------- */
.fav-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px; height: 40px;
  min-width: 40px;
  display: grid; place-items: center;
  font-size: 1.05rem;
  cursor: pointer;
  color: var(--muted);
  transition: .2s;
}
.fav-btn:hover { border-color: var(--accent-2); color: var(--accent-2); transform: scale(1.08); }
.fav-btn.aktiv {
  color: var(--accent-2);
  border-color: var(--accent-2);
  box-shadow: var(--glow-pink);
  animation: herzPuls .45s ease;
}
@keyframes herzPuls {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

/* ---------- Statistik-Kacheln ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.stat {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  text-align: center;
  transition: .25s;
}
.stat:hover { border-color: var(--accent); transform: translateY(-3px); }
.stat .s-zahl {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: var(--glow);
  line-height: 1.1;
}
.stat .s-label {
  font-size: .75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-top: .3rem;
}

/* ---------- Top-Charts ---------- */
.chart-liste { list-style: none; display: grid; gap: .5rem; }
.chart-liste li {
  display: flex;
  align-items: center;
  gap: .8rem;
  background: var(--bg-2);
  border: 1px solid transparent;
  border-radius: 10px;
  padding: .6rem .9rem;
  transition: .2s;
}
.chart-liste li:hover { border-color: var(--accent); transform: translateX(4px); }
.chart-rang {
  width: 26px; height: 26px;
  min-width: 26px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .78rem;
  font-weight: 800;
  background: var(--panel-2);
  color: var(--muted);
}
.chart-liste li:nth-child(1) .chart-rang { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #000; }
.chart-liste li:nth-child(2) .chart-rang { background: var(--accent); color: #000; opacity: .8; }
.chart-liste li:nth-child(3) .chart-rang { background: var(--muted); color: #000; opacity: .8; }
.chart-song { flex: 1; min-width: 0; }
.chart-song b { display: block; font-size: .92rem; font-weight: 700; }
.chart-song span { font-size: .78rem; color: var(--muted); }
.chart-count {
  font-size: .75rem;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- "Als Nächstes" ---------- */
.naechster {
  margin-top: 1rem;
  padding: .8rem 1rem;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0,229,255,.09), transparent);
  border: 1px dashed var(--border);
  font-size: .9rem;
}
.naechster .n-label {
  color: var(--accent);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.naechster .n-titel { font-weight: 700; }

/* ---------- Favoriten-Liste ---------- */
.fav-leer { color: var(--muted); font-size: .9rem; }

/* ---------- Toast-Benachrichtigungen ---------- */
.toast-wrap {
  position: fixed;
  top: 84px; right: 18px;
  z-index: 400;
  display: grid;
  gap: .6rem;
  pointer-events: none;
}
.toast {
  background: var(--panel);
  border: 1px solid var(--accent);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: .8rem 1.1rem;
  box-shadow: 0 10px 34px rgba(0,0,0,.55), var(--glow);
  font-size: .92rem;
  max-width: 320px;
  animation: toastIn .3s ease;
  pointer-events: auto;
}
.toast.fehler { border-color: #ff5577; border-left-color: #ff5577; box-shadow: 0 10px 34px rgba(0,0,0,.55); }
.toast.raus { animation: toastOut .3s ease forwards; }
@keyframes toastIn  { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------- App-Installieren-Button ---------- */
.install-btn {
  position: fixed;
  bottom: 108px; right: 18px;
  z-index: 250;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #000;
  border: none;
  border-radius: 999px;
  padding: .8rem 1.3rem;
  font-family: inherit;
  font-weight: 800;
  font-size: .9rem;
  cursor: pointer;
  box-shadow: var(--glow);
  display: none;
  animation: toastIn .4s ease;
}
.install-btn:hover { transform: translateY(-3px); }

/* ---------- Nach oben ---------- */
.nach-oben {
  position: fixed;
  bottom: 108px; left: 18px;
  z-index: 250;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(18,18,31,.9);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
  display: none;
  place-items: center;
}
.nach-oben:hover { border-color: var(--accent); color: var(--accent); }
.nach-oben.zeigen { display: grid; }

/* ---------- Tastatur-Hinweis ---------- */
.kbd-hinweis {
  display: inline-block;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: .05rem .45rem;
  font-size: .78rem;
  font-family: ui-monospace, monospace;
  color: var(--muted);
}

/* ---------- Now-Playing mit größerem Cover ---------- */
.nowplaying-haupt .cover { width: 132px; height: 132px; min-width: 132px; }

/* ---------- Bereich: Entdecken / Zwei-Spalten ---------- */
.duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

/* ---------- Sendungs-Detail (Programm-Klick) ---------- */
.sendung { cursor: pointer; }

/* ---------- Mobil ---------- */
@media (max-width: 860px) {
  .duo-grid { grid-template-columns: 1fr; }
  .toast-wrap { top: 74px; right: 10px; left: 10px; }
  .toast { max-width: none; }
  .install-btn { bottom: 128px; }
  .nach-oben { bottom: 128px; }
  .fav-btn { width: 36px; height: 36px; min-width: 36px; }
  .nowplaying-haupt .cover { width: 100px; height: 100px; min-width: 100px; }
}
