radio-condition[hidden],
.radio-live-card[hidden] {
  display: none !important;
}

radio-condition:not([hidden]) {
  display: contents;
}

.radio-relay-field {
  min-width: 0;
}

/* Карточки списка радиостанций */
.trc[data-radio-id] .trc__img {
  position: relative;
  overflow: hidden;
}

.trc[data-radio-id] .trc__img img {
  transition: transform .25s ease, opacity .2s ease;
}

.trc[data-radio-id]:hover .trc__img img {
  transform: scale(1.025);
}

.trc[data-radio-id] .radio-card-track {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--tt-fade);
}

.trc[data-radio-id] .radio-card-track__live {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #ef3b3b;
  box-shadow: 0 0 0 4px rgba(239, 59, 59, .13);
}

.trc[data-radio-id] .radio-card-track__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trc[data-radio-id] .radio-card-listeners {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 44px;
  height: 29px;
  margin-left: 7px;
  padding: 0 9px;
  border: 1px solid var(--bdc);
  border-radius: 999px;
  color: var(--tt-fade);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.trc[data-radio-id] .radio-card-listeners .fal {
  font-size: 11px;
}

/* Полноширинный блок текущего трека */
.radio-live-card {
  width: 100%;
  margin-top: 20px;
  border: 1px solid color-mix(in srgb, var(--bdc) 88%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(65, 208, 138, .16), transparent 34%),
    radial-gradient(circle at 8% 100%, rgba(82, 119, 255, .09), transparent 32%),
    color-mix(in srgb, var(--bg) 96%, #eefcf5 4%);
  box-shadow: 0 18px 44px rgba(22, 34, 29, .07);
  overflow: hidden;
}

.radio-live-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 13px 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--bdc) 72%, transparent);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
}

.radio-live-card__heading {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--tt);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.25;
}

.radio-live-card__heading-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 9px;
  border-radius: 50%;
  background: #ef3b3b;
  box-shadow: 0 0 0 5px rgba(239, 59, 59, .13);
}

.radio-live-card__listeners {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--bdc) 86%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--tt-fade);
  font-size: 12px;
  white-space: nowrap;
}

.radio-live-card__content {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  padding: 22px;
}

.radio-live-card__cover-wrap {
  position: relative;
  width: 148px;
  height: 148px;
  border-radius: 20px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bdc) 45%, transparent);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .14);
}

.radio-live-card__cover {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.radio-live-card__cover.radio-relay-cover--fallback {
  object-fit: cover;
}

.radio-live-card__live {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(10, 12, 11, .78);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.radio-live-card__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 0 3px rgba(255, 59, 48, .24);
}

.radio-live-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.radio-live-card__artist {
  color: var(--tt-fade);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-live-card__title {
  max-width: 100%;
  margin-top: 5px;
  color: var(--tt);
  font-size: clamp(25px, 3vw, 38px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -.025em;
  word-break: normal;
  overflow-wrap: break-word;
  hyphens: auto;
}

.radio-live-card__album {
  margin-top: 9px;
  color: var(--tt-fade);
  font-size: 13px;
  line-height: 1.35;
}

.radio-live-card__updated {
  margin-top: 9px;
  color: var(--tt-fade);
  font-size: 12px;
}

.radio-live-card__fallback {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  color: var(--tt);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 750;
  line-height: 1.25;
}

.radio-live-card__spinner {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border: 2px solid color-mix(in srgb, var(--tt-fade) 28%, transparent);
  border-top-color: #34b97b;
  border-radius: 50%;
  animation: radio-relay-spin .85s linear infinite;
}

@keyframes radio-relay-spin {
  to { transform: rotate(360deg); }
}

.radio-live-card__description {
  margin-top: 12px;
  color: var(--tt-fade);
  font-size: 13px;
  line-height: 1.5;
}

.radio-live-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.radio-live-card__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  max-width: 100%;
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--bdc) 68%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  color: var(--tt-fade);
  font-size: 12px;
  line-height: 1.2;
}

/* Последние композиции, архив и топ */
.radio-history-section {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--bdc) 88%, transparent);
  border-radius: 20px;
  background: var(--bg);
  box-shadow: 0 12px 32px rgba(22, 34, 29, .04);
}

.radio-history-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.radio-history-section__eyebrow {
  margin-bottom: 5px;
  color: var(--tt-fade);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.2;
  text-transform: uppercase;
}

.radio-history-section__title {
  margin: 0;
  color: var(--tt);
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.2;
}

.radio-history-section__count {
  color: var(--tt-fade);
  font-size: 12px;
  white-space: nowrap;
}

.radio-history-section__date-label {
  display: grid;
  gap: 5px;
  min-width: 210px;
  color: var(--tt-fade);
  font-size: 11px;
}

