/**
 * 313 LIVE shell — fluid, fully responsive black theme
 * Single fixed top stack: player bar + nav. No overlapping chrome.
 */

:root {
  --313-bg: #0a0c10;
  --313-bg2: #0f1117;
  --313-cyan: #00f0ff;
  --313-magenta: #ff00aa;
  --313-text: #e4e4e7;
  --313-muted: #a1a1aa;
  --313-dim: #71717a;
  --313-border: rgba(255, 255, 255, 0.1);
  --313-glass: rgba(255, 255, 255, 0.03);
  --313-player-h: clamp(56px, 8vw, 64px);
  --313-nav-h: clamp(44px, 6vw, 48px);
  --313-top: calc(var(--313-player-h) + var(--313-nav-h));
  --font: Inter, system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", Inter, system-ui, sans-serif;

  /* Fluid type + spacing scale (320px → 1200px viewports) */
  --fs-xs: clamp(0.7rem, 0.65rem + 0.2vw, 0.78rem);
  --fs-sm: clamp(0.8rem, 0.74rem + 0.25vw, 0.9rem);
  --fs-base: clamp(0.92rem, 0.86rem + 0.3vw, 1.02rem);
  --fs-md: clamp(1rem, 0.92rem + 0.4vw, 1.15rem);
  --fs-lg: clamp(1.2rem, 1.05rem + 0.7vw, 1.55rem);
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  --fs-2xl: clamp(1.85rem, 1.4rem + 1.8vw, 3rem);
  --space-1: clamp(0.35rem, 0.3rem + 0.2vw, 0.5rem);
  --space-2: clamp(0.6rem, 0.5rem + 0.35vw, 0.9rem);
  --space-3: clamp(0.9rem, 0.75rem + 0.6vw, 1.35rem);
  --space-4: clamp(1.25rem, 1rem + 1vw, 2rem);
  --space-5: clamp(1.75rem, 1.3rem + 1.5vw, 3rem);
  --container: min(72rem, calc(100% - clamp(1.25rem, 4vw, 2.5rem)));
  --radius: clamp(0.75rem, 0.6rem + 0.4vw, 1.25rem);
  --touch: 44px;

  /* neutralize old tokens */
  --dwss-bg: var(--313-bg);
  --dwss-panel: var(--313-bg2);
  --dwss-panel-2: #18181b;
  --dwss-cyan: var(--313-cyan);
  --dwss-teal: var(--313-cyan);
  --dwss-magenta: var(--313-magenta);
  --dwss-text: var(--313-text);
  --dwss-muted: var(--313-dim);
  --dwss-border: var(--313-border);
  --accent: var(--313-cyan);
  --accent2: var(--313-magenta);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--313-bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.site-313 {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
  max-width: 100vw;
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--313-text);
  background:
    linear-gradient(180deg, #0a0c10 0%, #0f1117 100%),
    radial-gradient(circle at 50% 18%, rgba(0, 240, 255, 0.03) 0%, transparent 50%);
  background-color: #0a0c10;
  line-height: 1.55;
  /* Reserve space for fixed top stack */
  padding-top: var(--313-top);
  padding-bottom: 0;
  overflow-x: hidden;
}
/* Fixed backgrounds are expensive on mobile GPUs */
@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  body.site-313 { background-attachment: fixed; }
}
body.site-313 img {
  max-width: 100%;
  height: auto;
}
/* Logo / avatar squares keep fixed box (override max-width 100%) */
body.site-313 .sp-logo-img,
body.site-313 .brand-logo-img,
body.site-313 .sp-art,
body.site-313 img.admin-logo-img {
  max-width: none;
  height: auto;
}
body.site-313 .sp-logo-img,
body.site-313 .brand-logo-img {
  height: 40px;
  width: 40px;
}

