* {
    margin: 0;
}

body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: green;
}

.vjs-touch-overlay .vjs-play-control .vjs-icon-placeholder:before {
    width: 100% !important;
    height: 100% !important;
    background-color: transparent !important;
}

.vjs-control-bar {
    display: flex;
    flex-wrap: wrap;
}

.vjs-progress-control {
    width: 100%;
}

.vjs-current-time,
.vjs-duration,
.vjs-time-divider,
.vjs-play-control {
    display: block !important;
    text-align: center;
    width: 100%;
}

.video-container {
    width: 100%;
    height: 75%;
    position: absolute;
    top: 50%; right: 50%;
    transform: translate(50%,-50%);
}

/* Portrait mode - minimal controls */
@media (max-width: 580px) {
    .video-js .vjs-control-bar > *:not(.vjs-current-time):not(.vjs-duration):not(.vjs-time-divider):not(.vjs-progress-control):not(.vjs-play-control) {
        display: none !important;
    }
}

#error-message {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    color: red;
    font-family: Arial, sans-serif;
    display: none;
    z-index: 2;
}

.ubel {
    height: 100%;
    display: block;
    margin-left: auto;
    margin-right: auto;
}