.radio-history-section__date {
  width: 100%;
  min-height: 42px;
  padding: 9px 36px 9px 12px;
  border: 1px solid var(--bdc);
  border-radius: 11px;
  outline: none;
  background: var(--bg);
  color: var(--tt);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.radio-history-section__date:focus {
  border-color: color-mix(in srgb, #34b97b 65%, var(--bdc));
  box-shadow: 0 0 0 3px rgba(52, 185, 123, .10);
}

.radio-relay-playlist__loading,
.radio-relay-playlist__empty {
  padding: 16px 2px;
  color: var(--tt-fade);
  font-size: 13px;
}

.radio-relay-playlist__list {
  display: grid;
  gap: 4px;
}

.radio-relay-playlist__row {
  display: grid;
  grid-template-columns: 54px 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 10px;
  border-radius: 13px;
  transition: background-color .18s ease;
}

.radio-relay-playlist__row + .radio-relay-playlist__row {
  border-top: 1px solid color-mix(in srgb, var(--bdc) 56%, transparent);
}

.radio-relay-playlist__row:hover {
  background: color-mix(in srgb, var(--bdc) 18%, transparent);
}

.radio-relay-playlist__time {
  color: var(--tt-fade);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.radio-relay-playlist__cover {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  object-fit: cover;
  background: color-mix(in srgb, var(--bdc) 45%, transparent);
}

.radio-relay-playlist__text {
  min-width: 0;
}

.radio-relay-playlist__artist {
  color: var(--tt-fade);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-relay-playlist__title {
  margin-top: 2px;
  color: var(--tt);
  font-size: 15px;
  font-weight: 750;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-relay-playlist__album {
  margin-top: 2px;
  color: var(--tt-fade);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-relay-playlist__row--top {
  grid-template-columns: 36px 48px minmax(0, 1fr) minmax(82px, auto);
}

.radio-relay-playlist__position {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: color-mix(in srgb, #34b97b 14%, var(--bg));
  color: color-mix(in srgb, #168c58 88%, var(--tt));
  font-size: 12px;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
}

.radio-relay-playlist__plays {
  justify-self: end;
  padding: 6px 9px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--bdc) 30%, transparent);
  color: var(--tt-fade);
  font-size: 11px;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .trc[data-radio-id] .radio-card-listeners {
    min-width: 38px;
    height: 26px;
    padding: 0 7px;
  }

  .radio-live-card {
    border-radius: 17px;
  }

  .radio-live-card__header {
    min-height: 52px;
    padding: 11px 14px;
  }

  .radio-live-card__heading {
    font-size: 15px;
  }

  .radio-live-card__listeners {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .radio-live-card__listeners span:last-child {
    display: none;
  }

  .radio-live-card__content {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }

  .radio-live-card__cover-wrap {
    width: 94px;
    height: 94px;
    border-radius: 14px;
  }

  .radio-live-card__live {
    left: 6px;
    bottom: 6px;
    gap: 5px;
    padding: 4px 7px;
    font-size: 8px;
  }

  .radio-live-card__artist {
    font-size: 12px;
  }

  .radio-live-card__title {
    margin-top: 3px;
    font-size: clamp(19px, 6vw, 27px);
  }

  .radio-live-card__fallback {
    font-size: 17px;
  }

  .radio-live-card__meta {
    grid-column: 1 / -1;
    padding-top: 12px;
  }

  .radio-live-card__chip {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 11px;
  }

  .radio-history-section {
    padding: 15px;
    border-radius: 16px;
  }

  .radio-history-section__head {
    display: block;
  }

  .radio-history-section__count {
    display: block;
    margin-top: 5px;
    white-space: normal;
  }

  .radio-history-section__date-label {
    width: 100%;
    min-width: 0;
    margin-top: 11px;
  }

  .radio-relay-playlist__row {
    grid-template-columns: 43px 40px minmax(0, 1fr);
    gap: 9px;
    min-height: 58px;
    padding: 7px 4px;
  }

  .radio-relay-playlist__cover {
    width: 40px;
    height: 40px;
    border-radius: 9px;
  }

  .radio-relay-playlist__row--top {
    grid-template-columns: 31px 40px minmax(0, 1fr);
  }

  .radio-relay-playlist__row--top .radio-relay-playlist__plays {
    grid-column: 3;
    justify-self: start;
    margin-top: -2px;
  }
}

@media (max-width: 430px) {
  .radio-live-card__content {
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 11px;
  }

  .radio-live-card__cover-wrap {
    width: 78px;
    height: 78px;
  }

  .radio-live-card__live {
    display: none;
  }

  .radio-live-card__meta {
    margin-left: -89px;
  }
}

/* v1.7.0 — дизайн карточек, длинные названия и любимые композиции */
.trc[data-radio-id] {
  gap: 14px;
}

.trc[data-radio-id] .trc__desc {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.trc[data-radio-id] .radio-card-station-title,
.trc[data-radio-id] .trc__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  line-height: 1.24;
  word-break: break-word;
}

.trc[data-radio-id] .radio-card-track {
  min-height: 18px;
}

.trc[data-radio-id]:not(.radio-relay--has-track) .radio-card-track {
  display: none;
}

.trc[data-radio-id]:not(.radio-relay--has-track) .trc__desc {
  justify-content: center;
}

.trc[data-radio-id] .radio-card-track__live {
  animation: radio-relay-pulse 1.35s ease-in-out infinite;
}

.radio-live-card__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.radio-live-card__heading {
  white-space: normal;
}

.radio-live-card__heading-dot,
.radio-live-card__live-dot {
  animation: radio-relay-pulse 1.35s ease-in-out infinite;
}

@keyframes radio-relay-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 59, 59, .30); }
  70% { transform: scale(1.12); box-shadow: 0 0 0 8px rgba(239, 59, 59, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 59, 59, 0); }
}

.radio-live-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.radio-track-favorite-btn,
.radio-relay-playlist__fav,
.radio-track-favorites__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--bdc) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--tt);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .15s ease;
}

.radio-track-favorite-btn:hover,
.radio-relay-playlist__fav:hover,
.radio-track-favorites__remove:hover {
  border-color: color-mix(in srgb, #ef3b3b 48%, var(--bdc));
  background: color-mix(in srgb, #ef3b3b 8%, var(--bg));
}

.radio-track-favorite-btn:active,
.radio-relay-playlist__fav:active,
.radio-track-favorites__remove:active {
  transform: translateY(1px);
}

.radio-track-favorite-btn.is-active,
.radio-relay-playlist__fav.is-active {
  border-color: rgba(239, 59, 59, .28);
  background: rgba(239, 59, 59, .10);
  color: #c92a2a;
}

.radio-relay-playlist__row {
  grid-template-columns: 54px 48px minmax(0, 1fr) auto;
}

.radio-relay-playlist__row--top {
  grid-template-columns: 36px 48px minmax(0, 1fr) auto auto;
}

.radio-relay-playlist__title {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-height: 1.3;
}

.radio-relay-playlist__artist,
.radio-relay-playlist__album {
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.3;
}

.radio-relay-playlist__fav {
  min-width: 38px;
  padding: 0 12px;
}

.radio-relay-playlist__fav .fal,
.radio-relay-playlist__fav .fas,
.radio-track-favorite-btn .fal,
.radio-track-favorite-btn .fas,
.radio-track-favorites__remove .fal,
.radio-track-favorites__remove .fas {
  font-size: 14px;
}

.radio-track-favorites {
  margin-bottom: 18px;
}

.radio-track-favorites__hint {
  margin-top: -6px;
  margin-bottom: 14px;
  color: var(--tt-fade);
  font-size: 13px;
}

.radio-track-favorites__list {
  display: grid;
  gap: 8px;
}

.radio-track-favorites__empty {
  color: var(--tt-fade);
  font-size: 14px;
}

.radio-track-favorites__row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid color-mix(in srgb, var(--bdc) 58%, transparent);
}

.radio-track-favorites__row:first-child {
  border-top: 0;
}

.radio-track-favorites__cover {
  width: 52px;
  height: 52px;
  border-radius: 13px;
  object-fit: cover;
  background: color-mix(in srgb, var(--bdc) 45%, transparent);
}

.radio-track-favorites__text {
  min-width: 0;
}

.radio-track-favorites__artist {
  color: var(--tt-fade);
  font-size: 12px;
}

.radio-track-favorites__title {
  margin-top: 2px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.radio-track-favorites__station {
  margin-top: 4px;
  color: var(--tt-fade);
  font-size: 12px;
}

@media (max-width: 767px) {
  .trc[data-radio-id] {
    gap: 10px;
  }

  .radio-live-card__header {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .radio-live-card__listeners {
    margin-top: 6px;
  }

  .radio-relay-playlist__row {
    grid-template-columns: 43px 40px minmax(0, 1fr) auto;
    align-items: flex-start;
  }

  .radio-relay-playlist__row--top {
    grid-template-columns: 31px 40px minmax(0, 1fr) auto;
  }

  .radio-relay-playlist__row--top .radio-relay-playlist__plays {
    grid-column: 3;
    justify-self: start;
    margin-top: 4px;
  }

  .radio-relay-playlist__fav {
    grid-column: 4;
    grid-row: 1 / span 2;
    align-self: center;
    padding: 0 10px;
  }

  .radio-track-favorites__row {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .radio-track-favorites__remove {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
}
.radio-relay-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* v1.8.0 — copy buttons and home cover fix */
.trc[data-radio-id] .radio-card-home-cover {
  object-fit: contain;
  padding: 3px;
  background: #fff;
  border-radius: 50%;
}

.radio-live-card__actions {
  align-items: center;
}

.radio-copy-btn,
.radio-relay-playlist__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--bdc) 82%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  color: var(--tt);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .15s ease;
}

.radio-copy-btn:hover,
.radio-relay-playlist__copy:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 45%, var(--bdc));
  background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg));
}

