/* =========================================================================
   BEHOLD THE BEYOND — 90s LGS Card-Shop Zine Stylesheet
   Palette sampled directly from the official Beholder artwork
   ========================================================================= */
:root {
  --paper: #FBEFD4;
  --paper-bright: #FFF9EC;
  --paper-deep: #F2E0B8;
  --ink: #161412;
  --ink-soft: #3D362D;
  --muted: #5C5245;

  /* Beholder & 5-Beam Palette */
  --olive: #899D44;
  --olive-dark: #5C6D27;
  --teal: #4E7A7A;
  --eye-gold: #EAB04D;
  --eye-orange: #E8802C;
  --beam-red: #C82B24;
  --beam-pink: #E26589;
  --beam-cyan: #54B2C7;
  --beam-orange: #E8802C;
  --beam-magenta: #C22671;

  --border: 3px solid var(--ink);
  --border-sm: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
  --radius: 14px;
  --radius-sm: 10px;

  --font-display: 'Archivo Black', Impact, 'Arial Black', sans-serif;
  --font-stamp: 'Bangers', 'Archivo Black', cursive;
  --font-body: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: radial-gradient(rgba(22, 20, 18, 0.055) 1px, transparent 1px);
  background-size: 16px 16px;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 84px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 22px;
}

/* 5-Color Eye-Beam Zine Stripe */
.beam-bar {
  height: 9px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: var(--border-sm);
}
.beam-bar span:nth-child(1) { background: var(--beam-red); }
.beam-bar span:nth-child(2) { background: var(--beam-pink); }
.beam-bar span:nth-child(3) { background: var(--beam-cyan); }
.beam-bar span:nth-child(4) { background: var(--beam-orange); }
.beam-bar span:nth-child(5) { background: var(--beam-magenta); }

/* =========================================================================
   HEADER
   ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 239, 212, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  flex-wrap: wrap;
}
.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
}
.brand-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: var(--border-sm);
  background: var(--paper-bright);
  overflow: hidden;
  box-shadow: 3px 3px 0 var(--ink);
  flex-shrink: 0;
}
.brand-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.site-nav a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 7px 13px;
  border-radius: 999px;
  border: 2px solid transparent;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.12s ease, box-shadow 0.12s ease;
}
.site-nav a:hover {
  background: var(--paper-bright);
  border-color: var(--ink);
  box-shadow: 2px 2px 0 var(--ink);
  transform: translate(-1px, -1px);
}
.site-nav a.nav-cta {
  background: var(--eye-gold);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
.site-nav a.nav-cta:hover {
  background: var(--beam-orange);
  color: var(--ink);
}

/* =========================================================================
   ZINE COVER HERO
   ========================================================================= */
.hero {
  padding: 36px 0 56px;
}
.issue-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: var(--border-sm);
  border-bottom: var(--border-sm);
  padding: 7px 12px;
  margin-bottom: 28px;
  background: var(--paper-bright);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.mana-pips {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pip {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: inline-block;
}
.pip--red { background: var(--beam-red); }
.pip--pink { background: var(--beam-pink); }
.pip--cyan { background: var(--beam-cyan); }
.pip--orange { background: var(--beam-orange); }
.pip--magenta { background: var(--beam-magenta); }
.pip--olive { background: var(--olive); }
.pip--black { background: #2D2730; }

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 34px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--olive);
  color: var(--paper-bright);
  border: var(--border-sm);
  border-radius: 999px;
  padding: 5px 14px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  box-shadow: 3px 3px 0 var(--ink);
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.2vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 0 0 16px;
  text-shadow: 4px 4px 0 var(--eye-gold);
}
.hero-blurb {
  font-size: 1.08rem;
  color: var(--ink-soft);
  margin: 0 0 24px;
  max-width: 52ch;
  font-weight: 500;
}

/* Comic Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: var(--border);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.14s ease;
}
.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}
.btn-primary {
  background: var(--beam-orange);
  color: var(--ink);
}
.btn-primary:hover { background: var(--eye-gold); }
.btn-secondary {
  background: var(--paper-bright);
  color: var(--ink);
}
.btn-secondary:hover { background: var(--beam-cyan); }
.btn-olive {
  background: var(--olive);
  color: var(--paper-bright);
}
.btn-olive:hover { background: var(--olive-dark); }

/* Hero Artwork Frame */
.hero-art-wrap {
  position: relative;
}
.hero-art-card {
  background: var(--paper);
  border: var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-art-card img {
  width: 100%;
  height: auto;
  display: block;
}
.zine-sticker {
  position: absolute;
  top: -14px;
  right: -10px;
  background: var(--eye-gold);
  color: var(--ink);
  border: var(--border);
  border-radius: 999px;
  padding: 7px 16px;
  font-family: var(--font-stamp);
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  box-shadow: 4px 4px 0 var(--ink);
  transform: rotate(6deg);
  z-index: 5;
}
@media (max-width: 600px) {
  .zine-sticker { right: 6px; top: -12px; font-size: 1.05rem; }
}

/* =========================================================================
   SECTION BANDS & HEADINGS
   ========================================================================= */
.section {
  padding: 58px 0;
}
.section-band {
  background: var(--paper-deep);
  border-top: var(--border);
  border-bottom: var(--border);
}
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 26px;
}
.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0;
}

/* =========================================================================
   EPISODE PLAYER STAGE & RSS FEED ARCHIVE
   ========================================================================= */
