/* Zerynx Sticky Player – EIN zentraler Style für alle Seiten
   Diese Datei ist absichtlich stärker als alte Rest-Regeln in styles.css / Dashboard-Inline-CSS.
   Ziel: gleiche Optik + gleiche Position auf index_live.php, album.php und private/dashboard.php. */

:root{
  --player-accent:#ff5a00;
}

body .sticky-player{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:20px !important;
  transform:translateX(-50%) !important;
  width:min(1080px,calc(100vw - 56px)) !important;
  min-height:96px !important;
  z-index:9999 !important;
  display:grid !important;
  grid-template-columns:minmax(250px,320px) minmax(320px,1fr) minmax(190px,230px) !important;
  grid-template-areas:"meta controls volume" !important;
  align-items:center !important;
  gap:20px !important;
  padding:16px 22px !important;
  border-radius:26px !important;
  border:1px solid rgba(255,255,255,.11) !important;
  border-top:2px solid var(--player-accent,#ff5a00) !important;
  background:linear-gradient(135deg,rgba(14,14,16,.94),rgba(10,10,12,.90)) !important;
  box-shadow:0 24px 80px rgba(0,0,0,.52),0 0 34px rgba(255,90,0,.15) !important;
  backdrop-filter:blur(22px) !important;
  -webkit-backdrop-filter:blur(22px) !important;
  opacity:0 !important;
  pointer-events:none !important;
  overflow:hidden !important;
  transition:opacity .28s ease, transform .28s ease, box-shadow .28s ease !important;
}

body .sticky-player.visible,
body .sticky-player.visible.is-scrolled{
  opacity:1 !important;
  pointer-events:auto !important;
  transform:translateX(-50%) !important;
}

body .sticky-player.is-minimized,
body .sticky-player.visible.is-minimized,
body .sticky-player.is-minimized.is-scrolled{
  left:auto !important;
  right:20px !important;
  bottom:20px !important;
  transform:none !important;
  width:min(420px,calc(100vw - 40px)) !important;
  min-height:0 !important;
  grid-template-columns:minmax(0,1fr) !important;
  grid-template-areas:"meta" !important;
  gap:0 !important;
  padding:14px 16px !important;
}

body .sticky-player.is-minimized .sticky-player-center,
body .sticky-player.is-minimized .sticky-player-right{
  display:none !important;
}

body .sticky-player-glow{
  position:absolute !important;
  inset:0 !important;
  background:radial-gradient(circle at left center,rgba(255,90,0,.22),transparent 34%),radial-gradient(circle at 70% 20%,rgba(255,255,255,.055),transparent 24%) !important;
  pointer-events:none !important;
}

body .sticky-player > *{position:relative !important;z-index:1 !important;}

body .sticky-minimize{
  position:absolute !important;
  right:14px !important;
  top:12px !important;
  z-index:5 !important;
  width:30px !important;
  height:30px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  border:1px solid rgba(255,255,255,.13) !important;
  background:rgba(255,255,255,.08) !important;
  color:white !important;
  cursor:pointer !important;
  line-height:1 !important;
}

body .sticky-player-left{
  grid-area:meta !important;
  min-width:0 !important;
  display:flex !important;
  align-items:center !important;
  gap:14px !important;
}

body .sticky-cover-wrap{
  width:64px !important;
  height:64px !important;
  min-width:64px !important;
  border-radius:17px !important;
  overflow:hidden !important;
  flex:0 0 auto !important;
  background:rgba(255,255,255,.08) !important;
  box-shadow:0 10px 28px rgba(0,0,0,.38) !important;
}

body .sticky-player-cover{
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  display:block !important;
}

body .sticky-meta{min-width:0 !important;}

body .sticky-player-label{
  color:#ffad7c !important;
  font-size:.68rem !important;
  font-weight:900 !important;
  letter-spacing:.16em !important;
  text-transform:uppercase !important;
  margin:0 0 4px !important;
}

body .sticky-player-title{
  color:white !important;
  font-size:1rem !important;
  font-weight:900 !important;
  line-height:1.18 !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  margin:0 !important;
}

body .sticky-player-subtitle{
  color:rgba(255,255,255,.62) !important;
  font-size:.82rem !important;
  line-height:1.25 !important;
  margin-top:3px !important;
  white-space:nowrap !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
}

body .sticky-player-center{
  grid-area:controls !important;
  min-width:0 !important;
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:8px !important;
}

body .sticky-controls-row{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  gap:12px !important;
  margin:0 auto !important;
}

body .sticky-control{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  border-radius:999px !important;
  color:white !important;
  cursor:pointer !important;
  font-weight:900 !important;
  line-height:1 !important;
  padding:0 !important;
  background:rgba(255,255,255,.09) !important;
  border:1px solid rgba(255,255,255,.12) !important;
  transition:transform .18s ease, background .18s ease, box-shadow .18s ease !important;
}

body .sticky-control:hover{transform:translateY(-1px) scale(1.02) !important;}

body .sticky-control.primary{
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  border:0 !important;
  font-size:1.2rem !important;
  background:var(--player-accent,#ff5a00) !important;
  box-shadow:0 0 28px rgba(255,90,0,.38) !important;
}

body .sticky-control.small{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  font-size:.95rem !important;
}

body .sticky-control.is-active,
body .sticky-control.ghost.is-active{
  color:white !important;
  background:rgba(255,90,0,.30) !important;
  border-color:rgba(255,90,0,.55) !important;
}

body .sticky-progress-wrap{
  width:min(420px,100%) !important;
  display:grid !important;
  grid-template-columns:44px minmax(0,1fr) 44px !important;
  align-items:center !important;
  gap:10px !important;
  color:rgba(255,255,255,.58) !important;
  font-size:.78rem !important;
}

body #current-time,
body #duration-time{
  color:rgba(255,255,255,.62) !important;
  font-size:.78rem !important;
  text-align:center !important;
}

body #progress-bar,
body #volume-bar{
  width:100% !important;
  accent-color:var(--player-accent,#ff5a00) !important;
}

body .sticky-player-right{
  grid-area:volume !important;
  min-width:190px !important;
  width:100% !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
  gap:12px !important;
}

body .sticky-volume-wrap{
  width:118px !important;
  display:grid !important;
  grid-template-columns:24px minmax(0,1fr) !important;
  align-items:center !important;
  gap:10px !important;
}

body .sticky-volume-icon{cursor:pointer !important;user-select:none !important;}

body .sticky-player-download{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:9px 14px !important;
  border-radius:999px !important;
  text-decoration:none !important;
  font-size:.82rem !important;
  font-weight:900 !important;
  color:#fff !important;
  background:rgba(255,255,255,.09) !important;
  border:1px solid rgba(255,255,255,.14) !important;
}

body .sticky-player-download:hover{
  background:rgba(255,90,0,.22) !important;
  border-color:rgba(255,90,0,.45) !important;
}

@media(max-width:940px){
  body .sticky-player,
  body .sticky-player.visible,
  body .sticky-player.visible.is-scrolled{
    left:50% !important;
    right:auto !important;
    bottom:12px !important;
    transform:translateX(-50%) !important;
    width:calc(100vw - 24px) !important;
    grid-template-columns:1fr !important;
    grid-template-areas:"meta" "controls" "volume" !important;
    gap:14px !important;
    padding:16px !important;
  }
  body .sticky-player-right{width:100% !important;min-width:0 !important;justify-content:center !important;}
  body .sticky-volume-wrap{width:min(320px,100%) !important;}
  body .sticky-progress-wrap{width:100% !important;}
  body .sticky-player.is-minimized,
  body .sticky-player.visible.is-minimized,
  body .sticky-player.is-minimized.is-scrolled{
    left:auto !important;
    right:12px !important;
    bottom:12px !important;
    transform:none !important;
    width:min(360px,calc(100vw - 24px)) !important;
    grid-template-areas:"meta" !important;
  }
  body .sticky-player.is-minimized .sticky-cover-wrap{width:52px !important;height:52px !important;min-width:52px !important;}
}


/* v13: Songseite nutzt dieselbe Sticky-Player-Komponente mit eigenen JS-IDs. */
body .sticky-progress-wrap span{
  color:rgba(255,255,255,.62) !important;
  font-size:.78rem !important;
  text-align:center !important;
}
body .sticky-progress-wrap input[type="range"],
body .sticky-volume-wrap input[type="range"]{
  width:100% !important;
  accent-color:var(--player-accent,#ff5a00) !important;
}
body .sticky-player.song-detail-player{
  z-index:10000 !important;
}
