.rp-player {
  /* Paleta: cambiar aquí y se actualiza todo el reproductor */
  --rp-bg: #667590;                 /* fondo */
  --rp-line: #f2d74e;            /* contornos (amarillo) */
  --rp-fg: #fff;                 /* textos e íconos */
  --rp-dim: rgba(255, 255, 255, 0.62);



  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--rp-bg);
  color: var(--rp-fg);
  border-top: 1px solid var(--rp-line);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  font-family: var(--rp-mono);
  font-size: 30px;
  line-height: 1.3;
}

.rp-player *,
.rp-player *::before,
.rp-player *::after { box-sizing: border-box; }

.rp-player button { font: inherit; color: inherit; }
.rp-player button:focus-visible,
.rp-player .rp-range:focus-visible {
  outline: 2px solid var(--rp-fg);
  outline-offset: 3px;
}

/* ---------- Barra compacta (siempre visible) ---------- */
.rp-bar {
  display: grid;
  grid-template-columns: minmax(180px, 300px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  padding: 14px 20px 14px 28px;
}

.rp-brand { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rp-brand-name { text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.rp-brand-sub { color: var(--rp-dim); }

.rp-title-wrap { min-width: 0; overflow: hidden; white-space: nowrap; }
.rp-title {
  display: inline-block;
  font-family: var(--rp-display);
  font-size: clamp(18px, 2vw, 26px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  will-change: transform;
}
.rp-title.is-scrolling {
  animation: rp-slide var(--rp-dur, 12s) ease-in-out infinite alternate;
}
@keyframes rp-slide {
  0%, 12%   { transform: translateX(0); }
  88%, 100% { transform: translateX(var(--rp-shift, 0px)); }
}

.rp-play {
  display: grid;
  place-items: center;
  width: 55px;
  height: 50px;
  padding: 0;
  border: none;
  background: var(--rp-fg);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.rp-play:hover { background: --rp-fg; color: var(--rp-bg); }
.rp-play svg {
  width: 45px;
  height: 45px;
  fill: var(--rp-bg);
  color:var(--rp-bg);
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}

/* Un solo botón alterna entre play y pausa */
.rp-icon-pause { display: none; }
.rp-player.is-playing .rp-icon-play { display: none; }
.rp-player.is-playing .rp-icon-pause { display: block; }

.rp-expand {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.rp-expand::before { content: '+'; }
.rp-player.is-open .rp-expand::before { content: '–'; }

/* ---------- Panel desplegable ---------- */
.rp-panel {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;                 /* fuera del orden de tabulación cuando está cerrado */
  transition: grid-template-rows 0.25s ease, visibility 0s linear 0.25s;
}
.rp-player.is-open .rp-panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.25s ease, visibility 0s;
}
.rp-panel-body { min-height: 0; overflow: hidden; }
.rp-panel-content {
  padding: 14px 28px 20px;
  border-top: 1px solid var(--rp-line);
}

.rp-row--top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rp-row--bottom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}

.rp-ctrl { display: flex; align-items: center; gap: 6px; }
.rp-ib {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.75;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.rp-ib:hover { opacity: 1; }
.rp-ib svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.rp-dot {
  width: 8px;
  height: 8px;
  border: 1px solid var(--rp-line);
  border-radius: 50%;
}
.rp-player.is-playing .rp-dot { background: var(--rp-fg); border-color: var(--rp-fg); }

.rp-count { color: var(--rp-dim); text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap; }
.rp-time { font-variant-numeric: tabular-nums; white-space: nowrap; }

.rp-volume { display: flex; align-items: center; gap: 12px; width: 220px; }
.rp-vol-label { text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Sliders: pista con contorno amarillo y relleno blanco ---------- */
.rp-range {
  --fill: 0%;
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.rp-range::-webkit-slider-runnable-track {
  box-sizing: border-box;
  height: 10px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: linear-gradient(to right, var(--rp-fg) var(--fill), transparent var(--fill));
}
.rp-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin-top: -5px;
  border: 1px solid var(--rp-line);
  border-radius: 50%;
  background: var(--rp-fg);
}
.rp-range::-moz-range-track {
  box-sizing: border-box;
  height: 10px;
  border: 1px solid var(--rp-line);
  border-radius: 10px;
  background: transparent;
}
.rp-range::-moz-range-progress { height: 10px; border-radius: 10px; background: var(--rp-fg); }
.rp-range::-moz-range-thumb {
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  border: 1px solid var(--rp-line);
  border-radius: 50%;
  background: var(--rp-fg);
}

/* ---------- Estados ---------- */
.rp-player.is-error .rp-title { color: var(--rp-line); }
.rp-player.is-empty .rp-play,
.rp-player.is-empty .rp-ib,
.rp-player.is-empty .rp-range:not([data-rp="volume"]) { opacity: 0.35; pointer-events: none; }
.rp-player.is-empty .rp-count { opacity: 0.5; }

/* ---------- Móvil ---------- */
@media (max-width: 760px) {
  .rp-bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
      "brand play expand"
      "title title title";
    gap: 10px 12px;
    padding: 12px 14px;
  }
  .rp-brand { grid-area: brand; }
  .rp-title-wrap { grid-area: title; }
  .rp-play { grid-area: play; }
  .rp-expand { grid-area: expand; }
  .rp-panel-content { padding: 12px 14px 16px; }
  .rp-row--bottom { grid-template-columns: auto minmax(0, 1fr); gap: 16px; }
  .rp-volume { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rp-title.is-scrolling { animation: none; }
  .rp-panel, .rp-player.is-open .rp-panel, .rp-play, .rp-ib { transition: none; }
}


/* Quitar líneas separadoras */
.rp-player { border-top: 1px solid var(--rp-fg); }
.rp-panel-content { border-top: 1px solid var(--rp-fg); }

/* Ocultar "Radio Venus / Al atardecer / Sesión / Samples" */
.rp-brand { display: none; }

/* Orden: play → título → expandir */
.rp-bar {
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
}



/* Móvil */
@media (max-width: 760px) {
  .rp-bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "play title expand";
  }
}


