/* --- Episode toolbar (centered) --- */
#MainBody .episode-toolbar {
  max-width: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  background: #380000;
  border: 1px solid #990000;
  border-radius: 8px;
  padding: 10px;
  margin: 0 auto 16px;
  text-align: center;
}
#MainBody .episode-toolbar .ep-jump {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#MainBody .episode-toolbar select {
  appearance: none;
  background: #4A0000;
  color: #C0C0C0;
  border: 1px solid #990000;
  border-radius: 6px;
  padding: 8px 10px;
  font: 0.95rem/1.2 Arial, Helvetica, sans-serif;
}
@media (max-width:700px) {
  #MainBody .episode-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  #MainBody .episode-toolbar .ep-jump { width: 100%; }
  #MainBody .episode-toolbar .ep-prev,
  #MainBody .episode-toolbar .ep-next,
  #MainBody .episode-toolbar select { width: 100%; }
}

.disclaimer {
  font: 0.85rem Arial, Helvetica, sans-serif;
  color: #808080;
  margin-top: 0.25rem;
  font-style: italic;
  text-align: center;
}

#MainBody .Synopsis {
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
  color: var(--color-text);
  text-align: center;
}

.video-embed {
  text-align: center;
}

.video-embed iframe {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 9;
  border: none;
  margin: 1.5rem auto 0.5rem;
  display: block;
}

.video-embed figcaption {
  font-size: 0.9rem;
  color: #c0c0c0;
  line-height: 1.4;
}

.video-credit {
  font-style: italic;
  color: #999;
}

/* --- Episode navigation buttons (Prev / Next) --- */
.episode-toolbar button.ep-prev,
.episode-toolbar button.ep-next {
  background-color: #4A0000;
  color: #C0C0C0;
  border: 1px solid #660000;
  border-radius: 4px;
  padding: 6px 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}
.episode-toolbar button.ep-prev:hover,
.episode-toolbar button.ep-next:hover {
  background-color: #990000;
  color: #FFFFFF;
  box-shadow: inset 0 0 6px rgba(255, 100, 100, 0.6), 0 0 8px rgba(255, 255, 255, 0.4);
}
.episode-toolbar button.ep-prev:focus-visible,
.episode-toolbar button.ep-next:focus-visible {
  outline: 2px solid #FFD9B3;
  outline-offset: 2px;
}

/* --- Episode auxiliary buttons (Stills / Videos / Script) --- */
.episode-aux {
  text-align: center;
  margin-top: 30px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
}
.episode-aux .ep-btn {
  display: inline-block;
  background: #3A0000;
  color: #C0C0C0;
  text-decoration: none;
  padding: 10px 22px;
  border: 1px solid #660000;
  border-radius: 6px;
  transition: all 0.3s ease;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
.episode-aux .ep-btn:hover,
.episode-aux .ep-btn:focus {
  background: #990000;
  color: #FFFFFF;
  text-decoration: underline;
  box-shadow: 0 0 10px rgba(255, 200, 150, 0.35);
}
.episode-aux .sep {
  display: inline-block;
  color: #C0C0C0;
  margin: 0 12px;
  font-weight: normal;
  vertical-align: middle;
}
@media (max-width:700px) {
  .episode-aux {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .episode-aux .sep { display: none; }
  .episode-aux .ep-btn {
    width: 80%;
    text-align: center;
  }
}

/* Title image */
.ep-title {
  text-align: center;
  margin: 20px 0;
}
.ep-title img {
  display: inline-block;
  border: none;
  max-width: 100%;
  height: auto;
}

/* A11y helper */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Episode info table — matches site frame */
#MainBody .ep-info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #380000;
  color: var(--color-text);
  border: 1px solid #990000;
  border-radius: 8px;
  overflow: hidden;                            /* rounds the outer corners */
  table-layout: fixed;                         /* clean wrapping */
  font: 1rem/1.5 Arial, Helvetica, sans-serif; /* match Index page */
}

/* Header */
#MainBody .ep-info-table thead th {
  text-align: center;
  padding: 10px 12px;
  background: linear-gradient(#5a0000, #380000);
  color: #FFD9B3;
  font-weight: bold;
  border-bottom: 1px solid #660000;
}

/* Body cells */
#MainBody .ep-info-table td {
  background: #3A0000;
  text-align: center;                          /* center by default */
  vertical-align: top;
  padding: 12px;
  border-top: 1px solid #660000;
  word-wrap: break-word;
}

/* Odd rows */
#MainBody .ep-info-table tbody tr:nth-child(odd) > td {
  background: #3A0000;
}

/* Even rows */
#MainBody .ep-info-table tbody tr:nth-child(even) > td {
  background: #320000;
}

/* section heading formatting */
.video-gallery h3 {
  text-align: center;
  color: var(--color-text);
  font: 1rem/1.5 Arial, Helvetica, sans-serif;
  font-weight: normal;
  margin: 1rem 0 0.75rem;
  letter-spacing: 0;
  text-shadow: none;
}