/* Thème sombre néon Phenix et variables globales */
:root {
  --bg: #0c0918;
  --panel: #171128;
  --pink: #ff3ca6;
  --orange: #ff8a35;
  --text: #ffffff;
  --muted: #b9b1c9;
}

* {
  box-sizing: border-box;
}

:focus-visible {
  outline: 2px solid #ffb13b;
  outline-offset: 3px;
}

body {
  margin: 0;
  background: radial-gradient(circle at 50% -15%, #48205c 0, transparent 42%), var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  transition: background 0.4s ease;
}

body.neon-boost {
  background:
    radial-gradient(circle at 50% -10%, #6e1f78 0, transparent 50%),
    radial-gradient(circle at 85% 35%, rgba(255, 60, 166, 0.14) 0, transparent 40%),
    radial-gradient(circle at 15% 65%, rgba(255, 138, 53, 0.12) 0, transparent 40%),
    #080512;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1080px, 92%);
  margin: auto;
  position: relative;
  z-index: 1;
}

/* Braises animées en arrière-plan */
.embers {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.embers span {
  position: absolute;
  bottom: -12px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffb13b, #ff3ca6);
  opacity: 0;
  animation: emberRise linear infinite;
}

body.neon-boost .embers span {
  width: 5px;
  height: 5px;
  box-shadow: 0 0 8px #ff8a35;
}

@keyframes emberRise {
  0% { transform: translateY(0) translateX(0) scale(0.8); opacity: 0; }
  15% { opacity: 0.55; }
  85% { opacity: 0.3; }
  100% { transform: translateY(-102vh) translateX(28px) scale(0.3); opacity: 0; }
}

/* En-tête et navigation */
header {
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 1px;
}

.brand svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 12px #ff3ca6);
}

.brand span {
  font-size: 1.1rem;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 3px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--pink);
}

.neon-toggle {
  background: #1d1433;
  border: 1px solid #593366;
  color: #ffc1df;
  padding: 7px 13px;
  border-radius: 20px;
  font-size: 0.78rem;
  transition: all 0.2s ease;
}

.neon-toggle:hover,
.neon-toggle.active {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 16px #ff3ca666;
}

/* Section héro et lecteur audio */
.hero {
  text-align: center;
  padding: 48px 0 44px;
}

.eyebrow {
  color: var(--orange);
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-size: 0.75rem;
}

h1 {
  font-size: clamp(2.7rem, 8vw, 5.7rem);
  line-height: 0.98;
  margin: 15px 0;
  background: linear-gradient(90deg, #ffffff, #ff83c8 48%, #ff9b43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 18px auto 28px;
  max-width: 600px;
}

.player {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(135deg, #211632, #121020);
  border: 1px solid #70416d;
  border-radius: 22px;
  padding: 25px;
  box-shadow: 0 0 35px #ff3ca622;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
}

body.neon-boost .player {
  border-color: #ff3ca6;
  box-shadow: 0 0 55px #ff3ca644, inset 0 0 24px #ff8a3518;
}

.player-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ff8bbf;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 2px;
  background: #160e26;
  border: 1px solid #492a55;
  padding: 5px 12px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3c78;
  box-shadow: 0 0 12px #ff3c78;
  animation: livePulse 1.5s ease-in-out infinite;
}

@keyframes livePulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

.show-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 138, 53, 0.14);
  border: 1px solid rgba(255, 138, 53, 0.42);
  color: #ffbe85;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.visit-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 60, 166, 0.14);
  border: 1px solid rgba(255, 60, 166, 0.42);
  color: #ffc1df;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
  font-variant-numeric: tabular-nums;
}

.visit-pill.is-hidden-public,
#visitCounterBadge[data-public-visible="false"] {
  display: none !important;
}

/* Encart Titre en cours & Pochette */
.now-playing-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 16px auto 18px;
  padding: 12px 16px;
  max-width: 560px;
  border-radius: 16px;
  background: rgba(12, 9, 24, 0.65);
  border: 1px solid rgba(255, 60, 166, 0.28);
  text-align: left;
}

