/* Video Container Styles */
.video-container {
    width: 100%;
    max-width: 640px;
    height: 360px;
    position: relative;
    margin: 0 auto 30px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width, height;
}

/*.video-container.sticky {*/
/*    position: fixed;*/
/*    top: 20px;*/
/*    right: 20px;*/
/*    width: 320px;*/
/*    height: 180px;*/
/*    z-index: 999;*/
/*    border: 2px solid #007bff;*/
/*    transform: translateZ(0);*/
/*    box-shadow: 0 12px 40px rgba(0, 123, 255, 0.3);*/
/*}*/

.video-container.minimized {
    width: 240px;
    height: 135px;
}

.video-stream-maxvalue {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 15;
}

/* Sticky Close Button */
.sticky-close-btn {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 28px;
    height: 28px;
    background: white;
    color: black;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.4);
}

.sticky-close-btn:hover {
    transform: scale(1.1);
}

.video-container.sticky .sticky-close-btn {
    display: flex;
}

/* Floating Outstream Ad */
.floating-ad-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 320px;
    height: 180px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    overflow: hidden;
    border: 2px solid #e0e0e0;
    animation: slideInUp 0.5s ease-out;
}

.floating-ad-close {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    z-index: 1001;
    transition: background 0.2s;
}

.floating-ad-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.floating-ad-content {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #666;
}

.floating-ad-label {
    position: absolute;
    top: 8px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    z-index: 1001;
}
/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes stickySlideIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 767px) {
    .video-container {
        max-width: 320px;
        height: 180px;
    }

    /*.video-container.sticky {*/
    /*    width: 320px;*/
    /*    height: 180px;*/
    /*    top: 10px;*/
    /*    right: 10px;*/
    /*}*/

    .video-container.minimized {
        width: 200px;
        height: 112px;
    }

    .floating-ad-container {
        bottom: 15px;
        left: 15px;
    }

    .sticky-close-btn {
        width: 24px;
        height: 24px;
        font-size: 16px;
        top: -6px;
        right: -6px;
    }
}

/* Smooth scroll for better UX */
@media (prefers-reduced-motion: no-preference) {
    .video-container {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .video-container {
        transition: none;
    }
}

/* MaxValue Logo Styles */
.maxvalue-logo-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    display: flex;
    align-items: center;
    background: none;
    padding: 4px 8px;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: white !important;
    text-decoration: none;
    transition: background-color 0.3s ease;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.maxvalue-logo-badge:hover {
    background: rgba(0, 0, 0, 0.9);
    text-decoration: none;
    color: white;
}

.maxvalue-logo-badge img {
    width: 16px;
    height: 16px;
    margin-left: 4px;
    border-radius: 2px;
    object-fit: contain;
}

.maxvalue-logo-text {
    font-weight: 500;
    opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .maxvalue-logo-badge {
        bottom: 8px;
        left: 8px;
        padding: 3px 6px;
        font-size: 10px;
    }

    .maxvalue-logo-badge img {
        width: 14px;
        height: 14px;
        margin-left: 3px;
    }
}