.radio-copy-btn:active,
.radio-relay-playlist__copy:active {
  transform: translateY(1px);
}

.radio-copy-btn.is-copied,
.radio-relay-playlist__copy.is-copied {
  border-color: rgba(46, 160, 67, .35);
  background: rgba(46, 160, 67, .10);
  color: #1c7c35;
}

.radio-copy-btn__icon,
.radio-relay-playlist__copy .fal,
.radio-relay-playlist__copy .fas {
  font-size: 14px;
}

.radio-relay-playlist__row {
  grid-template-columns: 54px 48px minmax(0, 1fr) auto auto;
}

.radio-relay-playlist__row--top {
  grid-template-columns: 36px 48px minmax(0, 1fr) auto auto auto;
}

.radio-relay-playlist__copy {
  min-width: 38px;
  padding: 0 12px;
}

@media (max-width: 767px) {
  .radio-relay-playlist__row {
    grid-template-columns: 43px 40px minmax(0, 1fr) auto auto;
  }

  .radio-relay-playlist__row--top {
    grid-template-columns: 31px 40px minmax(0, 1fr) auto auto;
  }

  .radio-relay-playlist__row .radio-relay-playlist__copy,
  .radio-relay-playlist__row .radio-relay-playlist__fav {
    grid-row: 1 / span 2;
    align-self: center;
  }

  .radio-relay-playlist__row .radio-relay-playlist__copy {
    grid-column: 4;
  }

  .radio-relay-playlist__row .radio-relay-playlist__fav {
    grid-column: 5;
  }

  .radio-relay-playlist__row--top .radio-relay-playlist__plays {
    grid-column: 3;
    justify-self: start;
    margin-top: 4px;
  }

  .radio-copy-btn {
    width: 38px;
    min-width: 38px;
    padding: 0;
  }

  .radio-copy-btn__label {
    display: none;
  }
}

/* v1.9.0 — favorites order, static home logos and clearer icon buttons */
.radio-live-card__icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 84%, var(--bdc) 16%);
  border-color: color-mix(in srgb, var(--bdc) 92%, transparent);
  color: var(--tt);
  box-shadow: 0 5px 14px rgba(0, 0, 0, .05);
}

.radio-live-card__icon-btn:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--accent-primary) 28%, transparent);
}

.radio-live-card__icon-btn.is-active {
  background: #ef3b3b;
  border-color: #ef3b3b;
  color: #fff;
}

.radio-live-card__icon-btn .fal,
.radio-live-card__icon-btn .fas {
  font-size: 16px;
}

