/* ============================
   Basis Styles
   ============================ */
body {
  user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  touch-action: pan-y; 
  margin: 0;
  padding: 20px;
  font-family: 'Arial', sans-serif;
  background: #121212;
  color: #fff;
}

h1.hero-title {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  background: linear-gradient(90deg, #ffffff, #c18aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 40px 0 40px;
  text-align: center;
}

h2 {
  font-weight: 700;
  margin-bottom: 20px;
}

#welcomeUser {
  visibility: hidden; /* Element ist unsichtbar */
}

/* =========================
   GENRE FILTER
   ========================= */
.genre-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  width: 90%;
  margin: 20px 0 0;
}

#genre-list {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  width: calc(100vw - 0px);  /* exakt wie Songliste */
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 10px;
  scrollbar-width: none;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

#genre-list::-webkit-scrollbar {
  display: none;
}

.genre-btn {
  flex: 0 0 auto;
  white-space: nowrap;
  border-radius: 999px;
}

.genre-scroll {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  border: none;
  color: #fff;
  font-size: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  opacity: 1;
  transition: background 0.2s;
}

.genre-scroll:hover {
  background: rgba(255,255,255,0.15);
}

.genre-scroll.left { left: 4px; }
.genre-scroll.right { right: 4px; }

/* =========================
   Slider
   ========================= */

.hero-slider {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #111;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: none;
}

.hero-slide.active {
  display: block;
}

.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.2));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  color: #fff;
}

.hero-title {
  font-size: 1.2rem;
  font-weight: 700;
}

.hero-info {
  font-size: 0.85rem;
  opacity: 0.85;
}

.hero-play {
  margin-top: 10px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #c18aff;
  color: #000;
  border: none;
  font-size: 22px;
  cursor: pointer;
}


/* =========================
   SONGS CONTAINER
   ========================= */
#songsBody {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: calc(100vw - 30px);
  max-width: calc(100vw - 30px);
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}

.song-row {
  display: flex;
  width: 100%;
  flex: 1 1 auto;
  align-items: center;
  background: #181818;
  height: 70px;
  padding: 0;
  border-radius: 6px;
  transition: background 0.2s;
  cursor: pointer;
  box-sizing: border-box;
}
.song-cover {
  position: relative; /* wichtig für das Overlay */
}

.cover-equalizer {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% - 5px));
  width: 20px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}


.cover-equalizer .bar {
  width: 3px;
  background: #7e58d7;
  animation: bounce 0.6s infinite ease-in-out;
}

/* Unterschiedliche Animationen für die Bars */
.cover-equalizer .bar:nth-child(1) { animation-delay: 0s; }
.cover-equalizer .bar:nth-child(2) { animation-delay: 0.1s; }
.cover-equalizer .bar:nth-child(3) { animation-delay: 0.2s; }
.cover-equalizer .bar:nth-child(4) { animation-delay: 0.3s; }
.cover-equalizer .bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}

.song-row:hover { background: #282828; }

/* =========================
   PLAYING SONG – BLUR BACKGROUND
   ========================= */

.song-row {
  position: relative;
  overflow: hidden;
}
/* Inhalt bleibt scharf */
.song-row > * {
  position: relative;
  z-index: 2;
}

.song-cover {
  flex: 0 0 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.song-cover img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  border-radius: 50%;
 
}
.song-cover img.playing {
  box-shadow:
    0 0 15px rgba(193, 138, 255, 0.6),
    0 0 30px rgba(126, 88, 215, 0.6),
    0 0 60px rgba(126, 88, 215, 0.4);
  filter: brightness(1.1);
}
.song-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 8px;
}

