/* =====================================================================
   ROBO J1NGLE | TRANSMISSIONS console (loaded after styles.css)
   Thin lines, mono readouts, cyan only for "live" and "selected". No inline styles in the HTML.
   NOTE: .tx and its scene must not keep a transform / filter / backdrop-filter at rest (the phone bottom sheet inside is position:fixed).
   ===================================================================== */

.tx{
  position:relative;
  max-width:1240px;margin:0 auto;
  padding:clamp(84px,13vh,150px) clamp(20px,4vw,52px) clamp(56px,9vh,110px);
}
.tx::before{                          /* hairline that marks the edge of the hero */
  content:"";position:absolute;left:clamp(20px,4vw,52px);right:clamp(20px,4vw,52px);top:clamp(40px,7vh,72px);height:1px;
  background:repeating-linear-gradient(to right,var(--line2) 0 6px,transparent 6px 14px);
}

/* ---------- heading ---------- */
.tx-head{margin-bottom:clamp(26px,4vh,40px)}
.tx-eyebrow{display:inline-flex;align-items:center;gap:12px;font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:var(--gray)}
.tx-title{
  margin-top:14px;font-family:var(--display);font-weight:700;text-transform:uppercase;
  font-size:clamp(1.7rem,5.4vw,3.4rem);letter-spacing:.14em;line-height:1.05;color:var(--ink);
}
.tx-sub{margin-top:12px;max-width:60ch;text-wrap:balance;color:var(--gray);font-size:clamp(12px,3.1vw,13.5px)}

/* ---------- console frame ---------- */
.tx-console{
  position:relative;border:1px solid var(--line2);border-radius:2px;background:rgba(8,9,12,.8);
}
.tx-console::after{content:"";position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-right:1px solid var(--cyan);border-bottom:1px solid var(--cyan);pointer-events:none}
.tx-bar{
  display:flex;justify-content:space-between;align-items:center;gap:16px;
  padding:11px 18px;border-bottom:1px solid var(--line);
  font-size:10.5px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);
}
.tx-bar-r{color:var(--gray)}
.tx-body{display:grid;grid-template-columns:minmax(300px,.85fr) 1.5fr;min-height:540px}

/* ---------- filters (only drawn when there is more than one type or universe) ---------- */
.tx-filters{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:12px 18px;border-bottom:1px solid var(--line)}
.tx-f{
  padding:6px 11px;background:none;border:1px solid var(--line2);border-radius:2px;cursor:pointer;
  font-size:10px;letter-spacing:.18em;text-transform:uppercase;color:var(--gray);transition:color .25s,border-color .25s,background .25s;
}
.tx-f:hover{color:var(--ink);border-color:rgba(190,198,212,.4)}
.tx-f:focus-visible{color:var(--ink);border-color:var(--cyan);outline:none}
.tx-f[aria-pressed="true"]{color:var(--ink);border-color:rgba(34,224,255,.55);background:rgba(34,224,255,.07)}
.tx-f-sep{width:1px;height:16px;margin:0 4px;background:var(--line2)}