.track-artwork {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 138, 53, 0.5);
  box-shadow: 0 0 14px rgba(255, 60, 166, 0.25);
  background: #1d1433;
  flex-shrink: 0;
}

.track-meta {
  min-width: 0;
  flex: 1;
}

.now {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.track-title {
  margin: 2px 0 0;
  font-size: 0.98rem;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  margin: 1px 0 0;
  font-size: 0.8rem;
  color: #ffbe85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: 0;
  cursor: pointer;
  color: #ffffff;
  font-weight: bold;
}

#play {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  font-size: 1.35rem;
  background: linear-gradient(135deg, var(--pink), var(--orange));
  box-shadow: 0 0 22px #ff3ca655;
  transition: transform 0.15s ease;
}

#play:hover {
  transform: scale(1.05);
}

.icon-btn {
  background: #140e24;
  border: 1px solid #493553;
  color: #ffc1df;
  padding: 10px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.icon-btn:hover {
  background: #281942;
  border-color: var(--pink);
}

.icon-btn.liked {
  background: rgba(255, 60, 166, 0.22);
  border-color: var(--pink);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 60, 166, 0.35);
}

.icon-btn.disliked {
  background: rgba(255, 138, 53, 0.22);
  border-color: var(--orange);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(255, 138, 53, 0.32);
}

.icon-btn.timer-active {
  background: rgba(255, 138, 53, 0.2);
  border-color: var(--orange);
  color: #ffbe85;
}

.vol-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #140e24;
  border: 1px solid #493553;
  padding: 8px 14px;
  border-radius: 30px;
}

#muteBtn {
  background: transparent;
  font-size: 1.1rem;
  padding: 2px 4px;
  line-height: 1;
}

#volPct {
  font-size: 0.8rem;
  color: #ffc1df;
  min-width: 36px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

input[type=range] {
  accent-color: var(--pink);
  width: 110px;
  cursor: pointer;
  touch-action: none;
}

.status {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 14px;
}

/* Horloge et égaliseurs latéraux */
.clock-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}

.equalizer {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 38px;
  padding: 4px 0;
}

.equalizer span {
  width: 5px;
  height: 30px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--pink), var(--orange));
  box-shadow: 0 0 8px #ff3ca666;
  transform-origin: bottom center;
  transform: scaleY(0.32);
  opacity: 0.75;
  will-change: transform, opacity;
}

body.neon-boost .equalizer span {
  box-shadow: 0 0 14px #ff3ca6cc, 0 0 22px #ff8a3588;
}

.clock-box {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 24px;
  border-radius: 14px;
  background: rgba(12, 9, 24, 0.75);
  border: 1px solid #492a55;
  box-shadow: inset 0 0 18px #ff3ca61a;
}

body.neon-boost .clock-box {
  border-color: #ff8a35;
  box-shadow: 0 0 24px #ff3ca633, inset 0 0 22px #ff3ca633;
}

.clock-time {
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(90deg, #ffffff, #ff83c8 50%, #ff9b43);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.clock-date {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: capitalize;
  letter-spacing: 1px;
}


/* Badge état réseau / reconnexion */
.reconnect-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(52, 211, 153, 0.14);
  border: 1px solid rgba(52, 211, 153, 0.45);
  color: #86efac;
  font-size: 0.74rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}

.reconnect-pill.is-warning {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.55);
  color: #ffd666;
}

.reconnect-pill.is-offline {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
}

.dedicace-quick-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

/* Historique des titres diffusés */
.recent-tracks-box {
  max-width: 720px;
  margin: 0 auto;
  background: var(--panel);
  border: 1px solid #352544;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 0 24px #ff3ca614;
}

.recent-tracks-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.recent-track-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0e0b19;
  border: 1px solid #2e203c;
}

.recent-track-card.is-current {
  border-color: var(--pink);
  box-shadow: 0 0 14px rgba(255, 60, 166, 0.22);
}

.recent-track-thumb {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 138, 53, 0.4);
  flex-shrink: 0;
  background: #19112c;
}

.recent-track-info {
  min-width: 0;
  flex: 1;
  text-align: left;
}

