.mehruplay-video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}

.mehruplay-video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Controls Container */
.mehruplay-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 50; /* Ensure controls are above video */
}

/* Initially hide controls */
.mehruplay-controls {
    opacity: 1; /* Ensure controls are visible when shown */
}
/* Class to visually hide controls */
.hidden-controls {
    opacity: 0 !important;
    transition: opacity 0.3s ease;
}
.mehruplay-video-wrapper:hover .hidden-controls {
    opacity: 1 !important; /* Show controls on hover */
}

/* Left Controls (Play/Pause, Progress) */
.mehruplay-left-controls {
    display: flex;
    align-items: center;
}

/* Progress Bar */
.mehruplay-progress {
    flex-grow: 1; /* Allow progress bar to take available space */
    margin: 0 10px;
}

.mehruplay-progress progress {
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    height: 8px;
    border-radius: 5px;
    background-color: #444;
}

.mehruplay-progress progress::-webkit-progress-value {
    background-color: #0078D7;
    border-radius: 5px;
}

.mehruplay-progress progress::-moz-progress-bar {
    background-color: #0078D7;
    border-radius: 5px;
}

/* Right Controls (Speed, Resolution, Fullscreen) */
.mehruplay-right-controls {
    display: flex;
    align-items: center;
}

/* Volume Controls */
.mehruplay-volume-controls {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.mehruplay-volume {
    width: 80px;
}

/* Hide the default controls */
.mehruplay-video-wrapper video::-webkit-media-controls {
    display: none;
}

.mehruplay-video-wrapper video::-moz-media-controls {
    display: none;
}

.mehruplay-video-wrapper video::-ms-media-controls {
    display: none;
}

.mehruplay-video-wrapper video::media-controls {
    display: none;
}

/* Style individual control elements */
.mehruplay-controls button {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: white;
}

/* Menu Styling (Speed and Resolution) */
.mehruplay-speed-controls,
.mehruplay-resolution-controls {
    position: relative;
    margin-right: 10px;
}

.mehruplay-speed-list,
.mehruplay-resolution-list {
    position: absolute;
    bottom: 30px;
    right: 0;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    border-radius: 5px;
    min-width: 80px;
}

.mehruplay-speed-list li,
.mehruplay-resolution-list li {
    padding: 5px 10px;
    cursor: pointer;
}

.mehruplay-speed-list li:hover,
.mehruplay-resolution-list li:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Fullscreen Styles */
.mehruplay-fullscreen-mode {
    position: fixed;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: 99999;
}

.mehruplay-fullscreen-controls {
    position: fixed;
    bottom: 20px;
    left: 0;
    width: 100%;
    opacity: 1;
    z-index: 100000;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px;
    box-sizing: border-box;
}

/* Always Show Fullscreen Button */
.mehruplay-always-show {
    opacity: 1 !important;
}

/* Center Play Button */
.mehruplay-center-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(255, 0, 0, 0.7); /* Red background with transparency */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0; /* Initially hidden */
    transition: opacity 0.3s ease;
    z-index: 100; /* Ensure it's above the controls */
}

/* Style the play icon */
.mehruplay-center-play i {
    font-size: 40px;
    color: white;
}

.mehruplay-video-wrapper:hover .mehruplay-center-play {
    opacity: 1; /* Show on hover */
}

.mehruplay-video-wrapper .mehruplay-center-play {
    opacity: 0; /* Initially hidden */
}

/* Hide center play button when video is playing */
.mehruplay-video-wrapper.playing .mehruplay-center-play {
    display: none;
}