/* ============================================================
   progress.css — progreso de episodios, avisos de episodios nuevos y botones de acción
   Versión universal (cinema, cuevana, cuevana3, torotaku, torovid, pelisgratishd,
   default, torofilm, playdede, serieskao). Se carga aparte de theme.css para no
   recompilar el bundle minificado (ver el <link> en cada theme).
   El acento sale de la variable de color del theme; si no existe, azul.
   ============================================================ */

:root {
   --prog-accent: var(--primary, var(--accent, #0b5ed7));
   --prog-ok: var(--prog-accent);
   --prog-panel: #16181d;
   --prog-border: rgba(255, 255, 255, .14);
}

/* ---------- Botón "visto" en la lista de episodios ---------- */
/* Va EN LÍNEA con el episodio: dentro del enlace de la fila (o de la tarjeta)
   pegado a la derecha. Compacto para no comerse el título. */
.ep-watched-toggle {
   position: relative;
   z-index: 2;
   flex: 0 0 auto;
   margin-left: auto;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 4px;
   min-height: 26px;
   padding: 4px 9px;
   border-radius: 99px;
   border: 1px solid rgba(255, 255, 255, .28);
   background: rgba(255, 255, 255, .06);
   color: rgba(255, 255, 255, .82);
   font-family: inherit;
   font-size: 11.5px;
   font-weight: 600;
   line-height: 1;
   white-space: nowrap;
   cursor: pointer;
   transition: background .15s ease, border-color .15s ease, color .15s ease;
}

/* Filas de los themes en los que el <a> es display:block: se convierten en fila
   para que el botón quede al lado del título y no debajo. */
.ep-inline {
   display: flex;
   align-items: center;
   gap: 8px;
}

.ep-inline__grow {
   flex: 1 1 auto;
   min-width: 0;
}

/* Fila del episodio que ya era flex (cuevana, cinema, serieskao…): el título es
   el que cede el ancho que ocupa el botón, así no se sale de la tarjeta. */
.ep-host {
   min-width: 0;
}

.ep-host > *:not(.ep-watched-toggle) {
   min-width: 0;
}

.ep-host > .ep-title,
.ep-host > .episodiotitle,
.ep-host > .episode-item__title,
.ep-host > .episode-title,
.ep-host > .epst {
   flex: 1 1 auto;
   min-width: 0;
}

/* Themes con el enlace como capa vacía encima de la tarjeta (torofilm .lnk-blk,
   torovid .lnka): el botón va dentro de la fila, que pasa a ser flex. */
.ep-row {
   display: flex;
   align-items: center;
   gap: 8px;
}

.ep-row > a,
.ep-row > article {
   flex: 1 1 auto;
   min-width: 0;
}

/* Rejillas de tarjetas pequeñas (pelisgratishd, torovid, cuevana3): solo el
   check, en la esquina, para no romper la rejilla. */
.ep-check-host {
   position: relative;
}

.ep-watched-toggle--check {
   position: absolute;
   top: 4px;
   right: 4px;
   min-height: 0;
   width: 22px;
   height: 22px;
   margin: 0;
   padding: 0;
   font-size: 12px;
   border-radius: 50%;
   background: rgba(0, 0, 0, .45);
   color: #fff;
   opacity: .55;
}

.ep-watched-toggle--check:hover,
.ep-watched-toggle--check:focus-visible {
   opacity: 1;
   border-color: var(--prog-ok);
   color: #fff;
}

.ep-check-host .ep-watched-toggle--check.is-active,
.is-watched > .ep-watched-toggle--check {
   opacity: 1;
   background: var(--prog-ok);
   border-color: var(--prog-ok);
   color: #fff;
}

.ep-watched-toggle:hover {
   border-color: var(--prog-ok);
   color: var(--prog-ok);
   background: rgba(255, 255, 255, .12);
}

/* Fila vista: el botón se rellena y el título se tacha un poco */
.is-watched > .ep-watched-toggle,
.is-watched .ep-watched-toggle {
   background: var(--prog-ok);
   border-color: var(--prog-ok);
   color: #fff;
}

.is-watched .epi_desc > div,
.is-watched .episode-item__title,
.is-watched .ep-title {
   color: rgba(255, 255, 255, .55);
   text-decoration: line-through;
}

@media (max-width: 480px) {
   .ep-watched-toggle {
      padding: 4px 7px;
      font-size: 10.5px;
   }
}

/* ---------- Barra de progreso de la temporada ---------- */
.ep-season-progress {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 10px;
   margin: 0 0 12px;
   font-size: 13px;
   color: rgba(255, 255, 255, .7);
}

.ep-season-progress__bar {
   flex: 1 1 140px;
   height: 6px;
   min-width: 100px;
   border-radius: 99px;
   background: rgba(255, 255, 255, .12);
   overflow: hidden;
}

.ep-season-progress__fill {
   display: block;
   height: 100%;
   width: 0;
   border-radius: 99px;
   background: var(--prog-ok);
   transition: width .2s ease;
}

.season-watched-btn {
   flex: 0 0 auto;
   padding: 5px 12px;
   border-radius: 99px;
   border: 1px solid var(--prog-border);
   background: rgba(255, 255, 255, .06);
   color: inherit;
   font-family: inherit;
   font-size: 12px;
   font-weight: 600;
   cursor: pointer;
   transition: background .15s ease, border-color .15s ease;
}

.season-watched-btn:hover {
   border-color: var(--prog-ok);
   background: rgba(255, 255, 255, .12);
}

.season-watched-btn:disabled {
   opacity: .5;
   cursor: default;
}

/* ---------- Barra de acciones bajo el reproductor / botón de avisos ---------- */
.ep-actions {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 8px;
   margin: 10px 0 0;
}

/* Delante de los botones del theme (anterior / siguiente): se separa con una
   línea para que no parezca otro control del reproductor. */
.ep-actions--above {
   margin: 0 0 16px;
   padding-bottom: 14px;
   border-bottom: 1px solid var(--prog-border);
}

.ep-mark-btn {
   display: inline-flex;
   align-items: center;
   gap: 6px;
   padding: 8px 14px;
   border-radius: 6px;
   border: 1px solid var(--prog-border);
   background: rgba(255, 255, 255, .06);
   color: inherit;
   font-family: inherit;
   font-size: 13px;
   font-weight: 600;
   cursor: pointer;
   transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.ep-mark-btn:hover {
   border-color: var(--prog-ok);
}

.ep-mark-btn.is-active {
   background: var(--prog-ok);
   border-color: var(--prog-ok);
   color: #fff;
}

/* Botón "Activar notificaciones" (lo inyecta progress.js al lado de "Añadir a
   lista", copiando su estilo en línea para que quede igual en los 12 themes) */
.follow-widget {
   position: relative;
   display: inline-flex;
   align-items: center;
   margin: 14px 0;
}

/* Pegado a "Añadir a lista": sin margen, que lo ponga el contenedor del theme */
.follow-widget--inline {
   margin: 0;
}

/* Utilidad: los themes traen .d-none de bootstrap o de su propio CSS */
.follow-widget.d-none {
   display: none !important;
}

.follow-btn {
   position: relative;
   display: inline-flex;
   align-items: center;
   gap: 8px;
   padding: 9px 16px;
   border-radius: 6px;
   border: 1px solid var(--prog-border);
   background: rgba(255, 255, 255, .06);
   color: inherit;
   font-family: inherit;
   font-size: 13px;
   font-weight: 600;
   line-height: 1.2;
   cursor: pointer;
   transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.follow-btn i {
   font-size: 1em;
   line-height: 1;
}

.follow-btn svg {
   display: block;
   width: 16px;
   height: 16px;
}

.follow-btn:hover {
   border-color: var(--prog-ok);
   color: var(--prog-ok);
}

.follow-btn.is-active {
   background: var(--prog-ok);
   border-color: var(--prog-ok);
   color: #fff;
}

/* ---------- Header: orden y espaciado de las piezas ---------- */
/* El HTML del header va en el full page cache (igual para todos) y los bloques
   de sesión (#header-notif, #header-auth) los pinta el JS. Al no tener "order"
   propio caían en order:0, o sea ANTES del menú (que tiene order:2): el avatar,
   el nombre y "Salir" aparecían en medio del header y apretaban los enlaces
   hasta partirlos en varias filas.
   Orden final: logo | menú | buscador | campana | usuario + salir. */
.Header .Container {
   flex-wrap: nowrap;
   gap: .75rem;
}

.Header .CnMnBrws { order: 0; flex: 0 0 auto; }
.Header .Logo     { order: 1; flex: 0 0 auto; }
.Header .Menu     { order: 2; flex: 1 1 auto; min-width: 0; }
.Header .Search   { order: 3; flex: 0 1 250px; min-width: 0; }

#header-notif { order: 4; flex: 0 0 auto; margin-left: 0; }

/* Bloque de sesión: avatar + nombre + salir en una sola línea */
#header-auth {
   order: 5;
   flex: 0 0 auto;
   margin-left: 0;
   display: flex;
   align-items: center;
   gap: .5rem;
   white-space: nowrap;
}

#header-auth .header-user {
   display: inline-flex;
   align-items: center;
   gap: .4rem;
   max-width: 11rem;
   color: #fff;
   font-size: 13px;
   font-weight: 600;
   line-height: 1;
   text-decoration: none;
}

#header-auth .header-user-avatar {
   flex: 0 0 auto;
   width: 28px;
   height: 28px;
   border-radius: 50%;
   object-fit: cover;
   background: #1a1a1a;
   border: 1px solid rgba(255, 255, 255, .28);
}

#header-auth .header-user-name {
   max-width: 7.5rem;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

#header-auth form { margin: 0; display: flex; }

/* El buscador no debe empujar al resto cuando hay sesión */
.Header .Search .search-form { min-width: 0; }
.Header .Search input { min-width: 0; }

/* Escritorio: el logo y el buscador se ajustan para que el menú quepa en una fila.
   En anchos medios se recorta primero el texto secundario (nombre, "Salir", campana),
   nunca los enlaces del menú. */
@media (min-width: 992px) and (max-width: 1400px) {
   .Header .Logo img { max-width: 165px; height: auto; }
   .Header .Search { flex: 0 1 210px; }
   .Header .Search input { font-size: .88rem; }
   .Header .Menu ul.menu > li > a { padding-left: .5rem; padding-right: .5rem; font-size: .85rem; }
}

@media (max-width: 1300px) {
   #header-auth .header-user-name { display: none; }
}

@media (max-width: 1200px) {
   #header-auth .header__logout-text { display: none; }
   .header__logout-btn { padding: 4px 6px; }
   .Header .Search { flex: 0 1 175px; }
   .Header .Menu ul.menu > li > a { padding-left: .4rem; padding-right: .4rem; font-size: .8rem; }
}

/* Solo en tablet: ahí el menú de escritorio ya no cabe con la campana. En móvil
   (menú dentro del cajón) la campana sigue visible. */
@media (min-width: 992px) and (max-width: 1200px) {
   .header__notif { display: none !important; }
}

@media (max-width: 1050px) {
   .Header .Logo img { max-width: 140px; height: auto; }
   .Header .Search { flex: 0 1 135px; }
   .Header .Container { gap: .5rem; }
}

/* ---------- Botón de cerrar sesión del header (auth-header.js) ---------- */
/* Antes era un texto gris que apenas se veía: ahora icono SVG + texto */
.header__logout-btn {
   display: inline-flex;
   align-items: center;
   gap: 5px;
   padding: 4px 8px;
   border-radius: 5px;
   border: 1px solid transparent;
   background: transparent;
   color: #cbd5e1;
   font-size: 12px;
   font-weight: 600;
   cursor: pointer;
   transition: color .15s ease, background .15s ease, border-color .15s ease;
}

.header__logout-btn svg {
   display: block;
   width: 15px;
   height: 15px;
}

.header__logout-btn:hover,
.header__logout-btn:focus-visible {
   color: #fff;
   background: rgba(255, 255, 255, .1);
   border-color: rgba(255, 255, 255, .18);
   outline: none;
}

/* Menú móvil: cuando hay sesión, auth-header.js añade "Cerrar sesión" */
.mobile-logout-btn {
   display: flex;
   align-items: center;
   gap: .5rem;
   width: 100%;
   padding: .85rem 1rem;
   border: 0;
   background: transparent;
   color: #cbd5e1;
   font-size: .95rem;
   font-weight: 600;
   text-align: left;
   cursor: pointer;
}

.mobile-logout-btn svg {
   display: block;
   width: 16px;
   height: 16px;
   flex: 0 0 auto;
}

.mobile-logout-btn:hover,
.mobile-logout-btn:focus-visible {
   color: #fff;
   background: rgba(255, 255, 255, .06);
}

/* ---------- Campanita del header ---------- */
.header__notif {
   position: relative;
   display: inline-flex;
   align-items: center;
}

/* El atributo [hidden] del HTML pierde frente a display:inline-flex,
   así que se fuerza aquí (el widget arranca oculto hasta saber si hay sesión) */
.header__notif[hidden],
.header__notif-count[hidden] {
   display: none !important;
}

.header__notif-btn {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 36px;
   height: 36px;
   border: 0;
   border-radius: 50%;
   background: transparent;
   color: inherit;
   cursor: pointer;
}

.header__notif-btn:hover {
   background: rgba(255, 255, 255, .08);
}

/* El panel se muestra/oculta con .d-none (lo pone notifications.js) */
.header__notif-panel.d-none {
   display: none !important;
}

.header__notif-count {
   position: absolute;
   top: 2px;
   right: 2px;
   min-width: 16px;
   height: 16px;
   padding: 0 4px;
   border-radius: 99px;
   background: #e5484d;
   color: #fff;
   font-size: 10px;
   font-weight: 700;
   line-height: 16px;
   text-align: center;
}

.header__notif-panel {
   position: absolute;
   top: calc(100% + 8px);
   right: 0;
   width: 320px;
   max-width: calc(100vw - 32px);
   background: var(--prog-panel);
   border: 1px solid var(--prog-border);
   border-radius: 10px;
   box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
   overflow: hidden;
   z-index: 1200;
}

.header__notif-head {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 8px;
   padding: 10px 12px;
   border-bottom: 1px solid var(--prog-border);
   font-size: 13px;
}

.header__notif-read {
   border: 0;
   background: transparent;
   color: var(--prog-accent);
   font-size: 12px;
   cursor: pointer;
}

.header__notif-list {
   max-height: 320px;
   overflow-y: auto;
}

.header__notif-item {
   display: flex;
   gap: 10px;
   padding: 10px 12px;
   border-bottom: 1px solid rgba(255, 255, 255, .06);
   text-decoration: none;
   color: inherit;
}

.header__notif-item:hover {
   background: rgba(255, 255, 255, .05);
}

.header__notif-item.is-unread {
   background: rgba(91, 140, 255, .1);
}

.header__notif-item img {
   width: 38px;
   height: 54px;
   object-fit: cover;
   border-radius: 4px;
   flex: 0 0 auto;
   background: rgba(255, 255, 255, .06);
}

.header__notif-item__body {
   display: flex;
   flex-direction: column;
   gap: 2px;
   min-width: 0;
}

.header__notif-item__title {
   font-size: 13px;
   font-weight: 600;
   overflow: hidden;
   text-overflow: ellipsis;
   white-space: nowrap;
}

.header__notif-item__sub {
   font-size: 11px;
   color: rgba(255, 255, 255, .6);
}

.header__notif-empty {
   margin: 0;
   padding: 16px 12px;
   font-size: 13px;
   color: rgba(255, 255, 255, .6);
   text-align: center;
}

.header__notif-foot {
   display: block;
   padding: 10px 12px;
   border-top: 1px solid var(--prog-border);
   font-size: 12px;
   text-align: center;
   color: var(--prog-accent);
   text-decoration: none;
}

@media (max-width: 767px) {
   .header__notif-panel {
      position: fixed;
      top: 64px;
      left: 12px;
      right: 12px;
      width: auto;
   }
}

/* ---------- Pie: copyright ---------- */
/* clean-footer.js deja en el pie solo los enlaces (Inicio · Sitemap · Telegram ·
   Cloudflare One) + volver arriba + esta línea de copyright. */
.pm-footer-copy {
   display: block;
   margin: 0;
   padding: 0 .5rem .25rem;
   font-size: .76rem;
   line-height: 1.45;
   text-align: center;
   opacity: .62;
}

/* ============================================================
   ENTREGA 3 (mejoras) — pie, perfil y episodio activo
   Va aquí y no en theme.css para no recompilar Tailwind.
   Todo usa currentColor para heredar el color de cada theme.
   ============================================================ */

/* ---------- Pie: Inicio · Sitemap · Telegram · Cloudflare One ---------- */
.pm-footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .45rem .9rem;
  margin: 0 auto .6rem;
  padding: .6rem .25rem;
  max-width: 100%;
}

