/* Reset y base tipográfica */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Inter", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  /* Evita scroll horizontal accidental por desbordes puntuales */
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  border-radius: inherit;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Layout general */
.container {
  /* Un poco más ancho para aprovechar mejor pantallas de PC */
  max-width: 86rem;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

@media (min-width: 1280px) {
  .container {
    max-width: 100rem;
  }
}

@media (min-width: 1536px) {
  .container {
    max-width: 112rem;
  }
}

@media (max-width: 360px) {
  .container { padding-inline: 1rem; }
}

/* Identidad: logo en cabecera (consistente en todas las páginas) */
:root{
  /* Logo: mismo tamaño/posición en todas las páginas (desktop + móvil) */
  --yp-logo-size: 96px;
  --yp-logo-size-mobile: 64px;

  /* Tema (premium / oscuro) */
  --yp-bg: #0a0a0b;
  --yp-surface: rgba(255,255,255,0.05);
  --yp-surface-2: rgba(255,255,255,0.08);
  --yp-border: rgba(255,255,255,0.14);
  --yp-text: #f4f4f5;
  --yp-muted: #a1a1aa;
  --yp-accent: #d4af37;
  --yp-accent-2: #f0d37a;
  --yp-accent-glow: rgba(212,175,55,0.28);

  /* Safe areas (iOS) */
  --yp-safe-top: env(safe-area-inset-top);
  --yp-safe-right: env(safe-area-inset-right);
  --yp-safe-bottom: env(safe-area-inset-bottom);
  --yp-safe-left: env(safe-area-inset-left);

  /* Responsive stacking (player + PWA banner) */
  --yp-fixed-player-h: 0px;
  --yp-fixed-banner-h: 0px;
  /* Fallbacks antes de medir (evita que el contenido quede tapado) */
  --yp-fixed-stack-h: 170px;
}

@media (max-width: 640px) {
  :root { --yp-fixed-stack-h: 210px; }
}

.yp-nav-logo{
  width: var(--yp-logo-size) !important;
  height: var(--yp-logo-size) !important;
  max-width: var(--yp-logo-size) !important;
  max-height: var(--yp-logo-size) !important;
  flex: 0 0 auto;
  object-fit: contain;
  border-radius: 999px;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.55));
}

.yp-nav-bar{
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* Para que los anclajes no queden tapados por la cabecera (logo grande) */
#inicio,
#radio,
#tienda,
#licencias,
#encargos,
#encargos-faq,
#contacto {
  scroll-margin-top: 140px;
}


/* ==========================
   Accesibilidad (focus + skip)
   ========================== */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 10000;
  padding: 0.6rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.95);
  color: #0b0b0b;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

.skip-link:focus {
  left: 0.75rem;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tarjetas tipo glassmorphism */
.card {
  background: radial-gradient(circle at top left,
      rgba(148, 163, 184, 0.18),
      rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.25rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
  transition:
    transform 0.18s ease-out,
    box-shadow 0.18s ease-out,
    border-color 0.18s ease-out,
    background 0.18s ease-out;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.96),
    0 0 0 1px rgba(248, 250, 252, 0.12);
  border-color: rgba(248, 250, 252, 0.25);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 0.18rem 0.6rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.9);
  color: #e5e7eb;
}

/* Modal de detalle de tema (catálogo): en móvil evita desbordes verticales */
.yp-track-modal-panel {
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Mensajes de error (login) */
.alert {
  background: rgba(127, 29, 29, 0.95);
  border: 1px solid rgba(248, 113, 113, 0.95);
  color: #fee2e2;
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
}

/* Transiciones suaves en botones y enlaces */
button,
a {
  color: inherit;
  text-decoration: none;
  transition: all 0.15s ease-out;
}

a:visited {
  color: inherit;
}

a:hover {
  text-decoration: none;
}


/* Scrollbar discreto en escritorio */
@media (pointer: fine) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.8) transparent;
  }

  *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
  }

  *::-webkit-scrollbar-track {
    background: transparent;
  }

  *::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.7);
    border-radius: 999px;
  }
}

/* Estilo para el control de volumen */
input[type="range"] {
  accent-color: #e5e7eb;
}


.catalog-extra {
  display: none;
}



/* Botones uniformes */
button, .button {
  padding: 0.5rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  border: none;
  transition: background 0.3s ease, color 0.3s ease;
}

button:hover, .button:hover {
  opacity: 0.9;
}

.btn-default {
  background-color: #e5e7eb;
  color: #000;
}

.btn-primary {
  background-color: #2563eb;
  color: #fff;
}

.btn-info {
  background-color: #6b7280;
  color: #fff;
}


/* Controles del hilo musical estilo iOS */
.yp-player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* Botón moderno ON/OFF del hilo musical */
.yp-music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(212, 175, 55, 0.35);
  color: rgba(244, 244, 245, 0.98);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  user-select: none;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
}

.yp-music-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(212, 175, 55, 0.6);
}

.yp-music-toggle:active {
  transform: translateY(0);
}

.yp-music-toggle:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 2px;
}

.yp-music-toggle[data-state="on"] {
  background: rgba(212, 175, 55, 0.92);
  border-color: rgba(212, 175, 55, 0.95);
  color: #0b0b0b;
  box-shadow: 0 14px 32px rgba(212, 175, 55, 0.22);
}

.yp-music-toggle .yp-music-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.yp-music-toggle .yp-music-toggle__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.yp-music-toggle .yp-music-toggle__dot {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(244, 244, 245, 0.35);
  box-shadow: inset 0 0 0 2px rgba(244, 244, 245, 0.15);
}

.yp-music-toggle[data-state="on"] .yp-music-toggle__dot {
  background: rgba(2, 6, 23, 0.85);
  box-shadow: inset 0 0 0 2px rgba(2, 6, 23, 0.18);
}

@media (max-width: 640px) {
  .yp-music-toggle {
    width: 100%;
    justify-content: center;
  }
}

.yp-player-btn {
  background: #020617;
  color: #e5e7eb;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.45);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.yp-player-btn--primary {
  width: 64px;
  font-size: 1rem;
  font-weight: 600;
}

.yp-player-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/*
  Controles del reproductor (SVG inline)
  Nota: en SVG, propiedades como `stroke` no siempre se heredan desde el <svg>
  hacia sus hijos según el navegador.
  Si solo se aplican al <svg>, algunos iconos pueden quedar invisibles.
*/
.yp-player-icon .icon {
  width: 22px;
  height: 22px;
  display: block;
}

/* Aplicar trazo a los elementos internos (path/rect/line/etc.) para garantizar visibilidad */
.yp-player-icon .icon * {
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.yp-player-btn:hover {
  background: #0f172a;
  border-color: rgba(248, 250, 252, 0.75);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.6);
}

