/*
==============================================================================
  AVAVA | Radio Station HTML Template
  stations.css — styles of the Stations page (loaded after style.css)
==============================================================================

  TABLE OF CONTENTS

  01. Channel detail — "94.8 Night Lounge" (the intro lives in style.css)
  02. Week — "Six channels, one day at a time"
  03. Listen elsewhere — "The stream is just a link"
  04. Requests — "Talk to the studio"
  05. Responsive

==============================================================================
*/

/* ============================================================================
   01. Channel detail
   ========================================================================= */
.sec--detail { background: var(--card); padding-top: 60px; }
.sd-head { display: flex; align-items: flex-end; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 36px); padding-bottom: clamp(14px, 1.8vw, 22px); border-bottom: 2px solid var(--ink); }
.sd-head .freq { font: 800 clamp(52px, 10vw, 150px) / .8 Orbitron, sans-serif; letter-spacing: -.02em; color: var(--accent); }
.sd-head .who { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1 1 220px; padding-bottom: 6px; }
.sd-head h2 { font: 700 clamp(22px, 2.6vw, 38px) / .98 'Bricolage Grotesque', sans-serif; letter-spacing: -.04em; text-transform: uppercase; }
.sd-head .who .mono { letter-spacing: .18em; color: var(--i6); }
.sd-listen {
  flex: none; display: inline-flex; align-items: center; gap: 11px;
  margin-bottom: 6px; padding: 14px 22px;
  background: var(--accent); color: #fff;
  font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .2em;
}
.sd-listen .eq { color: var(--ink); }
.sd-listen:hover { background: #141110; color: #fff; }
.sd-listen:hover .eq { color: var(--accent); }
:root[data-theme="dark"] .sd-listen:hover { background: #fff; color: #0c0c0d; }
.sd-shift { display: flex; flex-direction: column; gap: 8px; padding: clamp(16px, 2vw, 24px) 0; }
.sd-band { position: relative; display: flex; gap: 2px; height: 30px; }
.sd-band .hb { flex: 1; height: 30px; background: var(--i12); display: flex; align-items: center; padding: 0 8px; }
.sd-band .hb .mono { letter-spacing: .1em; color: var(--i55); }
.sd-band .hb--done { background: var(--i28); }
.sd-band .hb--on { background: var(--accent); }
.sd-band .hb--on .mono { color: var(--ink); }
.sd-band .needle { position: absolute; left: 31.5%; top: -5px; bottom: -5px; width: 2px; background: var(--ink); box-shadow: 0 0 10px var(--i5); }
.sd-shift .row { display: flex; align-items: baseline; gap: 14px; }
.sd-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); border-top: 1px solid var(--i16); padding-top: clamp(16px, 2vw, 24px); }
.sd-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 0 clamp(14px, 1.6vw, 22px); border-right: 1px solid var(--i16); }
.sd-col:first-child { padding-left: 0; }
.sd-col:last-child { padding-right: 0; border-right: 0; }
.sd-col h3 { font: 400 12px / normal 'DM Mono', ui-monospace, monospace; letter-spacing: .22em; text-transform: uppercase; color: var(--i55); }
.sd-col h3.accent { color: var(--accent); }
.sd-col ul { display: flex; flex-direction: column; gap: 10px; }   /* the rows sit in the column's rhythm, as in the prototype */
.sd-col li { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-bottom: 9px; border-bottom: 1px solid var(--i14); }
.sd-col .tr { font: 600 14px / 1.35 Archivo, sans-serif; text-wrap: pretty; }
.sd-col .hn { font: 700 clamp(14px, 1.4vw, 17px) / 1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.sd-col li.is-on .tr, .sd-col li.is-on .hn { color: var(--accent); }
.sd-col p { font: 400 15px / 1.6 Archivo, sans-serif; color: var(--i68); text-wrap: pretty; }
.sd-col .kv { display: flex; align-items: baseline; gap: 10px; padding-bottom: 9px; border-bottom: 1px solid var(--i14); }
.sd-col .kv .v { margin-left: auto; letter-spacing: .14em; color: var(--ink); white-space: nowrap; }

/* ============================================================================
   02. Week
   ========================================================================= */
.wk-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(18px, 2.2vw, 28px); }
.h2--w { font-size: clamp(26px, 3.2vw, 52px); line-height: .96; letter-spacing: -.045em; }
.wk-day { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.wk-seg { display: flex; border: 1px solid var(--i28); }
.wk-seg button { padding: 9px 14px; color: var(--i75); font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .16em; }
.wk-seg button:hover { color: var(--accent); }
.wk-seg button.is-on { background: var(--accent); color: #fff; }
.wk-grid, .wk-row { display: grid; grid-template-columns: clamp(150px, 16vw, 210px) minmax(0, 1fr) clamp(92px, 10vw, 120px); gap: clamp(12px, 1.6vw, 22px); }
.wk-density { align-items: end; padding-bottom: 8px; }
.wk-density .lbl { display: flex; flex-direction: column; gap: 5px; padding-bottom: 2px; }
.wk-density .lane { position: relative; min-width: 0; }
.wk-density .bars { display: flex; gap: 1px; height: 22px; align-items: flex-end; }
.wk-density .bars > span { flex: 1; background: var(--i22); }
.wk-density .bars > span.is-on { background: var(--accent); }
.wk-density .bars > span.is-now { background: var(--ink); }
.wk-density .ticks { display: flex; justify-content: space-between; padding-top: 7px; }
.wk-density .ticks > span { letter-spacing: .1em; color: var(--i45); }
.wk-now { position: absolute; left: 94.17%; transform: translateX(-50%); top: -24px; padding: 3px 7px; background: var(--accent); color: #fff; white-space: nowrap; }
.wk-sum { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; padding-bottom: 2px; }
.wk-sum b, .wk-row .sum b { font: 800 clamp(16px, 1.7vw, 22px) / 1 Orbitron, sans-serif; }
.wk-sum b .mono, .wk-row .sum b .mono { font-weight: 800; letter-spacing: .1em; color: var(--i5); margin-left: 4px; }
.wk-rows { display: flex; flex-direction: column; border-top: 2px solid var(--ink); }
.wk-row { position: relative; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--i12); transition: background .18s ease; }
.wk-row:hover { background: var(--hover); }
.wk-row.is-live { padding-left: 12px; background: linear-gradient(90deg, rgba(201, 80, 42, .12), rgba(201, 80, 42, .02) 70%); }
.wk-row.is-live::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--accent); }
/* the channel's name is the control that opens it in the panel above, so the
   block is a button now: it keeps the row's look and gains a focus ring */
