:root {
  --bg: #080808;
  --surface: #111;
  --card: #141414;
  --border: rgba(255, 255, 255, 0.07);
  --accent: #e50914;
  --accent2: #ff6b35;
  --text: #f0f0f0;
  --muted: #888;
  --radius: 14px;
}

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

/* SCROLLBARS minimalistas */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.14) transparent;
}
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: content-box;
}
*::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.22);
  background-clip: content-box;
  border: 2px solid transparent;
}

body {
  background: var(--bg);
  font-family: "DM Sans", sans-serif;
  color: var(--text);
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.022;
  pointer-events: none;
  z-index: 0;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 32px;
  height: 66px;
  background: linear-gradient(
    to bottom,
    rgba(8, 8, 8, 0.97),
    rgba(8, 8, 8, 0.55)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  height: 34px;
  cursor: pointer;
  flex-shrink: 0;
  color: #e6121b;
  filter: drop-shadow(0 2px 14px rgba(229, 9, 20, 0.32));
  transition:
    filter 0.18s,
    transform 0.18s;
}
.logo:hover {
  filter: drop-shadow(0 2px 18px rgba(229, 9, 20, 0.55)) brightness(1.08);
}
.logo:active {
  transform: scale(0.97);
}
.logo svg {
  height: 34px;
  width: auto;
  display: block;
}

/* NAV (tipo) */
.nav-tabs {
  display: flex;
  gap: 4px;
}
.nav-tab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s;
}
.nav-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}
.nav-tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}
.nav-tab.active.lista-tab {
  background: rgba(229, 9, 20, 0.16);
  color: #ff7070;
}

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* NAV tab sem quebra de linha */
.nav-tab {
  white-space: nowrap;
}

/* ── Filtro de gênero (agora no main, abaixo do section-header) ── */
.main-filters {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
/* SELECT (gênero) */
.filtro-genero {
  position: relative;
  display: flex;
  align-items: center;
}
.filtro-genero select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 32px 9px 14px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
  cursor: pointer;
  min-width: 130px;
  transition:
    background 0.2s,
    border-color 0.2s;
}
.filtro-genero select:hover {
  background: rgba(255, 255, 255, 0.11);
}
.filtro-genero option {
  background: #141414;
  color: var(--text);
}
.filtro-genero::after {
  content: "";
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg) translateY(-2px);
  pointer-events: none;
}
.filtro-genero.has-value select {
  border-color: rgba(229, 9, 20, 0.5);
  color: #ff7070;
}

.search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-wrap .ico {
  position: absolute;
  left: 12px;
  color: var(--muted);
  pointer-events: none;
}
#busca {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 32px 9px 36px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  width: 220px;
  outline: none;
  transition:
    background 0.2s,
    border-color 0.2s,
    width 0.3s;
}
#busca::placeholder {
  color: var(--muted);
}
#busca:focus {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.16);
  width: 280px;
}
.clear-btn {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: var(--muted);
  font-size: 15px;
  display: none;
  line-height: 1;
  padding: 2px;
  transition: color 0.15s;
}
.clear-btn:hover {
  color: var(--text);
}
.clear-btn.vis {
  display: block;
}

/* HERO */
.hero {
  position: relative;
  height: min(78vh, 1080px);
  overflow: hidden;
  margin-bottom: 0;
  background: #000;
}
/* Camada de fundo: blur só para cobrir bordas quando imagem não preenche */
.hero-bg-blur {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: blur(28px) brightness(0.4) saturate(1.2);
  transform: scale(1.08);
  opacity: 0.6;
  z-index: 0;
}
/* Imagem principal: preenche todo o hero (Netflix-style) */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  z-index: 1;
  transition: opacity 0.8s ease;
}
.hero.hero-loading .hero-bg,
.hero.hero-loading .hero-bg-blur,
.hero-bg[src=""],
.hero-bg-blur[src=""] {
  opacity: 0;
}
/* Trailer mudo no hero — wrapper com máscara para esconder bordas e chrome do YouTube */
.hero-trailer-wrap {
  position: absolute;
  top: 0;
  right: -6%;
  width: 70%;
  height: 100%;
  z-index: 2;
  pointer-events: auto;
  overflow: hidden;
  /* Máscara radial bem suave: visível no centro-direita, dissolve nas bordas */
  -webkit-mask-image: radial-gradient(
    ellipse 65% 78% at 62% 50%,
    #000 18%,
    rgba(0, 0, 0, 0.85) 38%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  mask-image: radial-gradient(
    ellipse 65% 78% at 62% 50%,
    #000 18%,
    rgba(0, 0, 0, 0.85) 38%,
    rgba(0, 0, 0, 0.45) 62%,
    rgba(0, 0, 0, 0.15) 80%,
    transparent 100%
  );
  animation: heroTrailerFade 1.2s ease both;
  transition: opacity 0.6s ease;
}
.hero-trailer-iframe {
  position: absolute;
  /* Iframe maior que o wrap: chrome do YouTube (título no topo, marca d'água) fica fora */
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  border: 0;
  pointer-events: none;
}
/* Camada de fade extra POR CIMA do trailer, suavizando ainda mais as bordas */
/* Camada de fade extra POR CIMA do trailer, suavizando ainda mais as bordas */
.hero-trailer-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 60% 70% at 62% 50%,
    transparent 30%,
    rgba(8, 8, 8, 0.25) 60%,
    rgba(8, 8, 8, 0.7) 88%,
    rgba(8, 8, 8, 0.95) 100%
  );
  z-index: 1;
}
/* Bot\u00e3o vermelho de play centralizado no trailer do hero.
   Clique abre a midia (mesmo comportamento do bot\u00e3o "Assistir agora"). */
.hero-trailer-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3; /* acima do iframe e do gradiente */
  pointer-events: auto;
  box-shadow:
    0 0 0 8px rgba(229, 9, 20, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  animation: heroTrailerFade 0.6s ease both;
}
.hero-trailer-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow:
    0 0 0 14px rgba(229, 9, 20, 0.22),
    0 16px 40px rgba(0, 0, 0, 0.7);
}
.hero-trailer-play svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}
.hero-trailer-audio {
  position: absolute;
  top: 96px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  transition:
    opacity 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}
.hero:hover .hero-trailer-audio,
.hero-trailer-audio:focus-visible {
  opacity: 1;
  pointer-events: auto;
}
.hero-trailer-audio:hover {
  background: rgba(22, 22, 22, 0.78);
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
}
.hero-trailer-audio svg {
  width: 21px;
  height: 21px;
}
/* Bloqueia qualquer interação (redundância, pois o iframe já tem pointer-events:none) */
.hero-trailer-block {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: transparent;
  pointer-events: none;
}
@media (max-width: 900px) {
  .hero-trailer-wrap {
    right: 0;
    width: 100%;
    -webkit-mask-image: radial-gradient(
      ellipse 78% 72% at 50% 50%,
      #000 15%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 0.35) 70%,
      transparent 100%
    );
    mask-image: radial-gradient(
      ellipse 78% 72% at 50% 50%,
      #000 15%,
      rgba(0, 0, 0, 0.8) 40%,
      rgba(0, 0, 0, 0.35) 70%,
      transparent 100%
    );
  }
  .hero-trailer-wrap::after {
    background:
      radial-gradient(
        ellipse 72% 65% at 50% 50%,
        transparent 25%,
        rgba(8, 8, 8, 0.3) 60%,
        rgba(8, 8, 8, 0.85) 95%
      );
  }
  .hero-trailer-play {
    width: 60px;
    height: 60px;
  }
  .hero-trailer-play svg {
    width: 24px;
    height: 24px;
  }
  .hero-trailer-audio {
    top: 82px;
    right: 16px;
    width: 40px;
    height: 40px;
  }
}
@media (hover: none), (pointer: coarse) {
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover,
  .filme-card.edge-top:hover,
  .filme-card.edge-bottom:hover {
    transform: none;
    box-shadow: none;
  }
  .filme-card:hover .card-media {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
  }
  .filme-card:hover .card-hover-panel {
    display: none;
  }
}
@keyframes heroTrailerFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* Vinheta: esquerda forte para texto, base para fade no content */
.hero-grad {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background:
    linear-gradient(
      to right,
      rgba(8, 8, 8, 0.97) 0%,
      rgba(8, 8, 8, 0.72) 28%,
      rgba(8, 8, 8, 0.18) 58%,
      rgba(8, 8, 8, 0)    78%
    ),
    linear-gradient(
      to top,
      rgba(8, 8, 8, 1)    0%,
      rgba(8, 8, 8, 0.35) 18%,
      transparent         42%
    ),
    linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0.5) 0%,
      transparent         18%
    );
}
.hero-content {
  position: relative;
  z-index: 4;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 52px 60px;
  max-width: 560px;
  animation: heroIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 5px;
  margin-bottom: 14px;
  width: fit-content;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(44px, 6.5vw, 80px);
  letter-spacing: 2.5px;
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.9);
}
.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.hero-meta-row span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}
.hero-dot {
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}
.hero-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.65;
  margin-bottom: 28px;
  font-weight: 300;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-play {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: #080808;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 30px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-play:hover {
  background: rgba(255, 255, 255, 0.86);
  transform: scale(1.03);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.11);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  text-decoration: none;
  backdrop-filter: blur(4px);
  transition: background 0.15s;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* MAIN */
main {
  position: relative;
  z-index: 1;
  padding: 48px 48px 80px;
}
.section {
  margin-bottom: 52px;
}
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 26px;
  letter-spacing: 2px;
}
.search-result-label {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  display: none;
}
.search-result-label strong {
  color: var(--text);
}
.search-result-label.vis {
  display: block;
}

/* GRID */
.filmes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 22px;
  /* hover-scale dos cards precisa "vazar" do grid */
  overflow: visible;
  padding: 8px 10px;
  margin: -8px -10px;
  /* perspectiva 3D para o pop-forward */
  perspective: 1400px;
  perspective-origin: 50% 60%;
}

