/* ============================================================
   Mobile Bay Radio — v43 Complete Redesign
   Clean, modern radio station design
   Inspired by KEXP / WNYC aesthetic
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #2a2740;
  --bg-card:    #33304a;
  --bg-surface: #3b3854;
  --bg-hover:   #44405e;
  --accent:     #e63946;
  --accent-dim: #c0313d;
  --accent-glow: rgba(230, 57, 70, .15);
  --gold:       #f4a261;
  --teal:       #2ec4b6;
  --text:       #eae6f0;
  --text-muted: #9992a8;
  --text-dim:   #6b6480;
  --border:     rgba(255,255,255,.06);
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 12px rgba(0,0,0,.4);
  --max-w:      1120px;
  --nav-h:      64px;
  --player-h:   72px;
  --font:       'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Roboto Slab', Georgia, serif;
}

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: var(--player-h);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 760px; }

/* --- Masthead --- */
.masthead {
  background: linear-gradient(180deg, var(--bg) 0%, #14101e 100%);
  padding: 2rem 0 0;
  position: relative;
  overflow: hidden;
}
.masthead::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.masthead-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.masthead-brand {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  text-decoration: none;
  color: var(--text);
}
.masthead-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px var(--accent-glow);
  flex-shrink: 0;
}
.masthead-title {
  font-size: 2.2rem;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}
