/* base.css */
/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
  background: #111;
  color: #fff;
  font-family: Arial, sans-serif;
}

/* layout.css */
#main-content {
  flex: 1 0 auto; /* allow main content to grow and fill space */
  padding: 20px 0;
  box-sizing: border-box;
}

.separator {
  height: 36px;
  background-color: #222;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 2px 8px rgba(255, 60, 0, 0.4);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: #ff3c00;
  letter-spacing: 2px;
  user-select: none;
  text-transform: uppercase;
  padding-left: 20px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 20px auto 0 auto;
}

.separator span {
  padding: 0 12px;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  user-select: none;
}

/* navbar.css */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 50px;
  background: #222;
  position: sticky; /* Make navbar sticky */
  top: 0; /* Stick to the top */
  z-index: 1000; /* Make sure it stays on top */
  transition: background-color 0.3s ease, padding 0.3s ease; /* Smooth transition */
}

/* Optional: Change navbar style on scroll */
.navbar.scrolled {
  background: rgba(34, 34, 34, 0.95); /* Slightly transparent */
  padding: 5px 50px; /* Reduce padding on scroll */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.navbar img {
  height: 60px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  margin: 0 5px;
}

/* search.css */
.search-area {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 300px;
  max-width: 100%;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.search-bar {
  width: 100%;
  padding: 12px 18px;
  border-radius: 25px;
  border: 1.5px solid transparent;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  background-color: #222;
  color: #eee;
}

.search-bar::placeholder {
  color: #aaa;
}

.search-bar:focus {
  border-color: #ff3c00;
  box-shadow: 0 0 8px rgba(255, 60, 0, 0.6);
  background-color: #2a2a2a;
}

.search-list {
  position: absolute;
  top: 50px;
  left: 0;
  width: 100%;
  max-height: 400px;
  overflow-y: auto;
  background: #191919;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
  z-index: 1000;
  display: none;
  padding: 8px 0;
}

.search-list.show {
  display: block;
}

.search-list::-webkit-scrollbar {
  width: 8px;
}

.search-list::-webkit-scrollbar-track {
  background: #111;
  border-radius: 8px;
}

.search-list::-webkit-scrollbar-thumb {
  background-color: #555;
  border-radius: 8px;
  border: 2px solid #111;
}

.search-list-item {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background-color 0.25s ease, transform 0.15s ease;
}

.search-list-item:last-child {
  border-bottom: none;
}

.search-list-item:hover {
  background-color: #2f2f2f;
  transform: scale(1.02);
}

.search-list-img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
  background: #444;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  transition: box-shadow 0.3s ease;
}

.search-list-item:hover .search-list-img {
  box-shadow: 0 0 10px rgba(255, 60, 0, 0.8);
}

.search-list-details {
  flex: 1;
  color: #eee;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.search-list-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-list-sub,
.search-list-meta {
  font-size: 0.85rem;
  color: #bbb;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* banner.css */
.banner {
  height: 50vh;
  background-size: cover;
  display: flex;
  align-items: center;
  padding: 20px;
}

.banner h1 {
  background: rgba(0, 0, 0, 0.7);
  padding: 10px;
}

/* lists.css */
body {
  background: #111;
  margin: 0;
  font-family: Arial, sans-serif;
  color: #fff;
}

.banner {
  background: #333;
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px 12px 0 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
}

.banner h1 {
  margin: 0;
  font-size: 2.5rem;
  letter-spacing: 1.5px;
}

/* Separator aligned and stacked above merged-list */
.separator {
  max-width: 1200px; /* Match merged-list max-width */
  width: 100%; /* Full width up to max-width */
  margin: 0 auto 10px auto; /* Center horizontally, small bottom margin */
  font-size: 1.5rem;
  font-weight: bold;
  color: #eee;
  position: relative;
  text-align: center;
  box-sizing: border-box;
  padding: 0 40px; /* Match merged-list horizontal padding */
}

.separator span {
  background: #222;
  padding: 0 15px;
  position: relative;
  z-index: 1;
}

.separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #555;
  z-index: 0;
  transform: translateY(-50%);
}

/* Grid container */
.merged-list {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto 50px auto;
  padding: 20px 40px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); /* Responsive columns */
  gap: 20px;
  justify-items: center; /* Center items horizontally */
  align-items: start; /* Align items to top */
  background: #222;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}

/* Individual grid item */
.grid-item {
  background: #333;
  border-radius: 10px;
  width: 100%;
  max-width: 220px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #eee;
}

/* Image styling */
.grid-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-bottom: 2px solid #444;
  transition: transform 0.3s ease;
}

/* Title styling */
.grid-item h3 {
  margin: 15px 10px 10px 10px;
  font-size: 1.1rem;
  font-weight: bold;
}

/* Description styling */
.grid-item p {
  font-size: 0.9rem;
  padding: 0 10px 15px 10px;
  color: #ccc;
  flex-grow: 1;
}

/* Hover animation */
.grid-item:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 12px 24px rgba(255, 255, 255, 0.3);
}

