/* TIDAL-inspired listening shell — keeps ersy magenta system */

.mix-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}

.mix-rail::-webkit-scrollbar { display: none; }

.mix-rail .mix-card {
  flex: 0 0 min(320px, 78vw);
  width: min(320px, 78vw);
  scroll-snap-align: start;
}

.mix-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #16101e;
  border: 1px solid rgba(255, 255, 255, 0.07);
  min-height: 112px;
}

.mix-card.tone-b,
.mix-card.tone-c {
  background: #16101e;
}

.mix-hit {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 112px;
  padding: 12px 56px 12px 12px;
  text-align: left;
  color: inherit;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
}

.mix-art {
  width: 88px;
  height: 88px;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  flex: none;
  pointer-events: none;
}

.mix-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.mix-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  align-content: center;
}

.mix-copy em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  font-weight: 700;
}

.mix-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.mix-copy span {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mix-play {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--magenta);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: none;
  z-index: 2;
}

.mix-card:hover .mix-play {
  transform: translateY(-50%);
}

/* Mix playlist page */
.mix-page .btn-link { margin-bottom: 16px; display: inline-block; }

.mix-hero {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #16101e;
  margin-bottom: 22px;
}

.mix-hero.tone-b,
.mix-hero.tone-c {
  background: #16101e;
}

.mix-hero-art {
  width: 200px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.mix-hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mix-hero-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 64px;
  color: rgba(255, 255, 255, 0.35);
}

.mix-hero-copy em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  font-weight: 700;
}

.mix-hero-copy h1 {
  margin: 8px 0 6px;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.mix-hero-copy p { margin: 0; color: var(--muted); max-width: 42ch; }

.mix-hero-meta {
  margin-top: 10px !important;
  font-size: 13px;
  color: var(--dim) !important;
}

.mix-hero-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mix-tracklist {
  display: grid;
  gap: 2px;
}

.mix-trow {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 10px;
}

.mix-trow:hover,
.mix-trow.on {
  background: rgba(255, 255, 255, 0.05);
}

.mix-trow.is-scarce { opacity: 0.55; }

.mix-tn {
  text-align: center;
  color: var(--dim);
  font-variant-numeric: tabular-nums;
  font-size: 13px;
}

.mix-tmain {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  min-width: 0;
}

.mix-tmain:disabled { cursor: default; }

.mix-tmain img {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.mix-tmain strong {
  display: block;
  font-size: 14px;
}

.mix-tmain em {
  display: block;
  margin-top: 2px;
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
}

.mix-tacts {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mix-tartist {
  font-size: 12px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 720px) {
  .mix-hero {
    grid-template-columns: 1fr;
    justify-items: start;
  }
  .mix-hero-art {
    width: 140px;
    height: 140px;
  }
  .mix-tacts .mix-tartist { display: none; }
}

.coll-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 8px;
}

.explore-page .explore-block {
  margin-top: 34px;
}

.explore-page .explore-block h3 {
  margin: 0 0 14px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.mood-grid,
.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.mood-tile,
.genre-tile {
  position: relative;
  display: block;
  min-height: 96px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-align: left;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.mood-tile img,
.genre-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0.45;
}

.mood-tile span,
.genre-tile span {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 14px;
}

.mood-tile strong,
.genre-tile strong {
  font-size: 15px;
}

.mood-tile em,
.genre-tile em {
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
}

.mood-tile:hover img,
.genre-tile:hover img {
  opacity: 0.6;
  transform: scale(1.04);
  transition: 0.35s ease;
}

.chart-list {
  display: grid;
  gap: 6px;
}

.chart-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.chart-main {
  display: grid;
  grid-template-columns: 28px 48px 1fr;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
}

.chart-main:hover {
  background: rgba(255, 255, 255, 0.04);
}

.chart-main b {
  font-variant-numeric: tabular-nums;
  color: var(--dim);
}

.chart-main img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  object-position: top center;
}

.chart-main span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.chart-main strong {
  font-size: 14.5px;
}

.chart-main em {
  font-style: normal;
  font-size: 12px;
  color: var(--dim);
}

.chart-play {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 45, 111, 0.15);
  color: var(--magenta-soft);
  cursor: pointer;
}

.chart-play:hover {
  background: var(--magenta);
  color: #fff;
  border-color: var(--magenta);
}

.bar-quality {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 4px;
  border: 1px solid rgba(255, 45, 111, 0.45);
  color: var(--magenta-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bar-artist {
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.bar-artist:hover {
  color: var(--magenta-soft);
  text-decoration: underline;
}

.bar .yt-svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 720px) {
  .mix-hit {
    grid-template-columns: 72px 1fr;
  }
  .mix-play {
    display: none;
  }
  .mix-art {
    width: 72px;
    height: 72px;
  }
}
