.player-wrap{
    max-width:920px;
    width:100%;
    margin:26px auto;
    padding:16px;
    font-family:system-ui, Arial, sans-serif;
    color:var(--text);
}

.player-shell{
  width:100%;
  background:rgba(17,24,39,.88);
  backdrop-filter:blur(6px);
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--r);
  box-shadow:var(--shadow);
  overflow:hidden;
}

.player-head{
    padding:14px 16px;
    border-bottom:1px solid rgba(255,255,255,.08);
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
}

.player-head .title{
    font-weight:900;
}

.player-head .sub{
    font-size:.92rem;
    color:var(--muted);
}

.section{
    padding:14px 16px 16px;
}

.panel{
  background:linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid rgba(255,255,255,.08);
  border-radius:var(--r2);
  padding:12px;
  margin-bottom:12px;
}

.album-grid{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:flex-start;
}

.album-card{
  width:140px;
  display:block;
  text-decoration:none;
  color:inherit;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  overflow:hidden;
  transition:.15s;
}

.album-card:hover{
  transform:translateY(-2px);
  border-color:rgba(79,140,255,.55);
  background:rgba(255,255,255,.07);
}

.album-card img{
  width:100%;
  aspect-ratio:1/1;
  object-fit:cover;
  display:block;
  background:rgba(255,255,255,.04);
}

.album-meta{
  padding:10px 10px 12px;
  border-top:1px solid rgba(255,255,255,.08);
}

.album-name{
  font-weight:800;
  font-size:.95rem;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.album-desc{
  margin-top:10px;
  line-height:1.45;
  color:var(--muted);
}

.nowplaying{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:8px;
}

.nowplaying .label{
    font-size:.85rem;
    color:var(--muted);
}

.nowplaying .value{
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    max-width:65vw;
}

.media{
    width:100%;
    border-radius:12px;
    background:rgba(0,0,0,.35);
}

.controls{
    display:flex;
    justify-content:center;
    gap:10px;
    margin-top:10px;
    flex-wrap:wrap;
}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 12px;
  border-radius:12px;
  cursor:pointer;
  transition:.14s;
}

.btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.10);
    border-color:rgba(79,140,255,.55);
}

.btn.primary{
    background:rgba(79,140,255,.22);
    border-color:rgba(79,140,255,.40);
}

.btn.primary:hover{
    background:rgba(79,140,255,.30);
    border-color:rgba(79,140,255,.65);
}

.back-link{
  display:inline-block;
  text-decoration:none;
  margin-bottom:12px;
}

.admin-link{
  display:inline-block;
  text-decoration:none;
  margin-left:8px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:6px;
  font-size:.78rem;
  color:rgba(243,246,255,.9);
  padding:4px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.05);
}

.badge.video{
    border-color:rgba(79,140,255,.35);
    background:rgba(79,140,255,.12);
}

.badge.audio{
    border-color:rgba(255,255,255,.14);
}

.playlist{
    list-style:none;
    padding:0;
    margin:0;
    max-height:420px;
    overflow:auto;
    border-radius:12px;
}

.playlist li{
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 10px;
    border-bottom:1px solid rgba(255,255,255,.08);
    cursor:pointer;
    transition:.14s;
}

.playlist li:hover{
    background:rgba(255,255,255,.06);
}

.playlist li.active{
    background:rgba(79,140,255,.20);
}

.track-index{
    width:34px;
    text-align:right;
    color:var(--muted);
    font-variant-numeric:tabular-nums;
}

