/* General Reset */
@import url("https://fonts.googleapis.com/css2?family=Lacquer&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

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

body {
  font-family: "Poppins", sans-serif;
  background-color: #121212;
  color: white;
  line-height: 1.6;
  font-size: 16px;
  width: 100%;
  height: 100vh;
}

/* Style for the entire scrollbar */
body::-webkit-scrollbar {
  width: 5px; /* Adjust the width of the scrollbar */
}

/* Style for the scrollbar thumb (the draggable part) */
body::-webkit-scrollbar-thumb {
  background-color: #e50914;
  border-radius: 100px; /* Rounded corners for the thumb */
}

/* Optional: Styling for the scrollbar track (the background part) */
body::-webkit-scrollbar-track {
  background-color: #000; /* Light color for the track */
  border-radius: 100px;
}

/* Style for the modal body scrollbar */
.modal-body::-webkit-scrollbar,
.search-results::-webkit-scrollbar,
#offcanvasPanel::-webkit-scrollbar {
  display: none;
}

/* Basic styling for navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  color: #fff;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  transition: background-color 0.5s ease-in-out, opacity 0.5s ease-in-out; /* Smooth fade transition */
}

.navbar-brand {
  display: flex;
  align-items: center;
  flex-direction: row;
  gap: 2rem;
}

.navbar.scrolled {
  background-color: rgba(0, 0, 0, 0.9); /* Dark background when scrolling */
  backdrop-filter: blur(10px);
  opacity: 1; /* Fully visible */
}

.navbar .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #e50914;
  font-size: 1.8rem;
  font-family: "Lacquer", serif;
  text-transform: uppercase;
  font-weight: 600;
}

.navbar .logo-img {
  width: 50px; /* Adjust the size of your logo image */
  height: auto;
}

/* Styling for navigation links */
.navbar-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.navbar-link {
  position: relative;
  font-weight: 600;
  padding-bottom: 5px;
}

.navbar-link.active {
  color: #ff0000; /* Change to your desired active color */
  font-weight: bold;
  border-bottom: 2px solid #ff0000; /* Optional: Add an underline */
}

.navbar-link::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  margin-top: 5px;
  background-color: #e50914;
  transform-origin: bottom left;
  transition: transform 0.5s ease-out;
}

.navbar-link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.navbar-links li a {
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
}

.navbar-links li a:hover {
  color: #e50914;
}

/* Mobile Navbar (Icons at the bottom) */
.navbar-mobile {
  display: none;
}

.navbar-mobile a {
  display: block;
  padding: 12px;
  color: #e50914;
  text-align: center;
  transition: color 0.3s ease;
  text-decoration: none;
}

.navbar-mobile p {
  font-size: 11px;
}

.navbar-mobile a:hover {
  color: #fff;
}

/* Hero Section Styling */
.hero {
  position: relative;
  width: 100%;
  height: 80vh;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: absolute;
  bottom: 5%;
  left: 3%;
  color: white;
  max-width: 500px;
  z-index: 4;
}

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

.hero-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #0000003f 0%, #121212 100%);
  z-index: 3;
}

.cta-btn {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  padding: 10px;
  background-color: #fff;
  color: #000; /* Red color for the play icon */
  border: none;
  border-radius: 5px; /* Make the button round */
  font-size: 16px;
  margin-top: 20px;
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.cta-btn:hover {
  background-color: #f0f0f0; /* Light hover effect */
}

.media-rating {
  color: #ffd700;
  font-weight: bold;
}

#spotlight-description {
  font-size: 16px;
  line-height: 1.5;
  width: 50%;
  margin-bottom: 20px;
  z-index: 0;
}

/* Movie List Section Styling */
.movie {
  padding: 50px;
  padding-bottom: 0px;
}

.movie h2 {
  font-size: 2rem; /* Adjust size as needed */
  font-weight: bold;
  color: #fff;
  position: relative;
  display: inline-block;
  /* margin-bottom: 20px; */
}

.movie h2::after {
  content: "";
  display: block;
  width: 50px; /* Adjust width as needed */
  height: 4px; /* Line thickness */
  background: #e50914; /* Accent color */
  margin-top: 5px;
  border-radius: 2px;
}