.radio-relay-playlist__copy,
.radio-relay-playlist__fav {
  width: 38px;
  min-width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border-radius: 10px;
  background: color-mix(in srgb, var(--bg) 78%, var(--bdc) 22%);
  border-color: color-mix(in srgb, var(--bdc) 96%, transparent);
  color: color-mix(in srgb, var(--tt) 82%, #000 18%);
  box-shadow: 0 3px 9px rgba(0, 0, 0, .04);
}

.radio-relay-playlist__copy:hover,
.radio-relay-playlist__fav:hover {
  background: var(--accent-primary);
  border-color: var(--accent-primary);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--accent-primary) 30%, transparent);
}

.radio-relay-playlist__fav.is-active {
  background: #ef3b3b;
  border-color: #ef3b3b;
  color: #fff;
}

.radio-relay-playlist__copy.is-copied {
  background: #2ea043;
  border-color: #2ea043;
  color: #fff;
}

.radio-relay-playlist__copy .fal,
.radio-relay-playlist__copy .fas,
.radio-relay-playlist__fav .fal,
.radio-relay-playlist__fav .fas {
  font-size: 15px;
}

.radio-track-favorites {
  margin-top: 18px;
  margin-bottom: 0;
}

@media (max-width: 767px) {
  .radio-live-card__icon-btn {
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
  }
}

/* v2.0.0 — unified favorites selector */
.radio-favorites-page__header {
  flex-wrap: wrap;
}

.radio-favorites-view {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.radio-favorites-view__select {
  min-width: 168px;
  height: 42px;
  padding: 0 38px 0 14px;
  border: 1px solid color-mix(in srgb, var(--bdc) 92%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg) 88%, var(--bdc) 12%);
  color: var(--tt);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .04);
}

.radio-favorites-view__select:hover,
.radio-favorites-view__select:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-primary) 14%, transparent);
}

.radio-track-favorites {
  margin-top: 14px;
  margin-bottom: 0;
}

.radio-track-favorites__remove {
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid rgba(239, 59, 59, .34);
  background: rgba(239, 59, 59, .11);
  color: #b42318;
  box-shadow: 0 4px 12px rgba(180, 35, 24, .08);
}

.radio-track-favorites__remove:hover,
.radio-track-favorites__remove:focus-visible {
  border-color: #d92d20;
  background: #d92d20;
  color: #fff;
  box-shadow: 0 7px 18px rgba(217, 45, 32, .24);
}

.radio-track-favorites__remove:active {
  background: #b42318;
  border-color: #b42318;
  color: #fff;
}

@media (max-width: 767px) {
  .radio-favorites-page__header {
    align-items: stretch;
  }

  .radio-favorites-page__header .sect__title {
    width: 100%;
    flex-basis: 100%;
  }

  .radio-favorites-view,
  .radio-favorites-view__select {
    width: 100%;
  }

  .radio-favorites-page__header .fav-sort-btn {
    width: 100%;
  }

  .radio-track-favorites__remove {
    min-height: 40px;
    padding: 8px 13px;
  }
}

/* v2.1.0 — fullpage playlist and linked station titles */
.radio-history-section__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid color-mix(in srgb, var(--bdc) 62%, transparent);
}

.radio-history-section__all {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid color-mix(in srgb, var(--accent-primary) 38%, var(--bdc));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent-primary) 9%, var(--bg));
  color: var(--tt);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease;
}

.radio-history-section__all:hover {
  border-color: var(--accent-primary);
  background: var(--accent-primary);
  color: #fff;
}

.radio-history-section__all:active {
  transform: translateY(1px);
}

.radio-track-favorites__station--link {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  color: var(--accent-primary);
  text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--accent-primary) 45%, transparent);
  transition: color .18s ease, border-color .18s ease;
}

.radio-track-favorites__station--link:hover {
  color: color-mix(in srgb, var(--accent-primary) 78%, #000 22%);
  border-bottom-color: currentColor;
}

.radio-playlist-page {
  min-width: 0;
}

.radio-playlist-page__hero {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid color-mix(in srgb, var(--bdc) 86%, transparent);
  border-radius: 22px;
  background:
    radial-gradient(circle at 94% 4%, color-mix(in srgb, var(--accent-primary) 16%, transparent), transparent 36%),
    radial-gradient(circle at 4% 100%, rgba(82, 119, 255, .09), transparent 34%),
    var(--bg);
  box-shadow: 0 16px 40px rgba(22, 34, 29, .06);
}

.radio-playlist-page__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--tt-fade);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.radio-playlist-page__back:hover {
  color: var(--accent-primary);
}

.radio-playlist-page__eyebrow {
  margin-bottom: 8px;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .10em;
  text-transform: uppercase;
}

.radio-playlist-page__title {
  max-width: 880px;
  margin: 0;
  color: var(--tt);
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 850;
  line-height: 1.08;
  letter-spacing: -.03em;
  overflow-wrap: anywhere;
}

.radio-playlist-page__lead {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--tt-fade);
  font-size: 15px;
  line-height: 1.6;
}

.radio-playlist-page__empty {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 18px;
  padding: 24px;
  border: 1px dashed color-mix(in srgb, var(--bdc) 88%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg) 88%, var(--bdc) 12%);
  color: var(--tt-fade);
}

.radio-playlist-page__empty > .fal {
  display: inline-flex;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent-primary) 12%, var(--bg));
  color: var(--accent-primary);
  font-size: 20px;
}

.radio-playlist-page__empty strong,
.radio-playlist-page__empty span {
  display: block;
}

.radio-playlist-page__empty strong {
  margin-bottom: 4px;
  color: var(--tt);
  font-size: 16px;
}

