/* The duh.tv radio poster's type layer: headline, DJ call-out, dial. Shared by the live poster (blocks/index.html) and the
   contributor's poster preview (poster-preview.html), so the preview is the real thing. Markup + colors: poster.js.
   Needs from the host: --PW / --PH (poster size), --helv, --yellow, --red, the HVSmegs font, and a button reset. */
.art { position: absolute; left: 0; width: 100%; height: var(--PH); background: var(--art, url(/assets/poster.jpg)) center / 100% 100%;   /* --art: a contributor episode's own poster while it's on air (posterArt()) */
  color: var(--pi); text-align: center; text-transform: uppercase; }
/* the poster's own type: cream on dark art, near-black on light art, or the colors the designer picked (Robert, 2026-10-12: "we change our font color based on their poster").
   --pi = ink, --pp = paper (knob fills, LIVE's word). paint() (poster.js) sets them on the headline, call-out and dial separately, plus --acc (accent) and --acc-ink (type on the accent) */
.art h2, .art .join, .art .dial { color: var(--pi); }
.art { --pi: #DCD5C7; --pp: #0d0b0b; }
/* the incoming episode art fades in over the old one, then becomes --art (posterArt()); it sits under the headline, dial and call-out */
.art::before { content: ""; position: absolute; inset: 0; background: var(--art-next, none) center / 100% 100%; opacity: 0; pointer-events: none; }
.poster.fade .art::before { opacity: 1; transition: opacity .6s; }
@media (prefers-reduced-motion: reduce) { .poster.fade .art::before { transition: none; } }
/* poster.jpg has the PSD's own wording painted out; these sit where it was (top line, bottom 3-line block) */
.art h2 { position: absolute; top: 4%; width: 100%; font-size: calc(var(--PW) * .08); line-height: .95; padding: 0 12.75%; }  /* .08 = biggest where "Duh television" fits one line; 12.75% = the dial numerals' 17% margin, pulled out by a quarter */
.art h2 b { font: 400 1.7em/.6 HVSmegs; letter-spacing: 0; text-transform: none; margin-right: .08em; color: var(--acc, inherit); }
.dial { position: absolute; bottom: 4%; width: 100%; }   /* same margin as the headline at the top */
.dial > div { position: relative; display: flex; justify-content: center; margin: calc(var(--PW) * .06) 6% 0; border-top: 1px solid var(--pi); }   /* one rule over all the columns (the middle of three, see ::before / ::after); margin + the columns' padding-top = room for the NOW PLAYING ring (r 22 units ≈ .041 PW + text) */
.dial > div::before, .dial > div::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }   /* the rule is three lines, 2px apart (Robert, 2026-09-27): the border is the middle one */
.dial > div::before { top: -4px; bottom: 0; border: 1px solid var(--pi); border-bottom: 0; }   /* the top line, and the outer lines (left of 47.6, right of 89.8) running down from it */
.dial > div::after { top: 2px; height: 1px; background: var(--pi); }   /* the bottom line */
.live { /* LIVE in a circle on the double divider, hung so the rule's top line crosses it a third of the way down (Robert 2026-09-27 — was centred on the middle line), a slow-blinking yellow light over the word (Robert, 2026-09-27).
  2px = the double divider's centre past the column edge, -3.5px = the top line's centre, minus a third of the circle (border-box, so width = the whole circle); cream ring and fill, black LIVE, red light (Robert, 2026-09-27; tried dark, then yellow) — the fill stops the lines at the ring */
  position: absolute; z-index: 1; left: calc(50% + 2px); top: calc(-3.5px - var(--PW) * .085 / 3); translate: -50% 0; width: calc(var(--PW) * .085); aspect-ratio: 1;
  border: 1px solid var(--pi); border-radius: 50%; background: var(--pi); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .45em;
  font: 400 calc(var(--PW) * .018)/1 var(--helv); letter-spacing: .08em; padding-left: .08em; word-spacing: 0; color: var(--pp); pointer-events: none; }
.call { /* call letters in the column's top corner inside the frame: left in the first, right in the last (Robert, 2026-09-27) */
  position: absolute; top: calc(3px + var(--PW) * .018); font: 400 calc(var(--PW) * .02)/1 var(--helv); letter-spacing: .08em; word-spacing: 0; text-transform: uppercase; color: var(--pi); }
