/* =========================
   RESET + BASE
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:Inter, system-ui, sans-serif;
  background:#050816;
  color:white;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}

/* =========================
   BACKGROUND EFFECTS
========================= */

.background-glow{
  position:fixed;
  inset:0;
  background:radial-gradient(
    circle at top left,
    rgba(29,143,255,0.25),
    transparent 45%
  );
  z-index:-2;
}

.grid-overlay{
  position:fixed;
  inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size:40px 40px;
  opacity:0.3;
  z-index:-1;
  pointer-events:none;
}

/* =========================
   HEADER
========================= */

header{
  position:fixed;
  top:0;
  left:0;
  width:100%;

  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:16px 24px;

  backdrop-filter:blur(14px);
  background:rgba(10,15,30,0.72);

  z-index:1000;
}

.logo{
  font-weight:800;
  font-size:20px;
}

.logo span{
  color:#1d8fff;
}

/* =========================
   SEARCH
========================= */

.search-bar{
  width:220px;
  padding:10px 14px;

  border-radius:999px;
  border:none;
  outline:none;

  background:#11182e;
  color:white;
}

@media(max-width:768px){
  .search-bar{
    width:100%;
  }
}

/* =========================
   HERO
========================= */

.hero{
  display:flex;
  justify-content:space-between;
  align-items:center;

  padding:120px 40px 60px;
  gap:40px;
}

.hero h1{
  font-size:3rem;
}

.hero span{
  color:#1d8fff;
}

.hero-card img{
  width:380px;
  border-radius:18px;
}

/* =========================
   BUTTONS
========================= */

.btn,
.secondary-btn{
  padding:10px 16px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  transition:0.2s ease;
}

.btn{
  background:#1d8fff;
  color:white;
}

.btn:hover{
  transform:translateY(-2px);
}

.secondary-btn{
  background:rgba(255,255,255,0.08);
  color:white;
  border:1px solid rgba(255,255,255,0.15);
}

.secondary-btn:hover{
  transform:translateY(-2px);
}

/* =========================
   SECTIONS
========================= */

.section{
  padding:60px 40px;
}

/* =========================
   PANEL GRID
========================= */

.panel-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:20px;
}

.panel{
  background:rgba(255,255,255,0.06);
  padding:20px;
  border-radius:18px;
  backdrop-filter:blur(10px);
}

/* =========================
   INPUTS
========================= */

input{
  width:100%;
  padding:12px;
  margin:8px 0;

  border-radius:10px;
  border:none;

  background:#11182e;
  color:white;
}

/* =========================
   MOVIES / SERIES
========================= */

#movies-container{
  display:flex;
  flex-direction:column;
  gap:40px;
}

/* =========================
   CATEGORY SCROLL
========================= */

.category-scroll{
  display:flex;
  gap:14px;

  overflow-x:auto;
  scroll-behavior:smooth;

  padding-bottom:10px;
  scrollbar-width:none;

  scroll-snap-type:x mandatory;
}

.category-scroll::-webkit-scrollbar{
  display:none;
}

/* =========================
   MOVIE / SERIES CARD
========================= */

.movie-card{
  min-width:140px;
  max-width:140px;

  background:rgba(255,255,255,0.05);
  border-radius:14px;

  overflow:hidden;
  cursor:pointer;

  transition:0.25s ease;

  scroll-snap-align:start;
  will-change:transform;
}

.movie-card:hover{
  transform:scale(1.07);
  z-index:5;
}

.movie-card img{
  width:100%;
  height:190px;
  object-fit:cover;
}

.movie-content{
  padding:8px;
}

.movie-content h3{
  font-size:0.85rem;
}

/* =========================
   EXPLORE
========================= */

#explore{
  display:flex;
  gap:14px;
  overflow-x:auto;
  padding-bottom:10px;
}

/* =========================
   MODALS
========================= */

.watch-modal{
  position:fixed;
  inset:0;

  display:none;
  justify-content:center;
  align-items:center;

  background:rgba(0,0,0,0.92);
  z-index:9999;
}

.watch-container{
  width:90%;
  max-width:900px;
}

.watch-container video{
  width:100%;
  border-radius:14px;
}

.close-btn{
  position:absolute;
  top:20px;
  right:20px;
  cursor:pointer;
  font-size:22px;
}

/* =========================
   MOVIE DETAIL PAGE
========================= */

.movie-page{
  padding:40px;
}

.movie-page h1{
  font-size:2.2rem;
  margin-bottom:10px;
}

.movie-page p{
  opacity:0.85;
  line-height:1.6;
}

.movie-page video{
  width:100%;
  max-width:900px;
  border-radius:16px;
  margin:20px 0;
}

.poster{
  width:260px;
  border-radius:14px;
  margin-top:20px;
}

/* =========================
   EPISODES SYSTEM (CLEAN)
========================= */

.episodes-list{
  margin-top:20px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.episode-card{
  padding:14px;
  background:rgba(255,255,255,0.06);
  border-radius:12px;

  cursor:pointer;
  transition:0.25s ease;

  border:1px solid transparent;
  will-change:transform;
}

.episode-card:hover{
  transform:translateX(6px);
  background:rgba(29,143,255,0.15);
  border:1px solid rgba(29,143,255,0.4);
}

.episode-card strong{
  display:block;
  color:#1d8fff;
  font-size:0.9rem;
}

.episode-card p{
  margin-top:4px;
  font-size:0.85rem;
  opacity:0.8;
}

.episode-active{
  background:rgba(29,143,255,0.25) !important;
  border:1px solid #1d8fff !important;
}

/* =========================
   SUPPORT SECTION
========================= */

#support .panel{
  transition:0.3s ease;
}

#support .panel:hover{
  transform:translateY(-4px);
}

#support a{
  text-decoration:none;
  color:white;
  opacity:0.9;
}

#support a:hover{
  color:#1d8fff;
}

/* =========================
   MOBILE RESPONSIVE
========================= */

@media(max-width:768px){

  header{
    flex-direction:column;
    gap:10px;
  }

  .hero{
    flex-direction:column;
    text-align:center;
  }

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

  .panel-grid{
    grid-template-columns:1fr;
  }

  .movie-card{
    min-width:120px;
    max-width:120px;
  }

  .movie-card img{
    height:160px;
  }

  .hero h1{
    font-size:2rem;
  }
}


.hero-slider{
  position:relative;
  width:420px;
  height:260px;
  overflow:hidden;
  border-radius:18px;
}

.hero-track{
  display:flex;
  transition:transform 0.6s ease;
  height:100%;
}

.hero-slide{
  min-width:100%;
  height:100%;
  position:relative;
}

.hero-slide img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-slide .overlay{
  position:absolute;
  bottom:0;
  width:100%;
  padding:12px;
  background:linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.hero-controls{
  position:absolute;
  top:50%;
  width:100%;
  display:flex;
  justify-content:space-between;
  transform:translateY(-50%);
  padding:0 10px;
}