@media (max-width: 767px) {
  .radio-history-section__footer,
  .radio-history-section__all {
    width: 100%;
  }

  .radio-playlist-page__hero {
    padding: 20px;
    border-radius: 17px;
  }

  .radio-playlist-page__back {
    margin-bottom: 18px;
  }

  .radio-playlist-page__lead {
    font-size: 14px;
  }
}

/* v2.2.0 — fullpage current track, bottom player track and sticky related ad */
.radio-related-sticky-ad {
  width: 100%;
  min-height: 250px;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--bdc) 72%, transparent);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg) 94%, var(--bdc) 6%);
  overflow: hidden;
  box-sizing: border-box;
  z-index: 2;
}

@media (min-width: 1025px) {
  .radio-related-sticky-ad {
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 190px);
  }
}

@media (max-width: 1024px) {
  .radio-related-sticky-ad {
    position: static;
    min-height: 180px;
    margin-bottom: 20px;
  }
}

.radio-playlist-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.radio-playlist-page__player {
  display: contents;
}

.radio-playlist-page__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid var(--accent-primary);
  border-radius: 14px;
  background: var(--accent-primary);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 24px color-mix(in srgb, var(--accent-primary) 22%, transparent);
  transition: transform .15s ease, filter .2s ease, box-shadow .2s ease;
}

.radio-playlist-page__play:hover {
  color: #fff;
  filter: brightness(1.06);
  box-shadow: 0 12px 28px color-mix(in srgb, var(--accent-primary) 30%, transparent);
}

.radio-playlist-page__play:active {
  transform: translateY(1px);
}

.radio-playlist-page__play::before {
  font-family: "Font Awesome 5 Pro", "Font Awesome 5 Free", sans-serif;
}

.radio-playlist-page__ad {
  min-height: 180px;
  margin-top: 18px;
  padding: 10px 0;
  overflow: hidden;
}

/* Нижний плеер: отдельная строка текущей композиции. */
.wplayer .ap-info {
  min-width: 0;
}

.wplayer .ap-now-track {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  max-width: 100%;
  margin-top: 3px;
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
}

.wplayer .ap-now-track[hidden] {
  display: none !important;
}

.wplayer .ap-now-track__dot {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: 50%;
  background: #ef3b3b;
  animation: radio-relay-pulse 1.35s ease-in-out infinite;
}

.wplayer .ap-now-track__text {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 767px) {
  .radio-playlist-page__actions,
  .radio-playlist-page__play {
    width: 100%;
  }

  .radio-playlist-page__play {
    min-height: 44px;
  }

  .radio-playlist-page__ad {
    min-height: 140px;
  }

  .wplayer .ap-now-track {
    font-size: 11px;
  }
}


/* v2.2.1 — fullstory spacing */
article.page.js-fullstory:not(.radio-playlist-page) > .radio-live-card {
  margin-top: 10px;
  margin-bottom: 30px;
}

@media (max-width: 767px) {
  article.page.js-fullstory:not(.radio-playlist-page) > .radio-live-card {
    margin-top: 8px;
    margin-bottom: 24px;
  }
}

/* v2.2.2 — corrected spacing around the current-track card in fullstory */
article.page.js-fullstory:not(.radio-playlist-page) > .page__cols {
  margin-bottom: 12px;
}

article.page.js-fullstory:not(.radio-playlist-page) > .radio-live-card {
  margin-top: 0;
  margin-bottom: 0;
}

article.page.js-fullstory:not(.radio-playlist-page) > .radio-live-card:not([hidden]) + .radio-emote-section {
  padding-top: 38px;
}

article.page.js-fullstory:not(.radio-playlist-page) > .radio-emote-section {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 767px) {
  article.page.js-fullstory:not(.radio-playlist-page) > .page__cols {
    margin-bottom: 8px;
  }

  article.page.js-fullstory:not(.radio-playlist-page) > .radio-live-card:not([hidden]) + .radio-emote-section {
    padding-top: 30px;
  }
}

/* v2.2.3 — playlist action, corrected live-card spacing and right sidebar */
.radio-live-card__header-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  min-width: 0;
}

.radio-live-card__playlist-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--bdc) 84%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  color: var(--tt);
  font-size: 12px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.radio-live-card__playlist-link:hover {
  border-color: color-mix(in srgb, var(--accent-primary) 46%, var(--bdc));
  background: color-mix(in srgb, var(--accent-primary) 10%, var(--bg));
  color: var(--accent-primary);
}

/* Реальные элементы fullstory находятся внутри .page__cols-main. */
article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .page__header {
  margin-bottom: 12px;
}

article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .radio-live-card {
  margin-top: 0;
  margin-bottom: 38px;
}

article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .radio-live-card:not([hidden]) + .radio-emote-section {
  padding-top: 0;
}

.radio-related-sidebar {
  position: relative;
  min-width: 0;
  align-self: stretch;
}

.radio-related-section {
  position: relative;
  z-index: 1;
}

.radio-related-section + .radio-related-sticky-ad {
  margin-top: 24px;
}

.radio-related-sticky-ad {
  min-height: 460px;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.radio-related-sticky-ad > div {
  width: 100%;
}

@media (min-width: 1025px) {
  .radio-related-sticky-ad {
    position: sticky;
    top: 88px;
    max-height: none;
  }
}

/* Отдельная страница плейлиста: основной контент и правая колонка. */
.radio-playlist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: start;
  gap: 32px;
  margin-top: 20px;
}

.radio-playlist-layout__main,
.radio-playlist-layout__side {
  min-width: 0;
}

.radio-playlist-layout__main > .radio-live-card {
  margin-top: 0;
}

.radio-playlist-layout__side {
  padding-left: 28px;
  border-left: 1px solid color-mix(in srgb, var(--bdc) 74%, transparent);
}

.radio-playlist-layout__side .sect__content--tracks .trc {
  padding-left: 48px;
  padding-right: 14px;
}

