/* Local Onest font (weights 400-700) */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/Onest-latin.woff2") format("woff2");
}

:root {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --muted: #475569;
  --accent: #ff3158;
  --accent-dark: #e32152;
  --container: 1240px;
  --base-size: 15px;
  --radius: 16px;
  --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 20px 40px -10px rgba(0, 0, 0, 0.12);
}

/* Reset & base */
* {
  box-sizing: border-box
}

html {
  font-size: var(--base-size);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: "Onest", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  background: #f8f9fc;
  color: #1e293b;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 49, 88, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(1, 180, 228, 0.03) 0%, transparent 50%);
  z-index: -1;
  pointer-events: none;
}

/* Dark backdrop removed for white background */

/* Container */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 16px;
}

/* Header */
.site-header {
  background: #022742;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: 0 4px 20px rgba(2, 23, 40, 0.4);
  backdrop-filter: blur(10px);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #d5fff4;
  text-decoration: none;
}

.logo-text {
  letter-spacing: 0.15em;
}

.logo-pill {
  background: linear-gradient(90deg, #01b4e4, #00d7a5);
  color: #012742;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all .2s ease;
  padding: 6px 12px;
  border-radius: 99px;
}

.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
}

.lang-switcher {
  position: relative;
}

.lang-toggle {
  font-size: 1.2rem;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: #031731;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.4);
  min-width: 150px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 110;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu button {
  width: 100%;
  background: transparent;
  border: none;
  color: #e5eeff;
  text-align: left;
  padding: 8px 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
}

.lang-menu button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: #00e5ff;
  /* Brighter cyan/blue */
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.1);
  /* Subtle glow */
}

.icon-btn svg {
  width: 18px;
  height: 18px;
}

.icon-btn:hover {
  background: rgba(0, 229, 255, 0.15);
  color: #fff;
  border-color: #00e5ff;
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.4);
}

.lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  padding: 4px 10px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.ghost-link {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.ghost-link.strong {
  color: #ffe082;
}

.ghost-link:hover {
  color: #fff;
}

.divider {
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
}

@media (max-width:900px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .brand-block {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .header-actions {
    flex-wrap: wrap;
  }
}

/* HERO */
.hero-wrapper {
  width: 100%;
}

.hero-banner {
  width: 100%;
  margin: 0 auto 40px;
  position: relative;
  min-height: 65vh;
  /* Taller hero */
  max-height: 700px;
  border-radius: 0;
  background: #0b1f37;
  display: flex;
  align-items: flex-end;
  /* Align content to bottom */
  box-shadow: none;
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Allow dropdowns/results to overflow hero even if inline styles set overflow */
.hero-banner {
  overflow: visible !important;
}

.hero-banner::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  z-index: 2;
}

.hero-banner .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(11, 31, 55, 1) 0%, rgba(11, 31, 55, 0.8) 40%, rgba(11, 31, 55, 0.2) 100%);
  z-index: 1;
}

.hero-banner .hero-content {
  position: relative;
  z-index: 3;
  padding: 40px 32px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: flex-end;
  height: 100%;
}

.listing-panel {
  margin-top: 30px;
  background: #fff;
  border: 1px solid #e5e7ef;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 12px 24px rgba(15, 20, 32, 0.06);
}

.listing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  border-bottom: 1px solid #eef1f7;
  padding-bottom: 12px;
}

.listing-header h2 {
  margin: 0;
  font-size: 1.4rem;
}

.filter-controls {
  margin-top: 18px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
  color: #4a5161;
}

.filter-controls select {
  padding: 10px 12px;
  border: 1px solid #dfe3ec;
  border-radius: 6px;
  background: #f9fafc;
  min-width: 160px;
}

.filter-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.filter-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: #6b7280;
}

.filter-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  background: #f8fafc;
  border: 1px solid #e5e7ef;
  border-radius: 10px;
}

