@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Montserrat:wght@700;800&display=swap');


.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 20px;
  animation: logoPulse 2s infinite ease-in-out;
}

.preloader-logo i {
  font-size: 2.5rem;
}

.preloader-spinner {
  width: 50px;
  height: 3px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 4px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.preloader-spinner::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: var(--primary);
  border-radius: 4px;
  animation: spinnerMove 1.5s infinite cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }

  50% {
    transform: scale(1.05);
    opacity: 1;
  }
}

@keyframes spinnerMove {
  0% {
    left: -50%;
  }

  100% {
    left: 100%;
  }
}

:root {
  --primary: #E50914;
  --primary-hover: #b20710;
  --dark: #000000;
  --light: #ffffff;
  --gray: #f5f5f5;
  --dark-gray: #333;
  --text-color: #333;
  --bg-color: #fdfdfd;

  --card-bg: #ffffff;
  --nav-bg: rgba(255, 255, 255, 0.95);
  --overlay-bg: rgba(255, 255, 255, 0.9);
  --bg-color-rgb: 253, 253, 253;
  --primary-rgb: 229, 9, 20;
}

[data-theme="dark"] {
  --text-color: #ffffff;
  --bg-color: #121212;
  --card-bg: #1e1e1e;
  --gray: #2d2d2d;
  --nav-bg: rgba(18, 18, 18, 0.95);
  --overlay-bg: rgba(0, 0, 0, 0.9);
  --dark-gray: #ccc;
  --bg-color-rgb: 18, 18, 18;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
  width: 100%;
  max-width: 1400px;

  margin: 0 auto;
  padding: 0 4%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


.navbar {
  position: absolute;

  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: transparent;
  transition: background-color 0.3s ease;
}

.navbar.scrolled,
body.seasons-active .navbar,
body.view-all-active .navbar {
  background-color: var(--bg-color);
  position: fixed;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
}

.navbar.scrolled .nav-link,
.navbar.scrolled .icon-btn,
body.seasons-active .navbar .nav-link,
body.seasons-active .navbar .icon-btn,
body.view-all-active .navbar .nav-link,
body.view-all-active .navbar .icon-btn {
  color: var(--text-color) !important;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  z-index: 1001;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  color: #00ADEF;

  font-size: 28px;
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 800;
  color: #001D35;

  letter-spacing: -0.5px;
}


[data-theme="dark"] .logo-text {
  color: #ffffff;
}


body:not(.view-all-active):not(.seasons-active) .navbar:not(.scrolled) .logo-text,
body:not(.view-all-active):not(.seasons-active) .navbar:not(.scrolled) .nav-link,
body:not(.view-all-active):not(.seasons-active) .navbar:not(.scrolled) .icon-btn,
body:not(.view-all-active):not(.seasons-active) .navbar:not(.scrolled) .hamburger {
  color: #ffffff;
}

.mobile-menu-header {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  font-weight: 500;
  font-size: 15px;
  color: var(--text-color);
  opacity: 0.8;
  transition: opacity 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link.active {
  opacity: 1;
  border-bottom: 2px solid var(--primary);
}


.navbar.scrolled .nav-link,
.navbar.scrolled .icon-btn {
  color: var(--text-color);
  text-shadow: none;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icon-btn {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  transition: transform 0.2s;
}

.icon-btn:hover {
  transform: scale(1.1);
}

.hamburger {
  display: none;

  background: none;
  border: none;
  font-size: 24px;
  color: inherit;
  cursor: pointer;
  z-index: 1001;
}


.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay-bg);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-overlay.active {
  opacity: 1;
  visibility: visible;
}

.search-box {
  width: 90%;
  max-width: 800px;
  transform: translateY(-20px);
  transition: transform 0.4s ease;
}

.search-overlay.active .search-box {
  transform: translateY(0);
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  border-bottom: 2px solid var(--primary);
  padding: 10px 0;
}

.search-icon {
  font-size: 1.8rem;
  color: var(--primary);
  margin-right: 15px;
}

#search-input {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 2rem;
  font-weight: 500;
  color: var(--text-color);
}

.close-search {
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #888;
  cursor: pointer;
  padding: 10px;
  transition: color 0.3s;
}

.close-search:hover {
  color: var(--primary);
}

.search-hints {
  margin-top: 20px;
  color: #888;
  font-size: 0.95rem;
  text-align: center;
}



.search-container {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  padding: 10px;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 1;
  transition: all 0.3s ease;
  width: 300px;
}

.search-container.hidden {
  display: none;
  opacity: 0;
}

.search-container input {
  border: 1px solid #ddd;
  padding: 8px 12px;
  border-radius: 4px;
  flex: 1;
  font-size: 14px;
  outline: none;
}

.search-container button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #333;
}


.hero {
  position: relative;
  height: 85vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  margin-bottom: 40px;
}

.carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  opacity: 0;
  transition: opacity 1s ease;
}

