* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f5f5f5;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: deepskyblue;
  color: #fff;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-box img {
  width: 40px;
  height: 40px;
}

.nav {
  display: flex;
  gap: 15px;
}

.nav a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
}

.menu-btn {
  display: none;
  font-size: 26px;
  cursor: pointer;
}

/* Search */
.search-box {
  position: relative;
  max-width: 250px;
}

.search-box input {
  width: 100%;
  padding: 8px 35px 8px 15px;
  border-radius: 20px;
  border: none;
  outline: none;
}

.search-icon {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.search-results {
  max-width: 300px;
  margin: 10px auto;
  list-style: none;
  background: #fff;
  border-radius: 10px;
  display: none;
}

.search-results li {
  padding: 10px;
  border-bottom: 1px solid #eee;
}

/* Categories */
.categories {
  display: flex;
  gap: 10px;
  padding: 10px;
  overflow-x: auto;
}

.cat {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
}

.cat.active {
  background: #0d6efd;
  color: #fff;
}

/* Movies */
.movies {
  padding: 15px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 15px;
}

.movie-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.movie-card img {
  width: 100%;
}

.movie-card h3 {
  font-size: 14px;
  padding: 8px;
}

.movie-card button {
  margin-bottom: 10px;
  padding: 6px 12px;
  border: none;
  background: deepskyblue;
  color: #fff;
  border-radius: 20px;
  cursor: pointer;
}

/* Mobile */
@media (max-width: 768px) {
  .nav {
    position: absolute;
    top: 65px;
    right: 0;
    background: deepskyblue;
    flex-direction: column;
    width: 200px;
    display: none;
  }
  
  .nav.active {
    display: flex;
  }
  
  .menu-btn {
    display: block;
  }
}

/* AUTH PAGES (Login / Signup) */
.auth-section {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.auth-section h2 {
  margin-bottom: 20px;
  color: deepskyblue;
  font-size: 24px;
}

.auth-section input {
  width: 100%;
  padding: 10px 15px;
  margin: 10px 0;
  border-radius: 20px;
  border: 1px solid #ccc;
  outline: none;
  font-size: 14px;
}

.auth-section button {
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 20px;
  background: deepskyblue;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  margin-top: 10px;
}

.auth-section button:hover {
  background: #0a94d9;
}

.auth-section p {
  margin-top: 15px;
  font-size: 14px;
}

.auth-section p a {
  color: deepskyblue;
  text-decoration: none;
  font-weight: bold;
}

.auth-section p a:hover {
  text-decoration: underline;
}

#signupMessage, #loginMessage {
  margin-top: 10px;
  color: red;
  font-size: 14px;
}

.payment-section {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.payment-section h2 {
  color: deepskyblue;
  margin-bottom: 10px;
}

.payment-section p {
  margin: 10px 0;
}

.payment-section .payBtn {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
}

.payment-section .payBtn[data-method="Airtel"] {
  background: Red;
}

.payment-section .payBtn[data-method="TNM"] {
  background: #009933;
}

.payment-section .payBtn[data-method="Paystack"] {
  background: #00ccff;
}

.payment-section .payBtn:hover {
  opacity: 0.9;
}

#paymentMessage {
  margin-top: 15px;
  color: green;
  font-weight: bold;
}

.profile-section {
  max-width: 400px;
  margin: 50px auto;
  background: #fff;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

.profile-section h2 {
  color: deepskyblue;
  margin-bottom: 15px;
}

.profile-section p {
  margin: 10px 0;
  font-size: 15px;
}

.profile-section button {
  width: 100%;
  padding: 10px;
  margin: 8px 0;
  border: none;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  color: #fff;
}

#goPaymentBtn {
  background: deepskyblue;
}

#logoutBtn {
  background: #ff3300;
}

.profile-section button:hover {
  opacity: 0.9;
}

/* MOBILE RESPONSIVE HEADER */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 15px;
  }

  .nav {
    position: absolute;
    top: 60px;
    right: 0;
    background: deepskyblue;
    flex-direction: column;
    width: 100%;
    display: none;
    z-index: 100;
  }

  .nav.active {
    display: flex;
  }

  .menu-btn {
    display: block;
    font-size: 26px;
    cursor: pointer;
    margin-left: auto;
  }

  .logo {
    font-size: 18px;
    margin-bottom: 5px;
  }
}

