* {
  box-sizing: border-box;

}

body {
  position: relative;
  margin: 0;
  padding: 0;
  background-color: black;
  color: #fff;
  font-family: Arial, sans-serif;
  overflow: auto;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/images/tvbg.webp) no-repeat center center fixed;
  background-size: cover;
  filter: blur(10px);
  z-index: -1;
}




h1 {
  text-align: center;
  padding: 20px 0;
}




.logo {
  justify-self: center;
  margin: 0;
  top: 0;
  height: 55px;
  width: auto;
  transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
  filter: drop-shadow(0 0 8px #1e90ff);
  /* Subtle glow */
}

/* Hover effect */
.logo:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 15px #4682b4);
  /* Intensified glow */
}

/* Animation for a subtle pulsing effect */
@keyframes logoPulse {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #1e8fff00);
  }

  50% {
    transform: scale(1.05);
    filter: drop-shadow(0 0 12px #4683b400);
  }

  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 8px #1e8fff00);
  }
}

/* Optional pulsing effect on load */
.logo {
  animation: logoPulse 9s infinite ease-in-out;
}

/* Top Navigation Bar */
.topnav {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(19, 23, 32, 0.9);
  padding: 10px 20px;
  position: fixed;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(15px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border-radius: 0 0 30px 30px;
}

/* Logo */


/* Search Container */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0 auto;
}

/* Search Input */
.searchInput {
  background: linear-gradient(135deg, rgba(36, 47, 63, 0.8), rgba(22, 33, 44, 0.9));
  /* Cool gradient */
  color: #fff;
  font-size: 16px;
  padding: 12px 20px;
  border-radius: 30px;
  width: 250px;
  border: none;
  transition: width 0.3s ease-in-out, background 0.3s ease;
}


.searchInput:hover {
  background: rgba(50, 75, 100, 0.9);
  /* Lighter background when focused */
}

.searchInput:focus {
  width: 220px;
  /* Expand input field on focus */
  background: rgba(50, 75, 100, 0.9);
  /* Lighter background when focused */
}

/* Search Button */
.searchButton {
  padding: 12px 20px;
  font-size: 16px;
  background: linear-gradient(90deg, #4682b4, #1e90ff);
  color: white;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s ease-in-out;
}

.searchButton:hover {
  background-color: #4a3a55;
  /* Darker shade on hover */
  transform: scale(1.05);
  /* Slight button enlargement effect */
}

/* Small Media Query Adjustments (For mobile) */
@media (max-width: 768px) {
  .topnav {
    padding: 10px 20px;
  }

  .searchInput {
    width: 180px;
  }

  .searchButton {
    padding: 10px 18px;
  }

  .main-content {
    margin-top: 70px !important;
  }

  .logo {
    justify-self: center;
    margin-bottom: 10px;
    top: 0;
    height: 30px;
    width: auto;
    transition: transform 0.3s ease-in-out, filter 0.3s ease-in-out;
    filter: drop-shadow(0 0 8px #1e90ff);
    /* Subtle glow */
    margin-left: 75%;
  }
}



.main-content {
  width: 100%;
  padding-top: 60px;
  /* Adjust for fixed top nav */
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  /* Ensure main content is above the popular movies */
  margin-top: 20px;
}



.card {
  position: relative;
  border-radius: 10px;
  margin: 10px;
  padding: 0;
  width: 150px;
  /* Keeping the original size */
  height: 200px;
  /* Keeping the original height */
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  flex: 0 0 auto;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.829);
}

.card:hover {
  transform: scale(1);
  /* Slightly less zoom for a more subtle effect */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  /* Deeper shadow for more depth */
}

.card:hover .thumbnail {
  transform: scale(1.3);
}

.thumbnail {
  transition: transform 0.3s, box-shadow 0.3s;
  height: 100%;
  /* Slightly reduced height for better aspect ratio */
  width: 100%;
  /* Make it full width */
  max-width: 100%;
  border-radius: 15px;
  /* Matching rounded corners with the card */
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.774);
  /* Softened box shadow */
  overflow: hidden;
  /* Ensure image stays contained */
}

