body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #111;
  color: white;
  overflow: hidden;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #222;
  padding: 10px 20px;
}
.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: red;
  text-decoration: none;
}
.search-bar {
  padding: 6px 10px;
  border-radius: 5px;
  border: none;
}

/* List Rows */
.row {
  margin: 20px;
}
.row h2 {
  margin-bottom: 10px;
}
.list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 10px;
}
.list img {
  width: 150px;
  border-radius: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.list img:hover {
  transform: scale(1.05);
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.modal-content {
  background: #222;
  padding: 20px;
  width: 90%;
  max-width: 700px;
  border-radius: 10px;
  position: relative;
}
.modal-content iframe {
  width: 100%;
  height: 350px;
  border: none;
  margin-top: 15px;
}
.modal .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
}

/* Search Modal */
.search-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.search-modal input {
  width: 80%;
  max-width: 400px;
  padding: 10px;
  border-radius: 5px;
  border: none;
  margin-bottom: 20px;
}
.search-modal .results {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-height: 60vh;
  overflow-y: auto;
  padding: 10px;
}
.search-modal .results img {
  width: 120px;
  border-radius: 5px;
  cursor: pointer;
}

/* Disclaimer */
.disclaimer-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
}
.disclaimer-box {
  background: #222;
  padding: 30px;
  border-radius: 10px;
  max-width: 90%;
  width: 400px;
  text-align: center;
  box-shadow: 0 0 20px rgba(255, 0, 0, 0.3);
}
.disclaimer-box h2 {
  margin-bottom: 15px;
}
.disclaimer-box p {
  font-size: 14px;
  margin-bottom: 20px;
  color: #ccc;
}
.disclaimer-box button {
  padding: 10px 20px;
  background: red;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}
.disclaimer-box button:hover {
  background: darkred;
}  
/* Reset and base styles */
body, html {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Main content structure */
#main-content {
  display: flex !important;
  flex-direction: column;
  gap: 20px;
  padding: 0 15px;
  box-sizing: border-box;
}

/* Navbar styling */
.navbar {
  padding: 10px 15px;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  background: #000; /* Add background color */
  z-index: 100;
}

/* Banner slider */
.banner-slider {
  margin: 10px auto 0;
  width: calc(100% - 30px);
  max-width: 400px;
  position: relative;
}

/* Poster box */
.poster-box {
  width: 100%;
  margin: 0;
  aspect-ratio: 9/16;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
}

.poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Content rows */
.row {
  margin-top: 30px;
  padding: 0 5px;
}

.row h2 {
  margin-bottom: 15px;
  color: white; /* Ensure text is visible */
}

/* Overlay */
.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  color: white;
  text-align: center;
  z-index: 2;
}

.overlay p {
  font-size: 12px;
  margin: 0;
  font-weight: bold;
  color: #ffd700; /* Gold color para sa rating */
}

.overlay h2 {
  font-size: 11px;
  margin-top: 3px;
  color: #fff;
}

/* Navigation arrows */
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  font-size: 20px;
  border: none;
  padding: 8px;
  border-radius: 50%;
  z-index: 3;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav.prev { left: 5px; }
.nav.next { right: 5px; }

/* Mobile responsive */
@media (max-width: 768px) {
  #main-content {
    padding: 0 10px;
    gap: 15px;
  }
  
  .banner-slider {
    width: calc(100% - 20px);
    margin-top: 8px;
  }
  
  .row {
    margin-top: 20px;
  }
  
  .overlay {
    padding: 10px;
  }
  
  .overlay p {
    font-size: 10px;
  }
  
  .overlay h2 {
    font-size: 11px;
  }
  
  .nav {
    font-size: 18px;
    width: 25px;
    height: 25px;
  }
}
