
/* Next Song Information Panel */

#rrvNextSong {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 8px 14px;
    min-width: 0;
    max-width: 300px;
    border: 1px solid #555;
    border-radius: 9px;
    background: #080808;
    box-sizing: border-box;
}

#rrvNextSong > * {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#rrvNextHeading {
    color: #ffd700;
    font-weight: bold;
    font-size: 13px;
}

#rrvNextArtist {
    color: #82c5ff;
    font-size: 13px;
}

#rrvNextTitle {
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

#rrvNextInfo {
    color: #53d990;
    font-size: 11px;
}

@media (min-width: 1450px) {
    .app > .topbar {
        display: grid !important;
        grid-template-columns:
            minmax(0, 1fr)
            minmax(0, 780px)
            minmax(0, 1fr);
        align-items: center;
    }

    .app > .topbar > #rrvRadioPlayer {
        width: 100%;
        justify-self: center;
    }

    #rrvNextSong {
        width: 100%;
        justify-self: end;
    }
}

@media (max-width: 1449px) {
    #rrvNextSong {
        flex: 1 1 180px;
    }
}

@media (max-height: 700px) and (max-width: 1100px) {
    #rrvNextSong {
        display: none;
    }
}


/* Compact Request Queue */

#rrvWaitingQueue {
    border-top: 1px solid #555;
    padding-top: 4px;
    margin-top: 2px;
}

#rrvQueueHeading {
    color: #ffd700;
    font-size: 11px;
}

#rrvQueueList {
    max-height: 34px;
    overflow-y: auto;
    font-size: 10px;
    scrollbar-width: thin;
}

.rrv-queue-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    line-height: 16px;
}

.rrv-queue-row span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}

.rrv-queue-row small {
    color: #82c5ff;
    flex-shrink: 0;
    font-size: 10px;
}


/* Balanced Radio Layout */

#rrvNextSong {
    gap: 2px;
    padding: 6px 12px;
}

#rrvWaitingQueue {
    margin-top: 1px;
    padding-top: 3px;
}

#rrvQueueList {
    font-size: 12px;
    max-height: 36px;
}

.rrv-queue-row {
    line-height: 18px;
}

.rrv-queue-row small {
    font-size: 11px;
}

@media (min-width: 1450px) {
    #rrvRadioPlayer,
    #rrvNextSong {
        height: 116px;
    }

    .app > .topbar {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}


/* Queue height correction */

#rrvNextSong {
    gap: 1px;
    padding: 5px 12px;
    line-height: 1.2;
}

#rrvWaitingQueue {
    flex-shrink: 0;
    padding-top: 2px;
    margin-top: 1px;
}

#rrvQueueList {
    height: 18px;
    max-height: 18px;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
}

.rrv-queue-row {
    height: 18px;
    line-height: 18px;
    scroll-snap-align: start;
}


/* Automatic Request Carousel */

#rrvQueueList {
    height: 18px !important;
    max-height: 18px !important;
    overflow: hidden !important;
    line-height: 18px;
}

.rrv-queue-row {
    height: 18px;
    line-height: 18px;
}

.rrv-queue-animate {
    animation: rrvQueueSlide 0.45s ease-out;
}

@keyframes rrvQueueSlide {
    from {
        transform: translateY(16px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rrv-queue-animate {
        animation: none;
    }
}