.grid-item:hover img {
  transform: scale(1.1);
}

/* modal.css */
.details-container {
  max-width: 900px;
  margin: 40px auto;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
}

.details-container .close {
  float: right;
  cursor: pointer;
  font-size: 28px;
  font-weight: bold;
}

.modal-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.modal-text h2 {
  margin-top: 0;
  margin-bottom: 10px;
}

.stars {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: gold;
}

#episodes-container h3 {
  color: #ff3c00;
  font-weight: 700;
  margin-bottom: 10px;
}

#episodes-container ul {
  list-style: none;
  padding-left: 0;
  margin-top: 0;
}

#episodes-container ul li {
  padding-left: 10px;
  border-left: 3px solid #ff3c00;
  margin-bottom: 8px;
  cursor: default;
  font-size: 0.95rem;
  color: #ddd;
}

/* player.css */
.player-container {
  max-width: 900px;
  margin: 30px auto;
  padding: 20px;
  background: #121212;
  color: #eee;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.7);
}

#back-btn {
  color: #ff4c4c;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background: transparent;
  float: right;
  transition: color 0.3s ease;
}

#back-btn:hover {
  color: #ff0000;
}

#player-title {
  margin: 0 0 15px 0;
  font-size: 1.8rem;
  font-weight: 700;
}

label[for=streaming-source] {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

#streaming-source {
  width: 100%;
  max-width: 250px;
  padding: 8px 10px;
  margin-bottom: 25px;
  border-radius: 5px;
  border: 1px solid #444;
  background-color: #222;
  color: #eee;
  font-size: 1rem;
}

#description {
  margin-bottom: 20px;
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
  min-height: 60px;
}

#video-player {
  width: 100%;
  height: 480px;
  border-radius: 8px;
  overflow: hidden;
  background-color: #000;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.server-selector {
  margin: 15px 0;
  text-align: left;
}

