* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background: #111;
  color: #fff;
  overflow: hidden;
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  background-size: cover;
  background-position: center;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55); /* затемнение фона */
}

.slide.active {
  opacity: 1;
}

/* === Контент === */
.content {
  position: absolute;
  left: 8%;
  top: 50%;
  transform: translateY(-50%);
  max-width: 420px;
  background: rgba(0, 0, 0, 0.6);
  padding: 25px 30px;
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

.content h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  text-transform: capitalize;
}

.content .year {
  color: #db3737;
  font-weight: bold;
  margin-bottom: 10px;
}

.content p {
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 15px;
}

.watch-btn {
  display: inline-block;
  background: #a00909 ;
  color: white;
  padding: 10px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.watch-btn:hover {
  background: #db3737;
}

/* === Постер === */
.poster {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  transition: transform 0.8s ease;
  
}

.slide.active .poster {
  transform: translateY(-50%) scale(1);
  z-index: 2;
}

/* === Навигация === */
.nav {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
}

.nav-dot.active {
  background: #a00909 ;
}

.logo {
  position: absolute;
  top: 20px;
  left: 25px;
  z-index: 100000;
}

.logo img {
  width: 120px;
}


/* === Адаптив === */
@media (max-width: 768px) {
  .poster {
    position: static;
    width: 200px;
    margin: 20px auto;
    display: block;
    transform: none !important;
    z-index: 2;

  }

  .content {
    position: static;
    background: rgba(0,0,0,0.7);
    text-align: center;
    margin: 20px auto;
    transform: none;

  }

  .content h1 {
    font-size: 1.4rem;
  }
}

/* === Верхний хедер === */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 65px;
  background: #22242a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.right {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.main-header .logo img {
  height: 35px;
}

/* Навигация */
.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #db3737;
}

/* Поиск */
.search-box {
  position: relative;
  flex: 1;
  max-width: 280px;
  margin: 0 40px;
}

.search-box input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid #db3737;
  color: #fff;
  padding: 6px 28px 6px 5px;
  font-size: 0.95rem;
  outline: none;
}

.search-box input::placeholder {
  color: #aaa;
}

.search-box i {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
}

/* Вход / авторизация */
.user-actions {
  display: flex;
  align-items: center;
  flex-direction: row-reverse;
  gap: 10px;
  padding: 20px;
}
.user-actions div {
  transition: color 0.3s;
  cursor: pointer;
}
.user-actions div:hover{
  color: #db3737;
}
.user-actions .login {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.user-actions .login i {
  margin-right: 5px;
  color: #db3737;
}

.user-actions .login:hover {
  color: #db3737;
}

/* === Адаптив === */
@media (max-width: 768px) {
  .main-header {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 15px;
    justify-content: center;
    gap: 10px;
  }

  .nav-links {
    gap: 15px;
  }

  .search-box {
    max-width: 100%;
    order: 3;
    margin: 10px 0 0 0;
  }

  .user-actions {
    order: 2;
  }
}

/* === Страница регистрации === */
.auth-body {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  background: linear-gradient(135deg, #1e1e1e, #2a2a2a);
}

.auth-container {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.auth-container h2 {
  margin-bottom: 25px;
  color: #fff;
  font-size: 1.8rem;
}

.auth-container form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.auth-container input {
  padding: 12px 15px;
  border-radius: 8px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.1);
  color: #fff;
  font-size: 1rem;
}

.auth-container input::placeholder {
  color: #bbb;
}

.auth-container button {
  margin-top: 10px;
  background: #ff6600;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.3s ease;
}

.auth-container button:hover {
  background: #ff8533;
}

#message {
  margin-top: 15px;
  font-weight: 500;
}

