/* Custom Video Player Styles */

/* Remove default browser controls */
video {
    display: block;
}

/* Video container with relative positioning for overlay */
.custom-video-container {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.custom-video-container video {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
}

/* Play button overlay */
.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--overlay-light);
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.video-play-overlay:hover {
    background: var(--overlay-medium);
}

/* Hide overlay when video is playing */
.custom-video-container.playing .video-play-overlay {
    display: none;
}

/* Play button styling */
.play-button {
    width: 80px;
    height: 80px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px var(--overlay-light);
}

.play-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px var(--overlay-medium);
}

.play-button:active {
    transform: scale(0.95);
}

/* Play icon inside button */
.play-button::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 24px solid #000;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 6px;
}

/* Alternative play icon using SVG-like styles */
.play-icon {
    width: 0;
    height: 0;
    border-left: 24px solid #000;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;
    margin-left: 6px;
}

/* Responsive sizing for smaller screens */
@media (max-width: 768px) {
    .play-button {
        width: 64px;
        height: 64px;
    }

    .play-button::after,
    .play-icon {
        border-left-width: 18px;
        border-top-width: 12px;
        border-bottom-width: 12px;
        margin-left: 4px;
    }
}

@media (max-width: 480px) {
    .play-button {
        width: 56px;
        height: 56px;
    }

    .play-button::after,
    .play-icon {
        border-left-width: 15px;
        border-top-width: 10px;
        border-bottom-width: 10px;
        margin-left: 3px;
    }
}

/* Ensure video stretches to fill container while maintaining aspect ratio */
/* Only apply aspect-ratio to custom video containers (not hero banner) */
.custom-video-container:not(.hero-banner-background) {
    aspect-ratio: 16 / 9;
}

.custom-video-container video {
    object-fit: cover;
}

/* For full-width responsive videos */
.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-responsive-wrapper .custom-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
}
