/* =========================================
   NEXTGEN DUBZ - HOME PAGE (MOBILE FIRST & FIXED ALIGNMENT)
========================================= */
body { background-color: #050505; margin: 0; padding: 0; overflow-x: hidden; }

/* --- 1. HERO SLIDER --- */
.hero-slider-wrapper { position: relative; width: 100%; height: 60vh; min-height: 400px; overflow: hidden; background-color: #050505; }
.hero-loader { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 10; background: #050505; }
.violet-spinner { width: 50px; height: 50px; border: 4px solid #222; border-top: 4px solid #8b5cf6; border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.hero-slides-container { position: relative; width: 100%; height: 100%; }

/* FIXED STACKING CONTEXT: Active slide jumps to z-index 10 */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.8s ease-in-out; background-size: cover; background-position: center top; z-index: 1; }
.hero-slide.active { opacity: 1; z-index: 10; } 

/* FIXED GRADIENTS: These now sit INSIDE the slide, behind the content */
.hero-slide::after { 
  content: ''; position: absolute; inset: 0; 
  background: linear-gradient(to top, rgba(5,5,5,1) 0%, rgba(5,5,5,0.4) 60%, rgba(5,5,5,0.1) 100%); 
  pointer-events: none; z-index: 1; 
}
.hero-slide::before { 
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px; 
  background: linear-gradient(to top, #050505 0%, transparent 100%); 
  pointer-events: none; z-index: 2; 
}

/* Kill the old external fade that was covering the buttons */
.hero-bottom-fade { display: none !important; }

/* FIXED CONTENT LAYER: z-index 20 forces text/buttons above the internal gradients */
.hero-content { position: absolute; bottom: 12%; left: 4%; right: 4%; text-align: center; z-index: 20; pointer-events: auto; }
.hero-meta { font-size: 13px; color: #ccc; margin-bottom: 12px; font-weight: 600; display: flex; justify-content: center; gap: 8px; align-items: center; }
.hero-badge { background: rgba(139, 92, 246, 0.2); color: #a78bfa; padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(139, 92, 246, 0.4); }
.hero-title { font-size: 28px; font-weight: 800; color: #fff; margin: 0 0 10px 0; line-height: 1.2; text-shadow: 0 4px 15px rgba(0,0,0,0.8); }
.hero-desc { display: none; }

/* --- PURE GLOW BUTTONS & STRICT OVERLAY ALIGNMENT --- */
.hero-btns { display: flex; gap: 10px; justify-content: center; position: relative; z-index: 30; } 

.btn-play { 
  background: #ffffff !important; 
  color: #000000 !important; 
  padding: 8px 24px; border-radius: 50px; font-weight: 800; font-size: 14px; 
  display: flex; align-items: center; gap: 8px; text-decoration: none; 
  border: none; cursor: pointer; 
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.25); /* Radiant base glow */
  transition: all 0.3s ease; 
}
.btn-play:hover { 
  background: #ffffff !important; 
  transform: scale(1.05); 
  box-shadow: 0 8px 30px rgba(255, 255, 255, 0.6); /* Intense glow overlapping the dark background */
}
.btn-play .material-icons-round { font-size: 20px; }

.btn-detail { 
  background: rgba(255,255,255,0.15); 
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: #fff; padding: 8px 24px; border-radius: 50px; font-weight: 700; font-size: 14px; 
  display: flex; align-items: center; gap: 6px; text-decoration: none; 
  border: 1px solid rgba(255,255,255,0.2); 
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease; 
}
.btn-detail:hover { 
  background: rgba(255,255,255,0.25); 
  border-color: rgba(255,255,255,0.4);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.25); /* Soft bright glow */
}

/* Slider Navigation (Bumped z-index to stay above active slides) */
.hero-controls { display: none; z-index: 30; }
.hero-nav-btn { background: rgba(20, 20, 22, 0.6); border: 1px solid rgba(255,255,255,0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; backdrop-filter: blur(10px); transition: 0.2s; }
.hero-nav-btn:hover { background: #8b5cf6; border-color: #8b5cf6; }

.hero-dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 15px; z-index: 30; display: flex; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.3); transition: 0.3s; }
.dot.active { background: #8b5cf6; width: 20px; border-radius: 10px; }

/* --- 2. MAIN SECTIONS --- */
.home-main-content { padding: 15px 4vw 60px 4vw; display: flex; flex-direction: column; gap: 35px; width: 100%; box-sizing: border-box; max-width: 1550px; margin: 0 auto; }
.home-section { width: 100%; box-sizing: border-box; min-width: 0; }

.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.section-title { font-size: 16px; font-weight: 800; color: #fff; margin: 0; display: flex; align-items: center; gap: 8px; }
.title-icon-box { background: #8b5cf6; width: 28px; height: 28px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.title-icon-box .material-icons-round { color: #ffffff !important; font-size: 16px; }

.header-actions { display: flex; align-items: center; gap: 10px; }
.explore-btn-wrapper { display: flex; align-items: center; justify-content: flex-end; min-width: 80px; }

/* Explore Button */
.load-more-text-btn { background: transparent; border: none; color: #ffffff; font-weight: 700; font-size: 13px; cursor: pointer; display: flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 20px; transition: 0.2s; font-family: inherit; }
.load-more-text-btn:hover { background: rgba(255,255,255,0.1); }
.load-more-text-btn .material-icons-round { font-size: 16px; }

/* "No More" State (Transparent Glassy Black) */
.btn-disabled-glass { background: rgba(0, 0, 0, 0.4) !important; color: #a1a1aa !important; padding: 4px 12px; border-radius: 20px; font-weight: 600; font-size: 12px; border: 1px solid rgba(255, 255, 255, 0.05); pointer-events: none; }

/* Swimlane Controls */
.swimlane-controls { display: flex; gap: 4px; }
.swimlane-arrow { background: rgba(20, 20, 22, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 6px; color: #fff; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.2s; backdrop-filter: blur(10px);}
.swimlane-arrow:hover, .swimlane-arrow:active { background: #8b5cf6; border-color: #8b5cf6; }

/* --- 3. HORIZONTAL SCROLL (HIDDEN SCROLLBAR, STRICT BOUNDS) --- */
.ngd-swimlane { 
  display: flex; gap: 12px; overflow-x: auto; overflow-y: visible; 
  padding: 15px 0 25px 0; 
  margin-top: -15px; 
  width: 100%; box-sizing: border-box;
  scroll-behavior: smooth; scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch; 
  scrollbar-width: none; 
  -ms-overflow-style: none; 
}
.ngd-swimlane::-webkit-scrollbar { display: none; }
.ngd-swimlane .ngd-card { flex: 0 0 auto; width: 140px; scroll-snap-align: start; overflow: hidden; border-radius: 12px; }

/* --- 4. LATEST RELEASE GRID & BUTTON --- */
.mobile-2-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; box-sizing: border-box; }

.load-more-container { text-align: center; margin-top: 15px; }
.load-more-solid { padding: 10px 24px; border-radius: 50px; font-weight: 700; font-size: 13px; border: none; background: rgba(255,255,255,0.08); color: #fff; cursor: pointer; transition: 0.2s; border: 1px solid rgba(255,255,255,0.1); }
.load-more-solid:hover { background: #8b5cf6; border-color: #8b5cf6; transform: translateY(-2px); }
.btn-disabled-solid { opacity: 0.5; background: rgba(255,255,255,0.05) !important; color: #a1a1aa !important; border-color: transparent !important; pointer-events: none; }


/* =========================================
   DESKTOP SCALING (MIN-WIDTH: 768px)
========================================= */
@media (min-width: 768px) {
  .hero-slider-wrapper { height: 75vh; max-height: 800px; }
  
  /* Desktop Gradient Layer - Fades to right for text readability */
  .hero-slide::after { background: linear-gradient(to right, rgba(5,5,5,0.95) 0%, rgba(5,5,5,0.6) 50%, rgba(5,5,5,0) 100%); z-index: 1; }
  
  /* Make the internal bottom fade much taller on desktop for a seamless blend */
  .hero-slide::before { height: 200px; }
  
  .hero-content { left: 6%; text-align: left; bottom: 15%; max-width: 600px; z-index: 20;}
  .hero-meta { justify-content: flex-start; font-size: 14px; }
  .hero-title { font-size: 42px; }
  .hero-desc { display: -webkit-box; font-size: 15px; color: #a1a1aa; line-height: 1.6; margin-bottom: 25px; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-btns { justify-content: flex-start; gap: 15px; z-index: 30;}
  
  .btn-play { padding: 10px 28px; font-size: 15px; }
  .btn-detail { padding: 10px 28px; font-size: 15px; }

  .hero-controls { display: flex; position: absolute; right: 4%; bottom: 15%; z-index: 30; gap: 10px; }
  .hero-nav-btn { width: 45px; height: 45px; }
  .hero-dots { left: 6%; transform: none; bottom: 5%; gap: 8px; }
  .dot { width: 8px; height: 8px; }
  .dot.active { width: 24px; }

  .home-main-content { padding: 20px 4vw 80px 4vw; gap: 50px; }
  .section-header { margin-bottom: 20px; padding-bottom: 12px; }
  .section-title { font-size: 22px; gap: 12px; }
  .title-icon-box { width: 36px; height: 36px; border-radius: 10px; }
  .title-icon-box .material-icons-round { font-size: 20px; }

  .header-actions { gap: 20px; }
  .load-more-text-btn { font-size: 14px; }
  .swimlane-controls { gap: 8px; }
  .swimlane-arrow { width: 36px; height: 36px; border-radius: 8px; }

  .ngd-swimlane { gap: 16px; padding: 15px 0 30px 0; margin-top: -15px; }
  .ngd-swimlane .ngd-card { width: 190px; }
  
  .mobile-2-col { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .load-more-solid { padding: 12px 32px; font-size: 14px; }
}

@media (min-width: 1600px) {
  .home-main-content { padding: 20px 5vw 80px 5vw; max-width: 1650px; }
}

/* ==================================================== */
/* --- SHIMMER LOADER SKELETONS ----------------------- */
/* ==================================================== */

.shimmer-card {
  pointer-events: none;
  background: rgba(255, 255, 255, 0.02) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: none !important;
}

.shimmer-elem {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  border-radius: 6px;
}

.shimmer-elem::after {
  content: "";
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  transform: translateX(-100%);
  background-image: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  animation: shimmerAnim 1.5s infinite;
}

@keyframes shimmerAnim {
  100% { transform: translateX(100%); }
}

.shimmer-badge { position: absolute; top: 10px; left: 10px; width: 60px; height: 22px; }
.shimmer-content-wrap { position: absolute; bottom: 12px; left: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; }
.shimmer-title { height: 14px; width: 85%; }
.shimmer-title.short { width: 50%; }

/* --- HERO BANNER SHIMMER SKELETON --- */
.hero-shimmer { background: #0A0A0B; pointer-events: none; }
.shimmer-hero-badge { width: 80px; height: 26px; margin: 0 auto 12px auto; border-radius: 6px; }
.shimmer-hero-title { width: 70%; max-width: 400px; height: 35px; margin: 0 auto 15px auto; border-radius: 8px; }
.shimmer-hero-desc { width: 90%; max-width: 500px; height: 14px; margin: 0 auto 8px auto; border-radius: 4px; display: none; }
.shimmer-hero-desc.short { width: 60%; }
.shimmer-hero-btn { width: 120px; height: 42px; border-radius: 50px; }

@media (min-width: 768px) {
  .hero-shimmer { padding-bottom: 15% !important; }
  .shimmer-hero-badge, .shimmer-hero-title, .shimmer-hero-desc { margin-left: 0; }
  .shimmer-hero-desc { display: block; }
}