@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;700&display=swap');

body {
    font-family: 'Oswald', sans-serif;
    text-align: center;
    margin: 0;
    padding: 0;
    background: black;
    color: white;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Trois bandes blanches épaisses et centrées, réactives au BPM */
.background-bars {
    position: absolute;
    top: 0;
    left: 52%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 37%,
        white 37%,
        white 43%,
        transparent 43%,
        transparent 45%,
        white 45%,
        white 51%,
        transparent 51%,
        transparent 53%,
        white 53%,
        white 59%,
        transparent 59%
    );
    opacity: 0.15;
    transform: translateX(-50%);
    z-index: -1;
    transition: opacity 0.1s ease-in-out, transform 0.1s ease-in-out;
}

/* Bandes réactives au son */
.audio-bars {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    display: flex;
    gap: 5px;
}

.bar {
    width: 10px;
    height: 20px;
    background: white;
    transition: height 0.05s;
}

h1 {
    font-size: 50px;
    text-transform: uppercase;
    font-weight: 700;
    background: white;
    color: black;
    padding: 10px 20px;
    border-radius: 5px;
    display: inline-block;
}
.status {
    font-size: 20px;
    margin-top: 15px;
    font-weight: bold;
    background: white;
    color: black;
    padding: 10px;
    border: 2px solid black;
    display: inline-block;
    border-radius: 5px;
}
.container {
    border: 3px solid white;
    padding: 25px;
    display: flex;
    background: black;
    border-radius: 10px;
    box-shadow: 0px 0px 10px white;
    text-align: center;
    justify-content: center;
}
.player {
    width: 90%;
    max-width: 350px;
    background: white;
    border: 2px solid black;
    padding: 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 0px 10px white;
}
.player button {
    background: black;
    color: white;
    border: 2px solid white;
    padding: 12px 18px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
.player button:hover {
    background: white;
    color: black;
}