@media (max-width: 1180px) {
  .radio-playlist-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
  }

  .radio-playlist-layout__side {
    padding-left: 20px;
  }
}

@media (max-width: 1024px) {
  article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .page__header {
    margin-bottom: 8px;
  }

  article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .radio-live-card {
    margin-bottom: 30px;
  }

  .radio-related-section + .radio-related-sticky-ad {
    margin-top: 18px;
  }

  .radio-related-sticky-ad {
    position: static;
    min-height: 250px;
  }

  .radio-playlist-layout {
    display: block;
  }

  .radio-playlist-layout__side {
    margin-top: 32px;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--bdc) 74%, transparent);
    padding-top: 28px;
  }
}

@media (max-width: 767px) {
  .radio-live-card__header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .radio-live-card__playlist-link {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 11px;
  }

  article.page.js-fullstory:not(.radio-playlist-page) .page__cols-main > .radio-live-card {
    margin-bottom: 28px;
  }

  .radio-playlist-layout__side {
    margin-top: 24px;
    padding-top: 22px;
  }
}
.radio-related-sticky-ad {
  border: 0;
  border-radius: 0;
}

/* v2.2.4 — sticky ad bounded by sidebar and station logo on playlist page */
.radio-related-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.radio-related-section {
  flex: 0 0 auto;
}

.radio-related-section + .radio-related-sticky-zone {
  margin-top: 24px;
}

.radio-related-sticky-zone {
  position: relative;
  flex: 1 1 auto;
  min-height: 520px;
}

.radio-related-sticky-zone .radio-related-sticky-ad {
  width: 100%;
  min-height: 250px;
  margin-top: 0;
}

@media (min-width: 1025px) {
  .radio-related-sticky-zone .radio-related-sticky-ad {
    position: sticky;
    top: 88px;
  }

  .radio-playlist-layout {
    align-items: stretch;
  }
}

.radio-playlist-page__hero-main {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.radio-playlist-page__logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bdc) 78%, transparent);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(22, 34, 29, .08);
}

.radio-playlist-page__logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 10px;
  object-fit: contain;
}

.radio-playlist-page__hero-copy {
  min-width: 0;
}

@media (max-width: 1024px) {
  .radio-related-section + .radio-related-sticky-zone {
    margin-top: 18px;
  }

  .radio-related-sticky-zone {
    min-height: 250px;
  }

  .radio-related-sticky-zone .radio-related-sticky-ad {
    position: static;
  }
}

@media (max-width: 767px) {
  .radio-playlist-page__hero-main {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 15px;
  }

  .radio-playlist-page__logo-wrap {
    width: 82px;
    height: 82px;
    border-radius: 17px;
  }

  .radio-playlist-page__logo {
    padding: 7px;
  }
}

@media (max-width: 480px) {
  .radio-playlist-page__hero-main {
    display: block;
  }

  .radio-playlist-page__logo-wrap {
    width: 88px;
    height: 88px;
    margin-bottom: 16px;
  }
}

/* v2.2.5 — reliable sticky ad and ad-only playlist sidebar */
.content.radio-content-sticky-ad,
.content:has(.radio-related-sticky-zone) {
  overflow: visible;
}

.radio-related-sidebar--sticky-ready,
.radio-related-sidebar {
  height: 100%;
  min-height: 100%;
  overflow: visible;
}

.radio-related-sticky-zone {
  display: block;
  align-self: stretch;
  width: 100%;
  min-height: 520px;
  overflow: visible;
}

.radio-playlist-ad-sidebar {
  padding-top: 0;
}

.radio-playlist-ad-sidebar .radio-related-sticky-zone,
.radio-playlist-sticky-zone {
  flex: 1 1 auto;
  margin-top: 0;
  min-height: 100%;
}

@media (min-width: 1025px) {
  .radio-related-sticky-zone .radio-related-sticky-ad {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 88px;
    z-index: 3;
  }

  .page__cols,
  .radio-playlist-layout {
    align-items: stretch;
  }
}

@media (max-width: 1024px) {
  .content.radio-content-sticky-ad,
  .content:has(.radio-related-sticky-zone) {
    overflow: hidden;
  }

  .radio-related-sidebar,
  .radio-related-sidebar--sticky-ready {
    height: auto;
    min-height: 0;
  }

  .radio-related-sticky-zone,
  .radio-playlist-ad-sidebar .radio-related-sticky-zone,
  .radio-playlist-sticky-zone {
    min-height: 250px;
  }
}

/* Каталог треков и подбор радиостанций на статических страницах */
.radio-track-library,
.radio-track-finder {
  --rtl-accent: var(--accent-primary, #34bf6d);
  --rtl-accent-strong: var(--accent-secondary, #239556);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 28px 0;
  padding: 28px;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.10));
  border-radius: 26px;
  background: var(--bg, #fff);
  box-shadow: 0 18px 48px rgba(22, 31, 41, 0.08);
  color: var(--tt, #20252a);
}

.radio-track-library::before,
.radio-track-finder::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: -145px;
  right: -130px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 38%, rgba(52, 191, 109, 0.18), rgba(52, 191, 109, 0.05) 47%, transparent 72%);
  pointer-events: none;
}

.radio-track-library::after,
.radio-track-finder::after {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--rtl-accent), var(--rtl-accent-strong), transparent 82%);
  pointer-events: none;
}

.radio-track-library__toolbar,
.radio-track-finder__form {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(145px, 185px) minmax(190px, 230px);
  gap: 14px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.09));
  border-radius: 20px;
  background: var(--bg-darker, #f7f8f9);
}

.radio-track-finder__form {
  grid-template-columns: minmax(300px, 1fr) minmax(145px, 185px) auto;
}

