/* ============================================
   UGMF — Feature Additions & Overrides
   Loaded after style.css — contains:
   - Dark/light mode fixes
   - Shop enhancements
   - Subscribe page styles
   - Episode duration badges
   - Chapter timeline
   - Reading progress bar
   - Admin toast notifications
   ============================================ */

/* ============================================
   1. EPISODE CARD HOVER — PLAY OVERLAY + IMAGE ZOOM
   ============================================ */
.episode-card__image-wrap {
  position: relative;
  overflow: hidden;
}

.episode-card__image-wrap .episode-card__image {
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter var(--transition);
}

.episode-card:hover .episode-card__image-wrap .episode-card__image {
  transform: scale(1.03);
}

.episode-card__play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
  z-index: 2;
}

.episode-card__play-overlay::before {
  content: '';
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.7);
  border: 2px solid var(--yellow);
  position: absolute;
}

.episode-card__play-overlay::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent var(--yellow);
  position: relative;
  left: 2px;
  z-index: 1;
}

.episode-card:hover .episode-card__play-overlay {
  opacity: 1;
}

/* ============================================
   2. DARK / LIGHT MODE TOGGLE
   ============================================ */

/* Light theme overrides */
[data-theme="light"] {
  --black: #e8e8e8;
  --black-light: #dedede;
  --black-card: #ffffff;
  --gray-dark: #e0e0e0;
  --gray-mid: #c8c8c8;
  --gray: #888888;
  --gray-light: #555555;
  --white: #1a1a1a;
  --white-dim: #2a2a2a;
  --yellow: #d4c600;
  --red: #cc2222;
  --green: #008a3a;
}

/* Swap hero background image per theme */
.hero__bg {
  transition: opacity 0.6s ease;
}
.hero__bg--light {
  opacity: 0;
  z-index: 1 !important;
}
[data-theme="light"] .hero__bg--dark { opacity: 0; }
[data-theme="light"] .hero__bg--light { opacity: 1; }
[data-theme="light"] .hero__overlay {
  background: linear-gradient(to bottom, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.65) 100%) !important;
}

/* Hero always sits on a dark background image — force dark-mode colors */
[data-theme="light"] .hero {
  --white: #f0f0f0;
  --white-dim: #cccccc;
  --gray-light: #8a8a8a;
  --yellow: #FFF10F;
  --black: #0a0a0a;
  color: #f0f0f0;
}
[data-theme="light"] .hero .btn--primary {
  background: #FFF10F;
  color: #0a0a0a;
  border-color: #FFF10F;
}
[data-theme="light"] .hero .btn--primary:hover {
  background: transparent;
  color: #FFF10F;
  border-color: #FFF10F;
}
[data-theme="light"] .hero .btn--ghost {
  color: #cccccc;
}
[data-theme="light"] .hero__title .glitch {
  -webkit-text-stroke: 1.5px #000000;
  paint-order: stroke fill;
}
[data-theme="light"] .hero__title .outline {
  -webkit-text-stroke: 2px #f0f0f0;
}

