body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #222;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
}

#menu-container {
    width: 80%;
    max-width: 800px;
    margin-bottom: 20px;
    text-align: center;
}

#video-selector {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

#video-title {
    font-size: 20px;
    margin: 10px 0;
}

.video-container {
    position: relative;
    width: 90%;
    max-width: 1080px;
    background: #000;
    padding: 3px;
    box-sizing: border-box;
    overflow: hidden; /* Verhindert Überschreiten des Containers */
    aspect-ratio: 16 / 9; /* Optional: Behält Standard-Seitenverhältnis bei */
	z-index: 10;
}

.video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%; /* Passt die Breite an den Container an */
    height: 100%; /* Passt die Höhe an */
    object-fit: contain; /* Inhalt proportional skalieren */
    background: black; /* Schwarzer Hintergrund für leere Bereiche */
}

.controls {
    position: absolute;
    bottom: 0;
    width: calc(100% - 20px);
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    padding: 10px;
    opacity: 1;
    transition: opacity 0.3s;
    box-sizing: border-box;
    gap: 10px;
}

.controls.hidden {
    opacity: 0;
    pointer-events: none;
}

button {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    margin-right: 10px;
    cursor: pointer;
}

button:hover {
    color: #00f;
}

#time-played,
#time-remaining {
    font-size: 14px;
    min-width: 60px;
    text-align: center;
}

#volume-control {
    margin-right: 10px;
    cursor: pointer;
}

.progress-bar {
    flex-grow: 1;
    height: 5px;
    background: #555;
    cursor: pointer;
    position: relative;
}

.progress-filled {
    height: 100%;
    background: #f00;
    width: 0%;
}

.play-pause-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 50px;
	color: #fff;
	visibility: hidden; /* Standardmäßig unsichtbar */
	z-index: 1; /* Niedriger z-index, damit es im Hintergrund bleibt */
	pointer-events: none; /* Verhindert, dass das Overlay Klicks blockiert */
}

.play-pause-overlay i {
    pointer-events: none;
}


/* Mobile Styles */
@media (max-width: 768px) {
    #volume-control {
        display: none; /* Versteckt den Lautstärkeregler auf mobilen Geräten */
    }
}
