/* ── Music Mini-Player ─────────────────────────────────────────────────────── */

.music-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(20, 8, 4, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(245, 200, 66, 0.15);
    z-index: 45;
    display: flex;
    align-items: center;
    /* 96px left pad = indicator (64px) + gap (16px) + padding (16px) */
    padding: 0 20px 0 96px;
    gap: 16px;
    font-family: 'Share Tech Mono', monospace;
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

/* Bar visible */
.music-mini-player[data-bar-visible="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Progress bar — absolute, spans full width at top */
.music-mini-player__progress {
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.music-mini-player__progress-bar {
    height: 100%;
    background: #f5c842;
    width: 0%;
    transition: width 0.3s linear;
    border-radius: 0 2px 2px 0;
}

.music-mini-player__progress:hover .music-mini-player__progress-bar {
    height: 5px;
    margin-top: -1px;
}

/* Controls group — prev / play / next */
.music-mini-player__controls {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.music-mini-player__btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    padding: 6px;
    font-size: 18px;
    line-height: 1;
    border-radius: 50%;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.music-mini-player__btn:hover {
    color: #f5c842;
    background: rgba(245, 200, 66, 0.1);
}

.music-mini-player__btn--play {
    color: #f5c842;
    font-size: 22px;
    width: 42px;
    height: 42px;
}

/* Cover art */
.music-mini-player__cover {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: rgba(245, 200, 66, 0.1);
    border: 1px solid rgba(245, 200, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.music-mini-player__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.music-mini-player__cover-icon {
    font-size: 18px;
    opacity: 0.6;
}

/* Track info — grows to fill available space */
.music-mini-player__info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.music-mini-player__title {
    color: #f5c842;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.music-mini-player__artist {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

/* Time */
.music-mini-player__time {
    color: rgba(255, 255, 255, 0.4);
    font-size: 10px;
    flex-shrink: 0;
    min-width: 74px;
    text-align: center;
}

/* Volume */
.music-mini-player__volume {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.music-mini-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 64px;
    height: 3px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

.music-mini-player__volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5c842;
    cursor: pointer;
}

.music-mini-player__volume-slider::-moz-range-thumb {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f5c842;
    border: none;
    cursor: pointer;
}

/* Shuffle */
.music-mini-player__shuffle {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 6px;
    font-size: 15px;
    line-height: 1;
    border-radius: 4px;
    transition: color 0.2s;
    flex-shrink: 0;
}

.music-mini-player__shuffle:hover,
.music-mini-player__shuffle[data-active="true"] {
    color: #f5c842;
}

/* Expand link — anchored to far right */
.music-mini-player__expand {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.35);
    font-size: 15px;
    padding: 6px;
    flex-shrink: 0;
    transition: color 0.2s;
}

.music-mini-player__expand:hover {
    color: #f5c842;
}

/* ── Music Indicator ──────────────────────────────────────────────────────── */

.music-indicator {
    position: fixed;
    bottom: 16px;
    left: 16px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20, 8, 4, 0.9);
    border: 1px solid rgba(245, 200, 66, 0.3);
    z-index: 52;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
    color: rgba(245, 200, 66, 0.5);
}

.music-indicator:hover {
    border-color: rgba(245, 200, 66, 0.7);
    box-shadow: 0 0 16px rgba(245, 200, 66, 0.25);
    transform: scale(1.06);
}

/* When bar is open, hide indicator */
.music-indicator[data-bar-open="true"] {
    opacity: 0;
    pointer-events: none;
}

.music-indicator svg {
    width: 30px;
    height: 28px;
    transition: color 0.3s, filter 0.3s;
}

/* Playing state — bright gold + glow */
.music-indicator[data-playing="true"] {
    color: #f5c842;
    border-color: rgba(245, 200, 66, 0.5);
}

.music-indicator[data-playing="true"] svg {
    filter: drop-shadow(0 0 6px rgba(245, 200, 66, 0.5));
}

/* ── Mobile ───────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
    .music-mini-player {
        padding: 0 10px 0 10px;
        gap: 8px;
        height: 56px;
    }

    .music-mini-player__volume,
    .music-mini-player__time,
    .music-mini-player__expand,
    .music-mini-player__cover {
        display: none;
    }

    .music-indicator {
        width: 48px;
        height: 48px;
        bottom: 14px;
        left: 14px;
    }

    .music-indicator[data-bar-open="true"] {
        opacity: 0;
        pointer-events: none;
    }

    .music-indicator svg {
        width: 22px;
        height: 20px;
    }
}
