/* ================= PLAYER V2 ================= */

.player-v2{
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    z-index: 9999;
    box-sizing: border-box;

    display: grid;
    grid-template-columns: minmax(260px,320px) minmax(0,1fr) minmax(130px,180px);
    align-items: center;
    gap: clamp(12px,1.5vw,22px);

    padding: 14px 56px 14px 20px;

    background:
        linear-gradient(180deg, rgba(10,8,10,0.78), rgba(4,4,6,0.92)),
        radial-gradient(circle at center, rgba(214,176,92,0.07), transparent 68%),
        linear-gradient(90deg, rgba(181,140,65,0.08), rgba(255,255,255,0));

    border-top: 1px solid rgba(255,255,255,0.08);
    box-shadow:
        0 -10px 35px rgba(0,0,0,0.45),
        0 -2px 12px rgba(214,176,92,0.06);

    backdrop-filter: blur(18px) saturate(118%);
    -webkit-backdrop-filter: blur(18px) saturate(118%);

    transition:
        box-shadow .25s ease,
        background .25s ease,
        transform .25s ease,
        opacity .25s ease;

    overflow: hidden;
}

.player-v2::before{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: linear-gradient(to top, rgba(255,255,255,0.03), transparent 45%);
    opacity:.55;
}

.player-v2.playing::after{
    content:"";
    position:absolute;
    inset:0;
    pointer-events:none;
    background: radial-gradient(circle at center, rgba(214,176,92,.06), transparent 70%);
    opacity:.6;
}

.player-v2:hover{
    box-shadow:
        0 -14px 45px rgba(0,0,0,0.60),
        0 -4px 18px rgba(214,176,92,0.14);
}

.player-v2.playing{
    box-shadow:
        0 -12px 40px rgba(0,0,0,0.56),
        0 -3px 16px rgba(214,176,92,0.11);
}

