/* guytv house style: Helvetica Neue Condensed Bold (the [adult swim] face),
   dark grey, lots of empty space. */
@font-face {
  font-family: "ASFont";
  src: url("../fonts/guytv.ttf") format("truetype");
  font-display: swap;
}
:root {
  --bg: #212121;
  --fg: #fff;
  --dim: #8a8a8a;
  --line: #3a3a3a;
  --panel: #1a1a1a;
  --accent: #fff;
  --bad: #ff4d4d;
  --good: #7dff9b;
  --font: "ASFont", "Helvetica Neue", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
/* `hidden` must win over any display: rule (the off-air card relies on it). */
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--font); font-size: 17px; line-height: 1.35; -webkit-font-smoothing: antialiased; }
a { color: var(--fg); text-decoration: none; border-bottom: 1px solid var(--dim); }
a:hover { border-bottom-color: var(--fg); }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; margin: 0 0 .5em; text-transform: lowercase; }
h1 { font-size: 2.2rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.15rem; }
.dim { color: var(--dim); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }

/* ---------------------------------------------------------------- header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
       padding: 22px 0 18px; flex-wrap: wrap; }
.brand img { height: 64px; width: auto; display: block; }
.brand { font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em; text-transform: lowercase;
         border: 0; white-space: nowrap; }
.nav { display: flex; gap: 22px; text-transform: lowercase; font-weight: 700; flex-wrap: wrap; }
.nav a { border: 0; color: var(--dim); }
.nav a.on, .nav a:hover { color: var(--fg); }

/* ---------------------------------------------------------------- watch */
.player { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; outline: 1px solid var(--line);
          overflow: hidden; /* keeps the now-playing card (parked below) from spilling over the page */ }
.player video, .player iframe, .player .offair { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .offair { background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center;
                  text-align: center; font-weight: 700; font-size: clamp(1.1rem, 3vw, 2rem); text-transform: lowercase; padding: 16px; }
.player .offair small { color: var(--dim); font-size: .55em; margin-top: 1em; }
.player audio { position: absolute; left: 16px; right: 16px; bottom: 16px; width: calc(100% - 32px); }
.unmute { position: absolute; left: 16px; bottom: 16px; background: #000; color: #fff; border: 1px solid #fff;
          font: 700 15px var(--font); padding: 6px 12px; cursor: pointer; text-transform: lowercase; }
.nowbar { display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.nowbar .label { color: var(--dim); text-transform: lowercase; font-weight: 700; font-size: .85rem; }
.nowbar .title { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.nowbar .sub { color: var(--dim); }
.nowbar .desc { color: var(--dim); max-width: 70ch; margin-top: 8px; font-size: .95rem; line-height: 1.4; }
.nowbar .desc:empty { display: none; }
.later { list-style: none; padding: 0; margin: 18px 0 40px; }
.later li { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.later time { color: var(--dim); font-weight: 700; }
.chanlist { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 40px; }
.chanlist a { border: 1px solid var(--line); padding: 6px 10px; font-weight: 700; }
.chanlist a.on { border-color: var(--fg); }

/* a bump: white words on black, centered */
.bump { min-height: 50vh; display: flex; align-items: center; justify-content: center; text-align: center;
        font-weight: 700; font-size: clamp(1.4rem, 4vw, 2.6rem); text-transform: lowercase; padding: 40px 16px; }

/* ---------------------------------------------------------------- admin */
.admin .top { border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.admin .brand { display: flex; align-items: center; gap: 10px; }
.admin .brand img { height: 44px; }
.admin .brand::after { content: "control"; color: var(--dim); font-size: .55em; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--dim); font-weight: 700; text-transform: lowercase; font-size: .85rem; }
tr.missing td { color: var(--bad); }
tr.off td { opacity: .45; }
.table-wrap { overflow-x: auto; }
.card { border: 1px solid var(--line); padding: 18px; margin-bottom: 22px; background: var(--panel); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.row { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; }
label { display: block; font-weight: 700; font-size: .85rem; color: var(--dim); text-transform: lowercase; margin: 0 0 4px; }
label.inline { display: inline-flex; align-items: center; gap: 6px; color: var(--fg); font-weight: 400; font-size: .95rem; text-transform: none; }
input[type=text], input[type=password], input[type=number], input[type=url], input[type=datetime-local],
input[type=time], select, textarea {
  background: #000; color: #fff; border: 1px solid #444; padding: 8px 10px; font: 16px var(--font);
  width: 100%; max-width: 100%; border-radius: 0; }
input:focus, select:focus, textarea:focus { outline: 2px solid #fff; outline-offset: -1px; }
.field { margin-bottom: 14px; min-width: 140px; flex: 1; }
.btn, button { background: #fff; color: #000; border: 1px solid #fff; padding: 8px 16px; font: 700 15px var(--font);
               cursor: pointer; text-transform: lowercase; border-radius: 0; display: inline-block; }
.btn.ghost, button.ghost { background: #000; color: #fff; }
.btn.danger, button.danger { background: #000; color: var(--bad); border-color: var(--bad); }
.btn:hover, button:hover { filter: invert(1); }
.flash { border: 1px solid #fff; padding: 10px 14px; margin-bottom: 22px; }
.err { color: var(--bad); }
.pill { display: inline-block; border: 1px solid #555; padding: 0 6px; font-size: .78rem; font-weight: 700; text-transform: lowercase; }
.pill.live, .pill.ok { border-color: var(--good); color: var(--good); }
.pill.bad, .pill.draft { border-color: var(--bad); color: var(--bad); }
.k-episode { color: #fff; } .k-movie { color: #ffd84d; } .k-commercial { color: #8a8a8a; }
.k-bumper { color: #9ad0ff; } .k-slate, .k-filler { color: #555; }
.shows-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.shows-pick .show { border: 1px solid var(--line); padding: 10px; }
.shows-pick .seasons { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; padding-left: 22px; }
.copy { width: 100%; font-size: .8rem; }
details summary { cursor: pointer; font-weight: 700; text-transform: lowercase; }
.pager { display: flex; gap: 10px; margin: 16px 0; }
.sticky-actions { position: sticky; bottom: 0; background: #000; border-top: 1px solid var(--line); padding: 12px 0; }
@media (max-width: 640px) {
  .nowbar { grid-template-columns: 1fr; }
  .later li { grid-template-columns: 5.5em 1fr; }
  .hide-sm { display: none; }
}
.credits { font-size: .75rem; margin: 48px 0 24px; line-height: 1.5; }
