/* Self‑Hosted Playfair Display */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 700;
  src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-display: swap;
}

/* Global Styles */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
}

/* Bühne */
#stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background: #000;
}

/* Blur‑Overlay */
.background-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  filter: blur(20px) brightness(0.5);
  z-index: 0;
}

/* Medien im Vordergrund */
.media-item {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 60vw;
  max-height: 80vh;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  will-change: top, left, opacity, transform;
  z-index: 1;
}

/* Dünne Rahmen */
.frame-item {
  position: absolute;
  border: 2px solid #cac7a0;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(202,199,160,0.8);
  background: transparent;
  will-change: top, left, opacity, transform;
  z-index: 1;
}

/* Bottom‑Player‑Panel */
#player-panel {
  position: fixed;
  bottom: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  padding: 0.5rem 1rem;
  border-radius: 1rem 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 4000;
  color: #fff;
  transition: bottom 0.5s ease-out;
}
#player-panel.visible {
  bottom: 0;
}
#player-panel button {
  background: #444;
  border: none;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  color: #fff;
  cursor: pointer;
}
#player-panel button:hover {
  background: #666;
}
#panel-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Großes Titel‑Overlay */
#title-overlay {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(2rem, 8vw, 6rem);
  white-space: nowrap;
  text-shadow: 0 0 20px rgba(0,0,0,0.8);
  z-index: 5000;
  pointer-events: none;
}

/* Intro‑Overlay & Passwort‑Modal */
#intro-overlay,
#password-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  z-index: 6000;
}
.intro-sentence {
  font-size: clamp(1.5rem, 5vw, 3rem);
  margin: 0.5rem 0;
  opacity: 0;
  line-height: 1.2;
}

/* Passwort‑Modal initial versteckt */
#password-modal {
  display: none;
}
#password-prompt {
  font-size: clamp(1.25rem, 4vw, 2rem);
  margin-bottom: 1rem;
}
#password-input {
  padding: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  border-radius: 0.3rem;
  border: none;
  width: 80%;
  max-width: 300px;
}
.password-error {
  color: #f55;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  height: 1.2em;
}
.password-buttons {
  display: flex;
  gap: 1rem;
}
.password-buttons button {
  background: #444;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.3rem;
  color: #fff;
  cursor: pointer;
}
.password-buttons button:hover {
  background: #666;
}
