/* ============ ALAP BODY ============ */
body {
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
  background: #e0f7fa; /* Világos kék háttér */
  color: #004d6f; /* Sötétkék szöveg */
  text-align: center;
  box-sizing: border-box;
}

/* ============ FELSŐ MENÜ ============ */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #007bb5; /* Sötétkék háttér */
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Finom árnyék */
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  color: #ffffff; /* Fehér link szín */
  text-decoration: none;
  padding: 15px;
  display: inline-block;
  transition: 0.3s;
  font-weight: bold;
}

nav ul li a:hover,
nav ul li a.active {
  color: #fff;
  background: #004d6f; /* Sötétkék háttér */
  border-radius: 5px;
}

/* ============ KERESŐ ============ */
#search-bar {
  margin-top: 20px;
  padding: 10px;
  width: 80%;
  max-width: 400px;
  font-size: 1.2em;
  border-radius: 5px;
  border: 1px solid #007bb5; /* Kék szín a kereső szegélyén */
  background: #fff; /* Fehér háttér */
  color: #004d6f; /* Sötétkék szöveg */
}

#search-bar:focus {
  outline: none;
  border-color: #004d6f; /* Sötétkék border a fókuszált keresőnél */
}

/* ============ FILMEK GRID LISTA ============ */
#movie-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1400px;
  margin: 40px auto;
}

/* Film kártya */
.movie-card {
  position: relative;
  width: 100%;
  height: 360px;
  background: #fff; /* Fehér háttér */
  border-radius: 10px;
  cursor: pointer;
  overflow: hidden;
  transition: 0.3s;
  border: 2px solid transparent;
  box-sizing: border-box;
}

.movie-card:hover {
  transform: scale(1.03);
  border: 2px solid #007bb5; /* Kék szín a hover border */
}

.movie-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.movie-card:hover img {
  transform: scale(1.1);
}

.movie-card h3 {
  position: absolute;
  bottom: 15px;
  left: 10px;
  color: white;
  font-size: 1.2em;
  background: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
}

/* ============ RESPONSIVE ============ */
@media(max-width: 1200px) {
  #movie-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media(max-width: 900px) {
  #movie-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media(max-width: 600px) {
  #movie-list {
    grid-template-columns: 1fr;
  }
}

/* ============ FILM / SOROZAT LEJÁTSZÓ OLDAL ============ */
.video-bg-overlay {
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(91, 130, 153, 0.85);
  z-index: 900;
}

.movie-player-container {
  position: relative;
  width: 80%;
  max-width: 1200px;
  margin: 80px auto;
  padding: 20px;
  background: #fff; /* Fehér háttér */
  border-radius: 10px;
  z-index: 999;
  box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.1); /* Finom árnyék */
}

.movie-title {
  font-size: 2em;
  margin-bottom: 10px;
  color: #007bb5; /* Kék szín */
  font-weight: bold;
}

/* ÚJ: Sorozat választó UI */
.episode-select {
  margin: 15px auto;
  display: flex;
  gap: 15px;
  justify-content: center;
}

.episode-select select {
  padding: 10px;
  background: #fff; /* Fehér háttér */
  border: 1px solid #007bb5; /* Kék szegély */
  border-radius: 5px;
  color: #004d6f; /* Sötétkék szöveg */
  font-size: 1em;
  cursor: pointer;
}

/* Videó */
.movie-player {
  width: 100%;
  height: 65vh;
  border-radius: 10px;
  background: black;
  outline: none;
  margin-top: 15px;
}

/* ============ VISSZA GOMB ============ */
.back-button {
  margin-top: 20px;
  display: inline-block;
  padding: 10px 20px;
  background: #007bb5; /* Kék háttér */
  color: white;
  border-radius: 5px;
  text-decoration: none;
  transition: 0.3s;
  font-weight: bold;
}

.back-button:hover {
  background: #004d6f; /* Sötétkék háttér a hover-re */
  color: white;
}