body.site-313 a { color: var(--313-cyan); text-decoration: none; }
body.site-313 a:hover { color: #7af7ff; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--313-cyan);
  color: #000;
  padding: 8px 12px;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ========== FIXED TOP STACK ========== */
.site-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  background: rgba(10, 12, 16, 0.97);
  border-bottom: 1px solid var(--313-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* --- Player row --- */
.sp {
  height: var(--313-player-h);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sp-row {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: auto auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 0.85rem;
}
.sp-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.sp-logo-mark,
.sp-logo-img,
img.sp-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.15), rgba(255, 0, 170, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 20px rgba(0, 240, 255, 0.12);
  display: block;
  flex-shrink: 0;
}
.sp-logo-mark {
  background: linear-gradient(135deg, #00f0ff, #ff00aa);
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: unset;
}
.sp-play {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  background: #00f0ff;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  flex-shrink: 0;
}
.sp-play:hover { box-shadow: 0 0 22px rgba(0, 240, 255, 0.4); }
.sp-play:active { transform: scale(0.94); }
body.is-live-playing .sp-play {
  background: #00f0ff;
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.2), 0 0 28px rgba(0, 240, 255, 0.35);
}
.sp-art {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #09090b;
  border: 1px solid var(--313-border);
  flex-shrink: 0;
}
.sp-meta {
  min-width: 0;
  overflow: hidden;
}
.sp-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.02em;
}
.sp-sub {
  margin-top: 2px;
  font-size: 0.75rem;
  color: var(--313-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.sp-live {
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}
.sp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  display: inline-block;
  animation: sp-pulse 2s ease-in-out infinite;
}
@keyframes sp-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.sp-sep { opacity: 0.5; }
.sp-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.sp-listeners {
  font-size: 11px;
  color: var(--313-dim);
  font-variant-numeric: tabular-nums;
  min-width: 4.5rem;
  text-align: right;
}
.sp-vol {
  display: none;
  align-items: center;
  gap: 0.35rem;
}
.sp-icon {
  background: transparent;
  border: 0;
  color: var(--313-muted);
  cursor: pointer;
  padding: 0.35rem;
  font-size: 0.9rem;
}
.sp-icon:hover { color: #fff; }
.sp-range {
  width: 72px;
  accent-color: #00f0ff;
  height: 4px;
}
.sp-full {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--313-border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--313-text) !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.sp-full:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff !important;
  background: rgba(0, 240, 255, 0.06);
}

/* --- Nav row --- */
.site-nav-bar {
  height: var(--313-nav-h);
}
.site-nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav-links::-webkit-scrollbar { display: none; }
.site-nav-links a {
  color: var(--313-muted) !important;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.4rem 0.7rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-nav-links a:hover {
  color: #fff !important;
}
.site-nav-links a.is-active {
  color: #00f0ff !important;
  border-bottom-color: #00f0ff;
}
.nav-toggle {
  display: none;
  width: 40px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--313-border);
  border-radius: 10px;
  color: var(--313-muted);
  cursor: pointer;
}
.nav-onair {
  font-size: 11px;
  color: #34d399;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(52, 211, 153, 0.25);
  background: rgba(52, 211, 153, 0.08);
  white-space: nowrap;
}

/* ========== MAIN ========== */
.site-main {
  min-height: calc(100dvh - var(--313-top) - 8rem);
  padding: var(--space-4) 0 var(--space-5);
  width: 100%;
  max-width: 100%;
}
/* Homepage: let the visual hero sit flush under the sticky chrome */
body.site-313:has(.hero-313-visual) .site-main {
  padding-top: 0;
}
.min-w-0 { min-width: 0; }
.container {
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
}
.container.narrow {
  width: min(40rem, var(--container));
}

/* Fluid headings */
body.site-313 h1,
.hero-title,
.page-hero h1,
.live-page-title {
  font-size: var(--fs-2xl);
  line-height: 1.15;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
body.site-313 h2,
.section-head h2 {
  font-size: var(--fs-lg);
  line-height: 1.25;
  word-wrap: break-word;
}
body.site-313 h3 { font-size: var(--fs-md); }

/* Forms fluid */
body.site-313 input,
body.site-313 select,
body.site-313 textarea {
  max-width: 100%;
  font-size: max(16px, 1em); /* prevent iOS zoom on focus */
}
body.site-313 label {
  display: block;
  width: 100%;
}
body.site-313 .contact-form input,
body.site-313 .contact-form textarea,
body.site-313 .contact-form select {
  width: 100%;
  box-sizing: border-box;
}

/* Honeypot — off-screen, not display:none (bots still fill it) */
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Tables scroll on small screens */
.table-wrap,
body.site-313 .schedule-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
body.site-313 table {
  max-width: 100%;
}

/* Surfaces */
.glass-card,
.card,
.empty-state,
.contact-form,
.hero-panel,
.cta-banner,
.post-card,
.schedule-day {
  background: var(--313-glass) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 1.25rem !important;
  backdrop-filter: blur(16px);
  box-shadow: none !important;
}
.card-link:hover,
.post-card:hover {
  border-color: rgba(255, 255, 255, 0.14) !important;
  transform: translateY(-1px);
}

.btn,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background: #00f0ff !important;
  color: #000 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  font-family: var(--font);
  font-size: var(--fs-sm);
  padding: 0.7rem 1.25rem;
  min-height: var(--touch);
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: none !important;
  filter: none !important;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover,
.btn-primary:hover {
  filter: brightness(1.06) !important;
  color: #000 !important;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.05) !important;
  color: var(--313-text) !important;
  border: 1px solid var(--313-border) !important;
  border-radius: 999px !important;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}
.btn-lg { padding: 0.85rem 1.4rem; font-size: 0.95rem; }
.btn-sm { padding: 0.45rem 0.9rem; font-size: 0.8rem; }
.btn-block { width: 100%; }

.hero-313:not(.hero-313-visual) { padding: 1.5rem 0 0.5rem; background: transparent !important; }
.hero-313-visual {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  /* Fluid height — never force awkward tall empty space on phones */
  min-height: clamp(20rem, 48vw, 34rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem) 0 clamp(1.25rem, 3vw, 2.5rem);
  background-color: #05070c !important;
  background-image:
    linear-gradient(115deg, rgba(5, 7, 12, 0.94) 0%, rgba(5, 7, 12, 0.78) 45%, rgba(5, 7, 12, 0.55) 100%),
    var(--hero-bg, none);
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}
.hero-313-visual .hero-313-overlay {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 75% 20%, rgba(0, 240, 255, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 45% at 15% 85%, rgba(255, 0, 170, 0.1), transparent 50%),
    linear-gradient(to top, #05070c 0%, transparent 38%);
}
/* Content stays on the same column as the rest of the site;
   only the background (section) is full-bleed edge-to-edge */
.hero-313-visual .hero-inner,
.hero-313-visual .container.hero-inner {
  position: relative;
  z-index: 1;
  width: var(--container);
  max-width: 100%;
  margin-inline: auto;
  box-sizing: border-box;
}
.hero-313-visual .hero-title { text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55); }
.hero-313-visual .hero-sub {
  color: #c8d0da !important;
  max-width: min(42ch, 100%);
}
.hero-313-visual .hero-panel {
  background: rgba(10, 12, 16, 0.78) !important;
  border-color: rgba(0, 240, 255, 0.18) !important;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4) !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.hero-title,
.page-hero h1,
.live-page-title {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: #fff !important;
  /* size set in fluid type block above */
}
.hero-sub,
.page-hero .lead,
.live-page-sub,
.card-meta,
.muted,
.footer-copy,
.footer-tagline,
.footer-loc {
  color: var(--313-muted) !important;
}
.section-title,
.section-head h2,
.card-kicker,
.eyebrow,
.hero-panel-label {
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 12px;
  font-weight: 600;
}
.eq-mini span { background: #00f0ff !important; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--313-border);
  background: #0a0c10;
  padding: 2.5rem 0;
  margin-top: 1rem;
}
.footer-brand { color: #fff !important; font-family: var(--display); }
.footer-links a { color: var(--313-muted) !important; }
.footer-links a:hover { color: #00f0ff !important; }

/* Forms */
input, textarea, select {
  background: #09090b !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: var(--313-text) !important;
  border-radius: 0.85rem !important;
}
input:focus, textarea:focus, select:focus {
  border-color: #00f0ff !important;
  outline: none;
}

/* Live page */
.live-page-hero {
  padding: 1.25rem 0 1rem;
  border-bottom: 1px solid var(--313-border);
  margin-bottom: 0.5rem;
}
.live-page-hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.page-live .site-main { padding-top: 0.75rem; }

/* Soft-nav: never dim the top shell (audio must stay usable) */
body.soft-nav-busy .site-top {
  opacity: 1 !important;
  pointer-events: auto !important;
  filter: none !important;
}
body.soft-nav-busy #sticky-player,
body.soft-nav-busy .sp,
body.soft-nav-busy .sp-play,
body.soft-nav-busy .sp-vol,
body.soft-nav-busy [data-live313-play],
body.soft-nav-busy #play-btn,
body.soft-nav-busy #art-overlay,
body.soft-nav-busy #live-hero-play {
  pointer-events: auto !important;
  opacity: 1 !important;
  cursor: pointer !important;
}
/* Always clickable play CTAs */
[data-live313-play],
#sticky-play-btn,
.sp-play,
#play-btn,
#art-overlay,
#live-hero-play {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(0, 240, 255, 0.2);
  touch-action: manipulation;
}
/* Keep global audio in the document — never hide or collapse it */
#live313-audio,
audio#live313-audio,
audio[data-live313-permanent] {
  position: fixed !important;
  width: 0 !important;
  height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
  display: block !important;
  visibility: visible !important;
}

/* Hide legacy duplicate chrome from public.css */
body.site-313 .site-header { display: none !important; }

/* Footer / continuous brand mark (logo image or fallback) */
.footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
}
.brand-mark,
.brand-mark-sm,
.brand-logo-img,
img.brand-mark,
img.brand-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.12), rgba(255, 0, 170, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: block;
  flex-shrink: 0;
}
span.brand-mark,
span.brand-mark-sm {
  background: linear-gradient(135deg, #00f0ff, #ff00aa);
  color: #000;
  font-family: var(--display);
  font-weight: 900;
  font-size: 0.8rem;
  letter-spacing: -1.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  object-fit: unset;
}
.brand-mark-sm,
img.brand-mark-sm { width: 36px; height: 36px; }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-brand-block {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 0.75rem;
}
.footer-listen { margin-top: 0.85rem; }

/* Post cards clean */
.post-card-title { color: #fff !important; }
.post-card-excerpt, .post-card-date { color: var(--313-muted) !important; }
.card-title { color: #fff !important; }

/* Prose */
.prose { color: var(--313-text); max-width: 72ch; }
.prose h1, .prose h2, .prose h3 { color: #fff; font-family: var(--display); }
.prose a { color: #00f0ff; }

/* Hero panel on home */
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: center;
}
.hero-copy {
  min-width: 0;
  max-width: 100%;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}
.hero-actions .btn {
  flex: 0 1 auto;
  max-width: 100%;
}
.section { padding: var(--space-4) 0; }
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-family: var(--display);
  font-size: var(--fs-lg);
  margin: 0;
  color: #fff !important;
  text-transform: none;
  letter-spacing: -0.02em;
  min-width: 0;
}
.section-head a {
  white-space: nowrap;
  flex-shrink: 0;
}
.card-grid,
.dj-grid,
.schedule-teaser {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13.5rem), 1fr));
  gap: var(--space-3);
}
.card-grid > *,
.dj-grid > *,
.schedule-teaser > * {
  min-width: 0;
  max-width: 100%;
}

/* ========== Homepage complete layout ========== */
.section-tight {
  padding-top: clamp(0.75rem, 2vw, 1.15rem);
  padding-bottom: clamp(0.75rem, 2vw, 1.15rem);
}
.hero-sub {
  max-width: min(42ch, 100%);
  margin: 0 0 0.35rem;
  font-size: var(--fs-md);
  line-height: 1.5;
}
.hero-panel {
  padding: clamp(1rem, 2.5vw, 1.4rem) !important;
}
.hero-panel-row {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin-bottom: 1rem;
  min-width: 0;
}
.hero-panel-row .min-w-0 {
  min-width: 0;
  flex: 1 1 auto;
}
.hero-panel-title {
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.35vw, 1.15rem);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-panel-meta {
  color: var(--313-muted);
  font-size: var(--fs-sm);
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hero-panel .btn-block + .btn-block,
.hero-panel a.btn-block {
  margin-top: 0.5rem;
}
.hero-bullets {
  list-style: none;
  margin: 1.15rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.1rem;
  color: var(--313-muted);
  font-size: var(--fs-sm);
}
.hero-bullets li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}
.hero-bullets i {
  color: #00f0ff;
  width: 1rem;
  text-align: center;
  flex-shrink: 0;
}

.home-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  gap: var(--space-2);
}
.home-quick {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(0.9rem, 2vw, 1.15rem);
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color 0.15s, transform 0.15s;
  min-width: 0;
}
.home-quick:hover {
  border-color: rgba(0, 240, 255, 0.35) !important;
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .home-quick:hover,
  .card-link:hover,
  .post-card:hover { transform: none; }
}
.home-quick i { color: #00f0ff; font-size: 1.1rem; margin-bottom: 0.2rem; }
.home-quick strong {
  color: #fff;
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.home-quick span {
  color: var(--313-muted);
  font-size: var(--fs-xs);
  line-height: 1.35;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: var(--space-3);
}
.home-feature-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: inherit !important;
  text-decoration: none !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.home-feature-card.is-lead {
  grid-row: 1 / span 2;
}
.home-feature-media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09090b;
  flex-shrink: 0;
}
.home-feature-card.is-lead .home-feature-media { aspect-ratio: 16 / 11; }
.home-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-feature-body {
  padding: clamp(0.85rem, 2vw, 1.15rem);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}
.home-feature-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.2rem);
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.home-feature-card.is-lead .home-feature-body h3 {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
}
.home-feature-body p {
  margin: 0;
  color: var(--313-muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
  flex: 1;
}
.home-feature-more {
  color: #00f0ff;
  font-size: var(--fs-sm);
  font-weight: 600;
  margin-top: 0.25rem;
}

.home-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-3);
}
.home-post-grid > * { min-width: 0; }
.home-cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.home-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--313-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--313-text) !important;
  font-size: var(--fs-sm);
  font-weight: 500;
  min-height: 2.25rem;
  max-width: 100%;
}
.home-cat-chip:hover {
  border-color: rgba(0, 240, 255, 0.4);
  color: #00f0ff !important;
}
.home-cat-chip span {
  color: var(--313-dim);
  font-size: var(--fs-xs);
}

