/* gylab.click — Audiolibro 2B definitivo. Última capa de estilos (después de
 * story-desktop-book.css y story-mobile-reader-v4.css), evita sus reglas viejas. */
body.storyhub-page .story-tts.click-player-2b{
  --tts-track:rgba(183,157,222,.24);
  box-sizing:border-box;min-width:0;width:100%;
  margin:16px 0 20px;padding:21px 22px 18px;
  background:linear-gradient(145deg,#241632 0%,#20172f 55%,#181224 100%)!important;
  border:1px solid #684591!important;border-radius:19px!important;
  color:#f9f4ff!important;box-shadow:0 12px 30px #08051042!important;
  overflow:visible;
}
body.storyhub-page .story-tts.click-player-2b *{box-sizing:border-box}
/* Presentación principal: portada + ficha, como audiolibro, no como playlist */
body.storyhub-page .story-tts.click-player-2b .story-tts-head{
  display:grid!important;grid-template-columns:79px minmax(0,1fr);
  gap:15px;align-items:center;margin:0 0 18px;min-width:0;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-art{
  display:block!important;width:79px;height:93px;border-radius:11px;
  overflow:hidden;background:#4e2c7b;border:1px solid #8d60bc;
  box-shadow:0 5px 14px #0005;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-art img{width:100%;height:100%;object-fit:cover;display:block}
body.storyhub-page .story-tts.click-player-2b .story-tts-copy{display:grid;align-content:center;gap:6px;min-width:0}
body.storyhub-page .story-tts.click-player-2b .story-tts-kicker{
  display:block;font-size:10px;line-height:1.3;text-transform:uppercase;
  font-weight:900;letter-spacing:.07em;color:#cda7ff!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-kicker:before{display:none!important}
body.storyhub-page .story-tts.click-player-2b .story-tts-title{
  display:block;font-size:17px;line-height:1.3;font-weight:850;
  max-height:3.9em;overflow:hidden;color:#fff!important;overflow-wrap:anywhere;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-author{
  display:block;font-size:12px;line-height:1.4;color:#cbbbdc!important;
}
/* La barra de duración es del audiolibro completo. */
body.storyhub-page .story-tts.click-player-2b .story-tts-progress{
  display:block;min-width:0;margin:0 0 17px!important;padding:0!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-seek-wrap{
  display:flex;align-items:center;min-height:20px;height:20px;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-seeker{
  display:block;width:100%;height:7px;min-height:7px;margin:0;
  accent-color:#a866ff;border-radius:99px;
  background:linear-gradient(90deg,#ac68ff var(--tts-progress,0%),#4f3b62 var(--tts-progress,0%));
  cursor:pointer;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-time-row{
  display:flex;justify-content:space-between;gap:12px;margin:5px 0 0;
  font-size:11px;font-weight:700;line-height:1.45;color:#d7c8e7!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-duration{color:#baaad0!important}
/* Solo controles de narración: -15 / reproducir / +15. */
body.storyhub-page .story-tts.click-player-2b .story-tts-controls{
  display:flex!important;flex-wrap:nowrap;align-items:center;justify-content:center;
  gap:17px;width:100%;margin:0 0 18px!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-skip{
  display:flex!important;flex-direction:column!important;justify-content:center;align-items:center;
  flex:0 0 48px;width:48px;height:48px;min-width:48px;min-height:48px;
  padding:3px;border-radius:50%!important;border:1px solid #625071!important;
  background:#382a48!important;color:#f2e9ff!important;font-size:22px;
  font-weight:750;line-height:1.05;box-shadow:none!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-skip small{
  display:block;font-size:9px;font-weight:850;line-height:1.2;margin-top:3px;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-play{
  display:flex;align-items:center;justify-content:center;flex:0 1 auto;
  min-width:0!important;width:min(210px,55%);max-width:230px;
  height:55px!important;padding:7px 16px!important;
  border:0!important;border-radius:99px!important;
  background:linear-gradient(120deg,#7433df,#a963f9)!important;
  color:#fff!important;box-shadow:0 9px 24px #7134db5c!important;
  font-size:13px!important;line-height:1.3;white-space:normal;
  font-weight:850;cursor:pointer;text-align:center;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-play:hover{filter:brightness(1.12)}
/* Herramientas: reinicio inmediato y velocidad (sin botones de música/playlist). */
body.storyhub-page .story-tts.click-player-2b .story-tts-bottom{
  display:flex;flex-direction:column;align-items:stretch;gap:11px;
  padding:14px 0 0;margin:0;border-top:1px solid #554164;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-status{
  display:block;flex:none!important;width:100%;white-space:normal;
  font-size:11px;line-height:1.5;color:#cbb7df!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-tools{
  width:100%;display:flex!important;gap:12px;flex-wrap:wrap;
  align-items:center;justify-content:space-between;min-width:0;
}
body.storyhub-page .story-tts.click-player-2b .click-player-restart{
  display:inline-flex!important;align-items:center;justify-content:center;gap:9px;
  flex:0 1 auto;width:auto;min-width:0;min-height:42px;
  padding:9px 15px;background:#392c4b!important;
  border:1px solid #75558b!important;border-radius:99px;
  color:#f1e4ff!important;font-weight:800;font-size:12px;line-height:1.25;
  cursor:pointer;box-shadow:none!important;
}
body.storyhub-page .story-tts.click-player-2b .click-player-restart:hover{
  background:#53386c!important;border-color:#9f70df!important;
}
body.storyhub-page .story-tts.click-player-2b .click-player-restart span{font-size:19px;line-height:1}
body.storyhub-page .story-tts.click-player-2b .story-tts-speed{
  display:flex!important;align-items:center;justify-content:flex-end;gap:8px;
  order:initial!important;min-width:0;min-height:42px;margin:0!important;
  width:auto!important;font-size:12px;color:#ead9fb!important;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-speed span{display:inline!important}
body.storyhub-page .story-tts.click-player-2b .story-tts-speed select{
  height:42px;min-width:78px;max-width:110px;
  border:1px solid #7b5898!important;border-radius:12px;
  background:#291d39!important;color:#fff!important;
  padding:0 10px;font-weight:850;font-size:12px;
}
body.storyhub-page .story-tts.click-player-2b .story-tts-browser[hidden],
body.storyhub-page .story-tts.click-player-2b .story-tts-download[hidden]{display:none!important}
body.storyhub-page .story-tts.click-player-2b .story-tts-note,
body.storyhub-page .story-tts.click-player-2b .story-tts-pricing{
  color:#cfbfdd!important;font-size:11px;line-height:1.5;margin:10px 0 0;
  overflow-wrap:anywhere;
}
/* Navegación entre partes solo si realmente existen otras historias. */
body.storyhub-page .story-tts.click-player-2b .click-player-chapter-nav{
  display:flex;gap:10px;margin:17px 0 0;padding:15px 0 0;
  border-top:1px solid #514061;
}
body.storyhub-page .story-tts.click-player-2b .click-player-chapter-nav a{
  display:flex;justify-content:center;align-items:center;gap:8px;
  flex:1;min-width:0;text-align:center;text-decoration:none!important;
  background:#312343!important;border:1px solid #62487e!important;
  color:#e8dbfa!important;border-radius:12px;padding:12px 10px;
  font-weight:850;font-size:12px;line-height:1.3;
}
body.storyhub-page .story-tts.click-player-2b .click-player-chapter-nav a:hover{
  background:#51316f!important;color:#fff!important;border-color:#a77aeb!important;
}
/* Switch morado activo / gris apagado. Solo en Clicks con siguiente parte. */
body.storyhub-page .story-tts.click-player-2b .click-series-autoplay{
  display:flex!important;align-items:center;justify-content:space-between;
  gap:12px;margin:15px 0 0;padding:13px 14px;
  border:1px solid #685084!important;border-radius:14px;
  background:#302040!important;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-copy{
  display:flex;min-width:0;flex:1;flex-direction:column;gap:5px;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-copy strong{
  color:#fff!important;font-size:12px;font-weight:850;line-height:1.45;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-copy small{
  color:#c4b0d8!important;font-size:10px;line-height:1.5;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-switch{
  display:block!important;position:relative;flex:0 0 56px;width:56px;
  height:31px;border-radius:99px;background:#686470!important;
  border:1px solid #87818e!important;padding:0;
  cursor:pointer;transition:background .2s ease,border .2s ease;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-switch .click-series-auto-knob{
  position:absolute;top:4px;left:4px;width:21px;height:21px;
  background:#ece9f1;border-radius:50%;box-shadow:0 1px 4px #0005;
  transition:transform .18s ease;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-switch[aria-checked="true"]{
  background:#913ff3!important;border-color:#b381ff!important;
}
body.storyhub-page .story-tts.click-player-2b .click-series-auto-switch[aria-checked="true"] .click-series-auto-knob{
  transform:translateX(25px);background:#fff;
}
body.storyhub-page .story-tts.click-player-2b :is(button,select,a):focus-visible{
  outline:3px solid #cba1ff!important;outline-offset:3px;
}
/* Botones del ebook y descarga MP3 bajo portada en escritorio. */
@media(min-width:1025px){
 body.storyhub-page .storyhub-reader-feature-poster .click-ebook-section.click-ebook-poster{
  display:flex!important;flex-direction:column!important;align-items:stretch;
  width:100%;padding:0;gap:8px;margin:15px 0 0;
 }
 body.storyhub-page .storyhub-reader-feature-poster .click-ebook-section button{width:100%!important}
}
/* En celulares el orden no depende de un grid ficticio: JS mueve los elementos
 * existentes, conservando la compra MP3/PDF y el progreso de escucha. */
@media(max-width:720px){
 body.storyhub-page .storyhub-reader-feature-poster.click-mobile-player-poster{
  display:flex;flex-direction:column;align-items:stretch;min-width:0;
 }
 body.storyhub-page .storyhub-reader-feature-poster.click-mobile-player-poster .click-ebook-section{
  order:1;display:flex!important;flex-direction:column!important;align-items:stretch;
  width:auto;max-width:none;margin:12px 13px 0!important;
 }
 body.storyhub-page .storyhub-reader-feature-poster.click-mobile-player-poster .click-ebook-section button{
  display:block;width:100%!important;min-height:44px;font-size:12px;
 }
 body.storyhub-page .storyhub-reader-feature-poster.click-mobile-player-poster .story-tts.click-player-2b{
  order:2;margin:12px 13px 8px!important;width:calc(100% - 26px)!important;
  padding:17px 14px 15px!important;border-radius:18px!important;
 }
 /* La portada grande ya está justo encima: evitar la duplicación dentro del player. */
 body.storyhub-page .storyhub-reader-feature-poster .story-tts.click-player-2b .story-tts-head{
  display:block!important;margin:0 0 15px;
 }
 body.storyhub-page .storyhub-reader-feature-poster .story-tts.click-player-2b .story-tts-art,
 body.storyhub-page .storyhub-reader-feature-poster .story-tts.click-player-2b .story-tts-title,
 body.storyhub-page .storyhub-reader-feature-poster .story-tts.click-player-2b .story-tts-author{display:none!important}
 body.storyhub-page .storyhub-reader-feature-poster .story-tts.click-player-2b .story-tts-kicker{
  font-size:12px;letter-spacing:.04em;
 }
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy{
  padding:14px 16px 9px!important;display:flex!important;flex-direction:column;
 }
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy h1{
  order:0!important;margin:3px 0 11px!important;font-size:clamp(23px,6.3vw,32px)!important;
 }
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy .storyhub-author{
  order:1!important;margin:2px 0 13px!important;
 }
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy .storyhub-reader-genre{order:2!important;margin:5px 0}
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy .storyhub-reader-meta{order:3!important;margin:3px 0}
 body.storyhub-page .storyhub-reader-feature-copy.click-mobile-player-copy .storyhub-reader-audio-label{display:none!important}
 body.storyhub-page .story-tts.click-player-2b .story-tts-progress{margin:0 0 13px!important}
 body.storyhub-page .story-tts.click-player-2b .story-tts-controls{
  margin:0 0 15px!important;gap:11px!important;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-skip{
  flex:0 0 45px!important;width:45px!important;min-width:45px!important;
  height:45px!important;border-radius:50%!important;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-play{
  width:auto;min-width:0!important;flex:0 1 175px!important;
  max-width:215px!important;height:53px!important;border-radius:99px!important;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-bottom{
  flex-direction:column!important;align-items:stretch!important;
  padding:14px 0 0!important;margin:0!important;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-tools{
  display:flex!important;flex-direction:row;flex-wrap:wrap!important;
  grid-template-columns:none!important;align-items:center;justify-content:space-between;
  gap:10px;width:100%;
 }
 body.storyhub-page .story-tts.click-player-2b .click-player-restart{
  min-height:42px;flex:0 1 auto;font-size:11px;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-speed{
  width:auto!important;min-width:0;justify-content:flex-end;
 }
 body.storyhub-page .story-tts.click-player-2b .story-tts-speed span{display:inline!important}
 body.storyhub-page .story-tts.click-player-2b .story-tts-speed select{
  height:42px!important;min-width:73px!important;
 }
 body.storyhub-page .story-tts.click-player-2b .click-player-chapter-nav{gap:7px}
 body.storyhub-page .story-tts.click-player-2b .click-player-chapter-nav a{font-size:11px;padding:11px 7px}
 body.storyhub-page .story-tts.click-player-2b .click-series-autoplay{padding:12px;gap:8px}
}
@media(max-width:360px){
 body.storyhub-page .story-tts.click-player-2b .story-tts-controls{gap:7px!important}
 body.storyhub-page .story-tts.click-player-2b .story-tts-skip{flex-basis:39px!important;width:39px!important;min-width:39px!important;height:39px!important}
 body.storyhub-page .story-tts.click-player-2b .story-tts-play{font-size:11px!important;padding:0 9px!important}
 body.storyhub-page .story-tts.click-player-2b .click-player-restart{padding:8px 10px;font-size:10px}
}
