/* news.robinett.ai — the RFNB studio: navy dotted map, red LIVE, gold hairlines, white lower thirds. */
:root {
  --navy: #0a1430; --navy-2: #122352; --ink: #f4f6fb; --mute: #9aa7c7;
  --red: #d8232a; --red-deep: #a3161c; --gold: #e9b94a; --white: #ffffff; --black: #0b0b0f;
  --cond: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--navy); font-family: var(--sans);
  font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(ellipse 70% 50% at 50% 40%, rgba(60, 110, 220, .28), transparent 70%),
    radial-gradient(circle at 0% 100%, rgba(216, 35, 42, .18), transparent 40%),
    radial-gradient(rgba(140, 170, 235, .22) 1px, transparent 1.3px);
  background-size: auto, auto, 14px 14px;
  background-attachment: fixed;
}
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
a { color: inherit; }

.set { max-width: 60rem; margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }

/* Top bar: LIVE, the network bug, the counter */
.topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem 1.25rem .9rem;
          border-bottom: 1px solid var(--gold); box-shadow: 0 1px 0 rgba(233,185,74,.25), 0 3px 0 rgba(216,35,42,.6); }
.live { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; font-family: var(--cond); font-weight: 700; text-transform: uppercase;
        letter-spacing: .08em; font-size: .9rem; background: var(--red); color: #fff; padding: .15rem .6rem .15rem .5rem; border: 1px solid #ff6b70; }
.live .dot { width: .5rem; height: .5rem; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(255,255,255,.3); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.live .studio { font-weight: 600; letter-spacing: .14em; font-size: .72rem; color: var(--ink); background: var(--black); margin: -.15rem -.6rem -.15rem .2rem; padding: .25rem .6rem; }
.bug { display: inline-flex; align-items: stretch; text-decoration: none; border: 1px solid rgba(233,185,74,.6); background: rgba(5,10,28,.7); }
.bug-mark { display: flex; align-items: center; font-family: var(--cond); font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; background: var(--red); color: #fff; padding: .25rem .7rem; }
.bug-text { display: flex; flex-direction: column; justify-content: center; padding: .25rem .8rem; line-height: 1.1; }
.bug-text strong { font-family: var(--cond); font-weight: 700; font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.bug-text small { font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); }
.clock { justify-self: end; font-family: var(--cond); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: var(--mute); }

/* Stage */
.stage { padding: 1.75rem 1.25rem 2.5rem; }
.monitor { position: relative; aspect-ratio: 16 / 9; background: #000; border: 2px solid rgba(233,185,74,.7);
           box-shadow: 0 0 0 6px rgba(5,10,28,.8), 0 0 0 7px rgba(216,35,42,.7), 0 30px 60px rgba(0,0,0,.5); }
.monitor iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.monitor.standby { display: grid; place-items: center; font-family: var(--cond); font-weight: 800; font-size: clamp(2.5rem, 10vw, 5rem); letter-spacing: .2em; text-transform: uppercase; color: var(--mute);
                   background: repeating-linear-gradient(90deg, #111 0 12.5%, #1a1a1a 0 25%); }

/* Lower third */
.lower-third { position: relative; margin: 1.6rem 0 0; max-width: 40rem; }
.lower-third .tag { display: inline-block; font-family: var(--cond); font-weight: 700; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
                    background: var(--red); color: #fff; padding: .25rem .9rem; clip-path: polygon(0 0, 100% 0, calc(100% - .6rem) 100%, 0 100%); }
.lower-third h1 { margin: 0; background: var(--white); color: var(--black); font-family: var(--cond); font-weight: 800; text-transform: uppercase;
                  font-size: clamp(1.6rem, 5vw, 2.6rem); line-height: 1; letter-spacing: .02em; padding: .55rem .9rem .5rem; border-left: .5rem solid var(--red); }
.lower-third .sub { margin: 0; background: var(--black); color: var(--ink); font-family: var(--cond); font-weight: 600; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
                    padding: .4rem .9rem; border-left: .5rem solid var(--gold); }

/* Rundown */
.rundown { margin-top: 2.5rem; }
.rundown h2 { margin: 0 0 .5rem; font-family: var(--cond); font-weight: 700; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.rundown ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(233,185,74,.5); }
.rundown li { display: grid; grid-template-columns: 3.5rem 1fr auto; align-items: baseline; gap: 1rem; padding: .7rem .25rem; border-bottom: 1px solid rgba(154,167,199,.25); }
.rundown .num { font-family: var(--cond); font-weight: 800; font-size: 1.4rem; color: var(--red); }
.rundown .ttl { font-family: var(--cond); font-weight: 600; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }
a.ttl:hover { color: var(--gold); }
.rundown .when { font-size: .85rem; color: var(--mute); }
.rundown .current .ttl::after { content: " · On air"; color: var(--gold); font-size: .75rem; letter-spacing: .14em; }

/* Ticker */
.ticker { margin-top: auto; display: grid; grid-template-columns: auto 1fr auto; align-items: stretch; background: var(--black); border-top: 3px solid var(--red); font-family: var(--cond); text-transform: uppercase; }
.ticker-tag { display: flex; align-items: center; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: .9rem; padding: .7rem 1rem; }
.ticker-track { overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-reel { display: inline-flex; gap: 1.25rem; white-space: nowrap; padding-left: 100%; animation: reel 45s linear infinite; font-weight: 600; letter-spacing: .08em; font-size: .95rem; }
.ticker-reel i { font-style: normal; color: var(--gold); font-size: .7rem; letter-spacing: .2em; align-self: center; }
@keyframes reel { to { transform: translateX(-100%); } }
.ticker-bug { display: flex; align-items: center; gap: .4rem; padding: 0 1rem; background: var(--red); color: #fff; font-weight: 800; letter-spacing: .1em; }
.ticker-bug small { font-size: .55rem; background: #fff; color: var(--red); padding: 0 .25rem; }
.ticker-bug em { font-style: normal; font-weight: 600; font-size: .7rem; color: var(--gold); border-left: 1px solid rgba(255,255,255,.4); padding-left: .5rem; }
@media (prefers-reduced-motion: reduce) { .ticker-reel { animation: none; padding-left: 0; } .live .dot { animation: none; } }

@media (max-width: 40rem) {
  .topbar { grid-template-columns: auto 1fr; padding: .75rem 1rem; }
  .bug { grid-column: 1 / -1; order: 3; justify-self: start; }
  .bug-text strong { font-size: .95rem; }
  .bug-text small { display: none; }
  .clock { font-size: .7rem; }
  .stage { padding: 1.25rem 0 2rem; }
  .monitor { border-left: 0; border-right: 0; box-shadow: none; }
  .lower-third, .rundown { margin-left: 1rem; margin-right: 1rem; }
  .rundown li { grid-template-columns: 2.5rem 1fr; }
  .rundown .when { grid-column: 2; }
  .ticker-bug em { display: none; }
}
