/* Stable monochrome actions above the player controls, including fullscreen. */
.yz-player .yz-skip-btn,
.yz-player .wpf-next {
    position: absolute;
    right: 32px;
    bottom: 80px;
    z-index: 35;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 2px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.yz-player .yz-skip-btn {
    min-height: 44px;
    max-width: calc(100% - 32px);
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    /* Hovering must never move the target when player controls reappear. */
    transition: background-color .15s, border-color .15s;
}

.yz-player .yz-skip-btn:hover,
.wpf-next button:hover {
    background: rgba(255, 255, 255, .16);
    border-color: #fff;
}

.yz-player .yz-skip-btn:focus-visible,
.wpf-next button:focus-visible,
.watch-quick-bar .quick-toggle:focus-within {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.yz-player .wpf-next {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: calc(100% - 32px);
    min-height: 48px;
    padding: 0 4px 0 16px;
    text-align: left;
}

.wpf-next-status {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
    color: #fff;
}

.wpf-next-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 4px;
}

.wpf-next button {
    min-height: 44px;
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}

.wpf-next [data-next-cancel] {
    border-left-color: rgba(255, 255, 255, .25);
    font-weight: 400;
}

.wpf-next progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 2px;
    margin: 0;
    border: 0;
    appearance: none;
    background: rgba(255, 255, 255, .2);
    accent-color: #fff;
}

.wpf-next progress::-webkit-progress-bar {
    background: rgba(255, 255, 255, .2);
}

.wpf-next progress::-webkit-progress-value {
    background: #fff;
}

.wpf-next progress::-moz-progress-bar {
    background: #fff;
}

.yz-player .wpf-next[hidden],
.wpf-next [hidden] {
    display: none !important;
}

.watch-quick-bar .quick-toggle input[type="checkbox"] {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

@media (max-width: 600px) {
    .yz-player .yz-skip-btn,
    .yz-player .wpf-next {
        right: 12px;
        bottom: 68px;
        max-width: calc(100% - 24px);
    }

    .yz-player .yz-skip-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .yz-player .wpf-next {
        gap: 4px;
        padding-left: 10px;
    }

    .wpf-next-status,
    .wpf-next button {
        font-size: 12px;
    }

    .wpf-next button {
        padding: 8px;
    }
}
