* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #172133;
  color: #fff;
  overflow-x: hidden;
}

/* HEADER */

.header {
  height: 70px;
  background: #202b40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 30px;
  font-weight: 700;
  color: #1ba7ff;
}

.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: 0.3s;
}

.menu a:hover {
  color: #1ba7ff;
}

/* TOP ADS */

.top-ads {
  max-width: 1200px;
  margin: 20px auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.banner {
  height: 90px;
  background: #283750;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  border-radius: 8px;
}

/* NOTICE */

.notice {
  max-width: 1200px;
  margin: 20px auto;
  background: #75b35b;
  padding: 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

/* SECTION */

.section {
  max-width: 1200px;
  margin: 30px auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 28px;
}

/* BUTTON */

.nav-btn {
  width: 45px;
  height: 45px;
  border: none;
  background: #1ba7ff;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  border-radius: 6px;
  margin-left: 5px;
}

.nav-btn:hover {
  opacity: 0.8;
}

/* SLIDER */

.movie-slider {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.movie-slider::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-width: 220px;
  background: #24324a;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  transition: 0.3s;
}

.movie-card:hover {
  transform: translateY(-5px);
}

.movie-thumb {
  height: 320px;
  background: #415270;
}

.movie-title {
  padding: 12px;
  font-size: 14px;
}

/* BIG AD */

.big-ad {
  max-width: 1200px;
  height: 250px;
  margin: 40px auto;
  background: #2d3d59;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: bold;
  border-radius: 10px;
}

/* CONTENT */

.content-layout {
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 25px;
  padding-bottom: 60px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 20px;
}

/* MOVIE GRID */

.movie-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.grid-item {
  background: #24324a;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.3s;
}

.grid-item:hover {
  transform: translateY(-5px);
}

.grid-thumb {
  height: 280px;
  background: #445774;
}

.grid-title {
  padding: 10px;
  font-size: 14px;
  font-weight: bold;
}

.year {
  padding: 0 10px 10px;
  font-size: 12px;
  color: #b6b6b6;
}

/* SIDEBAR */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.widget {
  background: #24324a;
  padding: 20px;
  border-radius: 10px;
}

.widget h3 {
  margin-bottom: 15px;
}

.widget a {
  display: block;
  color: #ddd;
  text-decoration: none;
  padding: 6px 0;
  transition: 0.3s;
}

.widget a:hover {
  color: #1ba7ff;
}

.tag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tag-grid span {
  background: #182234;
  padding: 10px;
  text-align: center;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
}

/* FOOTER */

.footer {
  background: #202b40;
  padding: 30px;
  text-align: center;
  margin-top: 40px;
}

/* POPUP */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 99999;
}

.popup-box {
  width: 750px;
  max-width: 95%;
  background: #101826;
  border: 3px solid #1ba7ff;
  position: relative;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
}

.popup-close {
  position: absolute;
  right: 10px;
  top: 10px;
  width: 35px;
  height: 35px;
  border: none;
  cursor: pointer;
  background: red;
  color: #fff;
  border-radius: 50%;
  font-size: 16px;
}

.popup-banner {
  height: 300px;
  background: #30415d;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

/* FLOATING ADS */

.floating-left,
.floating-right {
  position: fixed;
  top: 100px;
  width: 160px;
  z-index: 900;
}

.floating-left {
  left: 10px;
}

.floating-right {
  right: 10px;
}

.floating-ad {
  width: 160px;
  height: 600px;
  background: #24324a;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 10px;
  font-weight: bold;
}

/* RESPONSIVE */

@media (max-width: 1400px) {
  .floating-left,
  .floating-right {
    display: none;
  }
}

@media (max-width: 1000px) {
  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    order: -1;
  }

  .movie-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .menu {
    display: none;
  }

  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .movie-thumb {
    height: 240px;
  }

  .grid-thumb {
    height: 220px;
  }

  .banner {
    font-size: 18px;
  }

  .big-ad {
    height: 180px;
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .movie-grid {
    grid-template-columns: 1fr;
  }

  .logo {
    font-size: 24px;
  }

  .section-header h2 {
    font-size: 22px;
  }
}

.pagination {
  max-width: 1200px;
  margin: 40px auto;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pagination button {
  width: 40px;
  height: 40px;
  border: none;
  background: #24324a;
  color: #fff;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.2s;
}

.pagination button:hover {
  background: #1ba7ff;
  transform: translateY(-2px);
}

.pagination button.active {
  background: #1ba7ff;
}