.yp-player-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.5);
}

@media (max-width: 640px) {
  .yp-player-btn {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }

  .yp-player-btn.yp-player-btn--primary {
    width: 56px;
  }
}

/* Reproductor grande fijo en el pie de página,
   centrado y sin desplazarse lateralmente */


/* Layout adaptable del contenido interno del reproductor:
   en móvil se apila en columna, en escritorio se muestra en tres columnas */
.radio-player-card .radio-layout {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .radio-player-card .radio-layout {
    display: grid;
    /* Tres columnas claramente separadas y equilibradas */
    grid-template-columns:
      minmax(320px, 420px)
      minmax(320px, 520px)
      minmax(220px, 1fr);

    /* En escritorio, alinear arriba para evitar “colisiones visuales”
       entre el texto de ayuda (izquierda) y las etiquetas de sliders (centro). */
    align-items: start;
    column-gap: 1.25rem;
  }
}
.radio-player-card {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(0.75rem + env(safe-area-inset-bottom));
  margin-left: auto;
  margin-right: auto;
  max-width: 82rem;
  width: calc(100% - 2rem);
  z-index: 40;

  /* Fondo más opaco para evitar “manchas” por el backdrop de las carátulas */
  background: radial-gradient(circle at top left,
      rgba(15, 23, 42, 0.92),
      rgba(2, 6, 23, 0.92));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 1.25rem;

  /* Altura más compacta (mejor UX) manteniendo estabilidad (CLS) */
  min-height: 120px;

  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.65);

  /* Mantener efecto, pero menos agresivo */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Forzar padding aunque Tailwind (p-6) cargue después */
  padding: 1rem !important;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
}

/* Reservar espacio inferior para que el contenido no quede tapado
   (dinámico: reproductor fijo + banner PWA) */
body {
  padding-bottom: calc(var(--yp-fixed-stack-h, 170px) + 1rem + env(safe-area-inset-bottom));
}

@media (max-width: 640px) {
  .radio-player-card {
    bottom: calc(0.5rem + env(safe-area-inset-bottom));
    width: calc(100% - 1rem);
    max-width: 82rem;
    padding-inline: 1rem;
    min-height: 156px;
}
}

/* Mejoras UX del reproductor (accesibilidad, compactación y estado) */
.yp-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.yp-slider-label {
  min-width: 78px;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.9);
}

@media (max-width: 640px) {
  .yp-slider-label {
    min-width: 68px;
    font-size: 0.8rem;
  }
}

.yp-range {
  accent-color: rgba(212, 175, 55, 0.95);
}

.yp-player-btn:focus-visible,
.yp-music-toggle:focus-visible,
.yp-range:focus-visible {
  outline: 2px solid rgba(252, 211, 77, 0.85);
  outline-offset: 3px;
}

.yp-player-btn--mini {
  width: 36px;
  height: 36px;
}

@media (max-width: 640px) {
  .yp-player-btn--mini {
    width: 34px;
    height: 34px;
  }
}

.yp-vol-value {
  min-width: 3.2rem;
  text-align: right;
}

.yp-nowrap {
  white-space: nowrap;
}

.radio-player-card .yp-radio-meta {
  min-width: 0;
}

/* Separación clara entre las 3 zonas del reproductor en escritorio */
@media (min-width: 768px) {
  /* La columna izquierda no debe quedar verticalmente centrada,
     para que el texto de ayuda no parezca “mezclarse” con los sliders. */
  .radio-player-card .yp-radio-meta {
    align-items: flex-start !important;
    padding-right: 1.25rem;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
  }

  /* Columna central: centrada visualmente y con separador */
  .radio-player-card .yp-radio-sliders {
    justify-self: center;
    width: 100%;
    max-width: 520px;
    padding-inline: 1.25rem;
    border-right: 1px solid rgba(148, 163, 184, 0.22);
  }

  /* Columna derecha: controles al final */
  .radio-player-card .yp-radio-controls {
    justify-self: end;
    padding-left: 1.25rem;
  }

  /* El texto de ayuda se mantiene compacto y legible */
  .radio-player-card .yp-now-hint {
    line-height: 1.25;
    max-width: 44ch;
  }
}

.radio-player-card .yp-now {
  min-width: 0;
  flex: 1;
}

.radio-player-card .yp-now-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.radio-player-card .yp-now-label {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.radio-player-card .yp-now-title {
  margin-top: 0.15rem;
  font-size: 0.98rem;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-player-card .yp-now-meta {
  margin-top: 0.15rem;
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.78);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-player-card .yp-now-hint {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: rgba(226, 232, 240, 0.6);
}

/* Acciones rápidas integradas en el reproductor (Escuchar / Obtener licencia / Ver página)
   - Más compactas para no “engordar” el reproductor fijo.
*/
.radio-player-card .yp-now-actions {
  justify-content: flex-start;
}

.radio-player-card .yp-now-actions .yp-pill-cta {
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  font-weight: 650;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.28);
}

@media (max-width: 640px) {
  .radio-player-card .yp-now-actions .yp-pill-cta {
    padding: 0.32rem 0.7rem;
    font-size: 0.8rem;
  }
}

.yp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(2, 6, 23, 0.6);
  color: rgba(226, 232, 240, 0.85);
}

.yp-pill[data-state="buffering"] {
  border-color: rgba(252, 211, 77, 0.5);
}



/* Mejoras UI del reproductor (2025) */
.radio-player-card .yp-radio-meta {
  min-width: 0;
}

.radio-player-card .yp-now {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.radio-player-card .yp-now-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.radio-player-card .yp-now-label {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.7);
}

.radio-player-card .yp-now-title {
  font-size: 0.98rem;
  font-weight: 650;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-player-card .yp-now-meta {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.75);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-player-card .yp-now-hint {
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.95);
  margin-top: 0.15rem;
}

.yp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.8);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.yp-pill[data-state="buffering"] {
  border-color: rgba(250, 204, 21, 0.55);
}

.yp-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.yp-slider-label {
  min-width: 84px;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.8);
}

@media (max-width: 640px) {
  .yp-slider-label {
    min-width: 72px;
  }
}

input[type=range].yp-range {
  accent-color: rgba(212, 175, 55, 0.95);
  margin: 0;
}

/* ==========================
   Firefox fix: sliders (progreso/volumen) demasiado grandes
   En Firefox, el tamaño por defecto del <input type="range"> es más alto que en Chromium,
   lo que provoca que el reproductor fijo se "descuadre".
   Aplicamos un estilo compacto específico para Firefox.
   ========================== */

