/* ============================================================
   PODCAST-EPISODE.CSS
   Out of Depth — outofdepth.com
   Shared styles for all podcast episode pages.

   Depends on base.css (vars: --magenta, --sidebar-width, etc.)
   Per-page inline <style> provides:
     --season, --season-dim, --season-glow, --season-bg, --season-border
   ============================================================ */

/* ── EPISODE-SPECIFIC VARS ── */
:root {
  --body-text: rgba(255, 255, 255, 0.83);
  --dim-text:  rgba(255, 255, 255, 0.45);
}

/* ── MAIN CONTENT AREA ── */
.main {
  margin-left: var(--sidebar-width);
  padding: 40px 40px 80px;
}

/* ── BREADCRUMB ── */
.breadcrumb {
  font-family: 'Jersey15', monospace;
  font-size: 13px;
  color: var(--dim-text);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.breadcrumb a { color: var(--season); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin: 0 6px; }

/* ── EPISODE HEADER: info left, player right ── */
.episode-header {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* ── SEASON TAG ── */
.season-tag {
  font-family: 'Jersey15', monospace;
  font-size: 12px;
  color: var(--season);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}

.season-tag::before {
  content: '>';
  animation: blink 1.2s step-end infinite;
}

/* ── EPISODE TITLE & META ── */
.episode-title {
  font-family: 'Jersey25', monospace;
  font-size: 36px;
  color: var(--season);
  line-height: 1.1;
  margin-bottom: 10px;
  text-shadow: 0 0 24px var(--season-glow);
}

.episode-meta {
  font-family: 'Jersey15', monospace;
  font-size: 13px;
  color: var(--dim-text);
  margin-bottom: 22px;
  display: flex;
  gap: 20px;
  letter-spacing: 0.04em;
}

.episode-description {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
  max-width: 580px;
}

/* ── PREV / NEXT NAV ── */
.episode-nav {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.ep-nav-btn {
  font-family: 'Jersey15', monospace;
  font-size: 13px;
  color: var(--magenta);
  text-decoration: none;
  border: 1px solid rgba(255, 3, 255, 0.3);
  padding: 6px 14px;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  letter-spacing: 0.05em;
}

.ep-nav-btn:hover {
  border-color: var(--magenta);
  color: #fff;
  background: rgba(255, 3, 255, 0.08);
}

.ep-nav-btn.disabled {
  color: var(--dim-text);
  border-color: rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

/* ── PLAYER PANEL ── */
.player-panel {
  border: 2px solid #c6c6c6;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--season-bg) 0%, rgba(0, 0, 0, 0.8) 100%);
  overflow: hidden;
  position: sticky;
  top: 40px;
}

.player-cover {
  width: 100%;
  aspect-ratio: 1;
  position: relative;
  overflow: hidden;
}

.player-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.player-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0px, transparent 3px,
    rgba(0, 0, 0, 0.1) 3px, rgba(0, 0, 0, 0.1) 4px
  );
}

.player-glow-bar {
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    var(--season-dim) 20%,
    var(--season) 50%,
    var(--season-dim) 80%,
    transparent 100%
  );
}

.player-body { padding: 16px 18px 20px; }

.player-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.player-label-row::before {
  content: '>';
  color: var(--magenta);
  font-family: 'Jersey15', monospace;
  font-size: 12px;
  animation: blink 1.2s step-end infinite;
}

.player-label {
  font-family: 'Jersey15', monospace;
  font-size: 11px;
  color: rgba(255, 3, 255, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.player-title {
  font-family: 'Jersey25', monospace;
  font-size: 16px;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── SCRUB BAR ── */
.scrub-wrap {
  position: relative;
  cursor: pointer;
  padding: 6px 0;
  margin-bottom: 4px;
}

.scrub-track {
  height: 4px;
  background: rgba(255, 3, 255, 0.12);
  border-radius: 2px;
}

.scrub-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--magenta), rgba(255, 3, 255, 0.6));
  border-radius: 2px;
  position: relative;
  transition: width 0.1s linear;
}

.scrub-fill::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -3px;
  width: 10px;
  height: 10px;
  background: var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 3, 255, 0.9);
  opacity: 0;
  transition: opacity 0.15s;
}

.scrub-wrap:hover .scrub-fill::after { opacity: 1; }

.player-time {
  display: flex;
  justify-content: space-between;
  font-family: 'Jersey15', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 14px;
}

/* ── PLAYER CONTROLS ── */
.player-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.skip-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255, 3, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.15s, text-shadow 0.15s;
}

.skip-btn:hover {
  color: var(--magenta);
  text-shadow: 0 0 8px rgba(255, 3, 255, 0.6);
}

.skip-btn svg { width: 22px; height: 22px; }

.play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255, 3, 255, 0.4);
  background: none;
  color: rgba(255, 3, 255, 0.6);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.play-btn:hover {
  color: var(--magenta);
  border-color: var(--magenta);
  box-shadow: 0 0 14px rgba(255, 3, 255, 0.35);
}

.play-btn svg { width: 16px; height: 16px; }

/* ── SHOW NOTES ── */
.show-notes {
  border-top: 1px solid var(--season-border);
  padding-top: 36px;
  max-width: 680px;
  margin-bottom: 48px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  font-family: 'Jersey15', monospace;
  font-size: 12px;
  color: var(--season);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.section-heading::before {
  content: '>';
  animation: blink 1.2s step-end infinite;
}

.show-notes p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--body-text);
  margin-bottom: 10px;
}

.show-notes a { color: var(--season); text-decoration: none; }
.show-notes a:hover { color: #fff; }
.show-notes hr { border: none; border-top: 1px solid rgba(255, 255, 255, 0.07); margin: 16px 0; }

/* ── EPISODE LIST ── */
.ep-list-section {
  border-top: 1px solid var(--season-border);
  padding-top: 36px;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.ep-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 680px;
}

.ep-list-item {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  text-decoration: none;
  color: var(--body-text);
  transition: background 0.15s, border-color 0.15s;
}

.ep-list-item:hover {
  background: var(--season-bg);
  border-color: var(--season-border);
}

.ep-list-item.current {
  background: var(--season-bg);
  border-color: var(--season-dim);
}

.ep-num {
  font-family: 'Jersey15', monospace;
  font-size: 13px;
  color: var(--dim-text);
  text-align: center;
}

.ep-list-item.current .ep-num { color: var(--season); }
.ep-list-title { font-size: 14px; }
.ep-list-item.current .ep-list-title { color: #fff; }

.ep-duration {
  font-family: 'Jersey15', monospace;
  font-size: 12px;
  color: var(--dim-text);
}