/* footer.css */
.footer {
  flex-shrink: 0;
  background: #222;
  color: #ccc;
  padding: 20px;
  text-align: center;
  margin-top: 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-links a {
  color: #ff3c00;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Responsive styles */
/* 2560px and above (4K and ultra-wide) */
@media (min-width: 2560px) {
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(5, 400px);
    max-width: 1400px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 200px;
    height: 400px;
  }
  .banner h1 {
    font-size: 4rem;
  }
  .coming-soon-text {
    font-size: 6rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 1.25rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 1.1rem;
    padding: 10px 18px;
  }
}
/* 1440px to 2559px (Large desktops) */
@media (min-width: 1440px) and (max-width: 2559px) {
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 400px);
    max-width: 1200px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 220px;
    height: 400px;
  }
  .banner h1 {
    font-size: 3.5rem;
  }
  .coming-soon-text {
    font-size: 5rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 1.15rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 1rem;
    padding: 9px 16px;
  }
}
/* 1024px to 1439px (Tablets landscape / small desktops) */
@media (min-width: 1024px) and (max-width: 1439px) {
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(5, 350px);
    max-width: 1000px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 200px;
    height: 350px;
  }
  .banner h1 {
    font-size: 3rem;
  }
  .coming-soon-text {
    font-size: 4.5rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 1.1rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.95rem;
    padding: 8px 14px;
  }
}
/* 768px to 1023px (Tablets portrait / small laptops) */
@media (min-width: 768px) and (max-width: 1023px) {
  #main-content {
    padding: 15px 20px;
  }
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(5, 300px);
    max-width: 720px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 180px;
    height: 300px;
  }
  .banner h1 {
    font-size: 2.5rem;
  }
  .coming-soon-text {
    font-size: 3.5rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 1rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.9rem;
    padding: 7px 12px;
  }
  .navbar {
    padding: 8px 30px;
  }
}
/* 425px to 767px (Large mobile / small tablets) */
@media (min-width: 425px) and (max-width: 767px) {
  #main-content {
    padding: 10px 15px;
  }
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 280px);
    max-width: 480px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 160px;
    height: 280px;
  }
  .banner h1 {
    font-size: 2rem;
  }
  .coming-soon-text {
    font-size: 3rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 0.95rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  .navbar {
    padding: 6px 20px;
  }
  .search-area {
    width: 100%;
  }
}
/* 375px to 424px (Medium mobile) */
@media (min-width: 375px) and (max-width: 424px) {
  #main-content {
    padding: 8px 12px;
  }
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 260px);
    max-width: 360px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 140px;
    height: 260px;
  }
  .banner h1 {
    font-size: 1.8rem;
  }
  .coming-soon-text {
    font-size: 2.8rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 0.9rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.8rem;
    padding: 5px 8px;
  }
  .navbar {
    padding: 6px 15px;
  }
}
/* 320px to 374px (Small mobile) */
@media (min-width: 320px) and (max-width: 374px) {
  #main-content {
    padding: 6px 10px;
  }
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(5, 240px);
    max-width: 280px;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 260px;
    height: 240px;
  }
  .banner h1 {
    font-size: 1.5rem;
  }
  .coming-soon-text {
    font-size: 2.5rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 0.85rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.75rem;
    padding: 4px 6px;
  }
  .navbar {
    padding: 5px 10px;
  }
  .search-area {
    width: 100%;
  }
}
/* Navbar flex container */
.navbar {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 20px;
  position: relative;
}

/* Navbar left container */
.navbar-left {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
  flex-grow: 1;
  position: relative;
}

/* Hamburger menu styles for 768px and below */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 28px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    box-sizing: border-box;
    z-index: 1100;
    order: 0;
  }
  .logo-link {
    order: 1;
  }
  .search-area {
    order: 2;
    flex: 1;
    margin-left: 15px;
  }
  .hamburger span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s linear;
    position: relative;
  }
  /* Sidebar nav-links */
  .nav-links {
    display: flex;
    flex-direction: column;
    background-color: #222;
    position: fixed;
    top: 70px; /* Increased offset below navbar */
    left: -100vw; /* Hidden offscreen */
    width: 100vw; /* Full width */
    height: calc(100vh - 70px); /* Full height minus navbar */
    padding-top: 20px;
    border-radius: 0;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.7);
    transition: left 0.3s ease;
    z-index: 1500;
    overflow-y: auto;
  }
  /* Show nav links when toggled */
  .nav-links.show {
    left: 0;
  }
  /* Sidebar header */
  .nav-links::before {
    content: "Menu";
    font-size: 1.5rem;
    font-weight: 700;
    color: #ff3c00;
    padding: 10px 25px;
    border-bottom: 1px solid #333;
    display: block;
  }
  .nav-links a {
    padding: 15px 25px;
    border-bottom: 1px solid #333;
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
  .nav-links a:hover,
  .nav-links a.active {
    background-color: #ff3c00;
    color: #fff;
  }
  /* Scrollbar styling */
  .nav-links::-webkit-scrollbar {
    width: 8px;
  }
  .nav-links::-webkit-scrollbar-track {
    background: #1a1a1a;
  }
  .nav-links::-webkit-scrollbar-thumb {
    background-color: #ff3c00;
    border-radius: 4px;
  }
}
/* Hide hamburger button on larger screens */
@media (min-width: 769px) {
  .hamburger {
    display: none;
  }
}
/* Search toggle button */
.search-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 10px;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1200;
}

