    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: 5px;
      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;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .player-controls-wrapper {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  
  .player-controls {
    width: 100%;
  }
  
  .player-controls audio {
    max-width: 100%;
  }
  
  .station-select {
    width: 100%;
  }
  
  .station-select select {
    max-width: 100%;
  }
  
  .player-buttons {
    justify-content: space-between;
  }
  
  .player-btn {
    flex-grow: 1;
    text-align: center;
  }
}
    
    .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: #f0f0f0;
      border-radius: 5px;
      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;
    }
    /* Мобильная адаптация */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
  }
  
  .container {
    padding: 15px;
    border-radius: 8px;
  }
  
  .player-box {
    padding: 15px;
  }
  
  /* Увеличиваем кнопки и элементы управления */
  button, select {
    padding: 12px 20px;
    font-size: 18px;
    margin: 8px 0;
    width: 100%;
  }
  
  /* Адаптируем аудиоплеер */
  #audio-player {
    width: 100%;
    height: 60px;
    margin-top: 15px;
  }
  
  /* Увеличиваем логотип */
  #stream-logo {
    max-width: 300px;
    max-height: 150px;
    margin: 15px auto;
  }
  
  /* Улучшаем отображение информации о треке */
  .track-info {
    padding: 15px;
    margin: 15px 0;
  }
  
  .track-info div {
    font-size: 18px;
    margin: 10px 0;
  }
  
   /* Адаптируем историю треков */
  .track-history {
    gap: 0px !important;
    flex-direction: column;
  }

  /* Адаптируем кнопки "поделиться" */
  .share-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .share-buttons a, .share-buttons button {
    flex: 1 1 45%;
    margin: 5px;
    text-align: center;
    font-size: 16px;
    padding: 10px 5px;
  }
  
  /* Заголовки */
  h1 {
    font-size: 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 18px;
  }
  
  /* Логотип радио */
  #radio-logo {
    max-width: 200px;
    margin: 0 auto;
    display: block;
  }
}

/* Добавьте это в ваш style.css */
@supports (-webkit-touch-callout: none) {
  /* Специфичные стили для iOS */
  body {
    -webkit-text-size-adjust: 100%;
  }
  
  select, button {
    -webkit-appearance: none;
  }
}

/* Усиленный мобильный media-запрос */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  body {
    padding: 8px !important;
  }
  
  #stream-select {
    font-size: 16px !important;
    padding: 12px 20px !important;
    background-image: none !important;
  }
  
  #audio-player {
    width: 100% !important;
    height: 40px !important;
  }
  
  /* Увеличиваем зоны клика */
  button, .share-buttons a {
    min-height: 44px; /* Рекомендовано Apple */
    padding: 12px 10px !important;
  }
}

/* Для элементов управления аудио на iOS */
.ios #audio-player {
  -webkit-appearance: none;
  height: 44px !important;
}

.ios .player-box {
  padding-bottom: env(safe-area-inset-bottom);
}

/* Фикс для статус-бара на новых iPhone */
@supports (padding-top: env(safe-area-inset-top)) {
  body {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }
}

/* Улучшаем рендеринг в Safari */
@media (-webkit-min-device-pixel-ratio: 0) {
  select, button, .track-info {
    transform: translateZ(0);
  }
}


    #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;
}

/* Адаптация для мобильных */
@media (max-width: 600px) {
  .station-info-block,
  .track-info-block {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .station-logo {
    width: 300px;
    height: 150px;
  }
  
  .track-cover {
    width: 80px;
    height: 80px;
  }
}

 /* Новые стили для обложек */
    .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; }
    @media (max-width: 600px) {
      .station-info-block, .track-info-block { flex-direction: column; align-items: flex-start; }
    }

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

.history-item {
  flex: 1;
  padding: 10px;
  background: rgba(0,0,0,0.03);
  border-radius: 5px;
}

.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%;
}


