:root {
  /* Charcoal black & gold palette */
  --bg-1: #1a1a1c;   /* charcoal */
  --bg-2: #121214;   /* deep charcoal */
  --bg-3: #232326;

  --glass: rgba(26, 26, 28, 0.55);
  --glass-strong: rgba(18, 18, 20, 0.7);
  --glass-border: rgba(212, 175, 55, 0.45);   /* gold outline */
  --glass-shadow: 0 10px 34px rgba(0, 0, 0, 0.5);
  --glass-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.4);

  --text: #f3eede;    /* warm off-white */
  --muted: #cbbf9c;   /* soft gold-beige */
  --faint: #938a70;   /* dim gold */

  --accent: #d4af37;        /* gold */
  --accent-2: #f1cf72;      /* bright gold */
  --accent-soft: rgba(212, 175, 55, 0.15);

  --bubble-me: linear-gradient(135deg, #f1cf72, #d4af37);   /* gold */
  --bubble-other: rgba(44, 44, 48, 0.85);

  /* Fluid sizing so the whole UI fits one screen and scales on mobile */
  --radius: clamp(12px, 1.4vw, 18px);
  --radius-sm: clamp(9px, 1vw, 13px);
  --radiobar-h: 0px;        /* player moved into the hero; no bottom bar */
  --topbar-h: clamp(52px, 8vh, 62px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  color: var(--text);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Studio-mic ambiance backdrop: image + gold glows + dark veil.
   Darkened enough that the frosted glass panels read clearly on top. */
body {
  position: relative;
  background:
    radial-gradient(900px 600px at 12% -10%, rgba(212,175,55,0.14) 0%, rgba(212,175,55,0) 55%),
    radial-gradient(850px 650px at 92% 8%, rgba(241,207,114,0.10) 0%, rgba(241,207,114,0) 60%),
    linear-gradient(180deg, rgba(16,16,18,0.9), rgba(10,10,12,0.95)),
    url("assets/studio-bg.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* ---------- Glass primitive (clearly visible frost) ---------- */
.glass {
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(150%);
  -webkit-backdrop-filter: blur(26px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255,255,255,0.08);
}

/* ---------- Top bar ---------- */
.topbar {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  position: sticky;
  top: 0;
  z-index: 20;

  background: var(--glass-strong);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.brand { display: flex; align-items: center; gap: 11px; }
.brand-logo {
  width: clamp(34px, 5vh, 40px); height: clamp(34px, 5vh, 40px); border-radius: 11px;
  display: grid; place-items: center;
  font-size: 18px;
  flex: 0 0 auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: clamp(14px, 1.6vw, 16px); letter-spacing: .2px; }
.brand-text small { color: var(--muted); font-size: clamp(10px, 1.1vw, 12px); }

.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  margin-left: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .6px;
  color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  transition: color .3s, background .3s;
}
.live-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: #aab4bf; transition: background .3s;
}
.live-pill.on { color: var(--accent); background: var(--accent-soft); }
.live-pill.on .live-dot {
  background: var(--accent);
  animation: pulse 1.6s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,90,54,.5); }
  70%  { box-shadow: 0 0 0 8px rgba(255,90,54,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,90,54,0); }
}

.tabs { display: flex; gap: 8px; }
.tab {
  background: rgba(255,255,255,0.45);
  color: var(--muted);
  border: 1px solid rgba(255,255,255,0.6);
  padding: 9px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px; font-weight: 600;
  transition: all .18s ease;
}
.tab:hover { color: var(--text); background: rgba(255,255,255,0.7); transform: translateY(-1px); }
.tab.active {
  background: linear-gradient(135deg, var(--accent), #ff7a4d);
  color: #fff; border-color: transparent;
  box-shadow: 0 6px 16px rgba(255,90,54,0.35);
}

/* ---------- Main content: scrolls when the viewport is short ---------- */
.content {
  height: calc(100vh - var(--topbar-h) - var(--radiobar-h));
  overflow-y: auto;      /* scroll escape valve on very short screens */
  overflow-x: hidden;
  position: relative;
  padding: clamp(10px, 1.6vw, 18px);
}
.content::-webkit-scrollbar { width: 9px; }
.content::-webkit-scrollbar-thumb { background: rgba(224,182,75,0.3); border-radius: 8px; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- Chat — the main column ---------- */
.chat-wrap {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: var(--radius);
  padding: clamp(12px, 1.6vw, 20px);

  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
/* header + composer never shrink; only the message list flexes */
.chat-header, .composer, .host-banner, .reply-bar { flex: 0 0 auto; }
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2px clamp(8px, 1.4vh, 14px);
}
.chat-header h2 { margin: 0; font-size: clamp(15px, 1.8vw, 19px); font-weight: 700; }
.online {
  color: var(--muted); font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.6);
}

.messages {
  flex: 1 1 auto;
  min-height: 0;           /* fills available space, never forces page scroll */
  overflow-y: auto;
  border-radius: var(--radius-sm);
  padding: clamp(10px, 1.4vw, 16px);
  margin-bottom: clamp(8px, 1.2vh, 12px);
  display: flex;
  flex-direction: column;
  gap: clamp(7px, 1vh, 12px);
  background: rgba(255,255,255,0.28);
  border: 1px solid rgba(255,255,255,0.45);
}
.messages::-webkit-scrollbar { width: 8px; }
.messages::-webkit-scrollbar-thumb { background: rgba(94,107,120,0.3); border-radius: 8px; }

.msg {
  max-width: 78%;
  padding: clamp(7px, 1vh, 10px) clamp(10px, 1.2vw, 14px);
  border-radius: 14px;
  line-height: 1.38;
  font-size: clamp(12.5px, 1.35vw, 14px);
  box-shadow: var(--glass-shadow-sm);
  animation: pop .18s ease;
}
@keyframes pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: scale(1); } }
.msg .meta { font-size: 11px; margin-bottom: 3px; font-weight: 600; }
.msg.me {
  align-self: flex-end;
  background: var(--bubble-me);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg.me .meta { color: rgba(255,255,255,0.85); }
.msg.other {
  align-self: flex-start;
  background: var(--bubble-other);
  border: 1px solid rgba(255,255,255,0.7);
  border-bottom-left-radius: 5px;
}
.msg.other .meta { color: var(--faint); }
.msg.system {
  align-self: center; background: transparent; box-shadow: none;
  color: var(--faint); font-size: 12px; text-align: center; max-width: 92%;
}

.composer { display: flex; gap: 10px; margin-top: 0; align-items: stretch; width: 100%; }
.name-input { flex: 0 0 120px; width: 120px; min-width: 0; }
.msg-input { flex: 1 1 auto; min-width: 0; }   /* min-width:0 lets it shrink, no overflow */
.composer input {
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(255,255,255,0.8);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: clamp(9px, 1.2vh, 12px) clamp(11px, 1.2vw, 15px);
  font-size: clamp(13px, 1.4vw, 14.5px);
  outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.composer input::placeholder { color: var(--faint); }
.composer input:focus {
  border-color: var(--accent-2);
  background: rgba(255,255,255,0.9);
  box-shadow: 0 0 0 4px rgba(59,130,246,0.14);
}
.send-btn {
  flex: 0 0 auto;
  color: #231a08; border: 0;
  padding: 0 clamp(16px, 2vw, 22px); border-radius: var(--radius-sm);
  font-weight: 800; font-size: clamp(13px, 1.4vw, 14.5px);
  cursor: pointer;
  transition: filter .15s;
}
.send-btn:hover { filter: brightness(1.08); }

/* ---------- Station iframe ---------- */
.station-wrap {
  height: 100%; display: flex; flex-direction: column;
  max-width: 1100px; margin: 0 auto; width: 100%;
  border-radius: var(--radius); overflow: hidden;
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.station-note {
  padding: 13px 18px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,0.45);
  border-bottom: 1px solid rgba(255,255,255,0.6);
}
.open-link { color: var(--accent-2); margin-left: 8px; text-decoration: none; font-weight: 700; }
.open-link:hover { text-decoration: underline; }
#stationFrame { flex: 1; width: 100%; border: 0; background: #fff; }

/* ---------- Persistent radio bar ---------- */
.radiobar {
  height: var(--radiobar-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 30;

  background: var(--glass-strong);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 -4px 30px rgba(31, 45, 61, 0.12);
}
.play-btn {
  width: clamp(42px, 6vh, 52px); height: clamp(42px, 6vh, 52px); border-radius: 50%;
  border: 0; cursor: pointer; font-size: clamp(16px, 2.2vh, 19px);
  color: #fff;
  display: grid; place-items: center;
  flex: 0 0 auto;
  transition: transform .1s, filter .15s;
}
.play-btn:hover { filter: brightness(1.08); }
.play-btn:active { transform: scale(.93); }
.play-btn.loading { opacity: .6; pointer-events: none; }

/* Animated equalizer bars next to the title when live */
.eq { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; margin-right: 8px; vertical-align: middle; }
.eq span {
  width: 3px; background: var(--accent); border-radius: 2px; height: 4px;
  opacity: .35;
}
.eq.on span { opacity: 1; animation: bounce 0.9s ease-in-out infinite; }
.eq.on span:nth-child(2) { animation-delay: .15s; }
.eq.on span:nth-child(3) { animation-delay: .3s; }
.eq.on span:nth-child(4) { animation-delay: .45s; }
@keyframes bounce { 0%,100% { height: 4px; } 50% { height: 14px; } }

.radio-info { flex: 1; min-width: 0; }
.radio-title { font-weight: 700; display: flex; align-items: center; font-size: clamp(13px, 1.5vw, 15px); }
.radio-status { font-size: clamp(10px, 1.2vw, 12.5px); color: var(--muted); margin-top: 1px; }

.volume { display: flex; align-items: center; gap: 8px; }
.vol-icon { font-size: 15px; }
.volume input {
  width: clamp(70px, 10vw, 120px); height: 5px; border-radius: 999px; appearance: none;
  background: rgba(94,107,120,0.25);
  outline: none;
}
.volume input::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 2px 6px rgba(255,90,54,0.5);
}
.volume input::-moz-range-thumb {
  width: 16px; height: 16px; border: 0; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}

@media (max-width: 620px) {
  .content { padding: 12px; }
  .name-input { width: 100px; }
  .volume input { width: 80px; }
  .brand-text small { display: none; }
  .live-pill span.live-label { display: none; }
}

/* ============================================================
   LANDING PAGE
   ============================================================ */
.host-tab.is-host {
  background: linear-gradient(135deg, #2bb673, #14a05f) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(20,160,95,0.35) !important;
}

.home-scroll {
  height: 100%;             /* fit exactly, no page scroll on desktop */
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.6vh, 18px);
  max-width: 1300px;
  margin: 0 auto;
}

/* Grid: CHAT is the main 45% column, On Air fills the rest */
.main-grid {
  flex: 1 1 auto;
  min-height: 0;            /* fit the screen, no forced scroll */
  display: grid;
  grid-template-columns: 45% minmax(0, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
  align-items: stretch;
}
.info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  padding-right: 2px;
  min-height: 0;
}
.info-col::-webkit-scrollbar { width: 7px; }
.info-col::-webkit-scrollbar-thumb { background: rgba(94,107,120,0.25); border-radius: 8px; }

/* Hero */
.hero {
  border-radius: var(--radius);
  padding: clamp(10px, 1.6vh, 16px) clamp(16px, 2vw, 24px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: hidden;
  position: relative;
  flex: 0 0 auto;
}
.hero-left { min-width: 0; }
.hero h1 { font-size: clamp(16px, 2.2vw, 22px) !important; margin: 2px 0 1px; }
.hero p { margin: 0; font-size: clamp(11px, 1.3vw, 13px); }
.hero-kicker { font-size: clamp(9px, 1.1vw, 12px); }
.hero .btn-primary { flex: 0 0 auto; }
.hero-kicker {
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--accent);
}
.hero h1 { margin: 6px 0 8px; font-size: 30px; line-height: 1.1; }
.hero p { margin: 0 0 18px; color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-meta { color: var(--faint); font-size: 13px; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #ff7a4d);
  color: #fff; border: 0; cursor: pointer;
  padding: 12px 22px; border-radius: 13px; font-weight: 700; font-size: 15px;
  box-shadow: 0 8px 20px rgba(255,90,54,0.35);
  transition: transform .1s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.07); transform: translateY(-1px); }

.hero-art { flex: 0 0 auto; display: grid; place-items: center; }
.hero-eq { display: flex; align-items: flex-end; gap: 6px; height: 70px; }
.hero-eq span {
  width: 10px; border-radius: 6px; height: 20px;
  background: linear-gradient(180deg, #ff8a5c, var(--accent));
  animation: heroBounce 1.1s ease-in-out infinite;
  opacity: .9;
}
.hero-eq span:nth-child(2) { animation-delay: .2s; }
.hero-eq span:nth-child(3) { animation-delay: .4s; }
.hero-eq span:nth-child(4) { animation-delay: .6s; }
.hero-eq span:nth-child(5) { animation-delay: .8s; }
@keyframes heroBounce { 0%,100% { height: 18px; } 50% { height: 66px; } }

/* Grid */
.home-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.home-col { display: flex; flex-direction: column; gap: 18px; }

.card { border-radius: var(--radius); padding: clamp(12px, 1.5vw, 18px); }
.card-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: clamp(8px, 1.2vh, 12px); }
.card-head h2 { margin: 0; font-size: clamp(14px, 1.6vw, 16px); font-weight: 700; }
.card-sub { font-size: 12px; color: var(--faint); }
.empty { color: var(--faint); font-size: 14px; }

/* News */
.news-list { display: flex; flex-direction: column; gap: 14px; }
.news-item {
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.6);
  transition: transform .12s, box-shadow .12s;
}
.news-item:hover { transform: translateY(-2px); box-shadow: var(--glass-shadow-sm); }
.news-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.news-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .8px;
  color: var(--accent); background: var(--accent-soft);
  padding: 3px 9px; border-radius: 999px;
}
.news-date { font-size: 11px; color: var(--faint); }
.news-item h3 { margin: 2px 0 5px; font-size: 15.5px; }
.news-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Schedule */
.schedule { display: flex; flex-direction: column; gap: clamp(2px, 0.5vh, 4px); }
.sched-row {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 8px; align-items: center;
  padding: clamp(7px, 1vh, 10px) 11px; border-radius: 10px;
  transition: background .15s;
}
.sched-row:hover { background: rgba(255,255,255,0.4); }
.sched-time { font-weight: 800; font-size: clamp(11px, 1.2vw, 13px); color: var(--muted); }
.sched-show { font-weight: 600; font-size: clamp(12px, 1.3vw, 14px); }
.sched-host { font-size: clamp(10px, 1.1vw, 12px); color: var(--faint); }
.sched-row.now {
  background: var(--accent-soft);
  border: 1px solid rgba(255,90,54,0.3);
}
.sched-row.now .sched-time { color: var(--accent); }
.sched-row.now::after {
  content: "ON NOW"; font-size: 9px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: var(--accent); padding: 2px 7px; border-radius: 999px;
  grid-column: 3;
}
.sched-row.now .sched-host { display: none; }

