:root {
  --navy: #0b1f3a;
  --navy-2: #12345f;
  --navy-3: #1b4a86;
  --accent: #e63946;
  --accent-dark: #c92b38;
  --gold: #f2c14e;
  --bg: #f6f7fa;
  --card: #ffffff;
  --ink: #101828;
  --muted: #667085;
  --muted-2: #98a2b3;
  --line: #e5e8ef;
  --line-strong: #d4d9e3;
  --blue: #1d4ed8;
  --cyan: #0e7490;
  --green: #15803d;
  --orange: #b45309;
  --purple: #6d28d9;
  --pink: #be185d;
  --amber: #a16207;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
  --shadow: 0 8px 24px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 31, 58, 0.18);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1220px;
  --header-h: 92px;
  --player-h: 84px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

body.theme-festive {
  --navy: #6d1520;
  --navy-2: #8c1c26;
  --navy-3: #b02a2a;
  --accent: #c1121f;
  --gold: #f4c95d;
  --bg: #fffaf5;
  --line: #f0e0d6;
  --line-strong: #e6cdbf;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding-bottom: calc(var(--player-h) + 8px);
}

body.no-player { padding-bottom: 0; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

.wrap {
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
}

/* ---------------- Festive strip ---------------- */
.festive-strip {
  background: linear-gradient(90deg, #7c1420, #b0232b 45%, #7c1420);
  color: #fff5df;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  text-align: center;
  padding: 7px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.festive-strip span { color: var(--gold); font-weight: 700; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: var(--header-h);
  padding: 14px 0;
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand img { height: 52px; width: auto; max-width: 210px; object-fit: contain; }
.brand-logo-text {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy), var(--navy-3));
  color: #fff; font-weight: 800; font-size: 1rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.02em; line-height: 1.1; }
.brand-slogan { font-size: 0.78rem; color: var(--muted); margin-top: 3px; letter-spacing: 0.02em; }

.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; flex: 1; flex-wrap: wrap; }
.main-nav a {
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #344054;
  white-space: nowrap;
}
.main-nav a:hover { background: #f2f4f8; color: var(--navy); }
.main-nav a.active { color: var(--accent); background: #fdf1f2; }
.main-nav a.admin-link {
  color: var(--navy);
  border: 1px solid var(--line-strong);
  margin-left: 4px;
  background: #fbfcfe;
}
.main-nav a.admin-link:hover { border-color: var(--navy); background: var(--navy); color: #fff; }

.header-widgets { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.temp-badge {
  display: flex; align-items: center; gap: 7px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #344054;
  white-space: nowrap;
}
.temp-badge b { color: var(--navy); font-size: 0.95rem; }
.live-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 8px 15px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(230, 57, 70, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}
.live-pill:hover { background: var(--accent-dark); transform: translateY(-1px); }
.live-pill.is-playing { background: var(--navy); border-color: var(--navy); box-shadow: 0 4px 14px rgba(11, 31, 58, 0.28); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; position: relative; }
.live-dot::after {
  content: ""; position: absolute; inset: -4px;
  border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.65);
  animation: pulse 1.9s infinite;
}
@keyframes pulse {
  0% { transform: scale(0.7); opacity: 0.9; }
  70% { transform: scale(1.9); opacity: 0; }
  100% { opacity: 0; }
}
.nav-toggle { display: none; }

@media (max-width: 1080px) {
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .header-widgets { margin-left: auto; }
}
@media (max-width: 640px) {
  .brand img { height: 42px; max-width: 150px; }
  .brand-slogan { font-size: 0.72rem; }
  .temp-badge { display: none; }
  .header-inner { min-height: 0; padding: 10px 0; }
  .brand-name { font-size: 1.05rem; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(1100px 420px at 82% -10%, rgba(56, 130, 246, 0.42), transparent 62%),
    radial-gradient(800px 380px at 6% 118%, rgba(20, 60, 120, 0.65), transparent 60%),
    linear-gradient(126deg, var(--navy) 0%, var(--navy-2) 52%, #14417a 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/assets/img/wave.svg");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: 118% auto;
  opacity: 0.16;
  pointer-events: none;
}
.hero.theme-festive {
  background:
    radial-gradient(900px 400px at 80% -5%, rgba(244, 201, 93, 0.35), transparent 60%),
    radial-gradient(700px 360px at 4% 110%, rgba(24, 74, 45, 0.55), transparent 60%),
    linear-gradient(128deg, #5e1018 0%, #8c1c26 48%, #0f3d2b 100%);
}
.hero.theme-festive::before {
  background-image: url("/assets/img/snow.svg");
  opacity: 0.5;
  animation: snowfall 26s linear infinite;
}
@keyframes snowfall {
  from { background-position: 0 0; }
  to { background-position: 240px 620px; }
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 352px;
  gap: 32px;
  padding: 42px 0 46px;
  align-items: center;
  width: min(100% - 40px, var(--maxw));
  margin: 0 auto;
}
.hero-festive-copy { grid-column: 1 / -1; margin-bottom: -6px; }
.hero-festive-copy .festive-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(244, 201, 93, 0.16);
  border: 1px solid rgba(244, 201, 93, 0.45);
  color: #ffe6a3;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.hero-festive-copy h1 { font-size: clamp(1.6rem, 3.2vw, 2.6rem); margin: 0 0 8px; letter-spacing: -0.02em; }
.hero-festive-copy p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 640px; }

.now-playing-card {
  display: flex;
  gap: 24px;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  padding: 22px;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-lg);
}
.now-art {
  width: 178px; height: 178px; flex-shrink: 0;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(150deg, #1c3d68, #0a1a30);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  position: relative;
}
.now-art img { width: 100%; height: 100%; object-fit: cover; }
.now-art .art-initials { font-size: 2.4rem; color: rgba(255,255,255,0.9); }
.now-meta { min-width: 0; flex: 1; }
.now-label {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.16em;
  color: #8ec5ff; text-transform: uppercase; margin-bottom: 10px;
}
.now-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18); }
.now-track { font-size: clamp(1.35rem, 2.4vw, 1.85rem); font-weight: 800; line-height: 1.18; margin: 0 0 6px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.now-artist { color: rgba(255, 255, 255, 0.74); font-size: 1rem; margin: 0 0 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-listen {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--accent); color: #fff; border: 0;
  padding: 11px 22px; border-radius: 999px;
  font-weight: 800; font-size: 0.92rem; cursor: pointer;
  box-shadow: 0 10px 24px rgba(230, 57, 70, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn-listen:hover { transform: translateY(-1px); background: var(--accent-dark); }
.btn-listen.is-playing { background: rgba(255, 255, 255, 0.16); box-shadow: none; border: 1px solid rgba(255,255,255,0.35); }
.btn-ghost-light {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff; padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
}
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.18); }

.onair-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.onair-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.onair-head .label { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.onair-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fef2f2; color: var(--accent);
  border: 1px solid #fbd5d9;
  font-size: 0.66rem; font-weight: 900; letter-spacing: 0.1em;
  padding: 4px 9px; border-radius: 999px;
}
.onair-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.onair-photo {
  width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden;
  background: linear-gradient(150deg, #dbe7f7, #b9cde8);
  display: grid; place-items: center; margin-bottom: 14px;
}
.onair-photo img { width: 100%; height: 100%; object-fit: cover; }
.onair-photo .art-initials { color: var(--navy); background: transparent; font-size: 2.1rem; }
.onair-show { font-weight: 800; font-size: 1.16rem; margin: 0 0 3px; letter-spacing: -0.01em; }
.onair-presenter { color: var(--muted); font-size: 0.88rem; margin: 0 0 8px; }
.onair-slot { display: flex; align-items: center; gap: 7px; font-size: 0.84rem; font-weight: 700; color: var(--navy); }
.onair-slot svg { width: 15px; height: 15px; opacity: 0.6; }
.onair-next { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 11px; font-size: 0.8rem; color: var(--muted); }
.onair-next b { color: var(--ink); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 30px 0 36px; gap: 22px; }
  .now-playing-card { flex-direction: row; }
  .onair-photo { aspect-ratio: 16 / 7; }
}
@media (max-width: 560px) {
  .now-playing-card { flex-direction: column; align-items: flex-start; padding: 18px; }
  .now-art { width: 100%; height: auto; aspect-ratio: 1; max-width: 230px; }
}

/* ---------------- Section headings ---------------- */
.section { padding: 34px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: 1.3rem; margin: 0; letter-spacing: -0.02em; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 0.88rem; }
.eyebrow { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.link-more { font-size: 0.83rem; font-weight: 700; color: var(--blue); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.link-more:hover { text-decoration: underline; }

/* ---------------- Bulletins ---------------- */
.bulletins {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px 18px;
  box-shadow: var(--shadow-sm);
  margin-top: -26px;
  position: relative;
  z-index: 5;
}
.bulletin-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 12px; }
.bulletin-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1rem; }
.bulletin-title .nf {
  background: var(--navy); color: #fff; font-size: 0.6rem; font-weight: 900;
  letter-spacing: 0.12em; padding: 4px 7px; border-radius: 6px;
}
.bulletin-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.bulletin-tab {
  border: 1px solid var(--line);
  background: #fff;
  color: #475467;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.bulletin-tab:hover { border-color: var(--line-strong); color: var(--navy); }
.bulletin-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.bulletin-body {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
}
.bulletin-thumb {
  aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  background: linear-gradient(150deg, #1e3a63, #0b1f3a);
  color: #fff; display: grid; place-items: center;
  font-weight: 900; letter-spacing: 0.04em; text-align: center; padding: 12px;
  font-size: 0.82rem; line-height: 1.3;
}
.bulletin-info h3 { margin: 0 0 3px; font-size: 1.02rem; }
.bulletin-info .meta { color: var(--muted); font-size: 0.8rem; margin-bottom: 9px; }
.bulletin-player { width: 100%; height: 38px; }
.bulletin-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.mini-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: #344054;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px;
}
.mini-btn:hover { border-color: var(--navy); color: var(--navy); }
.mini-btn.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.mini-btn.danger { color: var(--accent); border-color: #f3c4c9; }
.script-preview {
  margin-top: 10px; font-size: 0.82rem; color: #475467;
  background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px;
  padding: 10px 12px; max-height: 96px; overflow: auto;
}
.empty-note { color: var(--muted); font-size: 0.84rem; background: #fff; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; }

/* ---------------- Cards / grid ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 348px; gap: 26px; align-items: start; }
@media (max-width: 960px) { .home-grid { grid-template-columns: 1fr; } }

.feature-story { overflow: hidden; }
.feature-img { aspect-ratio: 16 / 8.2; background: linear-gradient(140deg, #16345c, #0b1f3a); position: relative; overflow: hidden; }
.feature-img img { width: 100%; height: 100%; object-fit: cover; }
.feature-img .feature-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,31,58,0.05) 30%, rgba(11,31,58,0.82) 100%);
}
.feature-body { padding: 20px 22px 22px; }
.feature-cat {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.feature-body h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.2vw, 1.62rem); line-height: 1.24; letter-spacing: -0.02em; }
.feature-body p { margin: 0 0 12px; color: #475467; font-size: 0.94rem; }
.story-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.78rem; flex-wrap: wrap; }
.story-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
@media (max-width: 760px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .news-grid { grid-template-columns: 1fr; } }
.news-tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; display: flex; flex-direction: column; gap: 8px;
  position: relative; overflow: hidden; transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-height: 168px;
}
.news-tile::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--tile, var(--blue)); }
.news-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.news-tile .tag {
  font-size: 0.64rem; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--tile, var(--blue)); background: color-mix(in srgb, var(--tile, var(--blue)) 10%, white);
  padding: 4px 8px; border-radius: 6px; align-self: flex-start;
}
.news-tile h4 { margin: 0; font-size: 0.96rem; line-height: 1.34; letter-spacing: -0.01em; }
.news-tile p { margin: 0; font-size: 0.82rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-tile .story-meta { margin-top: auto; font-size: 0.72rem; }

.side-card { padding: 18px; }
.whos-on { padding: 18px; }
.whos-on h3 { margin: 0 0 2px; font-size: 1.02rem; }
.whos-on .sub { color: var(--muted); font-size: 0.78rem; margin-bottom: 14px; }
.slot-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.slot-row:last-child { border-bottom: 0; padding-bottom: 0; }
.slot-time {
  font-size: 0.72rem; font-weight: 800; color: var(--navy);
  background: #eef3fb; border-radius: 7px; padding: 5px 8px; white-space: nowrap; min-width: 74px; text-align: center;
}
.slot-info { min-width: 0; }
.slot-info .t { font-weight: 700; font-size: 0.9rem; line-height: 1.3; }
.slot-info .p { color: var(--muted); font-size: 0.78rem; }
.slot-row.live .slot-time { background: var(--accent); color: #fff; }
.live-tag { font-size: 0.6rem; font-weight: 900; letter-spacing: 0.1em; color: var(--accent); }

.recent-list { padding: 18px; }
.recent-item { display: flex; align-items: center; gap: 11px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.recent-item:last-child { border: 0; padding-bottom: 0; }
.recent-art {
  width: 44px; height: 44px; border-radius: 9px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(140deg, #dfe9f7, #c3d4ea);
  display: grid; place-items: center; color: var(--navy); font-weight: 800; font-size: 0.72rem;
}
.recent-art img { width: 100%; height: 100%; object-fit: cover; }
.recent-meta { min-width: 0; flex: 1; }
.recent-meta .t { font-size: 0.87rem; font-weight: 700; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta .a { font-size: 0.76rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.recent-meta .when { font-size: 0.7rem; color: var(--muted-2); white-space: nowrap; }

/* ---------------- Now playing / recently played (public) ---------------- */
.np-section { padding-top: 8px; }
.np-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 18px; align-items: start; }
.np-card {
  display: flex; gap: 22px; align-items: center; padding: 20px;
  border: 0; color: #fff;
  background: radial-gradient(600px 220px at 100% 0%, rgba(56, 130, 246, 0.35), transparent 62%), linear-gradient(140deg, var(--navy), var(--navy-2));
  box-shadow: var(--shadow-lg);
}
.np-art {
  width: 168px; height: 168px; flex-shrink: 0; border-radius: 16px; overflow: hidden;
  background: linear-gradient(150deg, #1c3d68, #0a1a30);
  display: grid; place-items: center;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
}
.np-art img { width: 100%; height: 100%; object-fit: cover; }
.np-art .art-initials { font-size: 2.3rem; color: rgba(255, 255, 255, 0.92); }
.np-body { min-width: 0; }
.np-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.66rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #8ec5ff; margin-bottom: 10px;
}
.np-show { font-size: 0.8rem; font-weight: 700; color: rgba(255, 255, 255, 0.72); margin-bottom: 6px; }
.np-track { font-size: clamp(1.35rem, 2.4vw, 1.9rem); font-weight: 800; line-height: 1.16; letter-spacing: -0.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.np-artist { font-size: 1rem; color: rgba(255, 255, 255, 0.78); margin-bottom: 10px; }
.np-note { font-size: 0.84rem; color: rgba(255, 255, 255, 0.62); margin: 0; max-width: 48ch; }
.np-recent { padding: 18px; }
.np-recent-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.np-recent-head h3 { margin: 0; font-size: 1.02rem; }
.np-recent-sub { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.np-recent .recent-item { padding: 8px 0; }
@media (max-width: 900px) { .np-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .np-card { flex-direction: column; align-items: flex-start; }
  .np-art { width: 100%; max-width: 220px; aspect-ratio: 1; height: auto; }
}

/* ---------------- Page hero (subpages) ---------------- */
.page-hero {
  background:
    radial-gradient(900px 300px at 85% -20%, rgba(56, 130, 246, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy), var(--navy-2));
  color: #fff;
  padding: 40px 0 34px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("/assets/img/wave.svg");
  background-repeat: no-repeat; background-position: bottom center; background-size: 110% auto;
  opacity: 0.14;
}
body.theme-festive .page-hero::before { background-image: url("/assets/img/snow.svg"); opacity: 0.4; }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0 0 8px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.025em; }
.page-hero p { margin: 0; color: rgba(255, 255, 255, 0.8); max-width: 680px; }
.page-hero .clock { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; color: rgba(255,255,255,0.72); }
.page-hero .clock b { color: #fff; }

/* ---------------- Schedule ---------------- */
.day-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 12px; }
.day-tab {
  border: 1px solid var(--line); background: #fff; color: #475467;
  border-radius: 12px; padding: 9px 16px; font-weight: 700; font-size: 0.85rem; cursor: pointer;
  white-space: nowrap;
}
.day-tab:hover { border-color: var(--line-strong); }
.day-tab.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.day-tab .small { display: block; font-size: 0.68rem; font-weight: 500; opacity: 0.72; }
.schedule-list { display: grid; gap: 12px; }
.show-row {
  display: grid; grid-template-columns: 132px 92px minmax(0, 1fr) auto;
  gap: 18px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.show-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.show-row.is-live { border-color: #f3b7bd; box-shadow: 0 0 0 3px #fdf1f2; background: linear-gradient(90deg, #fff8f8, #fff); }
.show-times { font-weight: 800; font-size: 0.9rem; color: var(--navy); }
.show-times small { display: block; font-weight: 600; color: var(--muted); font-size: 0.72rem; margin-top: 3px; }
.show-thumb {
  width: 92px; height: 64px; border-radius: 10px; overflow: hidden;
  background: linear-gradient(140deg, #1b3d68, #0b1f3a);
  color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.8rem;
}
.show-thumb img { width: 100%; height: 100%; object-fit: cover; }
.show-name { font-weight: 800; font-size: 1.02rem; margin: 0 0 2px; }
.show-presenter { color: var(--muted); font-size: 0.84rem; }
.show-desc { color: #475467; font-size: 0.82rem; margin-top: 4px; }
.show-live-badge {
  background: var(--accent); color: #fff; font-size: 0.66rem; font-weight: 900;
  letter-spacing: 0.1em; padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}
@media (max-width: 720px) {
  .show-row { grid-template-columns: 1fr; gap: 10px; }
  .show-thumb { width: 100%; height: 110px; }
  .show-times { display: flex; gap: 10px; align-items: baseline; }
  .show-times small { margin: 0; }
}

/* ---------------- Presenters ---------------- */
.presenter-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .presenter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .presenter-grid { grid-template-columns: 1fr; } }
.presenter-card { overflow: hidden; display: flex; flex-direction: column; }
.presenter-photo {
  aspect-ratio: 1.16; background: linear-gradient(150deg, #e3edf9, #c6d7ec);
  display: grid; place-items: center; position: relative;
}
.presenter-photo img { width: 100%; height: 100%; object-fit: cover; }
.art-initials {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 2.4rem; font-weight: 800; letter-spacing: 0.03em;
  color: var(--navy);
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.75), transparent 55%),
    linear-gradient(150deg, #dce8f7, #b9cfe9);
}
.presenter-body { padding: 17px 18px 19px; display: flex; flex-direction: column; flex: 1; }
.presenter-body h3 { margin: 0 0 2px; font-size: 1.06rem; letter-spacing: -0.01em; }
.presenter-show { color: var(--accent); font-size: 0.82rem; font-weight: 800; margin-bottom: 3px; }
.presenter-times { color: var(--muted); font-size: 0.78rem; margin-bottom: 9px; }
.presenter-bio { color: #475467; font-size: 0.84rem; margin: 0; }

/* ---------------- News ---------------- */
.news-lead { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; overflow: hidden; margin-bottom: 26px; }
@media (max-width: 820px) { .news-lead { grid-template-columns: 1fr; } }
.news-lead .lead-img { min-height: 300px; background: linear-gradient(140deg, #16345c, #0b1f3a); }
.news-lead .lead-img img { width: 100%; height: 100%; object-fit: cover; }
.news-lead .lead-body { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }
.news-lead h2 { margin: 0 0 10px; font-size: clamp(1.35rem, 2.4vw, 1.9rem); line-height: 1.24; letter-spacing: -0.02em; }
.news-lead p { color: #475467; margin: 0 0 16px; }
.article-list { display: grid; gap: 14px; }
.article-row {
  display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 12px; transition: border-color 0.15s ease, transform 0.15s ease;
}
.article-row:hover { border-color: var(--line-strong); transform: translateX(2px); }
.article-thumb { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: linear-gradient(140deg, #dbe7f7, #b7cde9); display: grid; place-items: center; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-row h4 { margin: 4px 0 5px; font-size: 1rem; line-height: 1.34; }
.article-row p { margin: 0; color: var(--muted); font-size: 0.83rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 14px; font-size: 0.8rem; font-weight: 700; color: #475467; cursor: pointer;
}
.chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------------- Events ---------------- */
.event-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 720px) { .event-grid { grid-template-columns: 1fr; } }
.event-card { overflow: hidden; display: flex; flex-direction: column; }
.event-img { aspect-ratio: 16 / 8; background: linear-gradient(140deg, #1d3f6b, #0b1f3a); display: grid; place-items: center; color: #fff; position: relative; }
.event-img img { width: 100%; height: 100%; object-fit: cover; }
.event-date-chip {
  position: absolute; top: 12px; left: 12px;
  background: #fff; color: var(--navy); border-radius: 10px;
  padding: 6px 10px; font-size: 0.72rem; font-weight: 900; letter-spacing: 0.04em;
  box-shadow: var(--shadow);
}
.event-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.event-body h3 { margin: 0 0 6px; font-size: 1.08rem; letter-spacing: -0.01em; }
.event-where { display: flex; align-items: center; gap: 6px; font-size: 0.78rem; color: var(--muted); margin-bottom: 9px; flex-wrap: wrap; }
.event-body p { color: #475467; font-size: 0.86rem; margin: 0 0 14px; }
.event-body .mini-btn { align-self: flex-start; margin-top: auto; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.studio-details h2 { margin: 0 0 4px; font-size: 1.25rem; }
.studio-details > p { color: var(--muted); margin: 0 0 18px; font-size: 0.9rem; }
.detail-row { display: flex; gap: 13px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.detail-row:last-child { border: 0; }
.detail-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; background: #eef3fb; color: var(--navy);
}
.detail-icon svg { width: 18px; height: 18px; }
.detail-label { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.detail-value { font-weight: 700; font-size: 0.95rem; margin-top: 2px; word-break: break-word; }
.detail-value a:hover { color: var(--accent); }
.social-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.social-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line-strong); background: #fff; border-radius: 9px;
  padding: 8px 12px; font-size: 0.82rem; font-weight: 700; color: #344054;
}
.social-btn:hover { border-color: var(--navy); color: var(--navy); }

.form-card { padding: 22px; }
.form-card h2 { margin: 0 0 4px; font-size: 1.25rem; }
.form-card > p { color: var(--muted); margin: 0 0 18px; font-size: 0.9rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.76rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: #475467; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 10px;
  padding: 11px 13px; font-family: inherit; font-size: 0.92rem; color: var(--ink);
  background: #fff; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 74, 134, 0.12);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.78rem; color: var(--muted); margin-top: 10px; }
.form-banner {
  display: flex; align-items: center; gap: 10px;
  background: #ecfdf3; border: 1px solid #a6f4c5; color: #067647;
  border-radius: 10px; padding: 12px 14px; margin-bottom: 16px;
  font-weight: 700; font-size: 0.9rem; line-height: 1.35;
}
.form-banner-icon {
  width: 22px; height: 22px; border-radius: 50%; background: #12b76a; color: #fff;
  display: grid; place-items: center; font-size: 0.8rem; flex-shrink: 0;
}
.onair-box { margin-top: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.onair-box .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.onair-box .top span { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.onair-box .row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.onair-box .row:first-of-type { border-top: 0; }
.avatar-xs { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; background: linear-gradient(140deg, #dce8f7, #b9cfe9); display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; color: var(--navy); flex-shrink: 0; }
.avatar-xs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.78); margin-top: 40px; }
.footer-inner { width: min(100% - 40px, var(--maxw)); margin: 0 auto; padding: 34px 0 26px; }
.footer-top { display: flex; gap: 30px; justify-content: space-between; flex-wrap: wrap; }
.footer-tagline { font-size: 1.12rem; font-weight: 800; color: #fff; margin: 0 0 6px; letter-spacing: -0.01em; }
.footer-credit { font-size: 0.82rem; color: rgba(255, 255, 255, 0.6); margin: 0; }
.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.78rem; color: rgba(255, 255, 255, 0.55);
}
.footer-bottom a { color: rgba(255, 255, 255, 0.7); }
.footer-badge { display: inline-flex; align-items: center; gap: 6px; }

/* ---------------- Player bar ---------------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: #fff;
  border-top: 1px solid var(--line-strong);
  box-shadow: 0 -10px 30px rgba(11, 31, 58, 0.1);
  display: none;
}
.player-bar.visible { display: block; }
.player-inner {
  width: min(100% - 32px, var(--maxw)); margin: 0 auto;
  height: var(--player-h);
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 18px;
}
.player-track { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player-art {
  width: 54px; height: 54px; border-radius: 10px; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(140deg, #1b3d68, #0b1f3a); display: grid; place-items: center;
  color: #fff; font-weight: 800; font-size: 0.75rem;
}
.player-art img { width: 100%; height: 100%; object-fit: cover; }
.player-meta { min-width: 0; }
.player-title { font-weight: 800; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-artist { font-size: 0.8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-show { text-align: center; font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-show b { display: block; color: var(--navy); font-size: 0.88rem; font-weight: 800; }
.player-controls { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.vol-wrap { display: flex; align-items: center; gap: 7px; }
.vol-btn { border: 0; background: transparent; cursor: pointer; color: #475467; display: grid; place-items: center; padding: 4px; }
.vol-slider { width: 88px; accent-color: var(--navy); cursor: pointer; }
.play-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 0; background: var(--accent); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 8px 18px rgba(230, 57, 70, 0.32);
  transition: transform 0.15s ease, background 0.15s ease;
}
.play-btn:hover { transform: scale(1.04); background: var(--accent-dark); }
.play-btn svg { width: 22px; height: 22px; }
.player-eq { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-right: 2px; }
.player-eq i { width: 3px; background: var(--accent); border-radius: 2px; height: 30%; opacity: 0.5; }
.player-bar.is-playing .player-eq i { animation: eq 1s ease-in-out infinite; opacity: 1; }
.player-bar.is-playing .player-eq i:nth-child(2) { animation-delay: 0.15s; }
.player-bar.is-playing .player-eq i:nth-child(3) { animation-delay: 0.3s; }
.player-bar.is-playing .player-eq i:nth-child(4) { animation-delay: 0.45s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 860px) {
  .player-inner { grid-template-columns: 1fr auto; gap: 12px; }
  .player-show { display: none; }
  .vol-wrap { display: none; }
}
@media (max-width: 520px) {
  .player-art { width: 44px; height: 44px; }
  .player-title { font-size: 0.84rem; }
  .play-btn { width: 46px; height: 46px; }
}

/* ---------------- Modal ---------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(11, 31, 58, 0.55);
  display: grid; place-items: center; padding: 20px; z-index: 90;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(100%, 520px); background: #fff; border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 24px; position: relative;
  max-height: 90vh; overflow: auto;
}
.modal h3 { margin: 0 0 4px; font-size: 1.2rem; }
.modal > p { color: var(--muted); font-size: 0.88rem; margin: 0 0 18px; }
.modal-close {
  position: absolute; top: 14px; right: 14px; border: 0; background: #f2f4f8;
  width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 1rem; color: #475467;
}
.modal-close:hover { background: #e6e9ef; }

/* ---------------- Toasts / misc ---------------- */
.toast-wrap { position: fixed; bottom: calc(var(--player-h) + 18px); right: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: var(--navy); color: #fff; padding: 11px 16px; border-radius: 10px;
  font-size: 0.85rem; font-weight: 600; box-shadow: var(--shadow);
  animation: toastIn 0.25s ease;
}
.toast.error { background: var(--accent); }
.toast.success { background: #15803d; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.loading { min-height: 50vh; display: grid; place-items: center; color: var(--muted); gap: 12px; }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------------- Admin ---------------- */
.admin-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 70vh; }
@media (max-width: 860px) { .admin-shell { grid-template-columns: 1fr; } }
.admin-nav { border-right: 1px solid var(--line); background: #fff; padding: 20px 12px; }
.admin-nav a {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 9px; font-size: 0.88rem; font-weight: 700; color: #344054;
}
.admin-nav a:hover { background: #f5f7fb; }
.admin-nav a.active { background: var(--navy); color: #fff; }
.admin-nav .nav-head { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); padding: 14px 12px 6px; }
.admin-body { padding: 24px 26px 40px; min-width: 0; }
.admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.admin-head h1 { margin: 0; font-size: 1.4rem; letter-spacing: -0.02em; }
.admin-head p { margin: 3px 0 0; color: var(--muted); font-size: 0.86rem; }
.list-toolbar { display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 12px; }
.list-toolbar .mini-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.save-state { font-size: 0.76rem; font-weight: 700; color: #15803d; background: #f0fdf4; border: 1px solid #bbf7d0; padding: 6px 10px; border-radius: 999px; white-space: nowrap; }
.save-state.saving { color: #a16207; background: #fffbeb; border-color: #fde68a; }
.save-state.error { color: var(--accent); background: #fef2f2; border-color: #fecaca; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel h2 { margin: 0 0 4px; font-size: 1.05rem; }
.panel .hint { color: var(--muted); font-size: 0.82rem; margin: 0 0 16px; }
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 700px) { .admin-grid { grid-template-columns: 1fr; } }
.field.inline { display: flex; align-items: center; gap: 8px; }
.field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); }
.image-field { display: flex; gap: 12px; align-items: center; }
.image-preview {
  width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line);
  background: #f5f7fb; overflow: hidden; flex-shrink: 0; display: grid; place-items: center;
  font-size: 0.62rem; color: var(--muted-2); text-align: center;
}
.image-preview img { width: 100%; height: 100%; object-fit: cover; }
.upload-btn { position: relative; overflow: hidden; }
.upload-btn input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-btn.loading { opacity: 0.6; pointer-events: none; }
.list-editor { display: grid; gap: 12px; }
.edit-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fbfcfe; }
.edit-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.edit-card-head strong { font-size: 0.9rem; }
.edit-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.checkbox-row { display: flex; gap: 6px; flex-wrap: wrap; }
.checkbox-row label {
  display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 700;
  border: 1px solid var(--line-strong); border-radius: 8px; padding: 5px 9px; cursor: pointer; background: #fff;
}
.checkbox-row input { accent-color: var(--navy); }
.admin-note { font-size: 0.8rem; color: var(--muted); background: #f8fafc; border: 1px dashed var(--line-strong); border-radius: 10px; padding: 10px 12px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th { text-align: left; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
.admin-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.msg-unread { background: #f8fbff; }
.status-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.68rem; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; border: 1px solid transparent;
}
.status-badge.audio { background: #f0fdf4; color: #15803d; border-color: #bbf7d0; }
.status-badge.script { background: #fffbeb; color: #a16207; border-color: #fde68a; }
.status-badge.empty { background: #f5f7fb; color: #667085; border-color: var(--line); }
.status-badge.error { background: #fef2f2; color: var(--accent); border-color: #fecaca; }
.nf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .nf-grid { grid-template-columns: 1fr; } }
.nf-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: #fff; }
.nf-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.nf-card-head h3 { margin: 0; font-size: 0.98rem; }
.nf-card-head .sub { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }
.nf-clock { text-align: right; }
.nf-clock .big { font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); }
.nf-clock .small { font-size: 0.7rem; color: var(--muted); }
.nf-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.nf-meta div { background: #f8fafc; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.nf-meta .k { font-size: 0.64rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 800; }
.nf-meta .v { font-size: 0.86rem; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.nf-script { width: 100%; min-height: 260px; resize: vertical; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.76rem; line-height: 1.55; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px; background: #fcfdff; color: #344054; }
.nf-actions { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 10px; }

/* British voice picker on every bulletin card */
.nf-voice-row { margin: 10px 0 0; }
.nf-voice-row label {
  display: block;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 4px;
}
.nf-voice-row select {
  width: 100%;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
}
.nf-voice-row .upload-note { margin: 6px 0 0; }

/* Bulletin audio + copyable MP3 link on every card */
.nf-audio {
  margin-top: 10px;
  background: #fbfcfe;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px;
}
.nf-audio audio { width: 100%; height: 38px; display: block; }
.nf-url-row { display: flex; gap: 7px; margin-top: 9px; align-items: stretch; }
.nf-url {
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
  color: #344054;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: 8px 10px;
  text-overflow: ellipsis;
}
.nf-url-row .mini-btn { white-space: nowrap; }
.nf-audio .upload-note { margin: 7px 0 0; }
.mini-btn.copied { background: #15803d; border-color: #15803d; color: #fff; }
.nf-slots { font-size: 0.72rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.nf-slots b { color: var(--text); font-weight: 600; }
.nf-slots-alt { opacity: 0.75; margin-top: 2px; }
.nf-overdue { margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; color: #b45309; }
.nf-overdue:empty { display: none; }
.badge-live-clock { font-variant-numeric: tabular-nums; }
.upload-note { font-size: 0.72rem; color: var(--muted-2); }

/* 1-Click Cloudflare /* 1-Click Netlify & UptimeRobot setup */ UptimeRobot setup */
.setup-panel { background: linear-gradient(180deg, #fbfdff, #ffffff); }
.setup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .setup-grid { grid-template-columns: 1fr; } }
.setup-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; min-width: 0; }
.setup-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: #475467; margin-bottom: 6px; }
.setup-box input[type="password"],
.setup-box input[type="text"],
.setup-box #tickUrl {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 9px;
  padding: 9px 11px; font-family: inherit; font-size: 0.84rem; color: var(--ink); background: #fff;
}
.setup-box input:focus { outline: 0; border-color: var(--navy-3); box-shadow: 0 0 0 3px rgba(27, 74, 134, 0.12); }
.copy-row { display: flex; gap: 6px; align-items: stretch; }
.copy-row input { flex: 1; min-width: 0; }
.ping-row { margin-top: 10px; }
.ping-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.76rem; font-weight: 700; color: #475467;
  background: #f5f7fb; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
}
.ping-badge.live { background: #f0fdf4; border-color: #bbf7d0; color: #15803d; }
.ping-badge.live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}
.monitor-active {
  margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: #15803d;
  background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px;
  padding: 8px 10px; word-break: break-word;
}
.setup-box .upload-note { margin: 8px 0 0; line-height: 1.5; }

/* Site links page */
.links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 820px) { .links-grid { grid-template-columns: 1fr; } }
.links-grid .panel { margin-bottom: 0; }
.host-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.host-row code {
  background: #f5f7fb; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 11px; font-size: 0.86rem; word-break: break-all;
}
.link-row {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.link-row:last-child { border-bottom: 0; padding-bottom: 0; }
.link-main { min-width: 0; flex: 1; }
.link-label { font-weight: 800; font-size: 0.87rem; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.link-url {
  display: block; margin-top: 3px; color: var(--blue); font-size: 0.78rem;
  word-break: break-all; line-height: 1.45;
}
.link-url:hover { text-decoration: underline; }
.link-note { font-size: 0.74rem; color: var(--muted); margin-top: 3px; }
.link-actions { display: flex; gap: 6px; flex-shrink: 0; }
.method-badge {
  font-size: 0.6rem; font-weight: 900; letter-spacing: 0.08em;
  background: #eef3fb; color: var(--navy); border-radius: 5px; padding: 2px 6px;
}
.panel > h2 + .hint { margin-bottom: 10px; }