.genre-block {
  grid-column: 1 / -1;
  min-width: 0;
  margin-bottom: 22px;
}
.genre-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 14px;
  letter-spacing: 0;
}
.genre-grid {
  margin: 0;
  padding: 0;
}

/* ─── CARD (estilo Prime: só poster, painel info abaixo no hover) ─── */
.filme-card {
  position: relative;
  border-radius: 10px;
  /* overflow: visible para o painel abaixo não ser clipado */
  overflow: visible;
  cursor: pointer;
  aspect-ratio: 2 / 3;
  will-change: transform;
  transform-origin: center bottom;
  transform-style: preserve-3d;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    z-index 0s linear 0.32s;
  animation: cardIn 0.45s ease both;
  isolation: isolate;
}
/* Edge detection: ajusta transform-origin para não sair da tela */
.filme-card.edge-left  { transform-origin: left bottom; }
.filme-card.edge-right { transform-origin: right bottom; }
@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.filme-card:hover {
  transform: scale(1.22) translateY(-10px) translateZ(0);
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.95),
    0 0 0 2px rgba(229, 9, 20, 0.6),
    0 0 40px rgba(229, 9, 20, 0.08);
  z-index: 20;
  transition:
    transform 0.32s cubic-bezier(0.34, 1.56, 0.64, 1),
    box-shadow 0.32s ease,
    z-index 0s;
}
/* Edge cards: compensam a escala para não sair da tela */
.filme-card.edge-left:hover  { transform: scale(1.22) translateY(-10px) translateX(6%) translateZ(0); }
.filme-card.edge-right:hover { transform: scale(1.22) translateY(-10px) translateX(-6%) translateZ(0); }

/* clip do poster/trailer dentro da forma arredondada */
.card-media {
  position: absolute;
  inset: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color 0.25s;
}
.filme-card:hover .card-media {
  border-color: rgba(229, 9, 20, 0.5);
}

/* faixa vermelha no topo no hover */
.card-media::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
  z-index: 6;
}
.filme-card:hover .card-media::before {
  transform: scaleX(1);
}

.filme-poster {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.filme-hover-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  z-index: 1;
  transition: opacity 0.18s ease;
}
.filme-card:hover .filme-poster {
  transform: scale(1.06);
}

.card-trailer-iframe {
  position: absolute;
  /* Iframe maior que o card: t\u00edtulo no topo e marca d'\u00e1gua do YouTube ficam fora */
  top: -14%;
  left: -14%;
  width: 128%;
  height: 128%;
  border: 0;
  background: #000;
  pointer-events: none;
  z-index: 2;
  animation: cardTrailerFade 0.6s ease both;
}
@keyframes cardTrailerFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Top bar: tags à esquerda, ações à direita ── */
.card-top-bar {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  z-index: 5;
  pointer-events: none;
}
.card-top-left,
.card-top-right {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
  pointer-events: auto;
}
.card-top-right {
  opacity: 0;
  transition: opacity 0.2s;
}
.filme-card:hover .card-top-right {
  opacity: 1;
}
.filme-card .btn-add-list.in-list {
  opacity: 1;
}

.card-tipo-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
}
.card-tipo-tag.serie {
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.card-cat-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(229, 9, 20, 0.5);
  color: #ff8a8a;
  padding: 3px 8px;
  border-radius: 5px;
  backdrop-filter: blur(4px);
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-mini-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.15s,
    transform 0.15s;
}
.card-mini-btn:hover {
  background: rgba(229, 9, 20, 0.85);
  transform: scale(1.08);
}
.card-mini-btn.danger:hover {
  background: rgba(180, 0, 0, 0.95);
}

.filme-card .btn-add-list {
  position: static !important;
  top: auto !important;
  right: auto !important;
  opacity: 1;
  width: 30px;
  height: 30px;
}

/* ── Overlay compacto na base do card (título + ano, sempre visível) ── */
.card-info-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 12px 10px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.97) 0%,
    rgba(0, 0, 0, 0.8)  45%,
    rgba(0, 0, 0, 0)    100%
  );
  z-index: 3;
  pointer-events: none;
}
.card-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta-mini {
  margin-top: 3px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  gap: 6px;
}
.watch-progress {
  width: 100%;
  height: 3px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}
.watch-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.card-watch-progress {
  margin-top: 7px;
  max-width: 100%;
}

/* ── Painel que aparece ABAIXO do card no hover (como Prime Video) ── */
.card-hover-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 0 12px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  z-index: 19;
  backdrop-filter: blur(6px);
  transition:
    max-height 0.35s ease,
    opacity 0.2s ease,
    padding 0.35s ease;
}
.filme-card:hover .card-hover-panel {
  max-height: 180px;
  opacity: 1;
  padding: 10px 12px 12px;
}
.card-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.card-genre-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.2px;
}
.card-desc {
  margin-top: 7px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Modal backup lembrete ── */
.backup-modal {
  max-width: 420px;
  width: 90vw;
  padding: 36px 32px 28px;
  text-align: center;
  border-radius: 20px;
  z-index: 500; /* garante ficar na frente de tudo */
}
#modal-backup-overlay {
  z-index: 490;
}
.backup-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.backup-modal h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.backup-modal p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.backup-modal strong {
  color: var(--text);
}
.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-backup-do {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn-backup-do:hover {
  background: #c40812;
  transform: scale(1.02);
}
.btn-backup-skip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 11px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-backup-skip:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}


/* Modal backup lembrete */
.backup-modal {
  max-width: 420px;
  width: 90vw;
  padding: 36px 32px 28px;
  text-align: center;
  border-radius: 20px;
  z-index: 500; /* garante ficar na frente de tudo */
}
#modal-backup-overlay {
  z-index: 490;
}
.backup-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.3);
  color: var(--accent);
  margin-bottom: 20px;
}
.backup-modal h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.3;
}
.backup-modal p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.72);
  margin-bottom: 28px;
}
.backup-modal strong {
  color: var(--text);
}
.backup-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.btn-backup-do {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}
.btn-backup-do:hover {
  background: #c40812;
  transform: scale(1.02);
}
.btn-backup-skip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 10px;
  padding: 11px 20px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-backup-skip:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* EMPTY */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 80px 20px;
  color: var(--muted);
}
.empty-state svg {
  margin-bottom: 16px;
  opacity: 0.3;
}
.empty-state p {
  font-size: 16px;
}

/* MODAL */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: #121212;
  border-radius: 20px;
  width: 92vw;
  max-width: 960px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transform: scale(0.91) translateY(22px);
  transition: transform 0.38s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 48px 96px rgba(0, 0, 0, 0.85);
  overflow: hidden;
  position: relative;
}
.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-overlay.player-maximized {
  padding: 0;
  align-items: stretch;
  justify-content: stretch;
  background: #000;
  overflow: hidden;
}
.modal-overlay.player-native-fullscreen {
  background: #000;
  inset: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.modal-overlay.player-maximized .modal {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}
.modal-overlay.player-native-fullscreen .modal {
  width: 100%;
  max-width: none;
  height: 100dvh;
  max-height: none;
  border: 0;
  border-radius: 0;
  background: #000;
  box-shadow: none;
}
.modal-overlay.player-maximized .modal,
.modal-overlay.player-native-fullscreen .modal {
  transform: none !important;
  transition: none !important;
  overflow: hidden !important;
}
.modal-overlay.player-maximized .modal-tabs,
.modal-overlay.player-maximized .modal-close,
.modal-overlay.player-maximized .modal-body,
.modal-overlay.player-maximized #pane-trailer,
.modal-overlay.player-native-fullscreen .modal-tabs,
.modal-overlay.player-native-fullscreen .modal-close,
.modal-overlay.player-native-fullscreen .modal-body,
.modal-overlay.player-native-fullscreen #pane-trailer {
  display: none !important;
}
.modal-overlay.player-maximized .m-tab,
.modal-overlay.player-maximized .m-tab.active,
.modal-overlay.player-native-fullscreen .m-tab,
.modal-overlay.player-native-fullscreen .m-tab.active {
  height: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom-color: transparent !important;
  background: transparent !important;
  opacity: 0 !important;
  overflow: hidden !important;
}
.modal-overlay.player-maximized .modal-scroll,
.modal-overlay.player-maximized #pane-assistir,
.modal-overlay.player-native-fullscreen .modal-scroll,
.modal-overlay.player-native-fullscreen #pane-assistir {
  height: 100%;
  overflow: hidden;
}
.modal-overlay.player-maximized .video-wrap,
.modal-overlay.player-native-fullscreen .video-wrap {
  height: 100dvh;
  max-height: none;
  aspect-ratio: auto;
}

.modal-tabs {
  display: flex;
  background: #0d0d0d;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  flex-shrink: 0;
}
.m-tab {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 14px 18px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition:
    color 0.2s,
    border-color 0.2s;
  user-select: none;
}
.m-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.modal-close {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10;
}
.modal-close:hover {
  background: rgba(229, 9, 20, 0.85);
}

.modal-scroll {
  overflow-y: auto;
  flex: 1;
}

/* Tab Assistir */
.tab-pane {
  display: none;
  flex-direction: column;
}
.tab-pane.active {
  display: flex;
}

