/* =========================================================
   DHECTAR — interface 2026
   Feuille de style unique, sans dépendance externe.
   ========================================================= */

:root {
  --bg: #08070d;
  --bg-2: #0e0c17;
  --surface: #14111f;
  --surface-2: #1c1830;
  --surface-3: #262140;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f3fb;
  --muted: #b3aec8;
  --dim: #7d7896;
  --accent: #b14cff;
  --accent-2: #ff3d9a;
  --accent-soft: rgba(177, 76, 255, 0.16);
  --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #ff3d9a 100%);
  --live: #ff3b5c;
  --ok: #34d399;
  --radius: 14px;
  --radius-lg: 20px;
  --sidebar-w: 280px;
  --player-h: 92px;
  --topbar-h: 56px;
  --tabbar-h: 62px;
  --mini-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.i { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg.i.fill { fill: currentColor; stroke: none; }

/* ---------- Structure générale ---------- */
.app {
  height: 100dvh;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--player-h);
  grid-template-areas: "side main" "player player";
  gap: 8px;
  padding: 8px 8px 0;
}
.main {
  grid-area: main;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(1200px 420px at 10% -10%, rgba(124, 58, 237, 0.28), transparent 60%),
              radial-gradient(900px 380px at 100% 0%, rgba(255, 61, 154, 0.12), transparent 60%),
              var(--bg-2);
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}
.view { padding: 28px 32px 48px; max-width: 1600px; margin: 0 auto; min-height: 100%; }
.view.enter { animation: viewIn .28s ease both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Barre latérale ---------- */
.sidebar {
  grid-area: side;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.side-card { background: var(--surface); border-radius: var(--radius-lg); padding: 14px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(177, 76, 255, .35), 0 6px 20px rgba(177, 76, 255, .35); }
.brand b { font-size: 20px; letter-spacing: .08em; font-weight: 800; }
.brand small { display: block; color: var(--dim); font-size: 11px; letter-spacing: .04em; margin-top: -2px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 12px; border-radius: 12px;
  color: var(--muted); font-weight: 600;
  transition: background .15s, color .15s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.active { color: var(--text); background: var(--accent-soft); }
.nav a.active svg { color: var(--accent); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 600; }

.search {
  position: relative; display: flex; align-items: center;
}
.search svg { position: absolute; left: 12px; color: var(--dim); pointer-events: none; }
.search input {
  width: 100%; height: 42px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid transparent;
  padding: 0 38px 0 40px; color: var(--text); outline: none;
  transition: border-color .15s, background .15s;
}
.search input::placeholder { color: var(--dim); }
.search input:focus { border-color: var(--accent); background: var(--surface-3); }
.search .clear { position: absolute; right: 8px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.search .clear:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.kbd { font-size: 11px; color: var(--dim); margin-top: 8px; padding-left: 4px; }
.kbd kbd { font-family: inherit; border: 1px solid var(--line-2); border-radius: 5px; padding: 0 5px; }

.lang { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lang span { font-size: 13px; color: var(--muted); font-weight: 600; }
.seg { display: inline-flex; background: var(--surface-2); border-radius: 999px; padding: 3px; }
.seg button { padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); }
.seg button.on { background: var(--grad); color: #fff; }

.socials { display: flex; gap: 10px; justify-content: center; }
.socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: transform .15s, background .15s; }
.socials a:hover { transform: translateY(-2px); background: var(--surface-3); }
.socials img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; }

.side-foot { margin-top: auto; text-align: center; display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.side-foot .legal { display: flex; flex-direction: column; gap: 4px; }
.side-foot .legal a { font-size: 11px; color: var(--dim); letter-spacing: .04em; font-weight: 600; }
.side-foot .legal a:hover { color: var(--text); }
.gplay img { width: 140px; margin: 0 auto; transition: transform .15s; }
.gplay:hover img { transform: scale(1.04); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px; background: var(--grad); color: #fff;
  font-weight: 700; font-size: 13px; box-shadow: 0 8px 24px -8px rgba(192, 38, 211, .7);
  transition: transform .15s, filter .15s;
}
.cta:hover { transform: translateY(-1px); filter: brightness(1.08); }
.side-foot small { color: var(--dim); font-size: 11px; }
.side-foot .join { font-size: 12px; color: var(--muted); }

/* ---------- Barres mobiles ---------- */
.topbar, .tabbar, .scrim, .mini { display: none; }

/* ---------- Titres & sections ---------- */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 6px; }
.h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; font-weight: 800; margin: 0; letter-spacing: -.02em; }
.lead { color: var(--muted); margin: 8px 0 0; }
.section { margin-bottom: 34px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { font-size: 20px; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.sec-head h2 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sec-tools { display: flex; align-items: center; gap: 6px; }
.link-all { font-size: 13px; color: var(--muted); font-weight: 700; padding: 6px 10px; border-radius: 999px; }
.link-all:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; color: var(--muted); transition: background .15s, color .15s, opacity .15s; }
.arrow:hover { background: var(--surface-3); color: var(--text); }
.arrow:disabled { opacity: .35; cursor: default; }
.arrow svg { width: 16px; height: 16px; }

/* ---------- Rangées défilantes ---------- */
.row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 172px; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding: 0 4px; padding: 4px 4px 10px; margin: -4px -4px 0;
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 20px 18px; }

/* ---------- Cartes ---------- */
.card { position: relative; display: flex; flex-direction: column; gap: 10px; border-radius: var(--radius); padding: 10px; margin: -10px; transition: background .2s; text-align: left; min-width: 0; cursor: pointer; }
.card:hover { background: rgba(255, 255, 255, .045); }
.art { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow); }
.art.dark { background: var(--surface-2); }
.art img { width: 100%; height: 100%; object-fit: contain; transition: transform .35s ease; }
.art.cover img { object-fit: cover; }
.card:hover .art img { transform: scale(1.04); }
.card .name { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .sub { color: var(--dim); font-size: 12px; margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fab {
  position: absolute; right: 10px; bottom: 10px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .7);
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.fab svg { width: 20px; height: 20px; }
.card:hover .fab, .card.playing .fab, .card:focus-visible .fab { opacity: 1; transform: none; }
.card.playing .art { outline: 2px solid var(--accent); outline-offset: 2px; }
.live-dot { position: absolute; top: 8px; left: 8px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 999px; background: rgba(8, 7, 13, .78); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(6px); }
.live-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 92, .7); } 70% { box-shadow: 0 0 0 7px rgba(255, 59, 92, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0); } }

/* Égaliseur animé */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.eq i { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq i:nth-child(1) { height: 60%; animation-delay: -.2s; }
.eq i:nth-child(2) { height: 100%; animation-delay: -.5s; }
.eq i:nth-child(3) { height: 40%; animation-delay: -.8s; }
.eq.paused i { animation-play-state: paused; }
@keyframes eq { 0%, 100% { transform: scaleY(.35); } 50% { transform: scaleY(1); } }
.eq i { transform-origin: bottom; }

/* ---------- Accueil ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  padding: 28px; margin-bottom: 34px;
  background: linear-gradient(120deg, rgba(124, 58, 237, .55), rgba(192, 38, 211, .35) 50%, rgba(255, 61, 154, .25)), var(--surface);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center;
}
.hero::after { content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .18), transparent 65%); pointer-events: none; }
.hero .art { width: 132px; }
.hero .h1 { font-size: clamp(24px, 3vw, 34px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; font-weight: 700; font-size: 14px; background: rgba(255, 255, 255, .1);
  transition: background .15s, transform .15s;
}
.btn:hover { background: rgba(255, 255, 255, .16); }
.btn.primary { background: #fff; color: #0b0912; }
.btn.primary:hover { transform: scale(1.03); background: #fff; }
.btn.grad { background: var(--grad); color: #fff; }
.btn.icon { width: 42px; padding: 0; justify-content: center; }
.btn.on { color: var(--accent-2); }
.btn svg { width: 18px; height: 18px; }

/* ---------- Puces / filtres ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 700; transition: background .15s, color .15s; }
.chip:hover { color: var(--text); }
.chip.on { background: #fff; color: #0b0912; }

/* ---------- Podcast : en-tête & épisodes ---------- */
.pod-head { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: end; margin-bottom: 30px; }
.pod-head .art { width: 220px; }
.pod-head .meta { color: var(--muted); font-size: 14px; margin-top: 10px; }
.ep-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.ep-tools .search { max-width: 320px; flex: 1; }
.eps { display: flex; flex-direction: column; }
.ep {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 12px 10px; border-radius: 12px; border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.ep:hover { background: rgba(255, 255, 255, .04); }
.ep.playing { background: var(--accent-soft); }
.ep .pp { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); transition: background .15s, transform .15s; }
.ep:hover .pp, .ep.playing .pp { background: var(--grad); color: #fff; }
.ep .pp:hover { transform: scale(1.06); }
.ep .pp svg { width: 16px; height: 16px; }
.ep .t { font-weight: 700; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep.playing .t { color: #e9c8ff; }
.ep .d { color: var(--dim); font-size: 12px; margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ep .bar { height: 3px; border-radius: 3px; background: var(--line-2); width: 80px; overflow: hidden; }
.ep .bar i { display: block; height: 100%; background: var(--accent); }
.ep .acts { display: flex; gap: 4px; }
.ep .acts a, .ep .acts button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.ep .acts a:hover, .ep .acts button:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.ep .acts svg { width: 18px; height: 18px; }
.more { display: flex; justify-content: center; margin-top: 22px; }

/* ---------- États ---------- */
.state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 70px 20px; color: var(--muted); }
.state svg { width: 40px; height: 40px; color: var(--dim); }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--surface-3); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--radius); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card { display: flex; flex-direction: column; gap: 10px; }
.skel-card .a { aspect-ratio: 1; }
.skel-card .b { height: 12px; width: 70%; border-radius: 6px; }

/* ---------- Grille des programmes ---------- */
.sched { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 20px; }
.sched button { border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); transition: transform .2s; text-align: left; }
.sched button:hover { transform: translateY(-3px); }
.sched img { width: 100%; height: auto; }
.sched span { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 700; font-size: 14px; color: var(--muted); }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(4, 3, 8, .94); display: grid; place-items: center; padding: 20px; animation: viewIn .2s ease; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 40px); border-radius: 12px; }
.lightbox .x { position: absolute; top: calc(14px + var(--safe-t)); right: 14px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }

