/* KatchTV.com brand refresh — loaded last on every page.
   Rusty "Denmark" orange, modern wordmark, and an always-on TV mark. */
:root{
  --signal:#F5A03C;   /* bright golden rust */
  --signal-2:#FFB85C; /* hover */
}

/* ---------- Wordmark ---------- */
.brand-word,.splash-title{font-family:'Outfit',var(--sans);font-weight:600;letter-spacing:-.02em}
.brand-word{font-size:1.38rem;line-height:1}
.brand-word em,.splash-title em{font-family:inherit;font-weight:inherit;letter-spacing:inherit;font-style:normal;color:var(--signal)}
.brand-word .dotcom{font-size:.5em;font-weight:400;letter-spacing:.02em;margin-left:.18em;vertical-align:.18em}
.splash-title{letter-spacing:-.03em;font-weight:500}
.splash-title .dotcom{font-weight:400;letter-spacing:.02em}
.sf-brand .brand-word{font-size:1.55rem}
.brand{gap:12px}

/* ---------- Splash: blinking ON AIR ---------- */
.splash-onair{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;letter-spacing:.3em;color:var(--signal);margin:6px 0 10px;animation:onAir 1.6s steps(1,end) infinite}
.splash-onair .lamp{animation:none;width:9px;height:9px}
@keyframes onAir{0%,100%{opacity:1}55%{opacity:.4}}
@media (prefers-reduced-motion:reduce){.splash-onair{animation:none}}

