/* ═══════════════════════════════════════════════════════
   SIGNATURE RADIO UK — styles.css
   Mobile-first. Breakpoints: 600px, 900px, 1200px
═══════════════════════════════════════════════════════ */

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

:root {
  --red:       #cc0000;
  --red-dark:  #8b0000;
  --black:     #000000;
  --off-black: #0d0d0d;
  --dark-grey: #1a1a1a;
  --mid-grey:  #2a2a2a;
  --light-grey:#888888;
  --white:     #ffffff;
  --font-main: 'Barlow', 'Arial Narrow', Arial, sans-serif;
  --font-cond: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

ul { list-style: none; }

address { font-style: normal; }

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

/* ── Utility ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 600px) {
  .container { padding: 0 2rem; }
}

@media (min-width: 900px) {
  .container { padding: 0 3rem; }
}

.link-red {
  color: var(--red);
  font-weight: 600;
  transition: opacity 0.2s;
}
.link-red:hover { opacity: 0.75; }

.section-divider {
  border: none;
  border-top: 1px solid #222;
  margin: 0;
}

/* ── Ticker ───────────────────────────────────────── */
.ticker-wrap {
  background: var(--red);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.45rem 0;
  position: relative;
  z-index: 10;
}

.ticker-track {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 35s linear infinite;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ── Hero animated background ────────────────────── */
@keyframes hero-glow-drift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes hero-pulse {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 0.75; }
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--black);
  min-height: 340px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

/* Animated glow layer — sits behind content via pseudo-element */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse at 20% 60%, rgba(180,0,0,0.18) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 30%, rgba(120,0,0,0.10) 0%, transparent 55%);
  background-size: 200% 200%;
  animation: hero-glow-drift 18s ease-in-out infinite,
             hero-pulse 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  padding: 2.5rem 1.25rem 2rem;
  width: 100%;
  max-width: 560px;
}

@media (min-width: 600px) {
  .hero-content { padding: 3rem 2rem 2.5rem; }
}

@media (min-width: 900px) {
  .hero-content {
    padding: 3.5rem 3rem 3rem;
    max-width: 600px;
  }
}

/* Logo */
.hero-brand {
  display: flex;
  align-items: center;
}

.hero-logo {
  width: clamp(220px, 40vw, 420px);
  height: auto;
  display: block;
}

/* Listen modes + counter */
.hero-listen {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.listen-modes {
  font-family: var(--font-cond);
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--white);
}

.visit-counter-label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--light-grey);
  text-transform: uppercase;
  margin-top: 0.25rem;
}

.visit-counter {
  font-family: var(--font-cond);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
}

/* Site visits + Alexa badge row */
.counter-alexa-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* ── Events coverflow carousel ───────────────────── */
.events-section {
  overflow: hidden;
  padding-bottom: 3rem;
}

.coverflow {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 520px;
  margin-top: 2rem;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}

.coverflow-card {
  position: absolute;
  width: 260px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.7);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity   0.55s ease,
              box-shadow 0.55s ease;
  transform-style: preserve-3d;
  user-select: none;
}

.coverflow-card img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

.coverflow-card.pos-center {
  transform: translateX(0) translateZ(0) rotateY(0deg) scale(1);
  opacity: 1;
  z-index: 3;
  box-shadow: 0 24px 64px rgba(0,0,0,0.8);
}

.coverflow-card.pos-left {
  transform: translateX(-220px) translateZ(-180px) rotateY(40deg) scale(0.82);
  opacity: 0.55;
  z-index: 2;
}

.coverflow-card.pos-right {
  transform: translateX(220px) translateZ(-180px) rotateY(-40deg) scale(0.82);
  opacity: 0.55;
  z-index: 2;
}

.coverflow-card.pos-hidden {
  transform: translateX(0) translateZ(-400px) scale(0.5);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
}

.coverflow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2.5rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.coverflow-btn:hover { opacity: 1; }
.coverflow-prev { left: clamp(8px, 3vw, 40px); }
.coverflow-next { right: clamp(8px, 3vw, 40px); }

@media (max-width: 600px) {
  .coverflow { height: 400px; }
  .coverflow-card { width: 180px; }
  .coverflow-card.pos-left  { transform: translateX(-150px) translateZ(-120px) rotateY(40deg) scale(0.78); }
  .coverflow-card.pos-right { transform: translateX(150px)  translateZ(-120px) rotateY(-40deg) scale(0.78); }
}