/* Light mode — card borders and shadows */
[data-theme="light"] .episode-card,
[data-theme="light"] .clip-card,
[data-theme="light"] .nostr-note,
[data-theme="light"] .mesh-card,
[data-theme="light"] .writing-card {
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Light mode — subscribe bar readability */
[data-theme="light"] .subscribe-bar {
  background: var(--white);
  color: var(--black);
}

[data-theme="light"] .subscribe-bar__link {
  border-color: var(--black);
  color: var(--black);
}

[data-theme="light"] .subscribe-bar__link:hover {
  background: var(--black);
  color: var(--white);
}

/* Dark-mode hero legibility boost */
:root:not([data-theme="light"]) .hero__title .glitch {
  -webkit-text-stroke: 1.5px #000000;
  paint-order: stroke fill;
}

/* Disable noise and scanlines in light mode */
[data-theme="light"] .page-overlay {
  opacity: 0 !important;
}

/* Header needs semi-transparent background in light mode */
[data-theme="light"] .header::before {
  background: rgba(235, 235, 235, 0.55);
}
[data-theme="light"] .header__logo img {
  filter: brightness(0);
}

/* Smooth theme transition */
body.theme-transitioning,
body.theme-transitioning *,
body.theme-transitioning *::before,
body.theme-transitioning *::after {
  transition: background-color 300ms ease, color 300ms ease, border-color 300ms ease, box-shadow 300ms ease !important;
}

/* Toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gray-mid);
  background: transparent;
  color: var(--gray-light);
  font-size: 1rem;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
  flex-shrink: 0;
}

.theme-toggle:hover {
  color: var(--yellow);
  border-color: var(--yellow);
}

/* Sun icon (shown in dark mode) */
.theme-toggle__sun,
.theme-toggle__moon {
  display: none;
  width: 16px;
  height: 16px;
}

[data-theme="dark"] .theme-toggle__sun,
:root:not([data-theme="light"]) .theme-toggle__sun {
  display: block;
}

[data-theme="light"] .theme-toggle__sun {
  display: none;
}

[data-theme="light"] .theme-toggle__moon {
  display: block;
}

/* Light theme: sticky audio player */
[data-theme="light"] .sticky-player {
  background: #ffffff;
  border-color: #c8c8c8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .sticky-player__title {
  color: #1a1a1a;
}
[data-theme="light"] .sticky-player__show {
  color: #666;
}
[data-theme="light"] .sticky-player__close {
  color: #888;
}
[data-theme="light"] .sticky-player__close:hover {
  color: #1a1a1a;
}
[data-theme="light"] .sticky-player__progress {
  background: #ddd;
}
[data-theme="light"] .sticky-player__progress:hover .sticky-player__progress-fill {
  background: #1a1a1a;
}
[data-theme="light"] .sticky-player__time {
  color: #666;
}
[data-theme="light"] .sticky-player__art {
  border-color: #c8c8c8;
}

/* Light theme: mini video player */
[data-theme="light"] .mini-video {
  background: #ffffff;
  border-color: #c8c8c8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}
[data-theme="light"] .mini-video__bar {
  background: #f5f5f5;
}
[data-theme="light"] .mini-video__time {
  color: #666;
}
[data-theme="light"] .mini-video__progress {
  background: #ddd;
}
[data-theme="light"] .mini-video__close:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* Light theme: search modal */
[data-theme="light"] .search-modal {
  background: rgba(200, 200, 200, 0.9);
}

/* ============================================
   3. SKELETON LOADING STATES
   ============================================ */
@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--gray-dark) 25%,
    var(--gray-mid) 50%,
    var(--gray-dark) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
}