.player-v2.hidden{
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

/* ================= DISC ================= */

.player-v2__disc{
    width: 72px;
    height: 72px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;

    background:
        radial-gradient(circle at 28% 28%, rgba(255,255,255,.30), transparent 18%),
        radial-gradient(circle at 68% 72%, rgba(255,255,255,.05), transparent 16%),
        radial-gradient(circle at 50% 50%, #202020 0%, #090909 58%, #1a1a1a 78%, #2c2c2c 100%);

    border: 1px solid rgba(255,255,255,.11);

    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        inset 0 0 18px rgba(255,255,255,.02),
        inset 0 0 34px rgba(0,0,0,.92),
        0 0 14px rgba(255,255,255,.06),
        0 10px 26px rgba(0,0,0,.68);

    display: flex;
    align-items: center;
    justify-content: center;
}

/* vinyl grooves + gloss */

.player-v2__disc::before{
    content:"";
    position:absolute;
    inset:0;
    border-radius:50%;
    background:
        repeating-radial-gradient(
            circle,
            rgba(255,255,255,.032) 0px,
            rgba(255,255,255,.032) 1px,
            rgba(0,0,0,0) 2px,
            rgba(0,0,0,0) 4px
        ),
        radial-gradient(circle at 24% 22%, rgba(255,255,255,.22), transparent 24%),
        radial-gradient(circle at 72% 74%, rgba(255,255,255,.04), transparent 18%);
    opacity: .82;
    mix-blend-mode: screen;
    pointer-events: none;
}

/* center spindle */

.player-v2__disc::after{
    content:"";
    position:absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, #e4d2a1 0%, #c7ab6f 62%, #8d7345 100%);
    box-shadow:
        0 0 0 3px rgba(7,7,7,.72),
        0 0 0 4px rgba(255,255,255,.04),
        inset 0 1px 2px rgba(255,255,255,.22),
        inset 0 -1px 2px rgba(0,0,0,.32);
    z-index: 3;
}

/* center label image */

.player-v2__cover{
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
    box-shadow:
        0 0 0 2px rgba(0,0,0,.58),
        0 0 0 3px rgba(255,255,255,.05),
        0 0 8px rgba(255,255,255,.08);
    filter: saturate(1.02) contrast(1.03);
}

/* spinning */

.player-v2__disc.is-playing{
    animation: discSpin 5.4s linear infinite;
}

/* glow when playing */

.player-v2.playing .player-v2__disc{
    box-shadow:
        inset 0 0 0 1px rgba(255,255,255,.05),
        inset 0 0 18px rgba(255,255,255,.02),
        inset 0 0 34px rgba(0,0,0,.92),
        0 0 20px rgba(214,176,92,.20),
        0 10px 26px rgba(0,0,0,.68);
}

@keyframes discSpin{
    from{transform:rotate(0deg)}
    to{transform:rotate(360deg)}
}

/* ================= LEFT ================= */

.player-v2__left{
    display:flex;
    align-items:center;
    gap:14px;
    min-width:0;
}

.player-v2__meta{
    display:flex;
    flex-direction:column;
    min-width:0;
    flex:1;
}

.player-v2__title{
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    line-height: 1.15;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: #f8f3ea;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;

    text-shadow: 0 2px 14px rgba(0,0,0,.45);
    margin: 0 0 6px 0;
    max-width: 100%;
}

.player-v2__artist{
    font-family: 'Inter', sans-serif;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: 2.4px;
    text-transform: uppercase;
    color: rgba(230,215,185,.55);

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ================= CENTER ================= */

.player-v2__center{
    width:100%;
    min-width:0;
}

.player-v2__controls-row{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-bottom:8px;
}

.player-v2__play{
    width:58px;
    height:58px;
    border-radius:50%;
    background:linear-gradient(180deg,#e2bf70,#c79a46);
    border:none;
    cursor:pointer;
    font-size:18px;
    color:#1a1207;
    box-shadow:
        0 8px 22px rgba(0,0,0,.30),
        0 0 18px rgba(214,176,92,.16),
        inset 0 1px 0 rgba(255,255,255,.28);
    flex-shrink:0;
    transition:transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.player-v2__play:hover{
    transform:scale(1.04);
    box-shadow:
        0 10px 26px rgba(0,0,0,.34),
        0 0 22px rgba(214,176,92,.22),
        inset 0 1px 0 rgba(255,255,255,.32);
}

.player-v2__play:active{
    transform:scale(.98);
}

.player-v2__icon-btn{
    width:38px;
    height:38px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.05);
    cursor:pointer;
    background:rgba(255,255,255,.07);
    color:rgba(255,255,255,.92);
    flex-shrink:0;
    transition:background .2s ease, transform .2s ease, opacity .2s ease, border-color .2s ease, box-shadow .2s ease;
    opacity:.85;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.player-v2__icon-btn:hover{
    background:rgba(255,255,255,.14);
    border-color:rgba(255,255,255,.08);
    transform:scale(1.06);
    opacity:1;
    box-shadow:0 0 12px rgba(214,176,92,.18);
}

.player-v2__icon-btn:active{
    transform:scale(.98);
}

/* ================= WAVE ================= */

.player-v2__wave-wrap{
    width:100%;
    min-width:0;
}

#visualizer{
    width:100%;
    height:34px;
    opacity:.96;
    display:block;
}

/* ================= PROGRESS ================= */

.player-v2__progress-bar{
    position:relative;
    width:100%;
    height:6px;
    border-radius:999px;
    background:rgba(255,255,255,.08);
    cursor:pointer;
    overflow:visible;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.28);
}

.player-v2__progress-fill{
    position:absolute;
    left:0;
    top:0;
    height:100%;
    width:0;
    border-radius:inherit;
    background:linear-gradient(90deg,#d8b15c,#f0d38f,#d8b15c);
    background-size:200% 100%;
    box-shadow:
        0 0 12px rgba(216,177,92,.22),
        0 0 2px rgba(255,255,255,.10);
}

.player-v2.playing .player-v2__progress-fill{
    animation: progressLight 4s linear infinite;
}

@keyframes progressLight{
    0%{background-position:0% 0}
    100%{background-position:200% 0}
}

.player-v2__progress-thumb{
    position:absolute;
    top:50%;
    left:0;
    width:14px;
    height:14px;
    border-radius:50%;
    background:#f2dfb0;
    transform:translate(-50%,-50%);
    box-shadow:
        0 0 0 2px rgba(18,12,6,.55),
        0 0 10px rgba(241,223,180,.28);
    transition:transform .16s ease, box-shadow .16s ease;
}

.player-v2__progress-bar:hover .player-v2__progress-thumb,
.player-v2__progress-bar.is-dragging .player-v2__progress-thumb{
    transform:translate(-50%,-50%) scale(1.08);
    box-shadow:
        0 0 0 2px rgba(18,12,6,.65),
        0 0 14px rgba(241,223,180,.34);
}

.player-v2__time{
    display:flex;
    justify-content:space-between;
    font-size:11px;
    color:rgba(222,214,197,.72);
    margin-top:6px;
}

/* ================= RIGHT ================= */

.player-v2__right{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:12px;
    min-width:130px;
}

.player-v2__mute{
    width:36px;
    height:36px;
    border-radius:50%;
    border:1px solid rgba(255,255,255,.05);
    background:rgba(255,255,255,.05);
    color:#fff;
    cursor:pointer;
    flex-shrink:0;
    transition:background .2s ease, transform .2s ease, border-color .2s ease;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}

.player-v2__mute:hover{
    background:rgba(255,255,255,.10);
    border-color:rgba(255,255,255,.08);
    transform:scale(1.05);
}

#volumeSlider{
    -webkit-appearance:none;
    appearance:none;
    width:clamp(88px,8vw,132px);
    height:4px;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(215,177,95,.95), rgba(255,255,255,.24));
    outline:none;
    flex-shrink:0;
    box-shadow:
        0 0 8px rgba(215,177,95,.16),
        inset 0 1px 1px rgba(0,0,0,.25);
}

#volumeSlider::-webkit-slider-runnable-track{
    height:4px;
    border-radius:999px;
    background:transparent;
}

#volumeSlider::-webkit-slider-thumb{
    -webkit-appearance:none;
    appearance:none;
    width:16px;
    height:16px;
    margin-top:-6px;
    border-radius:50%;
    border:none;
    background:#e7c57b;
    box-shadow:
        0 0 0 2px rgba(20,14,8,.55),
        0 0 12px rgba(215,177,95,.34);
    cursor:pointer;
}

