.sticky-radio-player-bottom {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(
    to right,
    rgba(2, 1, 112, 1),
    rgba(6, 27, 154, 0.3)
  );
  padding: 12px 20px;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 99;
  display: flex;
  align-items: center;
  font-family: Arial, sans-serif;
  overflow: visible;
}

.player-container {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.play-btn {
  position: absolute;
  z-index: 9999;
  background-color: #3498db;
  color: white;
  border: none;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0;
  box-shadow: 0 4px 22px rgba(0, 116, 217, 0.9);
  transition:
    background-color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out;

  /* Положение: левый край экрана */
  left: -5px;
  top: 50%;
  transform: translateY(-50%);
}

.play-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 55%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 34px 0 34px 34px;
  border-color: transparent transparent transparent black;
}

.play-btn:hover {
  box-shadow: 0 6px 16px rgba(0, 116, 217, 0.5);
}

.play-btn:active {
  transform: translateY(-48%) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 116, 217, 0.3);
}

.track-info {
  display: flex;
  align-items: center;
  margin-left: 160px; /* Сдвиг вправо: ширина кнопки + отступ */
  color: white;
  flex-grow: 1;
}

.cover {
  width: 80px;
  height: 80px;
  background-color: #333;
  border-radius: 6px;
  margin-right: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.tags {
  line-height: 1.5;
}

.title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.artist {
  font-size: 10px;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 280px;
}

.onAir {
  display: none;
  color: red;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

/* Адаптация для мобильных — исправленная версия */
@media (max-width: 768px) {
  .sticky-radio-player-bottom {
    flex-direction: row; /* Оставляем горизонтальное расположение */
    padding: 10px 15px; /* Уменьшаем отступы */
    align-items: center;
  }
  .player-container {
    flex-wrap: wrap; /* Разрешаем перенос элементов */
    justify-content: flex-start;
  }
  .play-btn {
    position: relative; /* Меняем на relative */
    left: 0; /* Сбрасываем left */
    transform: none; /* Убираем трансформацию */
    width: 80px; /* Уменьшаем размер кнопки */
    height: 80px; /* Уменьшаем размер кнопки */
    margin-right: 12px; /* Отступ справа от кнопки */
  }
  .play-btn::before {
    border-width: 16px 0 16px 16px; /* Пропорционально уменьшаем треугольник */
    left: 52%; /* Корректируем положение */
  }
  .track-info {
    margin-left: 0; /* Сбрасываем отступ */
    flex-direction: column; /* Вертикальное расположение */
    align-items: flex-start; /* Выравнивание по левому краю */
    max-width: calc(100% - 92px); /* Ширина: вся ширина минус размер кнопки и отступа */
    order: 2; /* Размещаем после кнопки */
  }
  .cover {
    display: block; /* Показываем обложку */
    width: 60px; /* Уменьшаем размер */
    height: 60px; /* Уменьшаем размер */
    margin-bottom: 8px; /* Отступ снизу */
  }
  .title, .artist {
    text-align: left; /* Текст слева */
    white-space: normal; /* Разрешаем переносы */
    font-size: 13px; /* Уменьшаем шрифт */
    max-width: 100%; /* На всю ширину */
  }
  .title {
    font-weight: 500; /* Немного уменьшаем жирность */
  }
}

/* Дополнительная адаптация для очень маленьких экранов (320–480 px) */
@media (max-width: 480px) {
  .sticky-radio-player-bottom {
    padding: 8px 10px; /* Ещё уменьшаем отступы */
  }
  .play-btn {
    width: 70px; /* Дальнейшее уменьшение */
    height: 70px;
    margin-right: 8px;
  }
  .play-btn::before {
    border-width: 14px 0 14px 14px; /* Корректировка треугольника */
  }
  .cover {
    display: none;
  }
  .track-info {
    max-width: calc(100% - 78px); /* Корректировка ширины */
  }
  .title, .artist {
    font-size: 12px; /* Дальнейшее уменьшение шрифта */
  }
}