/* ---------- channel list ---------- */
.tx-list li[hidden]{display:none!important}
.tx-list{list-style:none;border-right:1px solid var(--line)}
.tx-row{
  position:relative;width:100%;display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;align-items:center;gap:6px 14px;
  padding:15px 18px;background:none;border:0;border-bottom:1px solid var(--line);text-align:left;cursor:pointer;color:var(--gray);
  transition:background .25s,color .25s;
}
.tx-list li:last-child .tx-row{border-bottom:0}
.tx-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:2px;background:var(--cyan);transform:scaleY(0);transition:transform .3s var(--ease)}
.tx-row:hover{background:rgba(190,198,212,.05)}
.tx-row:focus-visible{background:rgba(190,198,212,.05);outline:none}
.tx-row:focus-visible{box-shadow:inset 0 0 0 1px var(--line2)}
.tx-row.is-sel{background:rgba(34,224,255,.06)}
.tx-row.is-sel::before{transform:scaleY(1)}
.tx-num{font-family:var(--display);font-size:11px;letter-spacing:.1em;color:var(--dim)}
.tx-txt{display:flex;flex-direction:column;min-width:0}
.tx-id{font-weight:500;font-size:12px;letter-spacing:.16em;color:var(--silver)}
.tx-ttl{margin-top:2px;font-size:11.5px;letter-spacing:.04em;color:var(--gray);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-mt{margin-top:3px;font-size:9px;letter-spacing:.12em;text-transform:uppercase;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tx-row:hover .tx-mt,.tx-row.is-sel .tx-mt{color:var(--gray)}
.tx-spark{color:var(--dim);line-height:0;transition:color .25s}
.tx-row:hover .tx-spark,.tx-row.is-sel .tx-spark{color:var(--silver)}
.tx-st{display:inline-flex;align-items:center;justify-content:flex-end;gap:8px;min-width:44px;font-size:10px;letter-spacing:.2em;text-transform:uppercase;color:var(--silver)}
.tx-row.is-soon .tx-st{color:var(--gray)}
.tx-row.is-locked .tx-id{color:var(--gray)}
.tx-row.is-locked .tx-num,.tx-row.is-locked .tx-st,.tx-row.is-locked .tx-ttl{color:var(--dim)}

.tx-eq{display:none;align-items:flex-end;gap:2px;width:12px;height:12px}
.tx-eq i{flex:1;height:100%;background:var(--cyan);transform:scaleY(.35);transform-origin:50% 100%;animation:txeq .9s ease-in-out infinite}
.tx-eq i:nth-child(2){animation-delay:-.3s}
.tx-eq i:nth-child(3){animation-delay:-.6s}
@keyframes txeq{50%{transform:scaleY(1)}}
.tx-row.is-playing .tx-eq{display:inline-flex}
.tx-row.is-playing .tx-st-t{display:none}

/* ---------- detail panel ---------- */
.tx-panel{padding:16px clamp(18px,2.6vw,30px) 26px;min-width:0;outline:none}
.tx-p-top{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line);font-size:10.5px;letter-spacing:.24em;text-transform:uppercase}
.tx-p-id{color:var(--silver)}
.tx-p-state{display:inline-flex;align-items:center;gap:9px;margin-right:auto;color:var(--dim)}
.tx-p-state .led{width:5px;height:5px;background:var(--dim);box-shadow:none;animation:none}
.tx-p-state.is-on{color:var(--gray)}
.tx-p-state.is-on .led{background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse 2s ease-in-out infinite}
.tx-close{display:none;place-items:center;width:34px;height:34px;background:rgba(12,13,16,.7);border:1px solid var(--line2);border-radius:2px;color:var(--silver);cursor:pointer}
.tx-close svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6}
.tx-close:hover{border-color:var(--cyan);color:#fff}
.tx-close:focus-visible{border-color:var(--cyan);color:#fff;outline:none}

.tx-p-main{display:grid;grid-template-columns:minmax(150px,212px) minmax(0,1fr);grid-template-areas:"art info" "spec info";grid-template-rows:auto 1fr;gap:16px clamp(18px,2.6vw,28px);margin-top:16px;align-items:start}
.tx-art{grid-area:art}
.tx-p-info{grid-area:info;min-width:0}
.tx-art{
  position:relative;overflow:hidden;border:1px solid var(--line2);background:#07080b;
  --c:rgba(190,198,212,.5);
}
.tx-art::before{content:"";display:block;padding-top:100%}          /* keeps the artwork square in every browser */
.tx-art svg,.tx-art img{position:absolute;left:0;top:0;display:block;width:100%;height:100%;object-fit:cover}
.tx-art::after{
  content:"";position:absolute;inset:6px;pointer-events:none;
  background:
    linear-gradient(var(--c),var(--c)) 0 0/12px 1px no-repeat,linear-gradient(var(--c),var(--c)) 0 0/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/12px 1px no-repeat,linear-gradient(var(--c),var(--c)) 100% 0/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/12px 1px no-repeat,linear-gradient(var(--c),var(--c)) 0 100%/1px 12px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/12px 1px no-repeat,linear-gradient(var(--c),var(--c)) 100% 100%/1px 12px no-repeat;
}
.tx-art-tag{
  position:absolute;left:0;right:0;top:0;bottom:0;margin:auto;width:max-content;height:max-content;white-space:nowrap;z-index:1;
  padding:6px 12px;border:1px dashed var(--line2);background:rgba(4,4,5,.78);
  font-size:10px;letter-spacing:.26em;text-transform:uppercase;color:var(--gray);
}
.tx-art-tag.is-corner{left:8px;right:auto;top:auto;bottom:8px;margin:0;padding:4px 9px;font-size:9.5px;letter-spacing:.2em;border-style:solid;border-color:rgba(34,224,255,.45);color:var(--ink)}
.tx-p-title{font-family:var(--display);font-weight:700;text-transform:uppercase;letter-spacing:.08em;line-height:1.15;font-size:clamp(1.1rem,2.6vw,1.65rem);color:var(--ink);overflow-wrap:anywhere}
/* the SPEC SHEET (v22): the track's data as an instrument readout. Rows that have no value are simply not built.
   Wide screens: a label / value list under the cover. Tablets and phones: little cells (see the media queries below). */
.tx-spec{grid-area:spec;min-width:0}
.tx-code{font-size:10px;letter-spacing:.3em;text-transform:uppercase;color:var(--cyan);margin-bottom:6px;opacity:.9}
.tx-spec-g{display:block;border-top:1px solid var(--line)}
.tx-sc{display:grid;grid-template-columns:76px minmax(0,1fr);align-items:baseline;gap:10px;padding:5px 0;border-bottom:1px solid var(--line);min-width:0}
.tx-sc dt{font-size:9px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim)}
.tx-sc dd{font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--silver);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-variant-numeric:tabular-nums}
.tx-sc-st dd{display:flex;align-items:center;gap:8px}
.tx-sc-st .led{width:5px;height:5px;flex:none;background:var(--dim);box-shadow:none;animation:none}
.tx-sc-st.is-on dd{color:#fff}
.tx-sc-st.is-on .led{background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse 1.4s ease-in-out infinite}
.tx-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;list-style:none}
.tx-tag{padding:4px 9px;border:1px solid var(--line2);border-radius:2px;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:var(--gray)}
.tx-tag.is-main{border-color:rgba(34,224,255,.45);color:var(--ink)}
.tx-tag.is-dim{border-color:transparent;padding-left:2px;color:var(--dim)}
.tx-desc{margin-top:14px}
.tx-note{margin-top:12px;max-width:46ch;color:var(--gray);font-size:13px}
.tx-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}

