* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #141414;
  color: white;
  font-family: "Arial", sans-serif;
  line-height: 1.6;
}

/* Hero Banner - Optimized */
.hero-banner {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background: #000;
}

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

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 2rem 4%;
  z-index: 2;
}

.hero-info h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  color: #fff;
}

.hero-info p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  max-width: 600px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

.hero-rating {
  font-size: 1.1rem;
  color: #ffd700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-meta {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  margin-top: 1.5rem;
}

.hero-button {
  display: inline-block;
  background: linear-gradient(135deg, #e50914, #b8070f);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  margin-right: 10px;
  transition: transform 0.2s ease;
  text-shadow: none;
}

.hero-button:hover {
  transform: translateY(-2px);
}

/* Main Content Area */
.main-content {
  padding: 2rem 4%;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
  color: #e50914;
}

/* Category Grid System - Simplified */
.categories-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  max-width: 1200px;
  margin: 0 auto;
}

/* Category Cards - Simplified */
.category-card {
  background: #1f1f1f;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: 1px solid #333;
  overflow: hidden;
  height: 300px;
  display: flex;
  flex-direction: column;
}

.category-card:hover {
  transform: translateY(-5px);
  border-color: #e50914;
}

/* Category Name - Simplified */
.category-name {
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: #e50914;
  padding: 0.8rem;
  margin: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Single Poster Display */
.poster-display {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.poster-display img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.2s ease;
}

.category-card:hover .poster-display img {
  transform: scale(1.05);
}

/* Loading Animation - Simplified */
.loading-placeholder {
  background: #2a2a2a;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Hero Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: #e50914;
  transition: width 0.1s linear;
  z-index: 3;
}

/* Adults Category Styles */
.adults-category {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff4757, #ff3838);
  position: relative;
}

.adults-category::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.1) 10px,
    rgba(255, 255, 255, 0.1) 20px
  );
}

.adults-logo {
  text-align: center;
  z-index: 2;
  position: relative;
}

.adults-text {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  display: block;
  margin-bottom: 0.3rem;
}

.adults-warning {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.6);
}

/* Responsive Design - Simplified */
@media (max-width: 1200px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
  }

  .category-card {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .categories-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }

  .main-content {
    padding: 1.5rem 2%;
  }

  .hero-info h1 {
    font-size: 2rem;
  }

  .hero-info p {
    font-size: 1rem;
  }

  .category-card {
    height: 250px;
  }

  .category-name {
    font-size: 0.9rem;
    height: 45px;
    padding: 0.6rem;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-banner {
    height: 50vh;
  }

  .hero-info h1 {
    font-size: 1.5rem;
  }

  .category-card {
    height: 220px;
  }

  .category-name {
    font-size: 0.8rem;
    height: 40px;
  }
}

/* Image Optimization */
img {
  image-rendering: auto;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Remove unnecessary animations and effects */
.category-card::before {
  display: none;
}

/* Optimize transitions */
* {
  transition-duration: 0.2s !important;
}
