/* Complete redesign to match reference site with dark theme and clean layout */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #000;
  color: #fff;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  height: 60px;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: #e50914;
  color: #fff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
}

.logo-text {
  font-size: 20px;
  font-weight: 600;
  color: #fff;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  transition: color 0.3s ease;
}

.action-btn:hover {
  color: #fff;
}

.action-btn i {
  font-size: 16px;
}

/* Dropdown and Overlay Styles */
.category-dropdown,
.search-overlay,
.login-overlay {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 999;
  max-height: 50vh;
  overflow-y: auto;
}

.category-dropdown.active,
.search-overlay.active,
.login-overlay.active {
  transform: translateY(0);
  opacity: 1;
}

.category-content,
.search-content,
.login-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 30px 20px;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
}

.category-item {
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  text-align: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.category-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.search-bar {
  display: flex;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}

.search-bar input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn {
  padding: 15px 20px;
  background: #e50914;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

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

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 400px;
  margin: 0 auto;
}

.login-form input {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
}

.login-form input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.login-btn {
  padding: 15px 20px;
  background: #e50914;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background: #f40612;
}

.login-options {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.login-options a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
}

.login-options a:hover {
  color: #fff;
}

/* Main Content */
.main-content {
  margin-top: 60px;
  padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
  height: 40vh;
  min-height: 300px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.hero-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  position: relative;
  z-index: 3;
}

.hero-text {
  max-width: 600px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.play-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #7a2ab8;
  color: #fff;
  border: none;
  padding: 15px 30px;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.play-button:hover {
  background: #f40612;
  transform: translateY(-2px);
}

.play-button i {
  font-size: 16px;
}

.hero-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #fff;
  transform: scale(1.2);
}

/* Content Sections */
.content-section {
  padding: 40px 20px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0px;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.view-all {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.view-all:hover {
  color: #fff;
}

.movies-scroll {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 0;
}

.movie-item {
  flex-shrink: 0;
  width: 150px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.movie-item:hover {
  transform: scale(1.05);
  opacity: 0.8;
}

.movie-poster {
  width: 100%;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #222;
  position: relative; /* Added position relative for overlay positioning */
}

.movie-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Explore Page Styles */
.explore-main {
  padding-top: 20px;
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.genre-card {
  position: relative;
  height: 120px;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
}

.genre-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.8), rgba(229, 9, 20, 0.4));
  z-index: 1;
}

.genre-card.romance::before {
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.8), rgba(255, 20, 147, 0.4));
}

.genre-card.action::before {
  background: linear-gradient(135deg, rgba(255, 69, 0, 0.8), rgba(255, 69, 0, 0.4));
}

.genre-card.thriller::before {
  background: linear-gradient(135deg, rgba(75, 0, 130, 0.8), rgba(75, 0, 130, 0.4));
}

.genre-card.drama::before {
  background: linear-gradient(135deg, rgba(0, 100, 0, 0.8), rgba(0, 100, 0, 0.4));
}

.genre-card.comedy::before {
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.8), rgba(255, 215, 0, 0.4));
}

.genre-card.fantasy::before {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.8), rgba(138, 43, 226, 0.4));
}

.genre-card h3,
.genre-card p {
  position: relative;
  z-index: 2;
  margin: 0;
}

.genre-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.genre-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.genre-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.genre-overlay {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  opacity: 0.7;
}

.genre-overlay i {
  font-size: 24px;
  color: #fff;
}

.trending-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.trending-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
  position: relative;
}

.trending-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.trending-item img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.trending-info {
  flex: 1;
}

.trending-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.trending-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.trending-rank {
  position: absolute;
  top: -5px;
  left: -5px;
  background: #e50914;
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
}

.trending-play {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid #e50914;
  color: #e50914;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.trending-play:hover {
  background: #e50914;
  color: #fff;
}

/* Playlist Page Styles */
.playlist-main {
  padding-top: 20px;
}

.playlist-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.1);
  padding: 4px 12px;
  border-radius: 12px;
}

.playlist-items {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 15px;
  transition: all 0.3s ease;
}

.playlist-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.playlist-poster {
  width: 60px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.playlist-info {
  flex: 1;
}

.playlist-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.playlist-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 3px;
}

.added-date {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.playlist-actions {
  display: flex;
  gap: 10px;
}

.play-btn,
.remove-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-btn {
  background: rgba(229, 9, 20, 0.2);
  border: 1px solid #e50914;
  color: #e50914;
}

.play-btn:hover {
  background: #e50914;
  color: #fff;
}

.remove-btn {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.remove-btn:hover {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

/* Profile Page Styles */
.profile-main {
  padding-top: 20px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #51e9e4, #7a2ab8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
}

.profile-details h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 5px;
}

.membership-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffd700;
  font-size: 0.9rem;
  font-weight: 500;
}

.membership-status i {
  font-size: 16px;
}

.profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #e50914;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.profile-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.menu-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #55fcf20f;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #51e9e4;
}

.menu-content {
  flex: 1;
}

.menu-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.menu-subtitle {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

.menu-arrow {
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
}

/* Bottom Navigation */
.bottom-navigation {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  z-index: 1000;
  height: 70px;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 12px;
  min-width: 60px;
}

.nav-item:hover,
.nav-item.active {
  color: #51e9e4;
}

.nav-item i {
  font-size: 20px;
  margin-bottom: 4px;
}

.nav-item span {
  font-size: 11px;
  font-weight: 500;
  text-transform: capitalize;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .header-actions {
    gap: 15px;
  }

  .action-btn span {
    display: none;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  .content-section {
    padding: 10px 15px;
  }

  .section-title {
    font-size: 1.2rem;
  }

  .movie-item {
    width: 120px;
  }

  .movie-poster {
    height: 160px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .genre-card {
    height: 100px;
    padding: 15px;
  }

  .genre-card h3 {
    font-size: 1rem;
  }

  .genre-card p {
    font-size: 0.8rem;
  }

  .profile-header {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }

  .profile-avatar {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .profile-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }

  .stat-item {
    padding: 15px 10px;
  }

  .stat-number {
    font-size: 1.4rem;
  }

  .stat-label {
    font-size: 0.8rem;
  }

  .menu-item {
    padding: 15px;
  }

  .menu-icon {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .play-button {
    padding: 6px 15px;
    font-size: 1rem;
  }

  .movie-item {
    width: 100px;
  }

  .movie-poster {
    height: 140px;
  }

  .trending-item,
  .playlist-item {
    padding: 12px;
  }

  .profile-stats {
    gap: 8px;
  }

  .stat-item {
    padding: 12px 8px;
  }
}
