/* Ogólny styl strony */
body {
  background: #000;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;

  /* tło albumu */
  background-size: cover;
  background-position: top center;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: inherit;
  filter: blur(3px) brightness(0.4);
  z-index: -1;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}

h1 {
  margin-bottom: 20px;
}

/* Karuzela albumów */
.carousel-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.nav-button {
  background: none;
  border: none;
  color: #888;
  font-size: 36px;
  cursor: pointer;
  width: 50px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 10px;
}

.album-item {
  padding: 5px;
  transition: transform 0.3s ease;
}

.album-item img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.album-item.active img {
  width: 150px;
  height: 150px;
  border-color: #00b050;
}

/* Sterowanie */
.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
}

.control-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #00b050;
  border: none;
  color: #000;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.control-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.control-btn:hover:not(:disabled) {
  background: #00c060;
}

/* NOWY STYL DLA KONTENERA POSTĘPU */
.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 600px;
  margin: 10px auto;
}

/* Pasek postępu (Suwak) */
#progressSlider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  background: #222;
  border-radius: 5px;
  margin: 0 10px;
  outline: none;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#progressSlider:hover {
  opacity: 1;
}

#progressSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  background: #00b050;
  border-radius: 50%;
  cursor: pointer;
}

#progressSlider::-moz-range-thumb {
  width: 15px;
  height: 15px;
  background: #00b050;
  border-radius: 50%;
  cursor: pointer;
}

/* NOWY STYL DLA LICZNIKÓW CZASU */
.time-label {
  font-size: 0.9em;
  color: #fff;
  font-weight: bold;
  width: 50px;
  text-align: right;
}

#currentTime {
  text-align: left;
}

/* Lista utworów */
.track-list {
  list-style: none;
  padding: 0;
  margin-top: 10px;
  width: 100%;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.track-list li {
  background: #222;
  padding: 10px;
  margin: 2px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  color: #ccc;
  transition: background 0.2s ease, color 0.2s ease;
}

.track-list li:hover {
  background: #333;
  color: #fff;
}

.track-list li.active {
  background: #00b050;
  color: #000;
}

.track-number {
  margin-right: 10px;
}

.track-name {
  flex-grow: 1;
  text-align: left;
}

/* Ikona pobierania (wbudowany SVG) */
.track-download {
  color: #ccc;
  pointer-events: none;
}

.track-download:hover {
  color: #fff;
}

/* Styl dla osadzonych ikon SVG */
.icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  pointer-events: none;
}
