/* --- CUSTOM LANDING BACKGROUND --- */
.landing-wrapper {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-image: url('../media/landing/img1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay to make text readable (Updated to match #09090B) */
.landing-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9, 9, 11, 0.6) 0%, rgba(9, 9, 11, 0.98) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  z-index: 0;
}

/* --- CUSTOM LANDING HEADER --- */
.landing-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  padding: 20px 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
}

/* Updated Premium Logo (No Card, Drop Shadow Glow, Larger) */
.landing-logo {
  display: flex;
  align-items: center;
  pointer-events: none; 
  user-select: none;
}

.landing-logo img {
  height: 65px; 
  width: auto;
  max-width: 200px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 0 15px rgba(147, 51, 234, 0.8)); 
}

/* Navigation & Buttons */
.landing-nav {
  display: flex;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 5px;
  backdrop-filter: var(--glass-blur);
}

.nav-pill {
  padding: 10px 20px;
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
  border-radius: 40px;
  transition: 0.3s;
}

.nav-pill:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.enter-btn {
  background: #fff;
  color: #000;
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: 0.2s;
}

.enter-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* --- MAIN HERO SECTION --- */
.landing-main {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  z-index: 1;
  padding: 80px 20px 40px 20px;
}

.gradient-title {
  font-size: clamp(50px, 8vw, 110px);
  font-weight: 900;
  margin: 0;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -2px;
  line-height: 1.1;
}

.subtitle {
  color: var(--text-dim);
  font-size: clamp(14px, 2vw, 17px);
  margin-top: 15px;
  margin-bottom: 35px;
  max-width: 620px;
  line-height: 1.6;
}

/* Search Container */
.search-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin-bottom: 35px;
}

.search-bar {
  width: 100%;
  padding: 18px 25px;
  padding-right: 60px; 
  border-radius: 16px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  backdrop-filter: var(--glass-blur);
  transition: 0.3s;
}

.search-bar:focus {
  outline: none;
  border-color: var(--primary);
  background: rgba(9, 9, 11, 0.8); /* Updated dark background */
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.25);
}

.search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: #000;
  border: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.2s;
}

.search-btn:hover {
  background: #fff;
}

.watch-btn {
  background: var(--accent);
  color: #000;
  padding: 16px 36px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: 0.3s;
  border: none;
  cursor: pointer;
  margin-bottom: 50px;
}

.watch-btn:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(216, 180, 254, 0.3);
}

/* --- DYNAMIC TRENDING SLIDER SECTION --- */
.trending-section {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 4%;
  text-align: left;
  box-sizing: border-box;
}

.trending-heading {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 20px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.trending-heading span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

.trending-slider {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-top: 15px; 
  padding-bottom: 35px; 
  scrollbar-width: none; 
}

.trending-slider::-webkit-scrollbar {
  display: none;
}

.trending-card {
  flex: 0 0 calc(10% - 12px); 
  min-width: 155px;
  aspect-ratio: 2/3;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* REDUCED GLOW EFFECT */
.trending-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary-hover);
  /* Smoother, reduced shadow for realistic lighting */
  box-shadow: 0 10px 20px rgba(147, 51, 234, 0.25), 0 0 10px rgba(147, 51, 234, 0.1);
}

.trending-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0; 
  transition: opacity 0.4s ease;
}

/* Subtler Shimmer Loading Animation */
.shimmer-wrapper {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.01) 25%, rgba(255,255,255,0.06) 50%, rgba(255,255,255,0.01) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  z-index: 3;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Animated Play Button Overlay */
.play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.4); /* Updated dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  z-index: 4;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.play-overlay .material-icons-round {
  font-size: 48px;
  color: #fff;
  filter: drop-shadow(0 0 15px rgba(147, 51, 234, 0.9));
  transform: scale(0.6);
  transition: transform 0.3s ease;
}

.trending-card:hover .play-overlay {
  opacity: 1;
}

.trending-card:hover .play-overlay .material-icons-round {
  transform: scale(1);
}

/* Rank Badge Overlay */
.rank-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 9, 11, 0.75); /* Updated dark background */
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 8px;
  z-index: 2;
}

.card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(9, 9, 11, 0.95) 0%, rgba(9, 9, 11, 0.4) 60%, transparent 100%); /* Updated gradient */
  padding: 12px;
  z-index: 2;
}

.card-info h4 {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .trending-card { flex: 0 0 180px; }
}
@media (max-width: 768px) {
  .landing-nav { display: none; }
  .landing-header { padding: 15px 20px; }
  .enter-btn { padding: 8px 16px; font-size: 13px; }
  .trending-card { flex: 0 0 145px; }
  .trending-heading { font-size: 18px; }
  .landing-logo img { height: 50px; } 
}