/* SDM Radyo Player - Frontend */

.sdmrp, .sdmrp * { box-sizing: border-box; }

.sdmrp{
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* prevent page-level horizontal scroll from shadows */
  display: block;
}

.sdmrp__bar{
  position: relative;
  width: 100%;
  max-width: 100%;
  height: var(--sdmrp-height, 100px);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  border-radius: 18px;

  /* Background on the whole player */
  background: var(--sdmrp-card, rgba(12,12,16,.72));

  /* subtle accent sheen */
  background-image:
    linear-gradient(90deg, rgba(var(--sdmrp-a1-rgb, 124,58,237), .18), rgba(var(--sdmrp-a2-rgb, 34,197,94), .18));
  background-blend-mode: overlay;

  box-shadow:
    0 10px 30px rgba(0,0,0,.22),
    inset 0 0 0 1px rgba(255,255,255,.10);

  overflow: hidden;
}

/* Theme text colors */
.sdmrp--dark .sdmrp__bar,
.sdmrp--aurora .sdmrp__bar,
.sdmrp--glass .sdmrp__bar{ color: rgba(255,255,255,.92); }
.sdmrp--light .sdmrp__bar{ color: rgba(10,10,12,.92); box-shadow: 0 10px 30px rgba(0,0,0,.12), inset 0 0 0 1px rgba(0,0,0,.10); }

.sdmrp--glass .sdmrp__bar{
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sdmrp__logo{
  flex: 0 0 auto;
  width: min(100px, var(--sdmrp-height, 100px));
  height: min(100px, var(--sdmrp-height, 100px));
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sdmrp--light .sdmrp__logo{ background: rgba(0,0,0,.05); }

.sdmrp__logo img{
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sdmrp__btn{
  flex: 0 0 auto;
  border: 0;
  outline: none;
  cursor: pointer;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: inherit;
  background: rgba(255,255,255,.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.10);
  transition: transform .08s ease, background .12s ease, box-shadow .12s ease;
}

.sdmrp--light .sdmrp__btn{ background: rgba(0,0,0,.05); box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }

.sdmrp__btn:active{ transform: scale(.98); }

/* Bigger play button */
.sdmrp__btn--play{
  width: 64px;
  height: 64px;
  background: transparent; /* background belongs to the whole player bar */
  box-shadow:
    inset 0 0 0 2px rgba(var(--sdmrp-a1-rgb, 124,58,237), .55),
    0 10px 22px rgba(0,0,0,.18);
}

.sdmrp--light .sdmrp__btn--play{
  background: transparent;
  box-shadow:
    inset 0 0 0 2px rgba(var(--sdmrp-a1-rgb, 124,58,237), .55),
    0 10px 22px rgba(0,0,0,.10);
}

.sdmrp__btn--stop,
.sdmrp__btn--mute{
  width: 48px;
  height: 48px;
}

.sdmrp__icon{ display: inline-flex; }
.sdmrp__icon--pause{ display: none; }

.sdmrp.sdmrp--playing .sdmrp__icon--pause{ display: inline-flex; }
.sdmrp.sdmrp--playing .sdmrp__icon--play{ display: none; }

.sdmrp__range{
  flex: 1 1 auto;
  min-width: 0;
  height: 6px;
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255,255,255,.18);
  border-radius: 999px;
  cursor: pointer;
}

.sdmrp--light .sdmrp__range{ background: rgba(0,0,0,.14); }

.sdmrp__range::-webkit-slider-thumb{
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 6px 14px rgba(0,0,0,.22), 0 0 0 3px rgba(var(--sdmrp-a1-rgb, 124,58,237), .28);
}

.sdmrp__range::-moz-range-thumb{
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  border: 0;
  box-shadow: 0 6px 14px rgba(0,0,0,.22);
}

.sdmrp__name{
  flex: 0 1 220px;
  min-width: 0;
  font-size: 14px;
  opacity: .92;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 6px;
}

.sdmrp__msg{
  position: absolute;
  right: 12px;
  bottom: 10px;
  font-size: 12px;
  opacity: .88;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}

/* keep it tight on small screens and prevent overflow */
@media (max-width: 520px){
  .sdmrp__name{ display:none; }
  .sdmrp__msg{ max-width: 45%; }
}

@media (max-width: 420px){
  .sdmrp__btn--stop{ display:none; }
  .sdmrp__btn--play{ width: 60px; height: 60px; }
}
