/* Homepage discovery geometry only; existing CCC colors/artwork remain authoritative. */
.ccc-home #the-network .artist-grid.ccc-spotlight-rotating,
.ccc-home #shots-that-speak > .family-visual-grid.ccc-shots-rotating {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 4px 4px 14px;
  scroll-padding-inline: 4px;
}
.ccc-home #the-network .artist-grid.ccc-spotlight-rotating > * {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
  scroll-snap-align: start;
}
.ccc-home #shots-that-speak > .family-visual-grid.ccc-shots-rotating > .family-visual-card {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 0;
  margin: 0;
  grid-column: auto;
  scroll-snap-align: start;
}
.ccc-home #shots-that-speak > .family-visual-grid.ccc-shots-rotating > .family-visual-card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
}
.ccc-home .ccc-rotation-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 12px 0;
}
.ccc-home .site-carousel-controls [data-ccc-rotation-toggle] {
  width: auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 12px;
  border-radius: 10px;
  font-size: 12px;
}
@media (max-width: 1023px) {
  .ccc-home #the-network .artist-grid.ccc-spotlight-rotating > * {
    flex-basis: calc((100% - 32px) / 3);
  }
}
@media (max-width: 767px) {
  .ccc-home #the-network .artist-grid.ccc-spotlight-rotating > *,
  .ccc-home #shots-that-speak > .family-visual-grid.ccc-shots-rotating > .family-visual-card {
    flex-basis: 86%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ccc-home .ccc-spotlight-rotating,
  .ccc-home .ccc-shots-rotating {
    scroll-behavior: auto;
  }
}

/* Music Drops: only the enhanced populated homepage branch; no /music or artist-page rules. */
main.ccc-home #music > .track-list.ccc-music-rotating {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 16px;
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  padding: 4px 4px 14px;
  scroll-padding-inline: 4px;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row {
  flex: 0 0 calc((100% - 32px) / 3);
  box-sizing: border-box;
  min-width: 0;
  display: grid;
  grid-template-columns: 24px 48px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  align-items: start;
  align-content: start;
  gap: 8px 10px;
  padding: 12px;
  scroll-snap-align: start;
}
/* Retain server/filter hidden states despite the explicit card display above. */
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row[hidden] {
  display: none;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-number {
  grid-column: 1;
  grid-row: 1;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-art {
  grid-column: 2;
  grid-row: 1;
  width: 48px;
  height: 48px;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-main {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-main b {
  font-size: 12px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-main small {
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-genre {
  display: block;
  grid-column: 1 / -1;
  grid-row: 2;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row .track-platform {
  grid-column: 1 / -1;
  grid-row: 3;
  min-width: 0;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
  text-align: left;
}
/* Outbound cards are already whole-card links; this span is metadata, not a control.
   Canonical a.track-platform listening targets retain their inherited 44px minimum. */
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row > span.track-platform {
  min-height: 0;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row :is(.track-genre, .track-platform) {
  font-size: 10px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row audio {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
main.ccc-home #music > .track-list.ccc-music-rotating > .track-row > audio {
  grid-column: 1 / -1;
}
/* Keep the existing latest pencil as a sibling, visible at the scrollport edge.
   Its negative margin cancels only its own 36px footprint plus the 16px flex gap. */
main.ccc-home #music > .track-list.ccc-music-rotating > .admin-section-edit {
  position: sticky;
  left: calc(100% - 44px);
  right: auto;
  top: 8px;
  align-self: flex-start;
  flex: 0 0 36px;
  margin-inline-end: -52px;
}
@media (max-width: 1023px) {
  main.ccc-home #music > .track-list.ccc-music-rotating > .track-row {
    flex-basis: calc((100% - 16px) / 2);
  }
}
@media (max-width: 767px) {
  main.ccc-home #music > .track-list.ccc-music-rotating > .track-row {
    flex-basis: 86%;
  }
}
@media (prefers-reduced-motion: reduce) {
  main.ccc-home #music > .track-list.ccc-music-rotating {
    scroll-behavior: auto;
  }
}
