/* =====================================================
   INDEX MOBILE OVERRIDES
   Progressive enhancement for the home page only
===================================================== */

.home-page {
  overflow-x: clip;
}

.home-page .featured-related {
  min-width: 0;
}

.home-page .mini-set-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .media-overlay {
  gap: 8px;
}

.home-page .list-card {
  min-width: 0;
}

.home-page .profile-sets .list-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 14px;
}

.home-page .profile-sets .list-thumb {
  border-radius: 14px;
}

.home-page .profile-sets .list-thumb::after {
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.58) 34%,
    rgba(0,0,0,0.18) 62%,
    rgba(0,0,0,0.02) 100%
  );
}

.home-page .profile-sets .list-card h3 {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  z-index: 2;
  margin: 0;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  text-shadow: 0 2px 10px rgba(0,0,0,0.85);
}

.home-page .profile-sets .list-card-sub {
  display: none;
}

.home-page .onair-slider {
  scroll-snap-type: x proximity;
}

.home-page .onair-slider .media-card {
  scroll-snap-align: start;
}

.home-page .top-djs {
  position: relative;
}

.home-page .top-djs-slider {
  scroll-snap-type: x proximity;
}

.home-page .top-djs-slider .dj-card {
  scroll-snap-align: start;
}

.home-page .trending-sets {
  position: relative;
}

@media (max-width: 1024px) {
  .home-page {
    margin-top: 36px;
  }

  .home-page .featured-set,
  .home-page .trending-sets,
  .home-page .top-djs,
  .home-page .latest-news {
    margin-top: 56px;
  }

  .home-page .profile-sets {
    margin-top: 56px !important;
  }

  .home-page .featured-layout {
    gap: 20px;
  }

  .home-page .featured-related h3,
  .home-page .trending-sets h2,
  .home-page .top-djs h2,
  .home-page .latest-news h2,
  .home-page .profile-sets h2 {
    letter-spacing: 2px;
  }

  .home-page .carousel-wrapper {
    height: 420px;
  }

  .home-page .onair-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 14px 16px;
  }

  .home-page .featured-set {
    margin-right: -16px;
    margin-left: -16px;
  }

  .page-container {
    margin: 28px auto 56px;
    padding: 0 16px;
  }

  .home-page .featured-set,
  .home-page .trending-sets,
  .home-page .top-djs,
  .home-page .latest-news,
  .home-page .profile-sets {
    margin-top: 44px !important;
  }

  .home-page .carousel-wrapper {
    height: 320px;
    border-radius: 0;
  }

  .home-page .carousel-overlay {
    padding: 18px;
  }

  .home-page .carousel-overlay h2 {
    font-size: 1.5rem;
    line-height: 1.1;
  }

  .home-page .carousel-overlay p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 8px 0 0;
  }

  .home-page .carousel-cta {
    margin-top: 14px;
    padding: 0.55rem 1rem;
  }

  .home-page .carousel-nav {
    width: 36px;
    height: 36px;
  }

  .home-page .featured-related h3,
  .home-page .trending-sets h2,
  .home-page .top-djs h2,
  .home-page .latest-news h2,
  .home-page .profile-sets h2 {
    margin-bottom: 14px;
    font-size: 1.05rem;
    letter-spacing: 1.5px;
  }

  .home-page .mini-set a,
  .home-page .mini-set {
    min-height: 88px;
  }

  .home-page .onair-grid,
  .home-page .dj-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .home-page .top-djs-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(78% - 8px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 10px 0;
    margin-right: -4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .top-djs-slider::-webkit-scrollbar {
    display: none;
  }

  .home-page .top-djs-slider .dj-card {
    min-width: 0;
  }

  .home-page .top-djs-slider .dj-card-inner {
    aspect-ratio: 16 / 10;
  }

  .home-page .top-djs-slider .dj-card img {
    height: 100%;
  }

  .home-page .top-djs-slider .dj-overlay {
    padding: 18px 14px 10px;
  }

  .home-page .top-djs-slider .dj-overlay h3 {
    margin-bottom: 0;
  }

  .home-page .media-card {
    aspect-ratio: 16 / 10;
  }

  .home-page .onair-slider {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(39% - 8px);
    grid-template-columns: none;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 10px 0;
    margin-right: -4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .onair-slider::-webkit-scrollbar {
    display: none;
  }

  .home-page .onair-slider .media-card {
    min-width: 0;
  }

  .home-page .onair-slider.is-hinting {
    animation: onair-slider-nudge 1.15s ease-in-out 1;
  }

  .home-page .media-overlay {
    padding: 14px;
  }

  .home-page .onair-badge {
    top: 10px;
    left: 10px;
  }

  .home-page .list-card h3,
  .home-page .media-overlay h3 {
    font-size: 1rem;
  }

  .home-page .profile-sets .list-card h3 {
    right: 12px;
    bottom: 12px;
    left: 12px;
    font-size: 0.92rem;
  }

  .home-page .profile-sets .list-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    overflow: visible;
    border-radius: 0;
  }

  .home-page .profile-sets .list-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    box-shadow:
      0 10px 20px rgba(59,130,246,0.14),
      0 4px 10px rgba(0,0,0,0.08);
  }

  .home-page .profile-sets .list-thumb::after {
    display: none;
  }

  .home-page .profile-sets .list-copy {
    display: flex;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0;
  }

  .home-page .profile-sets .list-card h3 {
    position: static;
    margin: 0;
    color: var(--text-main);
    font-size: 0.98rem;
    line-height: 1.25;
    text-shadow: none;
  }

  .home-page .profile-sets .list-card-sub {
    display: block;
    font-size: 0.8rem;
    line-height: 1.35;
    color: rgba(0,0,0,0.58);
  }

}

@media (max-width: 480px) {
  .page-container {
    padding: 0 12px;
  }

  .home-page .featured-set {
    margin-right: -12px;
    margin-left: -12px;
  }

  .home-page .featured-main {
    border-radius: 0;
  }

  .home-page .carousel-wrapper {
    height: 280px;
    border-radius: 0;
  }

  .home-page .carousel-overlay {
    padding: 14px;
  }

  .home-page .carousel-overlay h2 {
    font-size: 1.25rem;
  }

  .home-page .carousel-overlay p {
    font-size: 0.88rem;
  }

  .home-page .carousel-badge {
    font-size: 0.68rem;
  }

  .home-page .featured-related h3,
  .home-page .trending-sets h2,
  .home-page .top-djs h2,
  .home-page .latest-news h2,
  .home-page .profile-sets h2 {
    font-size: 0.98rem;
    letter-spacing: 1px;
  }

  .home-page .media-card {
    aspect-ratio: 4 / 3;
  }

  .home-page .onair-slider {
    grid-auto-columns: calc(39% - 6px);
    gap: 10px;
  }

  .home-page .top-djs-slider {
    grid-auto-columns: calc(78% - 6px);
    gap: 10px;
  }

  .home-page .media-overlay,
  .home-page .list-thumb {
    border-radius: 14px;
  }

  .home-page .profile-sets .list-card h3 {
    font-size: 0.9rem;
  }

  .home-page .profile-sets .list-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
  }

  .home-page .profile-sets .list-card-sub {
    font-size: 0.76rem;
  }
}

@keyframes onair-slider-nudge {
  0% {
    transform: translateX(0);
  }
  35% {
    transform: translateX(-12px);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .onair-slider.is-hinting {
    animation: none;
  }

  .home-page .trending-sets::after {
    transition: none;
  }
}