.carousel-slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, var(--bg-color) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.6) 100%);
  z-index: 0;
}


.hero-content.centered {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
  color: #fff;
  margin: 10vh auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#hero-title {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  font-size: 1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

#hero-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);

  display: block;
  overflow: visible;
}


.hero-content {
  transition: opacity 0.5s ease;
}

.hero-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-content.fade-in {
  animation: heroFadeIn 0.8s forwards;
}

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn-primary-red {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.btn-primary-red:hover {
  background-color: var(--primary-hover);
}

.btn-secondary-glass {
  background-color: rgba(109, 109, 110, 0.7);
  color: white;
  border: none;
  padding: 12px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  backdrop-filter: blur(5px);
  transition: background 0.3s;
}

.btn-secondary-glass:hover {
  background-color: rgba(109, 109, 110, 0.9);
}


.main-content-overlap {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.main-content-overlap.view-all-active {
  margin-top: 20px;
  padding-top: 80px;

}

.main-content-overlap.fade-out {
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}

.view-all-page {
  transition: opacity 0.5s ease;
}

.section {
  margin-bottom: 60px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray);
}

.section-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-color);
}

.view-all-page .section-header h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
}

.btn-back-home {
  background-color: #00B6E2;
  color: white;
  border: none;
  padding: 8px 25px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;

  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 182, 226, 0.3);
}

.btn-back-home:hover {
  background-color: #009DC4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 182, 226, 0.4);
}

.btn-back-home:hover {
  background-color: #009DC4;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 182, 226, 0.4);
}

.main-content-overlap.view-all-active {
  margin-top: 0;
  padding-top: 100px;
  background: var(--bg-color);
  min-height: 100vh;
}

.view-all-active .section {
  max-width: 1200px;
  margin: 0 auto;
}

.view-all {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark-gray);
  transition: color 0.2s;
}

.view-all:hover {
  color: var(--primary);
}


.filter-controls {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px;
  background: var(--card-bg);
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  align-items: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--dark-gray);
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-group label i {
  color: var(--primary);
}

.filter-select {
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: var(--bg-color);
  color: var(--text-color);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

[data-theme="dark"] .filter-select {
  border-color: rgba(255, 255, 255, 0.1);
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.filter-toggle-btn {
  display: none;
}

@media (max-width: 768px) {
  .filter-toggle-btn {
    display: flex !important;

    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    color: var(--text-color);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
  }

  [data-theme="dark"] .filter-toggle-btn {
    border-color: rgba(255, 255, 255, 0.1);
  }

  .filter-toggle-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
  }

  .filter-toggle-btn i {
    color: var(--primary);
  }

  .filter-toggle-btn:hover i {
    color: white;
  }


  .filter-controls {
    display: none !important;

    gap: 15px;
    padding: 15px;
    flex-direction: column;
    align-items: stretch;
    animation: slideDown 0.3s ease-out;
  }

  .filter-controls.active {
    display: flex !important;
  }

  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }

    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  .filter-group {
    width: 100%;
    justify-content: space-between;
  }

  .filter-select {
    width: 60%;
    font-size: 0.85rem;
  }
}


.movie-carousel-container {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.movie-carousel-container:hover .carousel-btn {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
  left: -20px;
}

.carousel-btn.next {
  right: -20px;
}

@media (max-width: 768px) {
  .carousel-btn {
    opacity: 0.8;

    pointer-events: auto;
  }
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.movie-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: none;
}

.movie-track::-webkit-scrollbar {
  display: none;
}

.movie-card {
  min-width: 160px;
  width: 160px;
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 12px;
  overflow: hidden;
  background: transparent;
}

.movie-card:hover {
  transform: scale(1.05);
  z-index: 2;
}

.poster-container {
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  margin-bottom: 10px;
}

.movie-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.movie-info {
  width: 100%;
  padding: 0 4px;
  background: transparent;
  color: var(--text-color);
  opacity: 1;
  transition: none;
}

/* Remove hover opacity change */
/* .movie-card:hover .movie-info {
  opacity: 1;
} */

.movie-title {
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 6px;
  color: var(--text-color);
}

.movie-details {
  font-size: 0.8rem;
  opacity: 0.7;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color);
}


.favorite-btn {
  opacity: 1;

  transition: all 0.3s ease;
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  background: rgba(0, 0, 0, 0.4);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.favorite-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.favorite-btn.active {
  background: white;
  color: var(--primary);
  border-color: white;
}



@media (max-width: 768px) {
  .hero {
    height: 65vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    /* Offset for absolute navbar */
    margin-bottom: 30px;
  }

  .hero-content.centered {
    margin-top: 0;
    padding: 0 15px;
    width: 100%;
  }

  #hero-title {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-meta {
    margin-bottom: 1.2rem;
    font-size: 0.85rem;
  }

  #hero-desc {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-container {
    position: fixed;
    width: 100%;
    top: 60px;
  }
}


