/* Fonts Page */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');


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

body {
  background: #0f1014;
  color: #ffffff;
}

a {
  text-decoration: none;
  color: inherit;
}


/* <!-- ================= HEADER ================= --> */
/* ==================== */
/* seasson Yes No*/
.no {
  display: none;
}

/* <!-- ================= HEADER ================= --> */
.navbar {
  width: 100%;
  background: #000000;
  padding: 12px 4%;
  position: sticky;
  top: 0;
  z-index: 1000;

  /* font */
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;

}

/* container keeps everything on one row; allow shrink for search */
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  /* do NOT allow wrapping so links don't drop below */
  flex-wrap: nowrap;
}

/* logo fixed-size */
.logo {
  font-size: 25px;
  font-weight: 700;
  color: #fff;
  flex: 0 0 auto;
  /* never shrink to zero */
  white-space: nowrap;
}

.logo span {
  color: #e50914;
}

/* NAV LINKS: do not wrap, enable horizontal scroll when needed */
.nav-links {
  list-style: none;
  display: flex;
  gap: 16px;
  align-items: center;
  flex: 0 0 auto;
  /* keep natural width; don't stretch */
  white-space: nowrap;
  /* keep items in one line */
  overflow-x: auto;
  /* allow horizontal scroll if not enough space */
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  /* small padding so scroll doesn't cut text */
}

/* hide native scrollbar but keep scrollable */
.nav-links::-webkit-scrollbar {
  height: 6px;
  display: none;
}

.nav-links {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* individual links */
.nav-links a {
  display: inline-block;
  color: #fff;
  font-size: 15px;
  padding: 6px 4px;
  text-decoration: none;

}

.nav-links a:hover {
  color: #0c70ce;
  transform: scale(1.1);

}

/* make sure the hamburger/icon (if present) is shown at end */
.nav-links li img {
  display: block;
  height: 20px;
  width: auto;
}

/* Sidebar Setup */
.sidebar {
  position: fixed;
  top: 0;
  right: -280px;
  /* Shuru mein screen se bahar */
  width: 260px;
  height: 100vh;
  background: #0a0a0a;
  z-index: 10000;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -10px 0 20px rgba(0, 0, 0, 0.8);
}

.sidebar.active {
  right: 0;
  /* Click par andar aayega */
}

.sidebar-header {
  padding: 25px 20px;
  background: #e50914;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
}

#closeMenu {
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
}

.sidebar-content {
  display: flex;
  flex-direction: column;
  /* Sab ek ke niche ek */
  padding: 20px 0;
}

.sidebar-content a {
  color: #eee;
  padding: 15px 25px;
  text-decoration: none;
  font-size: 1.1rem;
  border-bottom: 1px solid #1a1a1a;
  transition: 0.3s;
}

.sidebar-content a:hover {
  background: #1a1a1a;
  color: #e50914;
  padding-left: 35px;
}

/* Background Overlay */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  backdrop-filter: blur(3px);
}

.menu-overlay.active {
  display: block;
}

/* ================= RESPONSIVE ADJUSTMENTS ================= */
/* tablet-ish: shrink search, smaller gaps */
@media (max-width:900px) {

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 6px;
  }

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

/* mobile narrow: make search tiny but present, ensure links remain visible (scrollable) */
@media (max-width:480px) {

  .navbar {
    height: 61px;
  }

  .nav-links {
    gap: 10px;
  }

  .nav-links a {
    font-size: 15px;
    padding: 4px 1px;
    margin: 1px 0px;
  }

  .logo {
    font-size: 23px;
    margin: 1px -4px;
  }

  ul .op {
    display: none;
  }
}

/* extra safety: force show nav-links if something else hides them */
@media (max-width:900px) {
  .nav-links {
    display: flex !important;
  }
}

/* ================= Watching Section ================= */

.watching-section {
  position: relative;
  width: 100%;
  height: 92.9vh;
  overflow: hidden;
  color: white;
}

/* Background Image */
.watching-section .background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -2;
}

/* Dark overlay for readability */
.watching-section::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 15%, rgba(0, 0, 0, 0.568) 60%, transparent 100%);
  z-index: -1;
}

/* Content Wrapper */
.watching-page {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 80px;
  max-width: 600px;
}

/* Movie Title */
.watching-page h1 {
  font-size: 55px;
  margin-bottom: 20px;
  font-weight: 700;
}

/* Movie Info (Year | Type | Duration) */
.watching ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  font-size: 16px;
  color: #ccc;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

/* Description */
.watching p {
  font-size: 17px;
  line-height: 1.6;
  margin-bottom: 25px;
  color: #ddd;
  font-family: "Rubik";
  font-weight: 100;
}

