
/* ==========================================================
   CANTAIMY v6.6.5 — Global player on subpages
   ========================================================== */

body.subpage-player-open{
  padding-bottom:92px !important;
}

body.subpage-player-open .v6-player.global-floating-player{
  position:fixed !important;
  left:0 !important;
  right:0 !important;
  bottom:0 !important;
  top:auto !important;
  z-index:50000 !important;
  width:100% !important;
  height:82px !important;
  min-height:82px !important;
  max-height:82px !important;
  display:grid !important;
  grid-template-columns:minmax(220px,1fr) 170px minmax(180px,.8fr) minmax(220px,.9fr) !important;
  gap:14px !important;
  align-items:center !important;
  padding:8px 22px !important;
  margin:0 !important;
  border-top:1px solid rgba(255,255,255,.10) !important;
  background:linear-gradient(180deg,rgba(10,6,35,.98),rgba(5,3,22,.99)) !important;
  box-shadow:0 -16px 40px rgba(0,0,0,.30) !important;
}

body.subpage-player-open .global-floating-player .player-left img{
  width:52px !important;
  height:52px !important;
  min-width:52px !important;
  object-fit:cover !important;
  border-radius:10px !important;
}

body.subpage-player-open .global-floating-player .player-left strong{
  font-size:13px !important;
}

body.subpage-player-open .global-floating-player .player-left span{
  font-size:10px !important;
}

body.subpage-player-open .global-floating-player #progress{
  display:block !important;
  width:100% !important;
  min-width:160px !important;
  cursor:pointer !important;
}

body.subpage-player-open .global-floating-player .eq-bars{
  display:grid !important;
}

@media(max-width:900px){
  body.subpage-player-open{
    padding-bottom:78px !important;
  }

  body.subpage-player-open .v6-player.global-floating-player{
    height:72px !important;
    min-height:72px !important;
    max-height:72px !important;
    grid-template-columns:minmax(150px,1fr) 140px minmax(120px,.8fr) !important;
    padding:7px 12px !important;
  }

  body.subpage-player-open .global-floating-player .eq-bars{
    display:none !important;
  }

  body.subpage-player-open .global-floating-player .player-left img{
    width:44px !important;
    height:44px !important;
    min-width:44px !important;
  }
}

@media(max-width:620px){
  body.subpage-player-open .v6-player.global-floating-player{
    grid-template-columns:minmax(0,1fr) 126px !important;
  }

  body.subpage-player-open .global-floating-player #progress{
    grid-column:1 / -1 !important;
    position:absolute !important;
    left:8px !important;
    right:8px !important;
    bottom:2px !important;
    width:calc(100% - 16px) !important;
    min-width:0 !important;
  }

  body.subpage-player-open .global-floating-player .eq-bars{
    display:none !important;
  }
}

/* ==========================================================
   CANTAIMY v7.6.29 — desktop floating player layout fix
   ========================================================== */
@media(min-width:901px){
  body.subpage-player-open .global-floating-player{
    position:fixed !important;
    display:grid !important;
    grid-template-columns:minmax(310px,360px) minmax(260px,1fr) minmax(360px,520px) 118px !important;
    align-items:center !important;
    column-gap:22px !important;
    padding-left:28px !important;
    padding-right:28px !important;
  }

  /* Move metadata inward so it no longer hugs the viewport edge. */
  body.subpage-player-open .global-floating-player .player-left{
    grid-column:1 !important;
    justify-self:start !important;
    width:100% !important;
    max-width:350px !important;
    padding-left:4px !important;
    box-sizing:border-box !important;
  }

  /* Transport controls own the centre column. No absolute overlap. */
  body.subpage-player-open .global-floating-player .player-buttons{
    position:static !important;
    grid-column:2 !important;
    justify-self:center !important;
    align-self:center !important;
    transform:none !important;
    z-index:8 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    gap:10px !important;
  }

  body.subpage-player-open .global-floating-player .player-buttons button{
    flex:0 0 auto !important;
  }

  body.subpage-player-open .global-floating-player .player-buttons .play{
    width:58px !important;
    height:58px !important;
    min-width:58px !important;
    min-height:58px !important;
  }

  /* Waveform is now fully separate from the centre controls. */
  body.subpage-player-open .global-floating-player .eq-bars{
    grid-column:3 !important;
    justify-self:center !important;
    width:min(100%,460px) !important;
    padding-left:0 !important;
    box-sizing:border-box !important;
  }

  body.subpage-player-open .global-floating-player .v69-player-actions{
    grid-column:4 !important;
    justify-self:end !important;
    display:flex !important;
    align-items:center !important;
    gap:10px !important;
  }

  body.subpage-player-open .global-floating-player .player-mini-action{
    width:46px !important;
    height:46px !important;
    min-width:46px !important;
    min-height:46px !important;
    padding:0 !important;
    display:grid !important;
    place-items:center !important;
    font-size:30px !important;
    line-height:1 !important;
    font-weight:300 !important;
    border-width:1px !important;
  }

  body.subpage-player-open .global-floating-player #favoriteCurrentBtn{
    font-size:31px !important;
  }

  body.subpage-player-open .global-floating-player #playlistCurrentBtn{
    font-size:34px !important;
    line-height:.9 !important;
  }
}

