
/* Video popup card gradient */
.video-popup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #063793, #06b6d4, #f59e0b);
    border-radius: 20px 20px 0 0;
}
.popup-icon-wrapper {
    animation: pulseGlow 2s ease-in-out infinite;
}

.popup-icon-wrapper::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px dashed rgba(6, 182, 212, 0.5);
    animation: rotateBorder 10s linear infinite;
}



/* * Video popup state */ 
.video-popup-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.video-popup-card {
    transform: scale(0.8) translateY(30px);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.video-popup-overlay.active .video-popup-card {
    transform: scale(1) translateY(0);
}
/* Video Controls Bar */
.video-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 16px 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
}
/* Progress Bar */
.video-progress-container {
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    margin-bottom: 12px;
    transition: height 0.2s ease;
}

.video-progress-container:hover {
    height: 8px;
}

.video-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #06b6d4, #0ea5e9);
    border-radius: 10px;
    position: relative;
    transition: width 0.1s linear;
}

.video-progress-bar::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) scale(0);
    width: 14px;
    height: 14px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.video-progress-container:hover .video-progress-bar::after {
    transform: translateY(-50%) scale(1);
}
.video-buffered {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
}

/* Control Buttons Row */
.video-controls-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.video-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.video-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

.video-btn svg {
    width: 22px;
    height: 22px;
}
/* Time Display  */
.video-time {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-family: 'SF Mono', 'Monaco', monospace;
    margin-left: 4px;
}

.video-time-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 4px;
}
/* Volume Control */
.video-volume-container {
    display: flex;
    align-items: center;
    gap: 4px;
}
.video-volume-slider {
    width: 0;
    opacity: 0;
    transition: width 0.3s ease, opacity 0.3s ease;
}
.video-volume-container:hover .video-volume-slider {
    width: 70px;
    opacity: 1;
}
.video-volume-slider input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    cursor: pointer;
}

.video-volume-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
/* Spacer */
.video-spacer {
    flex: 1;
}

/* Settings & Fullscreen */
.video-settings-btn, .video-fullscreen-btn {
    opacity: 0.9;
}

.video-settings-btn:hover, .video-fullscreen-btn:hover {
    opacity: 1;
}

/* Play overlay */
.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.custom-video-container.paused .video-play-overlay {
    opacity: 1;
}
.video-play-overlay-btn {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, background 0.3s ease;
}

.video-play-overlay-btn:hover {
    transform: scale(1.1);
    background: #fff;
}

.video-play-overlay-btn svg {
    width: 32px;
    height: 32px;
    color: #0ea5e9;
    margin-left: 4px;
}
/* Speed selector */
.video-speed-btn {
    font-size: 12px;
    font-weight: 600;
    min-width: 40px;
}
/* Response message */
.popup-response-message {
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s ease;
    display: none;
}

.popup-response-message.show {
    opacity: 1;
    transform: translateY(0);
    display: block;
}
/* Paused badge */
.video-paused-badge {
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.3s ease;
}

.video-popup-overlay.active+.video-paused-badge, .video-paused-badge.show {
    opacity: 1;
    transform: translateX(0);
}
/* ========== OVERLAYS & MODALS ========== */

/* Maya reward overlay */
.maya-reward-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.maya-reward-overlay.active {
    opacity: 1;
    visibility: visible;
}

.maya-reward-card {
    transform: scale(0.9) translateY(20px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.maya-reward-overlay.active .maya-reward-card {
    transform: scale(1) translateY(0);
    opacity: 1;
}

/* ========== CUSTOM VIDEO PLAYER ========== */
.custom-video-container {
    position: relative;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
}

.custom-video-container video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
}

.custom-video-container video::-webkit-media-controls {
    display: none !important;
}

.custom-video-container video::-webkit-media-controls-enclosure {
    display: none !important;
}



.custom-video-container:hover .video-controls,
.custom-video-container.paused .video-controls {
    opacity: 1;
}
