/* ==========================================================================
   NÃ‰ON FM â€” style.css
   ThÃ¨me : Cyberpunk / NÃ©o-brutalisme Ã©lÃ©gant Â· Dark mode Â· Glassmorphism
   ========================================================================== */

/* ---------- 1. Variables de design ---------- */
:root {
  --bg: #0b0d13;
  --panel: rgba(18, 22, 34, 0.72);
  --card: #151926;
  --card-active: #1e2235;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --cyan: #06b6d4;
  --cyan-soft: #38bdf8;
  --pink: #ec4899;
  --pink-soft: #f472b6;
  --violet: #a855f7;
  --lime: #a3e635;
  --live: #10b981;
  --danger: #f43f5e;

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--violet) 50%, var(--pink) 100%);
  --radius: 20px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Geist", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Couleur du genre actif (mise Ã  jour par JS) */
  --g1: #06b6d4;
  --g2: #ec4899;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { color-scheme: dark; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}


button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: var(--cyan-soft); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { list-style: none; }
svg.lucide { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

/* ---------- 3. Fond animÃ© ---------- */
.bg-aurora { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.42;
  animation: drift 22s ease-in-out infinite alternate;
}
.orb-1 { width: 520px; height: 520px; background: var(--g1); top: -140px; left: -120px; transition: background 1.2s ease; }
.orb-2 { width: 460px; height: 460px; background: var(--g2); bottom: -160px; right: -100px; animation-delay: -8s; transition: background 1.2s ease; }
.orb-3 { width: 340px; height: 340px; background: var(--violet); top: 40%; left: 45%; opacity: 0.18; animation-delay: -14s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.15); }
}
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(6, 182, 212, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

/* ---------- 4. Glassmorphism ---------- */
.glass {
  background: var(--panel);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ---------- 5. En-tÃªte + horloge ---------- */
.topbar {
  position: sticky; top: 12px; z-index: 20;
  margin: 12px clamp(12px, 3vw, 32px) 0;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo {
  width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--grad); color: #041b24; border-radius: 12px;
  box-shadow: 4px 4px 0 #000, 0 0 24px rgba(6, 182, 212, 0.45); /* touche nÃ©o-brutaliste */
}
.brand-logo svg { width: 24px; height: 24px; }
.brand-title { font-family: var(--font-head); font-size: 26px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.brand-title span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-left: 2px; }
.brand-sub { font-size: 13px; color: var(--muted); }

.clock { text-align: right; display: flex; flex-direction: column; align-items: flex-end; }
.clock-time {
  font-family: var(--font-mono); font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.06em; line-height: 1;
  color: #e0fbff; text-shadow: 0 0 14px rgba(6, 182, 212, 0.75), 0 0 32px rgba(6, 182, 212, 0.35);
}

.clock-date {
  margin-top: 6px; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--pink-soft);
}

.FREQUENCE {
  font-family: var(--font-mono); font-weight: 800; font-size: clamp(24px, 3vw, 34px);
  letter-spacing: 0.06em; line-height: 1;
  color: #FFC0C0; text-shadow: 0 0 14px rgba(192, 0, 0, 0.75), 0 0 32px rgba(192, 0, 0, 0.35);
}


/* ---------- 6. Mise en page (3 colonnes) ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(340px, 420px) 1fr minmax(260px, 320px);
  gap: clamp(16px, 2vw, 28px);
  padding: clamp(16px, 2.4vw, 28px) clamp(12px, 3vw, 32px);
  align-items: start;
}

/* ---------- 7. Lecteur ---------- */
.player { padding: 24px; position: sticky; top: 108px; display: flex; flex-direction: column; gap: 18px; }
.player-status { display: flex; justify-content: space-between; align-items: center; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--muted);
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.live-pill.is-live { color: var(--live); border-color: rgba(16, 185, 129, 0.45); background: rgba(16, 185, 129, 0.1); }
.live-pill.is-live .live-dot { background: var(--live); animation: blink 1.2s ease-in-out infinite; box-shadow: 0 0 10px var(--live); }
.live-pill.is-loading { color: var(--cyan-soft); border-color: rgba(56, 189, 248, 0.4); }
.live-pill.is-loading .live-dot { background: var(--cyan-soft); animation: blink 0.5s ease-in-out infinite; }
.live-pill.is-error { color: var(--danger); border-color: rgba(244, 63, 94, 0.45); }
.live-pill.is-error .live-dot { background: var(--danger); }
@keyframes blink { 50% { opacity: 0.25; } }
.freq { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.2em; color: var(--cyan-soft); }

/* Platine */
.deck { position: relative; width: min(100%, 320px); aspect-ratio: 1; margin: 6px auto 0; transition: transform 0.5s cubic-bezier(.2,.8,.2,1), opacity 0.5s ease; }
.deck.switching { transform: scale(0.88) rotate(-8deg); opacity: 0.35; }
.vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 31%, rgba(255,255,255,0.03) 31.5% 32%, transparent 32.5%),
    repeating-radial-gradient(circle, #121212 0 2px, #1b1b1f 2px 3px, #0e0e10 3px 4px),
    #111;
  box-shadow: 0 0 0 6px #07080b, 0 0 0 7px rgba(255,255,255,0.08), 0 25px 60px -10px rgba(0,0,0,0.8), 0 0 60px -10px var(--g1);
  animation: spin 1.8s linear infinite;
  animation-play-state: paused;
  transition: box-shadow 0.8s ease;
}
.vinyl.playing { animation-play-state: running; }
@keyframes spin { to { transform: rotate(360deg); } }
.vinyl-shine {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 30deg, transparent 0 12%, rgba(255,255,255,0.12) 16%, transparent 22% 60%, rgba(255,255,255,0.08) 64%, transparent 70%);
  mix-blend-mode: screen;
}
.vinyl-label {
  position: absolute; inset: 32%; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), transparent 45%), linear-gradient(135deg, var(--g1), var(--g2));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; box-shadow: inset 0 0 0 3px rgba(0,0,0,0.25);
  transition: background 0.8s ease;
}
.vinyl-label svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)); }
.vinyl-genre { font-family: var(--font-head); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-shadow: 0 1px 3px rgba(0,0,0,0.5); max-width: 80%; text-align: center; line-height: 1.1; }
.vinyl-hole { position: absolute; inset: 48.5%; border-radius: 50%; background: #0b0d13; box-shadow: 0 0 0 2px rgba(255,255,255,0.2); }

/* Bras de lecture */
.tonearm { position: absolute; top: -4%; right: -6%; width: 40%; height: 70%; transform-origin: 78% 10%; transform: rotate(-28deg); transition: transform 0.9s cubic-bezier(.3,1.4,.5,1); pointer-events: none; }
.tonearm.on { transform: rotate(2deg); }
.tonearm-base { position: absolute; top: 0; right: 10%; width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(145deg, #3a3f52, #1a1d28); box-shadow: 0 6px 14px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.2); }
.tonearm-rod { position: absolute; top: 16px; right: calc(10% + 15px); width: 5px; height: 78%; background: linear-gradient(90deg, #c7ccd9, #7c8396); border-radius: 4px; transform: rotate(18deg); transform-origin: top; }
.tonearm-head { position: absolute; bottom: 4%; left: 22%; width: 18px; height: 30px; border-radius: 4px; background: var(--grad); transform: rotate(18deg); box-shadow: 0 0 12px var(--pink); }

/* Titre / artiste */
.now { text-align: center; min-height: 104px; transition: opacity 0.4s ease, transform 0.4s ease; }
.now.fade { opacity: 0; transform: translateY(8px); }
.now-station { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-soft); }
.now-title {
  margin-top: 6px; font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.now-artist { margin-top: 4px; color: var(--pink-soft); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Spectre */
.spectrum-wrap { position: relative; height: 96px; border-radius: 14px; background: rgba(0,0,0,0.35); border: 1px solid var(--line); overflow: hidden; }
.spectrum { width: 100%; height: 100%; display: block; }
.spectrum-mode { position: absolute; top: 6px; right: 10px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }

/* Boutons de commande */
.controls { display: flex; justify-content: center; align-items: center; gap: 14px; }
.icon-btn {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); color: var(--text);
  transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.icon-btn:hover { transform: translateY(-2px); background: rgba(6,182,212,0.12); border-color: rgba(6,182,212,0.45); color: var(--cyan-soft); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn.sm { width: 36px; height: 36px; border-radius: 10px; }
.icon-btn.is-fav { color: var(--pink); border-color: rgba(236,72,153,0.5); background: rgba(236,72,153,0.12); }
.icon-btn.is-fav svg { fill: var(--pink); }

.play-btn {
  position: relative; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #041b24;
  box-shadow: 0 10px 30px -6px rgba(236,72,153,0.6), 0 0 0 4px rgba(255,255,255,0.06);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}
.play-btn svg { width: 30px; height: 30px; stroke-width: 2.4; fill: #041b24; }
.play-btn:hover { transform: scale(1.06); }
.play-btn:active { transform: scale(0.95); }
/* Pulsation permanente (invitation) + anneaux en lecture */
.play-btn::before, .play-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  border: 2px solid var(--cyan); opacity: 0;
}
.play-btn:not(.playing) { animation: breathe 2.4s ease-in-out infinite; }
.play-btn.playing::before { animation: ripple 1.8s ease-out infinite; }
.play-btn.playing::after { animation: ripple 1.8s ease-out 0.9s infinite; border-color: var(--pink); }
@keyframes breathe {
  0%, 100% { box-shadow: 0 10px 30px -6px rgba(236,72,153,0.5), 0 0 0 0 rgba(6,182,212,0.45); }
  50% { box-shadow: 0 10px 40px -4px rgba(236,72,153,0.8), 0 0 0 14px rgba(6,182,212,0); }
}
@keyframes ripple {
  0% { transform: scale(1); opacity: 0.85; }
  100% { transform: scale(1.65); opacity: 0; }
}
.play-btn.loading svg { animation: spin 0.9s linear infinite; fill: none; }

/* Volume + minuterie */
.sub-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.volume { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.volume input[type="range"] {
  -webkit-appearance: none; appearance: none; flex: 1; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan) 0%, var(--pink) var(--vol, 80%), rgba(255,255,255,0.1) var(--vol, 80%));
  cursor: pointer;
}
.volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); transition: transform 0.15s ease; }
.volume input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.25); }
.volume input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 10px var(--cyan); }
.volume-val { font-family: var(--font-mono); font-size: 12px; width: 28px; text-align: right; color: var(--muted); }

.sleep { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line); font-size: 13px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.chip:hover { border-color: rgba(168,85,247,0.6); color: #e9d5ff; }
.chip.active { background: rgba(168,85,247,0.18); border-color: rgba(168,85,247,0.7); color: #e9d5ff; }
.chip svg { width: 15px; height: 15px; }
.sleep-menu { position: absolute; right: 0; bottom: calc(100% + 8px); padding: 6px; display: flex; flex-direction: column; min-width: 140px; z-index: 30; border-radius: 14px; background: rgba(18,22,34,0.95); }
.sleep-menu[hidden] { display: none; }
.sleep-menu button { padding: 8px 12px; text-align: left; border-radius: 8px; font-size: 14px; transition: background-color 0.15s ease; }
.sleep-menu button:hover { background: rgba(6,182,212,0.14); }

/* ---------- 8. Stations ---------- */
.stations { padding: 24px; min-width: 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.section-title { font-family: var(--font-head); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 10px; }
.section-title svg { color: var(--cyan); }
.search { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 12px; background: rgba(0,0,0,0.3); border: 1px solid var(--line); transition: border-color 0.2s ease; }
.search:focus-within { border-color: var(--cyan); }
.search svg { color: var(--muted); width: 16px; height: 16px; }
.search input { background: none; border: 0; outline: none; width: 160px; font-size: 14px; }

.genres { display: flex; gap: 8px; margin: 18px 0; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.genre-btn {
  flex-shrink: 0; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 500;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--muted);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.genre-btn:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.genre-btn.active { background: var(--text); color: #0b0d13; border-color: var(--text); box-shadow: 3px 3px 0 var(--pink); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.card {
  position: relative; padding: 16px; border-radius: 16px; cursor: pointer; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 172px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  animation: card-in 0.45s ease both;
}
@keyframes card-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.card::before { /* liserÃ© de genre */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2));
}
.card:hover { transform: translateY(-4px) scale(1.015); border-color: rgba(6,182,212,0.45); box-shadow: 0 14px 30px -12px rgba(6,182,212,0.35); }
.card.active { background: var(--card-active); border-color: var(--c1); box-shadow: 0 0 0 1px var(--c1), 0 16px 40px -12px var(--c1), 6px 6px 0 rgba(0,0,0,0.6); }
.card-top { display: flex; align-items: center; gap: 12px; padding-right: 30px; }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff; flex-shrink: 0; box-shadow: 3px 3px 0 #000; }
.card-icon svg { width: 22px; height: 22px; }
.card-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -0.01em; }
.card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge { padding: 2px 8px; border-radius: 6px; background: #221935; color: #e9d5ff; font-size: 11px; font-weight: 600; letter-spacing: 0.04em; }
.card-now { font-size: 13px; line-height: 1.35; color: #cbd5e1; flex: 1; }
.card-now .t { display: block; color: var(--text); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-now .a { display: block; color: var(--pink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-now .sk { display: block; height: 10px; border-radius: 4px; background: linear-gradient(90deg, rgba(255,255,255,0.05), rgba(255,255,255,0.12), rgba(255,255,255,0.05)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; margin-top: 6px; }
.card-now .sk + .sk { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-fav { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease; }
.card-fav:hover { color: var(--pink); background: rgba(236,72,153,0.12); transform: scale(1.1); }
.card-fav.is-fav { color: var(--pink); }
.card-fav.is-fav svg { fill: var(--pink); }
.card-fav svg { width: 16px; height: 16px; }
.card-spectrum { width: 100%; height: 28px; display: block; opacity: 0; transition: opacity 0.4s ease; }
.card.active .card-spectrum { opacity: 1; }
.empty { color: var(--muted); padding: 30px 0; text-align: center; }

/* ---------- 9. Panneau latÃ©ral ---------- */
.side { padding: 18px; position: sticky; top: 108px; max-height: calc(100vh - 130px); display: flex; flex-direction: column; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,0.3); }
.tab { padding: 8px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 6px; transition: background-color 0.2s ease, color 0.2s ease; }
.tab svg { width: 15px; height: 15px; }
.tab.active { background: rgba(255,255,255,0.08); color: var(--text); }
.tab-panel { margin-top: 14px; overflow-y: auto; flex: 1; min-height: 120px; scrollbar-width: thin; }
.history li, .favs li {
  display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px;
  transition: background-color 0.2s ease; animation: card-in 0.35s ease both;
}
.history li:hover, .favs li:hover { background: rgba(255,255,255,0.04); }
.h-dot { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--c1), var(--c2)); display: grid; place-items: center; flex-shrink: 0; color: #fff; }
.h-dot svg { width: 16px; height: 16px; }
.h-body { min-width: 0; flex: 1; }
.h-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.h-time { font-family: var(--font-mono); font-size: 11px; color: var(--cyan-soft); flex-shrink: 0; }
.favs li { cursor: pointer; }
.side-empty { color: var(--muted); font-size: 14px; padding: 20px 6px; text-align: center; }
.link-btn { margin-top: 10px; font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.link-btn:hover { color: var(--danger); }
.link-btn svg { width: 14px; height: 14px; }

/* ---------- 10. Pied de page & notifications ---------- */
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 8px 16px 28px; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 50; display: flex; flex-direction: column; gap: 8px; }
.toast {
  padding: 12px 16px; border-radius: 12px; font-size: 14px; max-width: 320px;
  background: rgba(18,22,34,0.92); backdrop-filter: blur(14px); border: 1px solid rgba(6,182,212,0.35);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5); animation: toast-in 0.35s cubic-bezier(.2,.8,.2,1) both;
}
.toast.out { animation: toast-out 0.3s ease forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1280px) {
  .layout { grid-template-columns: minmax(320px, 400px) 1fr; }
  .side { grid-column: 1 / -1; position: static; max-height: 420px; }
}
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .player, .side { position: static; }
  .topbar { position: static; padding: 12px 16px; }
  .clock { align-items: flex-start; text-align: left; }
  .deck { width: min(78vw, 300px); }
  .search input { width: 120px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

/* AccessibilitÃ© : rÃ©duction des animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
}