/* Responsive Canvas Video Player CSS for WordPress Customizer */

/* Desktop and Tablet - 600px height */
.ccm-video-canvas {
    height: 600px !important;
    width: auto !important;
    max-width: 100% !important;
}

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
    .ccm-video-canvas {
        height: 500px !important;
    }
}

/* Tablets (portrait) */
@media screen and (max-width: 768px) {
    .ccm-video-canvas {
        height: 400px !important;
    }
}

/* Mobile devices (landscape) */
@media screen and (max-width: 640px) {
    .ccm-video-canvas {
        height: 350px !important;
    }
}

/* Mobile devices (portrait) */
@media screen and (max-width: 480px) {
    .ccm-video-canvas {
        height: 300px !important;
    }
}

/* Small mobile devices */
@media screen and (max-width: 360px) {
    .ccm-video-canvas {
        height: 250px !important;
    }
}

/* Ensure the player container matches the canvas */
.ccm-canvas-video-player {
    height: 600px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    position: relative !important;
}

/* Large tablets and small desktops */
@media screen and (max-width: 1024px) {
    .ccm-canvas-video-player {
        height: 400px !important;
    }
}

/* Tablets (portrait) */
@media screen and (max-width: 768px) {
    .ccm-canvas-video-player {
        height: 400px !important;
    }
}

/* Mobile devices (landscape) */
@media screen and (max-width: 640px) {
    .ccm-canvas-video-player {
        height: 350px !important;
    }
}

/* Mobile devices (portrait) */
@media screen and (max-width: 480px) {
    .ccm-canvas-video-player {
        height: 200px !important;
    }
}

/* Small mobile devices */
@media screen and (max-width: 360px) {
    .ccm-canvas-video-player {
        height: 250px !important;
    }
}

/* Ensure controls remain visible and properly positioned */
.ccm-canvas-controls {
    opacity: 0.8 !important;
    visibility: visible !important;
    display: flex !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 10 !important;
}

/* On hover, make controls more visible */
.ccm-canvas-video-player:hover .ccm-canvas-controls {
    opacity: 1 !important;
}