.track-title{
    flex:1;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.helper{
    color:var(--muted);
}

@media(max-width:700px){
    .player-wrap{
        margin:0;
        padding:0;
        max-width:none;
    }

    .player-shell{
        border-radius:0;
        border-left:0;
        border-right:0;
    }

    .player-head{
        flex-direction:column;
        align-items:flex-start;
    }

    .album-card{
        width:calc(50% - 6px);
    }

    .section{
        padding:12px;
    }
}

@media(max-width:420px){
    .album-card{
        width:100%;
    }
}

.album-info-box{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.album-cover-large{
    flex:0 0 200px;
}

.album-cover-large img{
    width:200px;
    height:200px;
    object-fit:cover;
    display:block;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
    box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.album-desc{
    flex:1;
    line-height:1.6;
}

.album-desc h2{
    margin:0 0 12px;
    font-size:1.4rem;
}

@media(max-width:700px){
    .album-info-box{
        flex-direction:column;
    }

    .album-cover-large{
        flex:none;
    }

    .album-cover-large img{
        width:100%;
        max-width:280px;
        height:auto;
        aspect-ratio:1/1;
    }
}

.custom-player{
    width:100%;
    border-radius:16px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
    border:1px solid rgba(255,255,255,.10);
    padding:14px;
    box-shadow:0 12px 34px rgba(0,0,0,.35);
}

.custom-player-main{
    display:flex;
    align-items:center;
    gap:12px;
}

.cp-btn{
    width:44px;
    height:44px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.07);
    color:var(--text);
    cursor:pointer;
    font-size:1rem;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:.15s;
}

.cp-btn:hover{
    transform:translateY(-1px);
    background:rgba(255,255,255,.13);
    border-color:rgba(79,140,255,.55);
}

.cp-play{
    width:56px;
    height:56px;
    font-size:1.25rem;
    background:rgba(79,140,255,.25);
    border-color:rgba(79,140,255,.55);
}

.cp-info{
    flex:1;
    min-width:0;
}

.cp-title{
    font-weight:900;
    margin-bottom:8px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}

.cp-progress-wrap{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--muted);
    font-size:.85rem;
}

#progressBar,
#volumeBar{
    accent-color:var(--accent);
    cursor:pointer;
}

#progressBar{
    width:100%;
}

.cp-volume{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:130px;
}

#volumeBar{
    width:90px;
}

.custom-video-view{
    width:100%;
    max-height:420px;
    margin-top:14px;
    border-radius:14px;
    background:#000;
}

@media(max-width:700px){
    .custom-player-main{
        flex-wrap:wrap;
    }

    .cp-info{
        order:2;
        flex-basis:100%;
    }

    .cp-volume{
        order:3;
        width:100%;
    }

    #volumeBar{
        width:100%;
    }
}

body{
    padding-bottom:130px;
}

.fixed-player{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:9999;
    background:
        radial-gradient(900px 260px at 20% 0%, rgba(79,140,255,.20), transparent 60%),
        linear-gradient(180deg, rgba(17,24,39,.98), rgba(7,11,18,.98));
    border-top:1px solid rgba(255,255,255,.12);
    box-shadow:0 -12px 40px rgba(0,0,0,.55);
    padding:10px 14px;
    backdrop-filter:blur(10px);
}

.fp-main{
    max-width:1100px;
    margin:0 auto;
    display:flex;
    align-items:center;
    gap:12px;
}

.fp-btn{
    width:42px;
    height:42px;
    border-radius:999px;
    border:1px solid rgba(255,255,255,.16);
    background:rgba(255,255,255,.07);
    color:var(--text);
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
}

.fp-btn:hover{
    background:rgba(255,255,255,.13);
    border-color:rgba(79,140,255,.55);
}

.fp-play{
    width:54px;
    height:54px;
    background:rgba(79,140,255,.25);
    border-color:rgba(79,140,255,.55);
    font-size:1.2rem;
}

.fp-info{
    flex:1;
    min-width:0;
}

.fp-title{
    font-weight:900;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
    margin-bottom:7px;
}

.fp-progress{
    display:flex;
    align-items:center;
    gap:10px;
    color:var(--muted);
    font-size:.85rem;
}

#progressBar{
    flex:1;
}

#progressBar,
#volumeBar{
    accent-color:var(--accent);
    cursor:pointer;
}

.fp-volume{
    display:flex;
    align-items:center;
    gap:8px;
    min-width:125px;
}

#volumeBar{
    width:90px;
}

.fp-video-wrap{
    max-width:720px;
    margin:0 auto 10px;
}

.fp-video-wrap video{
    width:100%;
    max-height:280px;
    border-radius:14px;
    background:#000;
    display:block;
}

.album-info-box{
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.album-cover-large{
    flex:0 0 200px;
}

.album-cover-large img{
    width:200px;
    height:200px;
    object-fit:cover;
    display:block;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.10);
    background:rgba(255,255,255,.04);
    box-shadow:0 12px 30px rgba(0,0,0,.35);
}

.album-desc{
    flex:1;
    line-height:1.6;
}

.album-desc h2{
    margin:0 0 12px;
    font-size:1.4rem;
}

@media(max-width:700px){
    body{
        padding-bottom:170px;
    }

    .fp-main{
        flex-wrap:wrap;
    }

    .fp-info{
        order:2;
        flex-basis:100%;
    }

    .fp-volume{
        order:3;
        width:100%;
    }

    #volumeBar{
        width:100%;
    }

    .album-info-box{
        flex-direction:column;
    }

    .album-cover-large{
        flex:none;
    }

    .album-cover-large img{
        width:100%;
        max-width:280px;
        height:auto;
        aspect-ratio:1/1;
    }
}