/* RADIOBG RADIO DIRECTORY V1 */

.radios-page {
  min-height: calc(100vh - 170px);
  padding: 54px 22px 100px;
}

.radios-shell {
  width: min(1440px, 100%);
  margin: 0 auto;
}

.radios-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.radios-eyebrow {
  display: block;
  margin-bottom: 9px;
  color: #59bfff;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.radios-heading h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1;
}

.radios-heading p {
  margin: 15px 0 0;
  color: #aeb9d3;
  font-size: 18px;
}

.add-radio-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid rgba(102, 192, 255, .58);
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #126fd3, #194aa7);
  box-shadow: 0 13px 30px rgba(20, 111, 211, .28);
  text-decoration: none;
  font-weight: 800;
}

.add-radio-button:hover {
  background: linear-gradient(135deg, #1885ee, #205cc5);
}

.radios-toolbar {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 25px;
}

.radio-search-box {
  display: flex;
  align-items: center;
  flex: 1;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid rgba(118, 140, 193, .26);
  border-radius: 14px;
  background: rgba(19, 15, 38, .82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}

.radio-search-box span {
  margin-right: 11px;
  color: #6dbef7;
  font-size: 26px;
}

.radio-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.radio-search-box input::placeholder {
  color: #707c9a;
}

.radio-result-count {
  flex: 0 0 auto;
  color: #8d99b5;
  font-size: 14px;
}

.radio-result-count strong {
  margin-left: 5px;
  color: #62c3ff;
  font-size: 18px;
}

.radios-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 28px;
  align-items: start;
}

.radio-catalog {
  min-width: 0;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 14px;
}

.radio-card {
  position: relative;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(112, 129, 176, .19);
  border-radius: 15px;
  background:
    linear-gradient(
      145deg,
      rgba(36, 26, 59, .96),
      rgba(17, 14, 34, .96)
    );
  box-shadow:
    0 12px 27px rgba(0,0,0,.20),
    inset 0 1px 0 rgba(255,255,255,.025);
  transition:
    transform .18s ease,
    border-color .18s ease,
    box-shadow .18s ease;
}

.radio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(83, 180, 255, .48);
  box-shadow:
    0 17px 34px rgba(0,0,0,.27),
    0 0 18px rgba(40, 134, 255, .12);
}

.radio-card.is-playing {
  border-color: #54bfff;
  box-shadow:
    0 0 0 1px rgba(84, 191, 255, .25),
    0 0 23px rgba(39, 145, 255, .30);
}

.radio-logo {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1.55 / 1;
  margin-bottom: 11px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 10px;
  color: #fff;
  background:
    radial-gradient(
      circle at 20% 15%,
      hsla(var(--radio-hue), 95%, 67%, .45),
      transparent 45%
    ),
    linear-gradient(
      145deg,
      hsl(var(--radio-hue), 62%, 40%),
      hsl(calc(var(--radio-hue) + 48), 70%, 17%)
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  font-size: 21px;
  font-weight: 950;
  letter-spacing: -.04em;
  text-align: center;
}

.radio-name {
  min-height: 42px;
  margin: 0;
  overflow: hidden;
  color: #f5f7ff;
  font-size: 15px;
  font-weight: 820;
  line-height: 1.35;
}

.radio-meta {
  min-height: 36px;
  margin: 5px 0 10px;
  color: #8490ad;
  font-size: 12px;
  line-height: 1.4;
}

.radio-play-button {
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(103, 186, 255, .35);
  border-radius: 9px;
  color: #dff3ff;
  background: rgba(30, 120, 205, .15);
  cursor: pointer;
  font-weight: 800;
}

.radio-play-button:hover {
  color: #fff;
  background: rgba(31, 133, 231, .30);
}

.radio-play-button:disabled {
  border-color: rgba(116, 125, 155, .18);
  color: #6f7890;
  background: rgba(89, 95, 121, .08);
  cursor: not-allowed;
}

.radio-card.is-playing .radio-play-button {
  color: #fff;
  background: #147ce4;
}

.genre-sidebar {
  position: sticky;
  top: 105px;
  padding: 20px;
  border: 1px solid rgba(110, 130, 180, .21);
  border-radius: 18px;
  background:
    linear-gradient(
      155deg,
      rgba(31, 22, 53, .98),
      rgba(14, 12, 29, .98)
    );
  box-shadow: 0 20px 45px rgba(0,0,0,.24);
}

.genre-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 13px;
  border-bottom: 1px solid rgba(115, 134, 179, .16);
}

.genre-sidebar-header h2 {
  margin: 0;
  color: #fff;
  font-size: 24px;
}

.genre-sidebar-header span {
  color: #66c5ff;
  font-weight: 850;
}

.genre-list {
  display: grid;
  gap: 3px;
  margin-top: 4px;
}

.genre-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #b9c3d9;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.genre-filter:hover {
  color: #fff;
  background: rgba(66, 139, 226, .10);
}

.genre-filter strong {
  color: #6f7b99;
  font-size: 13px;
}

.genre-filter.is-active {
  color: #fff;
  background: rgba(20, 125, 232, .28);
  box-shadow: inset 3px 0 0 #55bdff;
}

.genre-filter.is-active strong {
  color: #67c8ff;
}

.radio-empty-state {
  padding: 70px 20px;
  border: 1px dashed rgba(117, 137, 185, .27);
  border-radius: 18px;
  color: #8f9bb6;
  text-align: center;
}

.radio-directory-status {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  max-width: min(390px, calc(100vw - 44px));
  padding: 13px 17px;
  border: 1px solid rgba(101, 190, 255, .42);
  border-radius: 12px;
  color: #fff;
  background: rgba(12, 18, 39, .96);
  box-shadow: 0 15px 35px rgba(0,0,0,.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: opacity .2s ease, transform .2s ease;
}

.radio-directory-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  .radios-layout {
    grid-template-columns: 1fr;
  }

  .genre-sidebar {
    position: static;
    order: 2;
  }

  .genre-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .radios-page {
    padding: 35px 13px 75px;
  }

  .radios-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .add-radio-button {
    align-self: flex-start;
  }

  .radios-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .radio-result-count {
    align-self: flex-end;
  }

  .radio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .radio-card {
    padding: 9px;
  }

  .radio-name {
    font-size: 14px;
  }

  .genre-sidebar {
    padding: 16px;
  }
}

/* END RADIOBG RADIO DIRECTORY V1 */
