#ofp-floating-player {
    position: fixed;
    z-index: 9999;
    background: #000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5);
    border-radius: 4px;
    overflow: hidden;
    max-width: 95vw;
    max-height: 50vh;
}

#ofp-floating-player .ofp-inner {
    width: 100%;
    height: 100%;
}

#ofp-floating-player iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

#ofp-close-btn {
    position: absolute;
    top: 2px;
    right: 4px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    border: none;
    padding: 0 6px;
    font-size: 16px;
    line-height: 20px;
    cursor: pointer;
    z-index: 10000;
}

#ofp-close-btn:hover {
    background: rgba(0,0,0,0.9);
}

/* Desktop anchor positions */
.ofp-anchor-top-right {
    top: 10px;
    right: 10px;
    bottom: auto;
    left: auto;
}

.ofp-anchor-top-left {
    top: 10px;
    left: 10px;
    bottom: auto;
    right: auto;
}

.ofp-anchor-bottom-right {
    bottom: 10px;
    right: 10px;
    top: auto;
    left: auto;
}

.ofp-anchor-bottom-left {
    bottom: 10px;
    left: 10px;
    top: auto;
    right: auto;
}

.ofp-hide-mobile {
    /* On small screens, hide completely via media query below */
}

.ofp-toggle {
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9998;
    padding: 8px 14px;
    border-radius: 999px;
    border: none;
    font-size: 14px;
    cursor: pointer;
    background: #e02424;
    color: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    display: none; /* JS controls visibility */
}

/* Mobile behavior */
@media (max-width: 768px) {
    .ofp-hide-mobile {
        display: none !important;
    }

    #ofp-floating-player.ofp-show-mobile {
        width: 95vw !important;
        height: auto !important;
        aspect-ratio: 16 / 9;
        bottom: 10px;
        top: auto;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }
}
