
#spectrumContainer {
    width: 65px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 0px;
    padding-top: 0px;
    padding-bottom: 0px;
    border-radius: 0px;
    pointer-events: none;
}

#spectrumAnalyzer {
    display: grid;
    width: 100%;
    height: 32px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(10, minmax(0, 1fr));
    column-gap: 1.5px;
    row-gap: 1.5px;
}

.spectrum-cell {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: rgba(120, 20, 20, 0.0);
    box-shadow: none;
    transition: none;
    opacity: 0.25;
    contain: paint;
}

.spectrum-cell.active {
    background: var(--color-spectrum-active);
    box-shadow: 0 0 6px var(--color-spectrum-shadow);
    opacity: 1;
    contain: paint;
}

#playbackInfo {
    position: absolute;
    top: 15vh;
    text-align: center;
    padding: 10px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.05s ease;
    width: 90vw;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

#playbackInfo.active {
    opacity: 1;
}

#playbackInfo.connection-active {
    opacity: 1;
}

#currentSpeaker {
    font-size: 1.8rem;
    font-weight: 600;
    color: #ffffff;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.8), 0 0 8px rgba(0, 0, 0, 0.6);
    white-space: nowrap;
    overflow: hidden;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-select: none;
}

#currentSpeaker:hover {
    opacity: 0.8;
}

#playbackCounter {
    font-size: 1.0rem;
    color: #d1d5db;
    margin-top: 12px;
    text-shadow: 0 0 8px rgba(0, 0, 0, 0.9), 0 0 16px rgba(0, 0, 0, 0.7);
}

#connectionSpinner {
    display: none;
    justify-content: center;
    align-items: center;
    margin-top: 12px;
}

#connectionSpinnerIndicator {
    position: absolute;
    top: -70px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 900;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    margin: 0;
}

#connectionSpinnerIndicator.active {
    display: inline-flex;
}

#connectionSpinnerIndicator img {
    width: 32px;
    height: 32px;
    animation: spin 1.2s linear infinite;
    opacity: 0.85;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

#recordProgress {
    width: 140px;
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    opacity: 0;
    transition: opacity 0.05s ease;
    box-shadow:
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.4);
}

#controlsContainer #recordProgress {
    position: absolute;
    bottom: calc(140px + 10px + 30px);
    top: auto;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

#recordProgress.active {
    opacity: 1;
}

#recordProgressBar {
    height: 100%;
    width: 100%;
    background: #34c759;
    border: 1px solid #34c759;
    background: #4ade80;
    border-color: #4ade80;
    box-shadow: 0 0 8px #4ade80;
    transition: width 0.05s linear, background 0.05s ease, box-shadow 0.05s ease;
}

#queueVisualizationWrapper {
    width: 140px;
    margin-top: 15px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

#queueVisualization {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.05s ease, visibility 0.05s ease;
}

#queueVisualization.active {
    opacity: 1;
    visibility: visible;
}

#queueVisualizationWrapper #downloadButton,
#queueVisualizationWrapper #reportButton {
    opacity: 1 !important;
    visibility: visible !important;
}

#queueVisualizationBar {
    width: 140px;
    height: 8px;
    display: flex;
    flex-direction: row-reverse;
    gap: 2px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.8);
    padding: 0;
    box-shadow:
        0 0 4px rgba(0, 0, 0, 0.8),
        0 0 8px rgba(0, 0, 0, 0.6),
        0 0 12px rgba(0, 0, 0, 0.4);
}

.queue-segment {
    flex: 1;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    border: none;
    outline: none;
    box-sizing: border-box;
    transition: background 0.05s ease, box-shadow 0.05s ease, opacity 0.05s ease;
    contain: paint;
    min-width: 0;
}

.queue-segment.active {
    background: #00ff88;
    border: none;
    outline: none;
    box-shadow: 0 0 8px #00ff88;
}

.queue-segment.active.playing {
    opacity: 1;
}

.queue-segment.active.queued {
    opacity: 0.5;
    opacity: 0.4;
}

.queue-segment.active.history {
    opacity: 0.5;
    opacity: 0.4;
}

.queue-segment.flash {
    animation: queueFlash 0.2s ease;
}

@keyframes queueFlash {
    0%, 100% {
        background: #00ff88;
        box-shadow: 0 0 8px #00ff88;
    }

    50% {
        background: #ffffff;
        box-shadow: 0 0 12px #ffffff;
    }
}