footer {
  background-color: #121212;
  color: #fff;
  padding: 60px 0 20px;
  margin-top: 60px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-tagline {
  font-size: 15px;
  font-weight: 400;
  color: #aaa;
  line-height: 1.6;
  margin-top: 10px;
}

.footer-logo i {
  color: var(--primary);
  margin-right: 10px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 30px;
}

.link-group h4 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 18px;
}

.link-group a {
  display: block;
  color: #aaa;
  margin-bottom: 10px;
  transition: color 0.3s;
}

.link-group a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #333;
  color: #777;
}


.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: hidden;

  display: none;
  align-items: center;

  justify-content: center;
}

.modal[style*="display: block"] {
  display: flex !important;
}

.modal-content {
  background-color: #181818;
  color: #fff;
  margin: 5% auto;
  width: 90%;
  max-width: 1000px;
  border-radius: 8px;
  position: relative;
}

.close-modal {
  position: absolute;
  right: 20px;
  top: 15px;
  font-size: 30px;
  color: #fff;
  cursor: pointer;
  z-index: 2001;
}


.stream-modal-content,
.download-modal-content {
  background-color: #1e1e1e;
  max-width: 900px;

  width: 95%;
  margin: 0 auto;

  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transform: translateY(-20px);

  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

.download-modal-content {
  max-width: 600px;
}

.stream-modal-header,
.download-modal-header {
  padding: 20px 25px;
  border-bottom: 1px solid #333;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stream-modal-header h3,
.download-modal-header h3 {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: #eee;
}

.stream-modal-header .close-modal,
.download-modal-header .close-modal {
  position: static;
  font-size: 24px;
  line-height: 1;
  color: #888;
  transition: color 0.2s;
}

.stream-modal-header .close-modal:hover,
.download-modal-header .close-modal:hover {
  color: #fff;
}

.stream-modal-body,
.download-modal-body {
  padding: 60px 40px;
  text-align: center;
}


.download-searching-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-left-color: #ff0000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.searching-msg {
  color: #aaa;
  font-size: 1.1rem;
  margin: 0;
}


.stream-error-icon {
  font-size: 4rem;
  color: #555;
  margin-bottom: 25px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stream-error-icon i {
  border: 4px solid #333;
  border-radius: 50%;
  padding: 25px;
  width: 120px;
  height: 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.stream-error-msg {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.5;
  margin: 0;
}


.toast {
  background-color: #333;
  color: #fff;
  padding: 12px 24px;
  border-radius: 4px;
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3000;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.toast.show {
  opacity: 1;
}

.loading,
.no-results {
  text-align: center;
  padding: 40px;
  color: #888;
}


.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 40px 0;
  padding: 20px 0;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray);
  background: var(--card-bg);
  color: var(--text-color) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 4px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.2s ease;
  text-decoration: none;
}

.pagination-btn:hover {
  border-color: #e50914;
  color: #e50914 !important;
}

.pagination-btn.active {
  background: #e50914;

  color: white !important;
  border-color: #e50914;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.pagination-dots {
  padding: 0 5px;
  color: #666;
}



.details-header {
  position: relative;
  min-height: 80vh;
  display: flex;

  justify-content: center;
  color: white;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.header-background-blur {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: blur(10px) brightness(0.5);

  transform: scale(1.1);

  z-index: 1;
}

.details-header-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 20px 100px;

  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
  display: flex;
  align-items: flex-start;

}

.details-hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  max-width: 1200px !important;
}

@media (min-width: 1024px) {
  .details-hero-container {
    flex-direction: row;
    text-align: left;
    align-items: center;

  }
}

.hero-poster-wrapper {
  width: 200px;

  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

@media (min-width: 1024px) {
  .hero-poster-wrapper {
    width: 240px;
  }
}

.hero-poster-wrapper img {
  width: 100%;
  display: block;
}

.details-hero-content {
  flex-grow: 1;
}

.details-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  font-weight: 700;
}

@media (min-width: 1024px) {
  .details-hero-content h1 {
    font-size: 3.5rem;
  }
}

.details-meta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 25px;
}

@media (min-width: 1024px) {
  .details-meta-row {
    justify-content: flex-start;
  }
}

.genre-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 30px;
}

@media (min-width: 1024px) {
  .genre-pills {
    justify-content: flex-start;
  }
}

.genre-pill {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  font-size: 0.85rem;
  color: #ffffff !important;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-right: 8px;
  margin-bottom: 8px;
}

.hero-overview {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 10px;
  opacity: 0.85;
}

@media (min-width: 1024px) {
  .hero-overview {
    margin: 0 0 0px 0;
  }
}

.hero-action-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 35px;
}

@media (min-width: 1024px) {
  .hero-action-buttons {
    justify-content: flex-start;
  }
}