/* Swiper container adjustment */
.swiper-container {
  width: 100%;
  padding: 20px 5px 20px 5px;
  overflow-x: hidden;
}

/* General Styling for Movie Card */
.movie-card {
  position: relative;
  background-color: #222;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease-in-out;
  animation: fadeIn 0.8s ease-in-out;
}

.movie-card img {
  display: block;
  object-fit: cover; /* Ensure the image covers the entire card */
  object-position: center; /* Center the image */
}

.movie-card:hover {
  transform: scale(1.05);
}

.movie-card .movie-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
  height: 100%;
  width: 100%;
  color: #fff;
  padding: 10px;
  text-align: center;
  align-content: center;
  opacity: 0; /* Initially hide the content by making it transparent */
  visibility: hidden; /* Hide the content */
  transition: opacity 0.3s ease-in-out, visibility 0s linear 0.3s; /* Fade out/in effect */
}

.movie-card:hover .movie-info {
  opacity: 1; /* Fade in content */
  visibility: visible; /* Make it visible */
  transition: opacity 0.3s ease-in-out; /* Fade in smoothly */
}

.movie-card .movie-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
}

.movie-card .movie-info p {
  font-size: 14px;
  margin: 5px 0;
}

.movie-card .movie-info .overview {
  font-size: 12px;
}

.movie .selector {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
  list-style: none;
}

.selector .selector-navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.selector-tab,
.netflix-tab {
  position: relative;
  font-weight: 600;
  padding: 10px 10px;
  color: #fff;
  text-decoration: none;
  border-bottom: 2px solid transparent; /* Default border */
  cursor: pointer;
  transition: all 0.3s ease;
}

.selector-tab::after,
.netflix-tab::after {
  content: "";
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: 0;
  left: 0;
  margin-top: 5px;
  background-color: #e50914;
  transform-origin: bottom left;
  transition: transform 0.5s ease-out;
}

.selector-tab:hover:after,
.netflix-tab:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.selector-tab.active,
.netflix-tab.active {
  color: #b20710; /* Active tab text color */
  border-bottom: 2px solid #ff0000;
}

/* Define the fade-in animation */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  align-content: center;
  opacity: 1;
}

.modal-content {
  background-color: #1a1a1a;
  border-radius: 10px;
  width: 30%; /* 80% of the screen width */
  height: 95%; /* 90% of the screen height */
  max-width: none; /* Remove max-width restriction */
  color: #fff;
  position: relative;
  display: flex;
  flex-direction: column; /* Stack elements vertically */
  justify-self: center;
  background-size: cover;
  background-position: center 130px;
  background-repeat: no-repeat;
  margin: auto; /* Center the modal */
  animation: zoomIn 0.5s ease-out; /* Apply the zoomIn animation */
  transform-origin: center center; /* Ensures zoom happens from center */
  will-change: transform, opacity; /* Optimizes animations */
}

@keyframes zoomIn {
  0% {
    opacity: 0;
    transform: scale(0.5); /* Start smaller (50% of original size) */
  }
  100% {
    opacity: 1;
    transform: scale(1); /* End at original size */
  }
}

.modal-content.zoom-out {
  animation: zoomOut 0.5s ease-out forwards;
}

@keyframes zoomOut {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.5);
  }
}

.modal-body {
  display: flex;
  justify-content: center;
  align-items: flex-start; /* Align the content at the top */
  flex-direction: column;
  gap: 20px;
  flex: 1; /* Take up remaining space */
  overflow-y: auto; /* Add scroll if content overflows */
  background-color: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 0 0 10px 10px;
}

.modal-details {
  width: 100%;
  height: 100%;
  font-size: 0.88rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-bottom: 10px;
}

.modal-rating {
  color: #ffc107;
}

.close-modal {
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.6);
  font-size: 20px;
  padding: 0px 9px;
  border: 1.5px solid #fff;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  top: 9px;
  cursor: pointer;
  z-index: 99;
}

.movie-header {
  width: 100%;
  height: fit-content;
  overflow: hidden;
  border-radius: 10px 10px 0 0; /* Rounded top corners */
  /* position: relative; Ensure the iframe is positioned correctly */
}

.poster-container {
  position: relative;
}