@supports (-moz-appearance: none) {
  input[type=range].yp-range {
    -moz-appearance: none;
    appearance: none;
    height: 6px;
    background: transparent;
    padding: 0;
  }

  input[type=range].yp-range::-moz-range-track {
    height: 6px;
    background: rgba(148, 163, 184, 0.35);
    border: none;
    border-radius: 9999px;
  }

  input[type=range].yp-range::-moz-range-progress {
    height: 6px;
    background: rgba(212, 175, 55, 0.95);
    border-radius: 9999px;
  }

  input[type=range].yp-range::-moz-range-thumb {
    -moz-appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.95);
    border: 2px solid rgba(2, 6, 23, 0.85);
    box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  }

  /* Evitar borde adicional al enfocar el control en Firefox */
  input[type=range].yp-range::-moz-focus-outer {
    border: 0;
  }


  /* ==========================
     Firefox fix: botones del reproductor (mute/prev/play/next) sobredimensionados
     y controles recortados por overflow:hidden del contenedor .card.
     - Forzamos appearance:none para que Firefox respete width/height/padding.
     - Aseguramos anchura mínima suficiente en la columna de controles.
     ========================== */

  /* Botones: neutralizar apariencia nativa */
  button.yp-player-btn,
  button.yp-player-btn.yp-player-btn--primary,
  button.yp-player-btn.yp-player-btn--mini {
    -moz-appearance: none;
    appearance: none;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Asegurar tamaños consistentes (mini y normal) */
  .radio-player-card .yp-player-btn {
    width: 40px;
    height: 40px;
  }
  .radio-player-card .yp-player-btn--mini {
    width: 34px;
    height: 34px;
  }

  /* Firefox: botón principal más compacto para evitar recortes */
  .radio-player-card .yp-player-btn--primary {
    width: 56px;
    height: 56px;
  }

  /* Firefox: iconos ligeramente más pequeños */
  .radio-player-card .yp-player-icon .icon {
    width: 20px;
    height: 20px;
  }

  /* Firefox: un poco más de padding a la derecha para evitar cortes */
  .radio-player-card {
    padding-right: calc(1rem + 18px) !important;
  }

  /* Evitar que el grupo de controles se "encoga" y quede recortado */
  .radio-player-card .yp-radio-controls {
    min-width: 280px;
  }
  .radio-player-card .yp-player-controls {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    row-gap: 0.5rem;
    max-width: 240px;
  }

  /* En escritorio, garantizar suficiente espacio a la columna derecha */
  @media (min-width: 768px) {
    .radio-player-card .radio-layout {
      grid-template-columns:
        minmax(280px, 420px)
        minmax(300px, 520px)
        minmax(280px, 1fr);
    }
  }

  /* Sliders: normalizar appearance para que los pseudo-elementos se apliquen bien */
  input[type=range].yp-range {
    -moz-appearance: none;
    appearance: none;
  }

}

.yp-vol-value {
  min-width: 3.2rem;
  text-align: right;
}

.yp-player-btn:focus-visible,
.yp-music-toggle:focus-visible,
input[type=range].yp-range:focus-visible {
  outline: 2px solid rgba(250, 204, 21, 0.85);
  outline-offset: 3px;
}

.yp-player-btn--mini {
  width: 36px;
  height: 36px;
}

@media (max-width: 640px) {
  .yp-player-btn--mini {
    width: 34px;
    height: 34px;
  }
}
/* Tabla de licencias comerciales */
.licencias-table-wrapper {
  background: radial-gradient(circle at top left,
      rgba(148, 163, 184, 0.18),
      rgba(15, 23, 42, 0.98));
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 1.25rem;
  box-shadow:
    0 18px 45px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(15, 23, 42, 1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  /* En móvil, la tabla puede desbordar: habilitamos scroll horizontal */
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.licencias-table {
  border-collapse: collapse;
  width: 100%;
}

.licencias-table th,
.licencias-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.licencias-table thead th {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.licencias-table tbody tr:last-child td {
  border-bottom: none;
}

.licencias-table tbody tr:hover td {
  border-bottom-color: rgba(248, 250, 252, 0.6);
}

@media (max-width: 768px) {
  .licencias-table th,
  .licencias-table td {
    white-space: nowrap;
  }

  .licencias-table th:nth-child(5),
  .licencias-table td:nth-child(5) {
    white-space: normal;
  }
}



/* Idioma selector pills */
.lang-pill {
  border-radius: 9999px;
  padding: 0.35rem 0.95rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  border: 1px solid rgba(148, 163, 184, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.12s ease;
}

.hero-title {
  /* Responsive font size for main heading */
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.2;
}

.hero-subtitle {
  /* Responsive font size for hero subtitle */
  font-size: clamp(1rem, 3vw, 1.25rem);
  line-height: 1.4;
}

.now-playing {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.lang-pill:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.45);
  transform: translateY(-1px);
}

.lang-pill.is-active {
  background: #d4af37;
  color: #111827;
  border-color: rgba(212, 175, 55, 0.9);
}




/* Menú principal en una sola línea (nav y etiquetas sin romper palabras) */
@media (min-width: 900px) {
  .yp-main-nav {
    flex-wrap: nowrap !important;
  }
  .yp-main-nav a {
    white-space: nowrap;
  }
}


/* Ajuste adicional: hero y reproductor con efecto más translúcido */
#inicio .card {
  background: radial-gradient(circle at top left,
      rgba(148, 163, 184, 0.10),
      rgba(15, 23, 42, 0.55));
  border-color: rgba(148, 163, 184, 0.28);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* (v305) Eliminado override translúcido del reproductor para evitar fondo “sucio” */
/* Botón/enlace del acordeón "Cómo trabajamos con IA y dirección humana" */
.hero-detail-toggle {
  background: transparent !important;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  color: #f4f4f5; /* texto claro sobre fondo oscuro */
  font-weight: 500;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  appearance: none;
}

.hero-detail-toggle span {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hero-detail-toggle:hover {
  color: #ffffff;
  cursor: pointer;
}


/* Tamaño de carátulas del catálogo: igual al del hilo musical (w-48/h-48 en móvil; md:w-64/md:h-64) */
.yp-catalog-cover {
  width: min(12rem, 100%);
  aspect-ratio: 1 / 1;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 768px) {
  .yp-catalog-cover {
    width: min(16rem, 100%);
  }
}
.yp-catalog-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid responsivo del catálogo (evita una sola columna en PC) */
.catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 740px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1500px) {
  .catalog-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Tarjeta del catálogo: compacta y legible */
.catalog-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.catalog-card .catalog-cover-wrap {
  display: flex;
  justify-content: center;
}

.catalog-card .catalog-info {
  padding: 0;
}

.catalog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Botón tipo píldora (uniforme: Catálogo / Hilo musical / Encargos)
   - Asegura contraste y legibilidad del texto sobre fondo claro.
*/
.yp-pill-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #0b0b0b !important;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
  transform: translateY(0);
  cursor: pointer;
}

.yp-pill-cta:hover {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.32);
  transform: translateY(-1px);
}

.yp-pill-cta:active {
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.25);
}

.yp-pill-cta:focus-visible {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 2px;
}

/* ==========================
   Encargos: mejora de layout
   ========================== */

.custom-grid {
  margin-top: 1.5rem;
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 1024px) {
  .custom-grid {
    grid-template-columns: 1.25fr 0.9fr;
    align-items: start;
  }
}

.custom-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.custom-kpi {
  display: inline-flex;
  align-items: center;
  border-radius: 9999px;
  padding: 0.32rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 245, 0.96);
}