.btn-main,
.btn-secondary {
  padding: 12px 25px;
  border-radius: 4px !important;

  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, background 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-main {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  backdrop-filter: blur(10px);
}

.btn-main:hover,
.btn-secondary:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.details-container {
  display: flex !important;
  gap: 40px;
  align-items: center;
  z-index: 2;
  padding-top: 140px;

}

.poster-wrapper {
  flex-shrink: 0;
  width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.poster-wrapper img {
  width: 100%;
  display: block;
}

.details-content {
  flex: 1;
}

.details-content h1 {
  font-size: 3rem;
  margin-bottom: 10px;
  line-height: 1.1;
  color: white !important;
}

.release-year {
  opacity: 0.7;
  font-weight: 400;
}

.details-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 1.1rem;
  margin-bottom: 25px;
  opacity: 0.9;
}

.bullet {
  opacity: 0.5;
}

.user-score-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.primary-group {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-score-chart {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #081c22;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-weight: 700;
  border: 4px solid #204529;
}

.score-label {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.action-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #032541;
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s;
}

.action-btn:hover {
  transform: scale(1.1);
}

.action-btn.active {
  color: #ef47b6;
}

.play-trailer {
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  color: white;
  transition: opacity 0.2s;
  cursor: pointer;
}

.play-trailer:hover {
  opacity: 0.8;
}

.secondary-group {
  display: flex;
  gap: 20px;
}

.tagline {
  font-style: italic;
  opacity: 0.7;
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.overview-section h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: white !important;
}

.overview-section p {
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 25px;
  color: white !important;
}

.crew-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

.crew-member {
  display: flex;
  flex-direction: column;
}

.crew-member strong {
  font-size: 1rem;
}

.crew-member span {
  font-size: 0.85rem;
  opacity: 0.8;
}


.main-content-centered {
  max-width: 100%;
  padding-top: 40px;
  min-width: 0;

}


.info-grid-container h3 {
  text-align: center;
  margin-bottom: 30px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.info-card {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.info-card strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--primary);
}

.info-card p {
  font-size: 1rem;
  margin: 0;
}

.keywords-centered {
  text-align: center;
  margin-top: 40px;
}

.keywords-centered .keywords-list {
  justify-content: center;
}

.content-section {
  margin-bottom: 40px;
}

.content-section h3 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  color: var(--text-color);
}

.scrolling-wrapper {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding-bottom: 5px;
  scrollbar-width: none;

  -ms-overflow-style: none;

  -webkit-overflow-scrolling: touch;
}

.scrolling-wrapper::-webkit-scrollbar {
  display: none;

}

.media-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.media-scroller::-webkit-scrollbar {
  display: none;
}

.cast-card {
  min-width: 140px;
  width: 140px;
  flex-shrink: 0;
  border-radius: 4px;

  overflow: hidden;
  transition: transform 0.2s;
}

.cast-card:hover {
  transform: translateY(-5px);
}

.cast-img-wrapper {
  height: 180px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;

}

.cast-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-info {
  text-align: left;
  padding: 0 4px;
}

.cast-info strong {
  display: block;
  font-size: 0.85rem;
  color: var(--text-color);
  margin-bottom: 2px;
}

.cast-info span {
  display: block;
  font-size: 0.75rem;
  opacity: 0.6;
  color: var(--text-color);
}


.recommendation-card {
  min-width: 140px;
  width: 140px;
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

@media (min-width: 768px) {
  .recommendation-card {
    min-width: 160px;
    width: 160px;
  }
}

.recommendation-card:hover {
  transform: translateY(-5px);
}

.rec-img-wrapper {
  aspect-ratio: 2/3;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.rec-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rec-info {
  padding: 0 4px;
}

.rec-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-color);
}

.rec-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  opacity: 0.7;
}

.rec-meta .divider {
  opacity: 0.3;
}

.rec-info h4 {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}


.sidebar-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
  color: var(--text-color);
}

.info-item strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 5px;
}

.info-item p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.keywords-section {
  margin-top: 30px;
}

.keywords-section h4 {
  margin-bottom: 15px;
  color: var(--text-color);
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.keyword-tag {
  background: var(--gray);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--text-color);
}