.show-info {
  position: absolute;
  bottom: 0;
  /* Align text at the bottom of the card */
  left: 0;
  width: 100%;
  /* Ensure it spans across the entire width */
  text-align: center;
  /* Center align the text */
  color: white;
  background-color: rgba(0, 0, 0, 0.6);
  /* Darker background for better visibility */
  padding: 10px 0;
  /* Add padding for a clean look */
  font-size: 8px;
  /* Adjust font size for readability */
  text-transform: uppercase;
  /* Add an all-caps style for emphasis */
  letter-spacing: 1px;
  /* Slight letter-spacing for a cleaner, modern font */
  border-radius: 10px;
  /* Rounded corners for the text box */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  /* Soft shadow for the text box */
}




.rating-badge {
  position: absolute;
  top: 30px;
  right: 0px;
  background-color: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1;
  pointer-events: none;
  transform: rotate(30deg);
  /* Slight rotation for slant */
  transform-origin: top right;
  /* Anchor the rotation to the corner */

}


.card:hover .rating-badge {
  transform: rotate(1deg) scale(1);
  /* Slight change in angle and scale */
  transition: transform 0.3s ease;
  top: 10px;
  right: 0px;
}

.rating-badge i {
  color: #fff;
  /* Set the icon color to white */
  margin-right: 5px;
  /* Add space between the icon and the rating text */
  font-size: 14px;
  /* Adjust the icon size if necessary */
  vertical-align: middle;
  /* Align the icon with the text */
}

.links a {
  text-decoration: none;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 180px;
  height: 50px;
  border-radius: 30px;
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.712);
  backdrop-filter: blur(10px);
}

.links {
  display: flex;
  width: 100%;
  justify-content: center;
  margin: 0 auto;
  gap: 10px;
}

.section-header {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  background: linear-gradient(90deg, #ffffff, #ff5c33);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  transition: transform 0.3s ease;

}

/* Optional: Subtle underline effect on hover */
.section-header:hover {
  text-decoration: underline;
  text-decoration-color: rgba(33, 150, 243, 0.8);
  /* Blue underline for consistency */
  text-decoration-thickness: 3px;
  transition: text-decoration 0.3s ease;
}

/* Optional: Decorative line below the header */
.section-header::after {
  content: "";
  position: absolute;
  bottom: -12px;
  /* Space between the text and the line */
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  /* Width of the line */
  height: 3px;
  /* Height of the line */
  background-color: rgba(33, 150, 243, 0.9);
  /* Soft blue line */
  border-radius: 5px;
}



.pagination {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

.pagination-btn {
  text-decoration: none;
  position: relative;
  border: none;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: #fff;
  width: 70px;
  height: 50px;
  line-height: 2em;
  text-align: center;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 300%;
  border-radius: 30px;
  z-index: 1;
  padding: 10px;
  margin-inline: 10px;
}

.pagination-btn:hover {
  animation: ani 8s linear infinite;
  border: none;
}

@keyframes ani {
  0% {
    background-position: 0%;
  }

  100% {
    background-position: 400%;
  }
}

.pagination-btn:before {
  content: "";
  position: absolute;
  top: -5px;
  left: -5px;
  right: -5px;
  bottom: -5px;
  z-index: -1;
  background: linear-gradient(90deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
  background-size: 400%;
  border-radius: 35px;
  transition: 1s;
}

.pagination-btn:hover::before {
  filter: blur(20px);
}

.pagination-btn:active {
  background: linear-gradient(32deg, #03a9f4, #f441a5, #ffeb3b, #03a9f4);
}

/* Responsive design */
@media (max-width: 768px) {
  .topnav {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    width: 120px !important;
    height: 180px !important;
    /* Adjust as needed */
  }

  .container1 {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)) !important;
  }
}

@media only screen and (max-width: 600px) {
  .container {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
  }


  .card {
    width: 100px !important;
    height: 150px !important;
    /* Adjust as needed */
  }


  .searchInput {
    width: 150px;
  }

  .searchButton {
    padding: 10px 15px;
  }

  .error-message {
    font-size: 18px;
    padding: 10px;
  }
}