/* ---------- Pages légales ---------- */
.legal-page { max-width: 860px; margin: 0 auto; }
.legal-page .h1 { text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }
.legal-page .updated { text-align: center; color: var(--dim); font-size: 13px; margin: 0 0 28px; }
.legal-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 26px; margin-bottom: 16px; }
.legal-block h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin: 0 0 12px; color: #e3c6ff; }
.legal-block h2 svg { color: var(--accent); }
.legal-block p { color: var(--muted); margin: 0 0 10px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block strong { color: var(--text); }
.legal-block a { color: #d7a8ff; font-weight: 600; }
.legal-block a:hover { text-decoration: underline; }
.address { background: rgba(177, 76, 255, .08); border: 1px solid rgba(177, 76, 255, .22); border-radius: 12px; padding: 16px 18px; margin-top: 12px; color: var(--text); }
.address p { color: var(--text); margin: 0; }
.address dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 12px 0 0; font-size: 14px; }
.address dt { color: var(--muted); }
.address dd { margin: 0; }
.legal-note { text-align: center; color: var(--dim); font-style: italic; font-size: 13px; margin-top: 22px; }

/* =========================================================
   LECTEUR — barre (ordinateur)
   ========================================================= */
.player {
  grid-area: player;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center; gap: 20px;
  padding: 0 16px;
  background: var(--bg);
}
.np { display: flex; align-items: center; gap: 14px; min-width: 0; }
.np .art { width: 60px; flex-shrink: 0; border-radius: 10px; cursor: pointer; box-shadow: none; }
.np .art .open { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .15s; color: #fff; }
.np .art:hover .open { opacity: 1; }
.np-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.np-station { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-title { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; position: relative; display: flex; align-items: center; gap: 6px; }
.np-title .eq { color: var(--accent); height: 11px; flex-shrink: 0; }
.np-title .eq i { width: 2px; }
.marquee { overflow: hidden; white-space: nowrap; min-width: 0; flex: 1; mask-image: linear-gradient(90deg, #000 85%, transparent); -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); }
.marquee span { display: inline-block; padding-right: 40px; }
.marquee.run span { animation: marquee var(--mq-dur, 12s) linear infinite; }
@keyframes marquee { 0%, 12% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.icon-btn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); transition: color .15s, background .15s, transform .15s; flex-shrink: 0; position: relative; }
.icon-btn:hover { color: var(--text); background: rgba(255, 255, 255, .07); }
.icon-btn:disabled { opacity: .3; cursor: default; background: none; }
.icon-btn.on { color: var(--accent-2); }
.icon-btn.on svg.heart { fill: currentColor; }
.icon-btn .badge { position: absolute; top: 2px; right: 0; font-size: 9px; font-weight: 800; background: var(--accent); color: #fff; border-radius: 999px; padding: 0 4px; line-height: 14px; }

.ctrl { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.ctrl-btns { display: flex; align-items: center; gap: 10px; }
.play {
  width: 46px; height: 46px; border-radius: 50%; background: #fff; color: #0b0912;
  display: grid; place-items: center; transition: transform .15s; position: relative; flex-shrink: 0;
}
.play:hover { transform: scale(1.06); }
.play svg { width: 20px; height: 20px; }
.play.loading::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--accent); border-right-color: var(--accent-2); animation: spin .9s linear infinite; }
.skip { font-size: 10px; font-weight: 800; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -38%); pointer-events: none; }
.prog { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 620px; }
.prog .tm { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; min-width: 42px; text-align: center; }
.livebar { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 620px; color: var(--dim); font-size: 12px; font-weight: 700; }
.livebar .pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 59, 92, .14); color: #ff8098; letter-spacing: .1em; font-size: 10px; font-weight: 800; }
.livebar .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); animation: pulse 1.6s infinite; }
.livebar .pill.off { background: rgba(255, 255, 255, .06); color: var(--dim); }
.livebar .pill.off::before { background: var(--dim); animation: none; }
.livebar .line { flex: 1; height: 4px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 59, 92, .55), rgba(177, 76, 255, .55)); opacity: .5; }

