
:root {
  --primary-color: #e50914;
  --bg-color: #141414;
  --bg-darker: #0c0c0c;
  --text-color: #ffffff;
  --text-muted: #aaaaaa;
  --navbar-height: 68px;
  --transition-speed: 0.3s;
}

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

body {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-darker);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #444;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ── Top Bar / Navbar ── */
.navbar {
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--navbar-height);
  padding: 0 4%;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
  transition: background-color var(--transition-speed) ease;
  z-index: 1000;
}

.navbar.scrolled {
  background-color: var(--bg-color);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 30px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-color);
  letter-spacing: -0.5px;
}

.logo-image {
  height: 28px;
  width: auto;
}

.logo-icon {
  height: 28px;
  width: 28px;
  object-fit: contain;
  border-radius: 4px;
  flex-shrink: 0;
}

/* Menu links */
.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 20px;
  margin: 0;
}

.nav-link {
  color: #e5e5e5;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-color);
}

/* Right side actions */
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.search-icon-btn {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}

.search-icon-btn:hover {
  transform: scale(1.1);
}

.search-bar-container {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 4px;
  padding: 4px 10px;
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition: width 0.3s ease, opacity 0.3s ease;
}

.search-bar-container.active {
  width: 250px;
  opacity: 1;
}

.search-bar-container input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-color);
  font-size: 14px;
  width: 100%;
  padding: 4px;
}

/* Hamburger mobile menu */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transition: all 0.3s ease;
}

/* ── Hero Section (Browse Pages) ── */
.hero-banner {
  position: relative;
  height: 80vh;
  width: 100%;
  background-size: cover;
  background-position: center top;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  overflow: hidden;
  transition: background-image 0.8s ease-in-out;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20, 20, 20, 0.9) 30%, rgba(20, 20, 20, 0.3) 60%, rgba(20, 20, 20, 0) 100%),
    linear-gradient(to top, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0) 60%);
  z-index: 1;
}

.hero-banner-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  padding: 0 4%;
  margin-bottom: 20px;
}

.hero-banner-title {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 15px;
  line-height: 1.1;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}

.hero-banner-desc {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: #e5e5e5;
  line-height: 1.5;
  margin-bottom: 25px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.hero-banner-buttons {
  display: flex;
  gap: 12px;
}

.btn-play,
.btn-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
  border: none;
}

.btn-play {
  background-color: var(--text-color);
  color: #000;
}

.btn-play:hover {
  background-color: #e6e6e6;
  transform: scale(1.05);
}

.btn-info {
  background-color: rgba(109, 109, 110, 0.7);
  color: var(--text-color);
}

.btn-info:hover {
  background-color: rgba(109, 109, 110, 0.4);
  transform: scale(1.05);
}

/* ── Landing Page (index.html) ── */
.landing-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  background: #0a0a0a;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 20px 80px;
  overflow: hidden;
}

/* Subtle depth layers — minimal red, cinematic dark */
.landing-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 50% 0%, rgba(229, 9, 20, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 100% 50% at 50% 110%, rgba(0, 0, 0, 0.9) 0%, transparent 60%),
    radial-gradient(ellipse 140% 100% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
}

/* ── SEO Section & Container ── */
.seo-section {
  background-color: var(--bg-darker);
  border-top: 1px solid #1c1c1c;
  padding: 80px 0;
  position: relative;
  z-index: 5;
}

.seo-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 4%;
}

.seo-container h2 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  border-left: 4px solid var(--primary-color);
  padding-left: 15px;
  font-family: 'Outfit', sans-serif;
}

.seo-container h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-top: 40px;
  margin-bottom: 16px;
  font-family: 'Outfit', sans-serif;
}

.seo-container p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* Feature Grid */
.seo-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.seo-feature-card {
  background-color: #181818;
  border: 1px solid #282828;
  padding: 25px;
  border-radius: 8px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.seo-feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-color);
}

