:root {
  --bg: #2c2c2e;
  --header-bg: #3a3a3c;
  --text: #ffffff;
  --accent: rgba(255, 255, 255, 0.1);
}

[data-theme="light"] {
  --bg: #f2f2f7;
  --header-bg: #e5e5ea;
  --text: #1c1c1e;
  --accent: rgba(0, 0, 0, 0.05);
}

body {
  background-color: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  transition: background 0.3s ease, color 0.3s ease;
}

.qt-container {
  background-color: var(--bg);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 960px;
  border: 1px solid #444;
  overflow: hidden;
}

/* Header mit macOS-Stil */
.qt-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background-color: var(--header-bg);
  border-bottom: 1px solid #444;
  position: relative;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.red { background-color: #ff5f57; }
.yellow { background-color: #ffbd2e; }
.green { background-color: #28c940; }

/* Theme Toggle Button */
#theme-toggle {
  margin-left: auto;
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text);
  cursor: pointer;
}

/* Videobereich */
.qt-video-wrapper {
  position: relative;
}

video {
  width: 100%;
  height: auto;
  display: block;
  background: black;
  outline: none;
}

/* Benutzerdefinierte Steuerelemente */
.controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: var(--header-bg);
  border-top: 1px solid #444;
}

.controls button {
  background-color: var(--accent);
  border: none;
  color: var(--text);
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.controls button:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

#progress {
  flex-grow: 1;
  height: 4px;
  cursor: pointer;
}

input[type="range"] {
  -webkit-appearance: none;
  background: #999;
  border-radius: 4px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 12px;
  width: 12px;
  border-radius: 50%;
  background: var(--text);
  cursor: pointer;
}

/* Responsives Layout */
@media (max-width: 600px) {
  .controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  #progress {
    width: 100%;
  }
}