.masthead-tagline {
  color: var(--text-muted);
  font-size: 1rem;
  margin: .25rem 0 0;
}
.masthead-nav {
  max-width: var(--max-w);
  margin: 1.5rem auto 0;
  padding: 0 1.5rem .75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  position: relative;
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.nav-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.masthead-nav a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-transform: uppercase;
  transition: color .2s;
  text-decoration: none;
}
.masthead-nav a:hover,
.masthead-nav a.active { color: var(--text); }
.masthead-nav a.nav-listen {
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
.masthead-nav a.nav-listen:hover { background: var(--accent-dim); color: #fff; }
.masthead-nav a.nav-app-btn {
  background: transparent;
  border: 1.5px solid var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .75rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
}
.masthead-nav a.nav-app-btn:hover { border-color: var(--text); color: var(--text); }

.live-dot {
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

/* --- Above-fold Grid: Player + Shows + Podcast --- */
.above-fold {
  padding: 0 0 2rem;
  background: linear-gradient(180deg, #14101e 0%, var(--bg) 100%);
}
.above-fold-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Inline player card (above fold, not the sticky one) */
.player-card {
  grid-column: 1 / -1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.player-card .pc-logo {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.player-card .pc-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .15s;
}
.player-card .pc-play:hover { background: var(--accent-dim); transform: scale(1.06); }
.player-card .pc-play svg { fill: #fff; }
.player-card .pc-play.playing { background: var(--teal); }
.pc-info { flex: 1; min-width: 0; }
.pc-live-badge {
  display: none;
  align-items: center;
  gap: .4rem;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .25rem;
}
.pc-live-badge.visible { display: inline-flex; }
.pc-live-dot {
  width: 6px; height: 6px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.pc-np-label {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pc-np-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-np-artist {
  font-size: .85rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-history {
  display: flex;
  gap: 2rem;
  margin-left: auto;
  flex-shrink: 0;
}
.pc-hist-item {
  display: flex;
  flex-direction: column;
  max-width: 240px;
}
.pc-hist-label {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.pc-hist-text {
  font-size: .95rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-album-art {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* Shows ticker card */
.shows-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.shows-card-header {
  padding: .75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.shows-card-header h3 {
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--gold);
}
.shows-card-header span {
  font-size: .7rem;
  color: var(--text-dim);
}
.shows-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-height: 220px;
  max-height: 280px;
}
.shows-scroll {
  display: flex;
  flex-direction: column;
  animation: shows-scroll var(--scroll-duration, 120s) linear infinite;
}
.shows-scroll:hover { animation-play-state: paused; }
@keyframes shows-scroll {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}
.show-item {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .65rem 1.25rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background .15s;
  font-size: .85rem;
}
.show-item:hover { background: var(--bg-hover); color: var(--text); }
.show-date {
  flex-shrink: 0;
  width: 52px;
  text-align: center;
  padding: .25rem 0;
  background: var(--bg-surface);
  border-radius: 6px;
  font-size: .7rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gold);
  text-transform: uppercase;
}
.show-date .day { display: block; font-size: 1.1rem; }
.show-thumb { display:none; width:0; height:0; border-radius:2px; object-fit:cover; background:var(--bg-surface); }
.show-details { min-width: 0; }
.show-name { font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.show-venue {
  font-size: .75rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Podcast card */
.podcast-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: border-color .2s, transform .15s;
}
.podcast-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: var(--text);
}
.podcast-card img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 1rem;
}
.podcast-card .pc-label {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .35rem;
}
.podcast-card h3 {
  font-size: 1.1rem;
  margin-bottom: .35rem;
}
.podcast-card p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.podcast-cta {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .5rem 1.5rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  transition: background .2s;
}
.podcast-card:hover .podcast-cta { background: var(--accent-dim); }

/* --- Sticky Bottom Player --- */
.sticky-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: var(--player-h);
  background: rgba(22, 20, 32, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  z-index: 1000;
  display: none;
}
.sticky-player.active { display: flex; }
.sticky-player-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.sp-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s;
}
.sp-btn:hover { background: var(--accent-dim); }
.sp-btn svg { fill: #fff; }
.sp-info { flex: 1; min-width: 0; }
.sp-title {
  font-size: .9rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-artist {
  font-size: .8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sp-live {
  display: none;
  align-items: center;
  gap: .35rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--teal);
}
.sp-live.visible { display: inline-flex; }
.sp-art {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
}

/* --- Page Sections --- */
.section {
  padding: 4rem 0;
}
.section.alt {
  background: var(--bg-surface);
}
.section h2 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}
.section p {
  color: var(--text-muted);
  margin-bottom: 1rem;
  max-width: 680px;
}
.section p a { color: var(--accent); }
.section p a:hover { color: var(--gold); }

/* Values grid (about page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s, transform .15s;
}
.value-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.value-card .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.value-card h3 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  color: var(--text);
}
.value-card p {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: none;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label {
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}
.form-group textarea { min-height: 140px; resize: vertical; }
.form-group select { cursor: pointer; }

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color .2s;
}
.contact-info-card:hover { border-color: var(--accent); }
.contact-info-card h3 {
  font-size: 1rem;
  margin-bottom: .5rem;
  color: var(--text);
}
.contact-info-card p {
  font-size: .9rem;
  color: var(--text-muted);
  max-width: none;
  margin-bottom: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--accent);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s;
  text-decoration: none;
}
.btn:hover { background: var(--accent-dim); transform: translateY(-1px); color: #fff; }
.btn-outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
}

/* --- Footer --- */
.site-footer {
  background: #08070c;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.5rem;
  margin-bottom: 0;
}
body { padding-bottom: 0; }
body.player-active { padding-bottom: var(--player-h); }
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.footer-brand p {
  font-size: .9rem;
  color: var(--text-muted);
  margin-top: 1rem;
  max-width: none;
}
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.footer-logo-wrap img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.logo-main {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
}
.logo-sub {
  font-size: .75rem;
  color: var(--text-dim);
}
.footer-col h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.footer-col a {
  display: block;
  color: var(--text-dim);
  font-size: .9rem;
  padding: .3rem 0;
  transition: color .2s;
  text-decoration: none;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom p {
  font-size: .8rem;
  color: var(--text-dim);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  gap: 1.5rem;
}
.footer-bottom-links a {
  font-size: .8rem;
  color: var(--text-dim);
  text-decoration: none;
}
.footer-bottom-links a:hover { color: var(--text); }

/* --- Page Hero (subpages) --- */
.page-hero {
  padding: 2.5rem 0;
  text-align: center;
  background: var(--bg-surface);
  position: relative;
}
.page-hero h1 {
  font-size: 2.2rem;
  position: relative;
  margin-bottom: .5rem;
}
.page-hero .subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
  position: relative;
}

/* --- Thank You page --- */
.thankyou-hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-surface) 100%);
}
.thankyou-icon {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}
.thankyou-hero h1 {
  font-size: 2.4rem;
  margin-bottom: 1rem;
}
.thankyou-hero p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto 2rem;
}
.thankyou-actions {
  display: flex;
  gap: 1rem;
}

/* --- Song Request Nav Button + Modal --- */
.nav-request {
  background: var(--accent);
  color: #fff !important;
  padding: .5rem 1.25rem;
  border-radius: 100px;
  font-weight: 600;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.nav-request:hover { background: var(--accent-dim); color: #fff !important; }

.request-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.request-backdrop.open { display: flex; }

.request-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 100%;
  max-width: 440px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  animation: req-slide-up .2s ease-out;
}
@keyframes req-slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.request-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.request-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold);
  margin: 0;
}
.request-close {
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color .2s;
}
.request-close:hover { color: var(--text); }

.request-search {
  display: flex;
  gap: .5rem;
  padding: 1rem 1.25rem;
}
.request-search input {
  flex: 1;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: .65rem .9rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s;
}
.request-search input:focus { border-color: var(--accent); }
.request-search input::placeholder { color: var(--text-dim); }
.request-search button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: .65rem 1.1rem;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}
.request-search button:hover { background: var(--accent-dim); }

.request-results {
  flex: 1;
  overflow-y: auto;
  min-height: 0;
  max-height: 340px;
  padding: 0;
}
.request-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: .7rem 1.25rem;
  color: var(--text);
  font-family: var(--font);
  font-size: .88rem;
  cursor: pointer;
  transition: background .15s;
}
.request-item:hover { background: var(--bg-hover); }
.request-item:last-child { border-bottom: none; }

.request-msg {
  padding: .75rem 1.25rem;
  font-size: .85rem;
  text-align: center;
}
.request-msg.success { color: var(--teal); }
.request-msg.error { color: var(--accent); }
.request-msg.info { color: var(--text-muted); }

/* --- Responsive --- */
@media (max-width: 900px) {
  .above-fold-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .contact-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .masthead { padding: 1.5rem 0 0; }
  .masthead-logo { width: 72px; height: 72px; }
  .masthead-title { font-size: 1.6rem; }
  .masthead-tagline { font-size: .85rem; }
  .masthead-nav { gap: 1rem; flex-wrap: wrap; }
  .masthead-nav a { font-size: .8rem; }

  .player-card { flex-wrap: wrap; padding: 1rem; gap: 1rem; }
  .pc-history { display: none; }
  .pc-album-art { display: none; }

  .shows-viewport { min-height: 200px; max-height: 240px; }

  .page-hero h1 { font-size: 1.7rem; }
  .section { padding: 2.5rem 0; }
  .section h2 { font-size: 1.4rem; }

  .footer-bottom { flex-direction: column; gap: .75rem; text-align: center; }
  .thankyou-actions { flex-direction: column; }
}

@media (max-width: 480px) {
  :root { --player-h: 64px; }
  .masthead-logo { width: 56px; height: 56px; }
  .masthead-title { font-size: 1.3rem; }
  .masthead-nav { gap: .7rem; }
  .masthead-nav a { font-size: .7rem; }
  .masthead-nav a.nav-listen { padding: .35rem .8rem; font-size: .7rem; }
  .player-card .pc-logo { width: 44px; height: 44px; }
  .player-card .pc-play { width: 44px; height: 44px; }
  .sp-art { width: 40px; height: 40px; }
}

/* Screen-reader-only label text (added 2026-07-27 for the request dialog's
   search input, which previously had a placeholder but no real label). */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Homepage v68 — compact reference layout
   Scoped where class names are shared with the four subpages.
   ============================================================ */
:root { --bg-deep: #14101e; }
body.home-page { padding-bottom: var(--player-h); }

/* Slim header */
.topbar { background: var(--bg-deep); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.topbar-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; height: 64px; display: flex; align-items: center; gap: 1.5rem; }
.topbar-brand { display: flex; align-items: center; gap: .7rem; color: var(--text); }
.topbar-brand img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--accent); object-fit: cover; }
.topbar-brand .name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }
.topbar-nav { margin-left: auto; display: flex; align-items: center; gap: 1.5rem; }
.topbar-nav a.link { color: var(--text-muted); font-size: .8rem; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.topbar-nav a.link:hover, .topbar-nav a.link.active { color: var(--text); }
.btn-listen { background: var(--accent); color: #fff !important; padding: .45rem 1.15rem; border-radius: 100px; font-weight: 600; font-size: .85rem; text-transform: none; }
.btn-listen:hover { background: var(--accent-dim); }
.hamburger { display: none; margin-left: auto; background: none; border: 0; color: var(--text); font-size: 1.5rem; line-height: 1; padding: .25rem .5rem; cursor: pointer; }

/* Hero: headline + player card */
.hero { max-width: var(--max-w); margin: 0 auto; padding: 4rem 1.5rem 3rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.hero > * { min-width: 0; }
.hero-copy h1 { font-size: 3rem; margin-bottom: 1rem; }
.hero-copy h1 .accent { color: var(--accent); display: block; }
.hero-copy p.sub { color: var(--text-muted); font-size: 1.05rem; max-width: 42ch; margin-bottom: 1.75rem; }
.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.home-page .btn-outline { border: 1.5px solid var(--text-muted); color: var(--text); border-radius: 100px; padding: .55rem 1.25rem; font-size: .85rem; font-weight: 600; background: transparent; }
.home-page .btn-outline:hover { border-color: var(--text); background: var(--bg-surface); color: var(--text); }

.home-page .player-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; display: block; grid-column: auto; }
.pc-main { display: flex; align-items: center; gap: 1.25rem; }
.home-page .player-card .pc-logo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.home-page .player-card .pc-play { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.pc-play:hover { background: var(--accent-dim); }
.pc-info { min-width: 0; flex: 1; }
.pc-live-badge { display: inline-flex; align-items: center; gap: .35rem; background: var(--accent); color: #fff; font-size: .65rem; font-weight: 700; letter-spacing: .08em; border-radius: 4px; padding: .15rem .5rem; margin-bottom: .35rem; }
.pc-live-dot { width: 6px; height: 6px; background: #fff; border-radius: 50%; animation: none; }
.pc-np-label { font-size: .65rem; font-weight: 700; letter-spacing: .1em; color: var(--text-muted); }
.pc-np-title { font-weight: 600; font-size: 1.1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-np-artist { color: var(--text-muted); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-history { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border); display: grid; gap: .4rem; margin-left: 0; }
.pc-history.pending { visibility: hidden; }
.pc-hist-item { display: flex; flex-direction: row; gap: .75rem; font-size: .8rem; align-items: baseline; min-width: 0; max-width: none; }
.pc-hist-label { color: var(--text-dim); font-size: .65rem; font-weight: 700; letter-spacing: .08em; width: 84px; flex-shrink: 0; }
.pc-hist-text { color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; font-size: .8rem; }

/* Calendar preview grid */
.home-page .section { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-head { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.section-head h2 { font-size: 1.6rem; }
.section-head .more { margin-left: auto; font-size: .8rem; font-weight: 600; color: var(--accent); }
.section-head .region { color: var(--text-muted); font-size: .85rem; width: 100%; margin-top: -.5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cal-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; display: flex; gap: .85rem; align-items: flex-start; color: var(--text); transition: background .15s; min-width: 0; }
.cal-card:hover { background: var(--bg-hover); color: var(--text); }
.cal-card > div:last-child { min-width: 0; }
.cal-thumb { width: 56px; height: 56px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: var(--bg-surface); }
.cal-date { flex-shrink: 0; width: 48px; text-align: center; padding: .3rem 0; background: var(--bg-surface); border-radius: 6px; font-size: .65rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); }
.cal-date .day { display: block; font-size: 1.05rem; color: var(--text); }
.cal-name { font-weight: 600; font-size: .95rem; line-height: 1.3; overflow-wrap: anywhere; }
.cal-venue { color: var(--text-muted); font-size: .78rem; line-height: 1.35; margin-top: .15rem; overflow-wrap: anywhere; }

/* Podcast banner */
.home-page .podcast { max-width: var(--max-w); margin: 0 auto 3rem; padding: 0 1.5rem; }
.home-page .podcast-card { background: linear-gradient(120deg, var(--bg-card), var(--bg-surface)); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; display: flex; flex-direction: row; align-items: center; gap: 2rem; text-align: left; color: var(--text); }
.home-page .podcast-card .kicker { color: var(--gold); font-size: .7rem; font-weight: 700; letter-spacing: .12em; }
.home-page .podcast-card h3 { font-size: 1.4rem; margin: .25rem 0 .35rem; }
.home-page .podcast-card p { color: var(--text-muted); font-size: .9rem; margin: 0; }
.home-page .podcast-card .btn-listen { margin-left: auto; flex-shrink: 0; }

/* Condensed homepage footer */
.home-page .site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 0; }
.home-page .footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem; }
.home-page .footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; margin-bottom: 0; }
.home-page .footer-brand { display: flex; align-items: center; gap: .8rem; }
.home-page .footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); }
.home-page .footer-brand .logo-main { font-family: var(--font-display); font-weight: 700; }
.home-page .footer-brand .logo-sub { color: var(--text-muted); font-size: .75rem; }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: .8rem; }
.footer-links a:hover { color: var(--text); }
.home-page .footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .75rem; display: block; }