.custom-blocks {
  display: grid;
  gap: 1.1rem;
}

.custom-block-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
}

.custom-list {
  margin: 0.55rem 0 0 0;
  padding-left: 1.15rem;
}

.custom-list li {
  margin: 0.35rem 0;
  color: rgba(228, 228, 231, 0.92);
  line-height: 1.5;
}

.custom-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.yp-pill-cta.yp-pill-cta-lg {
  padding: 0.55rem 1.25rem;
  font-size: 0.95rem;
}

.yp-pill-cta.yp-pill-cta-secondary,
.yp-pill-cta.yp-pill-cta--secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95) !important;
  box-shadow: none;
}

.yp-pill-cta.yp-pill-cta-secondary:hover,
.yp-pill-cta.yp-pill-cta--secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}


.yp-pill-cta.yp-pill-cta--ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(244, 244, 245, 0.95) !important;
  box-shadow: none;
}

.yp-pill-cta.yp-pill-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.custom-note {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(161, 161, 170, 0.95);
}

.custom-steps {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.custom-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.custom-step-num {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.98);
  background: rgba(212, 175, 55, 0.10);
  border: 1px solid rgba(212, 175, 55, 0.28);
  flex: 0 0 auto;
}

.custom-step-body {
  color: rgba(228, 228, 231, 0.92);
  line-height: 1.5;
}

.custom-faq-card {
  margin-top: 1.5rem;
}

.custom-faq {
  margin-top: 1rem;
}

.custom-faq-item {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 1rem;
  padding: 0.85rem 1rem;
}

.custom-faq-item + .custom-faq-item {
  margin-top: 0.75rem;
}

.custom-faq-q {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.custom-faq-q::-webkit-details-marker {
  display: none;
}

.custom-faq-item > summary::after {
  content: '▾';
  color: rgba(212, 175, 55, 0.98);
}

.custom-faq-item[open] > summary::after {
  content: '▴';
}

.custom-faq-answer {
  margin-top: 0.55rem;
  color: rgba(228, 228, 231, 0.90);
  font-size: 0.93rem;
  line-height: 1.55;
}


/* --- Mejoras responsive móvil (v257) ---
   Objetivo: mejorar UX en móvil sin afectar escritorio. */

/*
  Nota: Tailwind (tailwind.css) se carga DESPUÉS de styles.css y puede sobrescribir
  'display:none' por el uso de clases utilitarias como 'flex'.
  Por eso aquí usamos !important para asegurar que en escritorio no aparezca el menú móvil.
*/
.yp-nav-mobile { display: none !important; }
.yp-nav-desktop { display: flex !important; }

/*
  Importante: el layout “móvil” solo debe activarse en dispositivos táctiles.
  En PCs/laptops (ratón/trackpad), incluso con zoom o ventanas estrechas,
  mantenemos el menú de escritorio para no degradar la experiencia.
*/
@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  .yp-nav-desktop { display: none !important; }
  .yp-nav-mobile { display: flex !important; }

  /* Barra superior optimizada en móvil (sin afectar escritorio) */
  .yp-nav-bar { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; min-height: 0; }

  /* Logo con tamaño táctil consistente */
  .yp-nav-logo {
    width: var(--yp-logo-size-mobile) !important;
    height: var(--yp-logo-size-mobile) !important;
    max-width: var(--yp-logo-size-mobile) !important;
    flex: 0 0 auto;
  }

  /* Ajuste de scroll-margin del hero para anclas */
  #inicio,
  #radio,
  #tienda,
  #licencias,
  #encargos,
  #encargos-faq,
  #contacto {
    scroll-margin-top: 150px !important;
  }

  /* Menos “vacío” vertical en el hero */
  .yp-hero-inner { padding-top: 2.5rem !important; padding-bottom: 2.5rem !important; }
  .yp-hero-badge { letter-spacing: 0.12em !important; }

  /* iOS / Android: evita el zoom automático al enfocar campos (necesita >=16px) */
  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}



/* Menú móvil visible (opciones siempre a la vista) */
.yp-mobile-inline-menu { display: none; }

@media (max-width: 1024px) and (hover: none) and (pointer: coarse) {
  /* En móvil, las opciones del menú se muestran SIEMPRE (sin depender del botón) */
  .yp-mobile-inline-menu {
    display: block !important;
    width: 100%;
    background: rgba(2, 6, 23, 0.98);
    border-top: 1px solid rgba(148, 163, 184, 0.18);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    padding: 4px 0; /* altura mínima (más compacta) */
  }

  /* Una sola fila, con scroll horizontal si hace falta */
  .yp-mobile-inline-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .yp-mobile-inline-inner::-webkit-scrollbar { display: none; }

  .yp-inline-links {
    display: flex;
    flex-direction: row;
    gap: 6px;
    flex: 0 0 auto;
  }

  .yp-inline-link {
    color: #111827 !important;
    text-decoration: none;
    padding: 7px 10px;
    border-radius: 9999px;
    background: rgba(212, 175, 55, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.85);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.01em;
    white-space: nowrap;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    line-height: 1.05;
  }

  .yp-inline-link:hover {
    background: rgba(212, 175, 55, 1);
    border-color: rgba(212, 175, 55, 1);
  }

  /* Quitamos separadores y el texto "Idioma" para ahorrar altura */
  .yp-inline-divider { display: none !important; }

  .yp-inline-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    padding-right: 2px;
  }

  .yp-inline-lang > div:first-child { display: none !important; }

  /* Ajuste fino del contenedor dentro del menú */
  .yp-mobile-inline-menu .container { padding-inline: 1rem; }

  /* El botón hamburguesa no se usa: las opciones ya están visibles */
  .yp-mobile-menu-btn { display: none !important; }
}

