/* === Grundlayout === */
body {
  background-color: black;
  color: #B22222;
  font-family: Arial, sans-serif;
  text-align: center;
  margin: 0;
  padding: 0;
}

/* === Header === */
#content-wrapper {
  max-width: 75%;
  margin: 0 auto;
  text-align: center;
}

#header {
  font-size: 1.8em;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}

#heart {
  height: 50px;
  margin-left: 5px;
  margin-bottom: 5px;
  vertical-align: middle;
}

/* === Video-Bereich === */
#startOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 92%;
  background-color: black;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
}

#previewImage {
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 20px;
}

#startButton {
  font-size: 1.5em;
  color: white;
  background-color: #B22222;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#startButton:hover {
  background-color: #ff4444;
}
#video-container {
  width: 80%;
  margin: 0 auto;
  text-align: center;
}

#video {
  width: 100%;
  height: auto;
}

/* === Songinfo & Steuerung === */
#songInfo {
  margin-top: 30px;
}

#songLabel {
  font-size: 1.5em;
  margin-bottom: 10px;
}

button {
  font-size: 1.2em;
  color: #B22222;
  background-color: #7B0D1E;
  border: none;
  border-radius: 5px;
  padding: 10px 20px;
  margin: 5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

button:hover {
  background-color: #B22222;
  color: black;
}

/* === Overlay für Pause === */
#overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 20px;
  font-size: 1.5em;
  background-color: rgba(178, 34, 34, 0.7);
  color: white;
  border-radius: 5px;
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s, opacity 0.5s ease;
  z-index: 10;
}

#overlay.visible {
  visibility: visible;
  opacity: 1;
}

/* === Lautstärkeregler === */
.volume-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 20px auto;
}

.slider {
  -webkit-appearance: none;
  appearance: none;
  width: 150px;
  height: 10px;
  background: #B22222;
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #B22222;
  border-radius: 50%;
  cursor: pointer;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2px solid #B22222;
  border-radius: 50%;
  cursor: pointer;
}

.slider::-moz-range-track {
  background: #B22222;
  height: 10px;
  border-radius: 5px;
}

.speaker {
  font-size: 20px;
  color: #fff;
}

/* === Rechtlicher Hinweis & Info === */
#legalInfoBox {
  display: none;
  margin-top: 10px;
  background-color: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 10px;
  border: 1px solid #B22222;
  border-radius: 5px;
  width: 90%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 14px;
  transition: opacity 0.4s ease;
  opacity: 0;
}

#legalInfoBox.show {
  display: block;
  opacity: 1;
}

#credits {
  color: white;
  font-size: 16px;
  margin-top: 20px;
  padding: 0 10px;
}

#moreInfoTrigger {
  cursor: pointer;
  text-decoration: underline;
  color: red;
}

/* === Fehlerbox === */
#errorBox {
  display: none;
  background-color: #8B0000;
  color: white;
  padding: 15px;
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 5px;
  box-shadow: 0 0 10px black;
  z-index: 9999;
  font-size: 16px;
  max-width: 80%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

/* === Watchtime === */
#watchtime {
  color: white;
  font-size: 16px;
  margin-top: 10px;
}

/* === Responsive Optimierung === */
@media (max-width: 600px) {
  #header {
    font-size: 1.4em;
    flex-direction: column;
  }

  button {
    width: 80%;
    margin: 8px auto;
  }

  .volume-bar {
    flex-direction: column;
  }

  #songLabel {
    font-size: 1.2em;
  }

  #errorBox {
    font-size: 14px;
  }
}