/* ---------- player ---------- */
.tx-playwrap{margin-top:16px}
.tx-player{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:14px}
.tx-play{
  display:grid;place-items:center;width:46px;height:46px;background:rgba(12,13,16,.7);border:1px solid var(--line2);border-radius:2px;
  color:var(--silver);cursor:pointer;transition:border-color .25s,color .25s,box-shadow .25s;
}
.tx-play svg{width:20px;height:20px;fill:currentColor}
.tx-play .i-pause{display:none}
.is-playing .tx-play .i-play{display:none}
.is-playing .tx-play .i-pause{display:block}
.tx-play:hover{border-color:var(--cyan);color:#fff;box-shadow:0 8px 22px -10px rgba(34,224,255,.7)}
.tx-play:focus-visible{border-color:var(--cyan);color:#fff;outline:none;box-shadow:0 8px 22px -10px rgba(34,224,255,.7)}
.tx-time{font-size:11px;letter-spacing:.12em;color:var(--gray);font-variant-numeric:tabular-nums;white-space:nowrap}
.tx-msg{margin-top:8px;min-height:1em;font-size:11px;letter-spacing:.04em;color:#d9a3a3}

.tx-seek{
  -webkit-appearance:none;appearance:none;width:100%;height:22px;background:transparent;cursor:pointer;--v:0%;
}
.tx-seek::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--silver) var(--v),var(--line2) var(--v))}
.tx-seek::-moz-range-track{height:2px;background:var(--line2)}
.tx-seek::-moz-range-progress{height:2px;background:var(--silver)}
.tx-seek::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:10px;height:10px;margin-top:-4px;background:var(--ink);border:0;border-radius:0}
.tx-seek::-moz-range-thumb{width:10px;height:10px;background:var(--ink);border:0;border-radius:0}
.tx-seek:focus-visible{outline:1px solid var(--cyan);outline-offset:3px}