/* Ajuste extra para móviles muy estrechos */
@media (max-width: 380px) and (hover: none) and (pointer: coarse) {
  :root{ --yp-logo-size-mobile: 40px; }
  .yp-inline-link {
    font-size: 12px;
    padding: 6px 9px;
    min-height: 32px;
  }
  .lang-pill { padding: 0.28rem 0.65rem; }
}

@media (min-width: 1025px) {
  .yp-mobile-inline-menu { display: none !important; }
}


/* Botón hamburguesa móvil */
.yp-mobile-menu-btn {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 1.25rem;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.45);
}

.yp-mobile-menu-btn:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 250, 252, 0.35);
}

/* Drawer móvil */
.yp-drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.6);
  display: none;
}

.yp-drawer.is-open { display: block; }

@media (min-width: 1025px) {
  .yp-drawer { display: none !important; }
}

.yp-drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(340px, 92vw);
  background: rgba(2, 6, 23, 0.98);
  border-left: 1px solid rgba(148, 163, 184, 0.25);
  padding: 18px 16px;
  box-shadow: -18px 0 45px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}

.yp-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.yp-drawer-close {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.yp-drawer-close:hover {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(248, 250, 252, 0.35);
}

.yp-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 4px;
}

.yp-drawer-link {
  color: #d4af37;
  text-decoration: none;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 18px;
}

.yp-drawer-link:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(248, 250, 252, 0.25);
}

.yp-drawer-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 12px 0;
}

.yp-drawer-lang { padding-bottom: 10px; }

/* Bloqueo de scroll cuando el drawer está abierto */
.yp-no-scroll { overflow: hidden; }

/* Ajuste de pills en pantallas muy estrechas */
@media (max-width: 420px) {
  .lang-pill { padding: 0.30rem 0.75rem; }
}


/* v268: highlight a track when coming from a shared link */
.yp-highlight {
  outline: 2px solid rgba(212, 175, 55, 0.95);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.18);
  border-radius: 24px;
}


/* ==========================
   EPK / ABOUT (black + gold)
   ========================== */

/* Tailwind build used in this project doesn't include bg-black (only bg-black/xx).
   Keep this utility for compatibility in standalone pages. */
.bg-black { background-color: #000; }

.yp-epk {
  --yp-gold: #d4af37;
  --yp-gold-soft: rgba(212, 175, 55, 0.22);
  --yp-text: rgba(255, 252, 245, 0.92);
  --yp-muted: rgba(255, 252, 245, 0.72);
  --yp-dim: rgba(255, 252, 245, 0.54);
  --yp-panel: rgba(8, 8, 10, 0.72);
  --yp-panel-2: rgba(0, 0, 0, 0.92);

  background:
    radial-gradient(1200px circle at 16% -12%, rgba(212, 175, 55, 0.12), transparent 56%),
    radial-gradient(900px circle at 92% 8%, rgba(212, 175, 55, 0.07), transparent 52%),
    radial-gradient(700px circle at 50% 110%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #050506 0%, #000000 62%, #000000 100%);
  color: var(--yp-text);
}

.yp-epk .yp-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(0, 0, 0, 0.56);
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
}

.yp-epk .yp-header a { text-decoration: none; }

.yp-epk .yp-header nav a {
  color: var(--yp-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.yp-epk .yp-header nav a:hover { color: var(--yp-gold); }

.yp-epk main.container {
  max-width: 56rem;
}

.yp-epk h1,
.yp-epk h2 {
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  color: var(--yp-gold);
  letter-spacing: 0.03em;
  text-shadow: 0 0 18px rgba(212, 175, 55, 0.10);
}

.yp-epk p,
.yp-epk li {
  color: var(--yp-muted);
}

.yp-epk .text-zinc-400,
.yp-epk .text-zinc-500 { color: var(--yp-dim) !important; }

.yp-epk .text-zinc-600 { color: rgba(255, 252, 245, 0.32) !important; }

.yp-epk a {
  color: var(--yp-gold);
  text-decoration-color: rgba(212, 175, 55, 0.55);
  text-underline-offset: 4px;
}

.yp-epk a:hover {
  color: rgba(255, 255, 255, 0.96);
  text-decoration-color: rgba(255, 255, 255, 0.55);
}

.yp-epk .card {
  position: relative;
  background:
    linear-gradient(135deg, var(--yp-panel) 0%, rgba(0, 0, 0, 0.94) 65%, var(--yp-panel-2) 100%);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: 1.6rem;
  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.62),
    0 0 0 1px rgba(212, 175, 55, 0.06);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  overflow: hidden;
}

.yp-epk .card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    radial-gradient(900px circle at 18% 0%, rgba(212, 175, 55, 0.14), transparent 58%),
    radial-gradient(700px circle at 92% 18%, rgba(212, 175, 55, 0.08), transparent 62%);
  opacity: 0.9;
  pointer-events: none;
}

.yp-epk .card > * { position: relative; }

.yp-epk .card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.28);
  box-shadow:
    0 28px 82px rgba(0, 0, 0, 0.70),
    0 0 0 1px rgba(212, 175, 55, 0.10);
}

.yp-epk li::marker { color: rgba(212, 175, 55, 0.90); }

/* ==========================
   Ajustes premium (dorado clásico)
   ========================== */

:root{
  --yp-gold: #d4af37;
  --yp-gold-soft: rgba(212,175,55,0.22);
  --yp-gold-strong: rgba(212,175,55,0.95);
}

