*,
*::before,
*::after {
  box-sizing: border-box;
}
img,
iframe,
video {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ==================== BODY & GLOBAL ==================== */
body {
  margin: 0;
  background: #000;
  color: #d4b73f;
  font-family: Arial, sans-serif;
}
.hidden { display: none; }

/* ==================== HEADER ==================== */
/* HEADER + SEARCH STICKY */
.header-search-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: #000;
}
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 10px;
}
.menu-item {
  font-weight: bold;
  cursor: pointer;
  font-size: 25px;
  margin-top: 25px;
  margin-bottom: 25px;
}
.menu-item.active { 
  font-size: 75px;  
  margin-bottom: 25px; 
}
.menu-item a {
  color: #d4b73f;
  text-decoration: none;
  padding: 8px 18px;
  border: 5px solid #d4b73f;
  border-radius: 999px;
  transition: all 0.25s ease;
}
.menu-item a:hover { 
  background: #d4b73f; 
  color: #000; 
}

/* ==================== SEARCH ==================== */
.search input {
  width: 100%;
  padding: 5px;
  background: rgb(33, 33, 33);
  border: 10px solid #d4b73f;
  color: #d4b73f;
  text-align: center;
  font-size: 25px;
  font-weight: bold;
  border-radius: 10px;
  box-sizing: border-box;
  text-transform: uppercase;
}
.search input::placeholder { color: rgba(212,183,63,0.6); }

.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;   /* Sama dengan kotak input */
  max-height: 400px;
  overflow-y: auto;
  background: #111;
  border: 2px solid #d4b73f;
  border-radius: 10px;
  z-index: 1000;
  display: none;
  box-sizing: border-box;
  margin-top: 5px;
}

.search-result-item {
  padding: 10px 15px;
  cursor: pointer;
  color: #d4b73f;
  transition: 0.25s, color 0.25s;
  display: flex;
  gap: 12px;
  align-items: center;
}
.search-result-item:hover {
  background: #d4b73f;
  color: #000;
}

/* ==================== HERO / BANNER ==================== */
.hero { 
  margin-top: 10px; 
  padding: 10px; 
  text-align: center; 
  background: linear-gradient(180deg,#111,#000); 
}
.hero-title { font-size: 30px; font-weight: bold; margin-bottom: 10px; }
.hero-subtitle { font-size: 20px; opacity: 0.7; margin: 25px 0; }



/* ==================== SECTION GRID ==================== */
.category-section {
  max-width: 1500px;
  margin: 25px auto 10px;
  text-align: center;
  size: 50px;
}
.category-section h2 { 
  font-size: 40px;  
  font-weight: 800; 
  margin-bottom: 20px; 
  color: #d4b73f; 
}

/* GRID CARD */
.film-grid, .animasi-grid, .drama-grid, .series-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 25px;
}
@media (max-width: 1200px) { .film-grid, .animasi-grid, .drama-grid, .series-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 992px)  { .film-grid, .animasi-grid, .drama-grid, .series-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 768px)  { .film-grid, .animasi-grid, .drama-grid, .series-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .film-grid, .animasi-grid, .drama-grid, .series-grid { grid-template-columns: 1fr; } }

/* CARD */
.film-card, .animasi-card, .drama-card, .series-card {
  cursor: pointer;
  display: block;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.film-card:hover, .animasi-card:hover, .drama-card:hover, .series-card:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 25px rgba(0,0,0,0.6);
  z-index: 5;
}

/* POSTER */
.film-poster, .animasi-poster, .drama-poster, .series-poster {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 2/3;
}
.film-poster img, .animasi-poster img, .drama-poster img, .series-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* TITLE BOX */
.film-title-box, .animasi-title-box, .drama-title-box, .series-title-box {
  margin-top: 10px;
  background: rgba(212,183,63,0.15);
  border: 1px solid #d4b73f;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: center;
}
.film-title, .animasi-title, .drama-title, .series-title {
  font-size: 15px;
  font-weight: bold;
  color: #d4b73f;
  text-transform: uppercase;
}

