
/* ========== FIXED CARD STYLES - NO OVERLAP ========== */

/* Grid layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Card container */
.card {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
}

/* Card image */
.card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Card title - BOTTOM ALIGNED, PROPER BACKGROUND */
.card-title {
  padding: 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.8) 60%, rgba(0,0,0,0.4) 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 55px;
  max-height: 65px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  word-break: break-word;
  position: relative;
  z-index: 2;
}

/* Continue Watching Row */
.row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 16px 24px;
  scrollbar-width: thin;
}

.row .card {
  min-width: 240px;
  flex-shrink: 0;
}

.row .card .card-title {
  font-size: 12px;
  padding: 10px 8px;
  min-height: 50px;
}

/* Progress bar - properly positioned */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 3;
}

.progress-fill {
  height: 100%;
  background: var(--primary);
  transition: width 0.3s ease;
}

/* Hero section - fix spacing */
.hero {
  height: 55vh;
  min-height: 450px;
  position: relative;
  margin-bottom: 20px;
}

.hero-overlay {
  padding: 40px 48px;
  background: linear-gradient(90deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.5) 50%, transparent 100%);
  border-left: 4px solid var(--primary);
  max-width: 750px;
}

#hero-title {
  font-size: 38px;
  line-height: 1.3;
  margin-bottom: 16px;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 24px;
  line-height: 1.4;
  font-weight: 500;
  border-left: 3px solid var(--primary);
  padding-left: 16px;
}

/* Section headers */
.section {
  font-size: 22px;
  padding: 20px 24px 8px;
  margin-top: 16px;
  font-weight: 700;
  border-left: 4px solid var(--primary);
  margin-left: 24px;
}

/* Header styles */
.header {
  padding: 16px 32px;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid rgba(241, 196, 15, 0.3);
}

.header h1 {
  font-size: 28px;
  letter-spacing: 3px;
  background: linear-gradient(135deg, var(--primary) 0%, #fff 50%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  margin-bottom: 4px;
}

.header-tagline {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  border-left: 2px solid var(--primary);
  padding-left: 12px;
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 768px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
    padding: 16px;
  }
  
  .row .card {
    min-width: 180px;
  }
  
  .card-title {
    font-size: 11px;
    padding: 8px 6px;
    min-height: 45px;
  }
  
  .hero {
    height: 45vh;
    min-height: 350px;
  }
  
  .hero-overlay {
    padding: 24px;
  }
  
  #hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .header h1 {
    font-size: 22px;
  }
  
  .header-tagline {
    font-size: 11px;
  }
  
  .section {
    font-size: 18px;
    margin-left: 16px;
    padding: 16px 16px 4px;
  }
}