/* Override del fondo Tailwind (gradient) en páginas principales */
body {
  background:
    radial-gradient(1200px circle at 18% -12%, rgba(212,175,55,0.10), transparent 58%),
    radial-gradient(900px circle at 92% 10%, rgba(212,175,55,0.06), transparent 52%),
    radial-gradient(700px circle at 50% 110%, rgba(255, 255, 255, 0.05), transparent 55%),
    linear-gradient(180deg, #060607 0%, #000000 70%, #000000 100%) !important;
  color: var(--yp-text);
}

/* Botones del modal de compra/tienda */
.yp-btn-gold {
  background: rgba(212,175,55,0.92);
  border: 1px solid rgba(212,175,55,0.85);
  color: #0b0b0b;
  box-shadow: 0 14px 32px rgba(212,175,55,0.18);
}
.yp-btn-gold:hover {
  background: rgba(212,175,55,0.98);
  box-shadow: 0 18px 38px rgba(212,175,55,0.22);
  transform: translateY(-1px);
}
.yp-btn-gold:active { transform: translateY(0); }

.yp-btn-ghost {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(212,175,55,0.35);
  color: rgba(244,244,245,0.96);
}
.yp-btn-ghost:hover { background: rgba(255,255,255,0.10); border-color: rgba(212,175,55,0.55); }

/* ==========================
   Mood bar (filtros rápidos)
   ========================== */

.yp-mood-bar {
  margin-top: 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.yp-mood-bar-label {
  font-size: 0.72rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(228,228,231,0.74);
}

.yp-mood-bar-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

/* Nota: los botones de mood se renderizan como .yp-chip desde JS */
.yp-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border-radius: 9999px;
  padding: 0.50rem 0.90rem;
  font-size: 0.90rem;
  line-height: 1;
  font-weight: 600;
  border: 1px solid rgba(212,175,55,0.40);
  background: rgba(2,6,23,0.45);
  color: rgba(244,244,245,0.94);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.yp-chip .yp-chip-emoji { font-size: 1.02rem; line-height: 1; }

.yp-chip:hover {
  transform: translateY(-1px);
  background: rgba(2,6,23,0.65);
  border-color: rgba(212,175,55,0.62);
}

/* Estado activo (JS aplica .is-active y aria-pressed) */
.yp-chip.is-active,
.yp-chip[aria-pressed="true"] {
  background: rgba(212,175,55,0.18);
  border-color: rgba(212,175,55,0.88);
  color: rgba(255,247,230,0.98);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.14);
}

.yp-chip:focus-visible {
  outline: 2px solid rgba(212,175,55,0.95);
  outline-offset: 3px;
}



/* Hard override: asegurar legibilidad de los chips de estado de ánimo
   (evita que estilos genéricos de <button> o del navegador anulen fondo/colores) */
.yp-mood-bar .yp-chip {
  background: rgba(10,10,11,0.72) !important;
  color: rgba(255,247,230,0.96) !important;
  -webkit-text-fill-color: currentColor !important;
  border: 1px solid rgba(212,175,55,0.58) !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.22) inset;
}

.yp-mood-bar .yp-chip:hover {
  background: rgba(10,10,11,0.86) !important;
  border-color: rgba(212,175,55,0.78) !important;
}

.yp-mood-bar .yp-chip.is-active,
.yp-mood-bar .yp-chip[aria-pressed="true"] {
  background: rgba(212,175,55,0.22) !important;
  color: rgba(255,247,230,0.98) !important;
  border-color: rgba(212,175,55,0.92) !important;
}

@media (max-width: 640px) {
  .yp-mood-bar { padding: 0.85rem 0.85rem; }
  .yp-chip { width: 100%; justify-content: center; }
}

/* ==========================
   Use cases (pensado para)
   ========================== */

.yp-usecases {
  padding: 2.1rem 0;
}

.yp-section-title {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 750;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.96);
}

.yp-section-subtitle {
  margin: 0.55rem 0 0 0;
  max-width: 60rem;
  color: rgba(228, 228, 231, 0.86);
  line-height: 1.55;
}

.yp-usecases-head {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
}

.yp-usecases-head__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .yp-usecases-head {
    flex-direction: row;
    align-items: flex-end;
  }
}

/* Tabs */
.yp-usecases-tabs {
  margin-top: 1.05rem;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.yp-tab {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: rgba(244,244,245,0.95);
  border-radius: 9999px;
  padding: 0.38rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  cursor: pointer;
  user-select: none;
}

.yp-tab:hover {
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}

.yp-tab:focus-visible {
  outline: 2px solid rgba(212,175,55,0.95);
  outline-offset: 2px;
}

.yp-tab.is-active {
  background: rgba(212,175,55,0.16);
  border-color: rgba(212,175,55,0.62);
  box-shadow: 0 0 0 4px rgba(212,175,55,0.12);
}

.yp-usecases-panels {
  margin-top: 0.9rem;
}

/* Grid compacta */
.yp-usecases-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .yp-usecases-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .yp-usecases-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Card compacta (no “bloque gigante”) */
.yp-usecase-card {
  padding: 0.9rem 0.95rem;
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  align-items: flex-start;
  min-height: auto;
}

.yp-usecase-card.card:hover {
  transform: translateY(-2px);
}

.yp-usecase-emoji {
  font-size: 1.05rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(212,175,55,0.12);
  border: 1px solid rgba(212,175,55,0.26);
  flex: 0 0 auto;
}

.yp-usecase-text {
  min-width: 0;
}

.yp-usecase-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 740;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.96);
}

.yp-usecase-desc {
  margin: 0.25rem 0 0 0;
  color: rgba(228,228,231,0.84);
  line-height: 1.45;
  font-size: 0.82rem;

  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* ==========================
   Portadas con overlay (acciones)
   ========================== */

.yp-cover-square {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

.yp-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.18s ease;
}

.yp-cover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.0) 40%, rgba(0,0,0,0.72) 100%);
  transition: opacity 0.18s ease;
}

.yp-cover-square:hover .yp-cover-overlay,
.yp-cover-square:focus-within .yp-cover-overlay {
  opacity: 1;
  pointer-events: auto;
}

.yp-cover-square:hover .yp-cover-img {
  transform: scale(1.04);
}

.yp-cover-action {
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(2,6,23,0.70);
  border: 1px solid rgba(148,163,184,0.38);
  color: rgba(244,244,245,0.96);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,0.35);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.yp-cover-action:hover {
  transform: translateY(-1px);
  background: rgba(2,6,23,0.85);
  border-color: rgba(244,244,245,0.35);
}

.yp-cover-action:active { transform: translateY(0); }

.yp-cover-action--play {
  border-color: rgba(212,175,55,0.45);
}

.yp-cover-square[data-playing="1"] .yp-cover-action--play {
  background: rgba(212,175,55,0.92);
  border-color: rgba(212,175,55,0.92);
  color: #0b0b0b;
}

.yp-cover-action:focus-visible {
  outline: 2px solid rgba(212,175,55,0.95);
  outline-offset: 3px;
}

/* ==========================
   Reproductor fijo: detalle premium
   ========================== */

.radio-player-card {
  border-color: rgba(212,175,55,0.22);
}

.radio-player-card .now-playing {
  color: rgba(255,255,255,0.92);
}

/* ==========================
   Tarjetas de canciones (nuevo layout)
   ========================== */

.yp-track-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.yp-track-info {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.05rem 0.15rem 0.15rem;
}

.yp-track-title {
  font-size: 1.06rem;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1.2;
  color: rgba(255,255,255,0.96);
}

.yp-track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.yp-track-year {
  color: rgba(148,163,184,0.75);
  font-size: 0.75rem;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.yp-chip-small {
  background: rgba(255,255,255,0.04);
  border-color: rgba(148,163,184,0.30);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.72rem;
}

.yp-track-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.yp-track-desc {
  margin: 0;
  color: rgba(228,228,231,0.86);
  font-size: 0.93rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.yp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.yp-tag-btn {
  background: rgba(255,255,255,0.03);
  border-color: rgba(148,163,184,0.22);
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 0.78rem;
  padding: 0.26rem 0.62rem;
}

.yp-tag-btn:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(244,244,245,0.26);
}

.yp-track-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.1rem;
}

