:root {
  --bg: #0a0a0a;
  --bg-card: #141414;
  --bg-elevated: #1a1a1a;
  --primary: #dc143c;
  --primary-glow: rgba(220, 20, 60, 0.4);
  --text: #f5f5f5;
  --text-muted: #888;
  --border: #2a2a2a;
  --radius: 16px;
  --font: 'Outfit', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.55) 0%, rgba(10,10,10,0.82) 45%, rgba(10,10,10,0.95) 100%),
    radial-gradient(circle at 50% 20%, rgba(220,20,60,0.18) 0%, transparent 55%);
}

body.has-bg-video .bg-glow {
  opacity: 0.35;
}

.bg-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-nude { color: var(--text); }
.logo-france { color: var(--primary); }
.logo-radio {
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: 0.5rem;
  letter-spacing: 0.2em;
  vertical-align: super;
}

.admin-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.header .admin-link + .admin-link {
  margin-left: 0.75rem;
}
.admin-link:hover { color: var(--primary); }

.player-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  position: relative;
  z-index: 1;
}

.now-playing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.cover-wrapper {
  position: relative;
}

.cover {
  width: 220px;
  height: 220px;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transition: transform 0.3s ease;
}

.cover.playing {
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  opacity: 0.5;
}
.cover-placeholder svg { width: 64px; height: 64px; }

.live-badge {
  position: absolute;
  top: -10px;
  right: -10px;
  background: var(--primary);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 20px var(--primary-glow);
}

.pulse {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 1.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

.track-info { text-align: center; }

.artist {
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.25rem;
}

.title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

.listeners {
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.listeners .dot {
  width: 6px;
  height: 6px;
  background: #22c55e;
  border-radius: 50%;
}

.controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.transport {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
}

.btn-play {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.14);
  background: linear-gradient(145deg, #e8184a, #b01030);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 12px 44px var(--primary-glow);
  overflow: visible;
}

.btn-play-glow {
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220,20,60,0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.btn-play.is-playing .btn-play-glow {
  opacity: 1;
  animation: playGlow 2.4s ease-in-out infinite;
}

@keyframes playGlow {
  0%, 100% { transform: scale(1); opacity: 0.9; }
  50% { transform: scale(1.06); opacity: 0.45; }
}

.btn-play-ring {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(220,20,60,0.4);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.25s, transform 0.25s;
}

.btn-play.is-playing .btn-play-ring {
  opacity: 1;
  transform: scale(1);
  animation: playRing 2s ease-in-out infinite;
}

@keyframes playRing {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.btn-play-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.btn-eq {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 14px;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.25s;
}

.btn-eq span {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255,255,255,0.85);
}

.btn-play.is-playing .btn-eq {
  opacity: 1;
}

.btn-play.is-playing .btn-eq span {
  animation: eqBar 0.9s ease-in-out infinite;
}

.btn-play.is-playing .btn-eq span:nth-child(1) { animation-delay: 0s; }
.btn-play.is-playing .btn-eq span:nth-child(2) { animation-delay: 0.15s; }
.btn-play.is-playing .btn-eq span:nth-child(3) { animation-delay: 0.3s; }
.btn-play.is-playing .btn-eq span:nth-child(4) { animation-delay: 0.45s; }

@keyframes eqBar {
  0%, 100% { height: 5px; opacity: 0.5; }
  50% { height: 14px; opacity: 1; }
}

.btn-play:hover { transform: scale(1.05); }
.btn-play:active { transform: scale(0.96); }
.btn-play.is-playing {
  background: linear-gradient(145deg, #1c1c1c, #0d0d0d);
  border-color: var(--primary);
  box-shadow: 0 12px 40px rgba(220,20,60,0.3);
}

.btn-play.is-playing .btn-play-icon {
  transform: scale(0.92);
}

.btn-play svg { width: 36px; height: 36px; fill: currentColor; }
.btn-play .icon-play { margin-left: 4px; }

.transport-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--primary);
}

.transport-status {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 260px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.volume-control input[type="range"] {
  width: 100px;
  accent-color: var(--primary);
}

.shows-section, .history-section {
  margin-bottom: 2rem;
}

.shows-section h2, .history-section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.shows-list, .history-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shows-list li, .history-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.shows-list .show-date {
  color: var(--primary);
  font-size: 0.75rem;
  margin-bottom: 0.2rem;
}

.history-list .hist-artist {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer {
  text-align: center;
  padding: 2rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  position: relative;
  z-index: 1;
}

@media (max-width: 480px) {
  .cover { width: 180px; height: 180px; }
  .title { font-size: 1.25rem; }
}
