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

html {
  font-family: Arial, Helvetica, sans-serif;
  color: white;
  background-color: #1a1d29;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 28px;
  width: 100%;
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.8);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.logo {
  width: 80px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s;
}

.logo:hover {
  transform: scale(1.05);
}

.nav-desktop {
  display: none;
  gap: 32px;
}

.nav-mobile {
  display: flex;
  gap: 20px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: opacity 0.2s;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width 0.3s;
}

.nav-item:hover::after {
  width: 100%;
}

.nav-item:hover {
  opacity: 0.9;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.menu-toggle {
  cursor: pointer;
  display: flex;
  align-items: center;
  color: white;
}

.menu-toggle svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.dropdown-menu {
  position: absolute;
  top: 50px;
  left: 200px;
  background-color: #121212;
  border: 1px solid #3a3a3a;
  padding: 16px 20px;
  border-radius: 8px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.5);
}

.hidden {
  display: none !important;
}

.avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: fill;
  cursor: pointer;
}

.slider-section {
  position: relative;
  margin-top: 8px;
}

.slider-track {
  display: flex;
  overflow-x: scroll;
  scroll-behavior: smooth;
  padding: 16px 64px;
  gap: 20px;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-track img {
  min-width: 100%;
  height: 310px;
  object-fit: fill;
  object-position: center;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease-in;
}

.slider-track img:hover {
  opacity: 0.85;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 28px;
  padding: 12px 14px;
  cursor: pointer;
  z-index: 10;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.slider-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.slider-btn-left {
  left: 8px;
}

.slider-btn-right {
  right: 8px;
}

.production-section {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
  flex-wrap: wrap;
}

.production-card {
  position: relative;
  width: 180px;
  height: 100px;
  border: 1px solid #2e3140;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d0f14;
  transition: transform 0.3s ease-in-out;
}

.production-card:hover {
  transform: scale(1.1);
}

.production-logo {
  width: 100%;
  z-index: 1;
  opacity: 1;
}

.production-video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  z-index: 0;
  border-radius: 8px; 
  transition: opacity 0.3s;
}

.production-card:hover .production-video {
  opacity: 0.5;
}

.hidden-mobile {
  display: none;
}

@media (min-width: 768px) {
  .logo {
    width: 115px;
  }
  .nav-desktop {
    display: flex;
  }
  .nav-mobile {
    display: none;
  }
  .menu-toggle {
    display: none;
  }
  .dropdown-menu {
    display: none !important;
  }
  .production-card {
    width: 220px;
    height: 120px;
  }
  .hidden-mobile {
    display: block;
  }
}

@media (max-width: 767px) {
  .slider-track img {
    height: 200px;
  }
  .header {
    padding: 8px 16px;
  }
  .production-card {
    width: 140px;
    height: 80px;
  }
}

/* Genre Movie Section */
.genre-movie-section {
  padding: 0 16px;
  max-width: 100vw;
}

.genre-section {
  margin-bottom: 24px;
}

.genre-title {
  font-size: 20px;
  font-weight: bold;
  padding: 0 8px 12px 32px;
  color: white;
}

.movie-list-container {
  position: relative;
}

.movie-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 16px 12px;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.movie-list::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-width: 110px;
  width: 110px;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.15s ease-in;
}

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

.hr-movie-card-container {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  min-width: 110px;
  width: 110px;
  transition: all 0.15s ease-in;
}

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

.hr-movie-card {
  width: 100%;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.15s ease-in;
}

.hr-movie-card-container:hover .hr-movie-card {
  opacity: 0.85;
}

.hr-movie-title {
  color: white;
  margin-top: 8px;
  font-size: 14px;
}

.movie-list-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: white;
  border: none;
  font-size: 35px; 
  cursor: pointer;
  z-index: 10;
  display: none;
}

.movie-btn-left {
  left: 0;
}

.movie-btn-right {
  right: 0;
}

@media (min-width: 768px) {
  .genre-movie-section {
    padding: 0 40px;
  }
  .movie-card {
    min-width: 200px;
    width: 200px;
  }
  .hr-movie-card-container {
    min-width: 260px;
    width: 260px;
  }
  .hr-movie-title {
    font-size: 16px;
  }
  .movie-list-btn {
    display: block;
  }
  .movie-list {
    padding: 16px 20px;
  }
}

/* ── Search & Sort ── */

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: white;
  font-size: 14px;
  padding: 6px 36px 6px 14px;
  width: 160px;
  outline: none;
  transition: width 0.3s, border-color 0.3s, background 0.3s;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.search-input:focus {
  width: 220px;
  border-color: #0063e5;
  background: rgba(255, 255, 255, 0.13);
}

.search-icon {
  position: absolute;
  right: 10px;
  font-size: 15px;
  pointer-events: none;
  opacity: 0.6;
}

.sort-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 4px 32px;
}

.sort-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.sort-select {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  padding: 5px 12px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.sort-select:hover,
.sort-select:focus {
  border-color: #0063e5;
  background: rgba(255, 255, 255, 0.14);
}

.sort-select option {
  background: #1a1d29;
  color: white;
}

@media (max-width: 767px) {
  .search-input {
    width: 110px;
    font-size: 13px;
  }
  .search-input:focus {
    width: 155px;
  }
  .sort-bar {
    padding: 8px 12px 4px 16px;
  }
}

@media (min-width: 768px) {
  .sort-bar {
    padding: 10px 40px 4px 48px;
  }
}