.skeleton-card {
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.skeleton-card__image {
  width: 100%;
  height: 180px;
  background: linear-gradient(
    90deg,
    var(--gray-dark) 25%,
    var(--gray-mid) 50%,
    var(--gray-dark) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-card__body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.skeleton-text {
  height: 0.8rem;
  border-radius: var(--radius);
  background: linear-gradient(
    90deg,
    var(--gray-dark) 25%,
    var(--gray-mid) 50%,
    var(--gray-dark) 75%
  );
  background-size: 800px 100%;
  animation: shimmer 1.5s infinite linear;
}

.skeleton-text--short { width: 40%; }
.skeleton-text--medium { width: 65%; }
.skeleton-text--long { width: 90%; }
.skeleton-text--full { width: 100%; }
.skeleton-text--title { height: 1.2rem; width: 75%; }

/* ============================================
   4. STICKY PLAYER — compact bottom-right
   ============================================ */
.sticky-player {
  position: fixed;
  bottom: 16px;
  right: 16px;
  left: 16px;
  z-index: 10000;
  width: auto;
  max-width: 400px;
  background: #1a1a1a;
  border: 1px solid var(--gray-mid);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Desktop: right-aligned card */
@media (min-width: 481px) {
  .sticky-player {
    left: auto;
    right: 24px;
    bottom: 24px;
    width: 380px;
  }
}

.sticky-player__inner {
  display: grid;
  grid-template-columns: 48px 1fr auto auto;
  grid-template-rows: auto auto;
  gap: 0 10px;
  padding: 10px 12px;
  align-items: center;
}

.sticky-player__art {
  width: 48px;
  height: 48px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gray-mid);
  grid-row: 1 / 3;
}

.sticky-player__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
  grid-column: 2;
  grid-row: 1;
}

.sticky-player__title {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--white);
}

.sticky-player__show {
  font-size: 0.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-player__play {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  border: none;
  color: var(--black);
  cursor: pointer;
  transition: opacity var(--transition);
  border-radius: 50%;
  grid-column: 3;
  grid-row: 1;
}

.sticky-player__play:hover {
  opacity: 0.85;
}

.sticky-player__play svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.sticky-player__close {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  cursor: pointer;
  transition: color var(--transition);
  flex-shrink: 0;
  grid-column: 4;
  grid-row: 1;
}

.sticky-player__close:hover {
  color: var(--white);
}

/* Progress row spans under info/controls */
.sticky-player__time {
  font-size: 0.6rem;
  color: var(--gray-light);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.sticky-player__progress {
  grid-column: 2 / 5;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  height: 6px;
  background: var(--gray-mid);
  cursor: pointer;
  position: relative;
}

.sticky-player__progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--yellow);
  width: 0%;
  transition: width 100ms linear;
}

.sticky-player__progress:hover .sticky-player__progress-fill {
  background: var(--white);
}

/* Time displays flanking the progress bar */
.sticky-player__time:first-of-type {
  grid-column: 2;
  grid-row: 3;
  font-size: 0.55rem;
}

.sticky-player__time:last-of-type {
  grid-column: 3 / 5;
  grid-row: 3;
  text-align: right;
  font-size: 0.55rem;
}

/* No body offset needed — player floats */
body.has-sticky-player {
  padding-bottom: 0;
}

/* Responsive: mobile */
@media (max-width: 480px) {
  .sticky-player__art {
    width: 56px;
    height: 56px;
    border-radius: 6px;
  }

  .sticky-player__inner {
    grid-template-columns: 56px 1fr auto auto;
    padding: 12px 14px;
    gap: 0 12px;
  }

  .sticky-player__title {
    font-size: 0.85rem;
  }

  .sticky-player__show {
    font-size: 0.65rem;
  }

  .sticky-player__play {
    width: 40px;
    height: 40px;
  }

  .sticky-player__play svg {
    width: 16px;
    height: 16px;
  }

  .sticky-player__close {
    width: 32px;
    height: 32px;
  }

  .sticky-player__progress {
    height: 8px;
    margin-top: 8px;
  }

  .sticky-player__time:first-of-type,
  .sticky-player__time:last-of-type {
    font-size: 0.6rem;
  }
}

/* ============================================
   4b. MINI VIDEO PLAYER (floating PiP)
   Separate floating player — main player stays in place.
   ============================================ */
.mini-video {
  position: fixed;
  bottom: var(--space-md);
  right: var(--space-md);
  z-index: 10000;
  width: 320px;
  background: var(--black);
  border: 1px solid var(--gray-mid);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
}

.mini-video--visible {
  /* no transform needed — show/hide via display */
}

.mini-video__viewport {
  position: relative;
  background: #000;
}

.mini-video__viewport video {
  width: 100%;
  display: block;
  max-height: 180px;
  object-fit: contain;
}

.mini-video__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  color: var(--white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  opacity: 0;
  transition: opacity 200ms ease, background 200ms ease;
}

.mini-video:hover .mini-video__close {
  opacity: 1;
}

.mini-video__close:hover {
  background: rgba(0, 0, 0, 0.95);
  color: var(--yellow);
}

/* Controls bar below video */
.mini-video__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--black-card);
}

.mini-video__play {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--yellow);
  border: none;
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 200ms ease;
}

