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

.music-mini-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: rgba(20, 8, 4, 0.95);
    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;
    padding: 0 16px;
    gap: 12px;
    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 — set by JS on indicator hover */
.music-mini-player[data-bar-visible="true"] {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.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;
}

.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;
}

.music-mini-player__controls {
    display: flex;
    align-items: center;
    gap: 8px;
    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;
}

.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: 40px;
    height: 40px;
}

.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;
}

.music-mini-player__volume {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.music-mini-player__volume-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 60px;
    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;
}

.music-mini-player__expand {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    padding: 6px;
    transition: color 0.2s;
}

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

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

/* ── Music Indicator (permanent SVG widget) ───────────────────────────────── */

.music-indicator {
    position: fixed;
    bottom: 18px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(20, 8, 4, 0.85);
    border: 1px solid rgba(245, 200, 66, 0.25);
    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.6);
    box-shadow: 0 0 12px rgba(245, 200, 66, 0.2);
    transform: scale(1.08);
}

/* When bar is open, push indicator above it */
.music-indicator[data-bar-open="true"] {
    bottom: 78px;
}

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

/* Playing state — bright gold icon + glow */
.music-indicator[data-playing="true"] {
    color: #f5c842;
}

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

/* Mobile */
@media (max-width: 600px) {
    .music-mini-player__volume {
        display: none;
    }

    .music-mini-player__time {
        display: none;
    }

    .music-mini-player__expand {
        display: none;
    }

    .music-mini-player {
        padding: 0 10px;
        gap: 8px;
    }

    .music-indicator {
        width: 44px;
        height: 44px;
        bottom: 16px;
        right: 20px;
    }

    .music-indicator[data-bar-open="true"] {
        bottom: 72px;
    }

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