.video-wrap {
  position: relative;
  background: #000;
  flex-shrink: 0;
  width: 100%;
  aspect-ratio: 16/9;
  max-height: 60vh;
  overflow: hidden;
}
.modal:not(.modal-show-trailer) .trailer-wrap {
  display: none;
}
.modal.modal-show-trailer .video-wrap {
  display: none;
}
#video-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.video-wrap video,
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  outline: none;
  border: none;
}
/* Iframe do preview (stage): sem cliques (mantém centralizado, sem oversizing) */
#stage-iframe {
  pointer-events: none;
  top: -14%;
  left: -14%;
  right: auto;
  bottom: auto;
  width: 128%;
  height: 128%;
}
#modal-video-frame {
  background: #000;
  pointer-events: auto;
}
.video-wrap .trailer-poster-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
}
/* Skeleton de loading enquanto o vídeo carrega (antes do 1º frame) */
.video-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      90deg,
      rgba(20, 20, 20, 0) 0%,
      rgba(255, 255, 255, 0.06) 50%,
      rgba(20, 20, 20, 0) 100%
    ),
    #0a0a0a;
  background-size:
    200% 100%,
    100% 100%;
  animation: vidSkelShimmer 1.4s linear infinite;
  pointer-events: none;
}
.video-skeleton::after {
  content: "";
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--red, #e50914);
  animation: vidSkelSpin 0.9s linear infinite;
}
.video-skeleton.hidden {
  display: none;
}
@keyframes vidSkelShimmer {
  0% {
    background-position:
      200% 0,
      0 0;
  }
  100% {
    background-position:
      -200% 0,
      0 0;
  }
}
@keyframes vidSkelSpin {
  to {
    transform: rotate(360deg);
  }
}
/* Botão central de play (estilo Netflix/Prime) */
.center-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 45%
  );
  transition: opacity 0.3s;
  z-index: 5;
}
.center-play.hidden {
  opacity: 0;
  pointer-events: none;
}
.center-play-btn {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 1);
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 0 0 8px rgba(229, 9, 20, 0.18),
    0 16px 40px rgba(0, 0, 0, 0.6);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.center-play-btn:hover {
  transform: scale(1.08);
  box-shadow:
    0 0 0 14px rgba(229, 9, 20, 0.22),
    0 16px 40px rgba(0, 0, 0, 0.7);
}
.trailer-mute-hint {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #fff;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(4px);
  z-index: 4;
  pointer-events: none;
}

.modal-body {
  padding: 26px 30px 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-top {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}
.modal-poster-thumb {
  width: 90px;
  height: 134px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.modal-title-block {
  flex: 1;
  min-width: 0;
}
.modal-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 1.5px;
  line-height: 1.05;
  margin-bottom: 9px;
}
.modal-pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 11px;
}
.pill {
  font-size: 11.5px;
  padding: 3px 10px;
  border-radius: 5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
}
.pill-year {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}
.pill-genre {
  background: rgba(229, 9, 20, 0.18);
  border: 1px solid rgba(229, 9, 20, 0.35);
  color: #ff7070;
}
.pill-dir {
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  border: 1px solid var(--border);
}
.pill.clickable,
.elenco-tag.clickable {
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.15s;
}
.pill.clickable:hover {
  filter: brightness(1.25);
  transform: translateY(-1px);
}
.elenco-tag.clickable:hover {
  background: rgba(229, 9, 20, 0.22);
  border-color: rgba(229, 9, 20, 0.45);
  color: #fff;
}

.modal-resumo {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.75;
  font-weight: 300;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-modal-play {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition:
    background 0.15s,
    transform 0.15s;
}
.btn-modal-play:hover {
  background: #c4080f;
  transform: scale(1.02);
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.15s;
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
}
.btn-outline.hidden {
  display: none;
}

.divider {
  height: 1px;
  background: var(--border);
}

.block-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.elenco-list {
  display: flex;
  gap: 14px 12px;
  flex-wrap: wrap;
  align-items: center;
}
.elenco-tag {
  font-size: 13px;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
  cursor: default;
  transition:
    background 0.2s,
    color 0.2s;
}
.elenco-tag:hover {
  background: rgba(229, 9, 20, 0.2);
  color: #fff;
}
.elenco-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  flex-wrap: wrap;
}
.elenco-char {
  font-size: 13px;
  color: var(--muted);
  font-weight: 300;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}
@media (max-width: 600px) {
  .elenco-char {
    max-width: 140px;
  }
}

/* Recomendados (modal) */
.reco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.reco-card {
  background: var(--card);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  position: relative;
}
.reco-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.55);
}
.reco-card img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.reco-card .reco-title {
  padding: 8px 10px 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.reco-card .reco-meta {
  padding: 0 10px 10px;
  font-size: 11px;
  color: var(--muted);
}
.reco-sentinel {
  grid-column: 1 / -1;
  height: 1px;
}

/* Tab Trailer */
.trailer-wrap {
  position: relative;
  background: #000;
  aspect-ratio: 16/9;
  width: 100%;
  flex-shrink: 0;
}
.trailer-wrap iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}
.no-trailer {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 220px;
  color: var(--muted);
  font-size: 14px;
  gap: 10px;
}
/* MINI MODAL — Adicionar à Minha Lista */
.pop-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.pop-overlay.stacked {
  z-index: 350;
}
#pop-confirm.open,
#pop-password.open {
  z-index: 400;
}
#pop-preview.open {
  z-index: 380;
}
.pop-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.pop-card {
  background: #131313;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  width: 92vw;
  max-width: 420px;
  padding: 22px;
  transform: scale(0.92) translateY(14px);
  transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7);
}
.pop-overlay.open .pop-card {
  transform: scale(1) translateY(0);
}
.pop-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 1.2px;
  margin-bottom: 4px;
}
.pop-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 18px;
}
.pop-cats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  margin-bottom: 14px;
  padding-right: 4px;
}
.pop-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
  font-size: 13.5px;
  user-select: none;
}
.pop-cat:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
}
.pop-cat.checked {
  background: rgba(229, 9, 20, 0.14);
  border-color: rgba(229, 9, 20, 0.5);
  color: #ffb1b1;
}
.pop-cat .check-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pop-cat.checked .check-mark {
  background: var(--accent);
  border-color: var(--accent);
}
.pop-empty {
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
  padding: 14px 8px;
  font-style: italic;
}
.pop-divider {
  height: 1px;
  background: var(--border);
  margin: 14px 0;
}
.pop-new-row {
  display: flex;
  gap: 8px;
}
.pop-new-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 12px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}
.pop-new-row input:focus {
  border-color: rgba(229, 9, 20, 0.5);
}
.pop-new-row button {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  font-family: "DM Sans", sans-serif;
  transition: background 0.15s;
}
.pop-new-row button:hover {
  background: #c4080f;
}
.pop-new-row button:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  cursor: not-allowed;
}
.pop-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
}
.pop-actions button {
  background: transparent;
  color: var(--muted);
  border: none;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  cursor: pointer;
  border-radius: 7px;
  transition:
    background 0.15s,
    color 0.15s;
}
.pop-actions button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

/* SÉRIE — temporadas e episódios no modal */
.series-block {
  margin-top: 6px;
}
.series-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.series-season-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 32px 8px 12px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  outline: none;
}
.series-season-select:focus {
  border-color: rgba(229, 9, 20, 0.5);
}
.series-season-select option {
  background: #141414;
}
.series-eps {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ep-row {
  display: grid;
  grid-template-columns: 136px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.12s;
}
.ep-row:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}
.ep-row.active {
  background: rgba(229, 9, 20, 0.1);
  border-color: rgba(229, 9, 20, 0.5);
}
.ep-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--muted);
}
.ep-row.active .ep-num {
  background: var(--accent);
  color: #fff;
}
.ep-info {
  flex: 1;
  min-width: 0;
}
.ep-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.ep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ep-meta span {
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 8px;
}
.ep-watch-progress {
  margin-top: 10px;
  max-width: 100%;
}
.ep-desc {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 7px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ep-play {
  flex-shrink: 0;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.15s;
}
.ep-row:hover .ep-play,
.ep-row.active .ep-play {
  opacity: 1;
  color: var(--text);
}
@media (max-width: 640px) {
  .ep-row {
    grid-template-columns: 1fr;
  }
  .ep-thumb {
    width: 100%;
  }
  .ep-play {
    display: none;
  }
}

/* BOTÃO ADICIONAR MÍDIA (header) */
.btn-add-media {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    transform 0.12s;
}
.btn-add-media:hover {
  background: #c4080f;
  transform: translateY(-1px);
}

.btn-share-media {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 9px 14px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    transform 0.12s;
}
.btn-share-media:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

/* Botão Sobre no header */
.btn-sobre {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 7px 11px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-sobre:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.8px;
  cursor: pointer;
  min-width: 42px;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.btn-lang:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.18);
}

/* -- Modal Sobre/Termos -- */
.sobre-modal {
  max-width: 660px;
  width: 90vw;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
}
.sobre-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  flex-shrink: 0;
}
.sobre-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px 9px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}
.sobre-tab:hover {
  color: var(--text);
}
.sobre-tab.active {
  color: var(--text);
  border-bottom-color: var(--accent);
}
.sobre-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 28px;
}
.sobre-panel h3 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent);
  margin: 20px 0 6px;
}
.sobre-panel h3:first-child {
  margin-top: 0;
}
.sobre-panel p {
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(255,255,255,0.78);
  margin-bottom: 8px;
}
.sobre-panel strong {
  color: rgba(255,255,255,0.95);
}
.sobre-aviso {
  font-size: 11.5px !important;
  color: var(--muted) !important;
  font-style: italic;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--border);
  padding: 8px 12px;
  border-radius: 0 6px 6px 0;
  margin-bottom: 16px !important;
}
.sobre-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--muted);
}