.mini-video__play:hover {
  opacity: 0.85;
}

.mini-video__time {
  font-size: 0.6rem;
  color: var(--gray-light);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 28px;
}

.mini-video__progress {
  flex: 1;
  height: 4px;
  background: var(--gray-mid);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.mini-video:hover .mini-video__progress {
  height: 6px;
}

.mini-video__progress-fill {
  height: 100%;
  background: var(--yellow);
  width: 0%;
  border-radius: 2px;
}

@media (max-width: 480px) {
  .mini-video {
    width: 240px;
    right: var(--space-sm);
    bottom: var(--space-sm);
  }
}

/* ============================================
   5. SEARCH MODAL
   ============================================ */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--space-xl) var(--space-md) var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.search-modal.is-open {
  opacity: 1;
  visibility: visible;
}

.search-modal__close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-light);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition);
}

.search-modal__close:hover {
  color: var(--white);
}

.search-modal__form {
  width: 100%;
  max-width: 640px;
}

.search-modal__content {
  width: 100%;
  max-width: 640px;
}

.search-modal__input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-mid);
  outline: none;
  transition: border-color var(--transition);
}

.search-modal__input::placeholder {
  color: var(--gray);
}

.search-modal__input:focus {
  border-color: var(--yellow);
}

.search-modal__hint {
  margin-top: var(--space-xs);
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.search-modal__results {
  width: 100%;
  margin-top: var(--space-md);
  max-height: 60vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.search-modal__result {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition), background var(--transition);
  cursor: pointer;
}

.search-modal__result:hover,
.search-modal__result.is-selected {
  border-color: var(--yellow);
  background: var(--gray-dark);
}

.search-modal__result-show {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  white-space: nowrap;
}

.search-modal__result-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-modal__result-date {
  font-size: 0.65rem;
  color: var(--gray);
  white-space: nowrap;
}

.search-modal__empty {
  padding: var(--space-lg) 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ============================================
   6. SEARCH PAGE
   ============================================ */
.search-page__form {
  margin-bottom: var(--space-lg);
}

.search-page__input {
  width: 100%;
  padding: var(--space-sm) 0;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--gray-mid);
  outline: none;
  transition: border-color var(--transition);
}

.search-page__input::placeholder {
  color: var(--gray);
}

.search-page__input:focus {
  border-color: var(--yellow);
}

.search-page__count {
  font-size: 0.7rem;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-md);
}

.search-page__results {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.search-page__result {
  display: flex;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition);
}

.search-page__result:hover {
  border-color: var(--yellow);
}

.search-page__result-image {
  width: 120px;
  height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}

.search-page__result-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.search-page__result-show {
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--yellow);
  margin-bottom: 0.25rem;
}

.search-page__result-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 0.25rem;
}

.search-page__result-excerpt {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.search-page__result-meta {
  font-size: 0.65rem;
  color: var(--gray);
  margin-top: var(--space-xs);
}

.search-page__result-excerpt mark {
  background: rgba(255, 241, 15, 0.2);
  color: var(--yellow);
}

.search-page__empty {
  padding: var(--space-xl) 0;
  text-align: center;
  color: var(--gray);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 600px) {
  .search-page__result {
    flex-direction: column;
    gap: var(--space-sm);
  }

  .search-page__result-image {
    width: 100%;
    height: 140px;
  }
}

/* ============================================
   7. SHARE BUTTON + DROPDOWN
   ============================================ */
.share-wrapper {
  position: relative;
  display: inline-block;
}

.share-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 180px;
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  padding: var(--space-xs) 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.share-wrapper.is-open .share-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.share-dropdown__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--gray-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  text-align: left;
}

.share-dropdown__item:hover {
  color: var(--yellow);
  background: var(--gray-dark);
}

.share-dropdown__item svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============================================
   8. "LISTEN ON" DROPDOWN
   ============================================ */
.listen-on {
  position: relative;
  display: inline-block;
}