.pm-footer-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  line-height: 1.2;
  color: inherit;
  opacity: .72;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity .15s ease;
}

.pm-footer-link:hover,
.pm-footer-link:focus-visible {
  opacity: 1;
  text-decoration: underline;
}

.pm-footer-link svg { flex: 0 0 auto; }

.pm-footer-badge {
  font-size: .6rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 0 .35rem;
  opacity: .85;
}

.pm-footer-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-left: .15rem;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .6;
  cursor: pointer;
  transition: opacity .15s ease, transform .15s ease;
}

.pm-footer-up:hover,
.pm-footer-up:focus-visible {
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- Perfil: bloque "Continuar viendo" ---------- */
.pm-perfil-block { margin: 0 0 1.25rem; }

.pm-perfil-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  margin: 0 0 .8rem;
}

.pm-perfil-head h2 {
  margin: 0;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.pm-perfil-empty {
  margin: 0;
  font-size: .85rem;
  opacity: .65;
}

.pm-perfil-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .7rem;
}

.cw-card {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  text-decoration: none;
  color: inherit;
  border-radius: .5rem;
  padding: .3rem;
  transition: transform .15s ease, background .15s ease;
}

.cw-card:hover,
.cw-card:focus-visible {
  transform: translateY(-2px);
  background: rgba(127, 127, 127, .12);
}

