/* Токены темы и базовые стили перенесены в site.css (общий для всех страниц). */

/* Отступ снизу, чтобы фиксированный плеер не перекрывал контент */
.radio-page {
  padding-bottom: 120px !important;
}

/* --- Поиск --- */

.radio-search-wrap {
  position: relative;
}

.radio-search-wrap .nav-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  color: var(--radio-muted);
  pointer-events: none;
}

.radio-search-input {
  padding-left: 40px;
}

/* --- Плеер (фиксированная панель внизу) --- */

.player-bar {
  position: fixed;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(720px, calc(100% - 24px));
  z-index: 1030;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.player-bar.player-hidden {
  transform: translate(-50%, 130%);
  opacity: 0;
  pointer-events: none;
}

.player {
  padding: 12px 16px;
  border-radius: 18px;
  border: 1px solid var(--radio-border);
  background: color-mix(in srgb, var(--radio-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px var(--radio-shadow-strong);
  display: flex;
  align-items: center;
  gap: 14px;
}

.player-toggle {
  width: 48px;
  height: 48px;
  flex: none;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}

.player-icon-image {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.player-cover-wrap {
  width: 64px;
  height: 64px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--radio-surface);
  border: 1px solid var(--radio-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Собственное скругление, чтобы углы не перекрывали рамку контейнера */
  border-radius: inherit;
}

.player-meta {
  min-width: 0;
  overflow: hidden;
}

.player-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta .player-line,
.player-meta > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
  .player-bar {
    transition: none;
  }
}

.station-card {
  cursor: pointer;
  border-radius: 16px;
  border: 1px solid var(--radio-border);
  box-shadow: 0 6px 18px var(--radio-shadow);
  background: var(--radio-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.station-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px var(--radio-shadow-strong);
}

.station-card .card-body {
  display: flex;
  gap: 12px;
}

.station-cover {
  width: 140px;
  height: 74px;
  border-radius: 12px;
  background: var(--radio-bg);
  border: 1px solid var(--radio-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.station-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Собственное скругление, чтобы углы не перекрывали рамку контейнера */
  border-radius: inherit;
}

.station-meta {
  flex: 1;
}

.station-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.station-card.active {
  border-color: #8b3ce8;
  box-shadow: 0 0 0 0.25rem rgba(139, 60, 232, 0.25);
}

.fav-btn {
  width: 34px;
  height: 34px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0;
}

.fav-btn svg {
  width: 16px;
  height: 16px;
  display: block;
}

.fav-btn.is-fav svg {
  fill: currentColor;
}

.empty-state {
  padding: 24px;
  text-align: center;
  color: var(--radio-muted);
  border: 1px dashed var(--radio-border);
  border-radius: 12px;
  background: var(--radio-surface);
}