.listen-on__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  border: 2px solid var(--gray);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.listen-on__trigger:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.listen-on__trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 4px 0 4px;
  border-color: currentColor transparent transparent transparent;
  transition: transform var(--transition);
}

.listen-on.is-open .listen-on__trigger::after {
  transform: rotate(180deg);
}

.listen-on__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 220px;
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  padding: var(--space-xs) 0;
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.listen-on.is-open .listen-on__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.listen-on__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem var(--space-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gray-light);
  transition: color var(--transition), background var(--transition);
}

.listen-on__item:hover {
  color: var(--yellow);
  background: var(--gray-dark);
}

.listen-on__item img,
.listen-on__item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.listen-on__item span {
  flex: 1;
}

/* ============================================
   9. NOSTR COMMENTS
   ============================================ */
.nostr-comments {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-mid);
}

.nostr-comments__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.nostr-comments__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-light);
}

.nostr-comments__count {
  font-size: 0.65rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nostr-comments__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.nostr-comment {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm);
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition);
}

.nostr-comment:hover {
  border-color: var(--gray);
}

.nostr-comment__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--gray-mid);
}

.nostr-comment__body {
  flex: 1;
  min-width: 0;
}

.nostr-comment__header {
  display: flex;
  align-items: baseline;
  gap: var(--space-xs);
  margin-bottom: 0.25rem;
}

.nostr-comment__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
}

.nostr-comment__npub {
  font-size: 0.6rem;
  color: var(--gray);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
}

.nostr-comment__time {
  font-size: 0.6rem;
  color: var(--gray);
  margin-left: auto;
  white-space: nowrap;
}

.nostr-comment__text {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.6;
  word-break: break-word;
}

.nostr-comment__text a {
  color: var(--yellow);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.nostr-comments__empty {
  padding: var(--space-md);
  text-align: center;
  color: var(--gray);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 1px dashed var(--gray-mid);
}

.nostr-comments__cta {
  margin-top: var(--space-sm);
  text-align: center;
}

/* ============================================
   10. RELATED EPISODES
   ============================================ */
.related-episodes {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-mid);
}

.related-episodes__label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.related-episodes__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}

.related-episodes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .related-episodes__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .related-episodes__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .related-episodes__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   11. TRANSCRIPT
   ============================================ */
.transcript {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-mid);
}

.transcript__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--gray-light);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--transition);
}

.transcript__toggle:hover {
  color: var(--yellow);
}

.transcript__toggle::before {
  content: '+';
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  transition: transform var(--transition);
}

.transcript.is-open .transcript__toggle::before {
  content: '-';
}

.transcript__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.transcript.is-open .transcript__content {
  max-height: 5000px;
}

.transcript__text {
  padding: var(--space-md) 0;
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.8;
  max-width: 65ch;
}

.transcript__text p {
  margin-bottom: var(--space-sm);
}

.transcript__text .transcript__speaker {
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  display: block;
  margin-top: var(--space-sm);
  margin-bottom: 0.25rem;
}

.transcript__search {
  margin-bottom: var(--space-sm);
}

.transcript__search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.5rem 0;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--white);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--gray-mid);
  outline: none;
  transition: border-color var(--transition);
}

.transcript__search-input:focus {
  border-color: var(--yellow);
}

.transcript__search-input::placeholder {
  color: var(--gray);
}

.transcript__text mark {
  background: rgba(255, 241, 15, 0.2);
  color: var(--yellow);
}

/* ============================================
   12. HOST / GUEST PROFILE PAGE
   ============================================ */
.host-page {
  padding: var(--space-xl) 0;
}

.host-page__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.host-page__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gray-mid);
  flex-shrink: 0;
}

.host-page__avatar--initial {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gray-dark);
  border: 2px solid var(--gray-mid);
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--yellow);
  flex-shrink: 0;
}

.host-page__info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.host-page__name {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--white);
}

.host-page__role {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
}

.host-page__bio {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
  max-width: 50ch;
  margin-top: var(--space-xs);
}

.host-page__socials {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.host-page__social-link {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-light);
  transition: color var(--transition);
}