/* Buttons */
.buttons ul {
  display: flex;
  gap: 15px;
  list-style: none;
  padding: 0;
}

.buttons button {
  padding: 10px 22px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  border-radius: 4px;
  font-weight: 600;
  transition: 0.3s ease;

  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

/* Individual Button Colors */
.buttons li:nth-child(1) button {
  background: #1e90ff;
  color: white;
}

.buttons li:nth-child(2) button {
  background: #e50914;
  color: white;
}

.buttons li:nth-child(3) button {
  background: #e50914;
  color: white;
}

/* Hover Effect */
.buttons button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

/*===== Risponsibal ===== */
@media (max-width:480px) {

  .watching-page {
    position: relative;
    top: 25%;
    left: -50px;
  }

  .watching-page h1 {
    font-size: 40px;
  }

  .watching-section {
    height: 70vh;
  }

  .watching-section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.568) 30%, transparent 100%);
    z-index: -1;
  }



}

/* somolest mobile */
@media (max-width:360px) {
  .watching-page h1 {
    font-size: 30px;
  }

}

/* ================= CATEGORIES SECTION ================= */

.categories-section {
  position: relative;
  padding: 1% 0% 2% 2%;
  overflow: hidden;
  color: #ccc;

  /* font */
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

.categories-section h2 {
  margin-bottom: -4px;
}

/* Horizontal Scroll Container */
.ccards {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 1% 0;

  perspective: 1000px;
  /* smoother scaling */
}

/* Hide Scrollbar */
.ccards::-webkit-scrollbar {
  display: none;
}

.ccards {
  scrollbar-width: none;
}

/* Individual Card */
.ccards div {
  flex: 0 0 auto;
  width: 403px;
  height: 232px;
  /* ✅ fixed */
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  position: relative;

  transition: transform 0.5s ease, box-shadow 0.4s ease;
  will-change: transform;
}

/* Image */
.ccards img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}



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

/* laptop */
@media (min-width:768px) {
  .categories-section {
    display: none;
  }
}

/* Small Mobile */
@media (max-width:480px) {
  .ccards div {
    width: 110px;
    height: 155px;
  }

  .ccards {
    gap: 10px;
    padding: 8px 3% 10px 0%;
    position: relative;
    left: 5px;
  }

  .categories-section h2 {
    position: relative;
    left: 4px;
    font-size: 20px;

  }
}

/* ================= PERFECT ALIGNED FOOTER ================= */

footer {
  background: linear-gradient(to bottom, #0f1014, #2f0b0b);
  color: #fff;
  padding: 70px 6% 0;
  position: relative;
  overflow: hidden;
}


/* Copyright */
.copyright {
  text-align: center;
  padding: 20px 0;
  font-size: 13px;
  color: #aaa;
}

/* ================= RESPONSIVE SYSTEM ================= */

@media (min-width:480px) {
  footer {
    display: none;
  }
}

/* 📱 Small Mobile (320px – 480px) */
@media (max-width:480px) {

  footer {
    padding: 20px 8%;
  }

}

@media (max-width: 480px) {

  /* 1. Section ko flexible rakho */
  .watching-section {
    display: flex;
    flex-direction: column;
    position: relative;
    /* min-height: 100vh; */
  }

  /* 2. Background container (Poster ke liye) */
  .background {
    position: absolute;
    /* Poster ko piche fix kar diya */
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    /* Poster mobile pe itna lamba dikhega */
    z-index: 1;
  }

  #poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    /* Face upar se sahi dikhega */
  }

  /* 3. Shadow (Jo poster ko neeche se fade karega) */
  .background::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Poori image pe halka gradient */
    background: linear-gradient(to top, #000 30%, transparent 100%);
    z-index: 2;
  }

  /* 4. Text aur Buttons (Details) */
  .watching-page {
    position: relative;
    z-index: 10;
    top: 150px;
    /* 45vh top padding poster ko jagah degi */
    text-align: left;
    /* Details left side hi rahengi */
  }

  #title {
    font-size: 2rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    /* Text chamkega */
  }

  .watching ul {
    display: flex;
    gap: 15px;
    padding: 0;
    list-style: none;
  }

  .buttons ul {
    display: flex;
    gap: 10px;
    padding: 0;
    margin-top: 20px;
  }
}

@media screen and (max-width: 384px) and (max-height: 780px){

  /* 4. Text aur Buttons (Details) */
  .watching-page {
    position: relative;
    z-index: 10;
    top: 80px;
    /* 45vh top padding poster ko jagah degi */
    text-align: left;
    /* Details left side hi rahengi */
  }



}