/* ACTIONS */
.film-actions, .animasi-actions, .drama-actions, .series-actions {
  text-align: center;
  margin: 30px 0;
}
.film-actions button, .animasi-actions button, .drama-actions button, .series-actions button,
.film-actions a, .animasi-actions a, .drama-actions a, .series-actions a {
  padding: 10px 25px;
  border-radius: 25px;
  font-size: 14px;
  background: #d4b73f;
  color: #000;
  text-decoration: none;
  cursor: pointer;
}

/* ================= POST PAGE FULL ================= */
.post-page {
  width: 100%;
  padding: 0 10px;
  box-sizing: border-box;
  color: #d4b73f;
  text-align: center;
}

/* JUDUL */
.post-title {
  text-align: center;
  margin: 20px 0;
  font-size: 50px;
  text-transform: uppercase;
}

/* PLAYER UTAMA */
.post-player-main {
  width: 100%;
  height: 480px;
  background: #000;
  border: 2px solid #d4b73f;
  border-radius: 8px;
  margin: 20px 0;
}
/* ================= PLAYER RESPONSIVE ================= */
.player-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.player-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 1;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10; /* HARUS LEBIH BESAR DARI IFRAME */
}

.video-overlay a {
  font-size: 90px;
  color: #d4b73f;
  text-decoration: none;
  border: 6px solid #d4b73f;
  border-radius: 50%;
  padding: 30px 50px;
}

.custom-fullscreen {
  position: absolute;
  bottom: 15px;
  right: 15px;
  z-index: 20;
  background: rgba(0,0,0,0.7);
  color: #d4b73f;
  border: 2px solid #d4b73f;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 6px;
}


/* RATING */
.post-rating {
  text-align: center;
  margin: 15px 0;
}

/* SEASON & EPISODE */
.post-season,
.post-episode {
  text-align: center;
  margin: 25px 0;
}

.season-list,
.episode-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.season-list button,
.episode-list button {
  background: transparent;
  border: 1px solid #d4b73f;
  color: #d4b73f;
  padding: 6px 14px;
  cursor: pointer;
}

.season-list button.active,
.episode-list button.active {
  background: #d4b73f;
  color: #000;
}

/* SINOPSIS */
.post-sinopsis {
  margin: 30px 0;
  text-align: center;
  font-size: 20px;
  text-transform: uppercase;
}
.post-sinopsis p {
  line-height: 1.6;

}

/* RATING USER */
.post-user-rating {
  text-align: center;
  margin: 25px 0;
  color: #d4b73f;
}
.star-rating {
  font-size: 40px;
  cursor: pointer;
}
.star-rating span {
  opacity: 0.3;
  transition: 0.2s;
}
.star-rating span.active {
  opacity: 1;
}
.rating-info {
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.8;
}

/* MOBILE */
@media (max-width: 768px) {
  .post-player-main {
    height: 240px;
  }
}

/* ==================== FOOTER ==================== */
.footer {
  margin-top: 30px;
  margin-bottom: 10px;
  padding: 40px 20px 25px;
  border-top: 2px solid #d4b73f;
  text-align: center;
}
.footer-logo img { width: 200px; margin-bottom: 30px; }
.footer-copy { font-size: 13px; opacity: 0.75; }

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  pointer-events: none;
  cursor: default;
}
.footer-logo img {
  display: block;
  margin: 10px
}

/* ================= GLOBAL RESPONSIVE ================= */
/* TABLET */
@media (max-width: 1024px) {
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  .menu-item.active {
    font-size: 45px;
  }
  .category-section h2 {
    font-size: 32px;
  }
}

/* MOBILE */
@media (max-width: 768px) {
  body {
    font-size: 14px;
  }
  .menu-item {
    font-size: 18px;
    margin-top: 15px;
  }
  .menu-item.active {
    font-size: 32px;
    margin: 10px 0;
  }
  .search input {
    font-size: 18px;
    text-transform: uppercase;
  }
}


/* SMALL MOBILE */
@media (max-width: 480px) {
  .hero-title {
    font-size: 22px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .footer-social {
    gap: 25px;
  }


  /* Legal Page Styling */
.legal-page {
  max-width: 900px;
  margin: 60px auto;
  padding: 30px;
}

.legal-page h1 {
  margin-bottom: 20px;
}

.legal-page p {
  line-height: 1.8;
  margin-bottom: 15px;
}

}