body {
  background-color: #000;
  color: white;
  font-family: "Inter", sans-serif;
  margin: 0;
}
.logo {
  font-family: "Orbitron", sans-serif;
  color: #e50914;
  font-size: 1.8rem;
  font-weight: bold;
  letter-spacing: 1px;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 5%;
  background: #000;
  position: sticky;
  top: 0;
  z-index: 100;
}
.search-container {
  display: flex;
  background: #1a1a1a;
  border-radius: 25px;
  padding: 6px 18px;
  border: 1px solid #333;
}
#searchInput {
  background: transparent;
  border: none;
  color: white;
  outline: none;
  width: 180px;
}
#searchBtn {
  background: transparent;
  border: none;
  color: #888;
  cursor: pointer;
}

/* HERO SLIDER */
.hero-section {
  width: 100%;
  height: 500px;
  background-size: cover;
  background-position: center top;
  position: relative;
  display: flex;
  align-items: flex-end;
  transition: background-image 0.8s ease-in-out;
}
.hero-content {
  background: linear-gradient(to top, #000, transparent);
  width: 100%;
  padding: 40px 5%;
}
.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: 2.5rem;
  margin: 0 0 15px 0;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}
.hero-btn {
  background: #e50914;
  color: white;
  border: none;
  padding: 12px 30px;
  font-weight: bold;
  cursor: pointer;
  border-radius: 4px;
}
.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 15px;
  cursor: pointer;
  z-index: 10;
  border-radius: 50%;
  transition: 0.3s;
}
.hero-arrow:hover {
  background: #e50914;
}
.hero-arrow.left {
  left: 20px;
}
.hero-arrow.right {
  right: 20px;
}

/* SIDEBAR */
.sidebar {
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 200;
  top: 0;
  left: 0;
  background-color: #0a0a0a;
  overflow-x: hidden;
  transition: 0.3s;
  padding-top: 60px;
}
.sidebar-content h3 {
  color: #e50914;
  padding-left: 30px;
  font-size: 0.8rem;
}
.sidebar-content a {
  padding: 12px 30px;
  text-decoration: none;
  color: #999;
  display: block;
}
.sidebar-content a:hover {
  color: white;
  background: #151515;
}
#closeSideBar {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  color: white;
  background: none;
  border: none;
  cursor: pointer;
}

/* GRID & CARD */
.welcome-box {
  text-align: center;
  padding: 40px 10%;
}
.welcome-box p {
  color: #e50914;
  font-size: 1.7rem;
  margin-bottom: 15px;
  font-weight: 400;
  font-style: italic;
}
.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  padding: 10px 5%;
}
.movie-card {
  position: relative;
}
.movie-card img {
  width: 100%;
  border-radius: 6px;
  cursor: pointer;
  transition: 0.3s;
}
.movie-card img:hover {
  transform: scale(1.04);
  outline: 2px solid #e50914;
}

/* RED HEART BUTTON */
.fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #ff3b3b;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: none;
  font-size: 1.2rem;
  z-index: 5;
  text-shadow: 0 0 5px rgba(0, 0, 0, 1);
}
.movie-card:hover .fav-btn {
  display: block;
}

/* PAGINATION */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 50px;
}
.nav-btn {
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 10px 25px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.nav-btn:hover {
  background: #e50914;
}
.hidden {
  display: none !important;
}

/* PLAYER & SOURCES */
#playerContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.source-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #111;
  border-bottom: 2px solid #e50914;
}
.src-btn {
  background: #333;
  color: white;
  border: none;
  padding: 8px 16px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}
.src-btn:hover {
  background: #e50914;
}
.iframe-wrapper {
  flex-grow: 1;
  width: 100%;
}
#videoPlayer {
  width: 100%;
  height: 100%;
  border: none;
}
#closePlayer {
  width: 100%;
  padding: 12px;
  background: #e50914;
  color: white;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

@media (max-width: 600px) {
  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-title {
    font-size: 1.5rem;
  }
}