/* ── Community section ───────────────────────────── */
.community-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.community-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.community-text p {
  color: var(--light-grey);
  line-height: 1.7;
}

.community-flyer {
  flex: 0 0 auto;
  width: clamp(180px, 28vw, 280px);
}

.community-flyer-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

@media (max-width: 700px) {
  .community-inner {
    flex-direction: column-reverse;
    gap: 2rem;
  }
  .community-flyer {
    width: clamp(160px, 60vw, 240px);
    align-self: center;
  }
}

/* Alexa badge */
.alexa-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.alexa-icon {
  width: clamp(22px, 3vw, 32px);
  height: auto;
  display: block;
  margin-bottom: -16px;
}

.alexa-wordmark {
  width: clamp(52px, 7vw, 72px);
  height: auto;
  display: block;
}

/* Hero image */
.hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  z-index: 1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mix-blend-mode: multiply;
  display: block;
}

@media (min-width: 900px) {
  .hero-image { width: 52%; }
}

@media (max-width: 480px) {
  .hero-image { width: 45%; opacity: 0.4; }
}

/* ── Nav Bar ──────────────────────────────────────── */
.nav-bar {
  background: var(--off-black);
  border-top: 2px solid var(--red);
  border-bottom: 1px solid #1f1f1f;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

@media (min-width: 600px) {
  .nav-bar { padding: 0 2rem; }
}

@media (min-width: 900px) {
  .nav-bar { padding: 0 3rem; }
}

/* Hamburger */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.85rem 0;
  order: 1;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 900px) {
  .nav-toggle { display: none; }
}

/* Nav links */
.nav-links {
  display: none;
  flex-direction: column;
  width: 100%;
  order: 3;
  padding: 0.5rem 0 1rem;
  gap: 0;
}

.nav-links.open {
  display: flex;
}

.nav-links li a {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-cond);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color 0.2s;
}

.nav-links li a:hover { color: var(--red); }
.nav-links li a.active { color: var(--red); }

@media (min-width: 900px) {
  .nav-links {
    display: flex !important;
    flex-direction: row;
    width: auto;
    order: 2;
    padding: 0;
    gap: 0;
    align-items: center;
  }

  .nav-links li a {
    padding: 1rem 0.75rem;
    font-size: 0.8rem;
    border-bottom: 2px solid transparent;
  }

  .nav-links li a:hover,
  .nav-links li a.active {
    color: var(--red);
    border-bottom-color: var(--red);
  }
}

@media (min-width: 1100px) {
  .nav-links li a {
    padding: 1rem 1rem;
    font-size: 0.85rem;
  }
}

/* Player widget */
.player-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  order: 2;
  padding: 0.6rem 0;
}

@media (min-width: 900px) {
  .player-widget {
    order: 3;
    padding: 0.5rem 0;
  }
}

.player-meta {
  display: none;
  flex-direction: column;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .player-meta { display: flex; }
}

.player-label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--light-grey);
  text-transform: uppercase;
}

.player-track {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-btn {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  border: none;
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.45rem 0.9rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.player-btn:hover { background: #aa0000; }

.player-btn svg {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Volume control */
.volume-control {
  display: none;
  align-items: center;
  gap: 0.4rem;
}

@media (min-width: 900px) {
  .volume-control { display: flex; }
}

.volume-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--light-grey);
}

.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 72px;
  height: 3px;
  background: #444;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: var(--white);
  cursor: pointer;
}

.volume-slider:hover::-webkit-slider-thumb {
  background: var(--red);
  transform: scale(1.2);
}

.volume-slider:hover::-moz-range-thumb {
  background: var(--red);
}

/* ── Announcement Banner ──────────────────────────── */
.announcement {
  background: linear-gradient(135deg, var(--red-dark) 0%, #3d0000 100%);
  border-left: 4px solid var(--red);
  padding: 1.5rem 0;
}

.announcement-title {
  font-family: var(--font-cond);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.announcement p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.9);
}

/* ── Sections ─────────────────────────────────────── */
.section {
  padding: 3rem 0;
}

@media (min-width: 900px) {
  .section { padding: 4rem 0; }
}

/* Extra top padding for inner pages (no hero above the nav) */
.page-section {
  padding-top: 4rem;
}

@media (min-width: 900px) {
  .page-section { padding-top: 5rem; }
}

.section-heading {
  font-family: var(--font-cond);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  text-transform: uppercase;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #2a2a2a;
  margin-bottom: 1.5rem;
}

.section-intro {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.8);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* ── About ────────────────────────────────────────── */
.about-subtitle {
  font-family: var(--font-cond);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--light-grey);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.about-body p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  margin-bottom: 1rem;
  max-width: 720px;
}