/* Show search toggle button on 425px and below */
@media (max-width: 429px) {
  .search-toggle {
    display: block;
  }
  .search-area {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background-color: #222;
    padding: 10px 20px;
    z-index: 1200;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  }
  .search-area.active {
    display: flex;
  }
  .search-bar {
    flex: 1;
    font-size: 1rem;
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
  }
  .search-area {
    flex: 1;
    min-width: 0;
    margin-left: 0;
  }
}
/* Logo smaller on 425px and below */
@media (max-width: 425px) {
  .logo-link img {
    max-width: 100px;
    height: auto;
  }
}
/* Search bar adjustments for 375px and below */
@media (max-width: 375px) {
  .search-bar {
    width: 90vw;
    max-width: 220px;
    font-size: 0.85rem;
    padding: 5px 8px;
  }
  .search-area {
    margin-left: 0;
    flex: none;
    width: 90vw;
    max-width: 220px;
  }
}
/* === Your requested fix: 768px and below grid with 2 columns and 10 rows + font & image adjustments === */
@media (max-width: 768px) {
  #main-content {
    padding: 10px 15px; /* Adjust padding for smaller screens */
  }
  .movie-page #movies-list,
  .tvshows-page #tvshows-list {
    grid-template-columns: repeat(2, 1fr) !important; /* 2 equal columns */
    grid-template-rows: repeat(10, 280px) !important; /* 10 rows, each 280px tall */
    max-width: 480px !important; /* Adjust max-width to fit 2 columns */
    margin: 0 auto;
  }
  .movie-page .movie-item,
  .tvshows-page .tvshow-item {
    max-width: 220px !important; /* Adjust max width to fit nicely in 2 columns */
    height: 280px !important; /* Adjust height to match grid row height */
  }
  /* Resize images to fit nicely */
  .movie-page .movie-item img,
  .tvshows-page .tvshow-item img {
    width: 100% !important;
    height: 200px !important; /* Slightly smaller than container height for spacing */
    max-height: 200px !important;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 10px;
    transition: transform 0.3s ease, filter 0.3s ease;
  }
  .banner h1 {
    font-size: 2rem;
  }
  .coming-soon-text {
    font-size: 3rem;
  }
  .movie-page .movie-title,
  .tvshows-page .tvshow-title,
  .item-title {
    font-size: 0.95rem;
  }
  .movie-page .pagination button,
  .tvshows-page .pagination button {
    font-size: 0.85rem;
    padding: 6px 10px;
  }
  .navbar {
    padding: 6px 20px;
  }
  .search-area {
    width: 100%;
  }
}
/* Search List Container */
#search-list-container {
  max-width: 900px;
  margin: 40px auto;
  background: #222;
  padding: 20px;
  border-radius: 10px;
  color: #fff;
  font-family: Arial, sans-serif;
}

#search-list-container h1 {
  margin-top: 0;
  margin-bottom: 20px;
  font-weight: 700;
  font-size: 1.8rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: #ff3c00;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.back-link:hover {
  text-decoration: underline;
}

/* Results Container */
#results {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

/* Each Result Item */
.result-item {
  background: #333;
  border-radius: 8px;
  width: calc(33.333% - 10px); /* 3 items per row */
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.result-item:hover,
.result-item:focus {
  background-color: #444;
  outline: none;
}

.result-item img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
}

.result-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
}

.result-sub {
  font-size: 0.85rem;
  color: #aaa;
}

/* Pagination Container */
.pagination {
  margin-top: 25px;
  text-align: center;
  user-select: none;
}