.poster {
  width: 100%; /* Adjust as needed */
  height: auto;
  display: block;
}

.anime-poster {
  width: 100%; /* Adjust as needed */
  height: auto;
  min-height: 324px;
  display: block;
  object-fit: cover;
}

.rating-container {
  position: absolute;
  bottom: 10px; /* Adjust distance from the bottom as needed */
  right: 10px; /* Adjust distance from the left as needed */
  color: white;
  font-size: 14px; /* Adjust font size as needed */
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 5px;
  padding: 5px;
}

.playButton {
  margin: auto;
  padding: 13px 0px;
  padding-bottom: 0;
}

.play {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #000;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

#modalDescription {
  width: 95%;
}

.desc {
  padding-top: 15px;
  padding-bottom: 10px;
}

.recom {
  padding-top: 30px;
}

.cast {
  width: 100%; /* Ensure the description and cast section take full width */
  justify-self: center;
}

#modalCast {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 5px;
}

.actor {
  text-align: center;
}

.actor img {
  width: 80px;
  height: 120px;
  border-radius: 8px;
}

.actor p {
  margin-top: 5px;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

/* Back button styles */
#backButton {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: transparent; /* Semi-transparent red background */
  color: white;
  padding: 25px; /* Padding around the icon */
  font-size: 40px; /* Icon size */
  font-weight: bold;
  border: none;
  border-radius: 50%; /* Make it round */
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px; /* Width of the button */
  height: 50px; /* Height of the button */
}

/* Hover effect */
#backButton:hover,
#seasonButton:hover {
  border: #ffffffb3 2px solid;
  box-shadow: 0 0 10px #ffffffb3;
  transform: scale(1.1); /* Slightly enlarge the button on hover */
}

/* Focused effect (when clicked or focused by keyboard) */
#backButton:focus,
#seasonButton:focus {
  outline: none; /* Remove the default focus outline */
  box-shadow: 0 0 10px #ffffffb3; /* Add red glow */
}

#toggleServerButton {
  position: fixed;
  background-color: transparent;
  color: #fff;
  border-radius: 5px;
  border: none;
  top: 50%;
  right: 0;
  padding: 10px 15px;
  padding-right: 0px;
  font-size: 20px;
  cursor: pointer;
  transition: right 0.3s ease;
  z-index: 1000;
}

#offcanvasPanel {
  position: fixed;
  top: 0;
  width: 300px;
  height: 100%;
  background-color: #1e1e1e;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.5);
  transition: right 0.3s ease;
  z-index: 1001;
  overflow: auto;
}

#offcanvasPanel li {
  padding: 10px;
  margin-bottom: 5px;
  background-color: #333;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease,
    box-shadow 0.3s ease;
}

#offcanvasPanel li:hover {
  background-color: #555;
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#offcanvasPanel li.selected {
  background-color: #555;
}

.movie-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 30px;
  padding: 100px;
  padding-top: 0;
}

.movie-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.movie-card:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.movie-poster {
  width: 100%;
  min-height: 100%;
  display: block;
}

.genre-tabs {
  padding: 20px 100px; /* Reduced padding for smaller screens */
  padding-bottom: 2rem;
  margin-top: 6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 8px; /* Reduced gap for smaller screens */
  justify-content: center;
}

.genre-tab {
  font-family: "Poppins", sans-serif;
  padding: 10px 18px; /* Reduced padding for smaller screens */
  background-color: #333;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-size: 16px; /* Smaller font size for mobile */
  display: flex;
  align-items: center;
  justify-content: center;
}

.genre-tab:hover {
  background-color: #444;
}

.genre-tab:focus {
  outline: none;
  background-color: #555;
}

.genre-badge {
  display: inline-block;
  background-color: #e50914c0;
  padding: 2px 4px;
  border-radius: 12px;
  font-size: 10px;
  margin: 2px;
  color: #fff;
}

.recommendation {
  display: flex;
  align-items: center;
  background-color: #1e1e1e;
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.recommendation-poster {
  flex: 0 0 130px; /* Fixed width for the poster */
  margin-right: 20px;
}

.recommendation-poster img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.recommendation-details {
  flex: 1;
}

.recommendation-details h4 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: bold;
}