.st:first-of-type .call { left: calc(var(--PW) * .018); }
.st:last-of-type .call { right: calc(var(--PW) * .018); }
.live::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 3px 1px #ce3d30a0; animation: poster-pulse 3.6s ease-in-out infinite; }
@keyframes poster-pulse { 50% { opacity: .15; } }   /* opacity only — `blink` fades to a yellow glow */
.st { position: relative; flex: 1 1 0; min-width: 0; padding: calc(var(--PW) * .05) .5em 0; cursor: pointer; }   /* one column per station: knob on the rule, number, artist / song. Click anywhere = tune */
.st + .st { background: linear-gradient(var(--pi) 0 0) 0 2px / 1px calc(100% - 2px) no-repeat, linear-gradient(var(--pi) 0 0) 3px 2px / 1px calc(100% - 2px) no-repeat; }   /* the divider: a double line (1px, 2px apart) running up to the rule's bottom line — the column's top is the rule since its padding holds the gap (Robert, 2026-09-27). Fixed colour: don't follow the hovered number */
.st::before { /* the channel knob, centred on the rule */
  content: ""; position: absolute; z-index: 1; left: 50%; top: -.5px; translate: -50% -50%;
  width: calc(var(--PW) * .022); height: calc(var(--PW) * .022); border-radius: 50%; border: 1px solid var(--pi); background: var(--pp); transition: background .2s; }
.st:hover::before { background: var(--pi); }
.st.on::after { /* the on-air light: a yellow dot over the cream ring, glowing and pulsing slowly — the ring stays put underneath */
  content: ""; position: absolute; z-index: 1; left: 50%; top: -.5px; translate: -50% -50%;
  width: calc(var(--PW) * .022); height: calc(var(--PW) * .022); border-radius: 50%; background: var(--acc, var(--yellow));
  box-shadow: 0 0 6px 2px color-mix(in srgb, var(--acc, var(--yellow)) 69%, transparent), 0 0 18px 6px color-mix(in srgb, var(--acc, var(--yellow)) 33%, transparent); animation: poster-blink 2.4s ease-in-out infinite; }
@keyframes poster-blink { 50% { opacity: .15; box-shadow: 0 0 3px 1px color-mix(in srgb, var(--acc, var(--yellow)) 25%, transparent), 0 0 8px 2px color-mix(in srgb, var(--acc, var(--yellow)) 6%, transparent); } }
.st.on button { color: var(--acc, var(--yellow)); text-shadow: 0 0 .12em color-mix(in srgb, var(--acc, var(--yellow)) 75%, transparent), 0 0 .4em color-mix(in srgb, var(--acc, var(--yellow)) 50%, transparent), 0 0 1em color-mix(in srgb, var(--acc, var(--yellow)) 25%, transparent); }
.st button { font-size: calc(var(--PW) * .08); line-height: 1; cursor: inherit; }   /* = the headline size */
.cue { /* a yellow arrow over each knob, "LISTEN" inside, bobbing slowly: tells people the stations are what you click to play (Robert, 2026-10-12). Gone once anything is tuned */
  position: absolute; left: 50%; bottom: calc(100% + var(--PW) * .022); margin-left: calc(var(--PW) * -.045); width: calc(var(--PW) * .09); overflow: visible;
  font: 700 9px var(--helv); letter-spacing: .08em; animation: poster-bob 2.4s ease-in-out infinite; }
