/* Luminal CMS — Floating Video Player + PiP Styles */

#floating-video-modal {
    position: fixed;
    width: 320px;
    height: 180px;
    background-color: #222;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: hidden;
    resize: both;
    min-width: 200px;
    min-height: 112px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    cursor: grab;
}

#floating-video-modal .floating-video-header {
    background-color: #333;
    color: #fff;
    padding: 5px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: grab;
    flex-shrink: 0;
    gap: 8px;
}

#floating-video-modal .floating-video-title {
    font-size: 0.8em;
    font-weight: bold;
    user-select: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
}

#floating-video-modal .floating-video-header-actions {
    display: flex;
    align-items: center;
    gap: 2px;
    flex-shrink: 0;
}

#floating-video-modal .floating-video-close-btn,
#floating-video-modal .floating-video-pip-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3em;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.2s;
}

#floating-video-modal .floating-video-close-btn:hover {
    color: #f00;
}

#floating-video-modal .floating-video-pip-btn {
    font-size: 1.1em;
}

#floating-video-modal .floating-video-pip-btn:hover {
    color: #38bdf8;
}

#floating-video-modal .floating-video-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#floating-video-modal video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Button wrap (Float + PiP side by side) */
.vf-btn-wrap {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* Float button */
.float-player-btn {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 6px 14px;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.82em;
    font-weight: 600;
    transition: background-color 0.2s;
    display: inline-block;
}

.float-player-btn:hover {
    background-color: #0056b3;
}

/* PiP button — distinct color */
.pip-player-btn {
    background-color: #7c3aed;
}

.pip-player-btn:hover {
    background-color: #5b21b6;
}