/* Modal Compartilhar */
.share-section {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
}
.share-section:last-of-type {
  border-bottom: none;
}
.share-section h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px;
  letter-spacing: 1.4px;
  margin-bottom: 4px;
}
.share-section .sub {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 14px;
}
.ep-thumb {
  width: 136px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 7px;
  background: #080808;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.share-export-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.share-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 9px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 700;
}
.share-toggle input {
  accent-color: var(--accent);
}
.share-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.share-picker.disabled {
  opacity: 0.58;
}
.share-picker-head input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 10px 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
}
.share-picker-head input:focus {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.share-picker-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-pick-row {
  display: grid;
  grid-template-columns: 28px 56px 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.api-modal {
  max-width: 980px;
}
.api-docs {
  display: block;
}
.api-docs code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.api-docs pre {
  margin: 10px 0 20px;
  padding: 14px 16px;
  overflow: auto;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  line-height: 1.5;
  font-size: 12.5px;
}
.api-docs p code {
  padding: 2px 6px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}
.share-pick-row.level-1 {
  margin-left: 28px;
}
.share-pick-row.level-2 {
  margin-left: 56px;
}
.share-tree-toggle,
.share-tree-spacer {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.share-tree-toggle {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}
.share-pick-row.selected {
  border-color: rgba(229, 9, 20, 0.55);
  background: rgba(229, 9, 20, 0.08);
}
.share-pick-thumb {
  width: 44px;
  height: 60px;
  justify-self: center;
  object-fit: cover;
  border-radius: 4px;
  background: #070707;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.share-pick-thumb.wide {
  width: 86px;
  height: 48px;
}
.share-pick-info {
  min-width: 0;
}
.share-pick-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-pick-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.share-pick-action {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 10px;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.share-pick-action:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.2);
}
.share-pick-action:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.share-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 28px;
  color: var(--muted);
  font-size: 12px;
}
.share-pager button {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
  font-family: inherit;
}
.share-pager button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.share-selected {
  border-top: 1px solid var(--border);
  padding-top: 10px;
}
.share-selected-title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.share-selected-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.share-selected-chip,
.share-selected-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}
button.share-selected-chip {
  cursor: pointer;
  font-family: inherit;
}
.share-selected-chip span {
  color: #ff8a8a;
}
.share-empty {
  padding: 14px 10px;
  color: var(--muted);
  font-size: 12.5px;
  text-align: center;
}
.share-btn-export {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 9px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 14px;
  transition: background 0.15s;
}
.share-btn-export:hover {
  background: #c4080f;
}
.share-import-zone {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.share-import-zone label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  border: 1px dashed var(--border);
  padding: 10px 18px;
  border-radius: 9px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.share-import-zone label:hover {
  background: rgba(229, 9, 20, 0.06);
  border-color: rgba(229, 9, 20, 0.4);
}
.share-import-zone input[type="file"] {
  display: none;
}
.share-url-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
  flex-wrap: wrap;
}
.share-url-row input[type="url"] {
  flex: 1;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 12px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  outline: none;
}
.share-url-row input[type="url"]:focus {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.share-url-row .btn-share-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px dashed var(--border);
  color: var(--text);
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.share-url-row .btn-share-action:hover {
  background: rgba(229, 9, 20, 0.06);
  border-color: rgba(229, 9, 20, 0.4);
}
.share-msg {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px;
}
.share-msg.ok {
  color: #8be78b;
}
.share-msg.err {
  color: #ff7070;
}
@media (max-width: 640px) {
  .share-section {
    padding: 16px 18px;
  }
  .share-pick-row {
    grid-template-columns: 28px 64px 1fr;
    gap: 10px;
  }
  .share-pick-row.level-1,
  .share-pick-row.level-2 {
    margin-left: 0;
  }
  .share-pick-thumb {
    width: 42px;
    height: 58px;
  }
  .share-pick-thumb.wide {
    width: 64px;
    height: 40px;
  }
  .share-pick-action {
    grid-column: 1 / -1;
    width: 100%;
  }
  .share-url-row input[type="url"],
  .share-url-row .btn-share-action {
    width: 100%;
  }
}

/* FORMULÁRIO MÍDIA */
.form-card {
  background: #111;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  width: 94vw;
  max-width: 720px;
  max-height: 94vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75);
  transform: scale(0.94) translateY(16px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pop-overlay.open .form-card {
  transform: scale(1) translateY(0);
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.form-header h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 1.2px;
}
.form-close {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition:
    background 0.15s,
    color 0.15s;
}
.form-close:hover {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
}
.form-body {
  padding: 22px 24px;
  overflow-y: auto;
  flex: 1;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
}
.form-field label .req {
  color: var(--accent);
  margin-left: 3px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 13.5px;
  outline: none;
  width: 100%;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(229, 9, 20, 0.55);
}
.form-field textarea {
  min-height: 80px;
  resize: vertical;
  font-family: "DM Sans", sans-serif;
}
.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 32px;
}
.form-field select option {
  background: #141414;
}
.form-field .hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.form-field .err {
  font-size: 11.5px;
  color: #ff7070;
  margin-top: 2px;
  display: none;
}
.form-field.invalid input,
.form-field.invalid select,
.form-field.invalid textarea {
  border-color: rgba(255, 70, 70, 0.55);
  background: rgba(255, 70, 70, 0.05);
}
.form-field.invalid .err {
  display: block;
}
.form-section-title {
  grid-column: 1 / -1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.form-section-title:first-child {
  border-top: none;
  padding-top: 0;
}
.form-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.3);
}
.form-footer .msg {
  font-size: 12.5px;
  color: var(--muted);
}
.form-footer .msg.err {
  color: #ff7070;
}
.form-actions {
  display: flex;
  gap: 8px;
}
.form-actions .btn-cancel {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 16px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s;
}
.form-actions .btn-cancel:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.form-actions .btn-save {
  background: var(--accent);
  border: none;
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.form-actions .btn-save:hover {
  background: #c4080f;
}

/* MINHA LISTA — categorias agrupadas */
.lista-categoria {
  margin-bottom: 44px;
}
.lista-cat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.lista-cat-titulo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lista-cat-titulo h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 22px;
  letter-spacing: 1.5px;
}
.lista-cat-count {
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 9px;
  border-radius: 4px;
  font-weight: 500;
}
.lista-cat-del {
  background: transparent !important;
  border: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  font-family: "DM Sans", sans-serif;
  transition:
    color 0.15s,
    background 0.15s;
}
.lista-cat-del:hover {
  color: #ff7070;
  background: rgba(229, 9, 20, 0.1) !important;
}