.host-page__social-link:hover {
  color: var(--yellow);
}

.host-page__shows {
  margin-bottom: var(--space-lg);
}

.host-page__shows-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: var(--space-sm);
}

.host-page__show-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.host-page__show-tag {
  padding: 0.3rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition);
}

.host-page__show-tag:hover {
  border-color: var(--yellow);
}

.host-page__episodes-label {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.host-page__episodes-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}

.host-page__episodes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

@media (max-width: 600px) {
  .host-page__header {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .host-page__bio {
    max-width: none;
  }

  .host-page__socials {
    justify-content: center;
  }

  .host-page__episodes {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   13. BOOST LEADERBOARD
   ============================================ */
.boost-leaderboard {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--gray-mid);
}

.boost-leaderboard__title {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--gray-light);
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.boost-leaderboard__title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-mid);
}

.boost-leaderboard__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.boost-leader {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.6rem var(--space-sm);
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  transition: border-color var(--transition);
}

.boost-leader:hover {
  border-color: var(--gray);
}

.boost-leader__rank {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--gray);
  width: 2rem;
  text-align: center;
  flex-shrink: 0;
}

/* Top 3 special rank colors */
.boost-leader:nth-child(1) .boost-leader__rank { color: var(--yellow); }
.boost-leader:nth-child(2) .boost-leader__rank { color: var(--white-dim); }
.boost-leader:nth-child(3) .boost-leader__rank { color: #cd7f32; }

.boost-leader__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--gray-mid);
  flex-shrink: 0;
}

.boost-leader__name {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--white);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.boost-leader__amount {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--yellow);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.boost-leader__amount::after {
  content: ' sats';
  font-weight: 400;
  color: var(--gray-light);
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.boost-leader__message {
  font-size: 0.7rem;
  color: var(--gray-light);
  font-style: italic;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 300px;
}

/* Compact layout: rank + name + amount in single line */
@media (max-width: 600px) {
  .boost-leader__avatar {
    display: none;
  }

  .boost-leader__message {
    display: none;
  }
}

/* ============================================
   14. BODY PADDING FOR STICKY PLAYER
   (defined above with sticky player section)
   ============================================ */

/* ============================================
   15. HEADER ACTION BUTTONS
   ============================================ */
.header__action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--gray-light);
  transition: color var(--transition), background var(--transition);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.header__action-btn:hover {
  color: var(--yellow);
  background: rgba(255, 241, 15, 0.08);
}

/* ============================================
   16. EPISODE ACTION BUTTONS (Listen On + Share)
   ============================================ */
.episode__actions {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
  flex-wrap: wrap;
}

.episode__actions .btn {
  font-size: 0.7rem;
  padding: 0.5rem 1rem;
}

/* ============================================
   17. BOOST PRESETS
   ============================================ */
.boost__presets {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-xs);
}

.boost__preset {
  background: transparent;
  border: 1px solid var(--gray-mid);
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  color: var(--gray-light);
  cursor: pointer;
  transition: all var(--transition);
}

.boost__preset:hover,
.boost__preset--active {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ============================================
   18. CLIP CARD ENHANCEMENTS
   ============================================ */
.clip-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xs);
}

