/* RHTV public site - matches the broadcast's CNBC-style look */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Archivo Black";
  src: url("fonts/ArchivoBlack-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("fonts/BarlowCondensed-700.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #071224;
  --panel: #0c1b33;
  --panel-2: #102344;
  --edge: #1d3557;
  --edge-hi: #2c4a7c;
  --blue: #0f7bff;
  --blue-deep: #0a2e5c;
  --red: #d0021b;
  --up: #21c25e;
  --down: #ff4d3d;
  --text: #f4f7fb;
  --muted: #93a7c4;
  --gold: #f5a800;
  --font-ui: "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Archivo Black", "Inter", sans-serif;
  --font-cond: "Barlow Condensed", "Arial Narrow", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font-ui);
  color: var(--text);
  background:
    radial-gradient(1400px 700px at 75% -15%, #10346422 0%, transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------- top bar ---------------- */
#topbar {
  display: flex;
  align-items: stretch;
  height: 76px;
  background: linear-gradient(180deg, #0d2148 0%, #081630 100%);
  border-bottom: 3px solid var(--blue);
}
#logo-block {
  padding: 0 26px;
  background: linear-gradient(180deg, #123c74, #0a2350);
  border-right: 1px solid var(--edge-hi);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
#logo { font-family: var(--font-display); font-size: 34px; line-height: 1; }
#logo span { color: var(--gold); }
#logo-sub {
  font-family: var(--font-cond);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--muted);
}
#show-name {
  display: flex;
  align-items: center;
  padding: 0 28px;
  font-family: var(--font-cond);
  font-size: 27px;
  letter-spacing: 3px;
}
#show-name b { font-weight: 700; margin-left: 9px; color: var(--gold); letter-spacing: 4px; }

#topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  padding-right: 24px;
}
#live-bug {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 3px;
  padding: 6px 16px 8px;
  border-radius: 4px;
}
#live-bug .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #fff;
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .2; } }
#clock { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
#date { font-family: var(--font-cond); font-size: 13px; letter-spacing: 2px; color: var(--muted); text-align: right; }

/* ---------------- ticker ---------------- */
#ticker {
  height: 46px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  background: #04070d;
  border-bottom: 1px solid #1a2233;
}
.ticker-label {
  display: flex;
  align-items: center;
  padding: 0 20px;
  background: var(--gold);
  color: #071224;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 2.5px;
}
.ticker-viewport { flex: 1; overflow: hidden; display: flex; align-items: center; }
.ticker-track {
  display: inline-flex;
  gap: 48px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 800;
  animation: marquee 45s linear infinite;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.tick .sym { color: #fff; margin-right: 10px; }
.tick .px { color: #a9c3e8; margin-right: 10px; }
.up { color: var(--up); }
.down { color: var(--down); }

/* ---------------- player ---------------- */
main {
  flex: 1;
  width: min(1280px, 96vw);
  margin: 0 auto;
  padding: 34px 0 20px;
}
#player-wrap { margin-bottom: 34px; }
#player {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #04070d;
  border: 1px solid var(--edge);
  border-top: 3px solid var(--blue);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 50px #00000088;
}
#stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #000;
  visibility: hidden;
}
#stream.playing { visibility: visible; }
#unmute {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 5;
  background: #071224ee;
  border: 2px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 2px;
  padding: 9px 18px 11px;
  border-radius: 999px;
  cursor: pointer;
}
#unmute:hover { filter: brightness(1.2); }
#unmute.hidden { display: none; }
#standby.hidden { display: none; }
#standby {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 0 24px;
  background:
    radial-gradient(900px 500px at 50% 30%, #10346444 0%, transparent 65%),
    #060d1c;
}
#standby .sb-logo { font-family: var(--font-display); font-size: 74px; }
#standby .sb-logo span { color: var(--gold); }
#standby .sb-msg {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 5px;
  color: var(--gold);
}
#standby .sb-sub { color: var(--muted); font-size: 17px; max-width: 560px; }

#player-strap {
  display: flex;
  align-items: stretch;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  box-shadow: 0 4px 18px #00000055;
}
.strap-tag {
  display: flex;
  align-items: center;
  background: var(--red);
  color: #fff;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 3px;
  padding: 8px 22px 10px;
}
.strap-headline {
  flex: 1;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #ffffff, #dde5ef);
  color: #0a1f44;
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .5px;
  padding: 10px 22px;
  text-transform: uppercase;
}
.strap-btn {
  display: flex;
  align-items: center;
  background: var(--gold);
  color: #071224;
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 2px;
  padding: 0 22px;
  text-decoration: none;
  white-space: nowrap;
}
.strap-btn:hover { filter: brightness(1.1); }

/* ---------------- about panels ---------------- */
#about {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.panel {
  background: linear-gradient(180deg, var(--panel-2), #0d1e3c);
  border: 1px solid var(--edge);
  border-left: 5px solid var(--gold);
  border-radius: 4px;
  padding: 22px 24px;
}
.panel-title {
  font-family: var(--font-cond);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 12px;
}
.panel p, .panel li { color: #c9d6ea; font-size: 15.5px; line-height: 1.55; }
.panel ul { list-style: none; }
.panel li { padding: 4px 0 4px 18px; position: relative; }
.panel li::before { content: "▸"; position: absolute; left: 0; color: var(--red); }

footer {
  text-align: center;
  padding: 26px 16px 30px;
  color: #5a6f8f;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  #show-name { display: none; }
  #about { grid-template-columns: 1fr; }
  #standby .sb-logo { font-size: 52px; }
  #standby .sb-msg { font-size: 22px; letter-spacing: 3px; }
}