/* SUB-TABS na Minha Lista */
.lista-subtabs {
  display: flex;
  gap: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 28px;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.lista-subtab {
  background: transparent;
  border: none;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 7px;
  cursor: pointer;
  transition:
    color 0.18s,
    background 0.18s;
  white-space: nowrap;
}
.lista-subtab:hover {
  color: var(--text);
}
.lista-subtab.active {
  color: var(--text);
  background: rgba(229, 9, 20, 0.18);
}
.lista-subtab .count {
  font-size: 11px;
  opacity: 0.6;
  margin-left: 5px;
}

/* MENU HAMBÚRGUER (mobile) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  width: 38px;
  height: 38px;
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.05);
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.22s,
    opacity 0.22s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* RESPONSIVE */
@media (max-width: 1400px) {
  header {
    gap: 10px;
    padding: 0 22px;
  }
  .btn-add-media,
  .btn-share-media {
    padding: 8px 11px;
    font-size: 12.5px;
    gap: 6px;
  }
  .btn-lang {
    padding: 7px 10px;
    font-size: 12px;
    min-width: 38px;
  }
  #busca {
    width: 155px;
  }
  #busca:focus {
    width: 200px;
  }
  .nav-tab {
    padding: 7px 10px;
    font-size: 12.5px;
  }
}
@media (max-width: 1200px) {
  header {
    gap: 7px;
    padding: 0 16px;
  }
  .btn-add-media,
  .btn-share-media {
    padding: 8px 10px;
  }
  .btn-add-media span,
  .btn-share-media span {
    display: none;
  }
  .btn-lang {
    padding: 7px 9px;
  }
  .btn-sobre span {
    display: none;
  }
  #busca {
    width: 120px;
  }
  #busca:focus {
    width: 165px;
  }
  .nav-tab {
    padding: 6px 8px;
    font-size: 11.5px;
  }
}
/* ── Menu mobile (≤1024px) — dropdown abaixo do header ── */
@media (max-width: 1024px) {
  .menu-toggle {
    display: flex;
  }
  header {
    position: sticky;
    top: 0;
    padding: max(env(safe-area-inset-top, 0px), 10px) 16px 10px;
    min-height: 60px;
    height: auto;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    z-index: 120;
  }
  .logo {
    font-size: 24px;
    flex: 1;
  }
  .logo svg {
    height: 30px;
  }

  /* nav-tabs e header-right escondidos por padrão */
  .nav-tabs,
  .header-right {
    display: none;
    width: 100%;
    order: 3;
  }

  /* Quando o menu está aberto: nav-tabs e header-right viram colunas largas */
  body.menu-open .nav-tabs {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 8px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    animation: drawerSlide 0.22s ease both;
  }
  body.menu-open .header-right {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    padding: 8px 0 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
    animation: drawerSlide 0.22s ease both;
  }

  body.menu-open .nav-tab {
    width: 100%;
    text-align: left;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 6px;
    white-space: normal;
  }

  body.menu-open .search-wrap,
  body.menu-open #busca,
  body.menu-open #busca:focus {
    width: 100%;
  }
  body.menu-open .btn-add-media,
  body.menu-open .btn-share-media,
  body.menu-open .btn-sobre,
  body.menu-open .btn-profile,
  body.menu-open .add-dropdown-wrap,
  body.menu-open .add-dropdown-wrap .btn-add-media {
    width: 100%;
    justify-content: center;
  }
  body.menu-open .btn-add-media span,
  body.menu-open .btn-share-media span,
  body.menu-open .btn-sobre span {
    display: inline;
  }
  body.menu-open .btn-lang {
    align-self: center;
  }
}
@media (max-width: 1024px) {
  body.menu-open header {
    max-height: 100dvh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(8, 8, 8, 0.98);
  }
  body.menu-open .nav-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }
  body.menu-open .nav-tab {
    text-align: center;
    padding: 10px 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  body.menu-open .btn-install {
    width: 100%;
    justify-content: center;
  }
  body.menu-open .btn-install span {
    display: inline;
  }
  body.menu-open .btn-lang {
    width: 100%;
    min-height: 40px;
    align-self: stretch;
  }
}
@keyframes drawerSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 768px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-header,
  .form-body,
  .form-footer {
    padding-left: 18px;
    padding-right: 18px;
  }
  .form-footer {
    flex-direction: column;
    align-items: stretch;
  }
  .form-footer .msg {
    order: 2;
    text-align: center;
  }
  .form-actions {
    justify-content: flex-end;
  }
  /* Em mobile/tablet, hero empilha: imagem/trailer em cima, texto+botões embaixo */
  .hero {
    height: auto;
    min-height: 0;
    overflow: visible;
  }
  .hero-bg,
  .hero-bg-blur,
  .hero-grad {
    height: 56vw; /* área visual proporcional à largura */
    max-height: 320px;
    inset: 0 0 auto 0;
  }
  .hero-grad {
    background: linear-gradient(
      to bottom,
      rgba(8, 8, 8, 0) 30%,
      rgba(8, 8, 8, 0.6) 75%,
      rgba(8, 8, 8, 1) 100%
    );
  }
  .hero-trailer-wrap {
    top: 0;
    right: 0;
    width: 100%;
    height: 56vw;
    max-height: 320px;
  }
  .hero-content {
    position: relative;
    z-index: 4;
    height: auto;
    padding: clamp(210px, calc(56vw - 8px), 312px) 20px 34px;
    max-width: 100%;
  }
  /* Se o hero-bg/blur tiver max-height de 320px, garante que o content desça suficiente */
  @supports (height: 56vw) {
    .hero-content {
      padding-top: min(calc(56vw - 12px), 308px);
    }
  }
  .hero-content {
    padding-top: clamp(210px, calc(56vw - 8px), 312px);
  }
  .hero-title {
    letter-spacing: 1.6px;
  }
  .hero-desc {
    margin-bottom: 20px;
  }
  main {
    padding: 0 16px 60px;
  }
  .filmes-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
  }
  /* Em tela pequena, hover-scale exagerado fica ruim; reduz e esconde o painel */
  .filme-card:hover {
    transform: scale(1.04) translateY(-2px);
  }
  .filme-card:hover .card-hover-panel {
    max-height: 0;
    opacity: 0;
    padding: 0 12px;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    max-height: 100dvh;
    height: 100dvh;
    border-radius: 0;
    border: none;
  }
  .modal-overlay {
    padding: 0;
    align-items: stretch;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .modal-scroll {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body {
    padding: 18px 18px 22px;
  }
  .modal-top {
    flex-direction: column;
    gap: 14px;
  }
  .modal-poster-thumb {
    width: 100%;
    height: auto;
    max-width: 140px;
    aspect-ratio: 2/3;
  }
  .modal-title {
    font-size: 26px;
  }
  .modal-actions {
    gap: 8px;
  }
  .modal-actions button {
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 14px;
    font-size: 13px;
    justify-content: center;
  }
  .video-wrap {
    max-height: 44dvh;
  }
  .center-play-btn {
    width: 60px;
    height: 60px;
  }
  .center-play-btn svg {
    width: 26px;
    height: 26px;
  }
  .trailer-mute-hint {
    font-size: 10px;
    padding: 4px 8px;
    bottom: 8px;
    right: 8px;
  }
  .modal-tabs {
    padding: 0 14px;
  }
  .m-tab {
    padding: 12px 14px;
    font-size: 12.5px;
  }
  .pop-card {
    padding: 18px;
  }
  .pop-new-row {
    flex-direction: column;
  }
  .pop-new-row button {
    padding: 10px;
  }
}
@media (max-width: 920px) and (orientation: landscape) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  header {
    min-height: 62px;
    padding-top: max(8px, env(safe-area-inset-top));
    padding-bottom: 8px;
  }
  .modal-overlay.open {
    align-items: stretch;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: none;
  }
  .modal-tabs {
    min-height: 40px;
    padding: 0 max(12px, env(safe-area-inset-left)) 0 12px;
  }
  .m-tab {
    padding: 10px 12px;
  }
  .modal-close {
    top: max(4px, env(safe-area-inset-top));
    right: max(8px, env(safe-area-inset-right));
  }
  .video-wrap {
    height: min(64dvh, calc(100dvh - 40px));
    max-height: none;
    aspect-ratio: auto;
  }
  .modal-body {
    padding: 14px max(18px, env(safe-area-inset-right)) 18px max(18px, env(safe-area-inset-left));
  }
  .modal-top {
    flex-direction: row;
    align-items: flex-start;
  }
  .modal-poster-thumb {
    width: 76px;
    max-width: 76px;
  }
  .modal-title {
    font-size: 24px;
  }
  .modal-resumo {
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  .hero {
    min-height: calc(100dvh - 62px);
    height: calc(100dvh - 62px);
    overflow: hidden;
  }
  .hero-bg,
  .hero-bg-blur,
  .hero-grad,
  .hero-trailer-wrap {
    height: 100%;
    max-height: none;
  }
  .hero-content {
    min-height: calc(100dvh - 62px);
    padding: 22dvh 32px max(18px, env(safe-area-inset-bottom));
    justify-content: flex-end;
  }
  .hero-title {
    font-size: clamp(34px, 7vw, 54px);
    margin-bottom: 8px;
  }
  .hero-meta-row {
    margin-bottom: 8px;
  }
  .hero-desc {
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 14px;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  .hero-actions .btn-play,
  .hero-actions .btn-ghost {
    padding: 10px 18px;
    min-height: 42px;
  }
}
@media (pointer: coarse) and (orientation: landscape) and (max-height: 540px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 100vh;
    min-height: 100svh;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    touch-action: pan-y pinch-zoom;
  }
  body::after {
    display: none;
  }
  body {
    position: relative;
  }
  header {
    height: 56px;
    min-height: 56px;
    width: 100%;
    max-width: 100%;
    padding: max(6px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 6px max(14px, env(safe-area-inset-left));
    gap: 14px;
    background: #080808;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .logo,
  .logo svg {
    height: 30px;
  }
  .hero {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
  }
  .hero-bg,
  .hero-bg-blur,
  .hero-grad,
  .hero-trailer-wrap {
    height: min(52svh, 230px) !important;
    max-height: none;
  }
  .hero-content {
    min-height: 0;
    padding: clamp(140px, 46svh, 218px) max(18px, env(safe-area-inset-right)) 22px max(18px, env(safe-area-inset-left));
  }
  .hero-title {
    font-size: clamp(32px, 7.5vw, 52px);
  }
  .hero-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  main {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-left: max(14px, env(safe-area-inset-left));
    padding-right: max(14px, env(safe-area-inset-right));
  }
  .section,
  .genre-block,
  .genre-grid,
  .filmes-grid {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  .filmes-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  }
  .filme-card,
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover {
    transform: none;
    box-shadow: none;
  }
  .filme-card .card-media {
    position: absolute;
    inset: 0;
    width: auto;
    height: auto;
  }
  .filme-card .card-hover-panel {
    display: none;
  }
  .modal-overlay.open {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
  }
  .modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    height: 100svh;
    max-height: 100vh;
    max-height: 100svh;
    overflow: hidden;
    transform: none !important;
    border-radius: 0;
  }
  .modal-scroll {
    overflow-x: hidden;
    overflow-y: auto;
  }
  .video-wrap,
  .trailer-wrap {
    height: min(54svh, 250px);
    max-height: none;
    aspect-ratio: auto;
  }
  .modal-body {
    width: 100%;
    min-width: 0;
    overflow-x: hidden;
    padding: 12px max(14px, env(safe-area-inset-right)) 18px max(14px, env(safe-area-inset-left));
  }
  .modal-top {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
  }
  .modal-poster-thumb {
    width: 72px;
    max-width: 72px;
  }
  .modal-title-block,
  .modal-pills,
  .modal-actions,
  .elenco-list,
  .series-block {
    min-width: 0;
    max-width: 100%;
  }
  .modal-title {
    font-size: clamp(22px, 5vw, 30px);
  }
  .modal-pills,
  .elenco-list {
    overflow: hidden;
  }
  .pill,
  .elenco-tag,
  .elenco-char {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .modal-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .modal-actions button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
  }
  .modal-resumo {
    word-break: break-word;
  }
}
@media (pointer: coarse) and (orientation: landscape) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
  }
  header,
  .hero,
  main,
  .section,
  .genre-block,
  .genre-grid,
  .filmes-grid,
  .modal-overlay.open,
  .modal {
    max-width: 100%;
    overflow-x: hidden;
  }
  .filmes-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .modal-overlay.open {
    width: 100%;
  }
  .modal {
    width: 100%;
    transform: none !important;
  }
}
@media (max-width: 480px) {
  body.menu-open .nav-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-title {
    font-size: clamp(34px, 10.5vw, 50px);
  }
  .hero-meta-row {
    gap: 8px;
    margin-bottom: 10px;
  }
  .hero-desc {
    font-size: 14px;
    line-height: 1.55;
  }
  .hero-actions {
    width: 100%;
  }
  .hero-actions .btn-play,
  .hero-actions .btn-ghost {
    flex: 1;
    justify-content: center;
    padding: 12px 16px;
    font-size: 14px;
  }
  .filmes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Confirmação ── */
@media (max-width: 600px) {
  body::after {
    display: none;
  }
  header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .pop-overlay {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: max(env(safe-area-inset-top, 0px), 8px) 8px
      max(env(safe-area-inset-bottom, 0px), 8px);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .form-card {
    width: 100%;
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }
  .form-body {
    min-height: 0;
    -webkit-overflow-scrolling: touch;
  }
  .form-field input,
  .form-field select,
  .form-field textarea,
  .chip-input,
  .pair-row input,
  .wiz-search-row input,
  #busca {
    font-size: 16px;
  }
  .form-actions {
    width: 100%;
  }
  .form-actions .btn-cancel,
  .form-actions .btn-save {
    flex: 1;
  }
  .chips-row {
    grid-template-columns: 1fr;
  }
  .chip-add {
    width: 100%;
  }
}

@media (hover: none), (pointer: coarse) {
  .filme-card,
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover {
    transform: none;
    box-shadow: none;
  }
  .filme-card:hover .filme-poster {
    transform: none;
    opacity: 0;
  }
  .filme-card:hover .filme-hover-backdrop {
    opacity: 1;
  }
  .filme-card:hover .card-hover-panel {
    max-height: 0;
    opacity: 0;
    padding: 0 12px;
  }
}

.confirm-card {
  max-width: 460px;
  width: 92%;
}
.confirm-body {
  padding: 28px 28px 8px;
  text-align: center;
}
.confirm-icon {
  font-size: 48px;
  margin-bottom: 10px;
  line-height: 1;
}
.confirm-message {
  font-size: 16px;
  color: var(--text);
  margin: 6px 0 8px;
  font-weight: 600;
}
.confirm-detail {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}
.confirm-card .form-footer {
  justify-content: flex-end;
}
.confirm-ok {
  background: #c4080f !important;
}
.confirm-ok:hover {
  background: #e50914 !important;
}
.confirm-ok.warn {
  background: #b45309 !important;
}

/* -- Preview -- */
.preview-card {
  max-width: 720px;
}
.preview-body {
  padding: 18px 20px 8px;
  overflow-y: auto;
  flex: 1;
}
.preview-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
  border: 1px solid var(--border);
}
.preview-hero img,
.preview-hero iframe,
.preview-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}
.preview-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.preview-poster {
  width: 110px;
  aspect-ratio: 2/3;
  border-radius: 8px;
  object-fit: cover;
  background: #1a1a1a;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.preview-info h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
  margin: 0 0 6px;
  color: var(--text);
}
.preview-meta {
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 8px;
}
.preview-desc {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.5;
}
.preview-section-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 18px 0 8px;
}
.preview-warn {
  display: inline-block;
  font-size: 12px;
  color: #ffb86b;
  background: rgba(255, 165, 0, 0.08);
  border: 1px solid rgba(255, 165, 0, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}
.preview-ok {
  display: inline-block;
  font-size: 12px;
  color: #6ee7a4;
  background: rgba(110, 231, 164, 0.08);
  border: 1px solid rgba(110, 231, 164, 0.25);
  border-radius: 6px;
  padding: 6px 10px;
  margin-top: 8px;
}

/* -- Gerenciar -- */
/* Dropdown Adicionar */
.add-dropdown-wrap {
  position: relative;
}
.add-dropdown-wrap .btn-add-media .caret {
  transition: transform 0.18s;
  opacity: 0.85;
}
.add-dropdown-wrap.open .btn-add-media .caret {
  transform: rotate(180deg);
}
.add-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: #161616;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 6px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 1200;
  animation: ddIn 0.16s ease;
}
.add-dropdown-wrap.open .add-dropdown {
  display: flex;
}
.add-dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  color: var(--text);
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
  cursor: pointer;
  text-align: left;
  transition:
    background 0.14s,
    color 0.14s;
}
.add-dropdown button:hover {
  background: rgba(229, 9, 20, 0.18);
  color: #fff;
}
.add-dropdown button svg {
  opacity: 0.85;
}
@keyframes ddIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.manage-card {
  max-width: 820px;
}
/* Wizard de episódio */
.wizard-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}
.wizard-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 22px;
  font-size: 12.5px;
  color: var(--muted);
  background: transparent;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.wizard-step.active {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.55);
  color: #fff;
}
.wizard-step.done {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.wizard-step .ws-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}
.wizard-step.active .ws-num {
  background: var(--accent);
}
.wizard-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 6px 0 4px;
  max-height: 320px;
  overflow-y: auto;
}
.wizard-pick {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.wizard-pick:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
}
.wizard-pick.active {
  background: rgba(229, 9, 20, 0.12);
  border-color: rgba(229, 9, 20, 0.55);
}
.wizard-pick img {
  width: 42px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: #000;
}
.wizard-pick .wp-title {
  font-weight: 600;
  font-size: 14px;
}
.wizard-pick .wp-meta {
  font-size: 12px;
  color: var(--muted);
}
.wizard-create-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 6px;
  transition:
    background 0.15s,
    border-color 0.15s;
}
.wizard-create-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.4);
}
.wizard-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.wizard-form .full {
  grid-column: 1 / -1;
}
@media (max-width: 600px) {
  .wizard-form {
    grid-template-columns: 1fr;
  }
  .wizard-steps {
    flex-wrap: wrap;
    gap: 6px;
  }
  .wizard-step {
    padding: 6px 10px;
    font-size: 11.5px;
  }
}
/* ----- Toast ----- */
#toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid #888;
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  max-width: 380px;
  opacity: 0;
  transform: translateX(20px);
  transition:
    opacity 0.22s,
    transform 0.22s;
  pointer-events: auto;
}
.toast.show {
  opacity: 1;
  transform: translateX(0);
}
.toast-ok {
  border-left-color: #2ecc71;
}
.toast-err {
  border-left-color: var(--brand);
}
.toast-warn {
  border-left-color: #f39c12;
}
.toast-info {
  border-left-color: #3498db;
}
.toast-ico {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  font-size: 12px;
  flex-shrink: 0;
}
.toast-ok .toast-ico {
  background: rgba(46, 204, 113, 0.2);
  color: #2ecc71;
}
.toast-err .toast-ico {
  background: rgba(229, 9, 20, 0.2);
  color: var(--brand);
}
.toast-warn .toast-ico {
  background: rgba(243, 156, 18, 0.2);
  color: #f39c12;
}
.toast-info .toast-ico {
  background: rgba(52, 152, 219, 0.2);
  color: #3498db;
}
.toast-msg {
  flex: 1;
  line-height: 1.35;
}

