/* Homepage Releases Carousel */
@font-face {
    font-family: 'Baloo 2';
    src: url("../fonts/Baloo2-VariableFont_wght.ttf") format('truetype');
    font-weight: 400 800;
    font-display: swap;
}

.homepage-releases-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(10, 14, 39, 0.95) 0%, rgba(26, 30, 58, 0.95) 100%);
  position: relative;
  overflow: hidden;
}

.homepage-releases-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16f1d3, transparent);
}

.homepage-releases-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #16f1d3, transparent);
}

.releases-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.releases-title {
  font-family: 'Baloo 2', cursive, sans-serif;
  font-size: 3.0rem;
  font-weight: 700;
  color: #e6f1fb;
  text-shadow: 0 0 20px rgba(22, 241, 211, 0.5);
  margin: 0;
}

.releases-view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: rgba(22, 241, 211, 0.1);
  border: 2px solid #16f1d3;
  border-radius: 8px;
  color: #16f1d3;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(22, 241, 211, 0.3);
}

.releases-view-all:hover {
  background: rgba(22, 241, 211, 0.2);
  box-shadow: 0 0 25px rgba(22, 241, 211, 0.6);
  transform: translateY(-2px);
  color: #16f1d3;
}

/* DESKTOP vs MOBILE TOGGLE */
.desktop-only {
  display: block !important;
}

.mobile-only {
  display: none !important;
}

/* DESKTOP: CAROUSEL */
.releases-carousel-wrapper {
  position: relative;
  padding: 0 50px;
}

.releases-carousel {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 20px 0;
  cursor: grab;
  user-select: none;
}

.releases-carousel::-webkit-scrollbar {
  display: none;
}

.releases-carousel.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

/* MOBILE: FEATURED RELEASE - SINGLE CARD */
.featured-release-wrapper {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}

.featured-card {
  max-width: 350px;
  width: 100%;
}

.release-card {
  flex: 0 0 calc(33.333% - 20px);
  min-width: 280px;
  scroll-snap-align: start;
  background: rgba(26, 30, 58, 0.8);
  border: 2px solid rgba(22, 241, 211, 0.3);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
}

.release-card:hover {
  transform: translateY(-5px);
  border-color: #16f1d3;
}

.release-cover {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-bottom: 2px solid rgba(22, 241, 211, 0.3);
}

.release-info {
  padding: 20px;
}

.release-artists {
  font-size: 0.875rem;
  color: #16f1d3;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-title {
  font-size: 1.125rem;
  color: #e6f1fb;
  font-weight: 600;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.release-meta {
  display: flex;
  gap: 12px;
  font-size: 0.875rem;
  color: #a6d5cf;
}

/* Carousel navigation */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(22, 241, 211, 0.1);
  border: 2px solid #16f1d3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: #16f1d3;
  font-size: 20px;
}

.carousel-nav:hover {
  background: rgba(22, 241, 211, 0.3);
  box-shadow: 0 0 20px rgba(22, 241, 211, 0.6);
}

.carousel-nav.prev {
  left: 0;
}

.carousel-nav.next {
  right: 0;
}

.no-releases {
  text-align: center;
  padding: 60px 20px;
  color: #a6d5cf;
  font-size: 1.125rem;
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
  .releases-title {
    font-size: 2rem;
  }
  
  .releases-carousel-wrapper {
    padding: 0 40px;
  }
  
  .release-card {
    flex: 0 0 calc(33.333% - 20px);
    min-width: 240px;
  }
}

@media (max-width: 767.98px) {
  /* HIDE DESKTOP CAROUSEL ON MOBILE */
  .desktop-only {
    display: none !important;
  }
  
  /* SHOW MOBILE SINGLE CARD */
  .mobile-only {
    display: flex !important;
  }
  
  .homepage-releases-section {
    padding: 60px 0;
  }
  
  .releases-title {
    font-size: 1.75rem;
  }
  
  .releases-view-all {
    padding: 10px 20px;
    font-size: 0.875rem;
  }
  
  .featured-release-wrapper {
    padding: 20px;
  }
  
  .featured-card {
    max-width: 400px;
    margin: 0 auto;
    width: 100%;
  }
  
  /* MATCH TOP 3 CARD SIZE EXACTLY */
  .mobile-only .release-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(26, 30, 58, 0.8);
    border: 3px solid rgba(22, 241, 211, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .mobile-only .release-cover {
    height: 200px;
    width: 100%;
    object-fit: cover;
  }
  
  .mobile-only .release-info {
    padding: 30px 25px;
    text-align: center;
  }
  
  .mobile-only .release-artists {
    font-size: 1rem;
    margin-bottom: 8px;
    font-weight: 600;
    color: #16f1d3;
  }
  
  .mobile-only .release-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: #e6f1fb;
    line-height: 1.3;
  }
  
  .mobile-only .release-meta {
    font-size: 0.875rem;
    color: #a6d5cf;
    display: flex;
    justify-content: center;
    gap: 12px;
  }
}

@media (max-width: 575.98px) {
  .releases-title {
    font-size: 1.5rem;
  }
  
  .release-title {
    font-size: 1rem;
  }
}

