/* Radio 80 & Blues : thème « Club de minuit » pour l'accueil, la régie et la connexion.
   Aucune ressource externe, aucune police distante, aucun style en ligne requis. */
:root {
  --velvet: #170f3a; --ink: #0c0822; --line: rgba(185, 176, 220, .24);
  --pink: #ff3d8b; --gold: #ffc847; --blue: #8fb3ff; --cream: #fff4e6; --muted: #b9b0dc; --live: #e0002b;
  --gutter: max(clamp(1rem, 5vw, 4rem), calc((100% - 1240px) / 2));
  --display: "Avenir Next Condensed", "Bahnschrift Condensed", Bahnschrift, "Roboto Condensed", "Arial Narrow", sans-serif-condensed, "Helvetica Neue", Arial, sans-serif;
  --serif: Didot, "Bodoni 72", "Bodoni MT", Georgia, "Times New Roman", serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--cream); font: 400 1.0625rem/1.6 var(--body);
  background: radial-gradient(70rem 45rem at 0% -10%, rgba(255, 61, 139, .22), transparent 60%),
    radial-gradient(60rem 50rem at 110% 30%, rgba(80, 110, 255, .22), transparent 60%), var(--velvet);
}
::selection { background: var(--pink); color: var(--ink); }
a { color: var(--blue); text-underline-offset: .2em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
[id] { scroll-margin-top: 5rem; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -5rem; z-index: 50; padding: .7rem 1rem; border-radius: 10px; background: var(--gold); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 1rem; }

/* En-tête commun */
.site-header {
  position: sticky; top: 0; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: .6rem 1rem; padding: .7rem var(--gutter); border-bottom: 1px solid var(--line);
  background: rgba(23, 15, 58, .82); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.wordmark { display: inline-flex; align-items: center; gap: .65rem; color: var(--cream); text-decoration: none; font: 800 1.15rem/1 var(--display); font-stretch: condensed; letter-spacing: .06em; text-transform: uppercase; }
.wordmark em { font: italic 700 1.1em/1 var(--serif); letter-spacing: 0; text-transform: none; color: var(--gold); }
.wordmark-disc { flex: none; width: 2.1rem; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px var(--pink), 0 0 18px rgba(255, 61, 139, .55);
  background: radial-gradient(circle, var(--ink) 0 9%, var(--pink) 10% 27%, transparent 28%), repeating-radial-gradient(circle, #120e1d 0 2px, #2a2536 2px 3px); }
.site-nav, .footer-nav { display: flex; gap: .35rem; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .35rem 1rem; border-radius: 999px; color: var(--cream); font-weight: 700; text-decoration: none; }
.site-nav a:hover { background: rgba(255, 255, 255, .09); }
.site-nav .nav-cta { background: var(--pink); color: var(--ink); }
.site-nav .nav-cta:hover { background: #ff6aa6; }

/* Scène d'accueil : projecteurs, piste de danse et platine */
.stage {
  position: relative; isolation: isolate; overflow: hidden; display: grid; align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "intro deck" "panel deck";
  gap: 1.25rem clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 6vw, 4.5rem) var(--gutter) clamp(5rem, 10vw, 8rem);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: conic-gradient(from 150deg at 70% -12%, transparent 0 6deg, rgba(255, 200, 71, .13) 9deg 15deg, transparent 18deg 27deg,
    rgba(255, 61, 139, .14) 30deg 36deg, transparent 39deg 48deg, rgba(143, 179, 255, .12) 51deg 57deg, transparent 60deg);
}
.stage::after {
  content: ""; position: absolute; z-index: -1; left: -40%; right: -40%; bottom: -2rem; height: 48%; opacity: .35; transition: opacity .8s ease;
  background: linear-gradient(90deg, var(--velvet) 3px, transparent 3px) 0 0 / 80px 80px, linear-gradient(var(--velvet) 3px, transparent 3px) 0 0 / 80px 80px,
    conic-gradient(rgba(255, 61, 139, .8) 25%, rgba(12, 8, 34, .9) 0 50%, rgba(255, 200, 71, .7) 0 75%, rgba(143, 179, 255, .7) 0) 0 0 / 160px 160px;
  transform: perspective(380px) rotateX(60deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); mask-image: linear-gradient(to top, #000 10%, transparent 85%);
}
.stage-intro { grid-area: intro; align-self: end; }
.stage-panel { grid-area: panel; align-self: start; max-width: 36rem; }
.stage-deck { grid-area: deck; position: relative; display: grid; justify-items: center; gap: .6rem; }
.stage-deck::before { content: ""; position: absolute; z-index: -1; inset: -12% -8% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 61, 139, .35), rgba(255, 200, 71, .12) 60%, transparent); }

.hero-title { margin: 0 0 1.1rem; font-family: var(--display); font-stretch: condensed; font-weight: 900; line-height: .82; text-transform: uppercase; }
.hero-title > span { display: block; }
.t-radio { font-size: clamp(1.4rem, 3.2vw, 2.4rem); letter-spacing: .48em; color: var(--blue); text-shadow: 0 0 18px rgba(143, 179, 255, .6); }
.t-80 { font-size: clamp(7rem, 19vw, 14rem); letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 3px var(--pink); text-shadow: 0 0 20px rgba(255, 61, 139, .85), 0 0 80px rgba(255, 61, 139, .45); }
.t-blues { position: relative; margin: -.42em 0 0 .55em; font: italic 700 clamp(3.2rem, 8vw, 6rem)/1 var(--serif); text-transform: none; color: var(--gold); text-shadow: 0 6px 30px rgba(12, 8, 34, .9); }
.hero-sub { margin: 0; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; }
.hero-description { margin: 0 0 1.25rem; max-width: 34rem; font-size: 1.1rem; color: var(--muted); }

.deck { position: relative; width: min(100%, 520px); aspect-ratio: 1 / .92; border-radius: 28px;
  background: linear-gradient(150deg, #2e2552, #171030 55%, #0f0a26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 0 1px rgba(255, 255, 255, .05), 0 40px 80px rgba(5, 3, 15, .7); }
.platter { position: absolute; left: 6%; top: 6.5%; width: 76%; aspect-ratio: 1; border-radius: 50%;
  background: repeating-conic-gradient(#dfe2ea 0 1.4deg, #4d5160 1.4deg 4deg); box-shadow: 0 14px 34px rgba(5, 3, 15, .7); }
.platter::after { content: ""; position: absolute; inset: 3.5%; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 25deg, transparent 0 9%, rgba(255, 255, 255, .16) 13%, transparent 19% 51%, rgba(255, 255, 255, .11) 58%, transparent 65%); }
.record { position: absolute; inset: 3.5%; border-radius: 50%; animation: spin 1.8s linear infinite paused;
  background: radial-gradient(circle closest-side, transparent 0 51%, rgba(255, 255, 255, .08) 51.5% 52.5%, transparent 53% 67%, rgba(255, 255, 255, .07) 67.5% 68.5%,
    transparent 69% 83%, rgba(255, 255, 255, .06) 83.5% 84.5%, transparent 85%), repeating-radial-gradient(circle, #0b0a0f 0 1.5px, #1d1a25 1.5px 3px); }
.record-label { position: absolute; inset: 28%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ff86b6, var(--pink) 45%, #b8155a); box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 5px #0b0a0f; }
.label-text { display: block; width: 100%; height: 100%; }
.label-text text { fill: var(--ink); font: 800 13px var(--display); letter-spacing: 1.5px; }
@keyframes spin { to { rotate: 360deg; } }

.play-button {
  position: absolute; z-index: 3; left: 50%; top: 50%; translate: -50% -50%; width: clamp(76px, 23%, 120px); aspect-ratio: 1;
  display: grid; place-items: center; padding: 0; border: 3px solid var(--cream); border-radius: 50%; color: var(--cream); cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #34296a, var(--ink) 70%); transition: scale .2s ease, box-shadow .2s ease;
  box-shadow: 0 0 0 6px rgba(12, 8, 34, .6), 0 10px 30px rgba(5, 3, 15, .7), 0 0 34px rgba(255, 200, 71, .45);
}
.play-button:hover { scale: 1.06; box-shadow: 0 0 0 6px rgba(12, 8, 34, .6), 0 0 50px rgba(255, 200, 71, .75); }
.play-button:focus-visible { outline: 4px solid var(--gold); outline-offset: 6px; }
.play-button svg { width: 46%; height: 46%; fill: currentColor; }
.play-icon { margin-left: 8%; }
.pause-icon, #play-button[aria-pressed="true"] .play-icon { display: none; }
#play-button[aria-pressed="true"] .pause-icon { display: block; }
#play-button[aria-pressed="false"]::after { content: ""; position: absolute; inset: -12px; border: 2px solid var(--gold); border-radius: 50%; pointer-events: none; animation: halo 2.4s ease-out infinite; }
@keyframes halo { from { opacity: .9; scale: .92; } to { opacity: 0; scale: 1.35; } }

.tonearm { position: absolute; right: 2%; top: 4%; width: 24%; transform-origin: 70% 13.85%; rotate: -20deg; transition: rotate .9s cubic-bezier(.3, .7, .2, 1); filter: drop-shadow(0 8px 10px rgba(5, 3, 15, .6)); }
.arm-base { fill: #2c2452; stroke: #8f88b8; stroke-width: 2; }
.arm-bar { fill: none; stroke: #dcdfe7; stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.arm-head { fill: var(--gold); }
.arm-pivot { fill: #cfd2db; }
.deck-plate { position: absolute; left: 6%; bottom: 3.5%; max-width: 58%; margin: 0; overflow: hidden; color: var(--muted); font: 700 .85rem/1.2 var(--display); font-stretch: condensed; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.deck-controls { position: absolute; right: 5%; bottom: 4.5%; display: flex; align-items: center; gap: .45rem; }
.speed { padding: .3rem .45rem; border-radius: 6px; background: #261d4d; color: var(--muted); font: 700 .72rem/1 var(--display); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.power-led { width: .6rem; height: .6rem; border-radius: 50%; background: #4a4370; }
.play-hint { position: relative; margin: .4rem 0 0; color: var(--gold); font: 700 1.15rem/1.3 var(--display); font-stretch: condensed; text-align: center; }
.hint-live { display: none; }
.record-note { position: relative; margin: 0; color: var(--muted); font-size: .9rem; text-align: center; }

/* Afficheur « hi-fi » du titre en cours */
.display { position: relative; padding: 1.1rem 1.25rem 1rem; border: 1px solid rgba(143, 179, 255, .35); border-radius: 12px;
  background: linear-gradient(180deg, #08061a, var(--ink)); box-shadow: inset 0 0 40px rgba(143, 179, 255, .08), 0 0 40px rgba(143, 179, 255, .1); }
.display-kind { display: flex; align-items: center; gap: .55rem; margin: 0 4rem 0 0; color: var(--blue); font: 700 1rem/1.3 var(--display); font-stretch: condensed; letter-spacing: .03em; }
.display-dot { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: #4a4370; }
.display-track { margin: .4rem 0 .2rem; color: #e6eeff; font: 800 clamp(1.45rem, 2.8vw, 2rem)/1.15 var(--display); font-stretch: condensed; text-shadow: 0 0 14px rgba(143, 179, 255, .5); overflow-wrap: anywhere; }
.display-desc { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.display-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; margin-top: .9rem; padding-top: .7rem; border-top: 1px dashed rgba(143, 179, 255, .3); color: var(--blue); font-size: .95rem; font-variant-numeric: tabular-nums; }
.display-foot p { margin: 0; }
.display-listeners { display: inline-flex; align-items: center; gap: .45rem; }
.display-listeners svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.eq { position: absolute; top: 1.1rem; right: 1.25rem; display: flex; align-items: flex-end; gap: 3px; height: 22px; }
.eq span { width: 4px; height: 25%; border-radius: 2px; background: var(--pink); animation: eq .9s ease-in-out infinite alternate paused; }
.eq span:nth-child(2) { animation-delay: -.45s; }
.eq span:nth-child(3) { animation-delay: -.2s; }
.eq span:nth-child(4) { animation-delay: -.7s; }
.eq span:nth-child(5) { animation-delay: -.35s; }
@keyframes eq { to { height: 100%; } }

.volume { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem; margin-top: 1rem; padding: .5rem 1rem; border: 1px solid var(--line); border-radius: 12px; }
.volume label { color: var(--muted); font: 700 1.05rem/1 var(--display); font-stretch: condensed; }
#volume-value { min-width: 3ch; color: var(--gold); font: 800 1.15rem/1 var(--display); font-variant-numeric: tabular-nums; text-align: right; }
#volume { width: 100%; height: 2.75rem; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
#volume::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--gold)); }
#volume::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--pink), var(--gold)); }
#volume::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 34px; margin-top: -14px; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(#f6f3fc, #a9a3c9); box-shadow: 0 2px 8px rgba(5, 3, 15, .6); }
#volume::-moz-range-thumb { width: 22px; height: 34px; border: 2px solid var(--ink); border-radius: 6px; background: linear-gradient(#f6f3fc, #a9a3c9); }
#volume:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.notice { margin: 1rem 0 0; padding: .8rem 1rem; border-left: 5px solid; border-radius: 10px; font-weight: 600; }
.notice-error { border-color: #ff5c7a; background: rgba(255, 92, 122, .14); color: #ffe1e7; }
.notice-warning { border-color: var(--gold); background: rgba(255, 200, 71, .12); color: #fff0c9; }
.player-note { margin: .9rem 0 0; color: var(--muted); font-size: .95rem; }

/* Quand la radio joue (aria-pressed géré par /app.js) : le disque tourne, le bras se pose, la piste s'allume */
body:has(#play-button[aria-pressed="true"]) :is(.record, .eq span) { animation-play-state: running; }
body:has(#play-button[aria-pressed="true"]) .tonearm { rotate: 0deg; }
body:has(#play-button[aria-pressed="true"]) .stage::after { opacity: .85; }
body:has(#play-button[aria-pressed="true"]) :is(.power-led, .display-dot) { background: #ff2e4d; box-shadow: 0 0 10px #ff2e4d; }
body:has(#play-button[aria-pressed="true"]) .hint-idle { display: none; }
body:has(#play-button[aria-pressed="true"]) .hint-live { display: inline; }

/* Les trois couleurs */
.moods, .about, .programme { border-top: 1px solid var(--line); }
.section-title, .about h2, .programme h2 { font: 900 clamp(2.1rem, 5vw, 3.6rem)/1 var(--display); font-stretch: condensed; }
.section-title { padding: clamp(3rem, 7vw, 5rem) var(--gutter) 1.5rem; }
.mood { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: end; gap: .75rem 3rem; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); border-top: 1px solid var(--line); }
.mood p { margin: 0 0 .6rem; max-width: 30ch; font-size: clamp(1.05rem, 1.8vw, 1.3rem); }
.mood-word { font: 900 clamp(3.4rem, 12vw, 9.5rem)/.85 var(--display); font-stretch: condensed; letter-spacing: -.02em; text-transform: uppercase; }
.mood-80 .mood-word { color: var(--blue); background: linear-gradient(180deg, #f1f5ff 0%, var(--blue) 46%, #2b1f6b 50%, var(--pink) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mood-disco { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); background: radial-gradient(40rem 18rem at 75% 100%, rgba(255, 200, 71, .16), transparent 70%); }
.mood-disco .mood-word { order: 2; text-align: right; color: var(--gold); background: linear-gradient(100deg, #fff3cf, var(--gold) 30%, #ff9a3c 55%, #fff3cf 75%, var(--gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.mood-blues { background: linear-gradient(180deg, transparent, rgba(47, 71, 214, .3)); }
.mood-blues .mood-word { font: italic 700 clamp(3.6rem, 12vw, 9.5rem)/.95 var(--serif); letter-spacing: 0; text-transform: none; color: var(--blue); text-shadow: 0 0 40px rgba(80, 110, 255, .7); }
.mirrorball { position: absolute; top: 0; left: 42%; width: clamp(70px, 10vw, 130px); aspect-ratio: 1; border-radius: 50%; translate: 0 22%;
  background: radial-gradient(circle at 34% 28%, #fff 0 5%, transparent 20%), repeating-linear-gradient(0deg, rgba(12, 8, 34, .45) 0 1px, transparent 1px 11%),
    repeating-linear-gradient(90deg, rgba(12, 8, 34, .45) 0 1px, transparent 1px 11%), conic-gradient(#e8e6f5, #8e8aa8, #f7e3a6, #6f6a8c, #fbfaff, #9d98b8, #e8e6f5);
  box-shadow: 0 0 50px rgba(255, 200, 71, .45), inset -12px -16px 30px rgba(12, 8, 34, .55); }
.mirrorball::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 30rem; background: #8e8aa8; }

.about { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.about h2 { margin-bottom: 1rem; }
.about-text { margin: 0; max-width: 74ch; color: var(--muted); font-size: 1.15rem; }
.programme { padding: clamp(3rem, 7vw, 5rem) var(--gutter); }
.schedule-list { display: grid; gap: .5rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.schedule-list li { padding: .8rem 1rem; border-left: 4px solid var(--pink); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, .04); }
.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 2.4rem var(--gutter) calc(2rem + env(safe-area-inset-bottom, 0px)); color: var(--muted);
  background: linear-gradient(var(--gold) 0 4px, var(--pink) 4px 8px, var(--blue) 8px 12px, transparent 12px) top / 100% 12px no-repeat; }
.site-footer p { margin: 0; }
.footer-nav { gap: 1.25rem; }
.footer-nav a { color: var(--cream); font-weight: 700; }

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "deck" "panel"; }
  .stage-panel { max-width: none; }
  .mood, .mood-disco, .about { grid-template-columns: minmax(0, 1fr); }
  .mood-disco .mood-word { order: 0; text-align: left; }
  .mirrorball { left: auto; right: 8%; }
}
@media (max-width: 560px) {
  .site-header { position: static; }
  .site-nav .nav-cta { display: none; }
  .site-header .wordmark { gap: .5rem; font-size: 1rem; }
  .site-nav a { padding-inline: .7rem; font-size: .95rem; }
  .label-text { display: none; }
}

/* ---------- Régie et connexion : même univers, lisibilité d'abord ---------- */
.admin-page { font-size: 1.125rem; }
.admin-page .page-shell { width: min(1180px, 100% - 2rem); margin: 0 auto; padding: 1.5rem 0 4rem; }
.admin-page h1 { margin: .5rem 0 1rem; font: 900 clamp(2rem, 4vw, 2.8rem)/1 var(--display); font-stretch: condensed; }
.admin-page h2 { font: 800 clamp(1.35rem, 2.5vw, 1.7rem)/1.1 var(--display); font-stretch: condensed; }
.admin-page h3 { font-size: 1.15rem; color: var(--gold); }
.panel { margin: 1.25rem 0; padding: clamp(1rem, 3vw, 1.75rem); border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(180deg, rgba(43, 32, 94, .75), rgba(26, 18, 64, .85)); }
.panel-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-bottom: 1.1rem; }
.console { border: 2px solid rgba(255, 61, 139, .55); box-shadow: 0 0 50px rgba(255, 61, 139, .16); }
.console.is-live, .console[data-state="live"] { border-color: var(--live); box-shadow: 0 0 0 4px rgba(224, 0, 43, .25), 0 0 60px rgba(224, 0, 43, .35); }
.console-now { margin: 0 0 1rem; padding: 1rem 1.2rem; border: 1px solid rgba(143, 179, 255, .35); border-radius: 12px; background: var(--ink); color: var(--blue); }
.console-now .track-name { display: block; margin-top: .25rem; color: #e6eeff; font: 800 clamp(1.45rem, 3.5vw, 2.2rem)/1.15 var(--display); font-stretch: condensed; text-shadow: 0 0 14px rgba(143, 179, 255, .5); overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: .55rem; padding: .5rem 1.1rem; border: 2px solid var(--line); border-radius: 999px; background: #2a2058; color: var(--cream); font: 800 1.1rem/1 var(--display); font-stretch: condensed; letter-spacing: .04em; white-space: nowrap; }
.status-pill::before { content: ""; width: .75rem; height: .75rem; border-radius: 50%; background: currentColor; }
.status-pill.is-auto, .status-pill[data-state="auto"] { border-color: var(--blue); color: var(--blue); }
.status-pill.is-off, .status-pill[data-state="off"] { border-style: dashed; color: var(--muted); }
.status-pill.is-live, .status-pill[data-state="live"] { border-color: #ff8095; background: var(--live); color: #fff; box-shadow: 0 0 0 4px rgba(224, 0, 43, .25), 0 0 28px rgba(255, 46, 77, .6); animation: onair 1.8s ease-in-out infinite; }
@keyframes onair { 50% { box-shadow: 0 0 0 8px rgba(224, 0, 43, .1), 0 0 42px rgba(255, 46, 77, .85); } }
.admin-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 1.25rem; align-items: start; }
.admin-columns > .panel { margin: 0; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 1rem; }
.primary-button, .secondary-button, .small-button { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: 14px; font: 700 1.05rem/1.1 var(--body); text-decoration: none; cursor: pointer; }
.primary-button { border: 2px solid var(--gold); background: var(--gold); color: var(--ink); }
.primary-button:hover { border-color: #ffd978; background: #ffd978; }
.secondary-button { border: 2px solid var(--muted); background: transparent; color: var(--cream); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue); }
.small-button { min-height: 40px; padding: .4rem .85rem; border: 1px solid var(--line); background: #2a2058; color: var(--cream); font-size: .95rem; }
.small-button:hover { border-color: var(--blue); }
.text-button { min-height: 44px; padding: .3rem .4rem; border: 0; background: none; color: var(--blue); font: 700 1rem/1.2 var(--body); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
:is(.primary-button, .secondary-button, .small-button, .text-button):disabled { opacity: .45; cursor: not-allowed; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem 1.25rem; }
.form-grid label { display: grid; gap: .4rem; }
:is(.admin-page, .login-shell) label { font-weight: 700; }
:is(.admin-page, .login-shell) :is(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"]), select, textarea) {
  width: 100%; min-height: 48px; padding: .65rem .85rem; border: 2px solid #4d3f8f; border-radius: 10px; background: var(--ink); color: var(--cream); font: inherit; font-weight: 400; }
:is(.admin-page, .login-shell) :is(input, select, textarea):focus-visible { border-color: var(--gold); outline: 3px solid var(--gold); outline-offset: 2px; }
:is(.admin-page, .login-shell) :is([type="checkbox"], [type="radio"]) { width: 1.3rem; height: 1.3rem; accent-color: var(--pink); }
:is(.admin-page, .login-shell) ::file-selector-button { margin-right: .8rem; padding: .55rem .95rem; border: 0; border-radius: 10px; background: var(--blue); color: var(--ink); font-weight: 700; cursor: pointer; }
.admin-page fieldset { margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: 14px; }
.admin-page legend { padding: 0 .4rem; color: var(--gold); font-weight: 800; }
.field-help { margin: .3rem 0 0; color: var(--muted); font-size: .95rem; font-weight: 400; }
.message, .error-message { margin: 1rem 0; padding: .9rem 1.1rem; border-left: 6px solid var(--blue); border-radius: 10px; background: rgba(143, 179, 255, .12); color: var(--cream); font-weight: 600; }
.error-message { border-left-color: #ff5c7a; background: rgba(255, 92, 122, .14); color: #ffe1e7; }
.message:empty, .error-message:empty { display: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: rgba(12, 8, 34, .5); }
.track-table { width: 100%; min-width: 560px; border-collapse: collapse; }
.track-table th { padding: .8rem 1rem; background: #241a52; color: var(--muted); font: 700 1.05rem/1.2 var(--display); font-stretch: condensed; text-align: left; }
.track-table td { padding: .8rem 1rem; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.track-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .03); }
.track-table tbody tr:hover { background: rgba(255, 61, 139, .1); }
.schedule-editor { display: grid; gap: 1rem; padding: 1.1rem; border: 1px dashed rgba(255, 200, 71, .5); border-radius: 16px; background: rgba(12, 8, 34, .35); }
.days-picker { display: flex; flex-wrap: wrap; gap: .5rem; }
.days-picker label { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .4rem .95rem; border: 2px solid var(--line); border-radius: 999px; background: #241a52; cursor: pointer; }
.days-picker label:has(input:checked) { border-color: var(--pink); background: var(--pink); color: var(--ink); }
.days-picker label:has(input:checked) input { accent-color: var(--ink); }
.playlist-order-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; margin: .5rem 0; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; background: #241a52; }
.playlist-order-row > :first-child { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; font-weight: 600; }
.login-shell { width: min(460px, 100% - 2rem); margin: clamp(2rem, 12vh, 7rem) auto; padding: clamp(1.5rem, 5vw, 2.4rem); border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(180deg, rgba(43, 32, 94, .9), rgba(20, 13, 50, .95)); box-shadow: 0 30px 70px rgba(5, 3, 15, .6), 0 0 60px rgba(255, 61, 139, .18); }
.login-shell h1 { margin: 0 0 1rem; font: 900 2.2rem/1 var(--display); font-stretch: condensed; }
.login-shell form { display: grid; gap: .9rem; }
.login-shell input[type="password"] { font-size: 1.5rem; letter-spacing: .3em; text-align: center; }
.login-shell .primary-button { width: 100%; }
@media (max-width: 640px) {
  .admin-page .site-header { position: static; }
  .admin-page .button-row > * { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Codex integration: existing functional screens and controls.
   The Club de minuit artwork and home composition above remain Claude's theme. */
:root { --paper: var(--cream); --orange: var(--pink); --sans: var(--body); }
button, input, select, textarea { font: inherit; }
button { touch-action: manipulation; }
button:disabled { cursor: not-allowed; opacity: .45; }
input, select, textarea { min-width: 0; }
input::placeholder, textarea::placeholder { color: #a59cc7; opacity: 1; }
button, a, label { -webkit-tap-highlight-color: rgba(255, 200, 71, .2); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 .6rem; color: var(--blue); font: 800 .8rem/1.5 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.empty-state { grid-column: 1 / -1; padding: 1.2rem; color: var(--muted); overflow-wrap: anywhere; }
.no-script { padding: 1rem; border: 1px solid var(--gold); border-radius: 12px; color: var(--gold); }
.brand-mark { display: inline-grid; place-items: center; flex: 0 0 2.4rem; width: 2.4rem; height: 2.4rem; border: 2px solid var(--pink); border-radius: 50%; background: var(--ink); color: var(--gold); font: 900 1.2rem/1 var(--display); box-shadow: 0 0 18px rgba(255, 61, 139, .22); }
.wordmark:has(.brand-mark) { position: relative; padding-bottom: .75rem; letter-spacing: .025em; white-space: normal; }
.provisional { position: absolute; bottom: -.15rem; left: 3.05rem; color: var(--muted); font: 500 .64rem/1.2 var(--body); letter-spacing: .045em; text-transform: none; }
.prototype-badge { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .75rem; white-space: nowrap; }
.prototype-badge > span { width: .45rem; height: .45rem; border-radius: 50%; background: var(--pink); }
:is(.admin-page, .radio-browser-page) .page-shell { width: min(1240px, calc(100% - 3rem)); margin-inline: auto; }
:is(.admin-page, .radio-browser-page) .site-header { padding: 1rem 0; background: rgba(23, 15, 58, .96); }
:is(.admin-page, .radio-browser-page) .site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1rem; }
:is(.admin-page, .radio-browser-page) .site-header nav a, .nav-button { display: inline-flex; align-items: center; min-height: 44px; color: var(--cream); font-size: .9rem; font-weight: 650; text-decoration: none; }
:is(.admin-page, .radio-browser-page) .site-header nav a:hover, .nav-button:hover { color: var(--gold); text-decoration: underline; text-underline-offset: .25em; }
.nav-button { padding: 0; border: 0; background: transparent; cursor: pointer; }
:is(.admin-page, .radio-browser-page) .site-footer { margin-top: 2.5rem; padding: 2.5rem 0; font-size: .85rem; }
.footer-brand { color: var(--cream); font: 800 1.25rem/1.2 var(--display); }
.admin-intro { padding: 2.5rem 0 .5rem; }
.admin-intro h1 em, .login-shell h1 em, .radio-browser-page h1 em { color: var(--gold); font-family: var(--serif); font-weight: 700; }
.admin-intro > p:last-child { max-width: 48rem; color: var(--muted); }
.admin-page main, .admin-page section, .admin-page form, .admin-columns > *, .panel-heading > * { min-width: 0; }
.admin-page .panel p, .login-shell p { overflow-wrap: anywhere; }
.admin-page .panel > h2 { margin-bottom: 1rem; }
.panel .eyebrow { font-size: .75rem; }
.panel label, .login-shell label { display: block; margin-bottom: .45rem; font-size: .95rem; }
.panel .form-grid label { display: grid; }
.panel :is(input, select) + label { margin-top: 1rem; }
.panel input[type="file"] { display: block; max-width: 100%; width: 100%; padding: .65rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: .9rem; }
.panel input[type="range"] { display: block; width: 100%; min-height: 44px; accent-color: var(--pink); }
.panel input[type="checkbox"] { flex-shrink: 0; margin: 0; }
.panel .wide-field { grid-column: 1 / -1; }
.inline-form { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.input-action { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.input-action > input { flex: 1 1 10rem; max-width: 18rem; }
.input-action > select { flex: 1 1 18rem; max-width: 34rem; }
.input-action > button { flex: 0 1 auto; }
.console-now { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.console-now > div:first-child { min-width: 0; }
.console-now p { margin: .35rem 0; }
.listener-number { display: flex; flex: 0 0 auto; align-items: center; gap: .75rem; max-width: 12rem; }
.listener-number strong { color: var(--gold); font: 800 2.8rem/1 var(--display); font-variant-numeric: tabular-nums; }
.listener-number span { max-width: 7rem; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.console .field-help { margin-top: .75rem; }
.microphone-panel { border-color: rgba(255, 61, 139, .4); }
.mic-meter { height: .75rem; margin: 1.2rem 0; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: var(--ink); }
.mic-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--gold) 75%, var(--pink)); transition: width .1s linear; }
.monitor-panel #monitor-toggle { margin: .5rem 0 1.2rem; }
.upload-form { margin: 1.4rem 0; padding: 1.4rem 0; border-block: 1px solid var(--line); }
.upload-progress-wrap { margin-top: 1.2rem; }
.upload-progress-wrap progress { display: block; width: 100%; height: .9rem; overflow: hidden; border: 0; border-radius: 999px; accent-color: var(--gold); background: var(--ink); }
.upload-progress-wrap progress::-webkit-progress-bar { background: var(--ink); border-radius: 999px; }
.upload-progress-wrap progress::-webkit-progress-value { background: linear-gradient(90deg, var(--pink), var(--gold)); border-radius: 999px; }
.upload-progress-wrap progress::-moz-progress-bar { background: var(--gold); border-radius: 999px; }
#upload-errors { padding: 1rem; border: 1px solid rgba(255, 92, 122, .45); border-radius: 12px; background: rgba(255, 92, 122, .07); }
#upload-errors summary { cursor: pointer; color: #ffbcc9; font-weight: 700; }
#upload-error-list { max-height: 16rem; overflow: auto; padding-left: 1.5rem; overflow-wrap: anywhere; font-size: .9rem; }
.library-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(8rem, .7fr); align-items: end; gap: 1rem; margin: 1.5rem 0 .8rem; }
.library-toolbar > * { min-width: 0; }
.library-pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.library-pagination > span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.table-wrap { max-width: 100%; overscroll-behavior-x: contain; }
.track-table { min-width: 820px; font-size: .95rem; }
.track-table th { font-size: .9rem; }
.track-table th:nth-child(1) { width: 27%; }
.track-table th:nth-child(2) { width: 23%; }
.track-table th:nth-child(3) { width: 16%; }
.track-table td:nth-child(4) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.track-table :is(input, select) { min-width: 7rem; font-size: .9rem; }
.table-actions { min-width: 11rem; }
.table-actions button { margin: .2rem; }
.danger-button { color: #ffbcc9; border-color: rgba(255, 92, 122, .6); }
.danger-button:hover { background: rgba(255, 92, 122, .15); border-color: #ff819b; }
.playlist-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin: 1.5rem 0; }
.playlist-toolbar > div { flex: 1 1 18rem; min-width: 0; }
.admin-page .playlist-fields { min-width: 0; padding: 0; border: 0; }
.playlist-fields > label { margin-top: 1.2rem; }
.playlist-fields > label:first-child { margin-top: 0; }
.playlist-fields > input { max-width: 36rem; }
.playlist-order-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin: 1.6rem 0 .9rem; }
.playlist-order-heading span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.playlist-order { margin: 0; padding: 0; list-style: none; }
.playlist-order-row > .playlist-position { flex: 0 0 1.7rem; min-width: 0; font-size: .85rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.playlist-track-info { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.playlist-track-info strong { display: block; }
.playlist-track-info > span { display: block; margin-top: .2rem; color: var(--muted); font-size: .85rem; }
.playlist-row-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.source-picker, .schedule-source { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: .75rem 1rem; }
.source-picker { margin: 1.25rem 0; max-width: 54rem; }
.source-picker > label { grid-column: 1; grid-row: 1; margin: 0; }
.source-picker > select { grid-column: 1; grid-row: 2; }
.source-picker > div { grid-column: 2; grid-row: 1 / span 2; }
.schedule-rows { display: grid; gap: 1.25rem; margin: 1.5rem 0; }
.schedule-row-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; }
.panel .checkbox-label { display: inline-flex; align-items: center; gap: .6rem; margin: 0; }
.schedule-editor .form-grid { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.schedule-editor .form-grid label, .schedule-source label { display: grid; gap: .5rem; margin: 0; }
.admin-page .days-picker { padding: .8rem 0 0; border: 0; border-radius: 0; }
.days-picker legend { margin-bottom: .4rem; font-size: .9rem; }
.panel .days-picker label { display: inline-flex; margin: 0; font-size: .85rem; }
.password-form { min-width: 0; }
.password-form > button { margin-top: 1rem; }
.login-shell { width: min(34rem, calc(100% - 2rem)); }
.login-shell > .wordmark { max-width: 100%; margin-bottom: 2.5rem; font-size: 1.1rem; }
.login-shell .panel { padding: 1.25rem; border-radius: 16px; }
.login-shell h1 { line-height: 1.12; }
.login-shell .panel h2 { margin-bottom: .5rem; font: 800 1.4rem/1.2 var(--display); }
.login-shell .panel input[type="password"] { font-size: 1.1rem; letter-spacing: .13em; text-align: left; }
.login-intro { color: var(--muted); }
.login-footer { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
#family-setup-fields { display: grid; gap: .6rem; }
.listener-help { margin-top: 1rem; color: var(--muted); }
.dynamic-programme { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1rem; margin-top: 1.5rem; }
.programme-card { min-width: 0; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 8, 34, .5); }
.programme-card h3 { margin: .6rem 0; color: var(--cream); font: 800 1.45rem/1.15 var(--display); overflow-wrap: anywhere; }
.programme-card > p { color: var(--muted); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--blue); font-size: .85rem; }
.card-top p { margin: 0; font-variant-numeric: tabular-nums; }
.genre-mark { display: block; margin: .75rem 0; color: var(--gold); font-size: 3rem; line-height: 1; }
.genre-tag { display: inline-block; max-width: 100%; padding: .3rem .6rem; border: 1px solid var(--line); border-radius: 999px; color: var(--blue); font-size: .8rem; overflow-wrap: anywhere; }

/* Radio Browser loads its historical layout after this file; scoped rules keep
   its controls and cards in the same dark palette without altering its logic. */
.radio-browser-page .radios-intro h1 { font-family: var(--display); letter-spacing: -.03em; }
.radio-browser-page .radios-intro .eyebrow { color: var(--blue); font-size: .8rem; }
.radio-browser-page .radios-intro p:not(.eyebrow) { font-size: 1rem; }
.radio-browser-page .radios-record span { color: var(--ink); background: var(--gold); border-color: var(--pink); }
.radio-browser-page :is(input:not([type="checkbox"], [type="radio"], [type="range"]), select) { width: 100%; min-height: 48px; padding: .65rem .85rem; border: 2px solid #4d3f8f; border-radius: 10px; background: var(--ink); color: var(--cream); }
.radio-browser-page .station-filter { color: var(--cream); border-color: var(--line); background: #241a52; font-size: .9rem; }
.radio-browser-page .station-filter:hover { border-color: var(--blue); background: #34276b; }
.radio-browser-page .station-filter[aria-pressed="true"] { color: var(--ink); background: var(--gold); border-color: var(--gold); }
.radio-browser-page .radios-player { border: 1px solid rgba(143, 179, 255, .4); border-radius: 18px; color: var(--cream); }
.radio-browser-page .radios-player-heading h2 { font: 800 1.8rem/1.2 var(--display); color: var(--cream); }
.radio-browser-page .radios-player-heading .eyebrow { color: var(--blue); font-size: .75rem; }
.radio-browser-page .radios-player > p { color: var(--muted); font-size: .95rem; }
.radio-browser-page .radios-player audio { color-scheme: dark; }
.radio-browser-page .radios-player .radios-player-status { color: var(--gold); }
.radio-browser-page .radios-player .radios-external-note { color: var(--muted); font-size: .85rem; }
.radio-browser-page .radios-results-heading { border-color: var(--line); }
.radio-browser-page .radios-results-heading h2 { font: 800 2rem/1.1 var(--display); }
.radio-browser-page .station-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.radio-browser-page .station-card { border-radius: 18px; background: linear-gradient(155deg, #2b205e, #1a1240); }
.radio-browser-page .station-card h3 { color: var(--cream); font: 800 1.45rem/1.2 var(--display); }
.radio-browser-page .station-number { color: var(--blue); font-size: .8rem; }
.radio-browser-page .station-meta { font-size: .85rem; }
.radio-browser-page .station-tags li { border-radius: 999px; color: var(--muted); font-size: .75rem; }
.radio-browser-page .station-actions a { color: var(--blue); font-size: .85rem; }
.radio-browser-page .radios-empty { border-radius: 18px; font-size: 1rem; }
.radio-browser-page .site-footer > a { font-size: .9rem; }
.radio-browser-page :is(button, a, input):focus-visible { outline-color: var(--gold); }

@media (max-width: 1000px) {
  :is(.admin-page, .radio-browser-page) .site-header nav { order: 3; flex-basis: 100%; }
  :is(.admin-page, .radio-browser-page) .prototype-badge { margin-left: auto; }
  .library-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-toolbar > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  :is(.admin-page, .radio-browser-page) .page-shell { width: calc(100% - 2rem); }
  .console-now { align-items: flex-start; flex-direction: column; }
  .listener-number { max-width: none; }
  .listener-number strong { font-size: 2.2rem; }
  .listener-number span { max-width: none; }
  .playlist-row-actions { width: 100%; padding-left: 2.5rem; }
  .schedule-editor .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-editor .form-grid > label:first-child { grid-column: 1 / -1; }
  .source-picker, .schedule-source { grid-template-columns: minmax(0, 1fr); }
  .source-picker > label, .source-picker > select, .source-picker > div { grid-column: auto; grid-row: auto; }
  .source-picker > label { margin-bottom: -.5rem; }
  .library-pagination { justify-content: center; }
  .library-pagination > span { order: -1; flex: 1 1 100%; text-align: center; }
  .login-shell { padding: 1.25rem; }
}
@media (max-width: 440px) {
  :is(.admin-page, .radio-browser-page) .site-header { gap: 1rem .5rem; }
  :is(.admin-page, .radio-browser-page) .site-header nav { gap: .25rem .9rem; }
  :is(.admin-page, .radio-browser-page) .site-header .prototype-badge { display: none; }
  .library-toolbar { grid-template-columns: minmax(0, 1fr); }
  .library-toolbar > div:first-child { grid-column: auto; }
  .playlist-row-actions { padding-left: 0; }
  .playlist-row-actions .small-button { flex: 1 1 auto; }
  .panel { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .mic-meter span { transition: none; }
}
