@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

:root {
  --main-color: #ff4c29;
  --hover-color: #ff7f50;
  --accent-color: #ffd700;
  --body-color: #0a0a0a;
  --container-color: #151515;
  --text-color: #ffffff;
  --text-muted: #999999;
  --focus-outline: #ffd700;
  --transition-speed: 0.3s;
  --border-radius: 10px;
  --sidebar-width: 60px;
  --sidebar-expanded-width: 180px;
}

body.light-theme {
  --body-color: #f5f5f5;
  --text-color: #1e1e2e;
  --container-color: #ffffff;
  --text-muted: #555;
}

* {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

html::-webkit-scrollbar {
  width: 6px;
}
html::-webkit-scrollbar-thumb {
  background: var(--main-color);
}
::selection {
  background: var(--main-color);
  color: var(--text-color);
}
a { text-decoration: none; color: inherit; }
li { list-style: none; }
img { max-width: 100%; display: block; }

body {
  background: var(--body-color);
  color: var(--text-color);
  transition: background-color var(--transition-speed), color var(--transition-speed);
}

/* ✅ Top Navigation + Layout */
.container {
  max-width: 1080px;
  margin: auto;
  padding: 0 1rem;
}
.navbar {
  position: fixed;
  top: 4.5rem;
  left: 0;
  background: var(--container-color);
  width: var(--sidebar-width);
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  z-index: 999;
  transition: width 0.3s;
}
.navbar:hover { width: var(--sidebar-expanded-width); }
.navbar a {
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: var(--border-radius);
  display: flex;
  gap: 0.8rem;
  align-items: center;
}
.navbar a:hover { background: var(--main-color); }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin-left: var(--sidebar-width);
  transition: margin-left 0.3s;
}
.navbar:hover ~ .nav {
  margin-left: var(--sidebar-expanded-width);
}

.logo {
  font-size: 1.4rem;
  font-weight: 600;
  text-transform: uppercase;
}
.logo span {
  color: var(--main-color);
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--container-color);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  gap: 0.5rem;
}
.search-box input {
  background: transparent;
  border: none;
  color: var(--text-color);
  width: 100%;
}
.search-suggestions {
  position: absolute;
  top: 105%;
  width: 100%;
  background: var(--container-color);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.4);
  max-height: 220px;
  overflow-y: auto;
  z-index: 1000;
}
.search-suggestions div {
  padding: 10px 15px;
  cursor: pointer;
}
.search-suggestions div:hover {
  background: var(--main-color);
  color: #fff;
}
.hidden { display: none; }

/* ✅ Hero Section: Stylish Carousel Layout */
.hero-stylish {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-stylish video {
  position: absolute;
  width: 120%;
  height: 190%;
  top: -47%;
  z-index: -1;
}
.hero-stylish nav {
  display: flex;
  justify-content: space-between;
  padding: 1rem 2rem;
}
.logo_ul {
  display: flex;
  align-items: center;
}
.logo_ul img {
  width: 90px;
  margin-right: 20px;
}
.logo_ul ul {
  display: flex;
  gap: 1rem;
}
.logo_ul li a {
  font-size: 13px;
  color: #fff;
  font-weight: bold;
}
.search_user {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.search_user input {
  padding: 5px 10px;
  border-radius: 20px;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.search_user input::placeholder {
  color: #fff;
}
.search_user img {
  width: 25px;
  border-radius: 50%;
}

/* 🍔 Hamburger Menu */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger-btn .hamburger-line {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background-color: var(--text-color);
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  #mobile-filter-menu {
    position: fixed;
    top: 0;
    right: 0;
    background: #fff;
    width: 250px;
    height: 100%;
    padding: 20px;
    display: none;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  }

  #mobile-filter-menu.hidden {
    display: none;
  }

  #mobile-filter-menu .filter-container {
    margin-top: 20px;
  }

  #mobile-filter-menu button {
    background-color: #e50914;
    color: #fff;
    padding: 10px;
    border: none;
    cursor: pointer;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    background: var(--container-color);
    width: 100%;
    height: 100%;
    display: none;
    z-index: 999;
  }

  .navbar.open {
    display: flex;
    width: 100%;
  }

  .navbar a {
    font-size: 1.2rem;
    padding: 1rem;
  }
}

/* ✅ Hero Content */
.hero-stylish .content {
  position: absolute;
  top: 30%;
  left: 50px;
  color: #fff;
  max-width: 500px;
}
.hero-stylish .content h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}
.hero-stylish .content p {
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.hero-stylish .details {
  display: flex;
  gap: 1rem;
  font-size: 0.8rem;
}
.hero-stylish .details h3 span {
  background: var(--accent-color);
  color: #000;
  padding: 0 5px;
  margin: 0 5px;
}
.hero-stylish .btns {
  margin-top: 15px;
}
.hero-stylish .btns a {
  padding: 10px 15px;
  background: var(--main-color);
  color: white;
  border-radius: 5px;
  margin-right: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ✅ Hero Cards Row */
.hero-stylish section {
  position: absolute;
  bottom: 2%;
  width: 100%;
  padding: 0 50px;
  color: #fff;
}
.hero-stylish section h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.hero-stylish section .cards {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}
.hero-stylish section .card {
  min-width: 130px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  cursor: pointer;
  transition: 0.3s;
}
.hero-stylish section .card:hover {
  min-width: 300px;
}
.hero-stylish section .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-stylish section .card .cont {
  padding: 10px;
}
.hero-stylish section .sub {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.hero-stylish section .sub span {
  background: var(--accent-color);
  color: black;
  padding: 0 4px;
  font-size: 10px;
  border-radius: 3px;
}
.hero-stylish i.bi {
  position: absolute;
  top: 45%;
  font-size: 24px;
  background: rgba(255,255,255,0.3);
  padding: 5px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.hero-stylish i.bi-chevron-left {
  left: 20px;
}
.hero-stylish i.bi-chevron-right {
  right: 20px;
}
.hero-stylish section:hover i.bi {
  display: block;
}

/* ✅ Movie Cards Grid */
.movies-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1.5rem;
  padding: 1rem;
}
.movie-box {
  position: relative;
  height: 270px;
  border-radius: var(--border-radius);
  overflow: hidden;
  cursor: pointer;
  transition: 0.3s;
}
.movie-box:hover {
  transform: scale(1.05);
}
.movie-box-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.box-text {
  position: absolute;
  bottom: 0;
  background: linear-gradient(to top, #000, transparent);
  padding: 1rem;
  width: 100%;
  opacity: 0;
  transition: 0.3s;
}
.movie-box:hover .box-text {
  opacity: 1;
}
.movie-title {
  font-size: 1rem;
  font-weight: 600;
}
.movie-type {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ✨ UPDATED Hero Section Trailer Fullscreen Layout */
.hero-stylish {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero-stylish video,
.hero-stylish iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

#bmc-wbtn {
  right: auto !important;
  left: 18px !important;
}

footer {
  background: #12151c;
  padding: 2rem;
  text-align: center;
  color: #777;
  font-size: 0.9rem;
}
