/* =========================================
   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%; }

.hero-slide { 
  position: absolute; 
  inset: 0; 
  opacity: 0; 
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1); 
  background-size: cover; 
  background-position: center top; 
  z-index: 1; 
}
.hero-slide.active { opacity: 1; z-index: 10; } 

.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; 
}

.hero-bottom-fade { display: none !important; }

.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: 0px 0px 15px rgb(0 0 0 / 48%);
  display: -webkit-box;
  -webkit-line-clamp: 2; 
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-desc { display: none; }

/* --- MODERN OTT BUTTONS --- */
.hero-btns { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  align-items: center; 
  flex-wrap: wrap; 
  position: relative; 
  z-index: 30; 
} 

.btn-play { 
  background: #ffffff !important; 
  color: #000000 !important; 
  padding: 10px 20px; 
  border-radius: 50px; 
  font-weight: 800; 
  font-size: 14px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 6px; 
  text-decoration: none; 
  border: none; 
  cursor: pointer; 
  width: max-content; 
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); 
  transition: all 0.2s ease; 
}

.btn-play:hover { 
  background: rgba(255, 255, 255, 0.85) !important; 
  transform: scale(1.02); 
}

.btn-detail { 
  background: rgb(62 61 61 / 48%) !important ; 
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  color: #ffffff !important; 
  padding: 10px 20px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 14px; 
  display: inline-flex; 
  align-items: center; 
  justify-content: center;
  gap: 6px; 
  text-decoration: none; 
  border: none; 
  width: max-content; 
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease; 
}

.btn-detail:hover { 
  background: rgba(109, 109, 110, 0.5) !important; 
  transform: scale(1.02);
}

.btn-play .svg-icon svg, .btn-detail .svg-icon svg { width: 18px; height: 18px; margin-right: 2px; }

.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; pointer-events: auto; }
.hero-nav-btn:hover, .hero-nav-btn:active { background: #8b5cf6; border-color: #8b5cf6; transform: scale(1.1); }
.hero-nav-btn .svg-icon svg { width: 18px; height: 18px; color: #ffffff !important; }

.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 .svg-icon svg { color: #ffffff !important; width: 14px; height: 14px; }

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

.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 .svg-icon svg { width: 14px; height: 14px; margin-left: 4px; transition: transform 0.2s ease; }
.load-more-text-btn:hover .svg-icon svg { transform: translateX(4px); }

.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 { 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 .svg-icon svg { color: #ffffff !important; width: 16px; height: 16px; }
.swimlane-arrow:hover, .swimlane-arrow:active { background: #8b5cf6; border-color: #8b5cf6; }

/* --- 3. HORIZONTAL SCROLL --- */
.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; }

/* ✨ YOUTUBE STYLE CARD LOGIC FOR SWIMLANE ✨ */
.yt-swimlane .swimlane-yt-card {
  flex: 0 0 auto; 
  width: 250px; /* 16:9 appropriate width for mobile */
  scroll-snap-align: start;
}

.yt-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.3s ease;
  cursor: pointer;
  background: transparent;
}
.yt-card:hover { transform: translateY(-4px); }

.yt-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9; 
  border-radius: 10px;
  overflow: hidden;
  background: rgba(20, 20, 22, 0.4);
  border: 1px solid var(--glass-border);
}
.yt-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.yt-card:hover .yt-thumb { border-color: #8b5cf6; box-shadow: 0 10px 20px rgba(139, 92, 246, 0.25); }
.yt-card:hover .yt-thumb img { transform: scale(1.05); }

.yt-ep-badge {
  position: absolute; bottom: 8px; right: 8px; background: rgba(0, 0, 0, 0.85); backdrop-filter: blur(4px);
  padding: 4px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; color: #fff;
  border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 4px 10px rgba(0,0,0,0.5); z-index: 2;
}

.yt-play-overlay {
  position: absolute; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s ease; z-index: 3;
}
.yt-play-overlay .svg-icon svg { width: 40px; height: 40px; color: #ffffff !important; filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.9)); transform: scale(0.6); transition: 0.3s ease; }
.yt-card:hover .yt-play-overlay { opacity: 1; }
.yt-card:hover .yt-play-overlay .svg-icon svg { transform: scale(1); }

.yt-info { display: flex; flex-direction: column; gap: 4px; padding: 0 4px; }
.yt-title { font-size: 14px; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; color: #fff; }

/* --- 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: 12px 28px; 
  border-radius: 50px; 
  font-weight: 700; 
  font-size: 14px; 
  border: none; 
  background: #8b5cf6; 
  color: #ffffff; 
  cursor: pointer; 
  transition: all 0.2s ease; 
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); 
}

.load-more-solid:hover { 
  background: #7c3aed; 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
}

.btn-disabled-solid { opacity: 0.5; background: rgba(255,255,255,0.05) !important; color: #a1a1aa !important; box-shadow: none !important; pointer-events: none; }

/* =========================================
   DESKTOP SCALING
========================================= */
@media (min-width: 768px) {
  .hero-slider-wrapper { height: 75vh; max-height: 800px; }
  
  .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; }
  .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, .btn-detail { padding: 12px 32px; font-size: 16px; }
  .btn-play .svg-icon svg, .btn-detail .svg-icon svg { width: 20px; height: 20px; }

  .hero-controls { display: flex; position: absolute; right: 4%; bottom: 15%; z-index: 30; gap: 10px; width: auto; transform: none; padding: 0; }
  .hero-nav-btn { width: 45px; height: 45px; }
  .hero-nav-btn .svg-icon svg { width: 20px; height: 20px; }
  
  .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 .svg-icon svg { width: 18px; height: 18px; }

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

  .ngd-swimlane { gap: 16px; padding: 15px 0 30px 0; margin-top: -15px; }
  
  .ngd-swimlane .ngd-card { width: calc((100% - (16px * 4)) / 5); }
  
  /* ✨ Sizing for YouTube style cards on Desktop ✨ */
  .yt-swimlane .swimlane-yt-card { width: calc((100% - (16px * 3)) / 4); }
  .yt-play-overlay .svg-icon svg { width: 50px; height: 50px; }
  
  .mobile-2-col { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .load-more-solid { padding: 12px 32px; font-size: 14px; }
}

@media (min-width: 1200px) {
  .ngd-swimlane .ngd-card { width: calc((100% - (16px * 5)) / 6); }
  /* ✨ 5 Banners per row on larger desktops ✨ */
  .yt-swimlane .swimlane-yt-card { width: calc((100% - (16px * 4)) / 5); }
}

@media (min-width: 1600px) {
  .home-main-content { padding: 20px 5vw 80px 5vw; max-width: 1650px; }
  .ngd-swimlane .ngd-card { width: calc((100% - (16px * 6)) / 7); }
}

/* ==================================================== */
/* --- 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-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; }
}