/* TuneMap et carte des radios du site : même identité que l'app, l'accueil et le forum (nuit, néons ambre / rose,
   titres Oswald). Partagé par tunemap/ et map/. */
:root { --bg:#0a0510; --bg2:#150a24; --card:rgba(255,255,255,.055); --card2:rgba(255,255,255,.09); --line:rgba(255,255,255,.12);
  --ink:#f7f2ff; --muted:#b9acd0; --accent:#f5c542; --hot:#ff2e9a; --cyan:#19d1c3; --bad:#ff6b5c; --head:58px; --bar:0px; }
* { box-sizing:border-box; }
html { color-scheme:dark; }
body { margin:0; background:var(--bg) url(img/wall.jpg) center top/460px repeat fixed; color:var(--ink);
  font:16px/1.5 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; min-height:100vh; display:flex; flex-direction:column;
  padding-bottom:var(--bar); }
body::before { content:""; position:fixed; inset:0; z-index:-1;
  background:radial-gradient(60% 40% at 50% 0%, rgba(255,46,154,.22), transparent 70%), linear-gradient(180deg, rgba(10,5,16,.88), var(--bg) 70%); }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible { outline:3px solid var(--accent); outline-offset:2px; border-radius:8px; }
.muted { color:var(--muted); }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }

/* En-tête (comme le forum) */
.xh { position:sticky; top:0; z-index:20; display:flex; align-items:center; gap:1rem; flex-wrap:wrap; min-height:var(--head);
  padding:.6rem max(4vw,calc((100vw - 1240px)/2)); background:rgba(10,5,16,.84); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line); }