.recent-track-title {
  font-size: 0.88rem;
  font-weight: bold;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-track-artist {
  font-size: 0.76rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-track-votes {
  font-size: 0.75rem;
  color: #ffc1df;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 700px) {
  .recent-tracks-list {
    grid-template-columns: 1fr;
  }
}

/* Dédicaces multiples mises en avant à l'antenne */
.spotlight-banner {
  max-width: 720px;
  margin: 22px auto 0;
  padding: 16px 20px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 60, 166, 0.18), rgba(255, 138, 53, 0.14));
  border: 1px solid #ff3ca688;
  box-shadow: 0 0 25px #ff3ca622;
  text-align: left;
  animation: fadeIn 0.3s ease;
}

.spotlight-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ff8bbf;
  margin-bottom: 10px;
}

.spotlight-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spotlight-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(12, 9, 24, 0.68);
  border: 1px solid rgba(255, 138, 53, 0.35);
}

.spotlight-text {
  margin: 0;
  font-size: 0.94rem;
  color: #ffffff;
  flex: 1;
  word-break: break-word;
}

.ticker {
  margin: 24px auto 0;
  max-width: 720px;
  overflow: hidden;
  border-block: 1px solid #382343;
  padding: 12px 0;
  color: #ffc1df;
}

.ticker span {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 18s linear infinite;
}

@keyframes scroll {
  from { transform: translateX(100%); }
  to { transform: translateX(-100%); }
}

/* Sections générales */
section {
  padding: 48px 0;
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin: 0 0 26px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  background: var(--panel);
  border: 1px solid #352544;
  border-radius: 16px;
  padding: 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card.active-show {
  border-color: var(--pink);
  box-shadow: 0 0 24px #ff3ca628;
  transform: translateY(-2px);
}

.card .time {
  color: var(--orange);
  font-size: 0.8rem;
  font-weight: bold;
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.on-air-tag {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #ffffff;
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 1px;
}

.card h3 {
  margin: 8px 0;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Réseaux sociaux et partage */
.social {
  text-align: center;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.social a,
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border: 1px solid #76416d;
  border-radius: 30px;
  color: #ffc1df;
  background: rgba(23, 17, 40, 0.8);
  font-size: 0.92rem;
  font-weight: bold;
  transition: all 0.2s ease;
}

.social a:hover,
.share-btn:hover {
  background: #542447;
  border-color: var(--pink);
  transform: translateY(-1px);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Dédicaces et formulaires */
.dedicace {
  max-width: 650px;
  margin: auto;
  background: var(--panel);
  padding: 24px;
  border: 1px solid #352544;
  border-radius: 16px;
}

.dedicace p {
  color: var(--muted);
  text-align: center;
}

.dedicace form {
  display: grid;
  gap: 12px;
}

input,
textarea {
  width: 100%;
  padding: 13px 14px;
  border-radius: 9px;
  border: 1px solid #493553;
  background: #0e0b19;
  color: #ffffff;
  font: inherit;
}

textarea {
  min-height: 105px;
  resize: vertical;
}

.send {
  padding: 13px 20px;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--pink), var(--orange));
}

.form-feedback {
  margin-top: 12px;
  text-align: center;
  font-size: 0.88rem;
  color: #ffc1df;
  min-height: 20px;
}

/* Mini Chat en direct */
.chat-box {
  max-width: 720px;
  margin: auto;
  background: var(--panel);
  border: 1px solid #352544;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 0 28px #ff3ca618;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #352544;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.chat-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: bold;
  color: #ffc1df;
}

.chat-messages {
  height: 270px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  background: #0e0b19;
  border: 1px solid #2e203c;
  border-radius: 12px;
  margin-bottom: 14px;
}

.chat-msg {
  --msg-accent: #ff8a35;
  --msg-bg: rgba(255, 138, 53, 0.11);
  background: linear-gradient(135deg, var(--msg-bg), #171128);
  border: 1px solid color-mix(in srgb, var(--msg-accent) 48%, #2b1d3a);
  border-left: 4px solid var(--msg-accent);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  animation: fadeIn 0.2s ease;
}

.chat-msg.staff {
  --msg-accent: #ff3ca6;
  --msg-bg: rgba(255, 60, 166, 0.18);
  box-shadow: 0 0 16px rgba(255, 60, 166, 0.18);
}

.chat-msg-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chat-del-btn {
  background: rgba(185, 28, 76, 0.22);
  border: 1px solid rgba(255, 92, 138, 0.45);
  color: #ff9ec2;
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 0.7rem;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease;
}

.chat-del-btn:hover {
  background: #b91c4c;
  color: #ffffff;
}

.admin-studio-box {
  background: #120d21;
  border: 1px solid #492a55;
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  text-align: left;
}

.chat-form.is-locked input,
.chat-form.is-locked button[type="submit"],
.chat-emojis.is-locked .emoji-btn {
  opacity: 0.55;
  cursor: not-allowed;
}

.admin-studio-box h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #ffc1df;
}

.admin-studio-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-bottom: 10px;
}

@media (max-width: 700px) {
  .admin-studio-row {
    grid-template-columns: 1fr;
  }
}

.chat-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  margin-bottom: 4px;
}

.chat-author {
  font-weight: bold;
  color: var(--msg-accent);
}
.studio-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #ffffff;
  background: linear-gradient(90deg, var(--pink), var(--orange));
  box-shadow: 0 0 10px rgba(255, 60, 166, 0.35);
  vertical-align: middle;
}

