/* === FONTS === */
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('fonts/PlayfairDisplay-Regular.woff2') format('woff2');
  font-weight: 400;
}
@font-face {
  font-family: 'PlayfairDisplay';
  src: url('fonts/PlayfairDisplay-Bold.woff2') format('woff2');
  font-weight: 700;
}
/* === MONTSERRAT FONT === */
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* === RESET & BASE === */
html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  overflow: hidden;
  background: black;
  font-family: 'PlayfairDisplay', serif;
  color: white;
}

/* === VIDEO BACKGROUND === */
video#video1 {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* === HEADLINE === */
#headline-container {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: clamp(1.2em, 4vw, 1.8em);
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
  visibility: hidden;
  z-index: 1;
}
.flyIn {
  animation: flyIn 4s ease-out;
}
@keyframes flyIn {
  0%   { opacity: 0; transform: translate(-50%,-50%) scale(5); }
  15%  { opacity: 1; transform: translate(-50%,-50%) scale(1.4); }
  30%  { transform: translate(-50%,-50%) scale(1); }
  80%  { opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%,-50%) scale(0.8); }
}

/* === LOGO === */
#logo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.2);
  visibility: hidden;
  opacity: 0;
  z-index: 1;
}
.zoomIn {
  animation: zoomLogo 1.5s ease-out forwards;
}
@keyframes zoomLogo {
  from { transform: translate(-50%,-50%) scale(0.2); opacity: 0; }
  to   { transform: translate(-50%,-50%) scale(1);   opacity: 1; }
}

/* === MUSIC PLAYER === */
#music-player {
  position: absolute;
  bottom: 20px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  padding: 12px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  width: clamp(200px, 90%, 400px);
  container-type: inline-size;
  z-index: 1;
}
#music-player img#cover {
  width: 60px; height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
#music-player .info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
#music-player #album-info {
  white-space: normal;
  line-height: 1.2;
  font-size: 0.9em;
  font-weight: 600;
}
#music-player #album-info .artist-line {
  display: block;
  font-weight: 400;
  opacity: 0.8;
  margin-top: 2px;
}
#music-player #track-info {
  font-size: 1.1em;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons: Play & Skip */
#music-player #play-btn,
#music-player #skip-btn {
  width: 60px; height: 60px;
  background: rgba(255,255,255,0.15);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  color: white;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}
/* schiebt Play- und Skip-Buttons ans Ende */
#music-player #play-btn {
  margin-left: auto;
}
#music-player #skip-btn {
  margin-left: 4px;
}
#music-player #play-btn:hover,
#music-player #skip-btn:hover {
  background: rgba(255,255,255,0.25);
}

/* === RESPONSIVE (Mobile) === */
@media (max-width: 480px) {
  #music-player {
    /* zurück zu Zeilen-Layout, Wrapping erlauben */
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    padding: 10px 16px;
    gap: 8px;
  }
  #music-player img#cover {
    width: 50px;
    height: 50px;
  }
  #music-player .info {
    /* Info dehnt sich, um Buttons ans Ende zu schieben */
    flex: 1 1 auto;
    min-width: 80px;
  }
  #music-player #play-btn,
  #music-player #skip-btn {
    width: 50px;
    height: 50px;
  }
}

/* === CONTAINER QUERY für very tight layouts === */
@container (max-width: 300px) {
  #music-player {
    gap: 6px;
    padding: 8px;
  }
  #music-player img#cover,
  #music-player #play-btn,
  #music-player #skip-btn {
    width: 40px;
    height: 40px;
  }
}

/* === FALLBACK für Browser ohne clamp() === */
@supports not (width: clamp(1rem, 50%, 2rem)) {
  #music-player {
    width: 90%;
    max-width: 400px;
  }
}

/* === FOOTER === */
footer {
  position: absolute;
  bottom: 0; width: 100%;
  text-align: center;
  font-size: 0.75em;
  padding: 5px 0;
  color: #ccc;
  font-family: 'Montserrat', sans-serif;
  z-index: 1;
}
