:root {
  --ra-player-green: #67ff4f;
  --ra-player-black: #050705;
  --ra-player-panel: #101610;
  --ra-player-text: #f3f5ef;
  --ra-player-muted: #b7c0b4;
  --ra-player-border: rgba(103, 255, 79, 0.36);
  --ra-player-full-height: 130px;
  --ra-player-mini-height: 62px;
}

.ra-persistent-player,
.ra-persistent-player * {
  box-sizing: border-box;
}

.ra-persistent-player[hidden],
.ra-persistent-player__restore[hidden],
.ra-persistent-player__button[hidden] {
  display: none !important;
}

.ra-persistent-player {
  position: fixed;
  z-index: 999990;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 18px;
  width: auto;
  max-width: 1180px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--ra-player-text);
  background: var(--ra-player-black);
  border: 1px solid var(--ra-player-border);
  border-radius: 14px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.66), 0 0 28px rgba(103, 255, 79, 0.09);
  font-family: Arial, Helvetica, sans-serif;
  transform: translateY(0);
  opacity: 1;
  transition: transform 160ms ease, opacity 160ms ease;
}

.ra-persistent-player.is-hidden-ui {
  transform: translateY(calc(100% + 90px));
  opacity: 0;
  pointer-events: none;
}

.ra-persistent-player__bar {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr) auto 38px 38px 38px;
  gap: 10px;
  align-items: center;
  min-height: 52px;
  padding: 6px 8px 6px 7px;
  background: linear-gradient(90deg, rgba(103, 255, 79, 0.10), transparent 52%), var(--ra-player-panel);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ra-persistent-player.is-mini .ra-persistent-player__bar {
  border-bottom: 0;
}

.ra-persistent-player__art {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  overflow: hidden;
  color: var(--ra-player-black);
  background: var(--ra-player-green);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.ra-persistent-player__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ra-persistent-player__copy {
  min-width: 0;
  line-height: 1.15;
}

.ra-persistent-player__label {
  display: block;
  margin-bottom: 3px;
  color: var(--ra-player-green);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ra-persistent-player__title {
  display: block;
  overflow: hidden;
  color: var(--ra-player-text);
  font-size: 14px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ra-persistent-player__open {
  min-height: 36px;
  padding: 9px 12px;
  color: var(--ra-player-green) !important;
  border: 1px solid rgba(103, 255, 79, 0.44);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-decoration: none !important;
  white-space: nowrap;
}

.ra-persistent-player__open:hover,
.ra-persistent-player__open:focus-visible {
  color: var(--ra-player-black) !important;
  background: var(--ra-player-green);
  outline: none;
}

.ra-persistent-player__button {
  display: grid;
  width: 36px;
  height: 36px;
  padding: 0;
  place-items: center;
  color: var(--ra-player-text);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  font-size: 21px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}

.ra-persistent-player__button:hover,
.ra-persistent-player__button:focus-visible {
  color: var(--ra-player-black);
  background: var(--ra-player-green);
  border-color: var(--ra-player-green);
  outline: none;
}

.ra-persistent-player__play {
  font-size: 16px;
}

.ra-persistent-player__close {
  font-size: 25px;
}

/* Mixcloud is intentionally loaded in mini mode. 60px is its real useful
   height; the old 120px expanded box was the blank-space bug. */
.ra-persistent-player__slot {
  height: 60px;
  background: #000;
  overflow: hidden;
  transition: height 160ms ease;
}

.ra-persistent-player__slot iframe {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 60px !important;
  margin: 0 !important;
  border: 0 !important;
  visibility: visible !important;
}

/* Mini mode keeps the metadata and native play/pause controls but removes the
   embedded widget from the visible layout. The iframe remains loaded. */
.ra-persistent-player.is-mini .ra-persistent-player__slot {
  height: 0 !important;
}

.ra-persistent-player__restore {
  position: fixed;
  z-index: 999991;
  right: 18px;
  bottom: max(18px, env(safe-area-inset-bottom));
  min-height: 42px;
  padding: 0 15px;
  color: var(--ra-player-green);
  background: var(--ra-player-black);
  border: 1px solid var(--ra-player-border);
  border-radius: 999px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.55);
  font: 800 12px/1 Arial, Helvetica, sans-serif;
  cursor: pointer;
  touch-action: manipulation;
}

.ra-persistent-player__restore:hover,
.ra-persistent-player__restore:focus-visible {
  color: var(--ra-player-black);
  background: var(--ra-player-green);
  outline: none;
}

body.ra-player-open {
  padding-bottom: calc(var(--ra-player-full-height) + env(safe-area-inset-bottom));
}

body.ra-player-open.ra-player-mini {
  padding-bottom: calc(var(--ra-player-mini-height) + env(safe-area-inset-bottom));
}

body.ra-player-hidden-ui {
  padding-bottom: 0 !important;
}

body.ra-navigation-loading main {
  opacity: 0.55;
  transition: opacity 120ms ease;
}

body.ra-navigation-loading {
  cursor: progress;
}

@media (max-width: 700px) {
  .ra-persistent-player {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
    border-radius: 11px;
  }

  .ra-persistent-player__bar {
    grid-template-columns: 38px minmax(0, 1fr) 34px 34px 34px;
    gap: 7px;
    min-height: 50px;
    padding: 6px;
  }

  .ra-persistent-player__art {
    width: 36px;
    height: 36px;
    border-radius: 7px;
  }

  .ra-persistent-player__title {
    font-size: 12px;
  }

  .ra-persistent-player__open {
    display: none;
  }

  .ra-persistent-player__button {
    width: 34px;
    height: 34px;
  }

  .ra-persistent-player__slot,
  .ra-persistent-player__slot iframe {
    height: 60px !important;
  }

  .ra-persistent-player.is-mini .ra-persistent-player__slot {
    height: 0 !important;
  }

  .ra-persistent-player__restore {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 44px;
  }

  body.ra-player-open {
    padding-bottom: calc(122px + env(safe-area-inset-bottom));
  }

  body.ra-player-open.ra-player-mini {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ra-persistent-player,
  .ra-persistent-player__slot,
  body.ra-navigation-loading main {
    transition: none !important;
  }
}