.cw-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: .4rem;
  aspect-ratio: 2 / 3;
  background: rgba(127, 127, 127, .18);
}

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

.cw-card__badge {
  position: absolute;
  left: .3rem;
  bottom: .3rem;
  padding: .05rem .35rem;
  font-size: .62rem;
  font-weight: 700;
  border-radius: .25rem;
  background: rgba(0, 0, 0, .72);
  color: #fff;
}

.cw-card__title {
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.cw-card__sub {
  font-size: .7rem;
  opacity: .65;
}

/* ---------- Perfil: lista de novedades ---------- */
.notif-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 .3rem;
  font-size: .68rem;
  font-weight: 700;
  color: #fff;
  background: #e5484d;
  border-radius: 999px;
}

.notif-list {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.notif-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .55rem;
  border-radius: .45rem;
  text-decoration: none;
  color: inherit;
  background: rgba(127, 127, 127, .1);
  border-left: 3px solid transparent;
  transition: background .15s ease, border-color .15s ease;
}

.notif-item:hover,
.notif-item:focus-visible { background: rgba(127, 127, 127, .2); }

.notif-item.is-unread {
  border-left-color: #e5484d;
  background: rgba(229, 72, 77, .1);
}

.notif-item__img {
  width: 38px;
  height: 54px;
  object-fit: cover;
  border-radius: .3rem;
  flex: 0 0 auto;
  background: rgba(127, 127, 127, .2);
}