.recommendation-details p {
  margin: 5px 0;
  font-size: 0.9rem;
}

.recommendation-details .description {
  font-size: 0.75rem;
  color: #606060;
  line-height: 1.4;
}

#kidsmobile {
  padding-bottom: 2rem;
}

.disclaimer {
  color: #e50914;
  font-weight: bold;
  padding-bottom: 10px;
  font-size: 1.2rem;
}

.consent {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 9999; /* Sit on top */
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.7); /* Background with opacity */
  opacity: 1;
  top: 50%; /* Position 50% from the top */
  left: 50%; /* Position 50% from the left */
  transform: translate(-50%, -50%); /* Offset by half its width and height */
}

/* Content of the modal */
.consent-content {
  background-color: #1a1a1a;
  margin: 15% auto; /* Center the modal vertically with 15% margin from the top */
  padding: 20px;
  width: 80%; /* Default width for larger screens */
  max-width: 550px; /* Maximum width */
  border-radius: 10px;
  animation: zoomIn 0.5s ease-out; /* Apply the zoomIn animation */
}

/* Body of the consent content */
.consent-body {
  padding-bottom: 20px;
  text-align: center;
}

.modal-footer {
  padding: 10px 0;
  text-align: center;
  cursor: pointer;
  background-color: #e50914;
  color: white;
  border-radius: 5px;
}

.modal-footer:hover {
  background-color: #b20710;
}

.play-button-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.85);
  font-size: 40px;
  padding: 10px 12px;
  border: 2px solid #fff;
  border-radius: 50%;
  cursor: pointer;
}

.trailer {
  height: 324px;
  border: none;
  display: block;
}

/* Add smooth transitions for the dropdown panel */
#dropdownPanel {
  transition: transform 0.3s ease-in-out;
  transform: translateY(100%);
}

#dropdownPanel[style*="display: block"] {
  transform: translateY(0);
}

.episode {
  margin-top: 15px;
}

.episode-image-container {
  position: relative;
  width: 100%;
  height: auto;
}

.episode-image {
  width: 100%;
  height: auto;
  display: block;
}

.episodes-image {
  width: 100%;
  height: 150px;
  display: block;
  object-fit: cover;
}

.episodes {
  font-size: 13px !important;
}

.play-episode {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85); /* Semi-transparent overlay */
  border: 2px solid #fff;
  color: #fff;
  padding: 7px 8px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  text-align: center;
}

.episode h4 {
  margin: 10px 0;
  font-size: 18px;
}

.episode p {
  font-size: 14px;
  color: #ccc;
}

.play-episode i {
  font-size: 2rem;
  margin-left: 3px;
}

#seasonButton {
  position: absolute;
  top: 20px;
  right: 20px;
  background-color: transparent; /* Semi-transparent red background */
  color: white;
  padding: 25px; /* Padding around the icon */
  font-size: 28px; /* Icon size */
  font-weight: bold;
  border: none;
  border-radius: 50%; /* Make it round */
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 50px; /* Width of the button */
  height: 50px; /* Height of the button */
}

#seasonDropdown {
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 5px;
  width: 130px;
  cursor: pointer;
}

.coffee {
  display: none;
}

/* Disable default Swiper button styles */
.swiper-button-prev::after,
.swiper-button-next::after {
  display: none; /* Hide the default arrow */
}

/* Custom styles for the buttons */
.swiper-button-prev,
.swiper-button-next {
  width: 50px;
  height: 50px;
  background-color: rgba(0, 0, 0, 0.8); /* Netflix black background */
  padding: 25px;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  display: flex;
  font-size: 1.5rem;
  align-items: center;
  justify-content: center;
  color: #fff !important; /* White text for contrast */
  position: relative; /* Ensure positioning works for custom arrows */
}

/* Hover effect */
.swiper-button-prev:hover,
.swiper-button-next:hover {
  background-color: rgba(0, 0, 0, 1); /* Solid black on hover */
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

/* Netflix-themed gradient background */
.swiper-button-prev::before,
.swiper-button-next::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #b20710);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.swiper-button-prev:hover::before,
.swiper-button-next:hover::before {
  opacity: 1;
}

/* Custom arrow icons */
.swiper-button-prev .custom-arrow,
.swiper-button-next .custom-arrow {
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff; /* White arrows */
  border-left: 2px solid #fff;
  transform: rotate(-45deg);
  position: relative;
  z-index: 1;
}

.swiper-button-next .custom-arrow {
  transform: rotate(135deg);
}

/* Optional: Add a subtle animation on hover */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  animation: pulse 1s infinite;
}