.seo-feature-card svg {
  color: var(--primary-color);
  margin-bottom: 15px;
}

.seo-feature-card h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  font-family: 'Outfit', sans-serif;
}

.seo-feature-card p {
  font-size: 13.5px;
  margin-bottom: 0;
  line-height: 1.6;
}

/* FAQ Accordion */
.seo-faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin: 30px 0;
}

.seo-faq-item {
  background-color: #181818;
  border: 1px solid #282828;
  border-radius: 6px;
  overflow: hidden;
}

.seo-faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 18px 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
  transition: background-color 0.2s;
  font-family: 'Outfit', sans-serif;
}

.seo-faq-question:hover {
  background-color: #222;
}

.seo-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--primary-color);
  transition: transform 0.3s;
}

.seo-faq-item.active .seo-faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.seo-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  background-color: #141414;
}

.seo-faq-item.active .seo-faq-answer {
  max-height: 500px;
  padding: 20px 24px;
  border-top: 1px solid #282828;
}

.seo-faq-answer p {
  margin-bottom: 0;
  line-height: 1.6;
}

/* Genre tags explorer */
.seo-explore-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 30px 0;
}

.seo-tag {
  background-color: transparent;
  color: var(--text-color);
  border: 1px solid #444;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.seo-tag:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #fff;
}

/* NetPrime Network Grid */
.seo-network-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 15px;
  margin: 30px 0;
}

.seo-network-card {
  background-color: #0c0c0c;
  border: 1px solid #1c1c1c;
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.2s, border-color 0.2s;
}

.seo-network-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-color);
}

.seo-network-card h4 {
  font-size: 16px;
  color: #fff;
  margin-bottom: 8px;
  font-weight: 700;
}

.seo-network-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.landing-content {
  max-width: 820px;
  z-index: 2;
  position: relative;
}

.landing-logo {
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-weight: 800;
  font-size: 2.8rem;
  letter-spacing: -1px;
}

.landing-logo-icon {
  height: 40px;
  width: auto;
}

.landing-title {
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.5px;
}

.landing-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 36px;
  font-weight: 400;
  line-height: 1.6;
}

