* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Poppins, sans-serif;
}

body {
    background: #0256ff; /* azul vivo */
    margin: 0;
    padding: 0;
    overflow: hidden; /* Evita scroll na página por causa do canvas */
    font-family: Poppins, sans-serif;
    color: white;
    height: 100vh;
}

/* Estiliza o canvas para ocupar toda a tela e ficar atrás do conteúdo */
#background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* CONTAINER LADO A LADO */
main {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    flex-wrap: wrap;
}

/* HEADER */
header {
    display: flex;
    align-items: center;       /* Alinha verticalmente logo e título */
    justify-content: center;   /* Centraliza horizontalmente */
    gap: 15px;                 /* Espaço entre logo e título */
    background: #0036a3;       /* Azul escuro */
    border-bottom: 5px solid #ffd700; /* Detalhe amarelo */
    padding: 20px 0;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3); /* Sombra suave */
}

header .logo {
    width: 50px;    /* Ajuste do tamanho da logo */
    height: 50px;
    object-fit: contain;
}

header h1 {
    color: #ffd700;      /* Título amarelo */
    font-size: 2em;      /* Maior destaque */
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* Pequeno efeito de sombra */
}

/* CARTÕES MAIORES */
.now-playing,
.playlist {
    width: 460px; /* aumentado */
    background: rgba(0, 53, 158, 0.9);  /* mais opaco */
    border: 3px solid #ffd700;
    border-radius: 12px;
    padding: 30px; 
    backdrop-filter: blur(12px);        /* blur mais forte */
    -webkit-backdrop-filter: blur(12px); /* compatibilidade Safari */
}

/* TÍTULOS CENTRALIZADOS E AMARELOS */
.now-playing h2,
.playlist h3 {
    text-align: center;
    color: #ffd700;
    margin-bottom: 12px;
    font-size: 1.4em;
}

/* BOTÕES */
.controls {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin: 18px 0;
}

.controls button {
    width: 60px;
    height: 60px;
    border: none;
    border-radius: 50%;
    background: #ffd700;
    font-size: 1.6em;
    cursor: pointer;
    transition: .2s;
}

.controls button:hover {
    transform: scale(1.14);
    background: #ffef68;
}

/* TEMPO */
.time-container {
    text-align: center;
    margin-bottom: 8px;
    font-size: 18px;
}

/* Barra de progresso */
.progress-container {
    width: 100%;
    height: 8px;
    background: #004cff;
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 16px;
}

.progress-bar {
    height: 100%;
    width: 0;
    background: #ffd700;
    border-radius: 5px;
}

/* Volume */
.volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.volume-container input {
    width: 80%;
}

/* PLAYLIST */
.playlist ul {
    list-style: none;
    max-height: 440px; /* maior */
    overflow-y: auto;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ffd700 #002b8d;
}

.playlist li {
    background: #0059ffb0;
    margin-bottom: 8px;
    padding: 14px; /* maior */
    border-radius: 8px;
    cursor: pointer;
    transition: .2s;
    font-size: 17px;
}

.playlist li:hover {
    background: #1f7bff;
}

.playlist li.active {
    background: #ffd700;
    color: #000;
    font-weight: bold;
}

/* EQUALIZER REAL */
.equalizer {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 10px;
    height: 120px; /* maior */
    margin-top: 18px;
}

.equalizer .bar {
    width: 16px;
    background: #ffd700;
    border-radius: 6px;
    height: 6px; /* altura base */
    transition: height .08s linear;
}

/* FOOTER */
footer {
    background:  #0036a3;
    color: #fff;
    padding: 25px 10px;
    text-align: center;
    margin-top: 40px;
    border-top: 2.5px solid #fbff00;
    position: fixed;
    bottom: 0;
    width: 100%;
}

footer .footer-content p {
    margin: 8px 0;
    font-size: 1rem;
}

footer .social {
    margin: 15px 0;
}

footer .social a {
    margin: 0 10px;
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    transition: 0.3s;
}

footer .social a:hover {
    color: #00ffea;
    transform: scale(1.2);
}

footer .copy {
    opacity: 0.7;
    font-size: 0.9rem;
}