.search-container {
  padding-bottom: 2rem;
}

/* Button style - Netflix-like */
.search-btn {
  background-color: transparent; /* Transparent background */
  color: #ffffff; /* White icon color */
  border: none; /* White border */
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease; /* Smooth transition for hover */
}

/* Hover effect */
.search-btn:hover {
  color: #e50914; /* Red border on hover */
  transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Icon styling */
.search-btn i {
  font-size: 19px; /* Make the icon a bit larger */
  font-weight: bold;
}

/* Search and Filter Section */
.search-filter {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 30px;
  margin-top: 5rem;
}

#search-input,
#searchInput {
  font-family: "Poppins", sans-serif;
  padding: 15px;
  padding-right: 40px;
  width: 70%;
  border: none;
  border-radius: 5px;
  background-color: #1e1e1e;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  color: white;
  font-size: 1rem;
}

#clear-input {
  position: relative;
  font-size: 23px;
  right: 44px;
  top: 11px;
  cursor: pointer;
  color: #aaa;
  display: none;
}

#clear-input:hover {
  color: #e50914;
}

#filter {
  font-family: "Poppins", sans-serif;
  padding: 15px;
  border-radius: 5px;
  border: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  background-color: #1e1e1e;
  color: white;
  font-size: 1rem;
}

#backToTopBtn {
  display: none;
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  border: none;
  outline: none;
  background-color: #e50914;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  padding: 15px 17px;
  border-radius: 50%;
  font-size: 18px;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#backToTopBtn:hover {
  background-color: #b20710;
  transform: scale(1.1);
}

#backToTopBtn i {
  vertical-align: middle;
}