/* ---------- tabs: lore / lyrics / production ---------- */
.tx-tabs{display:flex;flex-wrap:wrap;gap:4px;margin-top:18px;border-bottom:1px solid var(--line)}
.tx-tab{
  margin-bottom:-1px;padding:11px 14px;background:none;border:0;border-bottom:2px solid transparent;cursor:pointer;
  font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:var(--dim);transition:color .25s,border-color .25s;
}
.tx-tab:hover{color:var(--silver)}
.tx-tab[aria-selected="true"]{color:var(--ink);border-bottom-color:var(--cyan)}
.tx-tab:focus-visible{outline:1px solid var(--cyan);outline-offset:-3px}
.tx-tabbody{padding-top:16px}
.tx-pane[hidden]{display:none}
.tx-prose{max-width:64ch;color:var(--gray);font-size:13.5px;line-height:1.8}
.tx-prose p+p{margin-top:1em}
.tx-lyrics{
  max-height:min(46vh,380px);overflow:auto;padding-right:10px;white-space:pre-wrap;overflow-wrap:anywhere;
  font-size:13px;line-height:1.95;letter-spacing:.02em;color:var(--silver);scrollbar-width:thin;scrollbar-color:#2a2e35 transparent;
}
.tx-lyrics:focus-visible{outline:1px solid var(--line2);outline-offset:4px}
.tx-dl{display:grid;grid-template-columns:minmax(110px,max-content) minmax(0,1fr);column-gap:26px;max-width:560px}
.tx-dl dt,.tx-dl dd{padding:9px 0;border-bottom:1px solid var(--line)}
.tx-dl dt{font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--dim);line-height:1.9}
.tx-dl dd{color:var(--silver);font-size:13px}

.tx-scrim{display:none}
html:not(.js) .tx-console{display:none}          /* the console is built by JavaScript; without it show the plain Suno link instead */
.tx-nojs{margin-top:20px;color:var(--gray)}
html.tx-lock{overflow:hidden}