.filter-card img {
  width: 60px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.filter-card strong {
  display: block;
  color: #0f172a;
}

.filter-card small {
  color: #6b7280;
}

.filter-card .badge {
  margin-left: auto;
  background: #ffd54f;
  color: #744210;
  padding: 4px 8px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-banner .hero-content h1 {
  margin: 0 0 10px;
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 800px;
}

@media (max-width: 768px) {
  .hero-banner .hero-content h1 {
    font-size: 2rem;
  }

  .hero-banner {
    min-height: 50vh;
  }
}

.hero-search {
  display: flex;
  gap: 8px;
  width: 100%;
  border-radius: 16px;
  background: #fff;
  padding: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 20;
}

.hero-search input {
  flex: 1;
  border: none;
  background: transparent;
  color: #0f1220;
  font-size: 1.05rem;
  padding: 14px 18px;
}

.hero-search input::placeholder {
  color: #4b5563;
}

.hero-search button {
  border: none;
  background: linear-gradient(135deg, #0cf1c7, #01a0e4);
  color: #0b1e2f;
  font-weight: 700;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.hero-search button:hover {
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .hero-search {
    padding: 4px;
    gap: 6px;
  }

  .hero-search input {
    padding: 10px 12px;
    font-size: 0.95rem;
    min-width: 0;
    /* Allow shrinking */
  }

  .hero-search button {
    padding: 10px 16px;
    font-size: 0.9rem;
    flex-shrink: 0;
    /* Prevent button from being squashed */
  }

  .hero-search .origin-toggle {
    padding: 0 8px;
    min-width: auto;
  }
}

.hero-search-origin {
  position: relative;
  flex-shrink: 0;
  margin-right: 6px;
}

.hero-search .origin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 0 12px;
  min-width: 90px;
  background: #0f2a40;
  color: #e5edf9;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.hero-search .origin-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: #0b1e2f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 5000;
}

.hero-search .origin-dropdown.open {
  display: flex;
}

.hero-search .origin-option {
  background: transparent;
  border: none;
  color: #e5edf9;
  text-align: left;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-search .origin-option:hover {
  background: rgba(255, 255, 255, 0.08);
}

.hero-search .origin-option.active {
  border-left: 3px solid #00d7a5;
  background: rgba(0, 215, 165, 0.08);
}

.filter-section {
  margin: 20px 0;
}

.filter-bar {
  background: #fff;
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-bar .filter-search {
  flex: 1;
  display: flex;
  align-items: center;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0 10px;
}

.filter-bar .filter-search input {
  flex: 1;
  background: transparent;
  border: none;
  color: #334155;
  padding: 10px;
  font-size: 0.95rem;
}

.filter-bar .filter-search input::placeholder {
  color: #64748b;
}

.filter-bar .filter-search button {
  border: none;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-bar select {
  background: #f1f5f9;
  color: #334155;
  border: none;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.filter-bar select option {
  background: #fff;
  color: #0f172a;
}

.media-section {
  margin-bottom: 26px;
}

.media-section h3 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.01em;
}

.listing-hero {
  margin: 24px 0;
  padding: 24px;
  background: #fff;
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
}

.listing-hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 8px;
}

.listing-hero h1 {
  margin: 0 0 8px;
  font-size: 1.8rem;
}

.listing-hero p {
  margin: 0 0 10px;
  color: #2b3140;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #0f172a;
}

.chip-row span {
  background: #f1f5f9;
  border-radius: 99px;
  padding: 6px 16px;
  border: none;
  color: #475569;
  font-weight: 500;
}

.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0 30px;
}

.page-link {
  padding: 8px 16px;
  border-radius: 12px;
  border: none;
  background: #fff;
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.page-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  color: var(--accent);
}

.page-link.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-link.prev,
.page-link.next {
  border-color: transparent;
  color: var(--accent-dark);
}

.dots {
  color: #475569;
}

/* Colunas internas (Filmes/Séries/Animes) */
.col {
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.col h3 {
  margin: 4px 0 12px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
  border-bottom: 1px solid #edf1fb;
  padding-bottom: 8px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
  padding-top: 12px;
}

.grid .card {
  width: 100%;
}

/* Card menor e mais compacto */
.card {
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  border: none;
  box-shadow: none;
  min-height: 100%;
}

.card:hover {
  transform: translateY(-8px);
}

.card:hover .poster {
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.card a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.poster {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: #1e293b;
}

.card:hover .poster {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.poster-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: auto;
  height: auto;
  min-width: 36px;
  padding: 4px 8px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #4ade80;
  font-size: 0.8rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.poster-badge small {
  font-size: 0.62rem;
  margin-left: 1px;
}

.poster-menu {
  position: absolute;
  top: 10px;
  right: 12px;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

.card-body {
  margin-top: 12px;
  padding: 0 4px;
  border-radius: 0;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  box-shadow: none;
}

.card-body strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
  text-align: left;
}

.card-body small {
  color: #5e6271;
  font-size: 0.82rem;
}

/* Footer */
.site-footer {
  padding: 28px 0 32px;
  border-top: 1px solid rgba(223, 227, 241, 0.7);
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.7);
}

.site-footer small {
  color: #6a728c;
  font-size: 0.9rem;
}

/* small helpers */
.btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px rgba(255, 49, 88, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -4px rgba(255, 49, 88, 0.5);
}

.btn.secondary {
  background: transparent;
  border: 1px solid #d5d8e3;
  color: #11131a;
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: #b8bdcd;
}

/* DETAIL PAGES */
.detail-hero {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f8f9fc;
  border-bottom: none;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(15, 15, 16, 0.92) 25%, rgba(15, 15, 16, 0.68) 60%, rgba(15, 15, 16, 0.95) 100%);
}

.detail-hero .hero-content,
.detail-hero .hero-text,
.detail-hero h1,
.detail-hero h3,
.detail-hero p,
.detail-hero .breadcrumb {
  color: #fff;
}

.detail-hero .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 18px;
  align-items: end;
  padding: 22px 16px 18px;
  max-width: var(--container);
  margin: 0 auto;
}

.poster-frame {
  background: rgba(255, 255, 255, 0.04);
  padding: 8px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.poster-frame img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.poster-media {
  border-radius: 14px 14px 0 0;
  overflow: hidden;
}

.poster-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.hero-text {
  align-self: center;
}

.breadcrumb {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 6px;
  letter-spacing: 0.01em;
}

.detail-title {
  margin: 0 0 8px;
  font-size: 1.6rem;
  line-height: 1.2;
}

.meta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 6px 9px;
  border-radius: 20px;
  font-size: 0.9rem;
}

.chip.rating {
  background: rgba(255, 193, 7, 0.18);
  color: #ffd54f;
  font-weight: 600;
}

.tagline {
  color: var(--muted);
  margin: 0 0 10px;
  font-size: 1rem;
}

.overview {
  margin: 0 0 10px;
  color: #e6e6e6;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.detail-hero .breadcrumb {
  color: rgba(255, 255, 255, 0.85);
}

.detail-hero .btn.secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.8);
  color: #fff;
}

.detail-hero .btn.secondary:hover {
  border-color: #fff;
}

.hero-cast {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-cast-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(8, 11, 18, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-cast-item img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0d14;
  flex-shrink: 0;
}

.hero-cast-item strong {
  display: block;
  color: #fff;
  font-size: 0.9rem;
}

/* Breadcrumbs */
.breadcrumb-nav {
  max-width: var(--container);
  margin: 4px auto 10px;
  padding: 10px 16px;
  color: #f7f9ff;
  background: rgba(6, 18, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(6px);
  box-sizing: border-box;
}

.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-link {
  color: #f7f9ff;
  text-decoration: none;
  transition: color 0.2s ease;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
  color: #ffffff;
  font-weight: 600;
}

.detail-hero .breadcrumb-nav {
  margin: 0 auto 10px;
  padding: 10px 16px;
}

.hero-cast-item small {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.75rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 320px;
  gap: 16px;
  margin: 20px 0;
  align-items: start;
}

.section-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
}

.section-card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.section-card p {
  margin: 0 0 8px;
  color: #2d3038;
}

.cast-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
}

.cast-card {
  background: #f3f5fa;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid #e5e7ef;
}

.cast-card img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  background: #0d0d0e;
}

.cast-card strong {
  display: block;
  font-size: 0.95rem;
}

.cast-card small {
  color: var(--muted);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.info-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.95rem;
  color: #11131a;
  align-items: flex-start;
}

.info-list span {
  color: var(--muted);
  min-width: 110px;
}

.season-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.season-item {
  padding: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  overflow: hidden;
  position: relative;
}

.season-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.season-item:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

.season-item>div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 30px 25px;
  gap: 15px;
  position: relative;
  z-index: 1;
}

