body {
  font-family: 'Courier New', Courier, monospace;
  background: #1c1c1c;
  color: #fff;
  margin: 0;
  padding: 0;
}

.music-section {
  padding: 20px;
}
.music-section h1,
.music-section h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #0cf;
}

/* Новый список треков */
.tracks-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 700px;
  margin: 0 auto 40px;
}

.track-item {
  display: flex;
  align-items: center;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  border-radius: 10px;
  padding: 15px 15px;
  box-shadow: 20px 20px 60px #0f0f0f, -20px -20px 60px #2a2a2a;
  transition: transform 0.2s;
  flex-wrap: wrap;
  gap: 12px;
}

.track-item:hover {
  transform: translateX(8px);
}

.track-info {
  flex-grow: 1;
  min-width: 0;
}

.track-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.05em;
  line-height: 1.3;
}

.track-meta {
  color: #0cf;
  font-size: 0.9em;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0cf;
  color: #1c1c1c;
  border: none;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.play-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.play-btn.playing {
  background: #ff0;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* Кнопки действий */
.track-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.action-button img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease-in-out;
}

.action-button:hover img {
  transform: scale(1.1);
}

/* ==================== MODAL STYLES ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.92);
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.modal-content {
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  padding: 25px 20px 20px;
  max-width: 90%;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  color: #fff;
  margin: 20px 0;
}

.close {
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 28px;
  cursor: pointer;
  color: #aaa;
  z-index: 10;
}

.close:hover {
  color: #fff;
}

.copy-button {
  position: absolute;
  top: 12px;
  left: 18px;
  background-color: #2a2a2a;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #fff;
  font-size: 14px;
}

.copy-button:hover {
  background-color: #0cf;
  color: #1c1c1c;
}

#lyrics-content {
  white-space: pre-wrap;
  line-height: 1.65;
  font-size: 15.5px;
  padding: 15px 5px;
  color: #ddd;
}

/* Share links */
.share-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.share-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
  padding: 10px;
  background-color: #2a2a2a;
  border-radius: 5px;
}

.share-link:hover {
  background-color: #333;
}

.share-link img {
  margin-right: 10px;
}

/* Vinyl Player */
.vinyl-player {
  display: none;
  position: fixed;
  bottom: 85px;   /* На ПК нормально */
  left: 20px;
  z-index: 999;
}

.vinyl-record {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  animation: spin 4s linear infinite paused;
  cursor: pointer;
}

.vinyl-record.playing {
  animation-play-state: running;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.close-vinyl {
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 20px;
  cursor: pointer;
  color: #aaa;
}

.close-vinyl:hover {
  color: #fff;
}

/* Sticky Player */
.sticky-player {
  display: none;
  position: fixed;
  bottom: 0;
  width: 100%;
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
  padding: 10px 12px 12px;
  z-index: 998;
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
}

.control-btn {
  background-color: #2a2a2a;
  border: none;
  color: #0cf;
  font-size: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
  z-index: 2;
}

.control-btn:hover {
  background-color: #333;
  transform: scale(1.1);
}

#play-pause {
  font-size: 22px;
  width: 46px;
  height: 46px;
}

#track-title {
  flex-grow: 1;
  text-align: center;
  min-width: 160px;
  font-size: 15px;
  padding: 0 12px;
  overflow: hidden;
  white-space: nowrap;
  animation: marquee-title 9s linear infinite;
  z-index: 1;
}

@keyframes marquee-title {
  0%   { transform: translateX(30%); }
  100% { transform: translateX(-100%); }
}

.seek-bar {
  width: 220px;
}

#current-time, #duration {
  font-size: 0.9em;
  color: #aaa;
  min-width: 45px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 6px;
}

.volume-icon {
  font-size: 18px;
  color: #aaa;
}

.volume-slider {
  width: 90px;
  accent-color: #0cf;
}

/* Приглашение включить музыку */
.music-invite {
  position: fixed;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(145deg, #3a3a3a, #1a1a1a);
  padding: 12px 20px;
  border-radius: 50px;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.7);
  z-index: 997;
  cursor: pointer;
  display: none;
  max-width: 94%;
  width: 94%;
  border: 1px solid rgba(0, 255, 200, 0.3);
}

.music-invite:hover {
  box-shadow: 0 8px 30px rgba(0, 255, 200, 0.4);
}

.music-invite .invite-content {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.music-invite p {
  margin: 0;
  font-size: 15px;
}

.music-invite button {
  background: #0cf;
  color: #1c1c1c;
  border: none;
  padding: 8px 18px;
  border-radius: 30px;
  font-weight: bold;
  white-space: nowrap;
}

/* Пагинация */
.pagination {
  text-align: center;
  margin: 30px 0;
}

.page-btn {
  background: #2a2a2a;
  color: #0cf;
  border: none;
  padding: 8px 14px;
  margin: 0 4px;
  border-radius: 5px;
  cursor: pointer;
}

.page-btn.active {
  background: #0cf;
  color: #1c1c1c;
}

/* Адаптивность */
@media (max-width: 767px) {
  .music-section {
    padding: 15px 10px;
  }
 
  .track-item {
    padding: 12px 12px;
    gap: 10px;
  }
 
  .play-btn {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
 
  .track-actions {
    gap: 6px;
  }
 
  .action-button img {
    width: 28px;
    height: 28px;
  }
 
  .tracks-list {
    padding: 0 5px;
  }
 
  .vinyl-player {
    bottom: 135px;
  }
 
  .player-controls {
    gap: 6px;
    padding: 0 8px;
  }
 
  .control-btn {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
 
  #play-pause {
    width: 42px;
    height: 42px;
  }
 
  .seek-bar {
    width: 130px;
  }
 
  #track-title {
    flex-basis: 100%;
    margin: 4px 0 2px;
    font-size: 14.5px;
    order: -1;
    text-align: center;
    padding: 0 4px;
  }
 
  .volume-control {
    margin-top: 6px;
  }
 
  .volume-slider {
    width: 80px;
  }

  .music-invite {
    bottom: 12px;
    padding: 10px 16px;
    max-width: 94%;
    width: 94%;
    border-radius: 40px;
  }

  .music-invite .invite-content {
    flex-direction: column;
    gap: 8px;
  }

  .music-invite p {
    font-size: 14.5px;
    line-height: 1.4;
  }

  .music-invite button {
    padding: 7px 20px;
    font-size: 14.5px;
  }
}