.xnav { display:flex; gap:1.1rem; align-items:center; margin-inline-start:auto; flex-wrap:wrap; font:600 .8rem/1 Oswald,sans-serif; letter-spacing:.12em; text-transform:uppercase; }
.xnav a { color:var(--muted); padding:.4rem 0; } .xnav a:hover { color:#fff; text-decoration:none; }
.xnav a[aria-current="page"] { color:var(--accent); }
.chip { font:600 .8rem/1 system-ui,sans-serif; padding:.5rem .8rem; border-radius:999px; border:1px solid var(--line); background:var(--card); color:var(--ink);
  cursor:pointer; min-height:36px; display:inline-flex; align-items:center; gap:.4rem; }
.chip:hover { border-color:var(--accent); text-decoration:none; }
.chip.on { border-color:var(--accent); color:var(--accent); background:rgba(245,197,66,.12); }

/* Logo : IDENTIQUE à celui de l'accueil (style.css) — même police, taille, ombre rose décalée et « CNTRL » ambre. */
.wordmark { font-family:Oswald,"Arial Narrow","Helvetica Neue Condensed",system-ui,sans-serif; font-weight:700; font-size:21px; letter-spacing:.16em;
  text-transform:uppercase; color:#FAFAFA; text-shadow:2px 2px 0 rgba(255,46,154,.85); line-height:1.2; }
.wordmark span { color:#F4C64A; text-shadow:2px 2px 0 rgba(255,46,154,.85), 0 0 18px rgba(244,198,74,.55); }
.wordmark:hover { text-decoration:none; }
@media (max-width:560px) { .wordmark { font-size:19px; letter-spacing:.12em; } }

/* Contenu */
.xmain { flex:1; width:100%; max-width:1240px; margin:0 auto; padding:1.6rem 4vw 3rem; }
.xhero { margin-bottom:1.2rem; }
h1, h2, h3 { font-family:Oswald,"Arial Narrow",sans-serif; text-transform:uppercase; letter-spacing:.01em; }
.xhero h1 { font-size:clamp(2.2rem,6vw,4rem); line-height:.95; margin:.2rem 0 .6rem;
  background:linear-gradient(90deg,#fff 30%,var(--accent) 70%,var(--hot)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.lead { font-size:1.08rem; color:var(--muted); max-width:62ch; margin:0; }
h2.sec { font-size:.95rem; letter-spacing:.2em; color:var(--accent); margin:1.6rem 0 .7rem; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; min-height:44px; padding:.6rem 1.2rem; border-radius:999px; border:0; cursor:pointer;
  font:700 .92rem/1 system-ui,sans-serif; color:#1a0b22; background:linear-gradient(90deg,var(--accent),var(--hot)); }
.btn:hover { filter:brightness(1.08); text-decoration:none; }
.btn.ghost { background:var(--card); color:var(--ink); border:1px solid var(--line); }
.btn.ghost:hover { border-color:var(--accent); }

/* Recherche */
.search { position:relative; max-width:560px; margin-top:1rem; }
.search input { width:100%; min-height:50px; padding:.8rem 1.1rem .8rem 2.8rem; border-radius:999px; border:1px solid var(--line); background:rgba(10,5,16,.7);
  color:var(--ink); font:inherit; font-size:1.02rem; }
.search input::placeholder { color:var(--muted); }
.search::before { content:""; position:absolute; inset-inline-start:1.1rem; top:50%; width:15px; height:15px; margin-top:-9px; border:2px solid var(--muted); border-radius:50%; }
.search::after { content:""; position:absolute; inset-inline-start:2.05rem; top:50%; width:7px; height:2px; margin-top:6px; background:var(--muted); transform:rotate(45deg); }
.results { position:absolute; z-index:15; inset-inline:0; top:calc(100% + .4rem); margin:0; padding:.4rem; list-style:none; border-radius:18px;
  background:rgba(21,10,36,.97); border:1px solid var(--line); box-shadow:0 20px 60px rgba(0,0,0,.5); max-height:60vh; overflow:auto; }
.results[hidden] { display:none; }
.results button { display:flex; align-items:center; gap:.8rem; width:100%; padding:.5rem .6rem; border:0; border-radius:12px; background:none; color:var(--ink);
  font:inherit; text-align:start; cursor:pointer; min-height:52px; }
.results button:hover, .results button.sel { background:var(--card2); }
.results .rmeta { color:var(--muted); font-size:.85rem; }
.results .empty { padding:.8rem; color:var(--muted); }

/* Vignettes rondes et monogrammes */
.av { flex:none; width:44px; height:44px; border-radius:50%; object-fit:cover; background:var(--card2); }
.av.sq { border-radius:12px; }
.mono { flex:none; display:inline-flex; align-items:center; justify-content:center; width:44px; height:44px; border-radius:12px;
  font:700 .95rem/1 Oswald,sans-serif; color:#fff; letter-spacing:.04em; text-shadow:0 0 10px rgba(255,255,255,.5); }

/* Listes de radios et de titres */
.list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:.45rem; }
.row { display:flex; align-items:center; gap:.75rem; padding:.55rem .7rem; border-radius:16px; background:var(--card); border:1px solid var(--line); min-width:0; }
.row.now { border-color:var(--hot); box-shadow:0 0 0 1px rgba(255,46,154,.35), 0 0 24px rgba(255,46,154,.18); }
.row .main { flex:1; min-width:0; display:flex; flex-direction:column; }
.row .name { font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .meta { color:var(--muted); font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.row .pick { all:unset; flex:1; min-width:0; display:flex; flex-direction:column; cursor:pointer; }
.row .pick:focus-visible { outline:3px solid var(--accent); outline-offset:2px; border-radius:8px; }
.play { flex:none; width:44px; height:44px; border-radius:50%; border:1px solid var(--line); background:var(--card2); color:var(--ink); cursor:pointer;
  display:inline-flex; align-items:center; justify-content:center; padding:0; }
.play:hover { border-color:var(--accent); color:var(--accent); }
.play.on { background:linear-gradient(135deg,var(--accent),var(--hot)); color:#1a0b22; border-color:transparent; }
.play svg { width:16px; height:16px; fill:currentColor; }
.ext { flex:none; font-size:.8rem; color:var(--muted); padding:.4rem .2rem; white-space:nowrap; }
.ext:hover { color:var(--accent); }
.note { color:var(--muted); font-size:.9rem; padding:.6rem 0; }

/* Lecteur commun (bas de page) */
.xbar { position:fixed; z-index:30; inset-inline:0; bottom:0; display:flex; align-items:center; gap:.8rem;
  padding:.6rem max(4vw,calc((100vw - 1240px)/2)); padding-bottom:calc(.6rem + env(safe-area-inset-bottom));
  background:rgba(16,8,28,.94); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-top:1px solid rgba(255,46,154,.35);
  box-shadow:0 -10px 40px rgba(255,46,154,.12); }
.xbar[hidden] { display:none; }
.xbar .main { flex:1; min-width:0; display:flex; flex-direction:column; }
.xbar .name { font-weight:700; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xbar .meta { color:var(--muted); font-size:.82rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xbar .meta.err { color:var(--accent); }
.xbar .prog { position:absolute; inset-inline:0; top:-1px; height:2px; background:linear-gradient(90deg,var(--accent),var(--hot)); transform-origin:left; transform:scaleX(0); }
[dir="rtl"] .xbar .prog { transform-origin:right; }
.xbar .lnk { font-size:.85rem; white-space:nowrap; }
.xbar .x { flex:none; width:36px; height:36px; border-radius:50%; border:0; background:none; color:var(--muted); cursor:pointer; font-size:1.2rem; }
.xbar .x:hover { color:#fff; }
@media (max-width:560px){ .xbar .lnk { display:none; } }

/* Pied de page */
.xf { display:flex; flex-wrap:wrap; gap:.4rem .9rem; justify-content:center; padding:1.4rem 4vw 2rem; color:var(--muted); font-size:.82rem; text-align:center; }
.xf p { margin:0; flex-basis:100%; }

/* ===================== TuneMap ===================== */
.tm { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr); gap:2rem; align-items:start; margin-top:1.4rem; }
/* min-width:0 : un nom de radio très long ne doit pas élargir la colonne (débordement sur téléphone). */
.tm > *, .mapx > *, .panel, .list, .row { min-width:0; }
.graph-wrap { position:relative; aspect-ratio:1; width:100%; max-width:680px; margin-inline:auto; }
.graph-wrap::before { content:""; position:absolute; inset:8%; border-radius:50%; background:radial-gradient(circle, rgba(255,46,154,.16), transparent 65%); }
#graph { position:relative; width:100%; height:100%; overflow:visible; }
#graph .edge { stroke:url(#edgeGrad); stroke-width:1.4; opacity:.75; }
#graph .node { cursor:pointer; transition:transform .55s cubic-bezier(.2,.8,.2,1), opacity .4s; outline:none; }
#graph .node .ring { fill:none; stroke:rgba(255,255,255,.22); stroke-width:2; transition:stroke .2s; }
#graph .node:hover .ring, #graph .node:focus-visible .ring { stroke:var(--accent); stroke-width:3; }
#graph .node:focus-visible .ring { stroke-dasharray:6 4; }
#graph .center .ring { stroke:var(--hot); stroke-width:3; filter:drop-shadow(0 0 10px rgba(255,46,154,.8)); }
#graph .center { cursor:default; }
#graph text { fill:var(--ink); font:600 13px system-ui,sans-serif; text-anchor:middle; paint-order:stroke; stroke:rgba(10,5,16,.85); stroke-width:4px; }
#graph .center text.big { font:700 22px Oswald,sans-serif; letter-spacing:.04em; text-transform:uppercase; }
#graph .mono-c { font:700 20px Oswald,sans-serif; fill:#fff; stroke:none; }
.tm-hint { text-align:center; color:var(--muted); font-size:.88rem; margin:.4rem 0 0; }
.panel { background:rgba(21,10,36,.72); border:1px solid var(--line); border-radius:24px; padding:1.2rem; backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); }
.ahead { display:flex; gap:1rem; align-items:center; }
.ahead img, .ahead .mono { width:84px; height:84px; border-radius:50%; font-size:1.6rem; }
.ahead h2 { margin:0; font-size:clamp(1.5rem,3vw,2.1rem); line-height:1.05; overflow-wrap:anywhere; }
.genres { display:flex; flex-wrap:wrap; gap:.35rem; margin:.45rem 0 0; padding:0; list-style:none; }
.genres li { font-size:.75rem; padding:.2rem .55rem; border-radius:999px; background:rgba(25,209,195,.14); color:var(--cyan); }
.actions { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:1rem; }
.trail { display:flex; flex-wrap:wrap; gap:.4rem; }
.trail .chip { max-width:220px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:inline-block; line-height:1.4; }
.state { padding:2rem 0; text-align:center; color:var(--muted); }
@media (max-width:900px){ .tm { grid-template-columns:minmax(0,1fr); } .graph-wrap { max-width:560px; } }

/* ===================== Carte ===================== */
.mapx { display:grid; grid-template-columns:minmax(0,1fr) 380px; gap:1.2rem; margin-top:1rem; }
.mapbox { position:relative; height:calc(100vh - var(--head) - 210px); min-height:420px; border-radius:24px; overflow:hidden; border:1px solid var(--line);
  background:radial-gradient(120% 90% at 50% 40%, #1a0d2e 0%, #0c0616 70%); touch-action:none; }
#map { display:block; width:100%; height:100%; cursor:grab; }
#map.drag { cursor:grabbing; }
.mapctl { position:absolute; inset-inline-end:.8rem; top:.8rem; display:flex; flex-direction:column; gap:.4rem; }
.mapctl button { width:42px; height:42px; border-radius:12px; border:1px solid var(--line); background:rgba(16,8,28,.85); color:var(--ink); font:700 1.2rem/1 system-ui;
  cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.mapctl button:hover { border-color:var(--accent); color:var(--accent); }
.maphelp { position:absolute; inset-inline-start:.9rem; bottom:.8rem; font-size:.78rem; color:var(--muted); background:rgba(16,8,28,.7); padding:.3rem .6rem; border-radius:999px; pointer-events:none; }
.tip { position:absolute; pointer-events:none; transform:translate(-50%, calc(-100% - 12px)); padding:.35rem .6rem; border-radius:10px; font-size:.82rem; font-weight:600;
  background:rgba(16,8,28,.95); border:1px solid rgba(245,197,66,.5); white-space:nowrap; max-width:260px; overflow:hidden; text-overflow:ellipsis; }
.tip[hidden] { display:none; }
.side { display:flex; flex-direction:column; min-height:0; height:calc(100vh - var(--head) - 210px); min-height:420px; }
.side .panel { display:flex; flex-direction:column; min-height:0; flex:1; padding:1rem; }
.side .search { margin:0 0 .8rem; max-width:none; }
.side .search input { min-height:44px; }
.side h2 { margin:.2rem 0 .7rem; font-size:1.15rem; letter-spacing:.06em; display:flex; align-items:center; gap:.5rem; }
.side .scroll { overflow:auto; min-height:0; flex:1; margin-inline:-.3rem; padding-inline:.3rem; }
.back { all:unset; cursor:pointer; color:var(--muted); font-size:.85rem; margin-bottom:.4rem; }
.back:hover { color:var(--accent); }
.card { display:flex; flex-direction:column; gap:.7rem; }
.card .top { display:flex; gap:.9rem; align-items:center; }
.card .top img, .card .top .mono { width:72px; height:72px; border-radius:16px; font-size:1.4rem; }
.card > .chip { align-self:flex-start; }
.card .actions { margin-top:0; }
.card h3 { margin:0; font-size:1.35rem; line-height:1.1; overflow-wrap:anywhere; text-transform:none; }
.facts { display:flex; flex-wrap:wrap; gap:.35rem; list-style:none; margin:0; padding:0; }
.facts li { font-size:.75rem; padding:.2rem .55rem; border-radius:999px; background:var(--card2); color:var(--muted); }
@media (max-width:980px){
  .mapx { grid-template-columns:minmax(0,1fr); }
  .mapbox { height:62vh; min-height:340px; }
  .side { height:auto; min-height:0; }
  .side .scroll { max-height:none; overflow:visible; }
}
@media (prefers-reduced-motion: reduce){ #graph .node { transition:none; } }

/* ===================== TuneMap — même rendu que l'app (surface violette, contour #6B2A8F, ambre #F4C64A) ===================== */
.tm-app { max-width:1100px; }
.tm-h1 { margin:.2rem 0 .9rem; font:700 1rem/1 Oswald,sans-serif; text-transform:none; }
.tm-badge { display:inline-block; padding:.42em .85em; border-radius:7px; background:#FF2E9A; color:#fff; font:700 .85rem/1 Oswald,sans-serif; letter-spacing:.16em;
  text-transform:uppercase; box-shadow:0 0 18px rgba(255,46,154,.5); }
.tm-barrow { display:flex; align-items:center; gap:.5rem; }
.tm-backbtn { flex:none; width:40px; height:40px; border-radius:50%; border:0; background:none; color:#F4C64A; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.tm-backbtn svg { width:22px; height:22px; }
.tm-capsule { flex:1; display:flex; align-items:center; gap:.55rem; padding:0 .45rem 0 1rem; min-height:46px; background:#241033; border:1px solid #6B2A8F; border-radius:999px; max-width:640px; }
.tm-capsule:focus-within { border-color:#F4C64A; box-shadow:0 0 0 1px #F4C64A, 0 0 18px rgba(244,198,74,.25); }
.tm-capsule > svg { flex:none; width:20px; height:20px; color:#B9AFC4; }
.tm-capsule input { flex:1; min-width:0; background:none; border:0; outline:0; color:#FAFAFA; font:inherit; font-size:1rem; min-height:44px; }
.tm-capsule input::placeholder { color:#B9AFC4; }
.tm-clear { flex:none; width:36px; height:36px; border-radius:50%; border:0; background:none; color:#B9AFC4; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; }
.tm-clear[hidden] { display:none; }
.tm-clear svg { width:20px; height:20px; }

/* Accueil (rien encore cherché) */
.tm-intro { display:flex; flex-direction:column; align-items:center; gap:1.2rem; padding:2.4rem 0 1rem; text-align:center; }
.tm-bigicon svg { width:58px; height:58px; color:#F4C64A; filter:drop-shadow(0 0 14px rgba(244,198,74,.55)); }
.tm-hint { max-width:52ch; margin:0; color:#B9AFC4; font-size:1.02rem; }
.tm-chips { display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:.55rem; width:100%; max-width:640px; }
.tm-chip { padding:.55rem .6rem; border-radius:999px; border:1px solid rgba(244,198,74,.6); background:rgba(244,198,74,.15); color:#F4C64A; font:500 .85rem/1.2 system-ui,sans-serif; cursor:pointer; min-height:38px;
  white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.tm-chip:hover { background:rgba(244,198,74,.25); box-shadow:0 0 14px rgba(244,198,74,.3); }
.tm-msg { text-align:center; color:#B9AFC4; padding-top:3.5rem; }
.tm-loading { display:flex; justify-content:center; padding-top:4rem; }
.tm-spin { display:inline-block; width:20px; height:20px; border-radius:50%; border:2.5px solid rgba(244,198,74,.25); border-top-color:#F4C64A; animation:tmspin .8s linear infinite; flex:none; }
.tm-spin.big { width:36px; height:36px; }
@keyframes tmspin { to { transform:rotate(360deg); } }

/* Listes : artistes, labels, titres, sorties */
.tm-results { display:flex; flex-direction:column; gap:1.2rem; margin-top:1rem; max-width:720px; }
.tm-sect { margin-top:1.2rem; }
.tm-sec { font:700 .74rem/1 system-ui,sans-serif; letter-spacing:.14em; color:#B9AFC4; margin:0 0 .55rem; text-transform:uppercase; text-shadow:none; }
.tm-list { background:#241033; border-radius:14px; overflow:hidden; }
.tm-row { display:flex; align-items:center; gap:.75rem; width:100%; padding:.5rem .75rem; background:none; border:0; border-bottom:1px solid #6B2A8F; color:#FAFAFA; text-align:start; font:inherit; cursor:pointer; min-width:0; }
.tm-row:last-child { border-bottom:0; }
.tm-row.static { cursor:default; }
button.tm-row:hover { background:rgba(255,255,255,.05); }
.tm-row.now { background:rgba(244,198,74,.1); }
.tm-rowtext { display:flex; flex-direction:column; min-width:0; flex:1; gap:.1rem; }
.tm-rowname { font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.tm-rowsub { color:#B9AFC4; font-size:.78rem; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; margin:0; }
.tm-face { flex:none; display:inline-flex; }
.tm-face img, .tm-face .mono { object-fit:cover; flex:none; }
.tm-play { flex:none; width:40px; height:40px; border-radius:50%; border:0; background:none; color:#F4C64A; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; }
.tm-play svg { width:30px; height:30px; }
.tm-play[disabled] { color:#6B2A8F; cursor:default; }
.tm-play.big svg { width:40px; height:40px; }
.tm-play.on { text-shadow:0 0 10px #F4C64A; filter:drop-shadow(0 0 8px rgba(244,198,74,.7)); }
.tm-am { display:inline-flex; align-items:center; gap:.4rem; margin-top:.7rem; color:#F4C64A; font-weight:600; font-size:.86rem; }
.tm-am svg { width:16px; height:16px; }
.tm-credits { color:#B9AFC4; font-size:.75rem; margin:1.6rem 0 1rem; }
.tm-radios { margin-top:.5rem; }

/* Fiche de l'artiste (ou du label) */
.tm-head { display:flex; align-items:flex-start; gap:14px; margin:1.3rem 0 .4rem; }
.tm-face.round img, .tm-face.round .mono { border:2px solid rgba(244,198,74,.7); box-shadow:0 0 18px rgba(244,198,74,.35); }
.tm-headtext { display:flex; flex-direction:column; gap:.3rem; min-width:0; }
.tm-name { margin:0; font:700 1.45rem/1.15 system-ui,-apple-system,sans-serif; text-transform:none; letter-spacing:0; color:#FAFAFA; overflow-wrap:anywhere; text-shadow:none; }
.tm-genres { color:#F4C64A; font-size:.86rem; }
.tm-facts { margin:0; color:#B9AFC4; font-size:.8rem; }
.tm-roster { display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:14px 12px; }
.tm-rosterbtn { display:flex; flex-direction:column; align-items:center; gap:5px; background:none; border:0; color:#FAFAFA; font:inherit; font-size:.78rem; text-align:center; cursor:pointer; }
.tm-rosterbtn .tm-face img, .tm-rosterbtn .tm-face .mono { border:1.5px solid rgba(244,198,74,.5); }

/* Le réseau */
.tm-graphpage { display:grid; gap:1.4rem; margin-top:1rem; }
.tm-graphcol, .tm-detailcol { min-width:0; }
.tm-panel { position:relative; width:100%; aspect-ratio:.78; max-height:720px; background:rgba(36,16,51,.55); border:1px solid #6B2A8F; border-radius:16px; overflow:hidden; touch-action:none; }
.tm-svg { display:block; width:100%; height:100%; cursor:grab; user-select:none; -webkit-user-select:none; }
.tm-panel.drag .tm-svg { cursor:grabbing; }
.tm-node { cursor:pointer; outline:none; }
.tm-node:focus-visible .tm-ring { stroke-dasharray:5 4; stroke-opacity:1; }
.tm-edge { stroke:#F4C64A; }
.tm-label { paint-order:stroke; stroke:rgba(10,5,16,.9); stroke-width:3px; stroke-linejoin:round; font-family:system-ui,-apple-system,sans-serif; pointer-events:none; }
.tm-mono { fill:#fff; font-family:Oswald,sans-serif; font-weight:700; pointer-events:none; }
.tm-nspin { stroke:#fff; stroke-width:3; stroke-dasharray:18 80; transform-box:fill-box; transform-origin:center; animation:tmspin .9s linear infinite; }
.tm-fab { position:absolute; width:34px; height:34px; border-radius:50%; border:1px solid #6B2A8F; background:rgba(36,16,51,.9); color:#F4C64A; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; padding:0; z-index:2; }
.tm-fab svg { width:17px; height:17px; }
.tm-fab:hover { box-shadow:0 0 12px rgba(244,198,74,.4); }
.tm-fab.tl { left:10px; top:10px; } .tm-fab.tr { right:10px; top:10px; }
.tm-fab.exit { display:none; width:44px; height:44px; } .tm-fab.exit svg { width:20px; height:20px; }
.tm-fullcard { display:none; }
.tm-panel.full { position:fixed; inset:0; z-index:25; max-height:none; aspect-ratio:auto; border:0; border-radius:0; background:#0A0510 url(../img/wall.jpg) center top/460px repeat; }
.tm-panel.full::before { content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(10,5,16,.8), rgba(10,5,16,.92)); pointer-events:none; }
.tm-panel.full .tm-svg { position:relative; }
.tm-panel.full .tm-fab.tl:not(.exit) { display:none; } .tm-panel.full .tm-fab.exit { display:inline-flex; top:max(12px, env(safe-area-inset-top)); }
.tm-panel.full .tm-fullcard { display:flex; align-items:center; gap:12px; position:absolute; left:16px; right:16px; bottom:calc(var(--bar,0px) + 14px); max-width:560px; margin-inline:auto; padding:12px;
  background:rgba(36,16,51,.94); border:1px solid #6B2A8F; border-radius:18px; z-index:3; }
.tm-panel.full .tm-fullcard .tm-face img, .tm-panel.full .tm-fullcard .tm-face .mono { border:2px solid rgba(244,198,74,.8); }
body.tm-full { overflow:hidden; }
/* Plein écran : le conteneur « collant » du réseau crée sa propre pile d'affichage ; on le place au-dessus de la page
   (et de l'en-tête) mais sous le lecteur du bas. */
body.tm-full .tm-graphcol { position:relative; top:auto; z-index:25; }
@media (min-width:1000px) {
  .tm-graphpage { grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr); align-items:start; gap:2rem; }
  .tm-graphcol { position:sticky; top:calc(var(--head) + 14px); }
  .tm-panel { aspect-ratio:auto; height:min(78vh,760px); max-height:none; }
  .tm-head:first-child { margin-top:0; }
}
.tm-panel.full { height:auto; }   /* après la règle « grand écran » : le plein écran remplit toute la fenêtre */
@media (prefers-reduced-motion: reduce) { .tm-spin, .tm-nspin { animation:none; } }