.clip-card__speaker {
  font-size: 0.6rem;
  color: var(--yellow);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.clip-card__source {
  display: inline-block;
  font-size: 0.7rem;
  color: var(--yellow);
  margin-top: var(--space-xs);
  transition: opacity var(--transition);
}

.clip-card__source:hover {
  opacity: 0.7;
}

.clip-card__actions {
  display: flex;
  gap: var(--space-xs);
  margin-top: var(--space-xs);
}

.clip-card__share {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  color: var(--gray-light);
  background: none;
  border: 1px solid var(--gray-mid);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
  cursor: pointer;
  transition: all var(--transition);
}

.clip-card__share:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ============================================
   19. NOSTR COMMENTS PLACEHOLDER
   ============================================ */
.nostr-comments__placeholder {
  text-align: center;
  padding: var(--space-lg) var(--space-md);
  color: var(--gray-light);
  font-size: 0.85rem;
}

.nostr-comments__placeholder p {
  margin-bottom: var(--space-md);
  max-width: none;
}

/* ============================================
   20. BOOST TOTAL DISPLAY
   ============================================ */
.boost__total {
  text-align: right;
}

/* ============================================
   21. RESPONSIVE: EPISODE ACTIONS ON MOBILE
   ============================================ */
@media (max-width: 480px) {
  .episode__actions {
    flex-direction: column;
  }
}

/* ============================================
   22. WRITING CARD HOVER / ZOOM
   ============================================ */
.writing-card__image {
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.writing-card {
  overflow: hidden;
}

.writing-card:hover .writing-card__image {
  transform: scale(1.03);
}

/* ============================================
   23. MESHCONOMY TITLE OVERFLOW FIX
   ============================================ */
h1 {
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ============================================
   24. V4V BOOST CARD (homepage)
   ============================================ */
.v4v__boost-card {
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  padding: var(--space-md);
  margin-top: var(--space-md);
  transition: border-color var(--transition);
}

.v4v__boost-card:hover {
  border-color: var(--yellow);
}

.v4v__boost-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}

.v4v__boost-icon {
  font-size: 1.5rem;
}

.v4v__boost-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.v4v__boost-text {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.v4v__boost-amounts {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.v4v__boost-amount {
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--gray-mid);
  color: var(--gray-light);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.v4v__boost-amount:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

/* ============================================
   SHOP — Product card overrides
   ============================================ */
.shop-btc-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--yellow);
  border: 1px solid var(--yellow);
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.shop-page .episode-card__image {
  height: 280px;
  object-fit: cover;
}

.shop-page .episode-card__show {
  color: var(--gray-light);
}

.shop-card__footer {
  color: var(--yellow);
}

.shop-card__price {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}

.shop-card-form {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.shop-card__sizes {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
  margin-bottom: var(--space-sm);
}

.shop-card__size {
  background: transparent;
  border: 1px solid var(--gray-mid);
  color: var(--gray-light);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.shop-card__size:hover {
  border-color: var(--yellow);
  color: var(--yellow);
}

.shop-card__size--active {
  border-color: var(--yellow);
  color: var(--yellow);
  background: rgba(255, 221, 0, 0.08);
}

.shop-card__buy {
  background: none;
  border: none;
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  padding: 0;
  transition: opacity 0.15s ease;
}

.shop-card__buy:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Sold out states */
.episode-card.shop-card--sold-out {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.6);
}

.shop-card__sold-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: var(--red, #e53e3e);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

.shop-card__size--sold-out {
  opacity: 0.25;
  text-decoration: line-through;
  cursor: not-allowed;
  pointer-events: none;
}

.shop-card__buy--sold-out {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 768px) {
  .shop-page .episode-card__image {
    height: 240px;
  }
}

/* ============================================
   NOSTR FEED — responsive
   ============================================ */
@media (max-width: 768px) {
  .nostr-feed { padding: var(--space-sm) var(--space-md); max-height: 450px; }
}

@media (max-width: 480px) {
  .nostr-feed { padding: var(--space-xs) var(--space-sm); max-height: 380px; }
  .nostr-note__content { font-size: 0.8rem; }
  .nostr-note__images img { max-height: 200px; }
}

/* ============================================
   EPISODE CARD — Duration badge overlay
   ============================================ */
.episode-card__duration-badge {
  position: absolute;
  bottom: 6px;
  right: 6px;
  padding: 0.15rem 0.4rem;
  font-size: 0.6rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--white);
  background: rgba(10, 10, 10, 0.85);
  letter-spacing: 0.03em;
  z-index: 2;
}

/* ============================================
   CHAPTER TIMELINE — clickable bar
   ============================================ */
.chapter-timeline {
  display: flex;
  gap: 1px;
  height: 6px;
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  cursor: pointer;
}

.chapter-timeline__segment {
  flex: 1;
  background: var(--gray-mid);
  position: relative;
  transition: background var(--transition);
}

.chapter-timeline__segment:hover {
  background: var(--yellow);
}

.chapter-timeline__segment.is-active {
  background: var(--yellow);
}

.chapter-timeline__tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  padding: 0.3rem 0.6rem;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--white);
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.chapter-timeline__segment:hover .chapter-timeline__tooltip {
  display: block;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--yellow);
  z-index: 10001;
  transition: width 50ms linear;
  pointer-events: none;
  box-shadow: 0 0 6px rgba(255, 221, 0, 0.5);
}

/* ============================================
   SUBSCRIBE PAGE
   ============================================ */
.subscribe-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-sm);
}