.about-journey-heading {
  font-family: var(--font-cond);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.about-tagline {
  color: var(--red) !important;
  font-weight: 600;
}

/* ── Two-col layout ───────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 900px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ── Schedule ─────────────────────────────────────── */
.schedule-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.schedule-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid #1e1e1e;
}

.show-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--white);
  grid-column: 1;
  grid-row: 1;
}

.show-genre {
  font-size: 0.8rem;
  color: var(--light-grey);
  grid-column: 1;
  grid-row: 2;
}

.show-time {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--red);
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  text-align: right;
  white-space: nowrap;
}

.show-overnight .show-name { color: rgba(255,255,255,0.6); }

.schedule-note {
  margin-top: 1rem;
  font-size: 0.78rem;
  color: var(--light-grey);
  font-style: italic;
}

/* ── Get Involved ─────────────────────────────────── */
.involve-block {
  margin-bottom: 1.5rem;
}

.involve-block h3 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.involve-block p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.involve-talent {
  background: var(--dark-grey);
  border-left: 3px solid var(--red);
  padding: 1rem 1.25rem;
  border-radius: 2px;
}

/* ── Newsletter ───────────────────────────────────── */
.newsletter-cta {
  background: var(--dark-grey);
  border: 1px solid #2a2a2a;
  border-radius: 3px;
  padding: 1.25rem 1.5rem;
  max-width: 440px;
}

.newsletter-cta h3 {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}

.newsletter-cta p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  background: var(--off-black);
  border-top: 2px solid #1a1a1a;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.footer-brand {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.footer-col p,
.footer-col address {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
}

.footer-col a {
  color: rgba(255,255,255,0.75);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-right {
  text-align: left;
}

@media (min-width: 700px) {
  .footer-right { text-align: right; }
}

.footer-tagline {
  font-family: var(--font-cond);
  font-size: 1rem;
  font-weight: 600;
  color: var(--red) !important;
  margin-bottom: 0.75rem;
}

.footer-copy {
  margin-top: 0.5rem;
  color: rgba(255,255,255,0.35) !important;
  font-size: 0.78rem !important;
}

/* ── Video ────────────────────────────────────────── */
.video-wrap {
  max-width: 860px;
}

.video-container {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
}

.station-video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 3px;
  object-fit: cover;
}

.video-play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 80px;
  height: 80px;
  background: rgba(0, 0, 0, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, opacity 0.2s;
  pointer-events: none;
}

.video-play-btn svg {
  width: 32px;
  height: 32px;
  margin-left: 4px; /* optical centre for play triangle */
}

.video-container:hover .video-play-btn {
  background: rgba(204, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.9);
  transform: scale(1.08);
}

.video-container.playing .video-play-btn {
  opacity: 0;
  pointer-events: none;
}

/* ── Business page layout ─────────────────────────── */
.business-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

@media (min-width: 900px) {
  .business-grid {
    grid-template-columns: 1fr 1.6fr;
    gap: 4rem;
    align-items: start;
  }
}

