.rof-mini-player {
  position: fixed;
  z-index: 10020;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: #fff;
  font-family: "Rajdhani", "Segoe UI", sans-serif;
  pointer-events: none;
}

.rof-mini-player__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto auto minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  width: min(1080px, 100%);
  min-height: 72px;
  margin: 0 auto;
  padding: 10px 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 210, 255, 0.48);
  border-radius: 22px;
  background:
    radial-gradient(circle at 15% 0, rgba(0, 210, 255, 0.18), transparent 35%),
    radial-gradient(circle at 85% 100%, rgba(255, 0, 128, 0.17), transparent 38%),
    rgba(5, 9, 20, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.56), 0 0 28px rgba(0, 210, 255, 0.15);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
  pointer-events: auto;
}

.rof-mini-player__inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 12%;
  left: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #00d2ff, #ff0080, transparent);
  box-shadow: 0 0 14px rgba(0, 210, 255, 0.8);
}

.rof-mini-player__play {
  position: relative;
  display: grid;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  padding: 0;
  place-items: center;
  border: 1px solid #00d2ff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, rgba(0, 210, 255, 0.3), rgba(0, 76, 153, 0.24));
  box-shadow: 0 0 22px rgba(0, 210, 255, 0.45), inset 0 0 12px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.rof-mini-player__play:hover,
.rof-mini-player__play:focus-visible {
  transform: scale(1.06);
  outline: none;
  box-shadow: 0 0 30px rgba(0, 210, 255, 0.68), inset 0 0 14px rgba(255, 255, 255, 0.12);
}

.rof-mini-player.is-playing .rof-mini-player__play {
  border-color: #39ff14;
  background: linear-gradient(145deg, rgba(57, 255, 20, 0.3), rgba(0, 128, 75, 0.25));
  box-shadow: 0 0 26px rgba(57, 255, 20, 0.55), inset 0 0 12px rgba(255, 255, 255, 0.08);
}

.rof-mini-player__play-icon {
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid currentColor;
}

.rof-mini-player.is-playing .rof-mini-player__play-icon {
  width: 13px;
  height: 16px;
  margin-left: 0;
  border: 0;
  background: linear-gradient(90deg, currentColor 0 38%, transparent 38% 62%, currentColor 62% 100%);
}

.rof-mini-player__equalizer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 48px;
  height: 34px;
}

.rof-mini-player__equalizer span {
  width: 3px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #39ff14, #00d2ff 64%, #ff0080);
  box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
  transform-origin: center;
}

.rof-mini-player.is-playing .rof-mini-player__equalizer span {
  animation: rof-mini-eq 760ms ease-in-out infinite alternate;
}

.rof-mini-player.is-playing .rof-mini-player__equalizer span:nth-child(2n) { animation-duration: 520ms; }
.rof-mini-player.is-playing .rof-mini-player__equalizer span:nth-child(3n) { animation-duration: 920ms; }
.rof-mini-player.is-playing .rof-mini-player__equalizer span:nth-child(4n) { animation-delay: -300ms; }

@keyframes rof-mini-eq {
  from { height: 7px; opacity: 0.72; }
  to { height: 31px; opacity: 1; }
}

.rof-mini-player__track {
  min-width: 0;
}

.rof-mini-player__live {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 2px;
  color: #39ff14;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.6px;
}

.rof-mini-player__live span,
.rof-mini-player__listeners-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #39ff14;
  box-shadow: 0 0 11px #39ff14;
  animation: rof-mini-pulse 1.6s ease-out infinite;
}

@keyframes rof-mini-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.72); }
}

.rof-mini-player__title {
  overflow: hidden;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.2);
  white-space: nowrap;
}

.rof-mini-player__listeners {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(57, 255, 20, 0.3);
  border-radius: 999px;
  color: #fff;
  background: rgba(57, 255, 20, 0.07);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.rof-mini-player__volume {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rof-mini-player__mute {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(0, 210, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 210, 255, 0.08);
  cursor: pointer;
}

.rof-mini-player__mute:focus-visible {
  outline: 2px solid #00d2ff;
  outline-offset: 2px;
}

#rofMiniVolume {
  width: 92px;
  accent-color: #00d2ff;
  cursor: pointer;
}

body.rof-concept-top20-page,
body.rof-concept-video-page,
body.rof-concept-fanclub-page,
body.rof-concept-news-page,
body.rof-concept-astrology-page {
  padding-bottom: 104px !important;
}

@media (max-width: 760px) {
  .rof-mini-player {
    right: 8px;
    bottom: max(8px, env(safe-area-inset-bottom));
    left: 8px;
  }

  .rof-mini-player__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px;
    border-radius: 18px;
  }

  .rof-mini-player__play {
    width: 46px;
    height: 46px;
  }

  .rof-mini-player__equalizer,
  .rof-mini-player__listeners-label,
  .rof-mini-player__volume {
    display: none;
  }

  .rof-mini-player__listeners {
    min-height: 32px;
    padding: 0 10px;
  }

  .rof-mini-player__title {
    font-size: 14px;
  }

  body.rof-concept-top20-page,
  body.rof-concept-video-page,
  body.rof-concept-fanclub-page,
  body.rof-concept-news-page,
  body.rof-concept-astrology-page {
    padding-bottom: 86px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rof-mini-player *,
  .rof-mini-player *::before,
  .rof-mini-player *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