.season-item strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  margin: 0;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.5px;
}

.season-item small {
  color: rgba(255, 255, 255, 0.95);
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 5px;
}

.season-item .btn {
  background: rgba(255, 255, 255, 0.95);
  color: #667eea;
  border: none;
  padding: 12px 35px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.season-item .btn:hover {
  background: #fff;
  color: #764ba2;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Variant colors for multiple seasons */
.season-item:nth-child(2) {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 10px 30px rgba(240, 147, 251, 0.3);
}

.season-item:nth-child(2):hover {
  box-shadow: 0 15px 40px rgba(240, 147, 251, 0.5);
}

.season-item:nth-child(2) .btn {
  color: #f5576c;
}

.season-item:nth-child(2) .btn:hover {
  color: #f093fb;
}

.season-item:nth-child(3) {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 10px 30px rgba(79, 172, 254, 0.3);
}

.season-item:nth-child(3):hover {
  box-shadow: 0 15px 40px rgba(79, 172, 254, 0.5);
}

.season-item:nth-child(3) .btn {
  color: #00f2fe;
}

.season-item:nth-child(3) .btn:hover {
  color: #4facfe;
}

.season-item:nth-child(4) {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  box-shadow: 0 10px 30px rgba(67, 233, 123, 0.3);
}

.season-item:nth-child(4):hover {
  box-shadow: 0 15px 40px rgba(67, 233, 123, 0.5);
}

.season-item:nth-child(4) .btn {
  color: #38f9d7;
}

.season-item:nth-child(4) .btn:hover {
  color: #43e97b;
}

/* Torrents */
.torrent-focus {
  margin-top: 30px;
}

.torrent-section {
  width: 100%;
  background: linear-gradient(135deg, #08132a, #041e33);
  color: #f3f6ff;
  border-radius: 20px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 52px rgba(4, 12, 24, 0.42);
}

.torrent-box {
  background: #e7f6ec;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #c4e3ce;
  box-shadow: 0 6px 18px rgba(40, 85, 58, 0.08);
}

.torrent-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.torrent-header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.filter-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chips .chip {
  cursor: default;
}

.torrent-list {
  width: 100%;
  border-collapse: collapse;
}

.torrent-list th,
.torrent-list td {
  padding: 10px 8px;
  text-align: left;
  font-size: 0.95rem;
}

.torrent-list th {
  color: #3d5a46;
  font-weight: 700;
  border-bottom: 1px solid #c4e3ce;
}

.torrent-list tr+tr td {
  border-top: 1px solid #c4e3ce;
}

.torrent-list .tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 14px;
  font-size: 0.85rem;
  background: #d8efe3;
  margin-right: 6px;
  border: 1px solid #c4e3ce;
  color: #28553a;
}

.torrent-actions a {
  margin-right: 10px;
  color: #1d1f27;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.torrent-actions a:hover {
  color: var(--accent);
}

.seeders {
  color: #7CFC00;
  font-weight: 600;
}

.leechers {
  color: #ffb347;
}

.torrent-section .torrent-header h3 {
  color: #fff;
}

.torrent-section .filter-chips .chip {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-radius: 999px;
}

.torrent-section .torrent-list th {
  color: #a4b4ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.torrent-section .torrent-list td {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: #f1f5ff;
}

.torrent-section .torrent-list .tag {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.15);
}

.torrent-section .torrent-actions a {
  color: #7ddfff;
}

.torrent-section .torrent-actions a:hover {
  color: #fff;
}

.poster-actions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  background: #04142a;
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-top: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.poster-actions .btn {
  width: 100%;
  justify-content: center;
  border-radius: 12px;
}

.poster-actions .btn.secondary {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.poster-actions .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

/* No Downloads State */
.no-downloads {
  text-align: center;
  padding: 60px 20px;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.no-downloads-icon {
  width: 64px;
  height: 64px;
  background: #f1f5f9;
  color: #94a3b8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.no-downloads p {
  color: #64748b;
  font-size: 1.1rem;
  margin: 0;
}

/* Episódios / Temporadas */
.episode-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.episode-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
  table-layout: fixed;
}

.episode-table thead th {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
}

.episode-table th:nth-child(1) {
  width: 10%;
}

.episode-table th:nth-child(2) {
  width: 25%;
}

.episode-table th:nth-child(3) {
  width: 40%;
}

.episode-table th:nth-child(4) {
  width: 15%;
  text-align: center;
}

.episode-table th:nth-child(5) {
  width: 10%;
  text-align: center;
}

.episode-table td:nth-child(4),
.episode-table td:nth-child(5) {
  text-align: center;
}

/* TABS (Series Page) */
.tab-nav {
  display: flex;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #fff;
}

.tab-btn.active {
  color: #fff;
  border-bottom-color: var(--accent);
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DROPDOWNS (Season Page) */
.download-dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-btn {
  background: linear-gradient(120deg, #0cf1c7, #01a0e4);
  color: #0b1e2f;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.1s;
}

.dropdown-btn:active {
  transform: scale(0.96);
}

.dropdown-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  padding: 8px;
  border: 1px solid #e5e7ef;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  color: #0f172a;
  transition: background 0.2s;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.quality-badge {
  background: #0f172a;
  color: #fff;
  font-size: 0.75rem;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.item-info {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
}

.item-info span {
  font-weight: 600;
}

.item-info small {
  color: #64748b;
  font-size: 0.75rem;
}

.episode-table tbody tr {
  background: var(--surface);
  border: 1px solid #e5e7ef;
  border-radius: 14px;
  box-shadow: 0 12px 24px rgba(15, 17, 26, 0.05);
  transition: all 0.2s ease;
}

.episode-table td {
  padding: 16px 14px;
  font-size: 0.9rem;
  border: none;
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
  word-break: break-word;
  box-sizing: border-box;
}

.episode-table td:first-child {
  font-weight: 700;
  color: #0f172a;
  width: 100px;
  min-width: 80px;
  background: transparent;
  padding-top: 18px;
}

.episode-table td:nth-child(2) {
  width: 180px;
  min-width: 150px;
  padding-top: 18px;
}

.episode-table td:nth-child(3) {
  width: auto;
  min-width: 200px;
  padding-top: 18px;
}

.episode-table td:nth-child(4) {
  width: 140px;
  min-width: 130px;
  text-align: center;
  white-space: nowrap;
  padding-top: 18px;
  vertical-align: middle;
}

.episode-table td:nth-child(5) {
  width: 170px;
  min-width: 150px;
  text-align: center;
  vertical-align: middle;
  padding-top: 18px;
}

.episode-table .quality-item {
  display: table-row;
  gap: 0;
  padding: 0;
}

.episode-table td:last-child .dl-btn {
  display: inline-flex;
  justify-content: center;
}

.episode-title {
  font-weight: 600;
  color: #11131a;
  margin-bottom: 4px;
}

.episode-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.episode-overview {
  position: relative;
}

.episode-overview .text {
  margin: 0;
  color: #0f172a;
  font-size: 0.9rem;
}

.episode-overview .text.full {
  display: none;
}

.episode-overview.expanded .text.short {
  display: none;
}

.episode-overview.expanded .text.full {
  display: block;
}

.episode-toggle {
  margin-top: 6px;
  background: none;
  border: none;
  color: var(--accent);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.episode-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.episode-actions .tag {
  margin-bottom: 0;
}

/* RESPONSIVO: reduzir ainda mais em telas menores */
@media (max-width:1100px) {
  .layout-grid {
    grid-template-columns: 1fr 1fr 280px;
    border-left: none;
    border-right: none;
    padding: 10px 0;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width:860px) {
  .layout-grid {
    grid-template-columns: 1fr 280px;
    border-top: none;
    border-bottom: none;
  }

  .sidebar {
    order: 4;
  }

  .highlights {
    grid-template-columns: 1fr;
  }

  .grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }
}

@media (max-width:680px) {
  .layout-grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .sidebar {
    order: 3;
    width: 100%;
    border-left: none;
    padding-left: 0;
  }

  .container {
    padding: 12px;
  }

  /* 2 colunas no mobile */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .grid .card {
    width: 100%;
  }

  /* Manter aspect ratio do poster */
  .poster {
    aspect-ratio: 2 / 3;
    height: auto;
  }

  .logo {
    font-size: 1rem;
  }
}

@media (max-width:420px) {

  /* Ainda 2 colunas mesmo em telas muito pequenas */
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .poster {
    aspect-ratio: 2 / 3;
    height: auto;
  }

  :root {
    --base-size: 13px;
  }
}

@media (max-width:960px) {
  .detail-hero .hero-content {
    grid-template-columns: 180px 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width:640px) {
  .detail-hero .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text {
    text-align: center;
  }

  .meta-chips {
    justify-content: center;
  }

  .actions {
    justify-content: center;
  }

  .poster-frame {
    max-width: 220px;
    margin: 0 auto;
  }

  .cast-card {
    grid-template-columns: 50px 1fr;
  }

  .episode-table thead {
    position: absolute;
    clip: rect(0 0 0 0);
    width: 1px;
    height: 1px;
    overflow: hidden;
  }

  .episode-table tbody tr {
    display: block;
    padding: 10px 12px;
  }

  .episode-table .quality-item {
    display: block;
  }

  .episode-table td {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
  }

  .episode-table td::before {
    content: attr(data-label);
    font-weight: 600;
    color: var(--muted);
    font-size: 0.85rem;
  }

  .episode-table td[data-label="Título"] {
    flex-direction: column;
  }

  .episode-table td[data-label="Título"]::before {
    margin-bottom: 4px;
  }

  .episode-table td[data-label="Download"] {
    flex-direction: column;
    align-items: flex-start;
  }

  .episode-table td[data-label="Download"]::before {
    margin-bottom: 4px;
  }
}

/* Quality Tabs & Tables */
.episode-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7ef;
  padding-bottom: 16px;
}

.episode-header-row h3 {
  margin: 0;
  font-size: 1.25rem;
}

.quality-tabs {
  display: flex;
  gap: 10px;
}

.quality-tab {
  background: #f1f5f9;
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 8px 16px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: all 0.2s ease;
  min-width: 120px;
  position: relative;
  overflow: hidden;
}

.quality-tab .res {
  font-weight: 800;
  font-size: 1.1rem;
  color: #334155;
  line-height: 1.2;
}

.quality-tab .meta {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 600;
}

.quality-tab:hover {
  background: #e2e8f0;
}

.quality-tab.active {
  background: #fff;
  border-color: var(--theme-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.quality-tab.active .res {
  color: var(--theme-color);
}

.quality-tab.active::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 20px;
  height: 20px;
  background: var(--theme-color);
  border-radius: 0 0 0 100%;
  opacity: 0.2;
}

/* Content Areas */
.quality-content {
  display: none;
  animation: fadeIn 0.3s ease;
}

.quality-content.active {
  display: block;
}

.quality-banner {
  background: linear-gradient(120deg, var(--theme-color), #0f172a);
  color: #fff;
  padding: 16px;
  border-radius: 12px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.banner-icon {
  background: rgba(255, 255, 255, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.banner-info {
  display: flex;
  flex-direction: column;
}

.banner-info strong {
  font-size: 1.05rem;
  margin-bottom: 2px;
}

.banner-info span {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Themed Tables */
.quality-content .episode-table thead th {
  color: var(--theme-color);
  border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.quality-content .dl-btn {
  background: var(--theme-color);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quality-content .dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
  filter: brightness(1.1);
}

.quality-content .dl-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 600px) {
  .quality-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .quality-tab {
    min-width: 100px;
    flex-shrink: 0;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #ffffff;
  width: 90%;
  max-width: 500px;
  border-radius: 20px;
  padding: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #0f172a;
}

.modal-header {
  margin-bottom: 24px;
  text-align: center;
}

.modal-header h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 1.5rem;
}

.modal-header p {
  margin: 0;
  color: #64748b;
}

.dl-option {
  background: #f8fafc;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
}

.dl-option:hover {
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.dl-info strong {
  display: block;
  color: #0f172a;
  margin-bottom: 4px;
}

.dl-info span {
  color: #64748b;
  font-size: 0.9rem;
}

.dl-action {
  padding: 8px 20px;
  font-size: 0.9rem;
}

/* Charming Button Updates */
.btn {
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 25px rgba(255, 49, 88, 0.35);
}

.dl-btn {
  background: linear-gradient(135deg, #00d7a5, #00b4e4);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(0, 215, 165, 0.2);
}

.dl-btn svg {
  width: 16px;
  height: 16px;
}

/* DETAIL PAGE NEW STYLES */

.detail-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 70vh;
  z-index: -1;
  overflow: hidden;
}

.backdrop-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center top;
  filter: blur(0px);
  transform: scale(1.1);
}

.backdrop-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(2, 39, 66, 0.7) 0%,
      rgba(248, 249, 252, 0.9) 80%,
      #f8f9fc 100%);
}

.detail-container {
  position: relative;
  margin-top: 140px;
  padding-bottom: 60px;
}

.detail-header {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  align-items: flex-start;
  margin-bottom: 60px;
}

.detail-poster {
  position: sticky;
  top: 100px;
}

.poster-img {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  aspect-ratio: 2/3;
  object-fit: cover;
}

.detail-info {
  padding-top: 20px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb .sep {
  opacity: 0.5;
}

.movie-title {
  font-size: 3rem;
  line-height: 1.1;
  margin: 0 0 20px;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 1rem;
  color: #475569;
}

.rating-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #0f172a;
  color: #fbbf24;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.meta-item {
  font-weight: 600;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid #cbd5e1;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 500;
}

.tagline {
  font-style: italic;
  color: #64748b;
  font-size: 1.1rem;
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
  padding-left: 16px;
}

.actions-row {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.primary-btn {
  background: var(--accent);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(255, 49, 88, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(255, 49, 88, 0.4);
}

.secondary-btn {
  background: #fff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}

.secondary-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.overview-section h3,
.cast-section h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: #0f172a;
}

.overview-section p {
  color: #334155;
  line-height: 1.7;
  font-size: 1.05rem;
  margin-bottom: 30px;
}

.cast-list {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.cast-item {
  flex: 0 0 auto;
  width: 80px;
  text-align: center;
}

.cast-item img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cast-item span {
  display: block;
  font-size: 0.8rem;
  line-height: 1.2;
  color: #475569;
}

/* Downloads Section */
.downloads-section {
  background: #fff;
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--shadow-soft);
  margin-bottom: 60px;
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.8rem;
  margin: 0 0 8px;
}

.section-header p {
  color: #64748b;
  margin: 0;
}

.download-list {
  display: grid;
  gap: 16px;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border: 1px solid #f1f5f9;
  border-radius: 16px;
  transition: all 0.2s ease;
}

.download-item:hover {
  border-color: var(--accent);
  background: #fff5f7;
  transform: translateX(4px);
}

.dl-icon {
  width: 48px;
  height: 48px;
  background: #f1f5f9;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
}

.download-item:hover .dl-icon {
  background: var(--accent);
  color: #fff;
}

.dl-info {
  flex: 1;
}

.dl-info strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
  margin-bottom: 4px;
}

.dl-info span {
  color: #64748b;
  font-size: 0.9rem;
}

.dl-meta {
  margin-right: 20px;
}

.seeders {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #10b981;
  background: #ecfdf5;
  padding: 4px 10px;
  border-radius: 8px;
}

.dl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  min-height: 44px;
  padding: 10px 18px;
  background: linear-gradient(135deg, #0f172a, #0b2035);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-align: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.28);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.32);
  filter: brightness(1.05);
}

.dl-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.dl-btn.is-disabled,
.dl-btn[disabled],
.dl-btn[aria-disabled="true"] {
  background: #9aa3b5;
  color: #e9edf4;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

/* Recommendations */
.recommendations-section h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
  border-left: 4px solid var(--accent);
  padding-left: 16px;
}

@media (max-width: 900px) {
  .detail-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .detail-poster {
    position: static;
    max-width: 200px;
    margin: 0 auto;
  }

  .movie-title {
    font-size: 2rem;
    text-align: center;
  }

  .meta-row {
    justify-content: center;
  }

  .actions-row {
    justify-content: center;
  }

  .download-item {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .dl-meta {
    margin: 0;
  }
}

/* MODAL STYLES */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 500px;
  border-radius: 24px;
  padding: 32px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.modal-overlay.open .modal-content {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #f1f5f9;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  font-size: 1.2rem;
  transition: all 0.2s;
}

.modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-header h3 {
  font-size: 1.5rem;
  margin: 0 0 8px;
  color: #0f172a;
}

.modal-header p {
  color: #64748b;
  margin: 0;
}

.dl-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-bottom: 12px;
  transition: all 0.2s;
}

.dl-option:hover {
  border-color: var(--accent);
  background: #fff5f7;
}

.dl-option .dl-info strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
}

.dl-option .dl-info span {
  font-size: 0.85rem;
  color: #64748b;
}

/* Quality Pills */
.quality-pills {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.quality-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  padding: 8px 16px;
  border-radius: 99px;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}

.quality-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.quality-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 12px rgba(255, 49, 88, 0.3);
}
/* ========================================
   NEW HEADER STYLES
   ======================================== */

.site-header-new {
    background: rgba(2, 39, 66, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.site-header-new .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    gap: 32px;
}

/* Logo */
.logo-new {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.05em;
    color: #fff;
    transition: transform 0.2s;
}

.logo-new:hover {
    transform: scale(1.05);
}

.logo-new .logo-text {
    color: #fff;
    letter-spacing: 0.1em;
}

.logo-new .logo-badge {
    background: linear-gradient(135deg, #01b4e4, #00d7a5);
    color: #012742;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Desktop Navigation */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 10px 18px;
    border-radius: 10px;
    transition: all 0.2s;
    position: relative;
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    color: #00d7a5;
    background: rgba(0, 215, 165, 0.12);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 18px;
    right: 18px;
    height: 2px;
    background: #00d7a5;
    border-radius: 2px 2px 0 0;
}

/* Header Actions */
.header-actions-new {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Language Switcher */
.lang-switcher-new {
    position: relative;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-option.active {
    background: rgba(0, 215, 165, 0.15);
    color: #00d7a5;
}

.lang-flag {
    font-size: 1.2rem;
}

/* Icon Buttons */
.icon-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn-new:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.icon-btn-new svg {
    width: 20px;
    height: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.nav-mobile.open {
    max-height: 400px;
    opacity: 1;
}

.nav-mobile-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mobile-link.active {
    background: rgba(0, 215, 165, 0.12);
    color: #00d7a5;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .header-content {
        height: 60px;
    }

    .site-header-new .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .logo-new {
        font-size: 1.2rem;
    }

    .logo-new .logo-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    min-width: 200px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 100;
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.lang-option.active {
    background: rgba(0, 215, 165, 0.15);
    color: #00d7a5;
}

.lang-flag {
    font-size: 1.2rem;
}

/* Icon Buttons */
.icon-btn-new {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.icon-btn-new:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.icon-btn-new svg {
    width: 20px;
    height: 20px;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s;
}

.nav-mobile.open {
    max-height: 400px;
    opacity: 1;
}

.nav-mobile-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mobile-link.active {
    background: rgba(0, 215, 165, 0.12);
    color: #00d7a5;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .header-content {
        height: 60px;
    }

    .site-header-new .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .logo-new {
        font-size: 1.2rem;
    }

    .logo-new .logo-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
}

/* Scrollbar for search results */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.search-result-info {
    flex: 1;
    min-width: 0;
    /* Prevent text overflow */
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.search-result-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header Search Input Wrapper */
.search-input-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 360px;
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    transform-origin: top right;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper input {
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mobile-link.active {
    background: rgba(0, 215, 165, 0.12);
    color: #00d7a5;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .header-content {
        height: 60px;
    }

    .site-header-new .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .logo-new {
        font-size: 1.2rem;
    }

    .logo-new .logo-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
}

/* Scrollbar for search results */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.search-result-info {
    flex: 1;
    min-width: 0;
    /* Prevent text overflow */
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.search-result-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header Search Input Wrapper */
.search-input-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 320px;
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    transform-origin: top right;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper input {
    border-radius: 8px;
    transition: all 0.2s;
}

.nav-mobile-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-mobile-link.active {
    background: rgba(0, 215, 165, 0.12);
    color: #00d7a5;
}

/* Responsive */
@media (max-width: 968px) {
    .nav-desktop {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }

    .header-content {
        height: 60px;
    }

    .site-header-new .container {
        padding: 0 16px;
    }
}

@media (max-width: 640px) {
    .logo-new {
        font-size: 1.2rem;
    }

    .logo-new .logo-badge {
        font-size: 0.7rem;
        padding: 3px 8px;
    }

    /* This block below was misplaced and is now removed.
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
    */
}

/* Scrollbar for search results */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}

.search-results-dropdown::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.search-results-dropdown::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    text-decoration: none;
    color: #fff;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.search-result-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
}

.search-result-info {
    flex: 1;
    min-width: 0;
    /* Prevent text overflow */
}

.search-result-title {
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #fff;
}

.search-result-meta {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-result-badge {
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Header Search Input Wrapper */
.search-input-wrapper {
    position: absolute;
    right: 0;
    top: 100%;
    margin-top: 10px;
    width: 320px;
    background: rgba(3, 23, 49, 0.98);
    backdrop-filter: blur(20px);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    z-index: 1001;
    transform-origin: top right;
    animation: slideDown 0.2s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-input-wrapper input {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.search-input-wrapper input:focus {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(0, 215, 165, 0.5);
}

.search-origin-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.origin-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    justify-content: space-between;
    font-weight: 700;
}

.origin-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(3, 23, 49, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 4500;
}

.origin-dropdown.open {
    display: flex;
}

.origin-option {
    background: transparent;
    border: none;
    color: #e8eef8;
    text-align: left;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.15s ease, color 0.15s ease;
}

.origin-option:hover {
    background: rgba(255, 255, 255, 0.08);
}

.origin-option.active {
    border-left: 3px solid #00d7a5;
    background: rgba(0, 215, 165, 0.08);
    color: #fff;
}

/* Hero Search Specifics */
.hero-search .search-results-dropdown {
    top: calc(100% + 4px) !important;
    background: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    left: 0;
    right: 0;
    position: absolute;
    z-index: 4000;
    border-radius: 0 0 16px 16px;
    max-height: 460px;
    overflow-y: auto;
}

/* Force specific styles for hero search results to override global defaults */
.hero-search .search-results-dropdown .search-result-item {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #fff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 10px !important;
    transition: background 0.2s;
}

.hero-search .search-results-dropdown .search-result-item:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.hero-search .search-results-dropdown .search-result-item.active {
    background: rgba(255, 255, 255, 0.12) !important;
}

.hero-search .search-results-dropdown .search-result-poster {
    width: 40px !important;
    height: 60px !important;
    min-width: 40px !important;
    /* Prevent shrinking */
    object-fit: cover !important;
    margin-right: 12px !important;
    border-radius: 4px !important;
    background-color: #333;
}

.hero-search .search-results-dropdown .search-result-info {
    text-align: left !important;
    color: #fff !important;
    flex: 1;
    overflow: hidden;
}

.hero-search .search-results-dropdown .search-result-title {
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    margin-bottom: 4px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-search .search-results-dropdown .search-result-meta {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 0.8rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.hero-search .search-results-dropdown .search-result-badge {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-size: 0.7rem !important;
    text-transform: uppercase;
}
/* Mobile Menu Enhancements */
.mobile-menu-toggle {
    display: none;
    /* Show only on mobile */
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: inline-flex !important;
    }

    .brand-block {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        align-items: center;
    }

    .main-nav {
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: #031731;
        flex-direction: column;
        gap: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
        z-index: 100;
    }

    .main-nav.show {
        max-height: 400px;
    }

    .main-nav a {
        padding: 16px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .header-actions {
        gap: 8px;
    }

    .header-inner {
        flex-direction: row;
        padding: 12px 16px;
    }

    .icon-btn:not(.mobile-menu-toggle) {
        display: none !important;
    }
}/* Quality Cards for Movies */
.quality-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.unified-quality-card {
    background: linear-gradient(135deg, #1a1d29, #2a2d39);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.unified-banner {
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.quality-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quality-item {
    background: linear-gradient(135deg, var(--item-color, #00d7a5), rgba(0, 0, 0, 0.3));
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.quality-badge {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.quality-details {
    flex: 1;
    min-width: 0;
}

.quality-details strong {
    display: block;
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 4px;
    font-weight: 600;
}

.quality-details span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
}

.unified-btn {
    flex-shrink: 0;
    padding: 14px 28px;
    font-size: 1rem;
}

@media (max-width: 768px) {
    .unified-banner {
        flex-direction: column;
    }

    .unified-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Legacy styles for compatibility */
.quality-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.quality-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.quality-card-banner {
    background: linear-gradient(135deg, var(--card-color, #00d7a5), rgba(0, 0, 0, 0.4));
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.quality-card-banner .banner-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.quality-card-banner .banner-info {
    flex: 1;
    min-width: 0;
}

.quality-card-banner .banner-info strong {
    display: block;
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.quality-card-banner .banner-info span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
}

.quality-card-banner .card-btn {
    flex-shrink: 0;
    margin-left: auto;
}