.business-intro {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ── Slideshow ────────────────────────────────────── */
.slideshow-outer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.slideshow {
  position: relative;
  background: #111;
  border: 1px solid #222;
  border-radius: 3px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  flex: 1;
  min-width: 0;
}

.slideshow-track {
  width: 100%;
  height: 100%;
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

/* Prev / Next buttons — outside the slideshow */
.slideshow-btn {
  flex-shrink: 0;
  background: var(--dark-grey);
  border: 1px solid #333;
  color: var(--white);
  font-size: 1.5rem;
  line-height: 1;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s, border-color 0.2s;
}

.slideshow-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Dot indicators */
.slideshow-dots {
  position: absolute;
  bottom: 0.6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.4rem;
  z-index: 10;
}

.slideshow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}

.slideshow-dot.active {
  background: var(--red);
  transform: scale(1.25);
}

/* ── Studio Message Bar ───────────────────────────── */
.studio-message-bar {
  background: var(--dark-grey);
  border-bottom: 1px solid #222;
  padding: 1rem 0;
}

.studio-message-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.studio-message-text {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}

/* ── Shared button styles ─────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--red);
  border: none;
  border-radius: 2px;
  color: var(--white);
  cursor: pointer;
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.6rem 1.25rem;
  transition: background 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary:hover { background: #aa0000; }
.btn-primary:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid #444;
  border-radius: 2px;
  color: var(--light-grey);
  cursor: pointer;
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.5rem 1rem;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

/* ── Modal ────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay[hidden] { display: none; }

.modal {
  background: var(--dark-grey);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 480px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--light-grey);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.modal-close:hover { color: var(--white); }

.modal-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.modal-intro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.modal-success {
  font-size: 0.9rem;
  color: #4caf50;
  margin-top: 1rem;
  font-weight: 600;
}

.modal-success[hidden] { display: none; }

/* ── Shared form elements ─────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  position: relative;
}

.form-label {
  font-family: var(--font-cond);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
}

.form-optional {
  font-weight: 400;
  color: var(--light-grey);
  text-transform: none;
  letter-spacing: 0;
}

.form-required {
  color: var(--red);
}

.form-input {
  background: #111;
  border: 1px solid #333;
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-main);
  font-size: 0.9rem;
  padding: 0.6rem 0.75rem;
  transition: border-color 0.2s;
  width: 100%;
}

.form-input:focus {
  border-color: var(--red);
  outline: none;
}

.form-input::placeholder {
  color: #555;
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

.char-count {
  font-size: 0.72rem;
  color: var(--light-grey);
  text-align: right;
  margin-top: 0.2rem;
}

.form-error {
  font-size: 0.82rem;
  color: #e57373;
  min-height: 1.2em;
  margin-bottom: 0.5rem;
}

/* ── Login page ───────────────────────────────────── */
.login-wrap {
  max-width: 400px;
}

.login-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.75rem;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.login-error {
  font-size: 0.82rem;
  color: #e57373;
  min-height: 1.2em;
  margin-bottom: 0.75rem;
}

/* ── Presenter Dashboard ──────────────────────────── */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}

.dashboard-intro {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.25rem;
}

.dashboard-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-cond);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--light-grey);
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #555;
  flex-shrink: 0;
  transition: background 0.3s;
}