/* MOVIES GRID */
.movies {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  padding: 20px;
}

.movie-card img {
  width: 100%;
  border-radius: 10px;
}

.movie-card h3 {
  font-size: 14px;
  margin-top: 5px;
  text-align: center;
}

.movie-card button {
  width: 100%;
  margin-top: 5px;
  border-radius: 15px;
  padding: 5px;
  font-size: 14px;
}

/* SEARCH & CATEGORIES */
.search-box, .categories {
  max-width: 100%;
  padding: 10px;
}

.categories {
  gap: 8px;
  overflow-x: auto;
  white-space: nowrap;
}

.categories::-webkit-scrollbar {
  display: none;
}

/* RESPONSIVE VIDEO & BUTTONS */
.watch-section video {
  width: 100%;
  height: auto;
}

.watch-section button, 
.payment-section .payBtn,
.profile-section button {
  width: 100%;
  font-size: 16px;
  padding: 10px;
}

.auth-section, 
.payment-section, 
.profile-section {
  max-width: 95%;
  margin: 30px auto;
}

/* SMALLER DEVICES TOUCH */
@media (max-width: 480px) {
  .movie-card h3 {
    font-size: 12px;
  }

  .movie-card button {
    font-size: 12px;
    padding: 6px;
  }

  .search-box input {
    font-size: 13px;
    padding: 10px 35px 10px 12px;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: #0b1c2d;
  color: #fff;
  padding: 40px 20px 20px;
  margin-top: 40px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}

.footer-col h3,
.footer-col h4 {
  margin-bottom: 12px;
  color: deepskyblue;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.6;
  color: #ccc;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #ccc;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 25px;
  padding-top: 15px;
  text-align: center;
  font-size: 13px;
  color: #aaa;
}

/* MOBILE FOOTER */
@media (max-width: 600px) {
  .footer {
    text-align: center;
  }
}

/* ===== TRENDING SECTION ===== */
.trending {
  padding: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.section-header h2 {
  font-size: 20px;
}

.view-all {
  font-size: 14px;
  text-decoration: none;
  color: deepskyblue;
}

.trending-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.trending-list::-webkit-scrollbar {
  display: none;
}

.trending-card {
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.trending-card img {
  width: 100%;
  border-radius: 10px;
}

.trending-card h4 {
  font-size: 14px;
  margin: 6px 0;
  text-align: center;
}

.trending-card button {
  width: 100%;
  padding: 6px;
  border-radius: 15px;
  border: none;
  background: deepskyblue;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.trending-card button:hover {
  opacity: 0.9;
}

.rank {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #ff3d00;
  color: #fff;
  font-size: 13px;
  padding: 3px 7px;
  border-radius: 50%;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 480px) {
  .trending-card {
    min-width: 140px;
  }
}

/* ===== NEW RELEASES ===== */
.new-releases {
  padding: 20px;
}

.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.release-card {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  position: relative;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.release-card img {
  width: 100%;
  border-radius: 10px;
}

.release-card h4 {
  font-size: 14px;
  margin: 6px 0;
  text-align: center;
}

.release-card button {
  width: 100%;
  padding: 6px;
  border-radius: 15px;
  border: none;
  background: deepskyblue;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}

.release-card button:hover {
  opacity: 0.9;
}

.badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #00c853;
  color: #fff;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  font-weight: bold;
}

/* MOBILE */
@media (max-width: 480px) {
  .release-card h4 {
    font-size: 13px;
  }
}

/* ===== CONTINUE WATCHING ===== */
.continue-watching {
  padding: 20px;
}

.continue-list {
  display: flex;
  gap: 15px;
  overflow-x: auto;
}

.continue-list::-webkit-scrollbar {
  display: none;
}

.continue-card {
  min-width: 160px;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.continue-card img {
  width: 100%;
  border-radius: 10px;
}

.continue-card h4 {
  font-size: 14px;
  margin: 6px 0;
  text-align: center;
}

.progress-bar {
  height: 5px;
  background: #ddd;
  border-radius: 5px;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: deepskyblue;
  width: 0%;
}