.landing-search-box {
  display: flex;
  max-width: 620px;
  margin: 0 auto 32px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.landing-search-box input {
  flex: 1;
  padding: 16px 22px;
  border: none;
  outline: none;
  font-size: 15px;
  background: rgba(20, 20, 20, 0.9);
  color: #fff;
  font-family: inherit;
}

.landing-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.landing-search-box button {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: 0 30px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-search-box button:hover {
  background-color: #f40612;
}

.landing-buttons {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.landing-meta-tags {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.landing-meta-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.7);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.landing-actions {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.landing-btn-primary {
  background-color: var(--primary-color);
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
  transition: transform 0.2s, background-color 0.2s;
}

.landing-btn-primary:hover {
  background-color: #f40612;
  transform: translateY(-2px);
}

.landing-btn-secondary {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 14px 36px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}

.landing-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* ── Content Section / Rows ── */
.rows-container {
  padding: 40px 0;
  position: relative;
  z-index: 5;
  background-color: var(--bg-color);
  margin-top: -20px;
}

.movie-row {
  margin-bottom: 40px;
  padding: 0 4%;
  position: relative;
}

.row-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--text-color);
}

.row-inner-container {
  position: relative;
  display: flex;
  align-items: center;
}

.row-posters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 15px 0;
}

.row-posters::-webkit-scrollbar {
  display: none;
}

.row-posters {
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

/* Card Styling */
.movie-card {
  flex-shrink: 0;
  width: 180px;
  aspect-ratio: 2/3;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  background-color: #1c1c1c;
}

.movie-card:hover {
  transform: scale(1.06);
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

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

.card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--primary-color);
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  padding: 3px 6px;
  border-radius: 3px;
  z-index: 2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.movie-card:hover .card-overlay {
  opacity: 1;
}

.card-title {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

/* More Like This - Play Button Overlay */
.similar-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  width: 44px;
  height: 44px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 3;
  pointer-events: none;
}

.similar-card:hover .similar-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.similar-grid {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.similar-grid .movie-card {
  width: 100%;
}

@media (max-width: 480px) {
  .similar-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

/* More Like This Section (Player Page) */
.more-like-this-section {
  padding: 25px 0 10px;
  border-top: 1px solid #282828;
  margin-top: 30px;
}

.more-like-this-section h3 {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.3px;
}


.row-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-color);
  width: 45px;
  height: 100%;
  max-height: calc(100% - 30px);
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.row-inner-container:hover .row-arrow {
  opacity: 1;
}

.row-arrow:hover {
  background-color: rgba(0, 0, 0, 0.85);
}

.row-arrow.left {
  left: 0;
  border-radius: 0 4px 4px 0;
}

.row-arrow.right {
  right: 0;
  border-radius: 4px 0 0 4px;
}

/* ── Detail Modal ── */
.detail-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 40px 20px;
}

.detail-modal.active {
  display: flex;
}

.modal-content {
  width: 100%;
  max-width: 850px;
  background-color: #181818;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
  animation: modalZoom 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes modalZoom {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  color: var(--text-color);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: background-color 0.2s;
}

.modal-close-btn:hover {
  background-color: rgba(229, 9, 20, 0.8);
}

.modal-banner {
  position: relative;
  aspect-ratio: 16/9;
  width: 100%;
  background-size: cover;
  background-position: center;
}

.modal-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, #181818 0%, rgba(24, 24, 24, 0.4) 60%, rgba(24, 24, 24, 0) 100%);
}

.modal-banner-info {
  position: absolute;
  bottom: 30px;
  left: 30px;
  z-index: 2;
  width: calc(100% - 60px);
}

.modal-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8);
}

.modal-banner-buttons {
  display: flex;
  gap: 12px;
}

.modal-btn-play,
.modal-btn-download,
.modal-btn-tg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.2s;
}

.modal-btn-play {
  background-color: var(--text-color);
  color: #000;
}

.modal-btn-download {
  background-color: rgba(255, 255, 255, 0.15);
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.modal-btn-tg {
  background-color: #229ED9;
  color: #fff;
}

.modal-btn-play:hover,
.modal-btn-download:hover,
.modal-btn-tg:hover {
  transform: scale(1.05);
}

.modal-body {
  padding: 30px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 30px;
}

.modal-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
}

.modal-match {
  color: #46d369;
  font-weight: 700;
}

.modal-year {
  color: #a3a3a3;
}

.modal-badge-hd {
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 1px 6px;
  font-size: 11px;
  border-radius: 3px;
  color: #fff;
  font-weight: 700;
}

.modal-overview {
  font-size: 15px;
  line-height: 1.6;
  color: #e5e5e5;
}

.modal-right {
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-size: 14px;
}

.info-label {
  color: #777;
}

.info-val {
  color: var(--text-color);
}

/* Episodes section for TV Shows */
.modal-episodes-section {
  padding: 0 30px 30px;
  border-top: 1px solid #282828;
}

.episodes-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 25px 0 15px;
}

.episodes-title {
  font-size: 1.25rem;
  font-weight: 700;
}

.season-selector {
  background-color: #242424;
  color: var(--text-color);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 8px 16px;
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  font-weight: 600;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.episode-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #242424;
  border-radius: 4px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.episode-card:hover {
  background-color: #333333;
}

.episode-number {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  width: 25px;
  text-align: center;
}

.episode-thumb {
  width: 120px;
  aspect-ratio: 16/9;
  border-radius: 4px;
  overflow: hidden;
  background-color: #181818;
}

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

.episode-info {
  flex: 1;
}

.episode-name {
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 14px;
}

.episode-overview {
  font-size: 12px;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.4;
}

/* ── Content Grid / Filtered Pages (Movies, TV Shows, Search Results) ── */
.grid-container,
.grid-page-container {
  padding: calc(var(--navbar-height) + 30px) 4% 60px;
  background-color: var(--bg-color);
  min-height: 100vh;
}

.page-title,
.grid-page-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.filters-wrapper,
.grid-page-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 30px;
}

