.player {
    position: fixed;
    bottom: 3.8rem;
    right: 1.6rem;
    z-index: 500;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: 'Space Mono', monospace;
}

.player-btn {
    background: none;
    border: 1px solid rgba(255,255,255,0.22);
    color: rgba(255,255,255,0.45);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.25s, color 0.25s;
    flex-shrink: 0;
    padding: 0;
    line-height: 1;
}

.player-btn:hover {
    border-color: rgba(255,255,255,0.7);
    color: rgba(255,255,255,0.9);
}

.player-track {
    font-size: 0.5rem;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.22);
    text-transform: uppercase;
    max-width: 130px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.player-bars {
    display: flex;
    gap: 2px;
    align-items: flex-end;
    height: 12px;
}

.player-bars i {
    display: block;
    width: 2px;
    height: 12px;
    background: rgba(255,255,255,0.3);
    border-radius: 1px;
    transform: scaleY(0.15);
    transform-origin: bottom;
    transition: transform 0.2s;
}

.player.playing .player-bars i {
    animation: vu-bar 0.4s ease-in-out infinite alternate;
}

.player-bars i:nth-child(1) { animation-duration: 0.38s; animation-delay: 0.00s; }
.player-bars i:nth-child(2) { animation-duration: 0.52s; animation-delay: 0.09s; }
.player-bars i:nth-child(3) { animation-duration: 0.43s; animation-delay: 0.18s; }
.player-bars i:nth-child(4) { animation-duration: 0.61s; animation-delay: 0.04s; }
.player-bars i:nth-child(5) { animation-duration: 0.35s; animation-delay: 0.13s; }

@keyframes vu-bar {
    from { transform: scaleY(0.15); }
    to   { transform: scaleY(1.0);  }
}

/* ── Page nav overrides (more visible) ── */
.pnav {
    gap: 0.2rem !important;
    bottom: 1.2rem !important;
    background: rgba(0,0,0,0.45) !important;
    backdrop-filter: blur(8px) !important;
    padding: 0.5rem 0.9rem !important;
    border-radius: 2rem !important;
    border: 1px solid rgba(255,255,255,0.08) !important;
}

.pnav a {
    font-size: 0.72rem !important;
    letter-spacing: 0.12em !important;
    color: rgba(255,255,255,0.45) !important;
    padding: 0.35rem 0.45rem !important;
    border-radius: 0.2rem !important;
}

.pnav a:hover {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.08) !important;
}

.pnav a.cur {
    color: rgba(255,255,255,0.95) !important;
    border-bottom: 1px solid rgba(255,255,255,0.6) !important;
}

/* ── Explore variations — inline pnav item ── */
.pnav a.pnav-explore {
    color: rgba(255,255,255,0.55) !important;
    border-left: 1px solid rgba(255,255,255,0.12) !important;
    margin-left: 0.3rem !important;
    padding-left: 0.7rem !important;
    letter-spacing: 0.06em !important;
}
.pnav a.pnav-explore:hover {
    color: rgba(255,255,255,0.95) !important;
    background: rgba(255,255,255,0.08) !important;
}

/* Light variant for white-background pages */
.player.player--dark .player-btn {
    border-color: rgba(0,0,0,0.2);
    color: rgba(0,0,0,0.4);
}
.player.player--dark .player-btn:hover {
    border-color: rgba(0,0,0,0.7);
    color: rgba(0,0,0,0.9);
}
.player.player--dark .player-track {
    color: rgba(0,0,0,0.3);
}
.player.player--dark .player-bars i {
    background: rgba(0,0,0,0.3);
}