/* Curseurs */
input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent; width: 100%; height: 18px; cursor: pointer; flex: 1; margin: 0;
  --p: 0%;
}
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #fff var(--p), rgba(255, 255, 255, .18) var(--p)); }
input[type="range"]:hover::-webkit-slider-runnable-track { background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .18) var(--p)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; border-radius: 50%; background: #fff; margin-top: -4px; opacity: 0; transition: opacity .15s; box-shadow: 0 2px 6px rgba(0, 0, 0, .5); }
input[type="range"]:hover::-webkit-slider-thumb, input[type="range"]:focus-visible::-webkit-slider-thumb { opacity: 1; }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: #fff; }
input[type="range"]:hover::-moz-range-progress { background: var(--accent); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
input[type="range"]:disabled { cursor: default; opacity: .4; }

.side-ctrl { display: flex; align-items: center; justify-content: flex-end; gap: 4px; min-width: 0; }
.vol { display: flex; align-items: center; gap: 6px; width: 150px; }

/* Menu minuterie */
.menu-wrap { position: relative; }
.menu { position: absolute; bottom: calc(100% + 10px); right: -8px; min-width: 190px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 6px; box-shadow: var(--shadow); z-index: 60; animation: viewIn .15s ease; }
.menu h4 { margin: 6px 10px 8px; font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; }
.menu button { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 9px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted); }
.menu button:hover { background: rgba(255, 255, 255, .07); color: var(--text); }
.menu button.on { color: var(--text); }
.menu button.on::after { content: "✓"; color: var(--accent); }

