/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  background-color: #141414;
  color: #fff;
  padding-top: 130px; /* Space for fixed header (120px min-height + 10px buffer) */
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 120px;
  background-color: #000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding-bottom: 10px; /* Add padding bottom to separate ad banner */
}

.ad-banner {
  margin-top: 10px;
  width: 100%;
  display: flex;
  justify-content: center;
}

nav {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 1rem 2rem;
}

.logo h1 {
  color: #e50914;
  font-size: 1.5rem;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s;
  padding: 0.5rem 1rem;
  border-radius: 5px;
}

.nav-links a:hover {
  color: #e50914;
}

.search-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.search-container input[type="text"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #333;
  color: #fff;
}

.search-container button {
  padding: 0.5rem 1rem;
  background-color: #e50914;
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-container button:hover {
  background-color: #b0060f;
}

/* Slider Section */
.slider-section {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.slider .nav-links {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 20;
  background-color: rgba(0,0,0,0.5);
  padding: 0.5rem;
  border-radius: 5px;
}

.slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide div {
  position: absolute;
  top: 20px;
  left: 20px;
  color: #fff;
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.watch-button {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e50914;
  color: #fff;
  padding: 0.75rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s;
  z-index: 10;
}

.watch-button:hover {
  background-color: #b0060f;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  padding: 1rem;
  cursor: pointer;
  font-size: 1.5rem;
  z-index: 10;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Content Sections */
.content-section {
  padding: 2rem;
  text-align: center;
  background-color: #141414;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.content-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #fff;
}

.movie-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  width: 100%;
  max-width: 1200px;
  justify-items: center;
}

.movie-item {
  width: 100%;
  max-width: 200px;
}

.dubbed-movies {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .dubbed-movies {
    grid-template-columns: repeat(2, 1fr);
  }
}

.movie-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.movie-item:hover {
  transform: scale(1.05);
}

.movie-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
}

.movie-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.movie-item:hover .overlay {
  opacity: 1;
}

.movie-item h3 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
}

.movie-item p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.watch-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #e50914;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.watch-btn:hover {
  background-color: #b0060f;
}

.download-btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: #28a745;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-left: 0.5rem;
}

.download-btn:hover {
  background-color: #218838;
}

/* TV Show Details */
.tvshow-details {
  position: fixed;
  top: 140px;
  left: 2rem;
  width: 500px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.poster {
  width: 200px;
  height: auto;
  flex-shrink: 0;
}

.poster-section {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tvshow-info {
  flex: 1;
}

.tvshow-info h2 {
  margin-top: 0;
  margin-bottom: 1rem;
  color: #fff;
  font-size: 2rem;
}

.tvshow-info p {
  margin-bottom: 0.5rem;
  color: #ccc;
}

/* TV Show List */
.tvshow-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  width: 100%;
  max-width: 800px;
}

.tvshow-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
  cursor: pointer;
}

.tvshow-item:hover {
  transform: scale(1.05);
}

.tvshow-item img {
  width: 100%;
  height: 300px;
  object-fit: contain;
  display: block;
}

.tvshow-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.3s;
  text-align: center;
}

.tvshow-item:hover .overlay {
  opacity: 1;
}

.tvshow-item h3 {
  margin-bottom: 0.5rem;
  color: #fff;
  font-size: 1.2rem;
}

.tvshow-title {
  color: #e50914;
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.tvshow-item p {
  color: #ccc;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.episodes {
  margin-top: 1rem;
}

.episodes h4 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.episodes ul {
  list-style: none;
  padding: 0;
  max-height: 150px;
  overflow-y: auto;
}

.episodes li {
  margin-bottom: 0.25rem;
}

.episode-link {
  color: #ccc;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.episode-link:hover {
  color: #e50914;
}

.copy-btn {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background-color: #007bff;
  color: #fff;
  text-decoration: none;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-left: 0.5rem;
  cursor: pointer;
  border: none;
}

.copy-btn:hover {
  background-color: #0056b3;
}

.Dubbed-section {
  padding: 2rem;
  text-align: center;
  background-color: #141414;
  color: #fff;
  margin: 0 auto;
  max-width: 1200px;
}

.Dubbed-section .movie-list,
.Dubbed-section .tvshow-list {
  margin-bottom: 0;
  padding-bottom: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.Dubbed-section .movie-list {
  margin-bottom: 1rem;
}

.Dubbed-section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: #fff;
}

/* Login Section */
.login-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #141414;
  color: #fff;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.login-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #fff;
}

.login-form {
  background-color: #333;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: #ccc;
  font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #555;
  border-radius: 5px;
  background-color: #222;
  color: #fff;
  font-size: 1rem;
}

.password-container {
  position: relative;
}

.toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #ccc;
  padding: 0;
}