.notif-item__body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.notif-item__title {
  font-size: .82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-item__sub {
  font-size: .72rem;
  opacity: .7;
}

.notif-item__date {
  font-size: .68rem;
  opacity: .55;
  flex: 0 0 auto;
}

/* ---------- Episodio activo en la lista (#sN-eM) ---------- */
li.is-active,
a.is-active[aria-current] {
  border-left: 3px solid #e5484d;
  background: rgba(229, 72, 77, .1);
  border-radius: .3rem;
}

a.is-active[aria-current] {
  padding-left: .45rem;
  text-decoration: none;
}

li.is-active > a.episode-link,
li.is-active > a[data-episode],
li.is-active > a[data-episodio],
li.is-active > a.lnka,
li.is-active > a.episode-item,
a.is-active.episode-link {
  font-weight: 700;
}

li.is-active > a.episode-link::after,
li.is-active > a[data-episode]::after,
li.is-active > a[data-episodio]::after,
li.is-active > a.lnka::after,
li.is-active > a.episode-item::after {
  content: ' \25B6';
  font-size: .6rem;
  opacity: .8;
}

@media (max-width: 600px) {
  .pm-footer-nav { gap: .35rem .6rem; }
  .pm-footer-link { font-size: .74rem; }
  .pm-perfil-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

/* ============================================================
   lacuevana (theme cuevana3) — la lista de episodios es una rejilla de tarjetas
   pequeñas (minmax(140px,1fr)) y la fila ES la tarjeta, así que:
     · el episodio que se está viendo se marca con halo + fondo (el borde de 3px
       y el ▶ de la regla genérica no se veían en tarjetas redondeadas);
     · el botón "visto" va debajo del título, a lo ancho y dentro de la tarjeta,
       para que el overflow:hidden del theme no lo corte.
   Va al final del archivo para ganar a theme.css, que usa !important.
   ============================================================ */

/* Episodio actual (#sN-eM): halo cian + fondo, y sin borde ni ▶ */
.episodes-list .episode-item.is-active,
.episodes-list a.episode-item.is-active[aria-current] {
   border-left: 0 !important;
   background-color: rgba(0, 188, 212, .16) !important;
   box-shadow: 0 0 0 2px rgba(0, 188, 212, .9), 0 8px 20px rgba(0, 188, 212, .28) !important;
   transform: none !important;
}

.episodes-list .episode-item.is-active .episode-title,
.episodes-list .episode-item.is-active .episode-number {
   color: #fff !important;
}

/* Tarjeta: columna (badge · título · botón) y sin recortes */
.episodes-list .episode-item.ep-row,
.episodes-list .episode-item.ep-host {
   flex-direction: column !important;
   align-items: center !important;
   justify-content: center !important;
   gap: 2px !important;
   padding: .5rem .35rem !important;
   min-height: 86px !important;
   height: auto !important;
}

.episodes-list .episode-item .episode-number {
   margin-bottom: .35rem !important;
}

.episodes-list .episode-item .episode-title {
   max-width: 100% !important;
   margin-bottom: 0 !important;
}

/* Botón "visto" compacto dentro de la tarjeta (antes medía 85px en una tarjeta
   de 153px y el overflow:hidden lo partía) */
.episodes-list .episode-item > .ep-watched-toggle {
   display: flex !important;
   width: 100% !important;
   max-width: 100% !important;
   min-height: 0 !important;
   margin: .35rem 0 0 0 !important;
   padding: 3px 4px !important;
   font-size: 10px !important;
   line-height: 1.3 !important;
   box-sizing: border-box;
}

/* Vista: el relleno no debe empujar el título fuera de la tarjeta */
.episodes-list .episode-item.is-watched > .ep-watched-toggle,
.episodes-list .episode-item.is-watched .ep-watched-toggle {
   background: rgba(0, 188, 212, .85) !important;
   border-color: rgba(0, 188, 212, .85) !important;
   color: #06121c !important;
}

/* Red de seguridad: progress.js ya no pinta el botón sobre el reproductor; si un
   bundle viejo en caché lo inyecta, queda oculto en vez de salir DETRÁS del
   iframe. */
.ep-actions {
   display: none !important;
}

/* Nombre de temporada dentro del acordeón: el theme aplica
   `.season-toggle span { margin-left:auto; color:#888; font-size:.875rem }`,
   que empujaba el título al centro en gris. Se restaura a la izquierda. */
.season-toggle > .season-name {
   margin-left: 0 !important;
   color: #fff !important;
   font-size: 1.05rem !important;
   font-weight: 600 !important;
   display: inline-flex !important;
   align-items: center;
   gap: .45rem;
}
.season-toggle > .season-name svg {
   color: #00bcd4;
}

/* Iconos del header/menú: SVG en línea (16px) en lugar de emojis, que en este
   theme se renderizan como cajas ▯ porque el CSS no carga fuente emoji. */
.nav-ico {
   width: 16px;
   height: 16px;
   flex: none;
   vertical-align: -3px;
   margin-right: .4rem;
   display: inline-block;
}
.nav-ico[fill="none"] {
   fill: none;
   stroke: currentColor;
}
.BtnMenu .nav-ico,
.MobileSearch .nav-ico,
.Search .nav-ico {
   margin-right: 0;
   vertical-align: middle;
}

