/* Bunny Video Card Styles */

.bunny-video-card {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bunny-video-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Aspect Ratios */
.bunny-video-aspect-16-9 {
    aspect-ratio: 16/9;
}

.bunny-video-aspect-4-3 {
    aspect-ratio: 4/3;
}

.bunny-video-aspect-1-1 {
    aspect-ratio: 1/1;
}

.bunny-video-aspect-3-2 {
    aspect-ratio: 3/2;
}

.bunny-video-aspect-21-9 {
    aspect-ratio: 21/9;
}

/* Container */
.bunny-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
}

/* Video Player */
.bunny-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

.bunny-video-player.playing {
    display: block;
}

/* Thumbnail */
.bunny-video-thumbnail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.bunny-video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bunny-video-card.playing .bunny-video-thumbnail {
    opacity: 0;
    pointer-events: none;
}

/* Content Overlay */
.bunny-video-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: opacity 0.3s ease;
}

.bunny-video-card:hover .bunny-video-content {
    opacity: 0;
}

.bunny-video-card.playing .bunny-video-content {
    opacity: 0;
}

/* Badge */
.bunny-video-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #ff4444;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 4;
    transition: opacity 0.3s ease;
}

.bunny-video-card:hover .bunny-video-badge,
.bunny-video-card.playing .bunny-video-badge {
    opacity: 0;
}

/* Text Styles */
.bunny-video-text-1 {
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.3;
}

.bunny-video-text-2 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    line-height: 1.4;
}

/* Play Button */
.bunny-video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 5;
    opacity: 0;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.bunny-video-play-button:hover {
    background: white;
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.bunny-video-card:hover .bunny-video-play-button {
    opacity: 1;
}

.bunny-video-card.playing .bunny-video-play-button {
    opacity: 0;
    pointer-events: none;
}

/* Loading State */
.bunny-video-card.loading .bunny-video-play-button {
    opacity: 0.7;
    cursor: not-allowed;
}

.bunny-video-card.loading .bunny-video-play-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid #333;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .bunny-video-text-1 {
        font-size: 20px;
    }
    
    .bunny-video-text-2 {
        font-size: 14px;
    }
    
    .bunny-video-play-button {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .bunny-video-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .bunny-video-text-1 {
        font-size: 18px;
    }
    
    .bunny-video-text-2 {
        font-size: 13px;
    }
    
    .bunny-video-play-button {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .bunny-video-content {
        padding: 10px;
    }
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 16/9) {
    .bunny-video-aspect-16-9::before {
        content: '';
        display: block;
        padding-top: 56.25%; /* 16:9 aspect ratio */
    }
    
    .bunny-video-aspect-4-3::before {
        content: '';
        display: block;
        padding-top: 75%; /* 4:3 aspect ratio */
    }
    
    .bunny-video-aspect-1-1::before {
        content: '';
        display: block;
        padding-top: 100%; /* 1:1 aspect ratio */
    }
    
    .bunny-video-aspect-3-2::before {
        content: '';
        display: block;
        padding-top: 66.67%; /* 3:2 aspect ratio */
    }
    
    .bunny-video-aspect-21-9::before {
        content: '';
        display: block;
        padding-top: 42.86%; /* 21:9 aspect ratio */
    }
}
