.jewkbox-play-all-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    padding: .9em 1.35em;
    color: #fff;
    font: inherit;
    font-weight: 750;
    line-height: 1;
    text-decoration: none;
    background: var(--action, #8022f2);
    border: 0;
    border-radius: 999px;
    transition: filter .18s ease, transform .18s ease;
}

.jewkbox-play-all-button:hover,
.jewkbox-play-all-button:visited {
    color: #fff;
    text-decoration: none;
}

.jewkbox-play-all-button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.jewkbox-play-all-button:focus-visible,
.jewkbox-queue-card:focus-visible,
.jewkbox-queue-now-playing button:focus-visible {
    outline: 3px solid #a78bfa;
    outline-offset: 3px;
}

.jewkbox-player-page {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(18em, .7fr);
    gap: clamp(1.25em, 3vw, 2.25em);
    width: min(100%, 92rem);
    margin-inline: auto;
}

.jewkbox-player-context-header {
    width: min(100%, 92rem);
    margin: 0 auto clamp(1.5em, 3vw, 2.5em);
    color: #fff;
}

.jewkbox-player-context-header__eyebrow {
    display: block;
    margin-bottom: .45em;
    color: var(--action-light, #b987ff);
    font-size: .78em;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.jewkbox-player-context-header h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.1em, 6vw, 4.5em);
    line-height: 1.02;
}

.jewkbox-player-context-header__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75em;
    margin-top: 1.2em;
}

.jewkbox-player-context-header__back,
.jewkbox-player-context-header__share,
.jewkbox-queue-now-playing__share {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 2.75em;
    padding: .65em 1em;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    background: rgb(255 255 255 / 7%);
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    cursor: pointer;
}

.jewkbox-player-context-header__back:hover,
.jewkbox-player-context-header__share:hover,
.jewkbox-queue-now-playing__share:hover {
    color: #fff;
    background: rgb(128 34 242 / 24%);
    border-color: rgb(185 135 255 / 60%);
}

.jewkbox-player-context-header__back svg,
.jewkbox-player-context-header__share svg,
.jewkbox-queue-now-playing__share svg {
    width: 1.1em;
    height: 1.1em;
    flex: 0 0 auto;
}

.jewkbox-queue-player-main,
.jewkbox-video-queue {
    min-width: 0;
}

.jewkbox-queue-now-playing {
    padding-top: 1.25em;
    color: #fff;
}

.jewkbox-queue-now-playing h2 {
    margin: 0 0 .7em;
    color: #fff;
    font-size: clamp(1.35em, 3vw, 2.1em);
    line-height: 1.2;
}

.jewkbox-queue-now-playing__secondary {
    display: inline-flex;
    align-items: center;
    gap: .75em;
    flex: 0 0 auto;
}

.jewkbox-queue-now-playing__share {
    min-height: 2.35em;
    padding: .45em .75em;
    color: rgb(255 255 255 / 82%);
    font-size: .88em;
}

.jewkbox-queue-now-playing__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    margin-bottom: 1em;
    color: rgb(255 255 255 / 58%);
}

.jewkbox-queue-now-playing__artist {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: .7em;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.jewkbox-queue-now-playing__artist:hover {
    color: var(--action-light, #b987ff);
}

.jewkbox-queue-now-playing__artist img {
    width: 2.75em;
    height: 2.75em;
    flex: 0 0 2.75em;
    object-fit: cover;
    border-radius: 50%;
}

.jewkbox-queue-now-playing__description {
    position: relative;
    overflow: hidden;
    color: rgb(255 255 255 / 72%);
    line-height: 1.65;
    white-space: pre-line;
}

.jewkbox-queue-now-playing__description.is-collapsed {
    max-height: 8.25em;
}

.jewkbox-queue-now-playing__description.is-collapsed::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2.5em;
    content: "";
    background: linear-gradient(to bottom, transparent, #111119);
    pointer-events: none;
}

.jewkbox-queue-now-playing__description-toggle {
    padding: .35em 0;
    margin-top: .35em;
    color: var(--action-light, #b987ff);
    font: inherit;
    font-size: .9em;
    font-weight: 700;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.jewkbox-queue-now-playing__description-toggle[hidden],
.jewkbox-queue-player__status[hidden] {
    display: none;
}

.jewkbox-queue-player__status {
    margin: 1em 0 0;
    color: rgb(255 255 255 / 62%);
}

.jewkbox-video-queue {
    max-height: min(78vh, 52em);
    overflow: auto;
    padding-right: .35em;
    scrollbar-color: #514959 transparent;
}

.jewkbox-queue-card {
    width: 100%;
    padding: .55em;
    color: #fff;
    font: inherit;
    text-align: left;
    background: transparent;
    border: 1px solid transparent;
    border-radius: var(--radius-m, .75em);
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease;
}

.jewkbox-queue-card:hover {
    background: rgb(255 255 255 / 6%);
}

.jewkbox-queue-card.is-current {
    background: rgb(128 34 242 / 16%);
    border-color: rgb(128 34 242 / 55%);
}

.jewkbox-queue-card .jewkbox-video-card__media {
    pointer-events: none;
}

.jewkbox-queue-card .jewkbox-video-card__body {
    min-width: 0;
    pointer-events: none;
}

.jewkbox-queue-card .jewkbox-video-card__title,
.jewkbox-queue-card .jewkbox-video-card__meta {
    width: 100%;
}

.jewkbox-queue-player-message {
    width: min(100%, 92rem);
    padding: 1.25em;
    margin-inline: auto;
    background: rgb(128 34 242 / 8%);
    border: 1px solid rgb(128 34 242 / 30%);
    border-radius: 1em;
}

@media (max-width: 800px) {
    .jewkbox-player-page {
        grid-template-columns: 1fr;
    }

    .jewkbox-video-queue {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 520px) {
    .jewkbox-queue-now-playing__meta {
        align-items: flex-start;
        flex-direction: column;
    }
}