.home-about-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.home-about-media {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.home-about-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.home-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: stretch;
}
.home-about-copy {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
  min-width: 0;
}
.home-about-copy h2 {
  font-family: var(--display);
  color: #fff;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem);
  letter-spacing: -0.02em;
  margin: 0.35rem 0 0.85rem;
  overflow-wrap: anywhere;
}
.home-about-copy p {
  color: var(--313-muted);
  margin: 0 0 0.85rem;
  line-height: 1.6;
}
.home-about-copy .hero-actions {
  margin-top: 0.35rem;
}
.home-about-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.home-stat {
  padding: clamp(0.9rem, 2vw, 1.15rem) 0.85rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.home-stat-num {
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem);
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: -0.03em;
  line-height: 1;
}
.home-stat-label {
  margin-top: 0.4rem;
  font-size: var(--fs-xs);
  color: var(--313-muted);
  line-height: 1.3;
}

.home-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
  gap: var(--space-2);
}
.home-genre-grid .card {
  padding: clamp(0.95rem, 2vw, 1.15rem);
  min-width: 0;
}
.home-genre-grid .card-title { margin: 0.35rem 0; }

.home-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-2);
}
.home-step {
  padding: clamp(1rem, 2.2vw, 1.25rem);
  min-width: 0;
}
.home-step-num {
  font-family: var(--display);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: #00f0ff;
  letter-spacing: 0.08em;
}
.home-step h3 {
  margin: 0.45rem 0 0.35rem;
  color: #fff;
  font-family: var(--display);
  font-size: var(--fs-md);
}
.home-step p {
  margin: 0;
  color: var(--313-muted);
  font-size: var(--fs-sm);
  line-height: 1.45;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  padding: clamp(1.15rem, 2.5vw, 1.6rem) !important;
}
.cta-banner > * { min-width: 0; }
.cta-banner h2 {
  font-family: var(--display);
  color: #fff;
  margin: 0 0 0.35rem;
  font-size: clamp(1.2rem, 1.05rem + 0.55vw, 1.45rem);
  overflow-wrap: anywhere;
}
.cta-banner p {
  margin: 0;
  color: var(--313-muted);
  max-width: 42ch;
}
.cta-banner .hero-actions {
  margin-top: 0;
}

