/* GMNA — broadcast network dark theme with a newspaper reading surface. */
:root {
  --bg: #0b0d12;
  --bg-2: #12151d;
  --bg-3: #171b25;
  --line: #262c3a;
  --ink: #eef1f7;
  --ink-2: #a6afc2;
  --ink-3: #6f7a8f;
  --accent: hsl(210 8% 60%);
  --live: #ff3b30;
  --radius: 14px;
  --wrap: 1180px;
  --wrap-wide: 1400px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  padding-bottom: 84px; /* room for the audio bar */
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.3rem, 2.2vw, 1.9rem); }
p { margin: 0 0 1em; }
.muted { color: var(--ink-2); }
.small { font-size: .85rem; }
.accent { color: var(--accent); }
.empty { color: var(--ink-2); padding: 2.5rem 0; text-align: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--accent); color: #000; padding: .6rem 1rem; z-index: 99; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.wrap-wide { max-width: var(--wrap-wide); }

/* ---------------------------------------------------------------- header -- */
.masthead { position: sticky; top: 0; z-index: 40; background: rgba(11,13,18,.86); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.masthead-bar { max-width: var(--wrap-wide); margin: 0 auto; padding: .7rem 1.25rem; display: flex; align-items: center; gap: 1.25rem; }
.brand { display: flex; align-items: baseline; gap: .6rem; }
.brand-mark { font-weight: 900; font-size: 1.35rem; letter-spacing: .12em; }
.brand-sub { color: var(--ink-3); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.masthead-nav { margin-left: auto; display: flex; align-items: center; gap: 1.1rem; font-size: .9rem; font-weight: 600; }
.search input, .searchbig input, .searchbig select {
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .85rem; min-width: 170px;
}
.search input:focus, .searchbig input:focus { outline: 2px solid var(--accent); border-color: transparent; }

.citybar { border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.citybar::-webkit-scrollbar { display: none; }
.citybar-inner { max-width: var(--wrap-wide); margin: 0 auto; padding: 0 1.25rem; display: flex; gap: .35rem; }
.citybar a { padding: .6rem .85rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.citybar a:hover { color: var(--ink); }
.citybar a.is-active { color: var(--ink); border-bottom-color: var(--live); }

/* ------------------------------------------------------------------ hero -- */
.hero { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 2rem; align-items: center; margin: 2rem 0 1rem; }
.hero-art { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--bg-3); aspect-ratio: 16/9; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-body h1, .hero-body h2 { margin-bottom: .3rem; }
.hero-dek { color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }

.card-play, .hero-play {
  position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; border-radius: 50%;
  background: rgba(11,13,18,.62); border: 2px solid rgba(255,255,255,.85);
  transition: transform .18s ease, background .18s ease;
}
.card-play::after {
  content: ""; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  transform: translateX(3px);
}
a:hover > .card-play { background: var(--accent); transform: scale(1.06); }

.btn {
  display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  background: var(--bg-3); border: 1px solid var(--line); color: var(--ink);
  padding: .62rem 1.15rem; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 650;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--accent); color: var(--ink); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #0b0d12; }
.btn-primary:hover { filter: brightness(1.1); color: #0b0d12; }
.btn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0d12; }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; background: var(--bg-3); border: 1px solid var(--line);
  border-radius: 999px; padding: .18rem .6rem; font-size: .72rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2);
}
.badge-live { background: rgba(255,59,48,.12); border-color: rgba(255,59,48,.5); color: #ff6b62; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------------------------------------------------------------- layout -- */
.band { margin: 3rem 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: .7rem; }
.section-head h2 { margin: 0; }
.section-head .muted { margin: .25rem 0 0; font-size: .9rem; }
.cta { font-size: .85rem; font-weight: 700; color: var(--accent); white-space: nowrap; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(255px, 1fr); gap: 1.1rem; overflow-x: auto; padding-bottom: .8rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.3rem; }

/* ------------------------------------------------------------------ card -- */
.card { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .16s ease, transform .16s ease; }
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card-art { position: relative; display: block; aspect-ratio: 16/9; background: var(--bg-3); }
.card-art img { width: 100%; height: 100%; object-fit: cover; }
.card-art .card-play { width: 46px; height: 46px; }
.card-art .card-play::after { border-left-width: 13px; border-top-width: 8px; border-bottom-width: 8px; }
.card-live { position: absolute; top: .55rem; left: .55rem; display: inline-flex; align-items: center; gap: .35rem; background: rgba(11,13,18,.82); color: #ff6b62; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: .2rem .5rem; border-radius: 999px; }
.card-dur { position: absolute; bottom: .55rem; right: .55rem; background: rgba(11,13,18,.85); font-size: .72rem; font-weight: 700; padding: .12rem .42rem; border-radius: 5px; }
.card-body { padding: .8rem .9rem 3rem; }
.card-title { font-size: 1rem; margin: 0 0 .2rem; }
.card-sub { margin: 0; font-size: .82rem; color: var(--ink-2); }
.card-listen {
  position: absolute; left: .9rem; bottom: .85rem; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: .25rem .75rem; font: inherit; font-size: .76rem; font-weight: 700;
}
.card-listen::before { content: "▸ "; color: var(--accent); }
.card-listen:hover { border-color: var(--accent); color: var(--ink); }
.card-listen[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #0b0d12; }
.card-listen[aria-pressed="true"]::before { content: "❚❚ "; color: #0b0d12; }

/* -------------------------------------------------------------- city grid -- */
.citygrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(265px, 1fr)); gap: 1.2rem; }
.citycard { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; transition: border-color .16s ease, transform .16s ease; }
.citycard:hover { border-color: var(--accent); transform: translateY(-2px); color: inherit; }
.citycard-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.citycard-head h3 { margin: 0; font-size: 1.25rem; }
.citycard-cta { margin-top: auto; padding-top: .9rem; font-size: .82rem; font-weight: 700; color: var(--accent); }

.schedule { list-style: none; margin: .9rem 0 0; padding: 0; display: grid; gap: .4rem; }
.schedule li { display: flex; align-items: center; gap: .55rem; font-size: .88rem; }
.sched-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.sched-name { font-weight: 600; }
.sched-time { margin-left: auto; color: var(--ink-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.schedule-row { grid-auto-flow: column; grid-auto-columns: max-content; gap: 1.2rem; align-items: center; }
.schedule-row .sched-time { margin-left: .35rem; }

/* ------------------------------------------------------------- newspaper -- */
.cityhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem; padding: 2.2rem 0 1.4rem; border-bottom: 2px solid var(--line); }
.cityhead h1 { margin: 0; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.kicker a { color: var(--ink-2); }
.lede { font-family: var(--serif); font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; }

.frontpage { display: grid; grid-template-columns: minmax(0, 2.4fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.frontpage-side { position: sticky; top: 110px; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.side-head { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: .5rem; }

.storylist { display: grid; gap: 1.6rem; }
.story { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 1.1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.story:last-child { border-bottom: 0; }
.story-art { border-radius: 10px; overflow: hidden; background: var(--bg-3); aspect-ratio: 16/9; }
.story-art img { width: 100%; height: 100%; object-fit: cover; }
.story-headline { font-family: var(--serif); font-size: 1.32rem; font-weight: 700; margin: .1rem 0 .35rem; letter-spacing: -.01em; }
.story-dek { color: var(--ink-2); font-size: .93rem; margin: 0; }
.story-lead { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 2rem; border-bottom: 2px solid var(--line); }
.story-lead .story-art { aspect-ratio: 16/8; border-radius: var(--radius); }
.story-lead .story-headline { font-size: clamp(1.7rem, 3vw, 2.6rem); }
.story-lead .story-dek { font-size: 1.06rem; font-family: var(--serif); }

/* --------------------------------------------------------------- article -- */
.storypage { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 3rem; align-items: start; padding-top: 1.5rem; }
.article { max-width: 74ch; }
.article-headline { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); margin: .2rem 0 .6rem; }
.article-dek { font-family: var(--serif); font-size: 1.2rem; color: var(--ink-2); }
.byline { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: .6rem 0; }
.article-art { margin: 1.6rem 0; }
.article-art img { border-radius: var(--radius); width: 100%; }
.article-body { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.15em; }
.watchbox { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: var(--bg-2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 2rem 0; }
.watchbox h3 { margin: 0; font-size: 1.1rem; }
.watchbox-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.storypage-side { position: sticky; top: 110px; }
.storypage-side .story { grid-template-columns: 92px minmax(0, 1fr); gap: .8rem; }
.storypage-side .story-headline { font-size: 1rem; }
.storypage-side .story-dek { display: none; }

/* --------------------------------------------------------------- episode -- */
.crumbs { font-size: .82rem; color: var(--ink-3); padding: 1.2rem 0 .2rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.episode-head { padding: .5rem 0 1.2rem; }
.player-frame { position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.episode-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.3rem 0; }
.rundown { list-style: none; counter-reset: r; margin: 0; padding: 0; display: grid; gap: .1rem; }
.rundown li { counter-increment: r; display: grid; grid-template-columns: 2.4rem 5rem minmax(0, 1fr) auto; gap: .8rem; align-items: baseline; padding: .7rem .6rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.rundown li::before { content: counter(r); color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: 700; }
.rundown-block { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.rundown-source { color: var(--ink-3); font-size: .8rem; text-align: right; }

/* --------------------------------------------------------------- filters -- */
.filters { display: grid; gap: .7rem; margin: 1.6rem 0 2rem; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; }
.filter-label { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); width: 3.4rem; }
.chip { background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #0b0d12; }
.guide-date { font-size: .84rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--line); padding-bottom: .5rem; margin-bottom: 1.1rem; }

.pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 2rem 0; font-weight: 650; font-size: .9rem; }
.pager .disabled { color: var(--ink-3); }
.searchbig { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.6rem 0 2rem; }
.searchbig input { flex: 1 1 320px; border-radius: 999px; padding: .7rem 1.1rem; font-size: 1rem; }
.searchbig select { border-radius: 999px; padding: .7rem 1rem; }
.notfound { padding: 4rem 0; text-align: center; }
.notfound .filter-row { justify-content: center; margin: 1.2rem 0 2rem; }

.plain { list-style: none; margin: 0; padding: 0; }
.plain.tight li { padding: .6rem 0; border-bottom: 1px solid var(--line); font-size: .9rem; }
.plain.tight li:last-child { border-bottom: 0; }
.plain.tight p { margin: .2rem 0 0; }

/* ---------------------------------------------------------------- footer -- */
.footer { border-top: 1px solid var(--line); margin-top: 4rem; padding: 2.5rem 0 3rem; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer h3 { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.footer .plain li { padding: .22rem 0; font-size: .9rem; color: var(--ink-2); }

/* ---------------------------------------------------------------- player -- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(18,21,29,.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.player[hidden] { display: none; }
.player-inner { max-width: var(--wrap-wide); margin: 0 auto; padding: .6rem 1.25rem; display: flex; align-items: center; gap: .9rem; }
.player-toggle { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; background: var(--accent, #fff); color: #0b0d12; display: grid; place-items: center; }
.icon-play { width: 0; height: 0; border-left: 12px solid currentColor; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.is-playing .icon-play { width: 12px; height: 14px; border: 0; margin: 0; background: linear-gradient(to right, currentColor 0 4px, transparent 4px 8px, currentColor 8px 12px); }
.player-meta { min-width: 0; display: grid; }
.player-title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-sub { font-size: .78rem; color: var(--ink-3); }
.player-seek { flex: 1; min-width: 80px; accent-color: var(--accent, #fff); cursor: pointer; }
.player-time { font-size: .8rem; color: var(--ink-2); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.player-close { flex: none; background: transparent; border: 0; color: var(--ink-3); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: .2rem .4rem; }
.player-close:hover { color: var(--ink); }

/* Whatever is currently in the audio bar gets flagged wherever it appears. */
[data-audio].is-current { border-color: var(--accent) !important; color: var(--ink); }

/* --------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 1.2rem; }
  .frontpage, .storypage { grid-template-columns: 1fr; gap: 2rem; }
  .frontpage-side, .storypage-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 15px; }
  .brand-sub { display: none; }
  .masthead-nav .search { display: none; }
  .story { grid-template-columns: 110px minmax(0, 1fr); gap: .85rem; }
  .story-headline { font-size: 1.05rem; }
  .rundown li { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .rundown-block, .rundown-source { display: none; }
  .cityhead { padding-top: 1.4rem; }
  .schedule-row { grid-auto-flow: row; grid-auto-columns: auto; gap: .4rem; }
  .player-meta { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Cards size to their own schedule rather than stretching to the tallest. */
.citygrid { align-items: start; }

/* Top stories from the featured broadcast, shown beside the hero art. */
.hero-rundown { list-style: none; margin: 1.1rem 0 0; padding: 0; display: grid; gap: .5rem; }
.hero-rundown li { position: relative; padding-left: 1rem; font-size: .95rem; color: var(--ink-2); line-height: 1.4; }
.hero-rundown li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