.filter-buttons,
.grid-filter-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-select {
  background-color: #222222;
  color: var(--text-muted);
  border: 1px solid #333333;
  padding: 8px 36px 8px 14px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  font-family: inherit;
}

.filter-select:focus,
.filter-select:hover {
  border-color: var(--primary-color);
  color: #fff;
  outline: none;
}

.filter-select option {
  background-color: #1a1a1a;
  color: #fff;
}

.filter-btn,
.filter-tag {
  background-color: #222222;
  color: var(--text-muted);
  border: 1px solid #333333;
  padding: 8px 18px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn.active,
.filter-btn:hover,
.filter-tag.active,
.filter-tag:hover {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.search-results-grid,
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px 15px;
}

.media-grid .movie-card {
  width: 100%;
}

@media (max-width: 480px) {

  .search-results-grid,
  .media-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
  }
}

/* Loading Spinner */
.spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  width: 100%;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

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

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin-top: 50px;
}

.pagination-btn,
.page-btn {
  background-color: #222;
  border: 1px solid #333;
  color: var(--text-color);
  padding: 10px 18px;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.pagination-btn:hover:not(:disabled),
.page-btn:hover:not(:disabled) {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.pagination-btn:disabled,
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-btn.active,
.page-btn.active {
  background-color: var(--primary-color);
  color: #fff;
  border-color: var(--primary-color);
}

.pagination-info,
.page-info {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 6px;
}

@media (max-width: 480px) {
  .pagination {
    gap: 4px;
    margin-top: 30px;
  }

  .pagination-btn,
  .page-btn {
    padding: 8px 12px;
    font-size: 13px;
  }

  .page-info {
    width: 100%;
    text-align: center;
    margin: 6px 0 0;
    order: 99;
  }
}

/* ── Footer ── */
.footer {
  background-color: var(--bg-darker);
  padding: 40px 4% 30px;
  border-top: 1px solid #1c1c1c;
  font-size: 13px;
  color: var(--text-muted);
}

.footer-container {
  max-width: 1000px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 30px;
  margin-bottom: 30px;
}

.footer-brand {
  max-width: 350px;
}

.footer-brand .logo {
  margin-bottom: 10px;
}

.footer-description {
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  color: #fff;
  font-size: 14px;
  margin-bottom: 15px;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-list a:hover {
  color: var(--primary-color);
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding-top: 25px;
  border-top: 1px solid #222;
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s;
}

.social-link:hover {
  color: var(--primary-color);
}

.heart {
  color: var(--primary-color);
}

/* ── Responsive Styling ── */
@media (max-width: 992px) {
  .navbar {
    padding: 0 5%;
  }

  .navbar.active {
    background-color: var(--bg-color);
  }

  .nav-menu {
    position: fixed;
    top: var(--navbar-height);
    right: -100%;
    width: 250px;
    height: calc(100vh - var(--navbar-height));
    background-color: var(--bg-darker);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-menu.active {
    right: 0;
  }

  .hamburger {
    display: flex;
  }

  .navbar.active .hamburger-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .navbar.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }

  .navbar.active .hamburger-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-banner {
    height: 70vh;
  }

  .modal-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 576px) {
  .hero-banner-title {
    font-size: 2.2rem;
  }

  .movie-card {
    width: 140px;
  }

  .modal-banner-info {
    bottom: 15px;
    left: 15px;
    width: calc(100% - 30px);
  }

  .modal-body {
    padding: 15px;
  }

  .modal-episodes-section {
    padding: 0 15px 15px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}