.pagination button {
  background-color: #333;
  border: none;
  color: #eee;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pagination button:hover:not(:disabled),
.pagination button:focus:not(:disabled) {
  background-color: #ff3c00;
  outline: none;
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Center the entire movie page container */
.movie-page {
  max-width: 1280px; /* Accommodate 4 columns */
  margin: 0 auto; /* Center horizontally */
  padding: 20px; /* Optional padding */
  box-sizing: border-box;
}

/* Movie list container styled as a grid with 4 columns */
.movie-page #movies-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  grid-template-rows: repeat(5, 400px); /* 5 rows, each 400px tall */
  gap: 5px;
  max-width: 900px; /* Match container width to columns */
  margin: 0 auto;
  /* Optional: prevent vertical scroll if you want fixed height */
  /* height: calc(5 * 400px + 4 * 15px); */
  /* overflow: hidden; */
}

/* Each movie item styled */
.movie-page .movie-item {
  background: #333;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 400px; /* Increased height to fit grid row */
  width: 100%;
  max-width: 220px; /* Decreased max width for narrower items */
  margin: 0 auto; /* Center within grid cell */
  overflow: hidden;
}

.movie-page .movie-item:hover,
.movie-page .movie-item:focus {
  background-color: #444;
  outline: none;
}

.movie-page .movie-item img {
  width: 100%;
  max-width: 220px; /* Narrower image width */
  height: 280px; /* Increased image height */
  max-height: 280px;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
  display: block;
}

.movie-page .movie-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  word-wrap: break-word;
}

/* Pagination container and buttons */
.movie-page .pagination {
  margin-top: 25px;
  text-align: center;
  user-select: none;
}

.movie-page .pagination button {
  background-color: #333;
  border: none;
  color: #eee;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover and focus styles for pagination buttons */
.movie-page .pagination button:hover:not(:disabled),
.movie-page .pagination button:focus:not(:disabled) {
  background-color: #ff3c00;
  outline: none;
}

/* Disabled pagination buttons */
.movie-page .pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Active page button styling */
.movie-page .pagination button.active {
  background-color: #ff3c00;
  color: #fff;
  cursor: default;
  box-shadow: 0 0 8px #ff3c00;
  pointer-events: none; /* Prevent clicking active button */
}

/* Movie related styles */
.movie-item {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center content */
  cursor: pointer;
  padding: 10px 0; /* Vertical padding for spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%; /* Fill grid cell width */
  max-width: 300px; /* Optional max width for consistent sizing */
}

/* Hover animation on the entire movie-item */
.movie-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 60, 0, 0.7);
  z-index: 10; /* Bring hovered item above others */
}

.movie-item img {
  width: 100%; /* Fill container width */
  height: auto; /* Maintain aspect ratio */
  max-height: 300px; /* Limit max height */
  object-fit: cover;
  border-radius: 0;
  margin: 0 auto; /* Center horizontally */
  display: block;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Slight zoom and brightness on image and title when hovering movie-item */
.movie-item:hover img,
.movie-item:hover .movie-title,
.movie-item:hover .item-title {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.movie-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  background: transparent;
  transition: transform 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  /* Center content vertically and horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.4em; /* Adjust height as needed for vertical centering */
}

/* Add subtle glow on title hover */
.movie-title:hover {
  text-shadow: 0 0 8px #ff3c00;
}

.item-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  background: transparent;
  cursor: pointer;
  user-select: none;
  /* Center content vertically and horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.4em; /* Adjust height as needed */
  transition: transform 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
}

/* Add subtle glow on item-title hover */
.item-title:hover {
  text-shadow: 0 0 8px #ff3c00;
}

/* Center the entire TV shows page container */
.tvshows-page {
  max-width: 1280px; /* Accommodate 4 columns */
  margin: 0 auto; /* Center horizontally */
  padding: 20px; /* Optional padding */
  box-sizing: border-box;
}

/* TV shows list container styled as a grid with 4 columns */
.tvshows-page #tvshows-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 equal columns */
  grid-template-rows: repeat(5, 400px); /* 5 rows, each 400px tall */
  gap: 5px;
  max-width: 900px; /* Match container width to columns */
  margin: 0 auto;
  /* Optional: prevent vertical scroll if you want fixed height */
  /* height: calc(5 * 400px + 4 * 15px); */
  /* overflow: hidden; */
}