/* Post cards on home */
.home-post-grid .post-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
}
.home-post-grid .post-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.home-post-grid .post-card-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #09090b;
  position: relative;
  flex-shrink: 0;
}
.home-post-grid .post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-post-grid .post-card-body {
  padding: clamp(0.8rem, 1.8vw, 1.05rem);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
.home-post-grid .post-card-title {
  font-size: var(--fs-md);
  line-height: 1.3;
  margin: 0;
  overflow-wrap: anywhere;
}
.home-post-grid .post-card-excerpt {
  font-size: var(--fs-sm);
  line-height: 1.4;
  flex: 1;
}
.home-post-grid .post-card-more {
  color: #00f0ff;
  font-size: var(--fs-xs);
  font-weight: 600;
}

/* DJ cards fluid */
.dj-card {
  min-width: 0;
}
.dj-card .card-title {
  overflow-wrap: anywhere;
}
.dj-photo {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

/* Schedule teaser on home */
.schedule-teaser .card {
  min-width: 0;
  padding: clamp(0.9rem, 2vw, 1.15rem);
}

/* Glass cards: fluid padding override for home density */
body.site-313 .glass-card {
  padding: clamp(0.95rem, 2.2vw, 1.35rem);
}
body.site-313 .home-feature-card.glass-card,
body.site-313 .post-card.glass-card,
body.site-313 .home-post-grid .post-card {
  padding: 0;
}

/* —— Homepage breakpoints —— */
@media (max-width: 1100px) {
  .home-featured-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }
  .home-feature-card.is-lead .home-feature-body h3 {
    font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  }
}

@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .home-featured-grid {
    grid-template-columns: 1fr;
  }
  .home-feature-card.is-lead {
    grid-row: auto;
  }
  .home-feature-card.is-lead .home-feature-media {
    aspect-ratio: 16 / 10;
  }
  .home-about-grid {
    grid-template-columns: 1fr;
  }
  .cta-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-banner .hero-actions {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero-313-visual {
    min-height: 0;
    padding: 1.35rem 0 1.15rem;
  }
  .hero-bullets {
    flex-direction: column;
    gap: 0.4rem;
  }
  .home-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-post-grid {
    grid-template-columns: 1fr;
  }
  .home-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-steps {
    grid-template-columns: 1fr;
  }
  .card-grid,
  .dj-grid,
  .schedule-teaser {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 10.5rem), 1fr));
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 400px) {
  .home-quick-grid {
    grid-template-columns: 1fr;
  }
  .home-genre-grid {
    grid-template-columns: 1fr;
  }
  .home-about-stats {
    grid-template-columns: 1fr 1fr;
  }
  .card-grid,
  .dj-grid,
  .schedule-teaser {
    grid-template-columns: 1fr;
  }
}

