/* CSS Document */
@charset "utf-8";

/* allg. Farben */

:root {
  --background:   rgba(037,065,089,1.00);
	--blau:         rgba(066,097,126,1.00);
  --dunkelblau:  	rgba(037,065,089,1.00);
	--weiss:        rgba(255,255,255,1.00);
	--hintergrund:  rgba(250,245,240,1.00);
	--grau: 	      rgba(050,050,050,1.00);
	--dunkelgrau:   rgba(020,020,020,1.00);
  --accent1-color:rgb(98, 98, 98);
	--accent2-color:rgba(037,065,089,1.00);
	
	--border-radius: 10px;
	--border-radius-large: 8px;
}

/* Schriftart --------------------------------------------- */

@font-face {
    font-family: sansC5italic;
    src: url(fonts/TheSansC5-4iSemiLightIta.otf);
}

@font-face {
    font-family: sansc5semilight;
    src: url(fonts/TheSansC5-4_SemiLight.otf);
}

@font-face {
    font-family: sansc5semibold;
    src: url(fonts/TheSansC5-6_SemiBold.otf);
}

@font-face {
    font-family: sansc5light;
    src: url(fonts/TheSansC5-3_Light.otf);
}

@font-face {
  font-family: "Noto Music";
  src: url("fonts/NotoMusic-Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}


/* Schriftform --------------------------------------------- */

h1 {
  font-family: sansc5semibold;
  font-weight: normal;
}

h2 {
  font-family: sansc5semibold;
  font-weight: normal;
}

h3 {
  font-family: sansc5semibold;
  font-weight: normal;
}

p {
  font-family: sansc5semilight;
}

body {
  background: var(--background);
  margin: 0;
  padding: 60px; /*abstand von Rand*/
  overflow: hidden; /* Hide scrollbars */
}

.container {
  display: flex;
  gap: 80px;
  justify-content: center;
}

.player {
  width: 700px;
  height: 1000px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px inset rgba(255, 255, 255, 0.3);
  color: #fff;
  text-align: center;
  overflow: hidden; /* wichtig für den Streifen */
  box-shadow: 5px 4px 20px rgba(0, 0, 0, 0.5);
}

.playlist {
  width: 700px;
  padding: 30px 30px 15px 30px;
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 2px inset rgba(255, 255, 255, 0.3);
  color: #fff;
  text-align: left;
  overflow: hidden; /* wichtig für den Streifen */
  box-shadow: 5px 4px 20px rgba(0, 0, 0, 0.5);
}

/* Weißer diagonaler Streifen */
.player::before {
  content: "";
  position: absolute;
  top: 140px;
  left: 460px;
  width: 160px;
  height: 1000px;
  background: rgba(255, 255, 255, 0.08); /* leicht transparent */
  transform: rotate(35deg);
  pointer-events: none; /* Klicks nicht blockieren */
}

/* Weißer diagonaler Streifen */
.playlist::before {
  content: "";
  position: absolute;
  top: -340px;
  left: 30px;
  width: 160px;
  height: 1000px;
  background: rgba(255, 255, 255, 0.08); /* leicht transparent */
  transform: rotate(35deg);
  pointer-events: none; /* Klicks nicht blockieren */
}

.artist-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.progress-container {
  width: 100%;
  height: 15px;
  background: rgba(255, 255, 255, 1);
  margin: 0;
}

.progress-bar {
  width: 0%;
  height: 100%;
  background:  rgb(211, 104, 104);
  transition: width 0.1s linear;
}

.time-display {
  font-size: 20px;
  color: #eee;
  margin-top: 6px;
  text-align: center;
  font-family: sans-serif;
}

.info {
  padding: 0px 0px 20px 0px;
}

#artist-name {
  margin: 15px 0px 0px 0px;
  font-size: 40px;
}

#song-title {
  margin: 0px 0px 0px 0px;
  font-size: 35px;
}

#data-text {
  margin: 10px 0px 10px 0px;
  font-family: sansC5italic;
  font-size: 35px;
}