.status-dot.connected { background: #4caf50; }
.status-dot.error     { background: #e57373; }

/* Message list */
.message-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}

.message-empty {
  font-size: 0.9rem;
  color: var(--light-grey);
  font-style: italic;
}

.message-card {
  background: var(--dark-grey);
  border: 1px solid #222;
  border-left: 3px solid var(--red);
  border-radius: 2px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.75rem;
  animation: card-in 0.25s ease;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.message-card-meta {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.message-card-name {
  font-family: var(--font-cond);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
}

.message-card-time {
  font-size: 0.72rem;
  color: var(--light-grey);
}

.message-card-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.55;
  word-break: break-word;
}

/* ── Toast popup ──────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  pointer-events: none;
}

.toast {
  background: var(--off-black);
  border: 1px solid #3a0000;
  border-left: 4px solid var(--red);
  border-radius: 3px;
  padding: 1.1rem 1.4rem;
  min-width: 300px;
  max-width: 400px;
  pointer-events: auto;
  animation: toast-in 0.3s ease;
  box-shadow: 0 4px 32px rgba(204,0,0,0.35), 0 2px 12px rgba(0,0,0,0.7);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast.toast-out {
  animation: toast-out 0.3s ease forwards;
}

@keyframes toast-out {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}

.toast-label {
  font-family: var(--font-cond);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.toast-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.toast-body {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Presenter Bubble ─────────────────────────────── */
.presenter-bubble {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  z-index: 150;
  display: none; /* shown via JS once auth state is known */
}

.presenter-bubble-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-black);
  border: 1px solid #333;
  border-left: 3px solid var(--red);
  border-radius: 3px;
  color: rgba(255,255,255,0.75);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.82rem;
  padding: 0.6rem 1rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.presenter-bubble-btn:hover {
  background: var(--dark-grey);
  border-color: var(--red);
  color: var(--white);
}

.presenter-bubble-arrow {
  color: var(--red);
  font-size: 1rem;
  transition: transform 0.2s;
}

.presenter-bubble-btn:hover .presenter-bubble-arrow {
  transform: translateX(3px);
}

.presenter-bubble-loggedin {
  display: none;
  align-items: center;
  gap: 0.75rem;
  background: var(--off-black);
  border: 1px solid #333;
  border-left: 3px solid #4caf50;
  border-radius: 3px;
  padding: 0.6rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.presenter-bubble-status {
  font-family: var(--font-cond);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4caf50;
  white-space: nowrap;
}

.presenter-bubble-signout {
  background: none;
  border: none;
  color: var(--light-grey);
  cursor: pointer;
  font-family: var(--font-main);
  font-size: 0.78rem;
  padding: 0;
  transition: color 0.2s;
  white-space: nowrap;
}

.presenter-bubble-signout:hover {
  color: var(--white);
}

/* ── Presenter Panel Overlay ──────────────────────── */
.presenter-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.presenter-panel-overlay[hidden] { display: none; }

.presenter-panel {
  background: var(--dark-grey);
  border: 1px solid #2a2a2a;
  border-top: 3px solid var(--red);
  border-radius: 3px;
  padding: 2rem 1.75rem;
  width: 100%;
  max-width: 420px;
  position: relative;
  animation: panel-in 0.2s ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(-12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.presenter-panel-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: var(--light-grey);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s;
}

.presenter-panel-close:hover { color: var(--white); }

.presenter-panel-title {
  font-family: var(--font-cond);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.35rem;
}

.presenter-panel-intro {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.5rem;
}

/* ── Focus styles (accessibility) ────────────────── */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ═══════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════ */

/* ── Keyframes ────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fade-left {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes overlay-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Hero entrance ────────────────────────────────── */
.hero-logo {
  animation: fade-up 0.7s ease both;
  animation-delay: 0.1s;
}

.listen-modes {
  animation: fade-up 0.6s ease both;
  animation-delay: 0.25s;
}

.visit-counter-label,
.visit-counter {
  animation: fade-in 0.6s ease both;
  animation-delay: 0.4s;
}

.hero-img {
  animation: fade-in 1s ease both;
  animation-delay: 0.2s;
}

/* ── Inner page load animations ───────────────────── */
.page-load-fade {
  opacity: 0;
  animation: fade-up 0.6s ease forwards;
}

.page-load-fade:nth-child(1) { animation-delay: 0.1s; }
.page-load-fade:nth-child(2) { animation-delay: 0.2s; }
.page-load-fade:nth-child(3) { animation-delay: 0.3s; }
.page-load-fade:nth-child(4) { animation-delay: 0.4s; }
.page-load-fade:nth-child(5) { animation-delay: 0.5s; }

/* ── Scroll-reveal system ─────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal--left {
  transform: translateX(-12px);
}

.reveal--scale {
  transform: scale(0.97) translateY(12px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays for sibling reveals */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger > .reveal:nth-child(5) { transition-delay: 320ms; }

/* ── Schedule list stagger ────────────────────────── */
.schedule-list li.reveal:nth-child(1)  { transition-delay: 0ms; }
.schedule-list li.reveal:nth-child(2)  { transition-delay: 50ms; }
.schedule-list li.reveal:nth-child(3)  { transition-delay: 100ms; }
.schedule-list li.reveal:nth-child(4)  { transition-delay: 150ms; }
.schedule-list li.reveal:nth-child(5)  { transition-delay: 200ms; }
.schedule-list li.reveal:nth-child(6)  { transition-delay: 250ms; }
.schedule-list li.reveal:nth-child(7)  { transition-delay: 300ms; }
.schedule-list li.reveal:nth-child(8)  { transition-delay: 350ms; }
.schedule-list li.reveal:nth-child(9)  { transition-delay: 400ms; }
.schedule-list li.reveal:nth-child(10) { transition-delay: 450ms; }

/* ── Interactive polish ───────────────────────────── */
.btn-primary {
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

/* Modal overlay fade */
.modal-overlay:not([hidden]) {
  animation: overlay-in 0.2s ease;
}

/* Message modal panel entrance — reuse existing panel-in keyframe */
.modal {
  animation: panel-in 0.25s ease;
}

/* ── Reduced motion ───────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ticker-track  { animation: none; }
  html           { scroll-behavior: auto; }
  .message-card  { animation: none; }
  .toast         { animation: none; }
  .toast.toast-out { animation: none; opacity: 0; }

  /* Hero */
  .hero::before { animation: none; }
  .hero-logo,
  .listen-modes,
  .visit-counter-label,
  .visit-counter,
  .hero-img { animation: none; opacity: 1; }

  /* Page load */
  .page-load-fade { animation: none; opacity: 1; }

  /* Scroll reveal */
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Interactive */
  .btn-primary:hover:not(:disabled) { transform: none; }
  .modal-overlay:not([hidden])      { animation: none; }
  .modal                            { animation: none; }
  .presenter-panel                  { animation: none; }
}