.eye-icon {
  width: 20px;
  height: 20px;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
  outline: none;
  border-color: #e50914;
}

.login-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #e50914;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.login-btn:hover {
  background-color: #b0060f;
}

.register-link {
  margin-top: 1rem;
  color: #ccc;
}

.register-link a {
  color: #e50914;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* Signup Section */
.signup-section {
  padding: 4rem 2rem;
  text-align: center;
  background-color: #141414;
  color: #fff;
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.signup-section h2 {
  margin-bottom: 2rem;
  font-size: 2.5rem;
  color: #fff;
}

.signup-form {
  background-color: #333;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  width: 100%;
  max-width: 400px;
}

.signup-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: #e50914;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.signup-btn:hover {
  background-color: #b0060f;
}

.login-link {
  margin-top: 1rem;
  color: #ccc;
}

.login-link a {
  color: #e50914;
  text-decoration: none;
}

.login-link a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-left: 20px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #fff;
  margin: 3px 0;
  transition: 0.3s;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  nav {
    flex-direction: column;
    padding: 1rem;
  }

  .hamburger {
    display: flex;
    align-self: flex-start;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    margin-left: 0;
    margin-top: 1rem;
  }

  .nav-links.active {
    display: flex;
  }

  .search-container {
    margin-top: 1rem;
    width: 100%;
  }

  .search-container input {
    width: 100%;
  }

  .slider-section {
    height: 300px;
  }

  .slide div {
    font-size: 1.5rem;
  }

  .watch-button {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
}

/* Multiverse Stones Animation */
.multiverse-stones {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.stone {
  position: absolute;
  border-radius: 50%;
  box-shadow: 0 0 15px 5px;
  opacity: 0.8;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.space-stone {
  width: 40px;
  height: 40px;
  background: radial-gradient(circle at center, #5b5bff, #00008b);
  box-shadow: 0 0 20px 8px #5b5bff;
  animation-name: float1;
  animation-duration: 12s;
  top: 10%;
  left: 15%;
}

.mind-stone {
  width: 35px;
  height: 35px;
  background: radial-gradient(circle at center, #ffff00, #999900);
  box-shadow: 0 0 20px 8px #ffff00;
  animation-name: float2;
  animation-duration: 10s;
  top: 30%;
  left: 70%;
}

.reality-stone {
  width: 45px;
  height: 45px;
  background: radial-gradient(circle at center, #ff0000, #8b0000);
  box-shadow: 0 0 20px 8px #ff0000;
  animation-name: float3;
  animation-duration: 14s;
  top: 60%;
  left: 20%;
}

.power-stone {
  width: 38px;
  height: 38px;
  background: radial-gradient(circle at center, #800080, #4b004b);
  box-shadow: 0 0 20px 8px #800080;
  animation-name: float4;
  animation-duration: 11s;
  top: 75%;
  left: 80%;
}

.time-stone {
  width: 42px;
  height: 42px;
  background: radial-gradient(circle at center, #00ff00, #006400);
  box-shadow: 0 0 20px 8px #00ff00;
  animation-name: float5;
  animation-duration: 13s;
  top: 50%;
  left: 50%;
}

.soul-stone {
  width: 37px;
  height: 37px;
  background: radial-gradient(circle at center, #ff8c00, #cc7000);
  box-shadow: 0 0 20px 8px #ff8c00;
  animation-name: float6;
  animation-duration: 9s;
  top: 20%;
  left: 40%;
}

@keyframes float1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, 15px); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-15px, 20px); }
}

@keyframes float3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(25px, -20px); }
}

@keyframes float4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-20px, -15px); }
}

@keyframes float5 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(15px, 25px); }
}

@keyframes float6 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-25px, 10px); }
}

/* Dragon Flying Animation */
.dragon-flying {
  position: fixed;
  top: 20%;
  left: -200px;
  width: 200px;
  height: 100px;
  pointer-events: none;
  z-index: 1;
  animation: flyAcross 20s linear infinite;
}

.dragon {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 5px #ff6600);
}

.tvshow-container {
  margin-left: 550px;
}

.episode-list ul {
  display: flex;
  flex-direction: column;
  padding: 0;
  margin: 0;
  max-height: 300px;
  overflow-y: auto;
}

.episode-list li {
  list-style: none;
  margin-bottom: 5px;
  cursor: pointer;
  color: #fff;
  padding: 5px;
  background-color: #333;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.episode-list li:hover {
  background-color: #e50914;
}

@keyframes flyAcross {
  0% {
    left: -200px;
    top: 20%;
    transform: scale(0.8) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    top: 30%;
    opacity: 1;
  }
  100% {
    left: 100vw;
    top: 20%;
    transform: scale(0.8) rotate(0deg);
    opacity: 0.8;
  }
}
