/* ==========================================================
   Reader21 - Player Classic 
   ========================================================== */

/* --- Reset controlado --- */
.r21, .r21 * {
  box-sizing: border-box;
  font-family: inherit;
  line-height: normal;
  color: inherit;
  fill: currentColor;
  text-decoration: none;
  border: none;
  outline: none;
  background: none;
}

/* --- Contenedor principal --- */
.r21-classic {
  --r21-accent: #fedd00;
  --r21-bg: #fff;
  --r21-text: #111;
  --r21-muted: #666;
  --r21-border: #e5e7eb;
  --r21-radius: 12px;
  --r21-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  background: var(--r21-bg);
  border-radius: var(--r21-radius);
  box-shadow: var(--r21-shadow);
  color: var(--r21-text);
  width: 100%;
  max-width: 100%;
  user-select: none;
}

/* --- Botón Play --- */
.r21-classic .r21-btn.r21-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, color 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.r21-classic .r21-btn.r21-play:hover {
  background: var(--r21-accent);
  color: #000;
  transform: scale(1.05);
}
.r21-classic .r21-btn.r21-play svg {
  width: 15px;
  height: 17px;
  fill: currentColor;
  display: block;
}

/* --- Progreso --- */
.r21-classic .r21-progress {
  width: 100%;
  height: 6px;
  background: #111;
  border-radius: 999px;
  position: relative;
  overflow: visible;
  cursor: pointer;
}
.r21-classic .r21-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: var(--r21-accent);
  border-radius: 999px;
}
.r21-classic .r21-progress-handle {
  position: absolute;
  right: -10px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--r21-accent);
  transform: translateY(-50%);
  box-shadow:
    0 0 0 3px #fff,
    0 0 8px rgba(254, 221, 0, 0.85),
    0 0 16px rgba(254, 221, 0, 0.6);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.r21-classic .r21-progress:hover .r21-progress-handle {
  transform: translateY(-50%) scale(1.15);
}

/* --- Tiempos --- */
.r21-classic .r21-time {
  display: grid;
  grid-template-columns: minmax(42px, 1fr) auto minmax(42px, 1fr);
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--r21-muted);
}

.r21-classic .r21-current {
  justify-self: start;
}

.r21-classic .r21-duration {
  justify-self: end;
}

/* --- Controles derecha --- */
.r21-classic .r21-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* --- Velocidad --- */
.r21-classic .r21-rate {
  background: #f5f5f5;
  color: #111;
  font-weight: 600;
  border-radius: 12px;
  padding: 4px 10px;
  cursor: pointer;
  user-select: none;
  transition: background 0.2s, transform 0.1s;
}
.r21-classic .r21-rate:hover {
  background: var(--r21-accent);
  color: #000;
}
.r21-classic .r21-rate:active {
  transform: scale(0.95);
}

/* --- Descargar --- */
.r21-classic .r21-download {
  font-size: 18px;
  color: var(--r21-text);
  cursor: pointer;
  transition: color 0.2s;
}
.r21-classic .r21-download:hover {
  color: var(--r21-accent);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .r21-classic {
    padding: 12px;
  }
  .r21-classic .r21-btn.r21-play {
    width: 46px;
    height: 46px;
  }
  .r21 .r21-brand-inline {
    gap: 4px;
  }
  .r21 .r21-brand-inline__text {
    font-size: 7px;
    letter-spacing: 0.04em;
  }
  .r21 .r21-brand-inline__logo {
    padding: 3px 9px 3px 8px;
    border-radius: 10px;
  }
  .r21 .r21-brand-inline__logo-text {
    font-size: 10px;
  }
}





/* --- Banner de anuncio (classic) --- */
.r21-ad-banner {
  display: inline-flex;
  flex-direction: column;
  margin-top: 10px;
  max-width: 100%;
  text-decoration: none;
}

.r21-ad-banner[hidden] {
  display: none !important;
}

.r21-ad-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #9ca3af;
  margin-bottom: 4px;
}

.r21-ad-frame {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  width: 100%;
}

.r21-ad-banner img {
  max-width: 260px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.r21-ad-banner:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.r21-ad-banner.is-rich .r21-ad-frame {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.r21-ad-copy {
  display: grid;
  gap: 6px;
  color: #111827;
}

.r21-ad-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
}

.r21-ad-copy span {
  font-size: 13px;
  line-height: 1.5;
  color: #4b5563;
}

.r21-ad-copy--html {
  display: block;
}

.r21 .r21-brand-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  opacity: 0.92;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.r21 .r21-brand-inline:hover {
  opacity: 1;
  transform: translateY(-1px);
}

.r21 .r21-brand-inline__text {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #8b95a7;
}

.r21 .r21-brand-inline__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 11px 3px 9px;
  border-radius: 12px;
  background: linear-gradient(145deg, #2d2688 0%, #241d75 100%);
  box-shadow:
    0 0 0 1px rgba(90, 110, 255, 0.14),
    inset 0 0 12px rgba(255,255,255,0.03);
}

.r21 .r21-brand-inline__logo-text {
  font-size: 12px;
  line-height: 1;
  letter-spacing: -0.07em;
  font-weight: 900;
  text-transform: uppercase;
}

.r21 .r21-brand-inline__sol {
  color: #f2f2f2;
}

.r21 .r21-brand-inline__via {
  background: linear-gradient(180deg, #cfe9c5 0%, #a8d19d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  margin-left: -0.04em;
}

.r21 .r21-playlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.05);
  color: #111827;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.r21 .r21-playlist-link:hover {
  background: var(--r21-accent);
  color: #111827;
  transform: translateY(-1px);
}

.r21 .r21-playlist-link svg {
  width: 18px;
  height: 18px;
  display: block;
}