.chat-time {
  color: #aba2bc;
}

.chat-text {
  margin: 0;
  color: #f7f4fc;
  word-break: break-word;
}

.chat-emojis {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.emoji-btn {
  background: #24193b;
  border: 1px solid #493553;
  border-radius: 20px;
  padding: 5px 11px;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.emoji-btn:hover {
  background: #3a2356;
  transform: scale(1.08);
}

.chat-form {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 10px;
}

/* Espace administration */
.admin-panel {
  text-align: center;
  padding-top: 14px;
  border-top: 1px solid #352544;
  margin-top: 14px;
}

.admin-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.logout-btn {
  padding: 13px 20px;
  border-radius: 9px;
  background: #24193b;
  border: 1px solid #493553;
}

.admin-visits-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: #120d21;
  border: 1px solid #492a55;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 14px;
}

.admin-visits-label {
  font-size: 0.88rem;
  color: #ffc1df;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-visits-num {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--orange);
  font-variant-numeric: tabular-nums;
}

.dedicace-wall {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.dedicace-item {
  background: #120d21;
  border: 1px solid #492a55;
  border-radius: 12px;
  padding: 12px 14px;
  text-align: left;
  animation: fadeIn 0.2s ease;
}

.dedicace-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.dedicace-head span:last-child {
  color: #aba2bc;
  font-weight: normal;
}

.ded-song-tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: bold;
  color: #ffbe85;
  background: rgba(255, 138, 53, 0.14);
  border: 1px solid rgba(255, 138, 53, 0.35);
}

.dedicace-body {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #f3eefc;
  word-break: break-word;
}

.dedicace-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pin-btn {
  background: #28173d;
  border: 1px solid #70416d;
  color: #ffc1df;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.pin-btn:hover,
.pin-btn.is-on-air {
  background: linear-gradient(90deg, var(--pink), var(--orange));
  color: #ffffff;
  border-color: transparent;
}

.del-ded-btn {
  background: #2d1222;
  border: 1px solid #7d2948;
  color: #ff9ec2;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 0.75rem;
  transition: all 0.2s ease;
}

.del-ded-btn:hover {
  background: #b91c4c;
  border-color: #ff5c8a;
  color: #ffffff;
}

.admin-dedicaces {
  margin-top: 18px;
  text-align: left;
  background: #0e0b19;
  border: 1px solid #2e203c;
  border-radius: 12px;
  padding: 14px;
}

.admin-dedicaces h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: #ffc1df;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

footer {
  text-align: center;
  padding: 30px 0;
  color: #aba2bc;
  font-size: 0.82rem;
  border-top: 1px solid #2a2037;
}

@media (max-width: 700px) {
  header {
    flex-direction: column;
  }

  nav {
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 34px;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  .clock-row {
    gap: 10px;
  }

  .clock-box {
    padding: 10px 14px;
  }

  .clock-time {
    font-size: 1.4rem;
  }

  .now-playing-box {
    padding: 10px 12px;
  }
}

/* ===== Améliorations mobile ===== */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 12px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-left: env(safe-area-inset-left, 0px);
  padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  -webkit-tap-highlight-color: transparent;
}

header { padding-top: calc(22px + env(safe-area-inset-top, 0px)); }

img, svg { max-width: 100%; }

/* Le curseur de volume ne doit plus bloquer le défilement vertical */
input[type=range] { touch-action: pan-y; }

/* Appareils tactiles : pas d'effets de survol "collés" */
@media (hover: none) {
  #play:hover,
  .emoji-btn:hover,
  .social a:hover,
  .share-btn:hover { transform: none; }
}

/* Respect de la préférence "réduire les animations" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .embers { display: none; }
}

/* Tablettes et petits écrans */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  section { padding: 38px 0; }
}

/* Mobiles */
@media (max-width: 700px) {
  .wrap { width: min(1080px, 100% - 28px); }

  header { padding-bottom: 12px; gap: 14px; }
  .brand svg { width: 44px; height: 44px; }
  .brand span { font-size: 1rem; }
  .brand small { letter-spacing: 2px; font-size: 0.62rem; }

  /* Navigation : défilement horizontal fluide, cibles tactiles confortables */
  nav {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px 6px;
    scroll-snap-type: x proximity;
  }
  nav::-webkit-scrollbar { display: none; }
  nav a, nav .neon-toggle {
    flex: 0 0 auto;
    white-space: nowrap;
    scroll-snap-align: start;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 0 14px;
    border-radius: 20px;
    background: rgba(23, 17, 40, 0.8);
    border: 1px solid #3a2849;
  }
  nav .neon-toggle { border-color: #593366; }

  .hero { padding: 24px 0 30px; }
  .eyebrow { letter-spacing: 3px; font-size: 0.7rem; }
  h1 { font-size: clamp(2.3rem, 12.5vw, 3.4rem); }
  .hero p { font-size: 1rem; margin: 14px auto 22px; }

  h2 { font-size: 1.6rem; margin-bottom: 20px; }

  .player { padding: 18px 14px; border-radius: 18px; }
  .player-top { gap: 8px; }
  .live, .show-pill, .visit-pill, .reconnect-pill { font-size: 0.7rem; padding: 5px 10px; }

  .now-playing-box { gap: 12px; margin: 14px auto; }
  .track-artwork { width: 48px; height: 48px; }

  /* Commandes : lecture centrée, volume pleine largeur, boutons en grille */
  .controls { gap: 10px; }
  #play { width: 68px; height: 68px; flex: 0 0 68px; }
  .vol-wrap {
    order: 2;
    width: 100%;
    justify-content: center;
    padding: 8px 12px;
  }
  .vol-wrap input[type=range] { flex: 1; width: auto; min-width: 0; height: 28px; }
  #muteBtn { min-width: 40px; min-height: 40px; font-size: 1.25rem; }
  .controls .icon-btn {
    order: 3;
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
    min-height: 44px;
    padding: 10px 12px;
  }
  #reloadStreamBtn { flex-basis: 100%; }

  .status { font-size: 0.8rem; }

  .clock-row { gap: 8px; }
  .equalizer { gap: 3px; }
  .equalizer span { width: 4px; }
  .clock-time { letter-spacing: 1px; }

  .spotlight-banner { padding: 14px; margin-top: 18px; }
  .spotlight-item { padding: 9px 11px; }
  .ticker { margin-top: 18px; }

  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 18px; }

  .chat-box, .recent-tracks-box, .dedicace { padding: 16px 14px; border-radius: 16px; }
  .chat-messages { height: min(300px, 48vh); padding: 10px; }
  .chat-emojis { gap: 6px; }
  .emoji-btn { min-height: 40px; min-width: 40px; }

  /* 16px minimum : empêche le zoom automatique d'iOS dans les champs */
  input, textarea, select { font-size: 16px; min-height: 46px; }
  textarea { min-height: 110px; }
  .send, .logout-btn { min-height: 46px; width: 100%; }

  .dedicace-quick-row { justify-content: stretch; }
  .dedicace-quick-row .icon-btn { width: 100%; justify-content: center; min-height: 44px; }

  .social-links { gap: 10px; }
  .social a, .share-btn { min-height: 44px; flex: 1 1 calc(50% - 10px); justify-content: center; padding: 10px 14px; }

  /* Administration */
  .admin-actions { flex-direction: column; align-items: stretch; }
  .admin-studio-row,
  .admin-studio-row[style] { grid-template-columns: 1fr !important; }
  .admin-studio-row .logout-btn,
  .admin-studio-row .del-ded-btn { width: 100%; min-height: 44px; }
  .admin-dedicaces h3 { flex-direction: column; align-items: flex-start; gap: 8px; }
  .pin-btn, .del-ded-btn, .chat-del-btn { min-height: 36px; padding: 6px 12px; }
  .dedicace-wall { max-height: 260px; -webkit-overflow-scrolling: touch; }

  footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}

/* Très petits écrans (iPhone SE, anciens Android) */
@media (max-width: 380px) {
  .brand small { display: none; }
  .controls .icon-btn { flex-basis: 100%; }
  .social a, .share-btn { flex-basis: 100%; }
  .clock-time { font-size: 1.2rem; }
  .clock-box { padding: 8px 10px; }
  .equalizer span { width: 3px; }
}

/* Paysage sur téléphone : lecteur plus compact */
@media (max-height: 480px) and (orientation: landscape) {
  .hero { padding: 16px 0; }
  h1 { font-size: 2.2rem; }
  .chat-messages { height: 200px; }
}

/* --- Ajouts Symfony : remplacent les styles inline de l'ancienne version --- */
.muted-label { font-size: 0.88rem; color: var(--muted); }
.chat-count { color: var(--muted); font-size: 0.8rem; }
.social-intro { color: var(--muted); }
.empty-note { color: #aba2bc; font-size: 0.82rem; margin: 0; text-align: center; }
.recent-tracks-list .empty-note { font-size: 0.88rem; grid-column: 1 / -1; }
.admin-counter { text-align: center; margin-bottom: 14px; }
.admin-connected { color: #ff8bbf; font-weight: bold; margin: 0; }
.admin-count-tag { font-size: 0.78rem; color: var(--orange); }
.admin-head-tools { display: inline-flex; align-items: center; gap: 8px; }
.votes-tag { color: #ffc1df; font-weight: bold; }
.dedicace-wall.is-compact { margin-top: 0; }
.dedicace-wall.is-official { margin-top: 0; margin-bottom: 10px; max-height: 170px; }
.dedicace-wall.is-votes { margin-top: 0; max-height: 220px; }
.dedicace-body.is-official { margin-bottom: 8px; }
.admin-studio-row.is-ticker { margin-bottom: 0; grid-template-columns: 1fr auto auto; }
.del-ded-btn.is-large { padding: 13px 14px; border-radius: 9px; }
.inline-form { display: inline; margin: 0; }
.login-error { color: #ff9ec2; text-align: center; margin: 0 0 10px; }

body:not(.is-admin) .chat-del-btn { display: none; }

.chat-color-0 { --msg-accent: #ff8a35; --msg-bg: rgba(255, 138, 53, 0.12); }
.chat-color-1 { --msg-accent: #38bdf8; --msg-bg: rgba(56, 189, 248, 0.12); }
.chat-color-2 { --msg-accent: #c084fc; --msg-bg: rgba(192, 132, 252, 0.13); }
.chat-color-3 { --msg-accent: #34d399; --msg-bg: rgba(52, 211, 153, 0.12); }
.chat-color-4 { --msg-accent: #f472b6; --msg-bg: rgba(244, 114, 182, 0.13); }
.chat-color-5 { --msg-accent: #fbbf24; --msg-bg: rgba(251, 191, 36, 0.12); }
.chat-color-6 { --msg-accent: #fb7185; --msg-bg: rgba(251, 113, 133, 0.13); }
.chat-color-7 { --msg-accent: #2dd4bf; --msg-bg: rgba(45, 212, 191, 0.12); }

/* Égaliseur animé en CSS pendant la lecture */
@keyframes eqBounce {
  0%, 100% { transform: scaleY(0.3); opacity: 0.7; }
  50% { transform: scaleY(1.1); opacity: 1; }
}
.equalizer span { transform: scaleY(0.35); }
.player.is-playing .equalizer span { animation: eqBounce 0.9s ease-in-out infinite; }
.equalizer span:nth-child(1) { height: 14px; animation-delay: 0s; }
.equalizer span:nth-child(2) { height: 26px; animation-delay: -0.2s; }
.equalizer span:nth-child(3) { height: 18px; animation-delay: -0.45s; }
.equalizer span:nth-child(4) { height: 32px; animation-delay: -0.1s; }
.equalizer span:nth-child(5) { height: 20px; animation-delay: -0.6s; }
.equalizer.right span:nth-child(1) { height: 20px; }
.equalizer.right span:nth-child(2) { height: 32px; }
.equalizer.right span:nth-child(3) { height: 18px; }
.equalizer.right span:nth-child(4) { height: 26px; }
.equalizer.right span:nth-child(5) { height: 14px; }

/* Braises : position et rythme de chaque particule */
.embers span:nth-child(1) { left: 0%; animation-duration: 9s; animation-delay: -0s; }
.embers span:nth-child(2) { left: 5.7%; animation-duration: 11.1s; animation-delay: -1.3s; }
.embers span:nth-child(3) { left: 11.4%; animation-duration: 13.2s; animation-delay: -2.6s; }
.embers span:nth-child(4) { left: 17.1%; animation-duration: 15.3s; animation-delay: -3.9s; }
.embers span:nth-child(5) { left: 22.8%; animation-duration: 17.4s; animation-delay: -5.2s; }
.embers span:nth-child(6) { left: 28.5%; animation-duration: 19.5s; animation-delay: -6.5s; }
.embers span:nth-child(7) { left: 34.2%; animation-duration: 21.6s; animation-delay: -7.8s; }
.embers span:nth-child(8) { left: 39.9%; animation-duration: 9s; animation-delay: -9.1s; }
.embers span:nth-child(9) { left: 45.6%; animation-duration: 11.1s; animation-delay: -10.4s; }
.embers span:nth-child(10) { left: 51.3%; animation-duration: 13.2s; animation-delay: -11.7s; }
.embers span:nth-child(11) { left: 57%; animation-duration: 15.3s; animation-delay: -13s; }
.embers span:nth-child(12) { left: 62.7%; animation-duration: 17.4s; animation-delay: -14.3s; }
.embers span:nth-child(13) { left: 68.4%; animation-duration: 19.5s; animation-delay: -15.6s; }
.embers span:nth-child(14) { left: 74.1%; animation-duration: 21.6s; animation-delay: -16.9s; }
.embers span:nth-child(15) { left: 79.8%; animation-duration: 9s; animation-delay: -18.2s; }
.embers span:nth-child(16) { left: 85.5%; animation-duration: 11.1s; animation-delay: -19.5s; }
.embers span:nth-child(17) { left: 91.2%; animation-duration: 13.2s; animation-delay: -20.8s; }
.embers span:nth-child(18) { left: 96.9%; animation-duration: 15.3s; animation-delay: -22.1s; }

[hidden] { display: none !important; }

/* Pages studio : connexion et administration */
.login-page .dedicace { max-width: 440px; margin: 0 auto; }
.login-page form { display: grid; gap: 12px; }
.admin-dedicaces .chat-messages { max-height: 360px; }
nav .nav-admin { border: 1px solid #593366; border-radius: 999px; padding: 6px 12px; color: #ff8bbf; }
nav .nav-admin:hover { border-color: var(--pink); }