/* --- Info Button -------------------------------------------------- */
.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.info-btn {
  border: none;
  background: none;
  font-size: 1rem;
  cursor: pointer;
  color: #0a84ff;
  padding: 0;
}

.info-btn:hover {
  opacity: 0.8;
}

/* --- Overlay --- */
/* --- Overlay Hintergrund --- */
#info-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
  z-index: 9999;
}

#info-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- Modal Pop-up --- */
.info-modal {
  background: #fff;
  color: #000;
  width: 90%;
  padding: 1.5rem;
  border-radius: 12px;
  transform: translateY(10px) scale(0.96);
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Modal animiert erst, wenn Overlay aktiv ist */
#info-overlay.active .info-modal {
  opacity: 1;
  transform: translateY(0) scale(1);
}
/* --- Modal --- */
.info-modal {
  background: var(--background);
  color: var(--hintergrund);
  max-width: 1300px;
  width: 90%;
  padding: 50px;
  border-radius: 15px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.info-modal h2 {
  margin-top: 0;
  font-size: 45px;
}

.info-modal p {
  margin-top: 0;
  font-size: 35px;
}

/* Close Button */
.info-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  border: none;
  background: none;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Volumen --------------------------------------------- */

.volumen-icon {
  display: flex;
  gap: 170px;
  justify-content: center;
  padding: 20px 0px 0px 0px;
}

.volume-control {
  padding: 0px 0px 0px 0px;
  font-size: 30px;
  font-family: sansc5semilight;
  align-items: center;
}

.volume-control p {
  padding: 0;
  margin: 0px 0px 0px 0px;
}

/* Range Input — generelle Größe */
#player-volume {
  -webkit-appearance: none;
  width: 80%;             /* Slider-Länge */
  height: 40px;           /* Gesamthöhe inkl. Touch-Zone */
  background: transparent;
  cursor: pointer;
  touch-action: none;     /* verbessert Kontrolle bei Touch */
  
  --filled-color: var(--dunkelblau);  /* Farbe links */
  --empty-color: #ffffff;      /* Farbe rechts */

}

#player-volume {
  padding: 15px 0;  /* vergrößert unsichtbare Touch-Fläche */
}

/* === Chrome, Edge, Safari, iOS & Android === */
#player-volume::-webkit-slider-runnable-track {
  height: 15px;           /* dickere Leiste */
  background: linear-gradient(
    to right,
    var(--filled-color) 0%,
    var(--filled-color) calc(var(--value) * 1%),
    var(--empty-color) calc(var(--value) * 1%),
    var(--empty-color) 100%
    );
  border-radius: 5px;
}

#player-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  height: 28px;           /* Größe des Griffs */
  width: 28px;
  background: rgb(211, 104, 104);
  border-radius: 50%;
  margin-top: -9px;        /* Thumb vertikal zentrieren */
  border: 0px solid #2b2b2b;
}

/* === Firefox === */
#player-volume::-moz-range-track {
  height: 15px;
  background: #555;
  border-radius: 5px;
}

#player-volume::-moz-range-thumb {
  height: 28px;
  width: 28px;
  background: #4dd0e1;
  border-radius: 50%;
  border: 2px solid #2b2b2b;
}

/* Controls + Button --------------------------------------------- */

.controls {
  display: flex;
  justify-content: space-around;
  padding: 10px 0px 0px 0px;
  gap: 0.5rem;
  align-items: center;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 170px;
  height: 170px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--dunkelblau);
  color: #e3e3e3;              /* steuert Icon-Farbe via currentColor */
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, transform 120ms ease;
}

.icon-btn:focus-visible {
  outline: 2px solid #4dd0e1;
  outline-offset: 2px;
}

/* SVG */
.icon {
  width: 100px;                 /* Icon-Größe hier anpassen */
  height: auto;
  fill: currentColor;          /* macht das Icon per 'color' kontrollierbar */
  display: block;
}

.icon-volumen {
  width: 50px;                 /* Icon-Größe hier anpassen */
  height: auto;
  fill: currentColor;          /* macht das Icon per 'color' kontrollierbar */
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .icon-btn { transition: none; }
}

.playlist h3 {
  font-size: 50px;
}