@media(min-width:901px) and (max-width:1250px){
  body.subpage-player-open .global-floating-player{
    grid-template-columns:minmax(270px,320px) minmax(220px,1fr) minmax(260px,360px) 108px !important;
    column-gap:14px !important;
    padding-left:18px !important;
    padding-right:18px !important;
  }

  body.subpage-player-open .global-floating-player .eq-bars{
    width:min(100%,340px) !important;
  }
}


/* ==========================================================
   CANTAIMY v7.6.30 — Desktop Now Playing pop-up
   ========================================================== */
.now-playing-modal{
  display:none;
}

@media(min-width:821px){
  .v6-player #playerCover{
    cursor:pointer !important;
    pointer-events:auto !important;
    position:relative !important;
    z-index:3 !important;
    transition:transform .16s ease,box-shadow .16s ease !important;
  }

  .v6-player #playerCover:hover{
    transform:scale(1.04) !important;
    box-shadow:0 0 0 2px rgba(0,232,255,.18),0 10px 28px rgba(0,0,0,.28) !important;
  }

  .now-playing-modal{
    position:fixed;
    inset:0;
    z-index:2147483000;
    display:none;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    place-items:center;
    padding:24px;
  }

  .now-playing-modal.open{
    display:grid !important;
    visibility:visible !important;
    opacity:1 !important;
    pointer-events:auto !important;
  }

  .now-playing-backdrop{
    position:absolute;
    inset:0;
    background:rgba(3,1,14,.76);
    backdrop-filter:blur(18px);
  }

  .now-playing-card{
    position:relative;
    z-index:1;
    width:min(430px,calc(100vw - 48px));
    max-height:calc(100vh - 36px);
    overflow:hidden;
    padding:16px;
    border:1px solid rgba(255,255,255,.11);
    border-radius:20px;
    background:
      radial-gradient(circle at 50% 16%,rgba(92,66,255,.16),transparent 34%),
      linear-gradient(180deg,rgba(15,9,45,.985),rgba(7,4,26,.99));
    box-shadow:0 30px 90px rgba(0,0,0,.55);
  }

  .now-playing-close{
    position:absolute;
    z-index:3;
    top:10px;
    right:10px;
    width:38px;
    height:38px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.12);
    border-radius:50%;
    background:rgba(5,3,20,.75);
    color:#fff;
    font-size:25px;
    cursor:pointer;
  }

  .now-playing-cover{
    display:block;
    width:62%;
    max-width:270px;
    aspect-ratio:1 / 1;
    margin:0 auto;
    object-fit:cover;
    border-radius:14px;
    background:#0b0824;
    box-shadow:0 14px 34px rgba(0,0,0,.30);
  }

  .now-playing-body{
    padding:11px 3px 1px;
  }

  .now-playing-body h2{
    margin:0 0 3px;
    color:#fff;
    font-size:22px;
    line-height:1.06;
    letter-spacing:-.025em;
  }

  .now-playing-meta{
    margin:0;
    color:#a3abc0;
    font-size:13px;
  }

  .now-playing-stats{
    display:flex;
    align-items:center;
    gap:10px;
    margin-top:6px;
    color:#8791aa;
    font-size:10.5px;
  }

  .now-playing-stats span:last-child{
    color:#f4cc5c;
  }

  .now-playing-rating{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:8px;
    padding:7px 10px;
    border:1px solid rgba(255,255,255,.065);
    border-radius:10px;
    background:rgba(255,255,255,.025);
  }

  #nowPlayingRatingLabel{
    display:block;
    flex:1 1 auto;
    min-width:0;
    max-width:230px;
    color:#8f99b3;
    font-size:9.5px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:clip;
    position:relative;
  }

  .now-playing-rating-marquee-track{
    display:flex;
    width:max-content;
    max-width:none;
    align-items:center;
    white-space:nowrap;
    will-change:transform;
    animation:nowPlayingRatingMarquee 8s linear infinite;
  }

  .now-playing-rating-marquee-item{
    display:block;
    flex:0 0 auto;
    width:max-content;
    max-width:none;
    overflow:visible;
    text-overflow:clip;
    white-space:nowrap;
    padding-right:46px;
  }

  @keyframes nowPlayingRatingMarquee{
    from{
      transform:translateX(0);
    }
    to{
      transform:translateX(-50%);
    }
  }

  .now-playing-rating-stars{
    display:flex;
    align-items:center;
    gap:2px;
    flex:0 0 auto;
    position:relative;
    z-index:2;
    background:rgba(15,9,45,.96);
    padding-left:4px;
  }

  .now-playing-rating-stars button{
    width:25px;
    height:25px;
    padding:0;
    border:0;
    background:transparent;
    color:#727b94;
    font-size:22px;
    cursor:pointer;
  }

  .now-playing-rating-stars button.selected{
    color:#ffd868;
  }

  .now-playing-rating-stars button:disabled{
    opacity:.42;
    cursor:not-allowed;
  }

  .now-playing-progress-row{
    display:grid;
    grid-template-columns:40px minmax(0,1fr) 40px;
    align-items:center;
    gap:8px;
    margin-top:9px;
    color:#afb6ca;
    font-size:9.5px;
    font-variant-numeric:tabular-nums;
  }

  #nowPlayingProgress{
    width:100%;
    cursor:pointer;
  }

  .now-playing-transport{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    margin-top:10px;
  }

  .now-playing-transport button{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    padding:0;
    border:1px solid rgba(255,255,255,.10);
    border-radius:50%;
    background:#0a071e;
    color:#fff;
    cursor:pointer;
  }

  .now-playing-transport .now-playing-play{
    width:62px;
    height:62px;
    background:#fff;
    color:#d31bb1;
    font-size:19px;
  }

  .now-playing-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:8px;
    margin-top:10px;
  }

  .now-playing-actions button{
    min-height:44px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 12px;
    border:1px solid rgba(255,255,255,.09);
    border-radius:11px;
    background:rgba(255,255,255,.025);
    color:#e4e7f0;
    font-size:11px;
    font-weight:750;
    cursor:pointer;
  }

  .now-playing-actions button.active{
    color:#ff69cf;
    border-color:rgba(255,74,195,.28);
    background:rgba(255,74,195,.07);
  }

  .now-playing-action-icon{
    font-size:24px;
    line-height:1;
  }

  .now-playing-origin{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    margin-top:7px;
    padding:5px 2px 0;
    color:#727c95;
    font-size:8.5px;
  }

  .now-playing-origin strong{
    color:#aeb7cd;
    font-size:9.5px;
    font-weight:700;
  }

  body.now-playing-open{
    overflow:hidden;
  }
}

@media(max-width:820px){
  .now-playing-modal{
    display:none !important;
  }

  .v6-player #playerCover{
    cursor:default !important;
  }
}


@media(min-width:821px) and (max-height:820px){
  .now-playing-card{
    width:min(410px,calc(100vw - 40px));
    padding:14px;
  }

  .now-playing-cover{
    width:54%;
    max-width:225px;
  }

  .now-playing-body h2{
    font-size:20px;
  }

  .now-playing-transport .now-playing-play{
    width:56px;
    height:56px;
  }

  .now-playing-actions button{
    min-height:40px;
  }
}


/* v7.6.39 — playback buffering feedback */
body.player-buffering .v6-player .play,
body.player-buffering .now-playing-play{
  opacity:.78;
}