@media (max-width: 992px) {
  .content-wrapper {
    grid-template-columns: 1fr;
  }

  .details-container {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .poster-wrapper {
    width: 200px;
  }

  .details-header {
    height: auto;

  }

  .details-header-overlay {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 115px 20px 100px;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.9));
    display: flex;
    align-items: flex-start;
  }

  .primary-group {
    justify-content: center;
  }

  .secondary-group {
    justify-content: center;
  }


  .hamburger {
    display: block;
    font-size: 28px;
    z-index: 1002;

  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    background: var(--bg-color);

    display: flex;
    flex-direction: column;
    padding: 0;
    gap: 0;
    box-shadow: -15px 0 35px rgba(0, 0, 0, 0.4);
    transition: right 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2100;

    border-left: 1px solid rgba(255, 255, 255, 0.1);
  }

  .mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
  }


  .mobile-menu-header .logo-text {
    color: #001D35 !important;

  }

  [data-theme="dark"] .mobile-menu-header .logo-text {
    color: #ffffff !important;

  }

  .close-mobile-menu {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: transform 0.3s;
  }

  .close-mobile-menu:hover {
    transform: rotate(90deg);
    opacity: 1;
  }

  body.mobile-menu-open .navbar {
    z-index: auto !important;

  }

  body.mobile-menu-open .nav-menu {
    right: 0;
    z-index: 2200 !important;

  }


  body.mobile-menu-open::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1999;
    animation: fadeIn 0.4s ease forwards;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  body.mobile-menu-open {
    overflow: hidden;
  }

  .nav-menu .nav-link {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 15px 30px;
    margin: 5px 15px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateX(30px);
    color: var(--text-color) !important;
  }

  body.mobile-menu-open .nav-menu .nav-link {
    opacity: 1;
    transform: translateX(0);
  }


  body.mobile-menu-open .nav-menu .nav-link:nth-child(2) {
    transition-delay: 0.1s;
  }

  body.mobile-menu-open .nav-menu .nav-link:nth-child(3) {
    transition-delay: 0.2s;
  }

  body.mobile-menu-open .nav-menu .nav-link:nth-child(4) {
    transition-delay: 0.3s;
  }

  body.mobile-menu-open .nav-menu .nav-link:nth-child(5) {
    transition-delay: 0.4s;
  }

  .nav-menu .nav-link.active {
    background: rgba(var(--primary-rgb), 0.15);
    color: var(--primary) !important;
    padding-left: 40px;
    opacity: 1;
    font-weight: 700;
    box-shadow: inset 4px 0 0 var(--primary);
  }

  .nav-menu .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary) !important;
    padding-left: 40px;
  }

  .crew-grid {
    justify-content: center;
  }


  .main-content-centered {
    margin-top: 40px;

    position: relative;
    z-index: 5;
  }


  #hero-desc {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #hero-title {
    font-size: 2.2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }


  .details-meta-row {
    font-size: 0.8rem;
    gap: 8px;
    flex-wrap: nowrap;
    margin-bottom: 15px;
  }

  .btn-primary-red#hero-stream {
    padding: 10px 24px;
    font-size: 0.9rem;
    width: auto;
    margin: 0 auto;
  }
}


.collapsible-section {
  border-radius: 8px;
  background: var(--card-bg);
  margin-bottom: 20px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.section-header-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  cursor: pointer;
  transition: background 0.3s;
  user-select: none;
}

.section-header-toggle:hover {
  background: rgba(var(--primary-rgb), 0.05);
  opacity: 0.9;
}

.section-header-toggle h3 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--text-color);
}

.toggle-icon {
  font-size: 1.1rem;
  color: var(--primary);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.collapsible-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s;
  padding: 0 20px;
  opacity: 0;
}

.collapsible-section.active .collapsible-content {
  max-height: 2000px;

  padding: 10px 20px 20px;
  opacity: 1;
}

.collapsible-section.active .toggle-icon {
  transform: rotate(180deg);
}


@media (min-width: 993px) {
  #hero-desc {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
    text-overflow: unset;
  }
}


.seasons-view-container {
  padding-top: 100px;

  min-height: 100vh;
}

.seasons-view-container .container {
  background: transparent;
  color: inherit;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 50px;
}

.seasons-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  border-bottom: 2px solid rgba(128, 128, 128, 0.1);
  padding-bottom: 15px;
}

.seasons-modal-header .back-btn {
  background: rgba(var(--primary-rgb), 0.1);
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  transition: all 0.2s;
}

.seasons-modal-header .back-btn:hover {
  background: rgba(var(--primary-rgb), 0.2);
  transform: translateX(-5px);
}

.seasons-modal-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-color);
}

.seasons-selection-bar {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 30px;
}

.seasons-selection-bar span {
  font-weight: 600;
  color: #666;
}

[data-theme="dark"] .seasons-selection-bar span {
  color: #aaa;
}

.custom-select-wrapper {
  position: relative;
  min-width: 180px;
}

.custom-select-wrapper::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  pointer-events: none;
  font-size: 0.8rem;
}

.season-select {
  width: 100%;
  padding: 10px 35px 10px 15px;
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  background: #ffffff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  color: var(--text-color);
  transition: all 0.3s ease;
}

[data-theme="dark"] .season-select {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
  color: #eee;
}

.season-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}


.episodes-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.episode-card {
  display: flex;
  background: #ffffff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s;
}

[data-theme="dark"] .episode-card {
  background: #252525;
}

.episode-card:hover {
  transform: translateY(-2px);
}

.ep-img-wrapper {
  flex: 0 0 240px;

  overflow: hidden;
}

.ep-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep-info {
  flex: 1;
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ep-meta {
  font-size: 0.85rem;
  color: #888;
  font-weight: 600;
  text-transform: uppercase;
}

.ep-info h4 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
}

