/* Discover Trending Now: real station-library ranking, horizontal browsing, and clean zero-content state. */

/* The row is the "See all" experience now: remove the old link and browse inline. */
.discover-page-shell.dw-page .dw-trending .dw-section-head > button {
  display: none !important;
}

.discover-page-shell.dw-page .dw-trending .dw-track-grid {
  display: flex !important;
  grid-template-columns: none !important;
  gap: 12px !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  padding: 7px 4px 12px;
  margin-inline: -4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(218,70,209,.48) rgba(255,255,255,.035);
}

.discover-page-shell.dw-page .dw-trending .dw-track-grid::-webkit-scrollbar {
  height: 7px;
}

.discover-page-shell.dw-page .dw-trending .dw-track-grid::-webkit-scrollbar-track {
  background: rgba(255,255,255,.03);
  border-radius: 999px;
}

.discover-page-shell.dw-page .dw-trending .dw-track-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(236,54,194,.72), rgba(126,70,247,.72));
  border-radius: 999px;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card {
  flex: 0 0 calc((100% - 36px) / 4);
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
  border: 1px solid transparent;
  border-radius: 15px;
  padding: 7px;
  background: rgba(255,255,255,0);
  transition: transform .22s ease, border-color .22s ease, background .22s ease, box-shadow .22s ease;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"] {
  cursor: pointer;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"] .dw-track-cover > img,
.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"] .dw-track-cover > svg {
  display: none !important;
}

/* Keep every Trending artwork frame consistent and show the full submitted artwork without stretching. */
.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"] .dw-track-cover {
  width: 100%;
  height: auto !important;
  aspect-ratio: 16 / 9;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #090711 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.018), inset 0 0 42px rgba(124,54,145,.08);
  transition: filter .22s ease, box-shadow .22s ease, transform .22s ease;
}

/* Premium hover/focus highlight without changing the underlying artwork crop. */
@media (hover: hover) and (pointer: fine) {
  .discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"]:hover {
    transform: translateY(-5px);
    border-color: rgba(244,73,216,.48);
    background: linear-gradient(180deg, rgba(241,61,207,.055), rgba(112,67,241,.025));
    box-shadow: 0 16px 34px rgba(0,0,0,.34), 0 0 28px rgba(226,58,209,.12), inset 0 1px 0 rgba(255,255,255,.035);
  }

  .discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"]:hover .dw-track-cover {
    filter: brightness(1.08) saturate(1.06);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.035), 0 0 24px rgba(226,58,209,.13);
  }

  .discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"]:hover .dw-track-cover button {
    transform: scale(1.08);
    box-shadow: 0 8px 24px rgba(228,49,202,.38), 0 0 18px rgba(228,49,202,.22);
  }
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"]:focus-visible {
  outline: none;
  transform: translateY(-3px);
  border-color: rgba(244,73,216,.62);
  box-shadow: 0 0 0 2px rgba(135,70,245,.32), 0 14px 30px rgba(0,0,0,.3), 0 0 24px rgba(226,58,209,.12);
}

.discover-page-shell.dw-page .dw-trending .dw-track-cover button {
  transition: transform .22s ease, box-shadow .22s ease;
}

.discover-page-shell.dw-page .dw-trending .dw-track-grid[data-trending-count="0"] {
  display: grid !important;
  grid-template-columns: 1fr !important;
  overflow: hidden;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"] {
  min-height: 132px;
  width: 100%;
  flex-basis: 100%;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 24px 18px !important;
  text-align: center;
  border: 1px dashed rgba(230, 78, 216, .22) !important;
  background:
    radial-gradient(circle at 50% 45%, rgba(203, 58, 219, .08), transparent 36%),
    rgba(255,255,255,.008) !important;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"]::before {
  content: "♪";
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #d86fe2;
  border: 1px solid rgba(227, 86, 218, .24);
  background: rgba(214, 60, 210, .07);
  box-shadow: 0 0 28px rgba(216, 58, 211, .08);
  font-size: 17px;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"] .dw-track-cover {
  display: none !important;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"] > b {
  margin: 2px 0 0 !important;
  font-size: 12px !important;
  color: #f5edf6;
}

.discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"] > small {
  max-width: 560px;
  margin: 0 !important;
  color: #91889a !important;
  font-size: 9px !important;
  line-height: 1.55;
}

@media (max-width: 1250px) and (min-width: 901px) {
  .discover-page-shell.dw-page .dw-trending .dw-track-card {
    flex-basis: calc((100% - 24px) / 3);
  }
}

@media (max-width: 900px) and (min-width: 761px) {
  .discover-page-shell.dw-page .dw-trending .dw-track-card {
    flex-basis: min(42vw, 360px);
  }
}

@media (max-width: 760px) {
  .discover-page-shell.dw-page .dw-trending .dw-track-grid {
    gap: 10px !important;
    padding-bottom: 10px;
  }

  .discover-page-shell.dw-page .dw-trending .dw-track-card {
    flex-basis: min(79vw, 330px);
  }

  .discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-live="1"] .dw-track-cover {
    aspect-ratio: 16 / 9;
  }

  .discover-page-shell.dw-page .dw-trending .dw-track-card[data-trending-empty="1"] {
    min-height: 118px;
    padding: 20px 14px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .discover-page-shell.dw-page .dw-trending .dw-track-grid {
    scroll-behavior: auto;
  }
  .discover-page-shell.dw-page .dw-trending .dw-track-card,
  .discover-page-shell.dw-page .dw-trending .dw-track-cover,
  .discover-page-shell.dw-page .dw-trending .dw-track-cover button {
    transition: none !important;
  }
}
