/* ============================================================
   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:         #0c0a0f;
  --bg-card:    #161420;
  --bg-surface: #1e1a28;
  --bg-hover:   #252133;
  --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;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
}
.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, 60s) 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-details { min-width: 0; }
.show-name {
  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;
}

/* --- 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; }
}