/* Notices */
.notice-list { display: flex; flex-direction: column; gap: 8px; }
.notice-item {
  padding: 10px 13px; border-radius: 11px; font-size: 13.5px; color: var(--muted);
  background: rgba(255,255,255,0.4);
  border: 1px solid rgba(255,255,255,0.55);
}

/* ============================================================
   CHAT: host banner, badges, replies
   ============================================================ */
.host-banner {
  display: flex; align-items: center; gap: 10px;
  margin: 10px 6px 0;
  padding: 10px 14px; border-radius: 12px; font-size: 13.5px;
  background: linear-gradient(135deg, rgba(43,182,115,.16), rgba(20,160,95,.12));
  border: 1px solid rgba(20,160,95,0.3);
  color: #0f5c38;
}
.host-logout {
  margin-left: auto; cursor: pointer; border: 0; border-radius: 9px;
  padding: 6px 12px; font-size: 12px; font-weight: 700;
  background: rgba(20,160,95,0.18); color: #0f5c38;
}
.host-logout:hover { background: rgba(20,160,95,0.3); }

.host-badge {
  font-size: 9px; font-weight: 800; letter-spacing: .5px;
  color: #fff; background: #14a05f;
  padding: 2px 7px; border-radius: 999px; margin: 0 2px;
  vertical-align: middle;
}