/* ----- Chips input ----- */
.chips-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chips-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}
.chip-input {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.chip-input:focus {
  border-color: var(--brand);
}
.chip-add {
  padding: 9px 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
}
.chip-add:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-list:empty {
  display: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 4px 4px 10px;
  background: rgba(229, 9, 20, 0.15);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 14px;
  font-size: 12.5px;
  color: var(--text);
}
.chip-text {
  line-height: 1.2;
}
.chip-del {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text);
  opacity: 0.7;
  cursor: pointer;
  border-radius: 50%;
  font-size: 11px;
}
.chip-del:hover {
  background: rgba(255, 255, 255, 0.12);
  opacity: 1;
}
.field-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}
.field-suggestions:empty {
  display: none;
}
.field-suggestions button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  padding: 5px 9px;
  font-family: inherit;
  font-size: 11.5px;
  cursor: pointer;
}
.field-suggestions button:hover {
  border-color: rgba(229, 9, 20, 0.5);
  color: var(--text);
  background: rgba(229, 9, 20, 0.12);
}
.field-suggestions .cast-suggestion {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 9px 4px 5px;
}
.field-suggestions .cast-suggestion .suggest-kind {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}
.field-suggestions .cast-suggestion.ator .suggest-kind {
  color: #b9d6ff;
  background: rgba(70, 135, 255, 0.18);
  border: 1px solid rgba(110, 164, 255, 0.28);
}
.field-suggestions .cast-suggestion.personagem .suggest-kind {
  color: #ffd9a8;
  background: rgba(255, 163, 64, 0.16);
  border: 1px solid rgba(255, 183, 82, 0.26);
}

/* ----- Pairs input (elenco) ----- */
.pairs-input {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pair-row {
  display: grid;
  grid-template-columns: 1fr 30px 1fr 32px;
  gap: 8px;
  align-items: center;
}
.pair-row input {
  padding: 9px 11px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 13px;
  outline: none;
}
.pair-row input:focus {
  border-color: var(--brand);
}
.pair-as {
  text-align: center;
  color: var(--muted);
  font-size: 11.5px;
  font-style: italic;
}
.pair-del {
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
}
.pair-del:hover {
  color: var(--brand);
  border-color: rgba(229, 9, 20, 0.4);
}
.pair-add {
  align-self: flex-start;
  padding: 8px 14px;
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  color: var(--text);
  border-radius: 7px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  margin-top: 4px;
}
.pair-add:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 600px) {
  .pair-row {
    grid-template-columns: 1fr 32px;
    grid-template-rows: auto auto;
  }
  .pair-row .pair-as {
    display: none;
  }
  .pair-row .pair-pers {
    grid-column: 1;
  }
  .pair-row .pair-del {
    grid-row: 1 / span 2;
    grid-column: 2;
    height: auto;
  }
}

/* ----- Wizard novos componentes ----- */
.wiz-search-row {
  margin-bottom: 14px;
}
.wiz-search-row input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 14px;
  outline: none;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.wiz-search-row input:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.06);
}
.wiz-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}
.wiz-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  font: inherit;
  transition:
    border-color 0.15s,
    background 0.15s,
    transform 0.15s;
}
.wiz-card:hover {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.wiz-card-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}
.wiz-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wiz-card-fallback,
.wiz-card-add {
  color: rgba(255, 255, 255, 0.45);
}
.wiz-card-add {
  background: rgba(229, 9, 20, 0.08);
  color: var(--brand);
  border: 1px dashed rgba(229, 9, 20, 0.45);
}
.wiz-card-temp {
  background: rgba(229, 9, 20, 0.16);
  color: var(--text);
  font-weight: 800;
  font-size: 22px;
}
.wiz-card-new {
  border-style: dashed;
  border-color: rgba(229, 9, 20, 0.45);
  background: rgba(229, 9, 20, 0.05);
}
.wiz-card-new:hover {
  background: rgba(229, 9, 20, 0.1);
}
.wiz-card-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 3px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wiz-card-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.wiz-context {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  margin-bottom: 14px;
}
.wiz-context img,
.wiz-thumb-fallback {
  width: 42px;
  height: 60px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
}
.wiz-thumb-fallback {
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
}
.wiz-context .wp-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.wiz-context .wp-meta {
  font-size: 12px;
  color: var(--muted);
}
.wiz-empty {
  text-align: center;
  padding: 28px 12px;
  color: var(--muted);
  font-size: 13.5px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}