.song-title { font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.song-genre { font-size: 13px; font-weight: 400; color: #aaa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.song-buttons {
  display: flex;
  gap: 4px;
  flex: 0 0 auto;
  min-width: 40px;
  align-items: center;
  justify-content: flex-start; /* <- hier */
  margin-right: 8px; /* optional: Abstand zum Songtext */
}

.song-buttons button {
  background: transparent;
  border: none;
  outline: none;
  font-size: 24px;
  padding: 2px;
  cursor: pointer;
  opacity: 0.45;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.song-buttons button:hover { opacity: 1; }

.likes { font-size: 16px; margin-left: 2px; color: #aaa; }

/* =========================
   KOMMENTARE
   ========================= */
.song-comments {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
  display: flex;
  flex-direction: column;
  margin-top: 4px;
  padding: 0 10px;
  background: #222;
  border-radius: 6px;
}

.comment-input {
  width: 100%;
  resize: none;
  padding: 6px;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  background: #333;
  color: #fff;
  margin-bottom: 4px;
  min-height: 60px;
  line-height: 1.4;
}

.comment-action-row { display: flex; gap: 4px; margin-bottom: 4px; }

.comment-action-row .toggle-comments {
  flex: 0 0 60px; height: 40px; border-radius: 6px;
  background: linear-gradient(135deg, #7e58d7, #c18aff);
  color: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: none;
  transition: background 0.2s, transform 0.2s;
}

.comment-action-row .toggle-comments:hover {
  background: linear-gradient(135deg, #c18aff, #7e58d7);
  transform: scale(1.05);
}

.comment-action-row .submit-comment {
  flex: 1; height: 40px; border-radius: 6px;
  padding: 0 12px; font-size: 14px;
  background: linear-gradient(90deg, #ff5e5e, #d80070, #1ca2a2);
  color: #fff; font-weight: 700; border: none; cursor: pointer;
  transition: all 0.2s ease;
}

.comment-action-row .submit-comment:hover { filter: brightness(1.1); }

/* ERSETZEN */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: none;
  overflow: visible;
}


.comment-list div { background: #181818; padding: 4px 6px; border-radius: 4px; font-size: 13px; color: #ccc; }

/* ============================
   Suchleiste
   ============================ */
.search-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: calc(100vw - 0px);  /* exakt wie Songliste */
  max-width: calc(100vw - 0px);
  margin: 0 auto 12px;
  gap: 10px;
  box-sizing: border-box;
}

#songSearch {
  flex: 1;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 16px;
  background: #1c1c1c;
  color: #fff;
  box-sizing: border-box;
  margin: 0;
}

#searchToggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #fbfafa, #7e58d7);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

/* Aktuell gespielter Song: linke Seite abrunden */
.song-row.playing-bg {
  border-radius: 40px 10px 10px 40px; /* Runde Ecken ab Play oben-links, oben-rechts, unten-rechts, unten-links */
  overflow: hidden;    
  transition: all 0.3s ease;
  position: relative;  
}

/* Blur-Hintergrund */
.song-row.playing-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('https://www.pablorival.de/wp-content/uploads/2025/08/Rival-fashion-25-24.avif');
  background-size: cover;
  background-position: center;
  filter: blur(14px);
  transform: scale(1.15);
  z-index: 0;
  border-radius: 20px 0 0 20px; /* exakt wie Container */
}

/* Dunkles Overlay */
.song-row.playing-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.35));
  z-index: 1;
  border-radius: 20px 0 0 20px; /* exakt wie Container */
}

/* Inhalt bleibt scharf */
.song-row.playing-bg > * {
  position: relative;
  z-index: 2;
}


/* Aktuell gespielter Song: Songzeile abrunden */


/* sanfter Übergang */
.song-row {
  transition: background 0.4s ease;
}

/* Headline Schriftzug */
#startHeadline {
  font-size: 1.8rem;       
  font-weight: 700;        
  color: #FFD700;          
 
  margin-bottom: 6px;      
  text-align: left;        /* links bündig */
  padding-left: 0px;      /* Abstand zur linken Bildschirmkante */
}

/* Typ */
#headlineType {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 0 6px rgba(0,0,0,0.7);
  margin-bottom: 4px;
  text-align: left;        /* links bündig */
  padding-left: 0px;
}

/* Release */
#headlineRelease {
  font-size: 1rem;
  font-weight: 500;
  color: #eee;
  text-shadow: 0 0 4px rgba(0,0,0,0.5);
  margin-bottom: 10px;  
  text-align: left;        /* links bündig */
  padding-left: 0px;
}


/* ============================
   Desktop: feste Breite 450px
   ============================ */
@media (min-width: 601px) {

  /* Genre Wrapper & Liste */
  .genre-wrapper {
    width: 450px;
    margin: 20px auto 0 auto;
  }

  #slider {
    display: block;
    max-width: 85%;   /* Container maximal 450px */
    width: 100%;        /* Container passt sich an */
    margin: 0 auto;     /* horizontal zentrieren */
    box-sizing: border-box;
  }

  #slider_pic {
    display: block;
    width: 100%;        /* Bild füllt Container */
    height: auto;       /* proportional */
    margin: 0 auto;
  }
  #genre-list {
    width: 100%;  /* passt sich dem Wrapper an */
    padding-left: 0;
    padding-right: 0;
    gap: 8px;
  }

  .genre-btn {
    padding: 6px 12px;  /* optional leicht größer */
    font-size: 14px;
  }

  /* Suchleiste */
  .search-wrapper {
    width: 450px;
    margin: 0 auto 12px auto;
  }

  /* Songliste */
  #songsBody {
    width: 450px;
    max-width: 450px;
    margin: 0 auto;
  }

}

/* ============================
   Suchergebnisse & Headlines
   ============================ */
#searchResultsWrapper { margin-bottom: 0; }
#searchResultsWrapper.active { margin-bottom: 30px; }

#searchHeadline { display: none; font-size: 1rem; font-weight: 600; margin: 10px 0; text-align: left; color: #fff; }

#startHeadline { font-size: 1rem; font-weight: 600; margin: 10px 0; color: #fff; }

.sectionHeadline {
  font-size: 1rem; font-weight: 600;
  margin: 20px 0 10px 0;
  color: #fff;
  background: linear-gradient(90deg, #ffffff, #c18aff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

#silvesterOnlyWrapper { margin: 40px 0; }

@media (max-width: 600px) {

  .genre-scroll { display: none !important; }

  .genre-wrapper {
    width: calc(100vw - 30px);
    margin: 20px auto 0 auto;
  }

  #genre-list {
    width: 100%;
    padding-left: 0;
    padding-right: 10px;
    margin: 0;
    overflow-x: auto;
    gap: 8px;
    flex-wrap: nowrap;
    box-sizing: border-box;
  }

  .genre-btn {
    padding: 6px 12px;
    font-size: 13px;
  }

  .search-wrapper {
    width: calc(100vw - 20px);
    margin: 0 auto 12px;
  }
}


}




