/* LISTEN — version « Minimal », dans l'esthétique d'anthonybelguise.com.
   Ordinateur : de longs câbles traversent l'écran derrière le lecteur.
   Téléphone : les câbles arrivent des bords et se branchent sur le bouton. */
:root {
  --page: #0b0d11;
  --tx: #e8ecf1;
  --mut: #8d98a6;
  --line: rgba(255, 255, 255, 0.1);
  --cyan: #55d8ea;
  --yellow: #ffe27a;
  --pink: #f58fb5;
  --blue: #8fb4ff;
  --ok: #86e3a3;
  --red: #ff6b6b;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --disp: "Syncopate", "Arial Black", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }

body {
  min-height: 100svh;
  display: grid;
  place-items: center;
  color: var(--tx);
  font: 400 11px/1.5 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  -webkit-font-smoothing: antialiased;
  background-color: var(--page);
  /* poussière d'étoiles, fixe */
  background-image:
    radial-gradient(1px 1px at 13px 21px, #8d98a6 99%, transparent),
    radial-gradient(1px 1px at 61px 83px, #5d6673 99%, transparent),
    radial-gradient(1.4px 1.4px at 97px 37px, #c9d1db 99%, transparent);
  background-size: 173px 173px, 131px 131px, 211px 211px;
}

/* ---------- câbles ---------- */
.cables path, .bottom-cable path { fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-opacity: 0.85; }
.jacks circle { fill: var(--page); stroke-width: 1.5; }

.bg-cables, .vignette { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vignette { background: radial-gradient(ellipse 330px 500px at 50% 50%, rgba(11, 13, 17, 0.96) 58%, rgba(11, 13, 17, 0) 100%); }

/* ---------- colonne ---------- */
.col {
  position: relative;
  width: 100%;
  max-width: 390px;
  min-height: 100svh;
  padding: 24px 24px 22px;
  display: flex;
  flex-direction: column;
}
.top { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--mut); letter-spacing: 0.2em; }
.status { margin: 0; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mut); flex: none; }
.status[data-kind="live"] { color: var(--ok); }
.status[data-kind="live"] .dot { background: var(--ok); }
.status[data-kind="paused"], .status[data-kind="wait"] { color: var(--yellow); }
.status[data-kind="paused"] .dot, .status[data-kind="wait"] .dot { background: var(--yellow); }
.status[data-kind="off"] { color: var(--red); }
.status[data-kind="off"] .dot { background: var(--red); }

.title {
  margin: 34px 0 0;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(40px, 13vw, 50px);
  line-height: 1;
  letter-spacing: 0.06em;
  text-transform: none;
}
.sub { margin: 12px 0 0; line-height: 1.7; color: var(--mut); }

/* ---------- le bouton et son câble ---------- */
.stage { position: relative; margin: 6px -24px 0; aspect-ratio: 390 / 250; }
.stage-cables { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.accent-cable { fill: none; stroke: var(--cyan); stroke-width: 1.6; stroke-linecap: round; }
.accent-jack { fill: var(--cyan); }
.play {
  position: absolute;
  left: 38.46%;
  top: 24%;
  width: 38.46%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.5px solid var(--cyan);
  background: transparent;
  color: var(--tx);
  font: inherit;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.play:hover { background: rgba(85, 216, 234, 0.06); }
.play[data-on="true"] { background: rgba(85, 216, 234, 0.1); }
.play .icon { width: 26px; height: 26px; fill: var(--cyan); }
.play[data-on="true"] .icon-play, .play[data-on="false"] .icon-stop { display: none; }
button:focus-visible, input:focus-visible, a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ribbon { display: block; width: 100%; height: 44px; }

/* ---------- fiche technique ---------- */
.sheet { margin-top: 22px; display: flex; flex-direction: column; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.slider-row { display: grid; grid-template-columns: 76px minmax(0, 1fr) 70px; }
.key { color: var(--mut); }
.val { text-align: right; color: var(--tx); }
.choices { display: flex; gap: 18px; }
.choices button {
  background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 0;
  color: var(--mut); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.choices button[aria-pressed="true"] { color: var(--tx); border-bottom-color: var(--cyan); }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; margin: 0; background: transparent; --fill: 6%; --col: var(--yellow); }
.slider-volume { --col: var(--cyan); }
.slider::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--col) var(--fill), rgba(255, 255, 255, 0.12) var(--fill)); }
.slider::-moz-range-track { height: 2px; background: rgba(255, 255, 255, 0.12); }
.slider::-moz-range-progress { height: 2px; background: var(--col); }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -6px; border-radius: 50%; background: var(--tx); border: 0; }
.slider::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--tx); border: 0; }

/* ---------- messages ---------- */
.pw, .hint {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.pw label { color: var(--mut); }
.pw input {
  flex: 1; min-width: 120px; font: inherit; letter-spacing: 0.08em; text-transform: none;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--tx);
}
.pw button, .hint button {
  background: none; border: 0; border-bottom: 1px solid var(--cyan); padding: 6px 0;
  color: var(--tx); font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer;
}
.error { flex-basis: 100%; margin: 0; color: var(--red); }
.hint { color: var(--yellow); justify-content: space-between; }

/* ---------- bas de page ---------- */
.bottom-cable { display: block; width: calc(100% + 48px); height: 46px; margin: 18px -24px 0; }
.foot { margin-top: auto; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; color: var(--mut); }
.foot a { color: var(--mut); text-decoration: none; }
.foot a:hover { color: var(--tx); }

/* ---------- ordinateur / téléphone ---------- */
@media (min-width: 760px) {
  .phone-only { display: none; }
  .col { min-height: 844px; }
}
@media (max-width: 759px) {
  .bg-cables, .vignette { display: none; }
}
