body {
  font-family: Arial, sans-serif;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #f9f9f9;
}
.container {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.player-box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  margin: 20px 0;
}
button, select {
  padding: 8px 15px;
  margin: 5px;
  border-radius: 8px;
  border: 1px solid #ddd;
}
button {
  background: #0a38dc;
  color: white;
  border: none;
  cursor: pointer;
}
button:hover {
  background: #07289d;
}
/* Обертка для плеера и выбора станции */
.player-controls-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  width: 100%;
}

/* Блок с плеером и кнопками */
.player-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 200px;
  flex-grow: 1;
}

.player-controls audio {
  width: 100%;
  max-width: 300px;
  filter: sepia(20%) saturate(70%) grayscale(1) contrast(99%) invert(12%);
}

.player-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-btn {
  background: #dddddd;
  color: #333333;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.player-btn:hover {
  background: #858585;
  color: #ffffff;
}

/* Блок выбора станции */
.station-select {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 200px;
  flex-grow: 1;
}

.station-select label {
  font-weight: bold;
  white-space: nowrap;
}

.station-select select {
  width: 100%;
  max-width: 250px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
}
    
.track-info {
  margin: 20px 0;
  padding: 15px;
  background: white;
  border-radius: 5px;
}
#stream-logo {
  max-width: 300px;
  max-height: 150px;
  display: block;
  margin: 10px 0;
  border-radius: 5px;
  /*opacity: 0.7;
  background-color: #e0e0e0;
  padding: 20px;
  box-sizing: border-box;*/
}
.share-buttons a {
  /*display: inline-block;*/
  padding: 8px 15px;
  margin: 5px;
  background: rgb(245 245 245);
  border-radius: 8px;
  text-decoration: none;
  color: #333;
}
.menu a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  flex: 1 1 45%;
  margin: 5px;
  text-align: center;
  font-size: 14px;
  padding: 10px 5px;
}
.menu a:hover {
  display: inline-block;
  text-decoration: none;
  color: #0a38dc;
  flex: 1 1 45%;
  margin: 5px;
  text-align: center;
  font-size: 14px;
  padding: 10px 5px;
}

#btn-player:hover {
background: #858585;
color: #ffffff;
}

#btn-player {
background: #dddddd;
color: #333333;
border: none;
cursor: pointer;
}

/* Контейнер всей информации */
.track-info-container {
  width: 100%;
  margin-top: -15px;
}

/* Блок информации о станции */
.station-info-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.station-logo {
  width: 300px;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
}

.station-text {
  flex-grow: 1;
}

.station-text h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
}

.station-text h4 {
  margin: 0;
  font-size: 1.0rem;
  color: #333;
  margin: 10px 0px 10px 0px;
  font-weight: 500;
  font-style: italic;
}

.station-text p {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.9rem;
}

.stream-genre-text {
  margin: 5px 0 0;
  color: #666;
  font-size: 0.7rem;
}

/* Блок информации о треке */
.track-info-block {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.track-cover {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.now-playing {
  flex-grow: 1;
}

.now-playing-item {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.now-playing-item strong {
  color: #555;
}

 /* Новые стили для обложек */
    .track-cover, .station-logo {
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    .station-info-block { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; }
    .track-info-block { display: flex; align-items: center; gap: 15px; margin-top: 15px; }

/* Добавьте в style.css */
.track-history {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
  gap: 15px;
}

.history-item {
  flex: 1;
  padding: 10px;
  background: rgb(245 245 245);
  border-radius: 8px;
}

.history-item h4 {
  margin: 0 0 5px 0;
  color: #555;
  font-size: 14px;
}

#previous-track, #next-track {
  font-size: 13px;
  min-height: 18px;
}

/*#current-artist.connecting {
  color: #FFA500;
  font-style: italic;
}*/

.safe-play-button {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  background: #0437db;
  color: white;
  border: none;
  border-radius: 25px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
}
/*  #safe-play-btn:hover {
    background: #1e7dfb !important;
    transform: translateX(-50%) scale(1.05) !important;
  }
  #safe-play-btn:active {
    transform: translateX(-50%) scale(0.98) !important;
  }*/

.safe-play-btn:hover {
    background: #1e7dfb !important;
    transform: translateX(-50%) scale(1.05) !important;
  }
.safe-play-btn:active {
    transform: translateX(-50%) scale(0.98) !important;
  }

  /* Показать ошибки */
.error-message {
  color: red;
  padding: 10px;
  border: 1px solid red;
  margin: 10px 0;
}


#player-container.active {
  border: 2px solid #0437db;
  background-color: rgba(4, 55, 219, 0.05);
}

.hidden {
  display: none;
}

.loader {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #0437db;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  vertical-align: middle;
  margin-right: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.status-info {
  font-size: 10px;
  line-height: 50%;
}

.listeners-stats {
    background: rgb(245 245 245);
    padding: 10px;
    border-radius: 8px;
    margin: 10px 0;
    font-size: 14px;
    float: right;
}

.total-listeners, .current-listeners {
    margin: 5px 0;
}