/* Responsive shell */
@media (min-width: 768px) {
  .sp-vol { display: flex; }
}
@media (max-width: 720px) {
  :root {
    --313-player-h: 58px;
    --313-nav-h: 46px;
  }
  .sp-row {
    grid-template-columns: auto auto auto minmax(0, 1fr) auto;
    gap: 0.45rem;
    padding: 0 clamp(0.55rem, 2.5vw, 0.85rem);
  }
  /* Keep logo on mobile for continuous branding */
  .sp-logo { display: flex; }
  body.site-313 .sp-logo-img,
  .sp-logo-img,
  img.sp-logo-img,
  .sp-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }
  .sp-play {
    width: var(--touch);
    height: var(--touch);
    min-width: var(--touch);
    font-size: 0.85rem;
  }
  .sp-art {
    width: 38px;
    height: 38px;
    border-radius: 8px;
  }
  .sp-title { font-size: var(--fs-sm); }
  .sp-sub { font-size: var(--fs-xs); }
  .sp-listeners { display: none; }
  .sp-full {
    padding: 0.32rem 0.55rem;
    font-size: 10px;
    min-height: 36px;
  }
  .nav-toggle {
    display: inline-flex;
    min-width: var(--touch);
    min-height: var(--touch);
  }
  .site-nav-inner { padding: 0 clamp(0.55rem, 2.5vw, 0.85rem); }
  .site-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    background: rgba(10, 12, 16, 0.98);
    border-bottom: 1px solid var(--313-border);
    padding: 0.5rem;
    max-height: min(70vh, 420px);
    overflow: auto;
    z-index: 310;
    -webkit-overflow-scrolling: touch;
  }
  .site-nav-links.is-open { display: flex; }
  .site-nav-links a {
    padding: 0.85rem 1rem;
    border-bottom: 0;
    border-radius: 0.5rem;
    font-size: var(--fs-md);
    min-height: var(--touch);
  }
  .site-nav-links a.is-active {
    background: rgba(0, 240, 255, 0.08);
  }
  .site-nav-bar { position: relative; }

  .footer-inner {
    flex-direction: column;
    gap: var(--space-3);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .footer-brand-block { width: 100%; }
  .footer-right { width: 100%; }
  .footer-links {
    gap: 0.65rem 0.85rem;
  }
  .footer-links a {
    min-height: var(--touch);
    display: inline-flex;
    align-items: center;
  }
  .footer-listen {
    width: 100%;
    justify-content: center;
    min-height: var(--touch);
  }
  .btn, .btn-primary, .btn-ghost, .btn-lg {
    min-height: var(--touch);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-actions .btn {
    width: 100%;
    flex: 1 1 auto;
    justify-content: center;
  }
  .hero-inner { gap: var(--space-3); }
  .cta-banner .hero-actions .btn {
    width: 100%;
  }
  .home-about-copy .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .home-about-copy .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  /* Avoid horizontal bleed from long unbroken strings */
  .site-main {
    overflow-x: clip;
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .sp-full { display: none; }
  .sp-row {
    grid-template-columns: auto auto auto minmax(0, 1fr);
  }
}

/* Large / ultra-wide: keep content readable */
@media (min-width: 1400px) {
  :root {
    --container: min(76rem, calc(100% - 4rem));
  }
}

/* Landscape phones: keep player compact */
@media (max-height: 480px) and (orientation: landscape) {
  :root {
    --313-player-h: 52px;
    --313-nav-h: 40px;
  }
  .sp-title { font-size: 0.8rem; }
  .site-main { padding-top: var(--space-2); }
}

@supports (padding: max(0px)) {
  .site-top {
    padding-top: env(safe-area-inset-top, 0px);
  }
  body.site-313 {
    padding-top: calc(var(--313-top) + env(safe-area-inset-top, 0px));
  }
  body.site-313 .site-footer {
    padding-left: env(safe-area-inset-left, 0px);
    padding-right: env(safe-area-inset-right, 0px);
  }
}