.player-card {
  background: var(--paper-bright);
  border: var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 28px;
}
@media (max-width: 640px) {
  .player-card { padding: 20px 18px; }
}
.player-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--beam-cyan);
  border: var(--border-sm);
  border-radius: 999px;
  padding: 4px 13px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 2px 2px 0 var(--ink);
}
.status-tag--soon { background: var(--eye-gold); }
.ep-meta-mono {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.player-title {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.15;
  margin: 6px 0 10px;
}
.player-summary {
  color: var(--ink-soft);
  margin: 0 0 20px;
  max-width: 78ch;
  white-space: pre-line;
}

.audio-deck {
  background: var(--paper);
  border: var(--border-sm);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.play-btn-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: var(--border);
  background: var(--beam-red);
  color: var(--paper-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s ease, background 0.14s ease;
}
.play-btn-circle:hover {
  background: var(--beam-orange);
  color: var(--ink);
  transform: translate(-1px, -1px);
}
.play-btn-circle svg { width: 22px; height: 22px; fill: currentColor; }

.deck-pill {
  background: var(--paper-bright);
  border: var(--border-sm);
  border-radius: 999px;
  padding: 7px 13px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--ink);
}
.deck-pill:hover { background: var(--eye-gold); }

.scrub-col {
  flex: 1;
  min-width: 190px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.scrub-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--paper-deep);
  border: 2px solid var(--ink);
  outline: none;
  cursor: pointer;
}
.scrub-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--olive);
  border: 2.5px solid var(--ink);
  cursor: pointer;
}
.time-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

/* Coming Soon Box (Shown automatically when rssUrl is empty) */
.coming-soon-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 820px) {
  .coming-soon-strip { grid-template-columns: 1fr; }
}
.preview-slot {
  background: var(--paper-bright);
  border: var(--border-sm);
  border-style: dashed;
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.slot-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}
.preview-slot h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0;
  text-transform: uppercase;
}
.preview-slot p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Live Episode Search & Grid */
.ep-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.search-input {
  padding: 10px 16px;
  border-radius: 999px;
  border: var(--border-sm);
  background: var(--paper-bright);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  min-width: 260px;
  box-shadow: 3px 3px 0 var(--ink);
}
.search-input:focus {
  outline: none;
  background: #FFFFFF;
}
.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}
.ep-card {
  background: var(--paper-bright);
  border: var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
}
.ep-card:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.ep-card.is-playing {
  background: #FFF2C9;
}
.ep-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.2;
  margin: 6px 0 8px;
}
.ep-card p {
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* =========================================================================
   ABOUT & TRADING-CARD HOSTS
   ========================================================================= */
.about-card {
  background: var(--paper-bright);
  border: var(--border);
  border-radius: 18px;
  padding: 28px 30px;
  box-shadow: var(--shadow);
  margin-bottom: 34px;
}
.about-card p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin: 0 0 12px;
  max-width: 72ch;
}
.about-card p:last-child { margin-bottom: 0; }

.hosts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}
.mtg-card {
  background: var(--paper-bright);
  border: var(--border);
  border-radius: 18px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mtg-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--paper);
  border: var(--border-sm);
  border-radius: 10px;
  padding: 8px 12px;
}
.mtg-card-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  margin: 0;
}
.mtg-card-type {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--paper-deep);
  border: var(--border-sm);
  border-radius: 8px;
  padding: 5px 10px;
}
.mtg-card-textbox {
  background: #FFFFFF;
  border: var(--border-sm);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.96rem;
  color: var(--ink-soft);
  flex: 1;
}
.mtg-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  padding: 2px 4px;
}
.pt-box {
  background: var(--eye-gold);
  color: var(--ink);
  border: var(--border-sm);
  border-radius: 8px;
  padding: 3px 10px;
  font-family: var(--font-display);
  font-size: 0.92rem;
}

/* =========================================================================
   LISTEN PLATFORM GRID
   ========================================================================= */
.platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 14px;
}
.platform-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  background: var(--paper-bright);
  border: var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.platform-card[href]:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
}
.platform-card.is-soon {
  opacity: 0.88;
  cursor: default;
}
.platform-accent {
  width: 34px;
  height: 7px;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  margin-bottom: 6px;
}
.accent--red { background: var(--beam-red); }
.accent--pink { background: var(--beam-pink); }
.accent--cyan { background: var(--beam-cyan); }
.accent--orange { background: var(--beam-orange); }
.accent--magenta { background: var(--beam-magenta); }
.accent--olive { background: var(--olive); }

.platform-name {
  font-family: var(--font-display);
  font-size: 1rem;
  text-transform: uppercase;
}
.platform-status {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

/* =========================================================================
   FOOTER & STICKY MINI-PLAYER
   ========================================================================= */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  border-top: var(--border);
  padding: 46px 0 54px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.site-footer h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  color: var(--eye-gold);
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.site-footer p {
  margin: 0 0 10px;
  font-size: 0.94rem;
  color: rgba(251, 239, 212, 0.86);
}
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.footer-links a {
  color: var(--paper);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--eye-gold);
  text-decoration: underline;
}

.sticky-mini {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 14px;
  max-width: 920px;
  margin: 0 auto;
  z-index: 999;
  background: var(--ink);
  color: var(--paper);
  border: 3px solid var(--eye-gold);
  border-radius: 999px;
  padding: 9px 16px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  gap: 12px;
}
.sticky-mini.visible { display: flex; }
.mini-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mini-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(251, 239, 212, 0.22);
  overflow: hidden;
  cursor: pointer;
  margin-top: 4px;
}
.mini-fill {
  height: 100%;
  width: 0%;
  background: var(--eye-gold);
}

