/* Premium Video Player — button row, toast, Plyr overrides */

.pixibb-premium-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 28px 0 36px;
}

.pxb-waiting {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 14px;
    font-weight: 500;
}

.pxb-waiting i { color: #cb72f0; }

.pixibb-premium-controls.is-ready .pxb-waiting { display: none; }

.pxb-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
}

.pixibb-premium-controls button,
.pixibb-premium-controls button:hover,
.pixibb-premium-controls button:focus,
.pixibb-premium-controls button:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: opacity .2s ease, transform .1s ease;
    min-width: 200px;
    color: #fff !important;
}

.pixibb-premium-controls button .pxb-btn-label,
.pixibb-premium-controls button i {
    color: #fff !important;
}

.pixibb-premium-controls button:hover {
    opacity: .9;
}

.pixibb-premium-controls button:active {
    transform: scale(.98);
}

.pixibb-premium-controls button[disabled] {
    opacity: .75;
    cursor: wait;
}

.pixibb-premium-controls button.is-loading {
    pointer-events: none;
}

.pixibb-premium-controls button i {
    font-size: 16px;
}

/* Premium (site primary gradient) */
.pxb-btn-premium-player {
    background: linear-gradient(135deg, #cb72f0, #9b4dca);
}

/* Toggle-off state (playing custom — offer switch back to free iframe) */
.pxb-btn-premium-player.is-active,
.pxb-btn-premium-player.is-active:hover {
    background: #333 !important;
    color: #eee !important;
}

.pxb-btn-premium-player.is-active .pxb-btn-label,
.pxb-btn-premium-player.is-active i {
    color: #eee !important;
}

/* Download (solid site primary) */
.pxb-btn-download {
    background: #cb72f0;
}

/* Toast */
.pxb-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(17, 24, 39, .95);
    color: #fff;
    padding: 10px 18px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity .2s ease;
}

.pxb-toast.is-visible {
    opacity: 1;
}

/* Plyr wrapper matches iframe aspect */
.pxb-player-mount {
    width: 100%;
    max-width: 100%;
}

.pxb-player-mount video {
    width: 100%;
    display: block;
}