.yp-link-muted {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 1.05rem;
  border-radius: 9999px;
  border: 1px solid rgba(148,163,184,0.34);
  background: rgba(255,255,255,0.04);
  color: rgba(244,244,245,0.88);
  font-size: 0.86rem;
  font-weight: 650;
}

.yp-link-muted:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(244,244,245,0.28);
  transform: translateY(-1px);
}

.yp-link-muted:focus-visible {
  outline: 2px solid rgba(212,175,55,0.95);
  outline-offset: 3px;
}


/* --- UI feedback: spinner when starting playback --- */
.yp-player-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.yp-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 9999px;
  display: none;
  animation: yp-spin .8s linear infinite;
}
.yp-player-btn.is-loading .yp-spinner {
  display: inline-block;
}
.yp-player-btn.is-loading .yp-player-icon {
  opacity: .35;
}
@keyframes yp-spin {
  to { transform: rotate(360deg); }
}

/* === v298 (refactor integral): utilidades CSP-safe y accesibilidad === */
.yp-scroll-margin-top { scroll-margin-top: 150px; }
.yp-text-gold { color: #facc15; }
.yp-nowrap { white-space: nowrap; }

/* Overlays con z-index alto (evita solapes con header/player) */
.yp-modal-overlay { position: fixed; inset: 0; z-index: 999998; }
.yp-purchase-overlay { position: fixed; inset: 0; z-index: 999999; }

/* ==========================
   Video modal (v352)
   ========================== */
.yp-video-overlay{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.yp-video-overlay.is-open{ display: flex; }
.yp-video-panel{
  width: min(980px, 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 22px;
  padding: 18px;
  position: relative;
  box-shadow: 0 30px 90px rgba(0,0,0,.65);
}
.yp-video-title{
  margin: 0;
  font-size: 16px;
  color: rgba(255,255,255,.92);
  padding-right: 170px;
}
.yp-video-close{
  position: absolute;
  top: 12px;
  right: 12px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.yp-video-cast{
  position: absolute;
  top: 12px;
  right: 96px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.88);
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.yp-video-cast:hover{ opacity: .92; }
.yp-cast-icon{ width: 16px; height: 16px; display: inline-block; }
.yp-video-close:hover{ opacity: .92; }
.yp-video-el{
  width: 100%;
  margin-top: 14px;
  border-radius: 18px;
  background: #000;
  max-height: 70vh;
}


/* Error de carga sin estilos inline */
.yp-fatal-error {
  padding: 1rem;
  max-width: 40rem;
  margin: 2rem auto;
  color: #fff;
}

/* Mejora de contraste del footer */
footer { background: rgba(255,255,255,0.03); }
footer.text-zinc-400 { color: rgba(255,255,255,0.78); }
footer.text-zinc-400 a { color: rgba(250,204,21,0.95); }
footer.text-zinc-400 a:hover { color: rgba(250,204,21,1); }

/* ==============================
   PWA: banner de instalación (v343)
   CSP friendly: sin estilos inline
   ============================== */

.yp-pwa-hidden { display: none !important; }

#yp-pwa-banner {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  /* Se apila por encima del reproductor fijo */
  bottom: calc(12px + var(--yp-fixed-player-h, 0px) + env(safe-area-inset-bottom));
  z-index: 999997;
}

#yp-pwa-banner .yp-pwa-card {
  max-width: 680px;
  margin: 0 auto;
  background: rgba(0,0,0,0.86);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 16px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

#yp-pwa-banner .yp-pwa-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

#yp-pwa-banner .yp-pwa-logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}

#yp-pwa-banner .yp-pwa-col {
  flex: 1 1 auto;
  min-width: 0;
}

#yp-pwa-banner .yp-pwa-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

#yp-pwa-banner .yp-pwa-body {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255,255,255,0.78);
  line-height: 1.35;
}

#yp-pwa-banner .yp-pwa-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.yp-pwa-btn {
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  line-height: 1.1;
  white-space: nowrap;
}

.yp-pwa-btn:hover {
  background: rgba(255,255,255,0.10);
}

.yp-pwa-btn.yp-primary {
  background: rgba(250,204,21,0.92);
  border-color: rgba(250,204,21,0.92);
  color: #000;
}

.yp-pwa-btn.yp-primary:hover {
  background: rgba(250,204,21,1);
}

.yp-pwa-btn.yp-ghost {
  background: transparent;
}

/* Modal */
#yp-pwa-modal {
  position: fixed;
  inset: 0;
  z-index: 999998;
  background: rgba(0,0,0,0.78);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(18px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left));
}

#yp-pwa-modal .yp-pwa-modal-card {
  width: 100%;
  max-width: 680px;
  background: rgba(12,12,14,0.98);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 18px;
  padding: 16px;
}

#yp-pwa-modal .yp-pwa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#yp-pwa-modal .yp-pwa-modal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

#yp-pwa-modal .yp-pwa-modal-brand img {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  object-fit: cover;
}

#yp-pwa-modal .yp-pwa-modal-title {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
}

#yp-pwa-modal .yp-pwa-modal-text {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.5;
  white-space: pre-line;
}

#yp-pwa-modal .yp-pwa-modal-close {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  color: #fff;
  cursor: pointer;
  font-size: 18px;
}

#yp-pwa-modal .yp-pwa-modal-close:hover {
  background: rgba(255,255,255,0.10);
}

#yp-pwa-modal .yp-pwa-modal-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}


/* ==============================
   Header estático: responsive hardening (v344)
   - Evita desbordes en 320–390px
   ============================== */
@media (max-width: 640px) {
  .yp-site-header .yp-nav-bar {
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .yp-site-header .yp-nav-bar > a {
    flex: 1 1 auto;
    min-width: 0;
  }
  .yp-site-header .yp-nav-bar .leading-tight {
    min-width: 0;
  }
  .yp-site-header .yp-nav-bar .leading-tight > div {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .yp-site-header .yp-nav-bar > div {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
    padding-bottom: 2px;
  }
  .yp-site-header .yp-nav-bar > div::-webkit-scrollbar { display: none; }
  .yp-site-header .yp-nav-bar .yp-pill { flex: 0 0 auto; }
}


/* ==============================
   Móvil en horizontal (altura reducida)
   - Evita que el reproductor fijo “se coma” la pantalla
   ============================== */
@media (max-width: 767px) and (max-height: 420px) and (hover: none) and (pointer: coarse) {
  .radio-player-card {
    min-height: 124px;
    padding: 0.75rem !important;
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom)) !important;
  }

  .radio-player-card .radio-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    align-items: start;
  }

  .radio-player-card .yp-radio-meta {
    align-items: center !important;
    border-right: none;
    padding-right: 0;
  }

  .radio-player-card .yp-radio-sliders {
    max-width: none;
    padding-inline: 0;
    border-right: none;
  }

  .radio-player-card .yp-radio-controls {
    justify-content: flex-end;
    padding-left: 0;
  }

  /* Reduce texto de ayuda para ganar altura */
  .radio-player-card .yp-now-hint {
    display: none;
  }
}

