@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Bebas Neue', Arial, sans-serif;
  background: #000;
  color: #fff;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #111;
  box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

.navbar img {
  height: 50px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #e50914;
}

.search-bar {
  padding: 7px 10px;
  border-radius: 5px;
  border: none;
  background: #333;
  color: #fff;
}

/* Banner */
.banner {
  height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  position: relative;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000 20%, transparent 80%);
  z-index: 1;
}

.banner h1 {
  position: relative;
  z-index: 2;
  font-size: 3em;
  color: #fff;
  text-shadow: 2px 2px 4px #000;
}

/* Rows */
.row {
  margin: 30px 20px;
}

.row h2 {
  margin-bottom: 15px;
  font-size: 2em;
  color: #e50914;
}

/* Posters */
.list {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
}

.list img {
  width: 180px;
  margin-right: 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.4s ease, box-shadow 0.3s;
}

.list img:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(255, 0, 0, 0.5);
}

/* Updated Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.85);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  transition: opacity 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.modal.show {
  display: flex;
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #111;
  padding: 2rem;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  border-radius: 12px;
  max-width: 90%;
  max-height: 90%;
  overflow-y: auto;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  position: relative;
}

.modal-content img {
  max-width: 220px;
  border-radius: 8px;
}

.modal-left, .modal-right {
  flex: 1;
}

.modal-right iframe {
  width: 100%;
  height: 360px;
  border: none;
  border-radius: 8px;
}

.modal-text {
  font-size: 16px;
}

.modal-text h2 {
  color: #e50914;
}

.modal-text p {
  line-height: 1.6;
}

.stars {
  color: gold;
  margin: 10px 0;
  font-size: 1.2em;
}

.close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 2rem;
  color: red;
  cursor: pointer;
}

@media (max-width: 768px) {
  .modal-content {
    flex-direction: column;
    align-items: center;
  }

  .modal-right iframe {
    height: 240px;
  }
}

/* Search Modal */
.search-modal {
  display: none;
  flex-direction: column;
  padding: 20px;
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.search-modal input {
  padding: 10px;
  font-size: 18px;
  margin: 20px 0;
  background: #222;
  border: none;
  color: #fff;
  border-radius: 6px;
}

.results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.results img {
  width: 120px;
  border-radius: 8px;
  transition: transform 0.3s;
}

.results img:hover {
  transform: scale(1.05);
}

/* Footer */
.footer {
  padding: 1rem;
  text-align: center;
  background-color: #111;
  margin-top: 2rem;
  border-top: 2px solid #e50914;
}

.footer-links a {
  color: #bbb;
  margin: 0 1rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}
