/* Podcast.ma — Modern Player v1.2 (premium look) */
:root{
  --pmp-bg: rgba(255,255,255,0.06);
  --pmp-bd: rgba(255,255,255,0.10);
  --pmp-tx: rgba(255,255,255,0.92);
  --pmp-muted: rgba(255,255,255,0.65);
  --pmp-accent: #2f80ff;
  --pmp-shadow: 0 16px 50px rgba(0,0,0,0.45);
  --pmp-radius: 18px;
}

.pmp-player{ margin:18px 0 22px; }
.pmp-shell{
  border-radius: var(--pmp-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.035));
  border: 1px solid var(--pmp-bd);
  box-shadow: var(--pmp-shadow);
  padding: 16px;
  color: var(--pmp-tx);
  overflow: hidden;
  position: relative;
}
.pmp-shell:before{
  content:"";
  position:absolute; inset:-1px;
  background: radial-gradient(900px 220px at 22% 0%, rgba(47,128,255,0.20), transparent 60%);
  pointer-events:none;
}
.pmp-theme-light .pmp-shell{
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245,246,250,0.92));
  border: 1px solid rgba(0,0,0,0.08);
  color: rgba(10,10,12,0.92);
}
.pmp-theme-light{ --pmp-muted: rgba(0,0,0,0.55); --pmp-bd: rgba(0,0,0,0.10); --pmp-tx: rgba(10,10,12,0.92); }

.pmp-head{
  display:grid;
  grid-template-columns: 62px 1fr auto;
  gap: 14px;
  align-items:center;
  position: relative;
  z-index: 2;
}
.pmp-cover{
  width:62px; height:62px;
  border-radius: 14px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.pmp-theme-light .pmp-cover{ border: 1px solid rgba(0,0,0,0.10); }
.pmp-cover img{ width:100%; height:100%; object-fit:cover; display:block; }
.pmp-cover__ph{ width:100%; height:100%; background: radial-gradient(circle at 30% 30%, rgba(47,128,255,0.45), rgba(255,255,255,0.05) 60%); }

.pmp-title{
  font-weight: 900;
  font-size: 16.5px;
  line-height: 1.15;
  margin-bottom: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmp-sub{ font-size: 12.5px; color: var(--pmp-muted); display:flex; align-items:center; gap:10px; }
.pmp-dot{ opacity: .6; }
.pmp-link{
  background: transparent;
  border: 0;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font-weight: 800;
}

.pmp-right{ display:flex; gap:10px; }
.pmp-iconbtn{
  width: 40px; height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--pmp-tx);
  display:flex; align-items:center; justify-content:center;
  cursor:pointer;
  text-decoration:none;
  user-select:none;
}
.pmp-theme-light .pmp-iconbtn{ border: 1px solid rgba(0,0,0,0.10); background: rgba(0,0,0,0.04); }
.pmp-iconbtn:hover{ background: rgba(255,255,255,0.10); }
.pmp-ico{ font-size: 16px; }

.pmp-controls{
  display:flex;
  flex-wrap: wrap;
  align-items:center;
  gap: 10px;
  margin-top: 14px;
  position: relative;
  z-index: 2;
}

.pmp-btn{
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: var(--pmp-tx);
  padding: 0 12px;
  display:inline-flex;
  align-items:center;
  gap: 8px;
  cursor:pointer;
  font-weight: 900;
  font-size: 13px;
  user-select:none;
}
.pmp-theme-light .pmp-btn{ border: 1px solid rgba(0,0,0,0.10); background: rgba(0,0,0,0.04); color: var(--pmp-tx); }
.pmp-btn:hover{ background: rgba(255,255,255,0.10); }
.pmp-play{
  width: 56px;
  justify-content:center;
  padding: 0;
  border-radius: 16px;
  background: var(--pmp-accent);
  border-color: transparent;
  color: #fff;
}
.pmp-play__icon--pause{ display:none; }
.pmp-player.is-playing .pmp-play__icon--play{ display:none; }
.pmp-player.is-playing .pmp-play__icon--pause{ display:inline; }

.pmp-time{
  font-weight: 900;
  font-size: 13px;
  color: var(--pmp-muted);
  display:inline-flex;
  align-items:center;
  gap: 6px;
  padding: 0 4px;
}
.pmp-sep{ opacity: .6; }

.pmp-speedwrap{ position: relative; }
.pmp-speedmenu{
  position:absolute;
  top: 50px;
  right: 0;
  min-width: 120px;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(15,15,18,0.98);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
}
.pmp-theme-light .pmp-speedmenu{ background: rgba(255,255,255,0.98); border: 1px solid rgba(0,0,0,0.10); }
.pmp-speedmenu button{
  width:100%;
  background: transparent;
  border: 0;
  color: inherit;
  padding: 10px 10px;
  border-radius: 12px;
  cursor:pointer;
  font-weight: 900;
  text-align:left;
}
.pmp-speedmenu button:hover{ background: rgba(255,255,255,0.08); }
.pmp-theme-light .pmp-speedmenu button:hover{ background: rgba(0,0,0,0.06); }

.pmp-volwrap{ display:flex; align-items:center; gap: 10px; margin-left: auto; }
.pmp-vol{ width: 140px; accent-color: var(--pmp-accent); }
.pmp-ico-mute{ display:none; }
.pmp-player.is-muted .pmp-ico-vol{ display:none; }
.pmp-player.is-muted .pmp-ico-mute{ display:inline; }

.pmp-progress{
  margin-top: 14px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}
.pmp-theme-light .pmp-progress{ background: rgba(0,0,0,0.08); border: 1px solid rgba(0,0,0,0.08); }
.pmp-buf{
  position:absolute; inset:0;
  width: 0%;
  background: rgba(255,255,255,0.10);
}
.pmp-theme-light .pmp-buf{ background: rgba(0,0,0,0.10); }
.pmp-bar{
  position:absolute; inset:0;
  width: 0%;
  background: linear-gradient(90deg, var(--pmp-accent), rgba(120,90,255,1));
}
.pmp-seek{
  position:absolute; inset:0;
  width:100%;
  opacity:0;
  cursor:pointer;
}

.pmp-audio{ display:none; }

/* Sticky mini-player (separate bar) */
.pmp-sticky{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  border-radius: 999px;
  padding: 12px 14px;
  background: rgba(15,15,18,0.92);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 18px 60px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  display:none;
}
.pmp-sticky__row{
  display:grid;
  grid-template-columns: 44px 1fr 220px 44px;
  gap: 12px;
  align-items:center;
}
.pmp-sticky__play{
  width:44px; height:44px;
  border-radius: 16px;
  background: var(--pmp-accent);
  border: 0;
  color:#fff;
  cursor:pointer;
  font-weight: 900;
}
.pmp-sticky__meta{ min-width:0; }
.pmp-sticky__title{
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pmp-sticky__time{ font-size: 12px; color: rgba(255,255,255,0.65); font-weight: 800; margin-top: 2px; }
.pmp-sticky__seek{ width:100%; accent-color: var(--pmp-accent); }
.pmp-sticky__close{
  width:44px; height:44px;
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff;
  cursor:pointer;
}

@media (max-width: 640px){
  .pmp-head{ grid-template-columns: 54px 1fr auto; }
  .pmp-cover{ width:54px; height:54px; border-radius: 12px; }
  .pmp-volwrap{ width:100%; margin-left: 0; }
  .pmp-vol{ width:100%; }
  .pmp-sticky__row{ grid-template-columns: 44px 1fr 44px; }
  .pmp-sticky__seek{ display:none; }
}
