/* Slack Radios — grit / synthwave / SubGenius energy
   BG: drop avatar as assets/bg.jpg (also checks .png / .webp via CSS layers) */

:root {
  --bg: #000000;
  --pink: #ff2bd6;
  --pink-hot: #ff4de8;
  --magenta: #ff00aa;
  --purple: #a855f7;
  --purple-dim: #6b21a8;
  --text: #f2e8ff;
  --muted: #b9a3d4;
  --card: rgba(20, 0, 28, 0.72);
  --border: rgba(255, 43, 214, 0.35);
  --glow: 0 0 18px rgba(255, 43, 214, 0.55), 0 0 42px rgba(168, 85, 247, 0.35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  position: relative;
  overflow-x: hidden;
}

/* Full-bleed background: use image if present, else black + noise/gradient */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-color: #000;
  background-image:
    /* Prefer bg.jpg; browser ignores missing layers that 404 in some setups —
       also try png/webp via stacked URLs (first available wins if served) */
    url("assets/bg.jpg"),
    url("assets/bg.webp"),
    url("assets/bg.png"),
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(107, 33, 168, 0.35), transparent 60%),
    radial-gradient(ellipse 70% 50% at 80% 80%, rgba(255, 0, 170, 0.12), transparent 55%),
    linear-gradient(180deg, #050008 0%, #000 50%, #0a0010 100%);
  background-size: cover, cover, cover, cover, cover, cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Subtle film grain / noise overlay when no photo */
.bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  mix-blend-mode: overlay;
}

.scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.55) 40%, rgba(0, 0, 0, 0.85) 100%);
  pointer-events: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--pink);
  color: #000;
  padding: 0.5rem 1rem;
  z-index: 100;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pink);
  text-shadow: var(--glow);
  font-size: 1.05rem;
}

.brand-url {
  font-size: 0.8rem;
  color: var(--purple);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink);
  padding: 0.4rem 0.75rem;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 2px;
}

.nav-toggle:focus-visible,
.nav a:focus-visible,
.listen-btn:focus-visible,
.audio-el:focus-visible {
  outline: 2px solid var(--pink-hot);
  outline-offset: 3px;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.nav-menu.is-open {
  display: flex;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.nav a:hover,
.nav a:focus {
  color: var(--pink);
}

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

  .nav-menu {
    display: flex;
    flex-direction: row;
    width: auto;
    gap: 1.25rem;
  }
}

.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.site-kicker {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  font-weight: 700;
}

.flame-headline {
  margin: 0 0 1.25rem;
  line-height: 1.05;
  font-size: clamp(2.1rem, 9vw, 4.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  word-break: break-word;
}

.flame-text {
  display: inline-block;
  background: linear-gradient(
    90deg,
    #ffeb3b 0%,
    #ff9800 18%,
    #ff2bd6 42%,
    #ff0044 62%,
    #ffeb3b 82%,
    #ff2bd6 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flame-shift 2.8s linear infinite;
  filter: drop-shadow(0 0 8px rgba(255, 43, 214, 0.9))
    drop-shadow(0 0 22px rgba(255, 120, 0, 0.55))
    drop-shadow(0 4px 0 rgba(80, 0, 40, 0.8));
  /* Fallback glow for browsers that don't clip well */
  text-shadow: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .flame-text {
    color: var(--pink-hot);
    -webkit-text-fill-color: var(--pink-hot);
    text-shadow:
      0 0 10px #ff9800,
      0 0 24px #ff2bd6,
      0 0 40px #ff0044;
    animation: flame-glow 1.4s ease-in-out infinite alternate;
  }
}

@keyframes flame-shift {
  0% { background-position: 0% 50%; }
  100% { background-position: 220% 50%; }
}

@keyframes flame-glow {
  from {
    text-shadow: 0 0 8px #ff9800, 0 0 18px #ff2bd6;
  }
  to {
    text-shadow: 0 0 16px #ffeb3b, 0 0 36px #ff0044, 0 0 50px #ff2bd6;
  }
}

.tagline {
  max-width: 36rem;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-size: 1.05rem;
}


.hungary-gold {
  margin: 1.5rem auto 2rem !important;
  max-width: 48rem;
  text-align: center;
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffd700 !important;
  -webkit-text-fill-color: #ffd700;
  background: linear-gradient(180deg, #fff6a8 0%, #ffd700 35%, #c9a000 70%, #8a6a00 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) drop-shadow(0 0 28px rgba(255, 180, 0, 0.55));
}

.hungary-num {
  display: block;
  font-size: clamp(5.5rem, 22vw, 11rem) !important;
  font-weight: 900;
}

.hungary-words {
  display: block;
  margin-top: 0.1em;
  font-size: clamp(2rem, 8vw, 4rem) !important;
  font-weight: 900;
}



.listen-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: var(--glow);
  max-width: 28rem;
  margin: 0 auto;
}

.listen-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 20rem;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  background: linear-gradient(135deg, var(--pink-hot), var(--magenta) 50%, var(--purple));
  box-shadow: var(--glow);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.listen-btn:hover {
  filter: brightness(1.08);
  transform: scale(1.02);
}

.listen-btn[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--purple), var(--pink));
}

.listen-btn-icon {
  font-size: 1.1rem;
}

.audio-el {
  width: 100%;
  max-width: 22rem;
  height: 2.5rem;
  accent-color: var(--pink);
}

.stream-hint {
  margin: 0;
  font-size: 0.75rem;
  color: var(--muted);
  word-break: break-all;
}

.stream-hint a,
.footer-stream a {
  color: var(--purple);
}

.stream-hint a:hover,
.footer-stream a:hover {
  color: var(--pink);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.25rem;
}

.section-title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--pink);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-shadow: var(--glow);
}

.section-lede {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.show-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .show-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.show-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.show-card:hover {
  border-color: var(--pink);
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.25);
}

.show-card h3 {
  margin: 0 0 0.5rem;
  color: var(--pink-hot);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.show-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.show-card--optional {
  border-style: dashed;
  opacity: 0.95;
}

.schedule-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--card);
}

.schedule-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid rgba(168, 85, 247, 0.25);
}

.schedule-list li:last-child {
  border-bottom: none;
}

.slot-show {
  font-weight: 700;
  color: var(--text);
}

.slot-time {
  color: var(--purple);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.about-blurb {
  max-width: 40rem;
  color: var(--muted);
}

.about-blurb p {
  margin: 0 0 1rem;
}

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-brand {
  margin: 0 0 0.5rem;
  color: var(--pink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-stream {
  margin: 0 0 0.5rem;
  word-break: break-all;
}

.footer-note {
  margin: 0;
  font-size: 0.75rem;
  opacity: 0.8;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .flame-text {
    animation: none;
    background-position: 40% 50%;
  }
}


.tfts-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.tfts-card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--card);
}

.tfts-card h3 {
  margin: 0 0 0.5rem;
  color: var(--pink);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tfts-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.tfts-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.tfts-btn {
  display: inline-block;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.tfts-btn--ghost {
  background: transparent;
  border: 1px solid var(--pink);
  color: var(--pink-hot);
}

.tfts-text {
  color: var(--purple);
  font-size: 0.9rem;
}

.share-btn {
  margin-top: 0.85rem;
  width: 100%;
  max-width: 18rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(255, 215, 0, 0.55);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #ffd700;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.share-btn:hover {
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.35);
}

.share-status {
  min-height: 1.2em;
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.peas-line {
  margin: 0.75rem 0 1rem !important;
  color: #ffd700 !important;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.02em;
}

.tfts-banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 0 1.5rem;
  align-items: center;
}