.radio-track-library__search,
.radio-track-library__select-wrap,
.radio-track-finder__search,
.radio-track-finder__select-wrap {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.radio-track-library__label,
.radio-track-finder__label {
  color: var(--tt-fade, #777f87);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .025em;
  text-transform: uppercase;
}

.radio-track-library__input,
.radio-track-library__select,
.radio-track-finder__input,
.radio-track-finder__select {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 16px;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.14));
  border-radius: 14px;
  background-color: var(--bg, #fff);
  color: var(--tt, #20252a);
  box-shadow: 0 5px 16px rgba(22, 31, 41, 0.035);
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.radio-track-library__input::placeholder,
.radio-track-finder__input::placeholder {
  color: var(--tt-fade, #92989e);
  opacity: .8;
}

.radio-track-library__select,
.radio-track-finder__select {
  cursor: pointer;
}

.radio-track-library__input:hover,
.radio-track-library__select:hover,
.radio-track-finder__input:hover,
.radio-track-finder__select:hover {
  border-color: rgba(52, 191, 109, 0.42);
}

.radio-track-library__input:focus,
.radio-track-library__select:focus,
.radio-track-finder__input:focus,
.radio-track-finder__select:focus {
  border-color: var(--rtl-accent);
  box-shadow: 0 0 0 4px rgba(52, 191, 109, 0.13), 0 7px 18px rgba(22, 31, 41, 0.05);
}

.radio-track-finder__submit,
.radio-track-library__stations-button,
.radio-track-finder__station-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border: 1px solid var(--rtl-accent);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--rtl-accent), var(--rtl-accent-strong));
  color: #fff;
  box-shadow: 0 9px 20px rgba(52, 191, 109, 0.20);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.radio-track-finder__submit::before,
.radio-track-finder__station-action::before {
  content: '▶';
  font-size: 10px;
  line-height: 1;
}

.radio-track-finder__submit:hover,
.radio-track-library__stations-button:hover,
.radio-track-finder__station-action:hover {
  color: #fff;
  filter: brightness(.97);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(52, 191, 109, 0.25);
}

.radio-track-finder__submit:active,
.radio-track-library__stations-button:active,
.radio-track-finder__station-action:active {
  transform: translateY(0);
}

.radio-track-library__summary {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  margin: 0 0 14px;
  padding: 7px 12px;
  border: 1px solid rgba(52, 191, 109, 0.17);
  border-radius: 999px;
  background: rgba(52, 191, 109, 0.075);
  color: var(--rtl-accent-strong);
  font-size: 13px;
  font-weight: 700;
}

.radio-track-library__summary:empty {
  display: none;
}

.radio-track-library__list,
.radio-track-finder__stations {
  display: grid;
  gap: 12px;
}

.radio-track-library__item,
.radio-track-finder__station {
  position: relative;
  display: grid;
  align-items: center;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.08));
  background: var(--bg, #fff);
  box-shadow: 0 7px 22px rgba(22, 31, 41, 0.045);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.radio-track-library__item:hover,
.radio-track-finder__station:hover {
  border-color: rgba(52, 191, 109, 0.28);
  box-shadow: 0 12px 28px rgba(22, 31, 41, 0.08);
  transform: translateY(-1px);
}

.radio-track-library__item {
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 17px;
  padding: 14px;
  border-radius: 20px;
}

.radio-track-library__cover {
  display: block;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(32, 40, 48, 0.08);
  border-radius: 17px;
  background: var(--bg-darker, #eceeef);
  box-shadow: 0 8px 18px rgba(22, 31, 41, 0.10);
  object-fit: cover;
}

.radio-track-library__body,
.radio-track-finder__station-body {
  min-width: 0;
}

.radio-track-library__artist {
  overflow: hidden;
  margin-bottom: 4px;
  color: var(--tt-fade, #8f969d);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .025em;
  line-height: 1.35;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.radio-track-library__title {
  overflow: hidden;
  color: var(--tt, #20252a);
  font-size: 18px;
  font-weight: 750;
  line-height: 1.28;
  text-overflow: ellipsis;
}

.radio-track-library__meta,
.radio-track-finder__station-meta,
.radio-track-finder__hint {
  color: var(--tt-fade, #858c93);
  font-size: 13px;
  line-height: 1.5;
}

.radio-track-library__meta {
  margin-top: 6px;
}

.radio-track-library__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.radio-track-library__stations-button {
  min-height: 42px;
  padding: 0 15px;
  border-color: rgba(52, 191, 109, 0.30);
  background: rgba(52, 191, 109, 0.085);
  color: var(--rtl-accent-strong);
  box-shadow: none;
  font-size: 13px;
  white-space: nowrap;
}

.radio-track-library__stations-button::before {
  content: '◉';
  font-size: 11px;
  line-height: 1;
}

.radio-track-library__stations-button:hover {
  background: rgba(52, 191, 109, 0.145);
  color: var(--rtl-accent-strong);
  box-shadow: none;
}

.radio-track-library__copy {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.11));
  border-radius: 13px;
  background: var(--bg, #fff);
  color: var(--tt, #20252a);
  box-shadow: 0 5px 14px rgba(22, 31, 41, 0.05);
  font-size: 17px;
  cursor: pointer;
  transition: border-color .18s ease, color .18s ease, background-color .18s ease, transform .18s ease;
}

.radio-track-library__copy:hover {
  border-color: rgba(52, 191, 109, 0.35);
  background: rgba(52, 191, 109, 0.075);
  color: var(--rtl-accent-strong);
  transform: translateY(-1px);
}

.radio-track-library__stations {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  padding: 14px;
  border: 1px solid rgba(52, 191, 109, 0.16);
  border-radius: 16px;
  background: rgba(52, 191, 109, 0.045);
}

.radio-track-library__stations[hidden] {
  display: none !important;
}

.radio-track-library__loading,
.radio-track-library__empty {
  display: flex;
  min-height: 116px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 28px 18px;
  border: 1px dashed var(--bdc, rgba(32, 40, 48, 0.16));
  border-radius: 18px;
  background: var(--bg-darker, #f8f9fa);
  color: var(--tt-fade, #858c93);
  font-size: 14px;
  text-align: center;
}

.radio-track-library__loading::before {
  content: '';
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border: 2px solid rgba(52, 191, 109, 0.22);
  border-top-color: var(--rtl-accent);
  border-radius: 50%;
  animation: radioTrackLibrarySpin .75s linear infinite;
}

.radio-track-library__empty::before {
  content: '♫';
  color: var(--rtl-accent);
  font-size: 22px;
  line-height: 1;
}

@keyframes radioTrackLibrarySpin {
  to { transform: rotate(360deg); }
}

.radio-track-library__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 22px;
}

.radio-track-library__page {
  min-width: 42px;
  height: 42px;
  margin: 0;
  padding: 0 11px;
  border: 1px solid var(--bdc, rgba(32, 40, 48, 0.11));
  border-radius: 12px;
  background: var(--bg, #fff);
  color: var(--tt, #20252a);
  box-shadow: 0 5px 13px rgba(22, 31, 41, 0.04);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.radio-track-library__page:hover:not(:disabled):not(.is-active) {
  border-color: rgba(52, 191, 109, 0.36);
  background: rgba(52, 191, 109, 0.07);
  color: var(--rtl-accent-strong);
  transform: translateY(-1px);
}

.radio-track-library__page.is-active {
  border-color: var(--rtl-accent);
  background: linear-gradient(135deg, var(--rtl-accent), var(--rtl-accent-strong));
  color: #fff;
  box-shadow: 0 8px 18px rgba(52, 191, 109, 0.20);
  font-weight: 700;
}

.radio-track-library__page:disabled {
  cursor: default;
  opacity: .38;
}

.radio-track-library__dots {
  padding: 0 2px;
  color: var(--tt-fade, #8c9298);
}

.radio-track-finder__hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--bg-darker, #f7f8f9);
}

.radio-track-finder__hint::before {
  content: 'i';
  display: inline-flex;
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(52, 191, 109, 0.13);
  color: var(--rtl-accent-strong);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.radio-track-finder__results:empty {
  display: none;
}

.radio-track-finder__station {
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 15px;
  padding: 13px;
  border-radius: 18px;
}

.radio-track-finder__station-logo-link {
  display: block;
  border-radius: 15px;
}

.radio-track-finder__station-logo {
  display: block;
  width: 64px;
  height: 64px;
  border: 1px solid rgba(32, 40, 48, 0.08);
  border-radius: 15px;
  background: var(--bg-darker, #eceeef);
  box-shadow: 0 7px 16px rgba(22, 31, 41, 0.09);
  object-fit: cover;
}

.radio-track-finder__station-title {
  display: block;
  overflow: hidden;
  color: var(--tt, #20252a);
  font-size: 16px;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-track-finder__station-title:hover {
  color: var(--rtl-accent-strong);
}

.radio-track-finder__station-track {
  overflow: hidden;
  margin-top: 4px;
  color: var(--tt, #5f676e);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radio-track-finder__station-meta {
  margin-top: 5px;
}

.radio-track-finder__station-action {
  min-height: 42px;
  padding: 0 16px;
  font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
  .radio-track-library *,
  .radio-track-finder * {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .radio-track-library__toolbar,
  .radio-track-finder__form {
    grid-template-columns: 1fr 1fr;
  }

  .radio-track-library__search,
  .radio-track-finder__search {
    grid-column: 1 / -1;
  }

  .radio-track-finder__submit {
    align-self: end;
  }
}

@media (max-width: 720px) {
  .radio-track-library,
  .radio-track-finder {
    margin: 20px 0;
    padding: 18px;
    border-radius: 21px;
  }

  .radio-track-library__toolbar,
  .radio-track-finder__form {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 17px;
  }

  .radio-track-library__search,
  .radio-track-finder__search {
    grid-column: auto;
  }

  .radio-track-finder__submit {
    width: 100%;
  }

  .radio-track-library__item {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
    border-radius: 17px;
  }

  .radio-track-library__cover {
    width: 62px;
    height: 62px;
    border-radius: 14px;
  }

  .radio-track-library__title {
    font-size: 16px;
  }

  .radio-track-library__meta {
    font-size: 12px;
  }

  .radio-track-library__actions {
    grid-column: 1 / -1;
    justify-content: stretch;
  }

  .radio-track-library__stations-button {
    flex: 1;
    white-space: normal;
  }

  .radio-track-library__stations {
    padding: 10px;
  }

  .radio-track-finder__station {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 12px;
    padding: 11px;
  }

  .radio-track-finder__station-logo {
    width: 54px;
    height: 54px;
    border-radius: 13px;
  }

  .radio-track-finder__station-action {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (max-width: 430px) {
  .radio-track-library,
  .radio-track-finder {
    margin-right: -4px;
    margin-left: -4px;
    padding: 14px;
    border-radius: 18px;
  }

  .radio-track-library__input,
  .radio-track-library__select,
  .radio-track-finder__input,
  .radio-track-finder__select {
    height: 48px;
    font-size: 13px;
  }

  .radio-track-library__item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .radio-track-library__cover {
    width: 54px;
    height: 54px;
  }

  .radio-track-library__artist {
    font-size: 11px;
  }

  .radio-track-library__title {
    font-size: 15px;
  }

  .radio-track-library__copy {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .radio-track-finder__hint {
    align-items: flex-start;
    border-radius: 14px;
  }
}
