* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #0f1115;
  color: #eaeaea;
  line-height: 1.5;
}

/* =====================
   NAVBAR
===================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(20, 22, 30, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar img {
  height: 36px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  color: #eaeaea;
  text-decoration: none;
  font-weight: 500;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
}

/* =====================
   SEARCH
===================== */
.search-bar {
  padding: 8px 12px;
  border-radius: 10px;
  border: none;
  outline: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.search-bar::placeholder {
  color: rgba(255,255,255,0.5);
}

/* =====================
   BANNER
===================== */
.banner {
  height: 55vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding: 30px;
  position: relative;
}

.banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(15,17,21,1),
    rgba(15,17,21,0.3)
  );
}

.banner h1 {
  position: relative;
  font-size: 36px;
  font-weight: 600;
  max-width: 60%;
}

/* =====================
   ROWS
===================== */
.row {
  margin: 30px 20px;
}

.row h2 {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 600;
}

/* =====================
   MOVIE LIST
===================== */
.list {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.list::-webkit-scrollbar {
  height: 6px;
}

.list::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
}

.list img {
  width: 160px;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.list img:hover {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 20px 50px rgba(0,0,0,0.8);
}

/* =====================
   MODAL
===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 30;
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background: linear-gradient(180deg, #1b1f2a, #12141a);
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 18px;
  padding: 20px;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 90px rgba(0,0,0,0.9);
}

/* =====================
   MOVIE INFO (ELEGANT)
===================== */
.modal-body {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
}

#modal-image {
  width: 110px;
  border-radius: 10px;
}

.modal-text {
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(10px);
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 13px;
}

#modal-title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
}

.stars {
  color: gold;
  font-size: 12px;
  margin-bottom: 6px;
}

#modal-description {
  max-height: 60px;
  overflow: hidden;
  opacity: 0.85;
}

/* =====================
   SERVER SELECT
===================== */
.server-selector {
  margin: 10px 0;
  text-align: left;
}

.server-selector select {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: none;
  padding: 8px 10px;
  border-radius: 10px;
}

/* =====================
   IFRAME
===================== */
#modal-video {
  border-radius: 14px;
  margin-top: 8px;
}

/* =====================
   CLOSE
===================== */
.close {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 26px;
  cursor: pointer;
}

/* =====================
   SEARCH MODAL
===================== */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(10,12,16,0.95);
  display: none;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 40;
}

.search-modal input {
  width: 320px;
  max-width: 90%;
  padding: 12px;
  border-radius: 12px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: #fff;
  margin-bottom: 20px;
}

.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.search-modal img {
  width: 120px;
  border-radius: 12px;
}

/* =====================
   FOOTER
===================== */
.footer {
  background: #14161e;
  padding: 25px;
  text-align: center;
  margin-top: 50px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.footer-links a {
  color: #e50914;
  text-decoration: none;
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .banner {
    height: 35vh;
  }

  .banner h1 {
    font-size: 26px;
    max-width: 100%;
  }

  .modal-body {
    flex-direction: row;
  }

  #modal-image {
    width: 90px;
  }

  .list img {
    width: 130px;
  }
}


