.play-next-panel {
    position: fixed;
    left: 50%;
    bottom: 1rem;
    z-index: 1100;
    width: min(34rem, calc(100% - 2rem));
    padding: 1.25rem;
    transform: translateX(-50%);
    border: 1px solid #475569;
    border-radius: 16px;
    background: #1e293b;
    color: #f1f5f9;
    box-shadow: 0 18px 45px rgb(0 0 0 / 45%);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    text-align: center;
}

.play-next-panel[hidden] {
    display: none;
}

.play-next-close {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #94a3b8;
    font: inherit;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
}

.play-next-close:hover,
.play-next-close:focus-visible {
    color: #f1f5f9;
}

.play-next-eyebrow {
    margin: 0 0 0.15rem;
    color: #38bdf8;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.play-next-panel h2 {
    margin: 0 2rem 0.9rem;
    color: #f1f5f9;
    font-size: 1.2rem;
    line-height: 1.3;
}

.play-next-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
}

.play-next-option {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #475569;
    border-radius: 10px;
    background: #0f172a;
    color: #f1f5f9;
    font-weight: 650;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
}

.play-next-replay {
    border-color: #38bdf8;
    background: #0c4a6e;
}

.play-next-option:hover,
.play-next-option:focus-visible {
    border-color: #38bdf8;
    background: #334155;
}

.play-next-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.play-next-all {
    display: inline-block;
    margin-top: 0.85rem;
    color: #7dd3fc;
    font-weight: 600;
}

.play-next-option:focus-visible,
.play-next-all:focus-visible,
.play-next-close:focus-visible {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

@media (max-width: 420px) {
    .play-next-panel {
        bottom: 0.5rem;
        width: calc(100% - 1rem);
        padding: 1rem;
    }

    .play-next-panel h2 {
        font-size: 1.05rem;
    }

    .play-next-options {
        grid-template-columns: 1fr;
    }
}