/* No Results Found Style */
.no-results {
  display: none;
  text-align: center;
  font-size: 1.5rem;
  color: #e50914; /* Reddish color for emphasis */
  font-weight: 600;
  margin: 2rem 0rem;
  padding: 1rem;
  justify-content: center;
  align-items: center;
  background-color: #2c2c2c; /* Dark background */
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Optional: Add an icon */
.no-results::before {
  content: "😕"; /* Emoji or icon */
  display: block;
  font-size: 3rem;
  margin-bottom: 0.5rem;
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.modal-content {
  transition: transform 0.8s;
  transform-style: preserve-3d;
}

.modal-content.flipped {
  transform: rotateY(180deg);
}

.modal-front,
.modal-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

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

#duration {
  color: #ccc;
  font-weight: 600;
  font-size: 0.9em;
  padding-left: 7px;
}

.spinner {
  border: 4px solid #fff;
  border-top: 4px solid #e50914;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.actor-img-wrapper {
  position: relative;
  overflow: hidden;
}

.actor-img-wrapper img {
  display: block;
  width: 100%;
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

.actor-img-wrapper .va-img {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.actor-img-wrapper:hover .char-img {
  opacity: 0;
}

.actor-img-wrapper:hover .va-img {
  opacity: 1;
}

.info {
  display: flex;
  gap: 30px;
}

/* --------------------------------------------------------------------------Media Query for Mobile Screens--------------------------------------------------------- */

/* Mobile Navbar: Show on small screens */
@media (max-width: 768px) {
  .navbar-links,
  .navbar-actions,
  footer {
    display: none; /* Hide the regular links on mobile */
  }

  #bmc-wbtn {
    display: none !important;
  }

  .navbar-brand {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    height: 65vh;
  }

  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content {
    font-size: 0.85rem;
    width: 90%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    bottom: 0;
  }

  .cta-btn {
    width: 80%;
    margin: auto;
    margin-top: 0.6rem;
    font-size: 0.9rem;
  }

  .navbar-mobile {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 1);
    z-index: 1000;
    line-height: 1.3;
  }

  .navbar-mobile a {
    padding: 12px;
    font-size: 1.5rem;
    text-wrap: nowrap;
  }

  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    padding: 10px;
  }

  .movie {
    padding: 20px;
    padding-bottom: 0px;
  }

  .movie h2 {
    font-size: 25px;
    text-wrap: nowrap;
  }

  .selector-navbar .selector-tab,
  .selector-navbar .netflix-tab {
    text-wrap: nowrap;
    font-size: 15px;
  }

  .movie-card .movie-info .overview {
    font-size: 11px;
  }

  .movie-card .movie-info .media-title {
    font-size: 17px;
  }

  .movie-card .movie-info .media-date,
  .movie-card .movie-info .media-rating {
    font-size: 13px;
  }

  .modal-content {
    width: 100%; /* 80% of the screen width */
    height: 100%; /* 90% of the screen height */
    max-width: none; /* Remove max-width restriction */
    border-radius: 0;
  }

  .movie-container {
    grid-template-columns: repeat(
      auto-fill,
      minmax(115px, 1fr)
    ); /* Smaller columns on tablets */
    padding: 0;
    gap: 12px;
  }

  .genre-tabs {
    padding: 10px 5px; /* Further reduced padding for mobile */
    gap: 5px; /* Smaller gap for mobile */
    margin-top: 3rem;
  }

  .genre-tab {
    padding: 6px 12px; /* Smaller padding for mobile */
    font-size: 12px; /* Smaller font size for mobile */
  }

  .recommendation-poster {
    flex: 0 0 120px; /* Fixed width for the poster */
  }

  #kidsmobile {
    padding-bottom: 4.8rem;
  }

  .search-container {
    padding-bottom: 5.5rem;
  }

  .consent {
    width: 100%; /* Full width for small devices */
    height: 100%; /* Full height */
    background-color: rgba(
      0,
      0,
      0,
      0.8
    ); /* Darker background on smaller screens */
  }

  .consent-content {
    width: 90%; /* Adjust width for smaller devices */
    height: auto; /* Allow content height to grow */
    margin: 20% auto; /* Increase the margin for better positioning */
    margin-top: 13rem;
    font-size: 0.85rem;
  }

  #offcanvasPanel h5 {
    font-size: 16px; /* Reduce header font size */
  }

  #offcanvasPanel li {
    padding: 8px; /* Reduce list item padding */
    font-size: 14px; /* Reduce list item font size */
  }

  .trailer {
    height: 240px;
  }

  .episode h4 {
    font-size: 17px;
  }

  .episode p {
    font-size: 13px;
  }

  .coffee {
    display: block;
    width: 40px;
    height: 35px;
  }

  .swiper-button-prev,
  .swiper-button-next {
    padding: 22px;
    font-size: 1rem;
  }

  #backToTopBtn {
    bottom: 80px;
    right: 20px;
    cursor: pointer;
    padding: 13px 15px;
    font-size: 15px;
  }

  .play-button {
    padding: 9px 13px;
  }

  .no-results {
    font-size: 1.2rem;
    margin: 1rem 0rem;
  }

  .no-results::before {
    font-size: 2.1rem;
  }

  .anime-poster {
    min-height: 240px;
  }
}

footer {
  background-color: #1e1e1e;
  color: #888;
  text-align: center;
  padding: 25px;
  bottom: 0;
}

/* Server Ads Badge Dot and Label */
.badge-dot::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 7px;
}
.badge-dot.no-ads::before {
  background: #16c60c;
}
.badge-dot.minimal-ads::before {
  background: #ffd600;
}
.badge-dot.heavy-ads::before {
  background: #e50914;
}
.badge-label {
  color: #fff;
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0.01em;
  opacity: 0.89;
}

/* Badge dot animation: slide in left with delay */
.badge-dot {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.48s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.48s cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: 0.1s;
}
.badge-label {
  opacity: 0;
  transform: translateX(35px);
  transition: opacity 0.55s cubic-bezier(0.33, 1, 0.68, 1),
    transform 0.55s cubic-bezier(0.33, 1, 0.68, 1);
  transition-delay: 0.23s;
}
#offcanvasPanel li:hover .badge-dot {
  opacity: 1;
  transform: translateX(0);
}
#offcanvasPanel li:hover .badge-label {
  opacity: 1;
  transform: translateX(0);
}