.ep-info p {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.4;
  margin: 5px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

[data-theme="dark"] .ep-info p {
  color: #bbb;
}

.ep-actions {
  display: flex;
  gap: 15px;
  margin-top: auto;
}

.ep-btn {
  padding: 6px 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.ep-btn.stream {
  background: #e50914;
  color: #fff;
}

.ep-btn.stream:hover {
  background: #b80710;
}

.ep-btn.download {
  background: transparent;
  color: #333;
  font-weight: 600;
}

[data-theme="dark"] .ep-btn.download {
  color: #eee;
}

.ep-btn.download:hover {
  text-decoration: underline;
}

.loading-episodes {
  text-align: center;
  padding: 40px;
  font-size: 1.1rem;
  color: #888;
}

@media (max-width: 768px) {
  .seasons-modal .seasons-modal-content {
    width: 95%;
    margin: 2% auto;
    padding: 15px;
  }

  .episode-card {
    flex-direction: column;
  }

  .ep-img-wrapper {
    flex: 0 0 160px;
    width: 100%;
  }

  .seasons-modal-header h2 {
    font-size: 1.2rem;
  }
}


.categories-view {
  padding-top: 0;
  min-height: 100vh;
}

.categories-grid,
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
  margin-top: 10px;
}

.category-card,
.genre-card {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.category-card span,
.genre-card span {
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  z-index: 2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.category-card:hover,
.genre-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  filter: brightness(1.1);
}

.category-card::after,
.genre-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.1) 100%);
  z-index: 1;
}


.cat-bollywood {
  background-color: #ff8a3d;
}

.cat-hollywood {
  background-color: #2563eb;
}

.cat-tamil {
  background-color: #8b5cf6;
}

.cat-telugu {
  background-color: #d9266f;
}

.cat-korean {
  background-color: #0ea5e9;
}

.cat-anime {
  background-color: #ef4444;
}

.cat-malayalam {
  background-color: #10b981;
}


.cat-punjabi {
  background-color: #f59e0b;
}

.genre-pill:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}


.collapsible-content {
  position: relative;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  opacity: 0;

}

.collapsible-content:hover .slider-btn {
  opacity: 1;
}

.slider-btn:hover {
  background: var(--primary);
  transform: translateY(-50%) scale(1.1);
}

.slider-btn.left {
  left: 0;
}

.slider-btn.right {
  right: 0;
}


.scrolling-wrapper,
.media-scroller {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;

  -ms-overflow-style: none;

}

.scrolling-wrapper::-webkit-scrollbar,
.media-scroller::-webkit-scrollbar {
  display: none;

}

.cat-kannada {
  background-color: #0891b2;
}

.cat-marathi {
  background-color: #9333ea;
}

.cat-bengali {
  background-color: #f97316;
}

.cat-gujarati {
  background-color: #84cc16;
}


.genre-card {
  background-color: #333;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .genre-card {
  background-color: #f0f0f0;
  border-color: rgba(0, 0, 0, 0.05);
}

.mobile-fav-icon {
  display: none;
}

[data-theme="light"] .genre-card span {
  color: #333;
}

@media (max-width: 768px) {

  .categories-grid,
  .genres-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }


  .mobile-fav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    vertical-align: middle;
    transition: all 0.2s ease;
  }

  .mobile-fav-icon.active {
    color: var(--primary);
    transform: scale(1.1);
  }

  .hero-action-buttons .favorite {
    display: none !important;
  }




  .mobile-overview-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .read-more-btn {
    display: inline-block;
    margin-top: 5px;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }


  .category-card span,
  .genre-card span {
    font-size: 0.85rem;
  }


  .movie-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px 5px;
  }

  .movie-grid .movie-card {
    width: 100%;
    min-width: 0;
  }
}


.cast-card {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cast-card:hover .cast-img-wrapper img {
  transform: scale(1.05);
}



.server-warning-bar {
  background: #000;
  color: #fff;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  position: relative;
  border-bottom: 1px solid #333;
  z-index: 20;

}

.header-close {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.stream-player-wrapper {
  position: relative;
  width: 100%;
  background: #000;
}

.stream-player-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%;

  background: #000;
}

.stream-player-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: #000;
}

.player-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 5;
  color: #aaa;
}

.player-loader .spinner {
  border: 4px solid #333;
  border-top: 4px solid var(--primary);

  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.player-loader p {
  margin: 0;
  font-size: 1rem;
}

.server-controls {
  margin-top: 10px;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.anime-type-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  color: #aaa;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.anime-type-btn:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  border-right: none;
}

.anime-type-btn:last-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.anime-type-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.anime-type-btn:hover:not(.active) {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.server-select-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid #444;
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 0.85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.server-select-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #666;
}

.server-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 33%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.95);
  border: 1px solid #444;
  border-radius: 6px;
  margin-top: 8px;
  min-width: 180px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.server-dropdown.show {
  display: block;
}

.server-option {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #ddd;
  padding: 10px 10px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s;
  border-bottom: 1px solid #222;
}

