main {
    padding: 20px;
    display: flex;
    justify-content: center;
}

.player-window {
    width: 360px;
    max-width: 100%;
}

/* Visor LCD estilo tocador de CD antigo */
.lcd {
    background: #06130b;
    color: #39ff87;
    box-shadow: inset -1px -1px #2a6b45, inset 1px 1px #000,
                inset -2px -2px #0d3b22, inset 2px 2px #000;
    padding: 8px 10px;
    margin-bottom: 10px;
    font-family: "Pixelated MS Sans Serif", "Courier New", monospace;
    text-shadow: 0 0 4px rgba(57, 255, 135, 0.6);
}

.lcd-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lcd-track {
    font-size: 22px;
    font-weight: bold;
    letter-spacing: 1px;
}

.lcd-marquee {
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#lcdTitle {
    font-size: 14px;
}

.lcd-bottom {
    margin-top: 6px;
    font-size: 14px;
}

.lcd-time {
    min-width: 46px;
}

.lcd-dur {
    min-width: 46px;
    text-align: right;
}

/* Equalizer animado */
.viz {
    flex: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 16px;
}

.viz i {
    width: 3px;
    height: 3px;
    background: #39ff87;
    display: block;
    animation: eq 0.8s ease-in-out infinite;
}

.viz i:nth-child(2) { animation-delay: 0.12s; }
.viz i:nth-child(3) { animation-delay: 0.24s; }
.viz i:nth-child(4) { animation-delay: 0.36s; }
.viz i:nth-child(5) { animation-delay: 0.18s; }
.viz i:nth-child(6) { animation-delay: 0.30s; }
.viz i:nth-child(7) { animation-delay: 0.06s; }

.viz.paused i {
    animation-play-state: paused;
    height: 3px;
}

@keyframes eq {
    0%, 100% { height: 3px; }
    50% { height: 15px; }
}

/* Controles */
.seek {
    width: 100%;
    margin: 2px 0 10px;
}

.transport {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 10px;
}

.transport button {
    min-width: 40px;
    height: 26px;
    padding: 0 6px;
    /* Centraliza os glifos e impede que o "|" quebre para outra linha
       (era o que deixava os botões de retroceder/avançar tortos). */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    line-height: 1;
    font-family: "Courier New", monospace;
    font-weight: bold;
    font-size: 13px;
}

#btnPlay {
    min-width: 50px;
}

.vol-wrap {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.vol {
    width: 72px;
}

/* Playlist */
.playlist-panel {
    height: 150px;
    background: #fff;
}

.playlist {
    list-style: none;
    margin: 0;
    padding: 2px;
    font-size: 12px;
}

.playlist li {
    padding: 3px 6px;
    cursor: var(--cursor-hand);
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.playlist li:hover {
    background: #d8d8d8;
}

.playlist li.active {
    background: #000080;
    color: #fff;
}

.playlist .pl-dur {
    opacity: 0.7;
}

.player-credit {
    font-size: 11px;
    color: #808080;
    margin-top: 8px;
    text-align: center;
}
