:root {
  --bg-color: #0f0f13;
  --text-color: #ffffff;
  --accent-color: #e50914;
  /* Netflix-like red */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --font-main: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Language Toggle */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.lang-btn:hover {
  background: white;
  color: black;
}

/* Typography */
h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Screen Layouts */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.screen.active {
  display: flex;
  opacity: 1;
}

/* Screen 1: Landing */
#screen-1 {
  background: radial-gradient(circle at center, #1a1a2e 0%, #0f0f13 100%);
}

.logo-container {
  margin-bottom: 3rem;
  text-align: center;
  animation: fadeInDown 1s ease;
}

.logo-text {
  font-size: 4rem;
  background: linear-gradient(45deg, #ff4b1f, #ff9068);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(255, 75, 31, 0.3);
}

.tagline {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
}

.input-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeInUp 1s ease 0.2s backwards;
}

.keyword-input {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.3s ease;
  width: 200px;
  text-align: center;
}

.keyword-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.3);
  background: rgba(255, 255, 255, 0.1);
}

.cta-button {
  background: linear-gradient(45deg, #e50914, #b20710);
  color: white;
  border: none;
  padding: 1rem 3rem;
  font-size: 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
  animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(229, 9, 20, 0.4);
}

/* Screen 2: Recommendations */
#screen-2 {
  justify-content: flex-start;
  padding-top: 4rem;
}

.results-header {
  margin-bottom: 2rem;
  text-align: center;
}

.movie-list {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.movie-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s;
  animation: slideIn 0.5s ease backwards;
}

.movie-card:hover {
  transform: scale(1.02);
  background: rgba(255, 255, 255, 0.08);
}

.movie-poster {
  width: 100px;
  height: 150px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.movie-info {
  flex: 1;
}

.movie-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.movie-meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

.movie-plot {
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem;
}

.movie-tags {
  display: flex;
  gap: 0.5rem;
}

.tag {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
}

.back-button {
  margin-top: 2rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.back-button:hover {
  background: white;
  color: black;
}

.loading-trigger {
  height: 50px;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Mobile Responsive */
@media (max-width: 600px) {
  .logo-text {
    font-size: 2.5rem;
  }

  .input-container {
    flex-direction: column;
  }

  .keyword-input {
    width: 100%;
  }

  .movie-card {
    flex-direction: column;
  }

  .movie-poster {
    width: 100%;
    height: 200px;
  }
}