/* ==========================================================================
   Oklahoma Stage — shared design system
   Palette kept from the original landing page:
     bg #0f1115 · text #f5f6f8 · accent #e4572e
   ========================================================================== */

:root {
  --bg: #0f1115;
  --bg-elevated: #161a21;
  --bg-elevated-2: #1d222b;
  --fg: #f5f6f8;
  --muted: #9aa3af;
  --accent: #e4572e;
  --accent-hover: #f06b44;
  --accent-soft: rgba(228, 87, 46, 0.14);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --header-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { margin: 0; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  /* clearance for the fixed TuneGenie vuebar (~65px) pinned to the bottom */
  padding-bottom: 96px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* --------------------------------------------------------------------------
   Header / navigation (injected by site.js)
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 17, 21, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--header-h);
  flex-wrap: wrap;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text { font-size: 1.05rem; }
.brand-sub { color: var(--muted); font-weight: 600; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav-links a:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }

.nav-links a.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 4px;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.05s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-strong);
}
.btn-ghost:hover { border-color: var(--fg); }

.btn svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Generic sections / layout primitives
   -------------------------------------------------------------------------- */

.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.section-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
  margin: 0;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 4px 12px;
}

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--border);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 400px at 18% -10%, var(--accent-soft), transparent 60%),
    radial-gradient(700px 360px at 100% 0%, rgba(228, 87, 46, 0.08), transparent 55%);
  pointer-events: none;
}

.hero .container { position: relative; }

.hero h1 {
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 16px 0 14px;
}

.hero .lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  max-width: 56ch;
  margin: 0 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.callsign {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.callsign .freq {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

a.card:hover {
  border-color: var(--border-strong);
  background: var(--bg-elevated-2);
  transform: translateY(-2px);
}

.card-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.card h3 { margin: 8px 0 6px; font-size: 1.25rem; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.card-arrow {
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Station / channel tile with a colored top strip */
.tile-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.tile-mark svg { width: 22px; height: 22px; }

/* --------------------------------------------------------------------------
   Now playing (radio)
   -------------------------------------------------------------------------- */

.now-playing {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.np-art {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), #7a2d18);
  display: grid;
  place-items: center;
  color: #fff;
}
.np-art svg { width: 34px; height: 34px; opacity: 0.92; }

.np-meta { min-width: 0; }
.np-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.np-track { font-size: 1.35rem; font-weight: 700; margin: 4px 0 2px; letter-spacing: -0.01em; }
.np-artist { color: var(--muted); margin: 0; }

.np-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-size: 0.85rem;
  font-weight: 600;
}
.np-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(228, 87, 46, 0); }
  100% { box-shadow: 0 0 0 0 rgba(228, 87, 46, 0); }
}

/* --------------------------------------------------------------------------
   Schedule list
   -------------------------------------------------------------------------- */

.schedule { display: flex; flex-direction: column; gap: 2px; }
.schedule-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}
.schedule-time { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }
.schedule-show { font-weight: 600; }
.schedule-host { color: var(--muted); font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Video / live player placeholder (TV)
   -------------------------------------------------------------------------- */

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background:
    radial-gradient(600px 320px at 30% 20%, rgba(228, 87, 46, 0.18), transparent 60%),
    linear-gradient(135deg, #1a1e26, #0c0e12);
  display: grid;
  place-items: center;
}

.player-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 40px rgba(228, 87, 46, 0.35);
  transition: transform 0.15s ease, background 0.15s ease;
}
.player-play svg { width: 30px; height: 30px; margin-left: 3px; }
.player:hover .player-play { transform: scale(1.06); background: var(--accent-hover); }

.player-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.player-badge .np-dot { width: 8px; height: 8px; }

/* --------------------------------------------------------------------------
   Footer (injected by site.js, above the TuneGenie vuebar)
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 24px;
  padding: 40px 0 56px;
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { font-weight: 700; }
.footer-brand p { color: var(--muted); font-weight: 400; margin: 6px 0 0; max-width: 38ch; font-size: 0.92rem; }
.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.footer-col a { display: block; color: var(--fg); font-size: 0.92rem; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-legal {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.82rem;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .nav-inner { justify-content: center; }
  .nav-sep { display: none; }
}

@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .schedule-row { grid-template-columns: 90px 1fr; }
  .schedule-host { display: none; }
  .np-live { margin-left: 0; }
}