.wk-ch { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.wk-ch:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.wk-row.is-picked .wk-ch .nm b { color: var(--accent); }
.wk-row.is-picked { background: color-mix(in srgb, var(--accent) 6%, transparent); }
/* while this channel is the one sounding the button reads as pressed: it drops
   the ember fill for the shell, keeps a hairline of ember around it and lets
   the bars carry the colour. The fill is not kept with ember text on it —
   that was ember on ember, and the word disappeared. */
.sd-listen.is-on { background: var(--shell); color: #fff; box-shadow: inset 0 0 0 1px var(--accent); }
.sd-listen.is-on .eq { color: var(--accent); }
.sd-listen.is-on:hover { background: var(--accent); color: #fff; box-shadow: none; }
.sd-listen.is-on:hover .eq { color: #fff; }
/* A name laid straight over the stripes of an automated block is hard to read,
   so it sits on a plate. The colour is written out rather than taken from
   --panel or --paper: those tokens are background shorthands with a texture in
   them, and a colour cannot be taken from one (the same trap as on the play
   button). */
.wblk--auto .in { padding: 0 5px; background: #141416; color: var(--i84); }
:root:not([data-theme="dark"]) .wblk--auto .in { background: #fff; }
.wk-ch .nm { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.wk-ch .nm b { font: 800 clamp(14px, 1.5vw, 19px) / 1 Orbitron, sans-serif; flex: none; }
.wk-ch .nm span { font: 700 clamp(12px, 1.2vw, 15px) / 1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.02em; text-transform: uppercase; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-ch .lis { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wk-ch .lis .n { flex: none; letter-spacing: .12em; color: var(--i5); }
.wk-ch .lis .bar { flex: 1; min-width: 20px; height: 2px; background: var(--i14); }
.wk-ch .lis .bar > span { display: block; height: 2px; background: var(--i4); }
.wk-ch .host { letter-spacing: .12em; color: var(--i4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-row.is-live .nm b, .wk-row.is-live .nm span, .wk-row.is-live .lis .n { color: var(--accent); }
.wk-row.is-live .lis .bar > span { background: var(--accent); }
.wk-lane { position: relative; height: 44px; min-width: 0; }
.wk-lane .lines { position: absolute; inset: 0; display: flex; justify-content: space-between; }
.wk-lane .lines > span { width: 1px; background: var(--i10); }
.wk-lane .needle { position: absolute; left: 94.17%; top: -2px; bottom: -2px; width: 1px; background: var(--i55); }
.wblk {
  position: absolute; top: 6px; bottom: 6px;
  background: var(--i14); border: 1px solid var(--i28);
  display: flex; align-items: center; padding: 0 8px; min-width: 0;
  cursor: pointer; transition: transform .16s ease, border-color .16s ease;
}
.wblk:hover { transform: translateY(-2px); border-color: var(--accent); }
.wblk--auto { background: repeating-linear-gradient(135deg, var(--i10) 0 6px, var(--i5) 6px 12px); border-color: var(--i16); }
.wblk--on { background: var(--accent); border-color: var(--accent); }
.wblk--on .done { position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: var(--i18); }
.wblk .in { position: relative; letter-spacing: .06em; color: var(--i75); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wblk .len { position: relative; flex: none; margin-left: auto; letter-spacing: .06em; color: var(--i45); }
.wblk .out { position: absolute; top: 50%; transform: translateY(-50%); letter-spacing: .06em; color: var(--i6); white-space: nowrap; }
.wblk .out--r { left: calc(100% + 8px); }
.wblk .out--l { right: calc(100% + 8px); }
.wblk--on .out { color: var(--accent); }
.wk-row .sum { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.wk-row .sum b { color: var(--ink); }
.wk-row.is-live .sum b { color: var(--accent); }
.wk-legend { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 14px; }
.wk-legend .k { display: inline-flex; align-items: center; gap: 7px; color: var(--i55); }
.wk-legend .k > i { display: block; width: 14px; height: 8px; }
.wk-legend .k--on > i { background: var(--accent); }
.wk-legend .k--live > i { background: var(--i14); border: 1px solid var(--i28); }
.wk-legend .k--auto { color: var(--i45); }
.wk-legend .k--auto > i { background: repeating-linear-gradient(135deg, var(--i10) 0 6px, var(--i5) 6px 12px); border: 1px solid var(--i16); }
.wk-legend .now { display: inline-flex; align-items: center; gap: 9px; color: var(--accent); }

/* ============================================================================
   03. Listen elsewhere
   ========================================================================= */
.le-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 20px; margin-bottom: clamp(18px, 2.2vw, 28px); }
.le-head .up { display: flex; align-items: center; gap: 10px; }
.le-head .up .eq { color: var(--accent); }
.le-head .up .sl { color: var(--i28); }
.le-box { display: grid; grid-template-columns: clamp(220px, 26vw, 340px) minmax(0, 1fr); border: 1px solid var(--i14); }
.le-formats { display: flex; flex-direction: column; gap: 9px; padding: clamp(18px, 2vw, 28px); border-right: 1px solid var(--i14); }
.le-formats > .mono { margin-bottom: 4px; }
.fmt { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 11px; align-items: center; padding: 11px 12px; border: 1px solid var(--i16); text-align: left; transition: border-color .16s ease; }
.fmt:hover { border-color: var(--accent); }
.fmt .r { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--i4); display: grid; place-items: center; }
.fmt .r::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); opacity: 0; }
.fmt .body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fmt .body .nm { letter-spacing: .16em; color: var(--ink); }
.fmt .body .file { letter-spacing: .08em; color: var(--i45); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fmt .val { letter-spacing: .12em; color: var(--i55); white-space: nowrap; }
.fmt.is-on { gap: 9px; border-color: var(--accent); background: rgba(201, 80, 42, .12); }
.fmt.is-on .r { border-color: var(--accent); }
.fmt.is-on .r::after { opacity: 1; }
.fmt.is-on .body .nm, .fmt.is-on .val { color: var(--accent); }
.le-main { display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 22px); padding: clamp(18px, 2vw, 28px); min-width: 0; }
.le-url { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.le-url .box { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--i28); min-width: 0; }
.le-url .box .u { font-family: 'DM Mono', ui-monospace, monospace; font-size: clamp(14px, 1.5vw, 20px); letter-spacing: .02em; color: var(--ink); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.le-url .box .u .p { color: var(--i45); }
.le-url .box .u .f { color: var(--accent); }
.le-copy { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--accent); color: #fff; font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: .18em; }
.le-copy:hover { background: #fff; color: var(--shell); }
.le-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: clamp(12px, 1.6vw, 22px); padding-top: 12px; border-top: 1px solid var(--i14); }
.le-specs > div { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.le-specs .k { letter-spacing: .18em; color: var(--i45); }
.le-specs .v { letter-spacing: .06em; color: var(--ink); overflow-wrap: anywhere; }
.le-specs .v.accent { color: var(--accent); }
.le-up { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.le-up .row { display: flex; align-items: baseline; gap: 12px; }
.le-days { display: flex; gap: 2px; height: 14px; align-items: flex-end; }
.le-days > span { flex: 1; height: 14px; background: var(--accent); }
.le-days > span.d9 { height: 9px; background: rgba(201, 80, 42, .55); }
.le-days > span.d5 { height: 5px; background: var(--i28); }
.le-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: clamp(20px, 2.4vw, 32px); border-top: 2px solid var(--ink); }
.way { display: flex; flex-direction: column; gap: 11px; min-width: 0; padding: clamp(18px, 2vw, 26px) clamp(14px, 1.6vw, 22px); border-right: 1px solid var(--i14); border-bottom: 1px solid var(--i14); transition: background .18s ease; color: inherit; }
.way:first-child { padding-left: 0; }
.way:last-child { padding-right: 0; border-right: 0; }
.way:hover { background: var(--hover); }
.way .row { display: flex; align-items: baseline; gap: 10px; }
.way .row .no { letter-spacing: .16em; color: var(--i45); }
.way .row .c { margin-left: auto; letter-spacing: .12em; color: var(--i45); white-space: nowrap; }
.way h3 { font: 700 clamp(16px, 1.7vw, 22px) / 1.1 'Bricolage Grotesque', sans-serif; letter-spacing: -.03em; text-transform: uppercase; }
.way--on .row .no, .way--on h3 { color: var(--accent); }
.way p { font-family: 'DM Mono', ui-monospace, monospace; font-size: 12px; line-height: 1.6; letter-spacing: .04em; color: var(--i6); text-wrap: pretty; }
.way .go { margin-top: auto; color: var(--accent); }
.way:hover .go { color: var(--ink); }
.le-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 16px; }
.le-foot .qr { display: flex; align-items: center; gap: 12px; }
.le-foot .qr > i { display: block; width: 44px; height: 44px; flex: none; border: 3px solid var(--ink); background: repeating-conic-gradient(var(--ink) 0 25%, transparent 0 50%) 0 0 / 8px 8px; }

/* ============================================================================
   04. Requests — "Talk to the studio"
   ========================================================================= */

/* ============================================================================
   05. Responsive
   ========================================================================= */
@media (max-width: 1100px) {
  .le-box { grid-template-columns: minmax(0, 1fr); }
  .le-formats { border-right: 0; border-bottom: 1px solid var(--i14); }
}

@media (max-width: 760px) {
  .sec--detail { padding-top: 40px; }
  .sd-cols { grid-template-columns: minmax(0, 1fr); }
  .sd-col { padding: 0 0 16px; border-right: 0; }
  .sd-band .hb .mono { display: none; }
  .wk-grid, .wk-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk-density .lbl, .wk-sum { display: none; }
  .wk-row .sum { flex-direction: row; align-items: baseline; gap: 12px; }
  .wblk .out { display: none; }
  .way { padding-left: 0; padding-right: 0; border-right: 0; }
}
