/* =========================
   RESET & BASIS
   ========================= */

/* =========================
   SLIDER CONTAINER
   ========================= */
#sliderContainer {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  z-index: 40;           /* unter Top-Search */
  position: relative;    /* für Overlay & Items */
  margin-top: -30px;     /* Slider nach oben verschieben */
}

#sliderContainer::-webkit-scrollbar { display: none; }



/* =========================
   SLIDER ITEM
   ========================= */
.slider-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;  /* Text & Play-Button unten */
  min-width: 100vw;
  height: 450px;
  padding: 16px;
  position: relative;
  flex-shrink: 0;
  color: #fff;
  background-size: cover;
  background-position: center;
  scroll-snap-align: start;
  will-change: transform;
}

/* Overlay über Slider-Item */
.slider-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.0) 0%,     /* oben unverändert */
    rgba(0,0,0,0.10) 45%,    /* 3/4 komplett klar */
     rgba(0,0,0,0.2) 85%,    /* 3/4 komplett klar */
    rgba(0,0,0,0.35) 94%,   /* sanfter Beginn */
    rgba(0,0,0,0.75) 100%   /* unten dunkel */
  );
}

.slider-item > *:not(video) {
  position: relative;
  z-index: 2;
}
.slider-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* =========================
   TEXT & BUTTONS
   ========================= */
.slider-featured { color: gold; font-size: .95rem; }

.slider-title { 
    font-size: 1.5rem; 
    font-weight: 700; 
    margin-bottom: 10px; /* Abstand zum Artist */
}
.slider-artist {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}
.slider-artist img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.slider-release {
  font-size: .85rem;
  opacity: .8;
  margin-bottom: 12px;
}

.slider-play-btn {
  width: 120px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 24px;
  background: linear-gradient(135deg,#7e58d7,#c18aff);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative; /* klickbar über allem */
  z-index: 2;         /* über Overlay */
}

.play-icon {
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
}

.slider-play-btn.playing .play-icon {
  width: 18px;
  height: 24px;
  background: #fff;
  border: none;
  clip-path: polygon(
    0 0,40% 0,40% 100%,0% 100%,
    60% 0,100% 0,100% 100%,60% 100%
  );
}

/* =========================
   TOP SEARCH BUTTON – IMAGE STYLE
   ========================= */

.top-search {
  position: fixed;
  top: 50px;
  right: 8px;
  z-index: 50;
}

#searchToggle {
  display: flex;
  align-items: center;
  justify-content: space-between;

  height: 40px;
  min-width: 72px;
  padding: 6px 6px 6px 12px;

  border-radius: 999px;
  border: none;

  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);

  color: #fff;
  font-size: 16px;
  cursor: pointer;

  position: relative;
}

/* Avatar rechts im Button (rein per CSS) */
#searchToggle::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;

  background-image: url("https://www.pablorival.de/wp-content/uploads/2025/11/Rival_studio_17.avif");
  background-size: cover;
  background-position: center;

  border: 2px solid rgba(255,255,255,0.4);
  margin-left: 10px;
}

/* Hover-Feedback */
#searchToggle:hover {
  background: rgba(0,0,0,0.7);
}

/* ============================
   HERO SLIDER EQUALIZER
   ============================ */
/* Basis für den Equalizer: direkt über dem Künstlerbild */
.slider-item .slider-artist {
  position: relative; /* Wichtig: der Equalizer wird absolut relativ zu diesem Container */
}

.hero-slider-equalizer {
  position: absolute;
  bottom: 10px;            /* direkt über dem unteren Rand des Bildes */
  left: 17px;              /* horizontal zentriert */
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  align-items: flex-end;  /* Balken wachsen nach oben */
  z-index: 5;
  pointer-events: none;
}

.hero-slider-equalizer div {
  width: 2px;
  height: 14px;           /* maximale Höhe */
  background: #c18aff;
  transform-origin: bottom; /* von unten skalieren */
  animation: heroEqBounce 0.5s infinite alternate;
}

@keyframes heroEqBounce {
  0% { transform: scaleY(0.33); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(0.33); }
}


.slider-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}


/* =========================
   DESKTOP
   ========================= */
@media (min-width: 769px) {
  #sliderContainer { gap: 16px; padding-bottom: 16px; }

  .slider-item {
    min-width: 260px;
    max-width: 300px;
    height: 350px;
    margin: 0 16px;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,.3);
  }
}


/* =========================
   FULLSCREEN SLIDES
   ========================= */
.fsp-slide {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  font-weight: bold;
  color: #fff;
}
/* =========================
   SCROLLBAR / INNER CONTAINER
   ========================= */
.fsp-scroll-root {
  height: 100%;
  overflow-y: auto;         /* scrollbarer Bereich */
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}



@media (max-width: 768px) {

  #sliderContainer{
    position: relative;
    top: 0px;

    /* Full-bleed Container */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);

    /* Safety gegen fremde Desktop-Regeln */
    max-width: 100vw;
    transform: none;
  }

  .slider-item{
    /* Nimmt 100% vom Container (stabiler als 100vw) */
    flex: 0 0 100%;
    min-width: 100%;
    max-width: 100%;

    border-radius: 0;
  }
 .slider-play-btn{
    flex: 0 0 auto !important;
    flex-shrink: 0 !important;

    width: 120px !important;
    height: 48px !important;

    min-width: 120px !important;
    min-height: 48px !important;
  }

  .play-icon{
    flex: 0 0 auto !important;
}
 @media (max-width: 600px){
  /* Slider darf NICHT über dem Header liegen */
  #sliderContainer,
  #slider{
    position: relative;
    z-index: 1;
 transform: translateY(-50px);
  }
}
}