/**
 * Neurim live radio player – RTL, Hebrew, site colors
 * Primary: #00C2CB, Secondary: #54595F, Text: #7A7A7A, Accent: #007176
 * Font: Noto Sans Hebrew
 */
#neurim-radio-player.nrp-player {
  --nrp-primary: #00C2CB;
  --nrp-secondary: #54595F;
  --nrp-text: #7A7A7A;
  --nrp-accent: #007176;
  --nrp-bg: #1e1e1e;
  --nrp-progress-fill: #54595F;
  --nrp-progress-track: #3d3d3d;
  direction: rtl;
  font-family: "Noto Sans Hebrew", sans-serif;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.25rem;
  max-width: 100%;
  padding: 1rem;
  margin-bottom: 1.5rem;
  background: var(--nrp-bg);
  border-radius: 12px;
  color: #fff;
}

.nrp-art-wrap {
  position: relative;
  flex-shrink: 0;
  width: 80px;
  height: 80px;
}

.nrp-art {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.nrp-art--default {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nrp-primary);
}

.nrp-art--default img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.nrp-art--img {
  display: none;
  opacity: 1;
  transition: opacity 0.25s ease;
}

.nrp-art--img.nrp-art--visible {
  display: block;
}

.nrp-art--default.nrp-art--hidden {
  display: none;
}

.nrp-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.nrp-nowplaying {
  line-height: 1.3;
}

.nrp-title,
.nrp-artist {
  margin: 0;
  transition: opacity 0.2s ease;
}

.nrp-title.nrp-text-fadeout,
.nrp-artist.nrp-text-fadeout {
  opacity: 0;
}

.nrp-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
}

.nrp-artist {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--nrp-text);
}

.nrp-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.nrp-time {
  flex-shrink: 0;
  font-size: 0.8rem;
  color: var(--nrp-text);
  min-width: 2.8em;
}

.nrp-progress {
  flex: 1;
  height: 6px;
  background: var(--nrp-progress-track);
  border-radius: 3px;
  overflow: hidden;
}

.nrp-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--nrp-progress-fill);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.nrp-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nrp-btn {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--nrp-primary);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
}

.nrp-btn:hover {
  background: var(--nrp-accent);
}

.nrp-btn:active {
  transform: scale(0.96);
}

.nrp-btn--play {
  background: var(--nrp-primary);
}

.nrp-btn--play:hover,
.nrp-btn--play:focus,
.nrp-btn--play:active {
  background: var(--nrp-primary);
}

.nrp-btn--play:focus {
  outline: none;
}

.nrp-btn--play::before {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin: 0;
  border-width: 8px 14px 8px 0;
  border-style: solid;
  border-color: transparent currentColor transparent transparent;
  transform: translate(-1px, -1px);
}

.nrp-player.nrp-playing .nrp-btn--play::before {
  width: 4px;
  height: 14px;
  margin: 0 auto;
  border: none;
  background: currentColor;
  box-shadow: 6px 0 0 0 currentColor;
  transform: translate(-4px, -1px);
}

.nrp-btn--volume {
  width: 36px;
  height: 36px;
  background: var(--nrp-secondary);
  padding: 0;
  position: relative;
}

.nrp-btn--volume:hover,
.nrp-btn--volume:focus,
.nrp-btn--volume:active {
  background: var(--nrp-secondary);
}

.nrp-btn--volume:focus {
  outline: none;
}

.nrp-btn--volume:active {
  transform: none;
}

.nrp-btn--volume .nrp-icon-speaker,
.nrp-btn--volume .nrp-icon-speaker-mute {
  width: 20px;
  height: 20px;
  display: block;
  color: currentColor;
  position: absolute;
  inset: 0;
  margin: auto;
}

.nrp-btn--volume .nrp-icon-speaker-mute {
  display: none;
}

.nrp-btn--volume.nrp-muted .nrp-icon-speaker {
  display: none;
}

.nrp-btn--volume.nrp-muted .nrp-icon-speaker-mute {
  display: block;
}

.nrp-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  direction: ltr;
}

.nrp-volume-track-wrap {
  position: relative;
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: var(--nrp-progress-track);
  direction: ltr;
}

.nrp-volume-fill {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 80%;
  border-radius: 3px;
  background: var(--nrp-primary);
  pointer-events: none;
}

.nrp-volume-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 3px;
  transform: scaleX(-1);
}

.nrp-volume-range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

.nrp-volume-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -4px;
  border-radius: 50%;
  background: var(--nrp-primary);
  cursor: pointer;
}

.nrp-volume-range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

.nrp-volume-range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--nrp-primary);
  cursor: pointer;
  border: none;
}

#nrp-audio {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 480px) {
  #neurim-radio-player.nrp-player {
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .nrp-art-wrap {
    width: 64px;
    height: 64px;
  }

  .nrp-title {
    font-size: 1rem;
  }

  .nrp-artist {
    font-size: 0.85rem;
  }

  .nrp-volume-track-wrap {
    width: 50px;
  }
}