/* Host message bubble stands out */
.msg.host {
  border: 1.5px solid rgba(20,160,95,0.5) !important;
  background: linear-gradient(135deg, rgba(43,182,115,.14), rgba(255,255,255,.8)) !important;
  color: var(--text) !important;
}
.msg.host.me {
  background: linear-gradient(135deg, #1fae6a, #15935c) !important;
  color: #fff !important;
  border-color: transparent !important;
}
.msg.host.me .meta, .msg.host.me .quote-name { color: rgba(255,255,255,0.9) !important; }

/* Reply quote inside a message */
.msg .quote {
  font-size: 12.5px; padding: 6px 10px; margin: 2px 0 6px;
  border-left: 3px solid var(--accent);
  background: rgba(0,0,0,0.05); border-radius: 8px; color: var(--muted);
}
.msg.me .quote { background: rgba(255,255,255,0.18); color: rgba(255,255,255,0.9); border-left-color: #fff; }
.quote-name { display: block; font-weight: 700; margin-bottom: 1px; }

/* Reply button on each message */
.msg .reply-btn {
  margin-top: 6px; font-size: 11px; font-weight: 700; cursor: pointer;
  border: 0; background: transparent; color: var(--accent-2); padding: 0;
  opacity: 0; transition: opacity .15s;
}
.msg:hover .reply-btn { opacity: 1; }
.msg.me .reply-btn { color: #dbe8ff; }

/* Reply context bar above the composer */
.reply-bar {
  display: flex; align-items: center; gap: 6px;
  margin: 10px 2px 0; padding: 9px 13px;
  border-radius: 12px; font-size: 13px; color: var(--muted);
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-left: 3px solid var(--accent);
}
.reply-bar strong { color: var(--text); }
.reply-cancel {
  margin-left: auto; cursor: pointer; border: 0; background: transparent;
  color: var(--faint); font-size: 15px; line-height: 1;
}
.reply-cancel:hover { color: var(--text); }

/* ============================================================
   HOST LOGIN MODAL
   ============================================================ */
/* The [hidden] attribute must win over the display rules below.
   Without this, `display: grid`/`flex`/`block` keeps elements visible
   even when hidden=true (a common CSS gotcha). */
[hidden] { display: none !important; }

.modal-overlay {
  position: fixed; inset: 0; z-index: 60;
  display: grid; place-items: center;
  background: rgba(31, 45, 61, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade .2s ease;
}
.modal {
  width: min(380px, 92vw);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--glass-strong);
}
.modal h3 { margin: 0 0 4px; font-size: 20px; }
.modal-sub { margin: 0 0 18px; color: var(--muted); font-size: 13.5px; }
.modal label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 14px; }
.modal input {
  display: block; width: 100%; margin-top: 6px;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: 12px; padding: 12px 14px; font-size: 14.5px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.modal input:focus { border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(59,130,246,0.14); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 6px; }
.btn-ghost {
  background: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.8);
  color: var(--muted); cursor: pointer; font-weight: 700;
  padding: 12px 18px; border-radius: 13px; font-size: 14.5px;
}
.btn-ghost:hover { color: var(--text); }
.modal-error { color: #d23b2f; font-size: 13px; margin-top: 12px; font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 860px) {
  .home-grid { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero-art { align-self: center; }
  .tabs .tab { padding: 8px 12px; font-size: 13px; }

  /* Narrow screens: On Air on top (compact), chat below. Page scrolls. */
  .content { overflow-y: auto; }
  .home-scroll { height: auto; min-height: 100%; }
  .main-grid { display: flex; flex-direction: column; }
  .info-col { order: -1; overflow: visible; }   /* sidebar moves to the top */
  .chat-wrap { min-height: 55vh; }              /* roomy chat on phones */
  .hero { flex-direction: row; align-items: center; }
  .hero h1 { font-size: clamp(15px, 4.5vw, 20px) !important; }
}

/* Use dynamic viewport height on mobile so browser chrome doesn't clip */
@supports (height: 100dvh) {
  .content { height: calc(100dvh - var(--topbar-h) - var(--radiobar-h)); }
}

/* ============================================================
   BLACK & GOLD THEME OVERRIDES
   Remaps the light-theme surfaces/borders to warm dark glass
   with gold accents. Kept medium-dark (not pitch black).
   ============================================================ */

/* Logo image sizing */
.brand-logo { overflow: hidden; padding: 0; background: #1b1713; border: 1px solid var(--glass-border); }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Frosted surfaces: subtle light sheen over the dark glass */
.live-pill,
.online,
.news-item,
.notice-item,
.reply-bar,
.station-note { background: rgba(255,255,255,0.05) !important; border-color: var(--glass-border) !important; }

/* Tabs / host tab */
.tab { background: rgba(255,255,255,0.05) !important; border-color: var(--glass-border) !important; color: var(--muted) !important; }
.tab:hover { background: rgba(224,182,75,0.14) !important; color: var(--text) !important; }

/* Message area + bubbles */
.messages { background: rgba(0,0,0,0.22) !important; border-color: var(--glass-border) !important; }
.msg.other { border-color: var(--glass-border) !important; }
.msg.me { color: #2a2112 !important; }                 /* dark text on gold bubble */
.msg.me .meta { color: rgba(42,33,18,0.75) !important; }
.msg.me .quote { background: rgba(0,0,0,0.14) !important; color: rgba(42,33,18,0.9) !important; border-left-color: #2a2112 !important; }
.msg.me .reply-btn { color: #4a3a12 !important; }
.msg .quote { background: rgba(0,0,0,0.25); color: var(--muted); }

/* Inputs */
.composer input,
.modal input { background: rgba(255,255,255,0.06) !important; border: 1px solid var(--glass-border) !important; color: var(--text) !important; }
.composer input::placeholder,
.modal input::placeholder { color: var(--faint) !important; }
.composer input:focus,
.modal input:focus { border-color: var(--accent) !important; background: rgba(255,255,255,0.1) !important; box-shadow: 0 0 0 4px rgba(224,182,75,0.2) !important; }

/* Schedule hover */
.sched-row:hover { background: rgba(255,255,255,0.05) !important; }

/* Buttons: bright foil gold (matches the gold texture reference) */
.btn-primary,
.send-btn,
.play-btn,
.tab.active {
  background: linear-gradient(135deg, #fbe27a 0%, #e8c23c 35%, #d4af37 65%, #b8901f 100%) !important;
  color: #2a1f05 !important;
  font-weight: 800 !important;
  border: 1px solid rgba(251,226,122,0.7) !important;
  box-shadow: 0 6px 18px rgba(212,175,55,0.45), inset 0 1px 0 rgba(255,250,210,0.6) !important;
  text-shadow: 0 1px 0 rgba(255,240,180,0.5) !important;
}
.btn-primary:hover,
.send-btn:hover,
.play-btn:hover { filter: brightness(1.06) saturate(1.05) !important; }

/* News tag chip */
.news-tag { color: var(--accent-2) !important; background: var(--accent-soft) !important; }

/* Ghost / logout buttons */
.btn-ghost { background: rgba(255,255,255,0.06) !important; border: 1px solid var(--glass-border) !important; color: var(--muted) !important; }

/* Hero equalizer + radio bar eq in gold */
.hero-eq span { background: linear-gradient(180deg, var(--accent-2), var(--accent)) !important; }
.eq span { background: var(--accent) !important; }

/* Volume slider track/thumb */
.volume input { background: rgba(255,255,255,0.14) !important; }
.volume input::-webkit-slider-thumb { background: var(--accent) !important; box-shadow: 0 2px 6px rgba(224,182,75,0.6) !important; }
.volume input::-moz-range-thumb { background: var(--accent) !important; }

/* Modal overlay darker so gold pops */
.modal-overlay { background: rgba(0,0,0,0.55) !important; }

/* Live pill + schedule "now" use gold accent (already via --accent) */
.live-pill.on { background: var(--accent-soft) !important; color: var(--accent-2) !important; }
.sched-row.now { background: var(--accent-soft) !important; border-color: rgba(224,182,75,0.4) !important; }
.sched-row.now::after { color: #2a2112 !important; background: var(--accent) !important; }

/* Host elements keep green so "HOST" stays distinct from gold accents */

/* ============================================================
   NEWS TICKER (scrolling marquee under the hero)
   ============================================================ */
.ticker {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 14px;
  padding: 0 0 0 16px;
  height: 46px;
  overflow: hidden;
}
.ticker-label {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #231a08;
  background: linear-gradient(135deg, #d4a017, #b8860b);
  padding: 6px 12px;
  border-radius: 999px;
}
.ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  white-space: nowrap;
  will-change: transform;
  animation: tickerScroll 45s linear infinite;
  padding-right: 18px;
}
.ticker:hover .ticker-track { animation-play-state: paused; }  /* pause on hover */
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker-item { font-size: 13.5px; color: var(--text); }
.ticker-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  color: var(--accent-2); background: var(--accent-soft);
  padding: 2px 8px; border-radius: 999px; margin-right: 8px;
}
.ticker-dot { color: var(--accent); font-size: 9px; margin: 0 4px; opacity: .7; }

/* On wide screens keep chat at a comfortable readable min width */
@media (min-width: 861px) {
  .chat-wrap { min-width: 340px; }
}

/* Hero "NOW BROADCASTING" live dot */
.hero-kicker { display: inline-flex; align-items: center; gap: 7px; }
.hero-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(224,182,75,0.6);
  animation: pulse 1.6s infinite;
}

/* Make the hero taller/clearer so the current show reads well */
.hero h1 { font-size: 23px !important; }
.hero-left { display: flex; flex-direction: column; gap: 2px; }

/* Locked name field: clearly non-editable, gold tick */
.name-input.locked {
  opacity: 0.85;
  cursor: default;
  font-weight: 700;
  color: var(--accent-2) !important;
  background: rgba(212,175,55,0.12) !important;
  border-color: var(--glass-border) !important;
}

/* ============================================================
   HERO PLAYER (Listen Live + volume underneath)
   ============================================================ */
.hero-player {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}
.hero-player .btn-primary {
  padding: clamp(9px, 1.3vh, 12px) clamp(18px, 2.2vw, 26px);
  font-size: clamp(13px, 1.5vw, 15px);
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero-controls .vol-icon { font-size: 14px; }
.hero-controls input[type="range"] {
  width: clamp(90px, 10vw, 140px);
  height: 5px; border-radius: 999px; appearance: none; -webkit-appearance: none;
  background: rgba(212,175,55,0.25);
  outline: none; cursor: pointer;
}
.hero-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 15px; height: 15px; border-radius: 50%;
  background: var(--accent); cursor: pointer;
  box-shadow: 0 2px 6px rgba(212,175,55,0.6);
}
.hero-controls input[type="range"]::-moz-range-thumb {
  width: 15px; height: 15px; border: 0; border-radius: 50%;
  background: var(--accent); cursor: pointer;
}
.hero-controls .radio-status {
  font-size: clamp(10px, 1.1vw, 12px);
  color: var(--muted);
  white-space: nowrap;
}

/* On small screens, let the hero stack the player below the text */
@media (max-width: 560px) {
  .hero { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hero-player { align-items: flex-start; width: 100%; }
  .hero-controls { width: 100%; }
}

/* Pinned announcement banner above the chat */
.ann-bar {
  flex: 0 0 auto;
  margin-bottom: clamp(8px, 1.2vh, 12px);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: clamp(12.5px, 1.4vw, 14px);
  font-weight: 600;
  color: #231a08;
  background: linear-gradient(135deg, #f1cf72, #d4af37);
  border: 1px solid rgba(212,175,55,0.7);
}