.wiz-eps-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}
.wiz-ep-row {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
}
.wiz-ep-row .we-num {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(229, 9, 20, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}
.wiz-ep-row .we-info {
  flex: 1;
  min-width: 0;
}
.wiz-ep-row .we-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wiz-ep-row .we-meta {
  font-size: 11.5px;
  color: var(--muted);
}
.wiz-ep-row .we-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.35;
  margin: 3px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.wiz-ep-row .we-poster {
  width: 104px;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  border-radius: 5px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.05);
}
.wiz-ep-row .we-actions {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.wiz-ep-row .we-actions button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.wiz-ep-row .we-actions button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.wiz-ep-row .we-actions button.del:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ff8a8a;
}
.wiz-context-info {
  flex: 1;
  min-width: 0;
}
.wiz-ctx-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.78);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  gap: 5px;
  align-items: center;
  flex-shrink: 0;
  transition: all 0.15s;
}
.wiz-ctx-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}
.wiz-card {
  position: relative;
}
.wiz-card-actions {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 2;
}
.wiz-card:hover .wiz-card-actions {
  opacity: 1;
}
.wiz-card-actions button {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.wiz-card-actions button:hover {
  background: rgba(0, 0, 0, 0.9);
}
.wiz-card-actions button.del:hover {
  background: rgba(229, 9, 20, 0.85);
  border-color: rgba(229, 9, 20, 1);
}
.wiz-card-pickable {
  cursor: pointer;
}
.field-hint {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}
@media (max-width: 600px) {
  .wiz-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}
.manage-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}
.manage-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}
.manage-toolbar {
  margin-bottom: 12px;
}
.manage-toolbar input[type="search"] {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 13.5px;
  outline: none;
}
.manage-toolbar input[type="search"]:focus {
  border-color: rgba(229, 9, 20, 0.5);
  background: rgba(255, 255, 255, 0.07);
}
.manage-pager {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding: 14px 0 4px;
  font-size: 12.5px;
  color: var(--muted);
}
.manage-pager button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12.5px;
}
.manage-pager button:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.09);
}
.manage-pager button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.manage-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.manage-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 12px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.manage-item:hover {
  border-color: rgba(229, 9, 20, 0.4);
  background: #1a1a1a;
}
.manage-thumb {
  width: 54px;
  height: 80px;
  justify-self: center;
  object-fit: cover;
  border-radius: 4px;
  background: #0a0a0a;
}
.manage-thumb.wide {
  width: 96px;
  height: 54px;
}
.manage-info {
  min-width: 0;
}
.manage-info .t {
  font-weight: 600;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.manage-info .m {
  font-size: 12px;
  color: var(--muted);
}
.manage-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.manage-actions button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.manage-actions button:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
}
.manage-actions .btn-del:hover {
  color: #ff6b6b;
  border-color: rgba(255, 80, 80, 0.5);
  background: rgba(255, 60, 60, 0.08);
}
.source-picker {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.custom-proxy-wrap {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
.custom-proxy-wrap[hidden] {
  display: none !important;
}
.video-input-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.28fr) minmax(0, 1fr);
  gap: 10px;
}
.source-hint {
  margin-top: 8px;
}
.source-import-label {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.source-import-label input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.source-import-label span {
  pointer-events: none;
}
.sources-card {
  max-width: 980px;
}
.sources-body {
  padding: 22px 24px;
  max-height: min(72vh, 780px);
  overflow: auto;
}
.sources-list {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 8px;
}
.source-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.source-brand img,
.source-brand > span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 800;
}
.source-brand strong,
.source-brand small {
  display: block;
}
.source-brand small {
  color: var(--muted);
  margin-top: 2px;
}
.source-actions,
.source-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.source-actions button,
.source-editor-actions button {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 13px;
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease,
    transform 0.16s ease,
    color 0.16s ease;
}
.source-actions button:hover,
.source-editor-actions button:hover,
.source-import-label:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.source-editor-actions button:hover {
  transform: translateY(-1px);
}
.source-actions button.danger {
  color: #ffb3b3;
}
.source-actions button.danger:hover {
  border-color: rgba(255, 80, 80, 0.5);
  background: rgba(255, 60, 60, 0.1);
}
.source-editor {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}
.source-editor .field-hint {
  margin-top: 5px;
}
.source-editor-actions {
  margin-top: 16px;
}
.source-code {
  min-height: 130px !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}
.providers-card {
  max-width: min(1120px, calc(100vw - 40px));
}
.provider-item .source-brand small {
  max-width: 560px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-active,
.provider-inactive {
  width: fit-content;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 800;
}
.provider-active {
  background: rgba(40, 190, 110, 0.16);
  color: #9ff0be !important;
}
.provider-inactive {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.58) !important;
}
.provider-active-field {
  align-self: end;
}
.provider-active-toggle {
  min-height: 0;
  width: fit-content;
  border: 0;
  background: transparent;
  border-radius: 0;
  padding: 4px 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.provider-active-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}
.provider-active-toggle span {
  color: var(--text);
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}
.provider-headers {
  min-height: 92px !important;
}
.provider-example {
  min-height: 240px !important;
  color: rgba(255, 255, 255, 0.72);
}
.provider-sync-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
}
.provider-sync-overlay.open {
  display: flex;
}
.provider-sync-box {
  min-width: min(420px, calc(100vw - 40px));
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(18, 18, 18, 0.96);
  border-radius: 10px;
  padding: 24px;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}
.provider-sync-box .spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--red);
  animation: spin 0.85s linear infinite;
}
.provider-sync-box span {
  color: var(--muted);
  font-size: 14px;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 640px) {
  .video-input-row,
  .source-picker {
    grid-template-columns: 1fr;
  }
  .source-item {
    align-items: stretch;
    flex-direction: column;
  }
  .source-actions {
    justify-content: flex-start;
  }
  .manage-item {
    grid-template-columns: 76px 1fr;
  }
  .manage-thumb.wide {
    width: 76px;
    height: 43px;
  }
  .manage-actions {
    grid-column: 1 / -1;
    width: 100%;
  }
  .manage-actions button {
    flex: 1;
    justify-content: center;
  }
}

/* ── Edit/Delete overlay on user cards (legado — substituído por .card-mini-btn) ── */

/* --- PERFIL --- */
.btn-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 4px 12px 4px 4px;
  cursor: pointer;
  color: #fff;
  font: inherit;
}
.btn-profile:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* ─── Botão Instalar (PWA) ─── */
.btn-install {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(229, 9, 20, 0.55);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.btn-install:hover {
  background: rgba(229, 9, 20, 0.18);
  border-color: rgba(229, 9, 20, 0.9);
}
.btn-install[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  .btn-install span {
    display: none;
  }
  .btn-install {
    padding: 6px 8px;
  }
}

.profile-name-mini {
  font-size: 13px;
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  background-size: cover;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  overflow: hidden;
}
.profile-avatar.large {
  width: 88px;
  height: 88px;
  font-size: 28px;
}
.profile-avatar.xlarge {
  width: 96px;
  height: 96px;
  font-size: 32px;
}
.profile-initials {
  user-select: none;
}

.profile-overlay {
  background: rgba(0, 0, 0, 0.92);
}
.profile-overlay.open {
  display: flex;
}
.profile-select-card {
  background: #141414;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  max-width: 720px;
  width: 92%;
  max-height: 86vh;
  padding: 32px 28px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.profile-select-sobre {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}
.profile-select-sobre:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.profile-select-header h2 {
  margin: 0 0 6px;
  font-size: 26px;
  padding-right: 110px;
}
.profile-select-header p {
  margin: 0;
  color: #aaa;
  font-size: 14px;
}
.profile-select-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px;
}
.profile-card-pick {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  color: #ddd;
  font: inherit;
  transition: all 0.15s;
  position: relative;
}
.profile-card-pick:hover {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.06);
}
.profile-card-pick .profile-avatar {
  width: 64px;
  height: 64px;
  font-size: 22px;
}
.profile-card-pick .pick-name {
  font-size: 14px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-card-pick .pick-lock {
  position: absolute;
  top: 6px;
  right: 6px;
  opacity: 0.7;
}
.profile-card-pick .pick-lock.locked {
  color: #ff5a64;
  opacity: 1;
  text-shadow: 0 0 6px rgba(229, 9, 20, 0.55);
}
.profile-select-empty {
  grid-column: 1/-1;
  text-align: center;
  color: #888;
  padding: 28px 12px;
}
.profile-select-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 18px;
}
.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  color: #fff;
  font: inherit;
  font-size: 14px;
  transition: all 0.15s;
}
.profile-action-btn:hover {
  border-color: rgba(229, 9, 20, 0.6);
  background: rgba(229, 9, 20, 0.08);
}

