/* ------------------------------------------------------------------
   Shared "player stage": the reveal-on-play visualizer block
   (spectrum / piano-roll / keyboard / staff / note-names / track
   legend), the Now-Playing label, and the "flag wrong song" control.
   Used by the homepage and the per-artist pages. The fixed player bar
   itself is styled by midi-player.css.
   ------------------------------------------------------------------ */

#playerStage {
    margin-top: 1.5rem;
}

.now-playing-label {
    color: var(--text-muted);
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0 0 .5rem;
}

.now-playing-song {
    color: var(--accent);
    font-size: 1.1em;
    font-weight: 700;
}

.visualizer {
    display: flex;
    gap: .75rem;
    margin: 0 0 1.5rem;
}

.visualizer-panel {
    background: #0b0b12;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    flex: 1 1 50%;
    height: 220px;
    max-height: 500px;
    min-height: 60px;
    overflow: hidden;
    resize: vertical;
    width: 50%;
}

.visualizer-panel canvas {
    display: block;
    height: 100%;
    width: 100%;
}

@media (max-width: 629px) {
    .visualizer {
        flex-direction: column;
    }

    .visualizer-panel {
        width: 100%;
    }
}

.staff-panel {
    height: 150px;
    margin: 0 0 1.5rem;
    width: 100%;
}

.note-names-panel {
    height: 80px;
    margin: 0 0 1.5rem;
    width: 100%;
}

.keyboard-panel {
    height: 110px;
    margin: 0 0 1.5rem;
    width: 100%;
}

.keyboard-panel canvas {
    touch-action: none;
}

.track-legend {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 .5rem;
    padding-top: .5rem;
}

.track-legend-hint {
    color: var(--text-muted);
    font-size: .8rem;
    margin: 0 0 1.5rem;
}

.track-chip {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text);
    cursor: pointer;
    display: inline-flex;
    font-size: .8rem;
    gap: .4rem;
    height: auto;
    padding: .25rem .7rem .25rem .5rem;
}

.track-chip:hover {
    border-color: var(--chip-color, var(--accent));
}

.track-chip.muted {
    color: var(--text-muted);
    opacity: .55;
}

.track-chip-dot {
    background: var(--chip-color, var(--text-muted));
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

/* ---- "Is this the wrong song?" flag control ---- */

.flag-block {
    margin: 0 0 1.5rem;
}

.flag-prompt {
    color: var(--text-muted);
    font-size: .95rem;
    margin: 0 0 .4rem;
}

.flag-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.flag-wrong-title {
    align-items: center;
    background: transparent;
    border: 1px solid #ef4444;
    border-radius: var(--radius-sm);
    color: #ff8a8a;
    display: inline-flex;
    font-weight: 600;
    gap: .4rem;
    height: auto;
    padding: .45rem .9rem;
}

.flag-wrong-title:hover:not(:disabled) {
    background: rgba(239, 68, 68, .12);
    border-color: #ef4444;
    color: #ff8a8a;
}

.flag-wrong-title:disabled {
    border-color: var(--border);
    color: var(--text-muted);
    cursor: default;
    opacity: .8;
}

.flag-wrong-title .flag-icon {
    font-size: 1.05em;
    line-height: 1;
}

.flag-msg {
    color: var(--text-muted);
    font-size: .9rem;
}
