/* My Radio Player — base styles */

.mrp-soft-nav-loading {
  cursor: progress;
}

.mrp-soft-nav-loading .mrp-sticky {
  pointer-events: none;
}

.mrp-root {
  --mrp-bg: #0f0f0f;
  --mrp-text: #ffffff;
  --mrp-muted: #a3a3a3;
  --mrp-accent: #e11d48;
  --mrp-accent-contrast: #ffffff;
  --mrp-radius: 12px;
  --mrp-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  --mrp-control-size: 44px;
  --mrp-font: inherit;
  --mrp-width: 100%;
}

.mrp-btn {
  width: var(--mrp-control-size, 44px);
  height: var(--mrp-control-size, 44px);
  border: 0;
  border-radius: 50%;
  background: var(--mrp-accent, #e11d48);
  color: var(--mrp-accent-contrast, #fff);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  padding: 0;
}

.mrp-btn:focus-visible {
  outline: 2px solid var(--mrp-accent);
  outline-offset: 2px;
}

.mrp-btn-play::before {
  content: "";
  position: absolute;
  left: 52%;
  top: 50%;
  transform: translate(-40%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
}

/* Pausa: due barre (barra + ombra) */
.mrp-is-playing .mrp-btn-play::before {
  left: calc(50% - 6px);
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 14px;
  border: 0;
  border-style: none;
  background: currentColor;
  box-shadow: 8px 0 0 currentColor;
  clip-path: none;
}

.mrp-btn-prev::before,
.mrp-btn-next::before,
.mrp-btn-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.mrp-btn-prev,
.mrp-btn-next,
.mrp-btn-popup {
  background: transparent;
  color: var(--mrp-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  width: 36px;
  height: 36px;
  font-size: 14px;
}

.mrp-btn-prev::before { content: "‹"; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.mrp-btn-next::before { content: "›"; display: flex; align-items: center; justify-content: center; font-size: 22px; line-height: 1; }
.mrp-btn-popup::before { content: "⧉"; display: flex; align-items: center; justify-content: center; font-size: 14px; }

.mrp-live-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.45rem;
  border-radius: 4px;
  background: var(--mrp-accent);
  color: var(--mrp-accent-contrast);
}

.mrp-volume {
  accent-color: var(--mrp-accent);
  width: 100px;
  max-width: 30vw;
}

.mrp-artwork-placeholder {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.mrp-history {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--mrp-muted);
}

.mrp-history ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

/* Sticky wrappers — barra fissa trasparente (Glass) */
.mrp-sticky {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 9999;
  pointer-events: none;
  background: transparent !important;
  box-shadow: none !important;
}

.mrp-sticky .mrp-root {
  pointer-events: auto;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
}

.mrp-sticky .mrp-wa-ticker {
  width: 100%;
  max-width: 100%;
  margin: 0;
  flex: 0 0 auto;
}

.mrp-sticky--bottom { bottom: 0; padding: 0 1.25rem 1.25rem; }
.mrp-sticky--top { top: 0; padding: 1.25rem 1.25rem 0; }

.mrp-sticky--fullwidth .mrp-root,
.mrp-sticky--mini-fullwidth .mrp-root {
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
}

@media (max-width: 782px) {
  .mrp-sticky--hide-mobile {
    display: none !important;
  }

  .mrp-sticky--bottom {
    padding: 0 0.75rem 0.75rem;
  }

  .mrp-sticky--top {
    padding: 0.75rem 0.75rem 0;
  }
}

.mrp-click-to-play {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--mrp-muted);
}

.mrp-marquee {
  position: relative;
  overflow: hidden;
  min-width: 0;
  max-width: 100%;
}

.mrp-marquee__inner {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
}

.mrp-marquee--scrolling {
  overflow: hidden;
}

.mrp-marquee--settled .mrp-marquee__inner {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .mrp-marquee__inner {
    will-change: auto;
  }
}

.mrp-share-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.mrp-share-menu {
  position: absolute;
  left: 0;
  right: auto;
  bottom: calc(100% + 8px);
  min-width: 168px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.16);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mrp-share-menu[hidden] {
  display: none !important;
}

.mrp-share-menu__item {
  appearance: none;
  border: 0;
  background: transparent;
  color: #1d2327;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
}

.mrp-share-menu__item .mrp-social-icon {
  flex-shrink: 0;
}

/* Brand app icons (colori nel SVG) */
.mrp-social-icon--brand {
  display: block;
  border-radius: 22%;
  overflow: visible;
  flex-shrink: 0;
}

.mrp-share-menu__item:hover,
.mrp-share-menu__item:focus-visible {
  background: rgba(0, 0, 0, 0.06);
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  .mrp-btn,
  .mrp-player {
    transition: none !important;
  }
}