/* Sticky mini-player is present before playback begins. */
.home-page .sticky-player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); background: #1c1830; border-top: 2px solid var(--accent); box-shadow: 0 -4px 16px rgba(0,0,0,.5); z-index: 1000; display: flex; }
.home-page .sticky-player-inner { max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 1.5rem; display: flex; align-items: center; gap: 1rem; }
.home-page .sp-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.home-page .sp-live { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-size: .6rem; font-weight: 700; letter-spacing: .1em; }
.home-page .sp-live .pc-live-dot { background: var(--accent); }
.home-page .sp-title { font-weight: 600; font-size: .9rem; }
.home-page .sp-artist { color: var(--text-muted); font-size: .78rem; }
.sp-app { margin-left: auto; font-size: .78rem; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2rem; padding-top: 2.5rem; }
  .cal-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links, .nav-buttons { flex-wrap: wrap; row-gap: .5rem; }
}

@media (max-width: 640px) {
  .section-head { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .section-head .more { margin-left: 0; order: 3; }
  .section-head .region { order: 2; width: auto; margin-top: 0; }
  .topbar-nav { display: none; }
  .topbar-nav.open { display: flex; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg-deep); flex-direction: column; align-items: flex-start; padding: 1rem 1.5rem; gap: 1rem; }
  .hamburger { display: block; }
  .hero { padding: 2rem 1.25rem; }
  .hero-copy h1 { font-size: 2rem; }
  .home-page .section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cal-grid { grid-template-columns: 1fr; }
  .home-page .podcast-card { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .home-page .podcast-card .btn-listen { margin-left: 0; }
  .sp-app { display: none; }
}

@media (max-width: 480px) {
  .pc-main { gap: .85rem; }
  .player-card .pc-logo { width: 48px; height: 48px; }
  .player-card .pc-play { width: 44px; height: 44px; }
}

/* ============================================================
   Persistent player shell v69
   Internal page navigation swaps #page-content only, leaving audio alive.
   ============================================================ */
body.persistent-player { padding-bottom: var(--player-h); }
#page-content { min-height: 1px; transition: opacity .12s ease; }
#page-content.route-loading { opacity: .55; pointer-events: none; }

body.persistent-player .site-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 0; }
body.persistent-player .footer-inner { max-width: var(--max-w); margin: 0 auto; padding: 2.5rem 1.5rem 1.5rem; }
body.persistent-player .footer-top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; align-items: center; margin-bottom: 0; }
body.persistent-player .footer-brand { display: flex; align-items: center; gap: .8rem; }
body.persistent-player .footer-brand img { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--accent); }
body.persistent-player .footer-brand .logo-main { font-family: var(--font-display); font-weight: 700; }
body.persistent-player .footer-brand .logo-sub { color: var(--text-muted); font-size: .75rem; }
body.persistent-player .footer-bottom { margin-top: 1.75rem; padding-top: 1rem; border-top: 1px solid var(--border); color: var(--text-dim); font-size: .75rem; display: block; }

