/* ==========================================================================
   THE SHOWS — CSS ARCHITECTURE (Shared Grid, Pseudo-Header & Theme Blocks)
   ========================================================================== */

/* Show Custom Theme Variables Default */
:root {
  --show-accent: var(--gold-main);
  --show-accent-glow: rgba(212, 175, 55, 0.25);
  --show-hero-bg: radial-gradient(circle at top, #1a1a1a 0%, #0d0d0d 100%);
  --show-badge-bg: rgba(212, 175, 55, 0.12);
  --show-badge-text: var(--gold-light);
}

/* ==========================================================================
   1. PSEUDO-HEADER (Show Switcher Bar)
   ========================================================================== */
.pseudo-header-bar {
  width: 100%;
  background: rgba(14, 14, 14, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
  position: sticky;
  top: 52px;
  z-index: 900;
  padding: 0.5rem 1rem;
}

.pseudo-header-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
  padding: 0.35rem 0.5rem;
}

@media (max-width: 1200px) {
  .pseudo-header-inner {
    justify-content: flex-start;
  }
}

.pseudo-header-inner::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge */
}

.show-pill-link {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.show-pill-link:hover {
  background: rgba(212, 175, 55, 0.08);
  border-color: rgba(212, 175, 55, 0.35);
  color: #fff;
  transform: translateY(-1px);
}

.show-pill-link.active {
  background: rgba(212, 175, 55, 0.16);
  border-color: var(--gold-main);
  color: #fff;
  box-shadow: 0 0 12px var(--show-accent-glow);
}

.show-pill-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   2. SHOW HERO HEADER
   ========================================================================== */
.show-hero-section {
  width: 100%;
  background: var(--show-hero-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 16px;
  padding: 2.25rem;
  margin: 1.75rem auto 2.5rem auto;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
  display: flex;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 768px) {
  .show-hero-section {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    gap: 1.25rem;
  }
}

.show-hero-logo {
  width: 130px;
  height: 130px;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid var(--show-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.8);
  flex-shrink: 0;
}

.show-hero-details {
  flex: 1;
  min-width: 0;
}

.show-hero-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #fff;
  margin: 0 0 0.35rem 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.15;
}

.show-hero-hosts {
  display: inline-block;
  background: var(--show-badge-bg);
  color: var(--show-badge-text);
  border: 1px solid rgba(212, 175, 55, 0.3);
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.show-hero-desc {
  color: #cbd5e1;
  font-size: 0.975rem;
  line-height: 1.6;
  margin: 0 0 1.25rem 0;
  width: 100%;
}

.show-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .show-action-links {
    justify-content: center;
  }
}

.show-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
  text-decoration: none;
  font-size: 0.825rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.show-action-btn:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-main);
  color: #fff;
  transform: translateY(-2px);
}

.show-action-btn img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

/* ==========================================================================
   3. THE 3x3 VIDEO & MEDIA GRID
   ========================================================================== */
.show-episodes-section {
  width: 100%;
}

.show-grid-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.show-grid-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold-main);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.show-grid-sync-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.episodes-3x3-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .episodes-3x3-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .episodes-3x3-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ==========================================================================
   4. EPISODE MEDIA CARD
   ========================================================================== */
.episode-media-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.episode-media-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Media Embed Box (16:9 Aspect Ratio) */
.media-embed-box {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  background: #000;
  overflow: hidden;
}

.media-embed-box iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Audio Player Container */
.audio-embed-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, #222 0%, #0d0d0d 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-sizing: border-box;
}

.audio-artwork-bg {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 0.6rem;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.audio-embed-wrapper audio {
  width: 90%;
  height: 36px;
  outline: none;
  border-radius: 9999px;
}

/* Hybrid Audio/Video Toggle Button & Reserved Format Bar */
.card-toggle-container {
  padding: 0.45rem 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  box-sizing: border-box;
}

.audio-toggle-btn,
.format-status-pill {
  width: 100%;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  box-sizing: border-box;
  line-height: 1.25;
  min-height: 28px;
}

.audio-toggle-btn {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: var(--gold-light);
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-toggle-btn:hover {
  background: rgba(212, 175, 55, 0.22);
  border-color: var(--gold-main);
  color: #fff;
  transform: translateY(-1px);
}

.format-status-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  letter-spacing: 0.3px;
  user-select: none;
}

/* Card Body Content */
.episode-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.episode-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: #f8fafc;
  margin: 0 0 0.5rem 0;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}

.episode-card-meta {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.episode-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.episode-direct-link {
  color: var(--gold-main);
  text-decoration: none;
  font-size: 0.775rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s ease;
}

.episode-direct-link:hover {
  color: #fff;
  text-decoration: underline;
}

.episode-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
}

/* ==========================================================================
   5. SHOWS HUB DIRECTORY (shows/index.html)
   ========================================================================== */
.shows-hub-intro {
  text-align: center;
  margin: 1rem auto 2.5rem auto;
  max-width: 860px;
}

.shows-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 1024px) {
  .shows-hub-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .shows-hub-grid {
    grid-template-columns: 1fr;
  }
}

.show-hub-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  transition: all 0.25s ease;
  cursor: pointer;
}

.show-hub-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-main);
  box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
}

.show-hub-card:hover .show-hub-name {
  color: var(--gold-light);
}

.show-hub-logo {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: cover;
  border: 2px solid rgba(212, 175, 55, 0.4);
  margin-bottom: 0.75rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
}

.show-hub-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 0.25rem 0;
  transition: color 0.2s ease;
}

.show-hub-hosts {
  font-size: 0.8rem;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 0.65rem;
}

.show-hub-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