.playlist ul {
  font-family: sansc5semilight;
  list-style: none;
  padding: 0;
  margin: 0;
}

.playlist li {
  padding: 40px 0px 20px 10px;
  font-size: 40px;
  cursor: pointer;
  border-bottom: 2px solid #ddd;
}

/* --- Playlist: Marker nur beim aktiven Titel --- */
.playlist ul {
  padding-left: 1.75rem;
  list-style: none;
}

.playlist ul li {
  list-style: none;
  cursor: pointer;
}

/* Hier erscheint der Marker */
.playlist ul li.playing {
  display: list-item;
  list-style-position: outside;
  list-style-image: url("img/play_arrow_24dp_E3E3E3_FILL0_wght400_GRAD0_opsz24.svg"); /* Pfad zu deinem Icon */
  color: #0a84ff;
  font-weight: 600;
}

.explane {
  padding: 0px 40px 20px 0px;
  position: absolute;
  bottom: 0;
}

.explane p {
  font-size: 35px;
}

.footer {
  padding: 20px 0px 0px 0px;
}

.footer p {
  color: #ffffff;
  text-align: center;
  font-size: 25px;
}

/* mit Hintergrund 
#screensaver {
  position: fixed;
  inset: 0;
  background: radial-gradient(1200px 800px at 30% 20%, rgba(255,255,255,0.06), transparent),
              radial-gradient(800px 600px at 70% 60%, rgba(255,255,255,0.05), transparent),
              linear-gradient(180deg, #0c1630, #1b2e59 60%, #0c1630);
  display: none;
  z-index: 9999;
  cursor: none;
}
*/

/* Container muss relativ sein, damit absoluter Hint korrekt positioniert */
#screensaver {
  position: fixed;      /* so nutzt du Bildschirmfläche vollständig */
  inset: 0;             /* full-screen */
  /*display: none;         wird per JS auf block gesetzt */
  opacity: 0;
  pointer-events: none;   /* im Ruhezustand nicht interaktiv */
  background: rgba(0, 0, 0, 0.7); /* dunkler Schleier */
  backdrop-filter: blur(5px);       /* echter Blur */
  transition: opacity 0.8s ease;  /* weiches Ein-/Ausblenden */
  /* background: transparent;  dein Canvas malt ohnehin den Inhalt */
  z-index: 9999;        /* ganz oben */
}


/* Aktiv → sichtbar + interaktiv */
#screensaver.active {
  opacity: 1;
  pointer-events: auto;
}


/* Canvas füllt den Container */
#notesCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block; /* verhindert unerwünschte Lücken */
}


/* "Kein Canvas"-Fallback erstmal versteckt – JS zeigt ihn nur bei Bedarf */
#no-canvas {
  position: absolute;
  inset: 0;
  display: none;              /* wird in startScreensaver() auf flex gesetzt, wenn kein ctx */
  align-items: center;
  justify-content: center;
  color: #fff;
}




/* Touch-Hinweis unten rechts */
#screensaver-touch-hint {
  position: absolute;
  right: 100px;
  bottom: 100px;
  opacity: 0;
  pointer-events: none;        /* blockiert keine Eingaben */
  transition: opacity 0.5s ease;
}

#screensaver-touch-hint.visible {
  opacity: 1;
}

/* Größe & Farbe deines SVG */
.touch-hint-svg {
  width: 300px;  /* passt sich an Bildschirm an */
  height: auto;
  display: block;
}

/* Wenn du die Farbe lieber zentral per CSS statt .cls-1 im SVG steuern willst: */
.touch-hint-svg .cls-1 { fill: #fff; }

/* Optional: leichtes Pulsieren */
.touch-hint-svg {
  animation: hint-pulse 2.2s ease-in-out infinite;
}

@keyframes hint-pulse {
  0%   { transform: scale(1);   }
  50%  { transform: scale(1.06);}
  100% { transform: scale(1);   }
}

/* Bewegungsreduktion respektieren */
@media (prefers-reduced-motion: reduce) {
  .touch-hint-svg { animation: none; }
  #screensaver-touch-hint { transition: none; }
}
