* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, black, black);
    color: black;
    min-height: 100vh;
    overflow: hidden;
}

/* Notas Musicais Flutuantes */
.floating-notes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.note {
    position: absolute;
    color: white;
    opacity: 0.8;
    animation: float 15s linear infinite;
    font-weight: bold;
}

.note:nth-child(1) { left: 5%; animation-delay: 0s; font-size: 40px; }
.note:nth-child(2) { left: 15%; animation-delay: 3s; font-size: 50px; }
.note:nth-child(3) { left: 25%; animation-delay: 6s; font-size: 45px; }
.note:nth-child(4) { left: 35%; animation-delay: 9s; font-size: 55px; }
.note:nth-child(5) { left: 45%; animation-delay: 2s; font-size: 60px; }
.note:nth-child(6) { left: 55%; animation-delay: 5s; font-size: 50px; }
.note:nth-child(7) { left: 65%; animation-delay: 8s; font-size: 45px; }
.note:nth-child(8) { left: 75%; animation-delay: 11s; font-size: 55px; }
.note:nth-child(9) { left: 85%; animation-delay: 4s; font-size: 60px; }
.note:nth-child(10) { left: 95%; animation-delay: 7s; font-size: 50px; }

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    30% { opacity: 0.6; }
    60% { opacity: 0.8; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

/* Cabeçalho */
header {
    width: 100%;
    background-color: #C7AA52;
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1;
    height: 70px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

header h1 {
    font-size: 24px;
    color: black;
    margin: 0;
    font-weight: bold;
    text-align: center;
}

/* Centralização do conteúdo */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    z-index: 2;
    margin-top: 0;
    padding-top: 70px;
    box-sizing: border-box;
}

/* Player */
.player {
    text-align: center;
    background: #C7AA52;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 20px white;
    max-width: 90%;
    width: 500px;
    animation: pop 1s ease-out;
}

@keyframes pop {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

h2 {
    margin: 0 0 20px;
    font-size: 22px;
    font-weight: bold;
    color: black;
}

.controls {
    display: flex;
    justify-content: space-around;
    margin: 20px 0;
}

.control-btn {
    background-color: #C7AA52;
    border: none;
    color: black;
    font-size: 50px;
    padding: 15px;
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s, transform 0.2s;
}

.control-btn:hover {
    background: #C7AA52;
    transform: scale(1.1);
}

#track-title {
    font-size: 18px;
    font-weight: bold;
    margin-top: 15px;
    color: black;
}

/* Rodapé */
.footer {
    width: 100%;
    background-color: #C7AA52;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    color: black;
    font-size: 14px;
    z-index: 1;
}

.footer p {
    margin: 0;
}

/* Responsividade para tablets */
@media (max-width: 768px) {
    header h1 {
        font-size: 20px;
    }

    .player {
        padding: 20px;
    }

    .control-btn {
        font-size: 40px;
        padding: 12px;
    }

    h2 {
        font-size: 20px;
    }

    #track-title {
        font-size: 16px;
    }
}

/* Responsividade para dispositivos móveis */
@media (max-width: 480px) {
    header h1 {
        font-size: 18px;
    }

    .player {
        padding: 15px;
        max-width: 90%;
    }

    .control-btn {
        font-size: 30px;
        padding: 10px;
    }

    h2 {
        font-size: 18px;
    }

    #track-title {
        font-size: 14px;
    }
}

/* Equalizador */
.equalizer {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 50px;
    width: 100px;
    margin: 20px auto;
}

.bar {
    width: 10px;
    background: linear-gradient(to top, green, yellow, red);
    height: 20%; /* Altura base quando o equalizador está parado */
    border-radius: 2px;
}

/* Animações do Equalizador */
@keyframes equalizer-bar-1 {
    0% { height: 20%; }
    50% { height: 80%; }
    100% { height: 30%; }
}

@keyframes equalizer-bar-2 {
    0% { height: 30%; }
    50% { height: 90%; }
    100% { height: 40%; }
}

@keyframes equalizer-bar-3 {
    0% { height: 20%; }
    50% { height: 70%; }
    100% { height: 20%; }
}

@keyframes equalizer-bar-4 {
    0% { height: 40%; }
    50% { height: 80%; }
    100% { height: 30%; }
}

@keyframes equalizer-bar-5 {
    0% { height: 30%; }
    50% { height: 90%; }
    100% { height: 50%; }
}

/* Animação do Equalizador Pausado */
@keyframes equalizer-paused {
    0%, 100% { height: 20%; }
}
