/* ===== PiP / Mini-Player CSS ===== */

/* PiP toggle button on watch page */
.pip-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    color: inherit;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    margin-left: 8px;
    vertical-align: middle;
}
.pip-toggle-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}
.pip-toggle-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.pip-toggle-btn.active {
    background: rgba(233, 30, 99, 0.2);
    border-color: #e91e63;
    color: #e91e63;
}

/* Enhanced sticky player styles */
.sticky-container_sticky .sticky-container__video {
    position: fixed !important;
    bottom: 20px !important;
    right: 20px !important;
    width: 360px !important;
    height: auto !important;
    z-index: 9999 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Mini-player close button */
.pip-close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10000;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 16px;
    transition: background 0.2s;
}
.pip-close-btn:hover {
    background: rgba(0,0,0,0.85);
}
.sticky-container_sticky .pip-close-btn {
    display: flex !important;
}

/* Mini-player expand button */
.pip-expand-btn {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 10000;
    width: 28px;
    height: 28px;
    background: rgba(0,0,0,0.6);
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s;
}
.pip-expand-btn:hover {
    background: rgba(0,0,0,0.85);
}
.pip-expand-btn svg {
    width: 14px;
    height: 14px;
    fill: #fff;
}
.sticky-container_sticky .pip-expand-btn {
    display: flex !important;
}

/* Mobile: make mini-player smaller */
@media (max-width: 768px) {
    .sticky-container_sticky .sticky-container__video {
        width: 200px !important;
        bottom: 70px !important;
        right: 10px !important;
    }
}
