body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding-bottom: 100px; /* увеличен отступ для расширенного плеера */
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px;
  flex-wrap: wrap;
}
a.button {
  padding: 8px 12px;
  background: #007BFF;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  margin-left: 10px;
}
a.button:hover {
  background: #0056b3;
}
h1 {
  text-align: center;
  margin-top: 0;
}
#tracks {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px;
}
.track {
  background: #fff;
  padding: 10px;
  border-radius: 8px;
  width: calc(33% - 20px);
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}
.track:hover {
  transform: translateY(-5px);
}
.track img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  max-height: 150px;
}
.track h3 {
  margin: 10px 0 5px 0;
  text-align: center;
}
.track p {
  margin: 0 0 10px 0;
}
.playlist-checkbox {
  margin-top: 10px;
}
.sticky-player {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(135deg, grey, #e7e7e7);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -5px 15px rgba(0,0,0,0.5);
  z-index: 1000;
  font-family: Arial, sans-serif;
  flex-wrap: wrap;
  gap: 15px;
}
.player-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  min-width: 300px;
}
.player-center {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 400px;
}
.player-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1;
  justify-content: flex-end;
}
#audioControls {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
button {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  padding: 5px;
  border-radius: 50%;
  transition: background 0.2s;
}
button:hover {
  background: rgba(255,255,255,0.1);
  color: #00ffff;
}
button.active {
  color: #00ffff;
  background: rgba(0,255,255,0.1);
}
#progressContainer {
  width: 100%;
  height: 5px;
  background: #555;
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}
#progress {
  height: 5px;
  background: #00ffff;
  width: 0%;
  border-radius: 3px;
}
.time-display {
  display: flex;
  justify-content: space-between;
  color: #aaa;
  font-size: 12px;
}
.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}
.volume-slider {
  width: 80px;
  height: 5px;
  background: #555;
  border-radius: 3px;
  position: relative;
  cursor: pointer;
}
.volume-slider-fill {
  position: absolute;
  height: 5px;
  background: #00ffff;
  border-radius: 3px;
  width: 70%;
}
#volumeValue {
  color: #aaa;
  font-size: 12px;
  min-width: 30px;
}
.playlist-controls {
  margin-top: 20px;
  padding: 20px;
  background: #b4b4b4;
  border-radius: 8px;
}
.playlist-controls h3 {
  margin-top: 0;
}
.playlist-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}
#playlistList {
  margin-top: 10px;
  max-height: 200px;
  overflow-y: auto;
}
.playlist-item {
  padding: 5px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
}
.playlist-item:hover {
  background: #eee;
}
@media(max-width: 768px) {
  .track {
    width: calc(50% - 20px);
  }
  .player-left, .player-center, .player-right {
    min-width: 100%;
  }
  .sticky-player {
    padding: 10px;
  }
}