.player.empty .ctrl, .player.empty .side-ctrl { opacity: .45; pointer-events: none; }

/* =========================================================
   LECTEUR — plein écran (style Radioline)
   ========================================================= */
.full {
  position: fixed; inset: 0; z-index: 120; overflow: hidden;
  display: flex; flex-direction: column;
  background: #0b0912;
  transform: translateY(100%); transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s .38s; visibility: hidden;
}
.full.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.full-bg { position: absolute; inset: -60px; background-size: cover; background-position: center; filter: blur(60px) saturate(1.5) brightness(.55); transform: scale(1.15); opacity: .9; }
.full-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 9, 18, .35), rgba(11, 9, 18, .92) 75%); }
.full-in { position: relative; z-index: 1; flex: 1; display: grid; grid-template-rows: auto 1fr auto; padding: calc(12px + var(--safe-t)) 24px calc(20px + var(--safe-b)); max-width: 1180px; width: 100%; margin: 0 auto; min-height: 0; }
.full-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.full-top .ctx { text-align: center; min-width: 0; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-top .ctx b { display: block; color: var(--text); letter-spacing: 0; text-transform: none; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.full-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; min-height: 0; padding: 20px 0; }
.full-art { width: min(100%, 460px, 58dvh); aspect-ratio: 1; justify-self: end; border-radius: 22px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .8); transition: transform .4s ease; }
.full-art img { width: 100%; height: 100%; object-fit: contain; }
.full.paused .full-art { transform: scale(.94); }
.full-info { min-width: 0; display: flex; flex-direction: column; gap: 22px; max-width: 480px; }
.full-tag { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.full-name { font-size: clamp(26px, 3.6vw, 42px); font-weight: 800; line-height: 1.1; margin: 0; letter-spacing: -.02em; overflow-wrap: anywhere; }
.full-song { display: flex; gap: 12px; align-items: flex-start; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; backdrop-filter: blur(10px); }
.full-song .eq { color: var(--accent-2); margin-top: 3px; height: 16px; }
.full-song small { display: block; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.full-song p { margin: 2px 0 0; font-size: 17px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.full-song p span { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.full-ctrl { display: flex; align-items: center; justify-content: center; gap: 18px; }
.full-ctrl .icon-btn { width: 48px; height: 48px; }
.full-ctrl .icon-btn svg { width: 24px; height: 24px; }
.full-ctrl .play { width: 74px; height: 74px; }
.full-ctrl .play svg { width: 30px; height: 30px; }
.full .prog { max-width: none; }
.full .livebar { max-width: none; }
.full-actions { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.full-actions .group { display: flex; align-items: center; gap: 4px; }
.full-actions .icon-btn { width: 44px; height: 44px; }
.full-actions .menu { right: auto; left: 50%; transform: translateX(-50%); }
.speed { font-size: 13px; font-weight: 800; width: auto !important; padding: 0 12px; border-radius: 999px !important; }
.full .vol { width: 220px; }
.full-queue { display: none; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--player-h) + 18px); transform: translate(-50%, 20px); background: #fff; color: #0b0912; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 300; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   TABLETTE (< 1100px) & SMARTPHONE
   ========================================================= */
@media (max-width: 1099px) {
  .app { display: block; padding: 0; height: 100dvh; }
  .main {
    position: fixed; inset: calc(var(--topbar-h) + var(--safe-t)) 0 0 0; border-radius: 0;
    padding-bottom: calc(var(--tabbar-h) + var(--safe-b));
  }
  .has-track .main { padding-bottom: calc(var(--tabbar-h) + var(--mini-h) + 16px + var(--safe-b)); }
  .view { padding: 20px 24px 32px; }

  .topbar {
    display: flex; align-items: center; gap: 8px; position: fixed; inset: 0 0 auto 0; z-index: 40;
    height: calc(var(--topbar-h) + var(--safe-t)); padding: var(--safe-t) 10px 0;
    background: rgba(8, 7, 13, .86); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
  }
  .topbar .brand { padding: 0; gap: 10px; margin-right: auto; }
  .topbar .brand img { width: 32px; height: 32px; }
  .topbar .brand b { font-size: 17px; }
  .topbar .icon-btn { width: 42px; height: 42px; color: var(--text); }
  .topbar .search { flex: 1; display: none; }
  .topbar.searching .brand, .topbar.searching .t-search { display: none; }
  .topbar.searching .search { display: flex; }

  .sidebar {
    position: fixed; z-index: 100; top: 0; bottom: 0; left: 0; width: min(86vw, 330px);
    padding: calc(14px + var(--safe-t)) 12px calc(14px + var(--safe-b));
    background: var(--bg); transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
    box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
  }
  .menu-open .sidebar { transform: none; }
  .scrim { display: block; position: fixed; inset: 0; z-index: 90; background: rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .menu-open .scrim { opacity: 1; pointer-events: auto; }
  .sidebar .s-search, .sidebar .kbd { display: none; }
  .sidebar .side-close { display: grid !important; position: absolute; top: calc(16px + var(--safe-t)); right: 14px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 45;
    height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    background: rgba(8, 7, 13, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: var(--dim); }
  .tabbar a.active { color: var(--text); }
  .tabbar a.active svg { color: var(--accent); }

  /* Le lecteur devient un mini‑lecteur flottant */
  .player { display: none; }
  .mini {
    display: flex; align-items: center; gap: 12px; position: fixed; z-index: 44;
    left: 8px; right: 8px; bottom: calc(var(--tabbar-h) + var(--safe-b) + 8px); height: var(--mini-h);
    padding: 8px 8px 8px 8px; border-radius: 16px; overflow: hidden;
    background: var(--surface-2); box-shadow: 0 12px 30px rgba(0, 0, 0, .55);
    border: 1px solid var(--line);
  }
  .mini[hidden] { display: none; }
  .mini .bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(30px) saturate(1.4) brightness(.45); transform: scale(1.4); opacity: .8; }
  .mini > *:not(.bg):not(.mprog) { position: relative; }
  .mini .art { width: 50px; border-radius: 10px; flex-shrink: 0; box-shadow: none; }
  .mini .np-text { flex: 1; cursor: pointer; }
  .mini .play { width: 44px; height: 44px; }
  .mini .icon-btn { width: 40px; height: 40px; color: var(--text); }
  .mprog { position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; background: rgba(255, 255, 255, .15); border-radius: 2px; overflow: hidden; }
  .mprog i { display: block; height: 100%; width: 0; background: #fff; }

  .toast { bottom: calc(var(--tabbar-h) + var(--mini-h) + 28px + var(--safe-b)); }

  .full-body { grid-template-columns: 1fr; gap: 28px; align-content: center; justify-items: center; padding: 10px 0; }
  .full-art { justify-self: center; width: min(78vw, 46dvh, 460px); }
  .full-info { width: 100%; max-width: 560px; gap: 18px; }
  .full .vol { width: 100%; }
}

/* Tablette en paysage : grille confortable */
@media (min-width: 700px) and (max-width: 1099px) {
  .row { grid-auto-columns: 160px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

@media (max-width: 699px) {
  body { font-size: 14px; }
  .view { padding: 16px 16px 28px; }
  .page-head { margin-bottom: 18px; }
  .hero { grid-template-columns: 1fr; padding: 20px; gap: 14px; margin-bottom: 26px; }
  .hero .art { width: 96px; }
  .row { grid-auto-columns: 128px; gap: 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .card { padding: 6px; margin: -6px; gap: 8px; }
  .card .name { font-size: 13px; }
  .fab { opacity: 1; transform: none; width: 38px; height: 38px; right: 8px; bottom: 8px; }
  .fab svg { width: 16px; height: 16px; }
  .card:not(.playing) .fab { background: rgba(8, 7, 13, .72); backdrop-filter: blur(6px); }
  .sec-head h2 { font-size: 18px; }
  .sec-tools .arrow { display: none; }
  .pod-head { grid-template-columns: 1fr; gap: 16px; justify-items: center; text-align: center; }
  .pod-head .art { width: min(62vw, 240px); }
  .pod-head .hero-actions { justify-content: center; }
  .ep { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; padding: 10px 4px; }
  .ep .acts button.ep-fav { display: none; }
  .ep-tools .search { max-width: none; }
  .legal-block { padding: 18px; }
  .legal-block h2 { font-size: 16px; }
  .address dl { grid-template-columns: 1fr; gap: 0; }
  .address dd { margin-bottom: 6px; }
  .full-in { padding-left: 20px; padding-right: 20px; }
  .full-ctrl { gap: 10px; }
  .full-ctrl .play { width: 68px; height: 68px; }
  .full-song p { font-size: 15px; }
  .full .vol { display: none; }
  .sched { grid-template-columns: 1fr; }
}

@media (min-width: 380px) and (max-width: 699px) {
  .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}

/* Petits écrans en hauteur (paysage mobile) */
@media (max-height: 520px) and (max-width: 1099px) {
  .full-body { grid-template-columns: auto 1fr; gap: 24px; }
  .full-art { width: min(40dvh, 220px); }
}

/* Écrans tactiles : pas de curseur de volume (iOS l'ignore) */
@media (hover: none) and (pointer: coarse) {
  .vol { display: none !important; }
  .card:hover { background: none; }
  .card:hover .art img { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.side-close { display: none !important; }

/* ---------- États du lecteur (radio / épisode) ---------- */
body.pl-radio .ep-only { display: none !important; }
body.pl-ep .radio-only { display: none !important; }
.card .live-dot { display: none; }
.card.playing .live-dot { display: inline-flex; }
.btn.on svg.heart, .icon-btn.on svg.heart { fill: currentColor; }
.chip { display: inline-flex; align-items: center; }
.ep .ep-fav { width: 36px; height: 36px; }
.ep-fav.on { color: var(--accent-2); }

/* =========================================================
   FORMULAIRE — Demande d'assistance
   ========================================================= */
.form-page { max-width: 760px; margin: 0 auto; }
.aform { display: flex; flex-direction: column; gap: 14px; }
.req { color: #ff6b8b; font-weight: 800; }
.req-note { margin: 0 0 4px; color: var(--muted); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px 22px; margin: 0; min-width: 0; transition: border-color .15s; }
.fcard:focus-within { border-color: rgba(177, 76, 255, .55); }
.fcard.invalid { border-color: rgba(255, 59, 92, .7); }
fieldset.fcard { display: block; }
.flabel { display: block; font-weight: 700; font-size: 15px; margin-bottom: 12px; padding: 0; line-height: 1.4; }
legend.flabel { float: left; width: 100%; }
legend.flabel + * { clear: both; }
.opt, .fhelp { color: var(--dim); font-weight: 500; font-size: 13px; }
.fhelp { margin: -6px 0 12px; }
.fhelp.center { text-align: center; margin: 4px 0 0; }
.finput { width: 100%; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 16px; outline: none; transition: border-color .15s, background .15s; }
.finput::placeholder { color: var(--dim); }
.finput:focus { border-color: var(--accent); background: var(--surface-2); }
textarea.finput { font: inherit; font-size: 16px; resize: vertical; min-height: 96px; line-height: 1.5; }
.ferr { margin: 8px 0 0; color: #ff8098; font-size: 13px; font-weight: 600; min-height: 0; }
.ferr:empty { display: none; }
.choices { display: flex; flex-direction: column; gap: 8px; }
.choice { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); cursor: pointer; transition: border-color .15s, background .15s; flex-wrap: wrap; }
.choice:hover { border-color: var(--line-2); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input[type=radio] { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--dim); margin: 0; flex-shrink: 0; display: grid; place-items: center; cursor: pointer; }
.choice input[type=radio]:checked { border-color: var(--accent); }
.choice input[type=radio]:checked::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); }
.choice.other .finput { flex: 1 1 200px; padding: 9px 12px; font-size: 15px; }
.drop { display: block; position: relative; border: 2px dashed var(--line-2); border-radius: 14px; padding: 18px; cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop:focus-within { border-color: var(--accent); }
.drop-empty { display: flex; align-items: center; gap: 14px; color: var(--muted); }
.drop-empty svg.up { width: 28px; height: 28px; color: var(--accent); transform: rotate(180deg); }
.drop-empty strong { color: var(--text); }
.drop-file { display: flex; align-items: center; gap: 14px; min-width: 0; }
.drop-file img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; background: #fff; flex-shrink: 0; }
.drop-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.fchecks { display: flex; flex-direction: column; gap: 14px; }
.switch, .check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.45; }
.switch input, .check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { width: 40px; height: 22px; border-radius: 999px; background: var(--surface-3); position: relative; flex-shrink: 0; transition: background .15s; }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch input:checked + .sw { background: var(--grad); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw, .check input:focus-visible + span::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch span:last-child { padding-top: 1px; }
.check > span { position: relative; padding-left: 32px; color: var(--muted); }
.check > span::before { content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--dim); transition: background .15s, border-color .15s; }
.check input:checked + span::before { background: var(--accent); border-color: var(--accent); }
.check input:checked + span::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.check a { color: #d7a8ff; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.form-alert { margin: 0; padding: 12px 16px; border-radius: 12px; background: rgba(255, 59, 92, .12); border: 1px solid rgba(255, 59, 92, .4); color: #ffb3c2; font-weight: 600; font-size: 14px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.btn.big { height: 50px; padding: 0 28px; font-size: 15px; }
.btn.ghost { background: none; color: #d7a8ff; }
.btn.ghost:hover { background: rgba(255, 255, 255, .06); }
.btn.busy { opacity: .7; pointer-events: none; }
.btn.busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .8s linear infinite; }
.form-done { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.form-done h2 { margin: 6px 0 0; font-size: 24px; }
.form-done p { color: var(--muted); max-width: 460px; margin: 0 0 8px; }
.done-ico { width: 64px; height: 64px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; color: #fff; box-shadow: 0 12px 30px -8px rgba(192, 38, 211, .7); }
.done-ico svg { width: 28px; height: 28px; }
@media (max-width: 699px) {
  .fcard { padding: 16px; }
  .form-actions { flex-direction: column-reverse; align-items: stretch; }
  .form-actions .btn { justify-content: center; }
}
.player.empty .eq { display: none; }
.form-warn { color: #ffd38a; background: rgba(255, 196, 0, .1); border: 1px solid rgba(255, 196, 0, .35); border-radius: 12px; padding: 10px 14px; max-width: 460px; font-size: 14px; }
