/* === Reset & Global Styles === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: #0f0f0f;
  color: #fff;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* === Nav & Sidebar === */
.sidenav {
  background: #1a1a1a;
  padding: 2rem 1rem;
  min-height: 100vh;
  width: 220px;
  position: fixed;
  left: 0;
  top: 0;
  z-index: 10;
}

.menu_title {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: #ffffff;
}

.menu_ul li {
  margin-bottom: 1.2rem;
}

.menu_ul li a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #a855f7;
  font-weight: 500;
  font-size: 0.95rem;
}

.hamburger,
.arrow_left {
  margin-bottom: 1rem;
  cursor: pointer;
}

/* === Header/NavContainer === */
.navContainer {
  background-color: #121212;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 9;
}

.search {
  padding: 0.6rem 1rem;
  border-radius: 5px;
  border: none;
  background: #252525;
  color: #fff;
  width: 220px;
}

/* === Sections === */
.section_one {
  margin-left: 230px;
  padding: 2rem;
}

.section_two2 {
  margin-top: 1rem;
}

.movie_details {
  margin: 2rem 0;
}

.section_story {
  margin: 2rem 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === Posters === */
.posterbig {
  width: 100%;
  height: 420px;
  background-color: #2e2e2e;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  margin-bottom: 2rem;
  position: relative;
}

.gradient {
  position: absolute;
  bottom: 0;
  height: 50%;
  width: 100%;
  background: linear-gradient(to top, #0f0f0f, transparent);
}

/* === Arrows === */
.arrowbtn {
  background: #1e1e1e;
  padding: 0.5rem;
  border-radius: 50%;
  margin: 0 10px;
  cursor: pointer;
  fill: #ffffff;
  transition: background 0.2s ease;
}

.arrowbtn:hover {
  background: #a855f7;
}

/* === Cast, Similar, Recommendations === */
.Now_playing_movies_container {
  margin-top: 2.5rem;
}

.Now_playing_movies_container_title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #ffffff;
  font-weight: 600;
}

.Casdiv,
.Similar_movies_div,
.recommendation_movies_div,
.Now_playing_movies_div {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
}

.Casdiv::-webkit-scrollbar,
.Similar_movies_div::-webkit-scrollbar,
.recommendation_movies_div::-webkit-scrollbar {
  display: none;
}

/* === Movie Card (Generic) === */
.movie-card,
.cast-card {
  flex: 0 0 auto;
  width: 140px;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
}

.movie-card:hover,
.cast-card:hover {
  transform: scale(1.05);
}

.movie-card img,
.cast-card img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.movie-card .title,
.cast-card .title {
  font-size: 0.9rem;
  margin: 0.5rem;
  text-align: center;
  color: #ffffff;
}

/* === Trailer Section === */
.Trailer_section {
  margin-top: 2rem;
  position: relative;
}

.Trailer_section iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 10px;
}

/* === Light/Dark Mode Placeholder === */
.light_darkmode {
  width: 30px;
  height: 30px;
  background: #a855f7;
  border-radius: 50%;
}