.subscribe-card {
  display: block;
  background: var(--black-card);
  border: 1px solid var(--gray-mid);
  padding: var(--space-md);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  position: relative;
}

.subscribe-card:hover {
  border-color: var(--yellow);
  box-shadow: inset 0 0 0 1px var(--yellow);
  transform: translateY(-2px);
}

.subscribe-card--secondary {
  border-style: dashed;
}

.subscribe-card__name {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.3rem;
}

.subscribe-card__desc {
  font-size: 0.8rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.subscribe-card__badge {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  padding: 0.15rem 0.5rem;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--yellow);
  border: 1px solid var(--yellow);
}

/* ============================================
   ADMIN TOAST NOTIFICATIONS
   ============================================ */
.admin-toast-container {
  position: fixed;
  top: var(--space-md);
  right: var(--space-md);
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

.admin-toast {
  padding: 0.6rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid var(--gray-mid);
  background: var(--black-card);
  color: var(--white);
  pointer-events: auto;
  max-width: 360px;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 200ms ease, transform 200ms ease;
}

.admin-toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.admin-toast--success {
  border-color: var(--green);
  color: var(--green);
}

.admin-toast--error {
  border-color: var(--red);
  color: var(--red);
}

/* ============================================
   FOCUS VISIBLE STATES
   ============================================ */

:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--yellow);
}

:focus:not(:focus-visible) {
  outline: none;
  box-shadow: none;
}

/* Cards — use border-color to match hover style */
.episode-card:focus-visible,
.clip-card:focus-visible,
.writing-card:focus-visible {
  outline: none;
  box-shadow: none;
  border-color: var(--yellow);
}

/* ============================================
   SEARCH MODAL — MOBILE PADDING
   ============================================ */
@media (max-width: 768px) {
  .search-modal { padding-top: var(--space-md); }
}

/* ============================================
   SHOW PAGE — LATEST EPISODE FEATURE
   ============================================ */
.show-latest {
  margin-bottom: var(--space-lg);
}

.show-latest__card {
  background: var(--black-card);
  border: 2px solid var(--gray-mid);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.show-latest__media {
  position: relative;
  overflow: hidden;
}

.show-latest__video,
.show-latest__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.show-latest__video {
  background: var(--black);
}

.show-latest__info {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.show-latest__title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  margin-bottom: var(--space-xs);
}

.show-latest__title a {
  color: var(--white);
  text-decoration: none;
}

.show-latest__title a:hover {
  color: var(--yellow);
}

.show-latest__meta {
  color: var(--gray-light);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  margin-bottom: var(--space-sm);
}

/* Custom player inside show-latest info panel */
.show-latest__player {
  margin-bottom: 0;
  border: none;
  padding: var(--space-xs) 0;
  background: transparent;
}

.show-latest__player audio {
  display: none;
}

/* Video player fills the media column */
.show-latest__media .player--video {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.show-latest__media .player--video video {
  flex: 1;
  object-fit: cover;
  min-height: 0;
}

.show-latest__media .player--video .player__controls {
  padding: var(--space-xs) var(--space-sm);
}

@media (max-width: 768px) {
  .show-latest__card {
    grid-template-columns: 1fr;
  }

  .show-latest__media {
    max-height: 350px;
  }
}

