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

body {
  background: black;
  color: white;
  font-family: Arial, sans-serif;
  display: flex;
}

/* Sidebar */
.sidebar {
  width: 80px;
  height: 100vh;
  background: black;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 20px;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.3s ease-in-out;
  overflow: visible;
}

.sidebar:hover {
  width: 250px;
  background: linear-gradient(to right, black, transparent);
}

.brand-logo {
  width: 50px;
  margin-bottom: 5px;
  transition: width 0.3s;
}

.sidebar:hover .brand-logo {
  width: 80px;
}

.nav-links {
  list-style: none;
  width: 100%;
  padding: 0;
  margin-top: 30px;
}

.nav-links li {
  width: 100%;
  text-align: left;
  margin: 15px 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 18px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
}

.icon {
  font-size: 20px;
  margin-right: 10px;
  background: transparent;
}

.link-text {
  display: none;
}

.sidebar:hover .link-text {
  display: inline;
}

.nav-links a:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Search Box */
.search-box {
  width: 60px;
  padding: 8px;
  background: transparent;
  border: none;
  color: white;
  margin-top: 20px;
  transition: width 0.3s;
}

.sidebar:hover .search-box {
  width: 80%;
}

/* Main Content */
.main-content {
  margin-left: 80px;
  width: calc(100% - 80px);
  padding: 20px;
  transition: margin-left 0.3s;
}

.sidebar:hover ~ .main-content {
  margin-left: 250px;
  width: calc(100% - 250px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  background: linear-gradient(to right, white, transparent);
  width: auto;
}

.hero-content {
  position: absolute;
  z-index: 2;
}

.movie-title {
  font-size: 3rem;
  margin-left: 50px;
  margin-top: 200px;
}

.movie-description {
  margin: 10px 0;
  width: 50%;
  margin-left: 50px;
}

.watch-now {
background: linear-gradient(to right, #2c64ff , rgb(247, 5, 162));
  padding: 10px 50px;
  border: none;
  margin-left: 50px;
  color: white;
  cursor: pointer;
  border-radius: 15px;
}

.add-list {
  background: none;
  border: 2px solid white;
  padding: 10px 15px;
  color: white;
  cursor: pointer;
  border-radius: 10px;
}

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

.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-video {
  position: absolute;
}

.video-card:hover .video-card-image {
  display: none;
}

.title {
  color: #fff;
  opacity: 0.9;
  padding-left: 0;
  text-transform: capitalize;
  font-size: 22px;
  font-weight: 500;
}

.movies-list {
  width: 100%;
  height: 220px;
  position: relative;
  margin: 10px 0 20px;
}

.card-container {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  margin: 0 auto;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
}

.card {
  position: relative;
  min-width: 150px;
  width: 150px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 10px;
  transition: 0.5s;
}

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

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

.card:hover .card-body {
  opacity: 1;
}

.card-body {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0), #192133 90%);
  padding: 10px;
  transition: 0.5s;
}

.name {
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  text-transform: capitalize;
  margin-top: 60%;
}

.des {
  color: #fff;
  opacity: 0.8;
  margin: 5px 0;
  font-weight: 500;
  font-size: 12px;
}

.watchlist-btn {
  position: relative;
  width: 100%;
  text-transform: capitalize;
  background: none;
  border: none;
  font-weight: 500;
  text-align: right;
  color: rgba(255, 255, 255, 0.5);
  margin: 5px 0;
  cursor: pointer;
  padding: 10px 5px;
  border-radius: 5px;
}

.watchlist-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -5px;
  height: 35px;
  width: 35px;
  background-image: url(images/add.png);
  background-size: cover;
  transform: scale(0.4);
}

.watchlist-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pre-btn,
.nxt-btn {
  position: absolute;
  top: 0;
  width: 5%;
  height: 100%;
  z-index: 2;
  border: none;
  cursor: pointer;
  outline: none;
}

.pre-btn {
  left: 0;
  background: linear-gradient(to right, #0c111b 0%, #0c111b00);
}

.nxt-btn {
  right: 0;
  background: linear-gradient(to left, #0c111b 0%, #0c111b00);
}

.pre-btn img,
.nxt-btn img {
  width: 15px;
  height: 20px;
  opacity: 0;
}

.pre-btn:hover img,
.nxt-btn:hover img {
  opacity: 1;
}


.video-card-container {
  position: relative;
  width: 100%;
  margin: auto;
  height: 10vw;
  display: flex;
  margin-bottom: 20px;
  justify-content: space-between;
}

.video-card {
  position: relative;
  min-width: calc(100% / 5 - 10px);
  width: calc(100% / 5 - 10px);
  height: 100%;
  border-radius: 5px;
  overflow: hidden;
  background: #030b17;
}

.video-card-image,
.card-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-video {
  position: absolute;
}

.video-card:hover .video-card-image {
  display: none;
}


.top-10-container {
  position: relative;
  width: 100%;
  height: 220px;
  display: flex;
  margin: 0 auto;
  align-items: center;
  overflow-x: auto;
  overflow-y: visible;
  scroll-behavior: smooth;
}

.movie {
  position: relative;
  min-width: 150px;
  width: 150px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 10px;
  transition: 0.5s;
}

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

.movie:hover {
  transform: scale(1.1);
}

.movie:hover .movie-body {
  opacity: 1;
}

.movie-body {
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(4, 8, 15, 0), #192133 90%);
  padding: 10px;
  transition: 0.5s;
}


.rank {
  position: absolute;
  top: 120px;
  background: transparent;
  color: rgb(255, 255, 255);
  font-size: 80px;
  font-weight: bold;
  border-radius: 5px;
  background-clip: text;
  -webkit-background-clip: text;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}
footer {
  background-color: black;
  color: white;
  padding: 40px;
  font-family: Arial, sans-serif;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: auto;
  margin: initial;
  padding-bottom: 20px;
}

.footer-section {
  width: 22%;
  min-width: 200px;
}

.footer-section h4 {
  margin-bottom: 10px;
  font-size: 16px;
}

.footer-section a, .footer-section p {
  color: gray;
  display: block;
  margin: 5px 0;
  text-decoration: none;
  font-size: 14px;
}

.footer-section a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.social-icons img {
  width: 20px;
}

.app-buttons {
  margin-top: 10px;
}

.app-buttons img {
  width: 120px;
  margin-right: 10px;
}



.footer-bottom a {
  margin: 0 10px;
  color: gray;
  text-decoration: none;
}

.footer-bottom a:hover {
  color: white;
}