/* ==========================================================================
 *  [stagezone_player] – fixed bottom audio player
 * ========================================================================== */

.sz-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 950;
    background: rgba(30, 30, 36, .95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--sz-color-accent-border, rgba(255, 215, 0, .25));
    padding: .6rem 0;
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s ease, opacity .3s ease;
}

.sz-player--visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.sz-player__inner {
    display: flex;
    align-items: center;
    gap: .65rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.2rem;
}

/* Play button */
.sz-player__btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--sz-color-accent, #ffd700);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s;
}

.sz-player__btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 18px rgba(255, 215, 0, .4);
}

.sz-player__icon {
    width: 24px;
    height: 24px;
    color: #1a1a1a;
}

.sz-player__icon--pause {
    display: none;
}

.sz-player__btn--playing .sz-player__icon--play {
    display: none;
}

.sz-player__btn--playing .sz-player__icon--pause {
    display: block;
}

/* Prev / Next */
.sz-player__nav {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, .5);
    transition: color .2s, transform .2s;
}

.sz-player__nav:hover {
    color: var(--sz-color-accent, #ffd700);
    transform: scale(1.12);
}

.sz-player__nav svg {
    width: 20px;
    height: 20px;
}

/* Track info */
.sz-player__info {
    flex-shrink: 0;
    min-width: 110px;
    max-width: 200px;
    overflow: hidden;
}

.sz-player__track {
    display: block;
    font-weight: 700;
    font-size: .95rem;
    color: #f5f5f5;
    letter-spacing: .03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sz-player__artist {
    display: block;
    font-size: .72rem;
    color: var(--sz-color-accent, #ffd700);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Waveform progress */
.sz-player__progress {
    flex: 1;
    position: relative;
    height: 32px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.sz-player__waveform {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    padding: 4px 0;
}

.sz-player__bar {
    flex: 1;
    background: rgba(255, 255, 255, .12);
    border-radius: 1px;
    transition: background-color .15s;
}

.sz-player__bar--active {
    background: var(--sz-color-accent, #ffd700);
}

.sz-player__seek {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
}

/* Time */
.sz-player__time {
    flex-shrink: 0;
    font-size: .82rem;
    color: rgba(255, 255, 255, .5);
    min-width: 80px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sz-player__time-sep {
    margin: 0 2px;
}

/* Body padding when player visible */
body.sz-player-active {
    padding-bottom: 70px;
}

/* Responsive */
@media (max-width: 768px) {
    .sz-player__inner {
        gap: .4rem;
        padding: 0 .6rem;
    }
    .sz-player__btn {
        width: 40px;
        height: 40px;
    }
    .sz-player__icon {
        width: 20px;
        height: 20px;
    }
    .sz-player__info {
        min-width: 80px;
        max-width: 120px;
    }
    .sz-player__track {
        font-size: .82rem;
    }
    .sz-player__time {
        font-size: .72rem;
        min-width: 60px;
    }
    body.sz-player-active {
        padding-bottom: 60px;
    }
}

@media (max-width: 480px) {
    .sz-player__info {
        display: none;
    }
    #sz-duration,
    .sz-player__time-sep {
        display: none;
    }
}