/* ---------- tablets and phones: the panel becomes a bottom sheet ---------- */
@media (max-width:860px){
  .tx-body{grid-template-columns:1fr;min-height:0}
  .tx-list{border-right:0}
  .tx-row{grid-template-columns:30px minmax(0,1fr) auto;padding:15px 14px}
  .tx-spark{display:none}
  .tx-bar{padding:10px 14px}

  .tx-panel{
    position:fixed;left:0;right:0;bottom:0;z-index:120;max-height:90vh;max-height:90dvh;overflow-y:auto;overscroll-behavior:contain;
    background:#07080b;border-top:1px solid var(--line2);
    padding:18px 18px calc(30px + env(safe-area-inset-bottom));
    transform:translateY(104%);visibility:hidden;transition:transform .45s var(--ease),visibility 0s .45s;
  }
  .tx-console.is-open .tx-panel{transform:none;visibility:visible;transition:transform .45s var(--ease),visibility 0s}
  .tx-panel::before{content:"";display:block;width:44px;height:3px;margin:-6px auto 14px;background:var(--line2);border-radius:2px}
  .tx-close{display:grid}
  .tx-p-main{grid-template-columns:96px minmax(0,1fr);grid-template-areas:"art info" "spec spec";grid-template-rows:auto;gap:16px;margin-top:16px}
  .tx-spec-g{display:grid;grid-template-columns:repeat(auto-fill,minmax(112px,1fr));gap:1px;background:var(--line);border:1px solid var(--line)}
  .tx-sc{display:block;background:#08090c;padding:7px 11px 8px;border-bottom:0}
  .tx-sc dt{line-height:1.6}
  .tx-sc dd{margin-top:2px;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
  .tx-art-tag{font-size:8.5px;letter-spacing:.16em;padding:4px 6px}
  .tx-scrim{
    display:block;position:fixed;inset:0;z-index:110;background:rgba(2,2,3,.68);
    opacity:0;pointer-events:none;transition:opacity .35s;
  }
  .tx-scrim.is-open{opacity:1;pointer-events:auto}
}
@media (max-width:640px){
  .tx-stat-x{display:none}
  .tx-filters{padding:10px 14px}
}
@media (max-width:520px){
  .tx-bar > span:first-child{display:none}
  .tx-bar{justify-content:flex-end}
  .tx-p-main{grid-template-columns:1fr;grid-template-areas:"art" "info" "spec"}
  .tx-art{max-width:200px}
  .tx-player{grid-template-columns:auto minmax(0,1fr);gap:10px 12px}
  .tx-time{grid-column:1 / -1;justify-self:end;margin-top:-6px}
  .tx-title{letter-spacing:.1em}
}


/* =====================================================================
   INSIDE THE FIXED STAGE (JS on, motion allowed)
   The console is one full-screen scene: it must fit the window without the page scrolling. The heading is compact, the console
   takes all the remaining height, and the list and the detail panel scroll inside their own boxes if they need to.
   ===================================================================== */
html.js:not(.rm) .tx{
  height:100%;margin:0 auto;display:flex;flex-direction:column;
  max-width:1320px;
  padding:calc(var(--hudh,96px) + 2px) clamp(20px,4vw,52px) calc(var(--footh,64px) + 8px);
}
html.js:not(.rm) .tx::before{display:none}
html.js:not(.rm) .tx-head{flex:none;margin-bottom:clamp(8px,1.6vh,16px)}
html.js:not(.rm) .tx-title{margin-top:6px;font-size:clamp(1.3rem,3.2vw,2.1rem)}
html.js:not(.rm) .tx-sub{margin-top:6px}
html.js:not(.rm) .tx-console{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
html.js:not(.rm) .tx-body{flex:1 1 auto;min-height:0;grid-template-rows:minmax(0,1fr)}
html.js:not(.rm) .tx-list,html.js:not(.rm) .tx-panel{min-height:0;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#2a2e35 transparent}
html.js:not(.rm) .tx-list::-webkit-scrollbar,html.js:not(.rm) .tx-panel::-webkit-scrollbar{width:6px}
html.js:not(.rm) .tx-list::-webkit-scrollbar-thumb,html.js:not(.rm) .tx-panel::-webkit-scrollbar-thumb{background:#2a2e35}
@media (min-width:1280px){                                 /* the social icons sit on the left edge (to x=60): keep the frame clear of them */
  html.js:not(.rm) .tx{max-width:1360px;padding-left:76px;padding-right:76px}
}
/* the lyrics / lore pane: inside the fixed stage the detail panel is the ONE scroller (no scroll box nested inside a scroll box), so long lyrics get the full height */
html.js:not(.rm) .tx-lyrics{max-height:none;overflow:visible;padding-right:0}
@media (max-height:720px){
  html.js:not(.rm) .tx-sub{display:none}
}
/* very short windows (phones on their side): let the whole scene scroll inside itself instead of squeezing the console */
@media (max-height:600px){
  html.js:not(.rm) .tx{display:block;overflow-y:auto;scrollbar-width:thin}
  html.js:not(.rm) .tx-console{display:block}
  html.js:not(.rm) .tx-body{min-height:420px}
  html.js:not(.rm) .tx-list{overflow:visible}
}


/* =====================================================================
   PLAYER OSCILLOSCOPE (scope.js draws into the <canvas>; analyser.js supplies the real numbers)
   Cyan line = real waveform, bars = frequency spectrum, glow = energy, thin vertical line = playback position.
   ===================================================================== */
.tx-scope{
  position:relative;height:clamp(80px,11.5vh,112px);margin-bottom:12px;overflow:hidden;
  border:1px solid var(--line2);background:linear-gradient(180deg,rgba(5,9,12,.9),rgba(3,5,7,.9));
  --c:rgba(34,224,255,.4);
}
.tx-scope canvas{position:absolute;left:0;top:0;width:100%;height:100%;display:block}
.tx-scope::after{
  content:"";position:absolute;left:4px;top:4px;right:4px;bottom:4px;pointer-events:none;
  background:
    linear-gradient(var(--c),var(--c)) 0 0/9px 1px no-repeat,linear-gradient(var(--c),var(--c)) 0 0/1px 9px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 0/9px 1px no-repeat,linear-gradient(var(--c),var(--c)) 100% 0/1px 9px no-repeat,
    linear-gradient(var(--c),var(--c)) 0 100%/9px 1px no-repeat,linear-gradient(var(--c),var(--c)) 0 100%/1px 9px no-repeat,
    linear-gradient(var(--c),var(--c)) 100% 100%/9px 1px no-repeat,linear-gradient(var(--c),var(--c)) 100% 100%/1px 9px no-repeat;
}
.tx-scope-tag,.tx-scope-src{
  position:absolute;top:9px;z-index:1;pointer-events:none;
  font-size:9px;letter-spacing:.24em;text-transform:uppercase;color:var(--dim);
}
.tx-scope-tag{left:12px;display:inline-flex;align-items:center;gap:8px}
.tx-scope-tag b{font-weight:400;transition:color .3s}
.tx-scope-tag .led{width:5px;height:5px;background:var(--dim);box-shadow:none;animation:none;transition:background .3s}
.tx-scope-src{right:12px}
/* the link status: grey and still while standing by, cyan and pulsing while a link is being made, glowing while transmitting */
.tx-scope[data-link="detect"] .tx-scope-tag b{color:var(--silver)}
.tx-scope[data-link="detect"] .tx-scope-tag .led{background:var(--silver)}
.tx-scope[data-link="est"] .tx-scope-tag b{color:var(--cyan)}
.tx-scope[data-link="est"] .tx-scope-tag .led{background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse .5s ease-in-out infinite}
.tx-scope[data-link="active"] .tx-scope-tag b{color:var(--cyan);text-shadow:0 0 8px rgba(34,224,255,.55)}
.tx-scope[data-link="active"] .tx-scope-tag .led{background:var(--cyan);box-shadow:0 0 8px var(--cyan);animation:pulse 1.6s ease-in-out infinite}
.tx-scope[data-link="paused"] .tx-scope-tag b{color:var(--gray)}
.tx-scope[data-link="lost"] .tx-scope-tag b{color:#ff8a7a}
.tx-scope[data-link="lost"] .tx-scope-tag .led{background:#ff8a7a}
.tx-scope[data-src="live"] .tx-scope-src{color:var(--cyan);text-shadow:0 0 8px rgba(34,224,255,.55)}
.tx-scope[data-src="sim"] .tx-scope-src{color:var(--gray)}
@media (max-width:520px){
  .tx-scope{height:88px}
  .tx-scope-src{display:none}
}