.profile-form-card {
  max-width: 520px;
}
.profile-form-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
}
.profile-avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-avatar-actions {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-avatar-actions input[type="url"] {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.btn-ghost-sm {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  text-align: center;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}
.btn-ghost-sm:hover {
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost-sm.danger {
  color: #ff7070;
  border-color: rgba(255, 90, 90, 0.4);
}
.btn-ghost-sm.danger:hover {
  background: rgba(229, 9, 20, 0.12);
}

.profile-card {
  max-width: 480px;
}
.profile-panel-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.profile-panel-head {
  display: flex;
  align-items: center;
  gap: 16px;
}
.profile-panel-name {
  font-size: 18px;
  font-weight: 700;
}
.profile-panel-meta {
  font-size: 12px;
  color: #888;
}
.profile-panel-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Painel do perfil — ações compactas */
.profile-panel-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.pf-action {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ddd;
  padding: 8px 6px;
  border-radius: 8px;
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  transition: all 0.15s;
}
.pf-action:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.pf-action.danger {
  flex-direction: row;
  font-size: 12px;
  color: #ff7070;
  border-color: transparent;
  padding: 6px 10px;
  justify-content: center;
}
.pf-action.danger:hover {
  background: rgba(229, 9, 20, 0.08);
  color: #ff9090;
}
.profile-panel-danger {
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  justify-content: center;
}

/* Form perfil — bloco URL expansível */
.pf-url-row {
  display: flex;
  gap: 6px;
  padding: 6px 0 0;
}
.pf-url-row input[type="url"] {
  flex: 1;
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 7px 10px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
}
.profile-avatar-actions {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  gap: 6px;
}
.profile-avatar-actions .btn-ghost-sm {
  font-size: 12px;
  padding: 5px 10px;
}

/* Pop-list v2 (categorias) */
.pop-card-v2 {
  max-width: 380px;
  padding: 18px 18px 16px;
}
.pop-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.pop-head .pop-title {
  margin-bottom: 2px;
}
.pop-head .pop-sub {
  margin-bottom: 0;
}
.pop-head .form-close {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.pop-new-collapsed {
  margin-top: 4px;
}
.pop-new-toggle {
  background: transparent;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  color: #bbb;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  font: inherit;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s;
}
.pop-new-toggle:hover {
  border-color: rgba(229, 9, 20, 0.4);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.pop-new-cancel {
  flex-shrink: 0;
  padding: 6px 10px !important;
}

/* Gerenciar categorias */
.cats-manage-card {
  max-width: 440px;
}
.cats-manage-body {
  padding: 14px 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 60vh;
  overflow-y: auto;
}
.cat-manage-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}
.cat-manage-row input.cat-name-edit {
  flex: 1;
  background: transparent;
  border: 1px solid transparent;
  color: #fff;
  padding: 5px 8px;
  border-radius: 5px;
  font: inherit;
  font-size: 13px;
  min-width: 0;
}
.cat-manage-row input.cat-name-edit:focus,
.cat-manage-row input.cat-name-edit:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}
.cat-manage-row .cat-count {
  color: var(--muted);
  font-size: 11.5px;
  flex-shrink: 0;
}
.cat-manage-row .cat-btn {
  background: transparent;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 5px 7px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
}
.cat-manage-row .cat-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}
.cat-manage-row .cat-btn.danger:hover {
  background: rgba(229, 9, 20, 0.12);
  color: #ff8080;
}

#lista-section .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.password-card {
  max-width: 420px;
}
.password-card .form-footer {
  justify-content: flex-end;
}
.password-body {
  padding: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.password-body input[type="password"] {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 10px 12px;
  border-radius: 6px;
  font: inherit;
}
.password-body p {
  color: #ccc;
  font-size: 14px;
  margin: 0;
}

/* Wizard step clicável */
#ep-wizard-steps .wizard-step {
  cursor: pointer;
}
#ep-wizard-steps .wizard-step[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.5;
}

#modal-sobre-overlay {
  z-index: 460;
}

@media (max-width: 600px) {
  .profile-select-sobre {
    position: static;
    align-self: flex-end;
    margin: -8px -4px -10px 0;
  }
  .profile-select-header h2 {
    padding-right: 0;
  }
  .chips-row {
    grid-template-columns: 1fr;
  }
  .chip-add,
  .pair-add {
    width: 100%;
    justify-content: center;
  }
  .toast {
    max-width: calc(100vw - 28px);
  }
  #toast-host {
    left: 14px;
    right: 14px;
    bottom: max(env(safe-area-inset-bottom, 0px), 14px);
  }
}

/* Overrides: card expandido, temporadas e episódios */
.filme-card {
  --hover-w: min(430px, calc(100vw - 32px));
  --hover-h: 242px;
  --hover-y: -88px;
}
.filme-card.edge-bottom {
  --hover-y: -120px;
}
.filme-card.edge-top {
  --hover-y: 12px;
}
@media (max-width: 900px) {
  .filme-card {
    --hover-w: min(360px, calc(100vw - 24px));
    --hover-h: 203px;
    --hover-y: -72px;
  }
  .filme-card.edge-bottom {
    --hover-y: -120px;
  }
  .filme-card.edge-top {
    --hover-y: 10px;
  }
}
@media (hover: hover) and (pointer: fine) {
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover,
  .filme-card.edge-top:hover,
  .filme-card.edge-bottom:hover {
    transform: none;
    box-shadow: none;
    z-index: 120;
  }
  .filme-card:hover .card-media {
    inset: auto;
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    width: var(--hover-w);
    height: var(--hover-h);
    border-radius: 12px 12px 0 0;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
      0 30px 72px rgba(0, 0, 0, 0.9),
      0 0 0 1px rgba(229, 9, 20, 0.24);
    transform: translate(-50%, var(--hover-y));
    z-index: 30;
  }
  .filme-card.edge-left:hover .card-media {
    left: 0;
    transform: translate(0, var(--hover-y));
  }
  .filme-card.edge-right:hover .card-media {
    left: auto;
    right: 0;
    transform: translate(0, var(--hover-y));
  }
  .filme-card:hover .filme-poster {
    transform: none;
    opacity: 0;
  }
  .filme-card:hover .filme-hover-backdrop {
    opacity: 1;
  }
  .filme-card:hover .card-info-overlay {
    opacity: 0;
  }
  .filme-card:hover .card-trailer-iframe {
    top: -11%;
    left: -11%;
    width: 122%;
    height: 122%;
  }
  .card-hover-panel {
    top: 0;
    left: 50%;
    right: auto;
    bottom: auto;
    width: var(--hover-w);
    max-height: none;
    padding: 14px 16px 16px;
    background: linear-gradient(180deg, rgba(3, 3, 3, 0.99), rgba(0, 0, 0, 0.99));
    border: 1px solid rgba(229, 9, 20, 0.26);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.9);
    pointer-events: auto;
    opacity: 0;
    overflow: hidden;
    transform: translate(-50%, calc(var(--hover-y) + var(--hover-h) - 1px));
    z-index: 31;
    transition:
      opacity 0.16s ease,
      transform 0.22s ease;
  }
  .filme-card:hover .card-hover-panel {
    max-height: none;
    padding: 14px 16px 16px;
    opacity: 1;
    transform: translate(-50%, calc(var(--hover-y) + var(--hover-h) - 1px));
  }
  .filme-card.edge-left:hover .card-hover-panel {
    left: 0;
    transform: translate(0, calc(var(--hover-y) + var(--hover-h) - 1px));
  }
  .filme-card.edge-right:hover .card-hover-panel {
    left: auto;
    right: 0;
    transform: translate(0, calc(var(--hover-y) + var(--hover-h) - 1px));
  }
}
.card-hover-title {
  color: #fff;
  font-size: 17px;
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-hover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 700;
}
.card-hover-play {
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #0b0b0b;
  font-weight: 800;
  font-family: "DM Sans", sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  margin-bottom: 9px;
}
.card-desc {
  font-size: 12px;
  line-height: 1.45;
}
.ep-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.ep-meta span {
  font-size: 11px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  padding: 5px 8px;
}
.ep-desc {
  margin-top: 7px;
}
@media (hover: none), (pointer: coarse) {
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover,
  .filme-card.edge-top:hover,
  .filme-card.edge-bottom:hover {
    transform: none;
    box-shadow: none;
    z-index: auto;
  }
  .filme-card:hover .card-media {
    inset: 0;
    width: auto;
    height: auto;
    transform: none;
    box-shadow: none;
  }
  .filme-card:hover .card-hover-panel {
    display: none;
    max-height: 0;
    opacity: 0;
    padding: 0 12px;
  }
  .filme-card:hover .filme-poster {
    opacity: 1;
    transform: none;
  }
  .filme-card:hover .filme-hover-backdrop {
    opacity: 0;
  }
  .filme-card:hover .card-info-overlay {
    opacity: 1;
  }
}

/* Mobile em paisagem: mantém um único scroll vertical e evita travas de 100dvh. */
@media (pointer: coarse) and (orientation: landscape) and (max-height: 560px) and (max-width: 980px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: auto;
    min-height: 100%;
    overflow-x: clip !important;
    overflow-y: auto;
    overscroll-behavior-x: none;
  }

  body {
    touch-action: pan-y pinch-zoom;
  }

  body::after {
    display: none;
  }

  header {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100%;
    min-height: 54px;
    height: auto;
    padding: max(7px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 7px max(14px, env(safe-area-inset-left));
    background: rgba(8, 8, 8, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateZ(0);
  }

  body.menu-open header {
    max-height: calc(100svh - 8px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hero {
    width: 100%;
    max-width: 100%;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
  }

  .hero-bg,
  .hero-bg-blur,
  .hero-grad,
  .hero-trailer-wrap {
    height: clamp(168px, 48svh, 250px) !important;
    max-height: none !important;
    inset: 0 0 auto 0;
  }

  .hero-content {
    position: relative;
    min-height: 0 !important;
    height: auto !important;
    max-width: 100%;
    padding: clamp(142px, calc(48svh - 14px), 226px) max(18px, env(safe-area-inset-right)) 22px max(18px, env(safe-area-inset-left)) !important;
    justify-content: flex-end;
  }

  .hero-title {
    font-size: clamp(30px, 7vw, 48px);
    margin-bottom: 7px;
  }

  .hero-meta-row,
  .hero-desc {
    max-width: min(620px, 100%);
  }

  .hero-desc {
    -webkit-line-clamp: 2;
    line-clamp: 2;
    margin-bottom: 14px;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 10px;
  }

  .hero-actions .btn-play,
  .hero-actions .btn-ghost {
    min-height: 40px;
    padding: 10px 16px;
  }

  main {
    width: 100%;
    max-width: 100%;
    padding: 18px max(14px, env(safe-area-inset-right)) 56px max(14px, env(safe-area-inset-left));
    overflow: visible !important;
  }

  .section,
  .genre-block,
  .genre-grid,
  .filmes-grid {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: clip !important;
  }

  .filmes-grid,
  .genre-grid {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
    gap: 12px;
  }

  .filme-card,
  .filme-card:hover,
  .filme-card.edge-left:hover,
  .filme-card.edge-right:hover,
  .filme-card.edge-top:hover,
  .filme-card.edge-bottom:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .filme-card .card-hover-panel {
    display: none !important;
  }

  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 0;
    overflow-x: clip !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) .modal {
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100svh;
    max-height: none;
    border-radius: 0;
    transform: none !important;
    overflow: visible;
  }

  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) .modal-scroll {
    height: auto;
    min-height: 0;
    max-height: none;
    overflow: visible;
  }

  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) .video-wrap,
  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) .trailer-wrap {
    height: clamp(176px, 58svh, 300px);
    max-height: none;
    aspect-ratio: auto;
  }

  .modal-overlay.open:not(.player-maximized):not(.player-native-fullscreen) .modal-body {
    overflow-x: clip;
  }
}