#volumeSlider::-moz-range-track{
    height:4px;
    border:none;
    border-radius:999px;
    background:linear-gradient(90deg, rgba(215,177,95,.95), rgba(255,255,255,.24));
}

#volumeSlider::-moz-range-thumb{
    width:16px;
    height:16px;
    border:none;
    border-radius:50%;
    background:#e7c57b;
    box-shadow:
        0 0 0 2px rgba(20,14,8,.55),
        0 0 12px rgba(215,177,95,.34);
    cursor:pointer;
}

#volumeSlider:hover::-webkit-slider-thumb{
    transform:scale(1.04);
}

#volumeSlider:hover::-moz-range-thumb{
    transform:scale(1.04);
}

/* ================= CLOSE ================= */

.player-close{
    position:absolute;
    top:8px;
    right:10px;
    width:28px;
    height:28px;
    border:none;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,.04);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    color:rgba(255,255,255,.45);
    font-size:14px;
    cursor:pointer;
    z-index:2;
    transition:color .2s ease, transform .2s ease, background .2s ease;
}

.player-close:hover{
    color:#fff;
    background:rgba(255,255,255,.12);
    transform:scale(1.08);
}

/* ================= RESPONSIVE ================= */

@media (max-width:1100px){

    .player-v2{
        grid-template-columns:minmax(220px,280px) minmax(0,1fr) minmax(120px,150px);
        padding:12px 48px 12px 16px;
    }

    .player-v2__title{
        font-size:16px;
    }

    #volumeSlider{
        width:96px;
    }
}

@media (max-width:900px){

    .player-v2{
        grid-template-columns:1fr;
        gap:14px;
        padding:14px 16px 18px;
    }

    .player-v2__left,
    .player-v2__center,
    .player-v2__right{
        width:100%;
    }

    .player-v2__right{
        justify-content:flex-start;
    }

    .player-v2__disc{
        width:62px;
        height:62px;
    }

    .player-v2__title{
        font-size:16px;
    }
}

@media (min-width:2000px){

    .player-v2{
        padding:18px 80px 18px 28px;
        grid-template-columns:minmax(320px,420px) minmax(0,1fr) minmax(160px,220px);
    }

    .player-v2__disc{
        width:76px;
        height:76px;
    }

    .player-v2__title{
        font-size:22px;
    }

    .player-v2__artist{
        font-size:12px;
    }

    .player-v2__play{
        width:62px;
        height:62px;
    }

    .player-v2__icon-btn{
        width:40px;
        height:40px;
    }

    #visualizer{
        height:40px;
    }

    #volumeSlider{
        width:150px;
    }
}