/* =============================
   QA Responsive Overlay (local/opt-in)
   ============================= */

#yp-qa-responsive {
  position: fixed;
  left: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 2147483647;
  width: min(360px, calc(100vw - 24px));
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: #f4f4f5;
  background: rgba(24, 24, 27, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.45);
  overflow: hidden;
}

#yp-qa-responsive .yp-qa-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#yp-qa-responsive .yp-qa-title {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 12px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.88);
}

#yp-qa-responsive .yp-qa-actions {
  display: flex;
  gap: 6px;
}

#yp-qa-responsive .yp-qa-body {
  padding: 10px 12px 12px 12px;
}

#yp-qa-responsive .yp-qa-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 4px 0;
}

#yp-qa-responsive .yp-qa-k {
  font-size: 12px;
  color: rgba(255,255,255,0.65);
}

#yp-qa-responsive .yp-qa-v {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}

#yp-qa-responsive .yp-qa-ctl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}

#yp-qa-responsive .yp-qa-btn {
  appearance: none;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

#yp-qa-responsive .yp-qa-btn:hover {
  background: rgba(255,255,255,0.10);
}

#yp-qa-responsive .yp-qa-btn:active {
  transform: translateY(1px);
}

#yp-qa-responsive .yp-qa-btn-wide {
  width: 100%;
}

#yp-qa-responsive .yp-qa-note {
  margin-top: 10px;
  font-size: 11px;
  color: rgba(255,255,255,0.55);
}

#yp-qa-responsive .yp-qa-note code {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
}

#yp-qa-responsive .yp-qa-offenders {
  margin-top: 10px;
}

#yp-qa-responsive .yp-qa-off-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: rgba(255,255,255,0.62);
  margin-bottom: 8px;
}

#yp-qa-responsive .yp-qa-off-list {
  display: grid;
  gap: 6px;
  margin-bottom: 8px;
}

#yp-qa-responsive .yp-qa-off {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  text-align: left;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
  cursor: pointer;
}

#yp-qa-responsive .yp-qa-off:hover {
  background: rgba(0,0,0,0.26);
}

#yp-qa-responsive .yp-qa-n {
  font-size: 12px;
  color: rgba(255,255,255,0.70);
}

#yp-qa-responsive .yp-qa-sel {
  font-size: 11px;
  color: rgba(255,255,255,0.90);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#yp-qa-responsive .yp-qa-ex {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
}

#yp-qa-responsive.yp-qa-min .yp-qa-body {
  display: none;
}

body.yp-qa-highlight [data-yp-qa-offender="1"] {
  outline: 2px solid rgba(255, 0, 0, 0.85);
  outline-offset: 2px;
}

body.yp-qa-highlight-tap [data-yp-qa-tap="1"] {
  outline: 2px solid rgba(0, 160, 255, 0.90);
  outline-offset: 2px;
}

.yp-qa-flash {
  animation: ypQaFlash 1.2s ease-out 1;
}

@keyframes ypQaFlash {
  0%   { box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.75); }
  100% { box-shadow: none; }
}

/* ===== Letras sincronizadas (overlay) ===== */
.yp-lyrics-stage {
  position: relative;
}

.yp-lyrics-cover {
  transform: scale(1.02);
  filter: brightness(0.70);
}

.yp-lyrics-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
  background: linear-gradient(to top, rgba(0,0,0,0.86), rgba(0,0,0,0.15) 55%, rgba(0,0,0,0.86));
  backdrop-filter: blur(2px);
}

.yp-lyrics-empty {
  font-size: 0.95rem;
  line-height: 1.25;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
  padding: 0.25rem 0.4rem;
  border-radius: 0.6rem;
  background: rgba(0,0,0,0.25);
}

.yp-lyrics-lines {
  max-height: 100%;
  overflow: auto;
  padding-right: 0.25rem;
  margin-top: 0.5rem;
  scrollbar-width: thin;
}

.yp-lyrics-lines::-webkit-scrollbar {
  width: 10px;
}
.yp-lyrics-lines::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}
.yp-lyrics-lines::-webkit-scrollbar-track {
  background: transparent;
}

.yp-lyrics-line {
  position: relative;
  padding: 0.12rem 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(248,250,252,0.72);
  text-shadow: 0 2px 14px rgba(0,0,0,0.9);
  white-space: pre-wrap;
}

.yp-lyrics-line.is-active {
  color: rgba(255,255,255,1);
  font-weight: 650;
  background: rgba(0,0,0,0.35);
  border-radius: 0.6rem;
  padding: 0.22rem 0.4rem;
  margin: 0.1rem -0.4rem;
  border-left: 3px solid rgba(255,255,255,0.65);
}

/* Karaoke por palabra (Enhanced LRC) */
.yp-lyrics-word {
  opacity: 0.78;
}
.yp-lyrics-line.is-active .yp-lyrics-word {
  opacity: 0.92;
}
.yp-lyrics-word.is-word-sung {
  opacity: 1;
}
.yp-lyrics-word.is-word-active {
  opacity: 1;
  font-weight: 800;
}


/* Barra compacta dentro del reproductor fijo */
.yp-lyrics-bar {
  margin-top: 1rem;
  position: relative;
  height: 92px;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.22);
  background: rgba(255,255,255,0.04);
}

.yp-lyrics-hidden {
  display: none;
}

.yp-lyrics-bar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(14px) brightness(0.55) saturate(1.05);
  transform: scale(1.12);
}

.yp-lyrics-bar-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.18rem;
  padding: 0.55rem 0.85rem;
  background: linear-gradient(to right, rgba(0,0,0,0.74), rgba(0,0,0,0.22), rgba(0,0,0,0.74));
}

.yp-lyrics-bar-prev,
.yp-lyrics-bar-next {
  font-size: 0.75rem;
  line-height: 1.1;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.yp-lyrics-bar-current {
  font-size: 1rem;
  line-height: 1.25;
  color: rgba(255,255,255,1);
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(0,0,0,0.85);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

@media (max-width: 640px) {
  .yp-lyrics-bar { height: 86px; }
  .yp-lyrics-line { font-size: 0.9rem; }
  .yp-lyrics-overlay { padding: 0.6rem; }
}
