@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Neon Blue Color Palette */
  --neon-cyan: #00d9ff;
  --neon-blue: #0066ff;
  --electric-blue: #0099ff;
  --deep-blue: #001a33;
  --space-dark: #0a0e1a;
  --space-darker: #050810;
  --card-bg: rgba(21, 27, 46, 0.7);
  --card-border: rgba(0, 217, 255, 0.2);
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
  --gradient-dark: linear-gradient(180deg, var(--space-dark), var(--space-darker));
  --gradient-overlay: linear-gradient(0deg, rgba(10, 14, 26, 0.9), transparent);
  
  /* Shadows */
  --glow-cyan: 0 0 20px rgba(0, 217, 255, 0.5);
  --glow-blue: 0 0 30px rgba(0, 102, 255, 0.4);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
  
  /* Typography */
  --font-main: 'Outfit', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background: var(--gradient-dark);
  color: #ffffff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--space-dark);
  overflow: hidden;
}

.animated-bg::before {
  content: '';
  position: absolute;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-50px, -50px) rotate(180deg); }
}

/* Screen Container */
.screen {
  display: none;
  min-height: 100vh;
  padding: 20px;
  animation: fadeIn 0.5s ease-in-out;
}

.screen.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Glass Card */
.glass-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: all 0.3s ease;
}

.glass-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan), var(--shadow-card);
  transform: translateY(-5px);
}

/* Buttons */
.btn {
  padding: 14px 32px;
  border: none;
  border-radius: 8px;
  font-family: var(--font-main);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--glow-cyan);
}

.btn-primary:hover {
  box-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--neon-cyan);
  border: 2px solid var(--neon-cyan);
}

.btn-secondary:hover {
  background: var(--neon-cyan);
  color: var(--space-dark);
}

/* Input Fields */
.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  color: var(--neon-cyan);
  font-weight: 500;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.input-group input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 217, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-family: var(--font-main);
  font-size: 16px;
  transition: all 0.3s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Logo */
.logo {
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-shadow: var(--glow-cyan);
}

/* Login/Register Screen */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.auth-box {
  width: 100%;
  max-width: 450px;
}

.auth-box h2 {
  text-align: center;
  margin-bottom: 30px;
  color: white;
  font-size: 28px;
}

.auth-toggle {
  text-align: center;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.auth-toggle a {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.auth-toggle a:hover {
  text-shadow: var(--glow-cyan);
}

/* Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(10, 14, 26, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 217, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .logo {
  font-size: 32px;
  margin: 0;
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 16px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 15px;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--neon-cyan);
  cursor: pointer;
  transition: all 0.3s ease;
}

.user-avatar:hover {
  box-shadow: var(--glow-cyan);
  transform: scale(1.1);
}

/* Hero Section */
.hero {
  position: relative;
  height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 60px;
  margin-bottom: 40px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(to right, rgba(10, 14, 26, 0.9), transparent),
              url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><rect fill="%23151b2e" width="1200" height="600"/></svg>');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 600px;
  z-index: 2;
}

.hero-content h1 {
  font-size: 56px;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 15px;
}

/* Content Sections */
.content-section {
  margin-bottom: 50px;
  padding: 0 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.section-header h2 {
  font-size: 28px;
  font-weight: 700;
}

.view-all {
  color: var(--neon-cyan);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-all:hover {
  text-shadow: var(--glow-cyan);
}

/* Content Grid */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.content-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  aspect-ratio: 2/3;
  background: var(--card-bg);
}

.content-card:hover {
  transform: scale(1.05);
  box-shadow: var(--glow-cyan);
}

.content-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.content-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: var(--gradient-overlay);
  opacity: 0;
  transition: all 0.3s ease;
}

.content-card:hover .overlay {
  opacity: 1;
}

.content-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
}

.content-card .rating {
  color: var(--neon-cyan);
  font-size: 14px;
}

/* Profile Selection */
.profile-selection {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  text-align: center;
}

.profile-selection h1 {
  font-size: 48px;
  margin-bottom: 50px;
}

.profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
  max-width: 800px;
  margin-bottom: 40px;
}

.profile-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.profile-item:hover {
  transform: scale(1.1);
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 12px;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  font-weight: 800;
  margin-bottom: 15px;
}

.profile-item:hover .profile-avatar {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.profile-name {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.add-profile {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* Search Screen */
.search-container {
  padding: 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.search-box {
  margin-bottom: 40px;
}

.search-input {
  width: 100%;
  padding: 20px 24px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 12px;
  color: white;
  font-family: var(--font-main);
  font-size: 20px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.search-results h2 {
  margin-bottom: 25px;
  font-size: 24px;
}

/* Subscription Screen */
.subscription-container {
  padding: 60px 40px;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.subscription-container h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.subscription-container .subtitle {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 60px;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.pricing-card {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 2px solid var(--card-border);
  border-radius: 16px;
  padding: 40px 30px;
  transition: all 0.3s ease;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

.pricing-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: var(--glow-cyan);
  transform: scale(1.05);
}

.plan-badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.plan-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--neon-cyan);
}

.plan-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 10px;
}

.plan-price span {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.6);
}

.plan-features {
  list-style: none;
  margin: 30px 0;
  text-align: left;
}

.plan-features li {
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
}

.plan-features li:before {
  content: '✓';
  color: var(--neon-cyan);
  font-weight: 700;
  margin-right: 10px;
}

/* Video Player */
.player-container {
  background: black;
  min-height: 100vh;
}

.video-wrapper {
  position: relative;
  width: 100%;
  height: 70vh;
  background: #000;
}

.video-player {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(255, 255, 255, 0.5);
}

.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  display: flex;
  align-items: center;
  gap: 15px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.control-btn:hover {
  color: var(--neon-cyan);
  text-shadow: var(--glow-cyan);
}

.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  cursor: pointer;
  position: relative;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: 3px;
  width: 30%;
}

.video-info {
  padding: 40px;
}

.video-info h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.video-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.7);
}

.video-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 30px;
}

.episodes-section h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.episode-card {
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  gap: 15px;
  padding: 15px;
}

.episode-card:hover {
  border: 1px solid var(--neon-cyan);
  box-shadow: var(--glow-cyan);
}

.episode-thumb {
  width: 120px;
  height: 70px;
  background: var(--gradient-primary);
  border-radius: 8px;
  flex-shrink: 0;
}

.episode-info h4 {
  font-size: 16px;
  margin-bottom: 5px;
}

.episode-info p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* User Profile Screen */
.profile-container {
  padding: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 50px;
  padding: 40px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--card-border);
}

.profile-header .user-avatar {
  width: 120px;
  height: 120px;
  border: 3px solid var(--neon-cyan);
}

.profile-info h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.profile-info .subscription-status {
  color: var(--neon-cyan);
  font-weight: 600;
  font-size: 18px;
}

.profile-section {
  margin-bottom: 40px;
}

.profile-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: var(--neon-cyan);
}

.settings-list {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--card-border);
  overflow: hidden;
}

.setting-item {
  padding: 20px 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-item:hover {
  background: rgba(0, 217, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    padding: 15px 20px;
  }
  
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }
  
  .hero {
    height: 50vh;
    padding: 30px;
  }
  
  .hero-content h1 {
    font-size: 36px;
  }
  
  .content-section {
    padding: 0 20px;
  }
  
  .content-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.featured {
    transform: scale(1);
  }
  
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
  
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .logo {
    font-size: 36px;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(0, 217, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--neon-cyan);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Utility Classes */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none !important; }