/* ---------- Always-on TV mark ---------- */
.brand-mark.tv{width:40px;height:33px;overflow:visible;color:var(--paper)}
.brand-mark.tv .tv-screen{fill:var(--signal);animation:tvGlow 3.2s ease-in-out infinite}
.brand-mark.tv .tv-scan{fill:#fff;opacity:.28;animation:tvScan 2.4s linear infinite}
.brand-mark.tv .tv-glow{fill:var(--signal);filter:blur(5px);opacity:.45;animation:tvGlow 3.2s ease-in-out infinite}
@keyframes tvGlow{
  0%,100%{opacity:.95}
  42%{opacity:.35}
  47%{opacity:.8}
  50%{opacity:.4}
  58%{opacity:.9}
}
@keyframes tvScan{
  0%{transform:translateY(0);opacity:0}
  10%{opacity:.3}
  90%{opacity:.3}
  100%{transform:translateY(13px);opacity:0}
}
@media (prefers-reduced-motion:reduce){
  .brand-mark.tv .tv-screen,.brand-mark.tv .tv-glow,.brand-mark.tv .tv-scan{animation:none}
}

/* ---------- Control row under the video (nothing sits on top of the picture) ---------- */
.ctrl-row{display:flex;align-items:center;gap:10px;margin-top:10px}
.ctrl-row .progress{flex:1;margin:0;height:3px}
.ctrl-row.none .cr-b:not(#crMute):not(#crFull),.ctrl-row.none .cr-live,.ctrl-row.none .cr-vol{visibility:hidden}
.cr-b{width:34px;height:34px;flex:none;display:grid;place-items:center;border-radius:50%;border:1px solid var(--line);color:var(--paper);background:transparent;cursor:pointer;transition:border-color .15s,background .15s}
.cr-b:hover{border-color:var(--paper);background:rgba(255,255,255,.06)}
.cr-b svg{width:16px;height:16px}
#crPlay{width:38px;height:38px;border-color:var(--line-2)}
#crPlay svg{width:18px;height:18px}
.cr-live{display:inline-flex;align-items:center;gap:6px;flex:none;font:600 .66rem/1 var(--mono);letter-spacing:.14em;color:var(--paper);background:transparent;border:1px solid var(--line);border-radius:999px;padding:8px 10px;cursor:pointer}
.cr-live i{width:7px;height:7px;border-radius:50%;background:var(--signal);box-shadow:0 0 8px var(--signal)}
.ctrl-row.behind .cr-live{color:var(--signal);border-color:var(--signal)}
.ctrl-row.behind .cr-live i{background:var(--dim);box-shadow:none}
.cr-vol{width:84px;flex:none;accent-color:var(--signal)}
@media (max-width:600px){.cr-vol,.cr-live{display:none}}

/* ---------- Channel tuner: equal, compact cards ---------- */
.dial .station{flex:1 0 150px;min-width:150px;max-width:300px}
.dial .station .sl,.dial .station .so{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* ---------- Layout: compact video card, sidebar stays on the right ---------- */
.stage-wrap{max-width:1360px;grid-template-columns:minmax(0,1fr) 340px}
@media (max-width:1060px) and (min-width:641px){
  .stage-wrap{grid-template-columns:minmax(0,1fr) 260px;gap:18px}
  .rail .ch-num{font-size:3.2rem}
}
@media (max-width:640px){
  .stage-wrap{grid-template-columns:1fr}
}

/* ---------- Channel tuner sits under the video card ---------- */
.stage-col .tuner{padding:18px 0 4px;max-width:none;margin:0;gap:8px}
.stage-col .tune-arrow{width:38px;height:38px;font-size:1.2rem}
.stage-col .dial .station{flex:1 0 140px;min-width:140px;max-width:220px;padding:10px 12px 14px}
.stage-col .station .sn{font-size:1.35rem}
body.tv .stage-col .dial .station{flex-basis:200px;max-width:260px}
.stage-col{min-width:0}
@media (max-width:640px){.stage-wrap{grid-template-columns:minmax(0,1fr)}}

/* ---------- Katch It: viewer channel, no number, its own color ---------- */
.dial .station.katch{background:linear-gradient(180deg,rgba(255,207,107,.10),rgba(255,207,107,.03));border:1px dashed rgba(255,207,107,.45)}
.dial .station.katch .sn{color:#ffcf6b;font-style:normal}
.dial .station.katch .so{color:#ffcf6b;opacity:.85}
.dial .station.katch:hover{background:rgba(255,207,107,.14)}
.dial .station.katch.on{border-style:solid;border-color:rgba(255,207,107,.7)}

/* ---------- Tuner wraps like a caterpillar: 5 across under the video, the rest flow to the next row from the left ---------- */
.stage-col .tune-arrow{display:none}
.stage-col .dial{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;overflow:visible;background:none;padding:4px 0}
.stage-col .dial .station{min-width:0;max-width:none;flex:none}
.stage-col{container-type:inline-size}
@container (max-width:820px){.stage-col .dial{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container (max-width:620px){.stage-col .dial{grid-template-columns:repeat(3,minmax(0,1fr))}}
@container (max-width:440px){.stage-col .dial{grid-template-columns:repeat(2,minmax(0,1fr))}}
body.tv .stage-col .dial .station{max-width:none}


/* ---------- Support, Creator Spotlight, shop box ---------- */
.support-btn{color:var(--signal);border-color:rgba(245,160,60,.45)}
.support-btn:hover{background:rgba(245,160,60,.12)}
.spot-sec{display:grid;grid-template-columns:1fr 1fr;gap:56px;align-items:start}
@media(max-width:900px){.spot-sec{grid-template-columns:1fr}}
.plans{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 6px}
.plan{border:1px solid var(--line-2);border-radius:14px;padding:12px 16px;min-width:110px;background:rgba(255,255,255,.02)}
.plan b{display:block;font-size:1.5rem;color:var(--signal);font-weight:600}
.plan span{color:var(--muted);font-size:.85rem}
#spotForm select{width:100%}
.form-msg .btn{margin-top:10px;display:inline-flex}
.shop{border:1px solid var(--line);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:8px}
.shop a{color:var(--paper);text-decoration:none;font-size:.92rem}
.shop a:hover{color:var(--signal)}
.shop-note{font-size:.72rem;color:var(--dim);margin-top:4px}

/* KatchTV paused screen: the YouTube player is hidden (not covered) while the viewer has paused */
.screen.held .player-slot{visibility:hidden}
.held-card{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;text-align:center;padding:20px;z-index:3}
.held-card[hidden]{display:none}
.held-play{width:84px;height:84px;border-radius:50%;border:1px solid rgba(255,217,176,.55);background:rgba(245,160,60,.22);color:#ffd9b0;display:grid;place-items:center;cursor:pointer;backdrop-filter:blur(6px);transition:transform .15s,background .15s}
.held-play:hover{transform:scale(1.06);background:rgba(245,160,60,.35)}
.held-play svg{width:38px;height:38px;margin-left:4px}
.held-k{font:600 clamp(.9rem,1.7vw,1.2rem)/1.2 'JetBrains Mono',monospace;letter-spacing:.14em;color:#ffd9b0;margin-top:6px}
.held-title{color:#f3efe8;font-size:clamp(1rem,1.8vw,1.25rem);max-width:560px;opacity:.9}