.cue path { fill: var(--acc, var(--yellow)); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--acc, var(--yellow)) 69%, transparent)) drop-shadow(0 0 9px color-mix(in srgb, var(--acc, var(--yellow)) 33%, transparent)); transition: fill .2s; }   /* the join button's yellow and glow */
.cue text { fill: var(--acc-ink, #0d0b0b); }
.st:hover .cue path { fill: #DCD5C7; }
.dial:has(.on) .cue { display: none; }
@keyframes poster-bob { 50% { margin-bottom: calc(var(--PW) * .015); } }   /* margin, not transform: an animated transform inside the poster's 3D fold got its own layer, and Chromium also painted a bigger copy behind it ("LISTENEN" at 1x) */
.np { /* NOW PLAYING · NOW PLAYING · on a ring around the tuned station's knob, turning slowly. The svg is 80 units wide and
         PW × .15 on screen, so 1 unit ≈ PW × .001875: text at 8 units = PW × .015 (tightened from the artist line's 11.7 / r 32) */
  position: absolute; left: 50%; top: -.5px; translate: -50% -50%; width: calc(var(--PW) * .15); height: calc(var(--PW) * .15);
  visibility: hidden; pointer-events: none; overflow: visible; font: 400 8px var(--helv); letter-spacing: 0; fill: var(--pi); }
.np text { animation: poster-spin 14s linear infinite; transform-origin: 0 0; }
.st.on .np { visibility: visible; }
@keyframes poster-spin { to { transform: rotate(1turn); } }
.join { /* contributor call-out in the dark right of panel 2, between the upper and middle creases (Robert, 2026-10-11): two lines, then a round button with its words turning around it */
  position: absolute; top: 28%; left: 69%; width: max-content; display: flex; flex-direction: column; align-items: flex-start; text-align: left; color: inherit; text-decoration: none; text-transform: none; }
.join b { font: 700 calc(var(--PW) * .03)/1.05 var(--helv); letter-spacing: -.02em; word-spacing: 0; text-transform: uppercase; }   /* caps (Robert); wraps to two lines to stay off the art; body's tight spacing ran the words together */
.join em, .join span { display: block; font: 400 calc(var(--PW) * .016)/1.5 var(--helv); letter-spacing: .14em; word-spacing: 0; text-transform: uppercase; }   /* "Become a" on its own line above "Duh radio DJ.", and the line below: both the ring's type — 8 of 80 units at PW × .16, tracked .14em = what textLength="155" spreads them by (Robert, 2026-10-11) */
.join i { font: 400 1.7em/.6 HVSmegs; letter-spacing: 0; text-transform: none; color: var(--acc, var(--red)); }   /* "Duh" as in the headline, in red (Robert, 2026-10-11) */
.join em { margin-bottom: calc(var(--PW) * .012); }   /* the red Duh rises almost to "Become a"; this evens the ink gaps above and below the "Duh radio DJ." line (≈ 8px each at PW 600, measured; Robert, 2026-10-11) */
.join span { margin-top: .6em; margin-right: -.14em; }   /* drop the tracking after "set." so the block ends at its T */
.join svg { align-self: flex-end; margin-right: calc(var(--PW) * -.02); width: calc(var(--PW) * .16); margin-top: calc(var(--PW) * -.012); overflow: visible; font: 400 8px var(--helv); letter-spacing: 0; word-spacing: 0; fill: var(--pi); }   /* 80-unit viewBox like .np: 8 units ≈ PW × .016. Right-aligned to the end of "set.", then nudged left (Robert). margin-top: the ring words' top sits ≈ 8px under "set." at PW 600, the same ink gap as the lines above (measured). -.046 would put the button (r 17, 23 units in from the box edge) exactly at the T */
.join text { animation: poster-spin 18s linear infinite; transform-origin: 0 0; }
.join .more { margin-top: .5em; color: var(--acc, var(--yellow)); text-decoration: underline; text-underline-offset: .25em; text-decoration-thickness: 1px; cursor: pointer; }   /* MORE INFO under "playlist and DJ the set." (Robert, 2026-11-20): opens the become-a-DJ pop-up */
.join .more:hover { color: #DCD5C7; }
.app { top: 52%; left: 6%; pointer-events: none; }   /* the mobile-app call-out: left edge on the dial's left line, its button about halfway between the DJ button and the dial (the deck's capture works it out exactly) */
.app svg { align-self: flex-start; margin-right: 0; margin-left: calc(var(--PW) * -.02); }
.app .soon { animation: none; font: 700 7px var(--helv); letter-spacing: 0; fill: var(--red, #CE3D30); }   /* COMING / SOON on the button, still */
.join circle { fill: var(--acc, var(--yellow)); filter: drop-shadow(0 0 3px color-mix(in srgb, var(--acc, var(--yellow)) 69%, transparent)) drop-shadow(0 0 9px color-mix(in srgb, var(--acc, var(--yellow)) 33%, transparent)); transition: fill .2s; }   /* the stations' on-air yellow and glow, held steady (Robert, 2026-10-11) */
.join path { fill: none; stroke: var(--acc-ink, #0d0b0b); }
.join:hover circle { fill: #DCD5C7; }
.show { display: block; font: 400 calc(var(--PW) * .016)/1.5 var(--helv); letter-spacing: .14em; word-spacing: 0; text-transform: uppercase; margin: calc(var(--PW) * .006) 0 calc(var(--PW) * .002); min-height: 1.5em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }   /* the show on air under the number (Robert, 2026-11-20), the call-out's small tracked caps; min-height so the poster doesn't jump while it loads */
.track { display: block; font: 400 calc(var(--PW) * .022)/1.35 var(--helv); letter-spacing: 0; word-spacing: 0; text-transform: none; margin-top: calc(var(--PW) * -.004); min-height: 1.35em; }  /* "artist - song" on one line, live from AzuraCast; the block is bottom-anchored so the number sits where the song line was. -.004: number ink → artist cap = the artist → song gap (Helvetica metrics: digit baseline .87 of a 1-line box, cap .714); min-height so the poster doesn't jump */
.track { overflow: hidden; white-space: nowrap; }
.track:not(.scroll) { text-overflow: ellipsis; }   /* too long + reduced motion: clip with …; otherwise marquee() scrolls it */
.track span { display: inline-block; }