.server-option:last-child {
  border-bottom: none;
}

.server-option:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.server-option.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
}

.stream-info-bar {
  padding: 15px;
  background: #111;
  border-top: 1px solid #222;
}


.stream-info-bar h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #eee;
}

/* Search Close Button */
.close-search-results {
  background: transparent;
  border: none;
  color: var(--text-color);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-search-results:hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.1);
  transform: rotate(90deg);
}

/* Premium Search Filters (Segmented Control) */
.search-filter-tabs {
  display: inline-flex;
  background: rgba(var(--primary-rgb), 0.05);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .search-filter-tabs {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.search-filter-btn {
  padding: 8px 24px;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.search-filter-btn.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.search-filter-btn:not(.active):hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

@media (max-width: 768px) {
  .search-results-header {
    gap: 15px;
  }

  .header-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .search-filter-tabs {
    display: flex;
    width: 100%;
    border-radius: 12px;
    padding: 3px;
  }

  .search-filter-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 0.8rem;
    border-radius: 10px;
  }
}

/* Download Modal Premium Styles */
.download-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.download-server-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-server-btn:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.server-icon {
  width: 45px;
  height: 45px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.server-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.server-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.server-status {
  font-size: 0.8rem;
  color: #4cd137;
  font-weight: 500;
}

.exterior-icon {
  opacity: 0.4;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.download-server-btn:hover .exterior-icon {
  opacity: 1;
}

.download-note {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}


/* Download Modal Premium Styles */
.download-options-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
  margin-bottom: 25px;
}

.download-server-btn {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: white;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.download-server-btn:hover {
  background: rgba(var(--primary-rgb), 0.15);
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.server-icon {
  width: 45px;
  height: 45px;
  background: rgba(var(--primary-rgb), 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
}

.server-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  text-align: left;
}

.server-name {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.server-status {
  font-size: 0.8rem;
  color: #4cd137;
  font-weight: 500;
}

.exterior-icon {
  opacity: 0.4;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.download-server-btn:hover .exterior-icon {
  opacity: 1;
}

.download-note {
  font-size: 0.85rem;
  color: #888;
  text-align: center;
}


/* Download Modal Premium Styles */
.download-server-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.download-servers-list {
  text-align: left;
  border-bottom: 1px solid #333;
  padding-bottom: 15px;
}

.download-servers-list span {
  display: block;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 10px;
}

.server-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dl-server-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #444;
  color: #ddd;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.dl-server-badge:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #666;
  color: #fff;
}

.dl-server-badge.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.3);
}

.download-results-area {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.download-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
}

.download-option-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.3s ease;
}

.download-option-card:hover {
  transform: translateY(-5px);
  border-color: #555;
  background: rgba(255, 255, 255, 0.08);
}

.dl-quality {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 5px;
}

.dl-quality.mobile {
  color: #aaa;
}

.dl-info {
  display: flex;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 20px;
}

.download-link-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
}

.dl-disclaimer {
  margin-top: 25px;
  font-size: 0.8rem;
  color: #666;
  font-style: italic;
}

/* Mobile Optimization for Download Modal */
@media (max-width: 768px) {
  .download-modal-body {
    padding: 10px !important;
  }

  /* Make server list scrollable horizontally */
  .download-server-container {
    gap: 15px;
  }

  .download-servers-list {
    padding-bottom: 0;
    border-bottom: none;
  }

  .download-servers-list span {
    font-size: 0.85rem;
    margin-bottom: 8px;
  }

  .server-badges {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .server-badges::-webkit-scrollbar {
    display: none;
  }

  .dl-server-badge {
    padding: 8px 14px;
    font-size: 0.8rem;
    white-space: nowrap;
    flex-shrink: 0;
    border-radius: 50px;
    /* Pill shape looks better on mobile */
  }

  /* Adjust iframe container for mobile */
  .iframe-container {
    height: 300px !important;
  }

  /* Stack download options */
  .download-options-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .download-option-card {
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 10px;
  }

  .dl-quality {
    font-size: 1.1rem;
    margin-bottom: 0;
  }

  .dl-info {
    margin-bottom: 0;
    font-size: 0.8rem;
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }

  .download-link-btn {
    width: auto;
    padding: 8px 16px;
    font-size: 0.9rem;
  }
}

/* Specific styles for SumanAnime */
.logo-icon.fa-tv {
  color: var(--primary);
}

/* #hero-section .hero-meta #hero-genre {
    background: rgba(255, 61, 113, 0.2);
    color: var(--primary);
} */

/* Details Page Fallbacks/Overrides */
.scrolling-wrapper,
.media-scroller {
  display: flex;
  overflow-x: auto;
  gap: 15px;
  padding-bottom: 15px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.scrolling-wrapper::-webkit-scrollbar,
.media-scroller::-webkit-scrollbar {
  display: none;
}

.cast-card {
  min-width: 138px;
  /* Fixed width matching holder */
  width: 138px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex: 0 0 auto;
}

.cast-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.cast-img-wrapper {
  width: 100%;
  height: 175px;
  overflow: hidden;
}

.cast-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cast-card:hover .cast-img-wrapper img {
  transform: scale(1.05);
}

.media-card {
  flex: 0 0 auto;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  margin-bottom: 25px;
}

.info-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card strong {
  display: block;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.info-card p {
  margin: 0;
  font-size: 0.95rem;
  color: #ddd;
}

.keywords-centered h4 {
  text-align: center;
  margin-bottom: 15px;
  color: #fff;
}

.keywords-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.keyword-tag {
  background: rgba(255, 255, 255, 0.08);
  /* slight transparent white */
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.overview-clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 768px) {
  .overview-clamp {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
}

.read-more-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 5px;
  font-family: inherit;
  transition: opacity 0.2s;
}

.read-more-btn:hover {
  opacity: 0.8;
}

/* Categories and Genres Grid */
.categories-grid,
.genres-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.category-card,
.genre-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  font-weight: 500;
  font-size: 0.95rem;
}

.category-card:hover,
.genre-card:hover {
  background: var(--primary);
  transform: translateY(-5px);
  border-color: var(--primary);
  color: white;
}

[data-theme="light"] .category-card,
[data-theme="light"] .genre-card {
  background: #f0f0f0;
  border-color: #ddd;
  color: #333;
}

/* Category Colors */
.cat-movies,
[data-theme="light"] .cat-movies {
  background-color: #ff8a3d;
  color: white;
  border-color: transparent;
}

.cat-series,
[data-theme="light"] .cat-series {
  background-color: #2563eb;
  color: white;
  border-color: transparent;
}

.cat-shorts,
[data-theme="light"] .cat-shorts {
  background-color: #8b5cf6;
  color: white;
  border-color: transparent;
}

.cat-ovas,
[data-theme="light"] .cat-ovas {
  background-color: #d9266f;
  color: white;
  border-color: transparent;
}

.cat-onas,
[data-theme="light"] .cat-onas {
  background-color: #0ea5e9;
  color: white;
  border-color: transparent;
}

.cat-specials,
[data-theme="light"] .cat-specials {
  background-color: #10b981;
  color: white;
  border-color: transparent;
}

.category-card.cat-movies:hover,
.category-card.cat-series:hover,
.category-card.cat-shorts:hover,
.category-card.cat-ovas:hover,
.category-card.cat-onas:hover,
.category-card.cat-specials:hover {
  filter: brightness(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(-5px) scale(1.02);
  background: inherit;
  /* Keep the specific color on hover */
  border-color: rgba(255, 255, 255, 0.2);
}

.category-card.cat-movies span,
.category-card.cat-series span,
.category-card.cat-shorts span,
.category-card.cat-ovas span,
.category-card.cat-onas span,
.category-card.cat-specials span {
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
}

[data-theme="light"] .category-card:hover,
[data-theme="light"] .genre-card:hover {
  background: var(--primary);
  color: white;
}

/* Premium Search Filters (Segmented Control) */
.search-filter-tabs {
  display: inline-flex;
  background: rgba(var(--primary-rgb), 0.05);
  padding: 4px;
  border-radius: 50px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

[data-theme="dark"] .search-filter-tabs {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.05);
}

.search-filter-btn {
  padding: 8px 24px;
  border: none;
  background: transparent;
  color: var(--text-color);
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}

.search-filter-btn.active {
  color: white;
  background: var(--primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.4);
}

.search-filter-btn:not(.active):hover {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.08);
}

/* Filter Controls */
.filter-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-bottom: 30px;
  animation: slideDown 0.3s ease-out;
}

[data-theme="light"] .filter-controls {
  background: #f8f8f8;
  border-color: #eee;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  opacity: 0.8;
  white-space: nowrap;
}

.filter-group label i {
  color: var(--primary);
  margin-right: 5px;
}

.filter-select {
  padding: 8px 12px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
  min-width: 160px;
}

.filter-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.1);
}

.filter-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--card-bg);
  color: var(--text-color);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  border-radius: 10px;
  margin-bottom: 25px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  transition: all 0.3s ease;
}

.filter-toggle-btn i {
  color: var(--primary);
}

.filter-toggle-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.filter-toggle-btn:hover i {
  color: white;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .search-results-header {
    gap: 15px;
  }

  .header-left {
    width: 100%;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 15px !important;
  }

  .search-filter-tabs {
    display: flex;
    width: 100%;
    border-radius: 12px;
    padding: 3px;
  }

  .search-filter-btn {
    flex: 1;
    padding: 10px 5px;
    font-size: 0.8rem;
    border-radius: 10px;
  }

  .filter-toggle-btn {
    display: flex;
  }

  .filter-controls {
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 15px;
  }

  .filter-group {
    justify-content: space-between;
  }

  .filter-select {
    min-width: 0;
    width: 60%;
  }
}