* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: #111;
    color: #eee;
    font-family: Arial, sans-serif;
}
.player {
    width: min(1000px, 100%);
    margin: 30px auto;
    padding: 16px;
    background: #181818;
}
.video-container {
    position: relative;
    background: #000;
}
video {
    display: block;
    width: 100%;
    background: #000;
}
.loader {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    margin-top: -24px;
    border: 4px solid rgba(255, 255, 255, 0.25);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    display: none;
    z-index: 10;
}
.loader.visible {
    display: block;
}
@keyframes spin {
    to {
	transform: rotate(360deg);
    }
}
.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}
button {
    border: 0;
    border-radius: 4px;
    padding: 8px 16px;
    background: #333;
    color: #fff;
    cursor: pointer;
}
button:hover {
    background: #444;
}
input[type="range"] {
    flex: 1;
    min-width: 0;
}
.time {
    min-width: 120px;
    text-align: right;
    font-family: monospace;
    white-space: nowrap;
}
.controls button {
    min-width: 58px;
}
#rewind10,
#forward10 {
    font-weight: bold;
}

.controls.recording #playPause,
.controls.recording #rewind10,
.controls.recording #forward10,
.controls.recording #seekbar,
.controls.recording #time {
    display: none;
}