/* Each TV show item styled */
.tvshows-page .tvshow-item {
  background: #333;
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  box-sizing: border-box;
  transition: background-color 0.3s ease;
  color: #eee;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 400px; /* Increased height to fit grid row */
  width: 100%;
  max-width: 220px; /* Decreased max width for narrower items */
  margin: 0 auto; /* Center within grid cell */
  overflow: hidden;
}

.tvshows-page .tvshow-item:hover,
.tvshows-page .tvshow-item:focus {
  background-color: #444;
  outline: none;
}

.tvshows-page .tvshow-item img {
  width: 100%;
  max-width: 220px; /* Narrower image width */
  height: 280px; /* Increased image height */
  max-height: 280px;
  border-radius: 6px;
  margin-bottom: 10px;
  object-fit: cover;
  display: block;
}

.tvshows-page .tvshow-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 6px;
  word-wrap: break-word;
}

/* Pagination container and buttons */
.tvshows-page .pagination {
  margin-top: 25px;
  text-align: center;
  user-select: none;
}

.tvshows-page .pagination button {
  background-color: #333;
  border: none;
  color: #eee;
  padding: 8px 14px;
  margin: 0 5px;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* Hover and focus styles for pagination buttons */
.tvshows-page .pagination button:hover:not(:disabled),
.tvshows-page .pagination button:focus:not(:disabled) {
  background-color: #ff3c00;
  outline: none;
}

/* Disabled pagination buttons */
.tvshows-page .pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Active page button styling */
.tvshows-page .pagination button.active {
  background-color: #ff3c00;
  color: #fff;
  cursor: default;
  box-shadow: 0 0 8px #ff3c00;
  pointer-events: none; /* Prevent clicking active button */
}

/* TV show related styles */
.tvshow-item {
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; /* Horizontally center content */
  cursor: pointer;
  padding: 10px 0; /* Vertical padding for spacing */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
  width: 100%; /* Fill grid cell width */
  max-width: 300px; /* Optional max width for consistent sizing */
}

/* Hover animation on the entire tvshow-item */
.tvshow-item:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(255, 60, 0, 0.7);
  z-index: 10; /* Bring hovered item above others */
}

.tvshow-item img {
  width: 100%; /* Fill container width */
  height: auto; /* Maintain aspect ratio */
  max-height: 300px; /* Limit max height */
  object-fit: cover;
  border-radius: 0;
  margin: 0 auto; /* Center horizontally */
  display: block;
  position: relative;
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: center center;
  will-change: transform;
}

/* Slight zoom and brightness on image and title when hovering tvshow-item */
.tvshow-item:hover img,
.tvshow-item:hover .tvshow-title,
.tvshow-item:hover .item-title {
  transform: scale(1.05);
  filter: brightness(1.15);
}

.tvshow-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  background: transparent;
  transition: transform 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
  cursor: pointer;
  user-select: none;
  /* Center content vertically and horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.4em; /* Adjust height as needed for vertical centering */
}

/* Add subtle glow on title hover */
.tvshow-title:hover {
  text-shadow: 0 0 8px #ff3c00;
}

.item-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 0 0 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  background: transparent;
  cursor: pointer;
  user-select: none;
  /* Center content vertically and horizontally */
  display: flex;
  justify-content: center;
  align-items: center;
  height: 2.4em; /* Adjust height as needed */
  transition: transform 0.3s ease, filter 0.3s ease, text-shadow 0.3s ease;
}

/* Add subtle glow on item-title hover */
.item-title:hover {
  text-shadow: 0 0 8px #ff3c00;
}

.coming-soon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* Adjust height as needed */
  background: linear-gradient(135deg, #ff3c00, #ff7f50);
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(255, 60, 0, 0.7);
  margin: 40px auto;
  max-width: 600px;
  text-align: center;
}

.coming-soon-text {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  text-transform: uppercase;
  letter-spacing: 6px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

/*# sourceMappingURL=style.css.map */
