/* Music Control */
.music-control {
    position: fixed;
    height: 20px;
    top: 2rem;
    right: 2rem;
    background: rgba(22, 24, 28, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(47, 51, 54, 0.8);
    border-radius: 50px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1000;
    transition: all 0.3s ease;
}

.music-control:hover {
    transform: translateY(-2px);
    box-shadow: 0 0px 30px rgba(29, 155, 240, 0.2);
    cursor: pointer;
}

.music-toggle {
    background: none;
    border: none;
    color: #1d9bf0;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.music-toggle:hover {
    transform: scale(1.1);
}

.music-info {
    color: #71767b;
    font-size: 0.9rem;
    align-items: center;
    gap: 0.5rem;
}

.music-visualizer {
    right: 0rem;
    display: flex;
    align-items: center;
    gap: .2rem;
    z-index: 1000;
}

.music-bar {
    width: 3px;
    height: 15px;
    background: #ffffff;
    border-radius: 2px;
    animation: musicChaosPulse linear infinite;
}

.music-bar:nth-child(1) {
    animation-duration: 1.7s;
    animation-delay: 0s;
}
.music-bar:nth-child(2) {
    animation-duration: 1.1s;
    animation-delay: 0.2s;
}
.music-bar:nth-child(3) {
    animation-duration: 1.6s;
    animation-delay: 0.4s;
}
.music-bar:nth-child(4) {
    animation-duration: 1.9s;
    animation-delay: 0.1s;
}

@keyframes musicChaosPulse {
    0%   { height: 4px; opacity: 0.4; }
    20%  { height: 20px; opacity: 1; }
    40%  { height: 8px; opacity: 0.3; }
    60%  { height: 18px; opacity: 0.9; }
    80%  { height: 10px; opacity: 0.6; }
    100% { height: 5px; opacity: 0.5; }
}


.ambient-popup {
    position: fixed;
    top: 6%;
    right: 1%;
    background: #fff;
    color: #000;
    padding: 1rem 1.2rem;
    border-radius: 10px;
    font-size: 0.9rem;
    z-index: 9999;
    display: none;
    align-items: center;
    gap: 0.5rem;
    animation: fadein 0.5s ease;
    box-shadow: 0 0 20px #fff;
    animation: glow 3s linear infinite, fadein 0.5s ease;
}

@keyframes glow {
    0% {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    }
    25% {
        box-shadow: 0 0 10px #a1a1a1, 0 0 20px #a1a1a1, 0 0 30px #a1a1a1;
    }
    50% {
        box-shadow: 0 0 10px #b9b9b9, 0 0 20px #b9b9b9, 0 0 30px #b9b9b9;
    }
    75% {
        box-shadow: 0 0 10px #a1a1a1, 0 0 20px #a1a1a1, 0 0 30px #a1a1a1;
    }
    100% {
        box-shadow: 0 0 10px #fff, 0 0 20px #fff, 0 0 30px #fff;
    }
}

@keyframes fadein {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1000px) {
    .ambient-popup {
    top: 8%;
    }
}