body.persistent-player .sticky-player { position: fixed; left: 0; right: 0; bottom: 0; height: var(--player-h); background: #1c1830; border-top: 2px solid var(--accent); box-shadow: 0 -4px 16px rgba(0,0,0,.5); z-index: 1000; display: flex; }
body.persistent-player .sticky-player-inner { max-width: var(--max-w); margin: 0 auto; height: 100%; padding: 0 1.5rem; display: flex; align-items: center; gap: 1rem; }
body.persistent-player .sp-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
body.persistent-player .sp-live { display: inline-flex; align-items: center; gap: .3rem; color: var(--accent); font-size: .6rem; font-weight: 700; letter-spacing: .1em; }
body.persistent-player .sp-live .pc-live-dot { background: var(--accent); }
body.persistent-player .sp-title { font-weight: 600; font-size: .9rem; }
body.persistent-player .sp-artist { color: var(--text-muted); font-size: .78rem; }

/* Full calendar styles are shared so they remain available after a partial
   navigation from the homepage. */
.cal-hero { padding: 32px 24px 24px; text-align: center; }
.cal-hero h1 { font-size: 1.8rem; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.cal-hero p { color: var(--text-muted); font-size: .95rem; }
.cal-count { display: inline-block; background: var(--accent-glow); color: var(--accent); font-size: .8rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; margin-top: 10px; }
.cal-wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px 80px; }
.cal-month { margin-bottom: 40px; }
.cal-month-label { font-size: 1.1rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.cal-day { margin-bottom: 20px; }
.cal-day-label { font-size: .8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.cal-event { display: flex; align-items: center; gap: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 8px; text-decoration: none; color: var(--text); transition: background .15s, border-color .15s; }
.cal-event:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--text); }
.cal-event-img { width: 56px; height: 56px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; background: var(--bg-surface); }
.cal-event-noimg { width: 56px; height: 56px; border-radius: var(--radius-sm); flex-shrink: 0; background: var(--bg-surface); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 1.4rem; }
.cal-event-info { flex: 1; min-width: 0; }
.cal-event-name { font-size: 1rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-event-venue { font-size: .85rem; color: var(--text-muted); margin-top: 2px; }
.cal-event-status { display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--accent); margin-top: 4px; }
.cal-event-time { flex-shrink: 0; text-align: right; }
.cal-event-time span { display: block; font-size: .85rem; font-weight: 600; color: var(--teal); }
.cal-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }
.cal-back { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 20px; }
.cal-back:hover { color: var(--gold); }
.cal-filter { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 16px 0 24px; }
.cal-filter-btn { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: .8rem; font-weight: 600; padding: 6px 16px; border-radius: 20px; cursor: pointer; transition: all .15s; font-family: var(--font); }
.cal-filter-btn:hover { border-color: var(--accent); color: var(--text); }
.cal-filter-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 640px) {
  .cal-hero h1 { font-size: 1.4rem; }
  .cal-event { gap: 12px; padding: 12px 14px; }
  .cal-event-img, .cal-event-noimg { width: 44px; height: 44px; }
  .cal-event-name { font-size: .9rem; }
}
