/* Video Ads Inline Styles */
.video-ads-inline {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
}

.video-ads-player {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
}

.video-ads-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.video-ads-controls {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        rgba(0, 0, 0, 0) 20%, 
        rgba(0, 0, 0, 0) 80%, 
        rgba(0, 0, 0, 0.7) 100%
    );
}

.video-ads-info {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.video-ads-skip {
    pointer-events: auto;
    z-index: 9;
}

.skip-button {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    min-width: 120px;
    text-align: center;
}

.skip-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(128, 128, 128, 0.3);
}

.skip-button.enabled {
    background: rgba(239, 68, 68, 0.9);
    border-color: #ef4444;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
}

.skip-button.enabled:hover {
    background: #ef4444;
    border-color: #dc2626;
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(239, 68, 68, 0.6);
}

.video-ads-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top: 4px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-ads-controls {
        padding: 12px;
    }
    
    .video-ads-info {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .skip-button {
        padding: 8px 16px;
        font-size: 12px;
        min-width: 100px;
    }
    
    .video-ads-loading {
        font-size: 14px;
    }
    
    .loading-spinner {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .video-ads-controls {
        padding: 10px;
        flex-direction: column-reverse;
        align-items: flex-end;
        gap: 10px;
    }
    
    .video-ads-info {
        align-self: flex-start;
    }
}

/* Animation for ads transition */
.video-ads-overlay.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.video-ads-overlay.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

/* Skip button pulse animation when enabled */
.skip-button.enabled {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }
    50% {
        box-shadow: 0 0 30px rgba(239, 68, 68, 0.7);
    }
    100% {
        box-shadow: 0 0 20px rgba(239, 68, 68, 0.4);
    }
}

/* Play Overlay Styles */
.video-ads-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 1);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.video-ads-play-button {
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px 30px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
}

.video-ads-play-button:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.video-ads-play-button:active {
    transform: translateY(-2px) scale(1.02);
}

.play-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(239, 68, 68, 0.9);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.video-ads-play-button:hover .play-icon {
    background: #ef4444;
    transform: scale(1.1);
}

.play-text {
    font-size: 16px;
    font-weight: 500;
    text-align: center;
}

/* Responsive Play Button */
@media (max-width: 768px) {
    .video-ads-play-button {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .play-icon {
        width: 40px;
        height: 40px;
    }
    
    .play-icon svg {
        width: 32px;
        height: 32px;
    }
    
    .play-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .video-ads-play-button {
        padding: 12px 20px;
        font-size: 12px;
    }
    
    .play-icon {
        width: 35px;
        height: 35px;
    }
    
    .play-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .play-text {
        font-size: 11px;
    }
}

/* Click Overlay for Ad Interaction */
.video-ads-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 5;
    background: transparent;
}

.video-ads-click-overlay:hover {
    background: rgba(255, 255, 255, 0.1);
}

.video-ads-click-overlay:active {
    background: rgba(255, 255, 255, 0.2);
}