/* ============================================================
   STREAMING CATALOG THEME v2 — IPTV channels • movies • series
   Estrutura tipo serviço de streaming: billboard + fileiras
   ============================================================ */
:root {
  --bg: #04060d;
  --panel: rgba(255, 255, 255, .05);
  --panel-2: rgba(255, 255, 255, .09);
  --line: rgba(255, 255, 255, .1);
  --text: #f5f7ff;
  --muted: #98a0ba;
  --red: #ff2e63;
  --orange: #ff9d2e;
  --violet: #8b5cf6;
  --cyan: #2ee6ff;
  --green: #2fe08b;
  --grad-hot: linear-gradient(120deg, #ff2e63 0%, #ff7a2e 55%, #ffb02e 100%);
  --grad-cool: linear-gradient(120deg, #8b5cf6 0%, #4fb4ff 60%, #2ee6ff 100%);
  --shadow-hot: 0 12px 34px rgba(255, 70, 90, .32);
  --shadow-glow: 0 0 26px rgba(255, 78, 99, .22);
  --font-display: "Sora", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) #04060d; }
/* Scrollbar escuro e fino em toda a página */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 99px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, .3); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); min-height: 100vh; overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 90% 50% at 50% 0%, #000 25%, transparent 70%);
}
::selection { background: rgba(255, 46, 99, .45); }
button { font-family: inherit; cursor: pointer; }
img { -webkit-user-drag: none; user-select: none; }

.bg-glow { position: fixed; border-radius: 50%; filter: blur(130px); opacity: .16; pointer-events: none; z-index: -1; }
.glow-red { width: 620px; height: 620px; background: #ff2e46; top: -240px; right: -200px; }
.glow-violet { width: 560px; height: 560px; background: #6c3df0; bottom: -260px; left: -260px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: 0; border-radius: 12px; font-weight: 700; font-size: 14px; letter-spacing: .01em;
  padding: 12px 22px; transition: transform .16s ease, box-shadow .16s ease, background .16s ease, filter .16s ease;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-hot); color: #fff; box-shadow: var(--shadow-hot); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(255, 90, 80, .45); }
.btn-ghost { background: var(--panel-2); color: var(--text); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.15); transform: translateY(-1px); }
.btn-glass { background: rgba(255,255,255,.1); color: #fff; border: 1px solid rgba(255,255,255,.3); backdrop-filter: blur(10px); }
.btn-glass:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 15px 28px; font-size: 15px; border-radius: 14px; }
.btn-search { padding: 10px 13px; border-radius: 11px; }
.btn-search svg { width: 18px; height: 18px; }
.link-more, .link-back {
  background: none; border: 0; color: var(--cyan); font-size: 13px; font-weight: 700;
  padding: 6px 4px; white-space: nowrap; transition: color .15s ease;
}
.link-more:hover, .link-back:hover { color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 12px max(4vw, 22px);
  background: rgba(4, 6, 13, .78); backdrop-filter: blur(22px) saturate(1.4);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--red) 22%, var(--orange) 42%, var(--cyan) 78%, transparent);
  opacity: .75;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--grad-hot); color: #fff; font-size: 13px;
  border-radius: 11px; box-shadow: var(--shadow-glow);
  clip-path: polygon(0 0, 100% 0, 100% 72%, 72% 100%, 0 100%);
}
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand-tag { font-size: 10px; font-weight: 800; letter-spacing: .18em; color: #0b0d17; background: var(--cyan); padding: 3px 8px; border-radius: 6px; }
.search {
  flex: 1; min-width: 180px; max-width: 620px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(15, 19, 32, .92); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 999px; padding: 5px 5px 5px 18px;
  transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(255, 80, 90, .65); box-shadow: 0 0 0 3px rgba(255, 46, 99, .18), 0 0 30px rgba(255, 46, 99, .15); }
.search-icon { width: 19px; height: 19px; color: var(--muted); flex: none; }
.search input {
  flex: 1; min-width: 40px; background: none; border: 0; outline: none;
  color: var(--text); font-size: 14.5px; padding: 9px 0;
}
.search input::placeholder { color: #6d7591; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.pill-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; color: var(--muted); background: var(--panel);
  border: 1px solid var(--line); padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 760px) {
  .pill-chip { display: none; }
  .top-actions .btn-ghost { display: none; }
  .search { order: 3; width: 100%; max-width: none; }
}

main { width: min(1320px, 94vw); margin: auto; }

/* ---------- Billboard ---------- */
.billboard { position: relative; min-height: clamp(440px, 66vh, 640px); display: flex; align-items: flex-end; isolation: isolate; }
.bb-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 70% at 78% 18%, rgba(255, 46, 99, .22), transparent 60%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(139, 92, 246, .25), transparent 60%),
    linear-gradient(160deg, #0a0d1a, #05070f 70%);
  background-size: cover; background-position: center 24%;
  transform: scale(1.02);
}
.bb-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 6, 13, .92) 0%, rgba(4, 6, 13, .55) 45%, transparent 75%),
    linear-gradient(180deg, rgba(4, 6, 13, .35) 0%, transparent 28%, rgba(4, 6, 13, .55) 62%, var(--bg) 98%);
}
.billboard.has-art .bb-bg { animation: bb-in 1.1s ease; }
@keyframes bb-in { from { transform: scale(1.08); } }
.bb-inner { width: 100%; padding: 60px 0 46px; }
.bb-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-size: 11px; font-weight: 700; letter-spacing: .2em; color: #ffd27d;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 12px var(--orange); animation: pulse 1.6s infinite; }
.billboard h1 {
  font-family: var(--font-display); font-weight: 800; margin: 0 0 14px;
  font-size: clamp(34px, 5.2vw, 62px); line-height: 1.02; letter-spacing: -.04em;
  text-shadow: 0 10px 40px rgba(0, 0, 0, .55);
}
.grad { background: var(--grad-hot); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 14px; font-weight: 600; color: #cfd5ea; margin-bottom: 12px; }
#bbKind {
  font-size: 11px; font-weight: 800; letter-spacing: .12em; color: #fff;
  background: var(--grad-hot); padding: 5px 12px; border-radius: 8px; box-shadow: var(--shadow-glow);
}
.bb-syn {
  margin: 0 0 24px; max-width: 560px; color: #c3cade; font-size: 15px; line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bb-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bb-actions .btn[disabled] { opacity: .45; cursor: default; }
@media (max-width: 700px) {
  .billboard { min-height: clamp(400px, 62dvh, 560px); }
  .bb-inner { padding: 40px 0 36px; }
  .bb-syn { -webkit-line-clamp: 3; font-size: 14px; }
}

/* ---------- Barra de estatísticas ---------- */
.stats-bar {
  display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none;
  padding: 22px 0 8px;
}
.stats-bar::-webkit-scrollbar { display: none; }
.stat-pill {
  flex: none; display: inline-flex; align-items: center; gap: 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 20px 11px 12px; transition: transform .16s ease, border-color .16s ease;
}
.stat-pill:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.24); }
.stat-pill b {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  border-radius: 50%; font-size: 14px; font-weight: 400;
}
.stat-red b { background: rgba(255, 46, 99, .14); color: var(--red); box-shadow: inset 0 0 0 1px rgba(255,46,99,.4), 0 0 16px rgba(255,46,99,.25); }
.stat-violet b { background: rgba(139, 92, 246, .14); color: var(--violet); box-shadow: inset 0 0 0 1px rgba(139,92,246,.4), 0 0 16px rgba(139,92,246,.25); }
.stat-cyan b { background: rgba(46, 230, 255, .12); color: var(--cyan); box-shadow: inset 0 0 0 1px rgba(46,230,255,.4), 0 0 16px rgba(46,230,255,.2); }
.stat-amber b { background: rgba(255, 157, 46, .13); color: var(--orange); box-shadow: inset 0 0 0 1px rgba(255,157,46,.4), 0 0 16px rgba(255,157,46,.25); }
.stat-pill span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.stat-pill strong { font-family: var(--font-display); font-size: 15px; color: var(--text); margin-right: 4px; }

/* ---------- Fileiras (vitrines) ---------- */
.vitrines { display: flex; flex-direction: column; gap: 34px; padding-top: 18px; }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.row-head h2 { font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 22px); font-weight: 700; letter-spacing: -.01em; margin: 0; display: flex; align-items: center; gap: 10px; }
.row-head .flame { font-size: 20px; filter: drop-shadow(0 0 10px rgba(255, 157, 46, .8)); }
.row-head .icon { font-size: 17px; }
.icon-red { color: var(--red); } .icon-violet { color: var(--violet); } .icon-amber { color: var(--orange); }
.row-tools { display: flex; align-items: center; gap: 8px; }
.row-arrows { display: none; gap: 6px; }
.row-arrows button {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 17px; line-height: 1; display: grid; place-items: center;
  backdrop-filter: blur(6px); transition: all .15s ease;
}
.row-arrows button:hover { border-color: rgba(255, 46, 99, .6); background: rgba(255, 46, 99, .12); }
.track {
  display: flex; gap: 14px; overflow-x: auto; padding: 6px 2px 16px;
  scroll-snap-type: x proximity; scrollbar-width: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent);
}
.track::-webkit-scrollbar { display: none; }
.track > .card { flex: 0 0 clamp(148px, 38vw, 190px); scroll-snap-align: start; }
.track-channels > .card { flex-basis: clamp(210px, 52vw, 300px); }
@media (hover: hover) { .row-arrows { display: flex; } }

/* ---------- Promo ---------- */
.promo {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  margin: 6px 0 46px; padding: 24px 30px;
  background: linear-gradient(120deg, rgba(139, 92, 246, .14), rgba(255, 46, 99, .12));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
}
.promo-copy { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 3px; }
.promo-copy strong { font-family: var(--font-display); font-size: 17px; }
.promo-copy span { color: var(--muted); font-size: 13.5px; }
.promo-eq { display: flex; align-items: flex-end; gap: 4px; height: 40px; flex: none; padding-bottom: 2px; }
.promo-eq i {
  width: 5px; border-radius: 4px; background: var(--grad-hot);
  animation: eq 1s ease-in-out infinite alternate;
}
.promo-eq i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.promo-eq i:nth-child(2) { height: 90%; animation-delay: -.5s; }
.promo-eq i:nth-child(3) { height: 55%; animation-delay: 0s; }
.promo-eq i:nth-child(4) { height: 100%; animation-delay: -.7s; }
.promo-eq i:nth-child(5) { height: 60%; animation-delay: -.35s; }
.promo-eq i:nth-child(6) { height: 95%; animation-delay: -.6s; }
.promo-eq i:nth-child(7) { height: 45%; animation-delay: -.1s; }
@keyframes eq { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
@media (max-width: 620px) {
  .promo { padding: 20px 22px; }
  .promo-eq { order: 3; height: 26px; }
  .promo .btn { width: 100%; }
}

/* ---------- Catálogo (modo resultados) ---------- */
body:not(.grid-mode) #catalogSection { display: none; }
body.grid-mode .vitrines, body.grid-mode .promo { display: none; }
.catalog { padding: 8px 0 70px; }
.catalog-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.catalog-title { display: flex; flex-direction: column; gap: 2px; }
.catalog-title h2 { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -.02em; margin: 0; }
.result-count {
  font-size: 12px; font-weight: 700; color: var(--cyan);
  background: rgba(46, 230, 255, .08); border: 1px solid rgba(46, 230, 255, .3);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.tabs {
  display: flex; gap: 6px; padding: 6px; border-radius: 14px; margin-bottom: 24px;
  background: var(--panel); border: 1px solid var(--line); backdrop-filter: blur(8px);
  overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  border: 0; background: transparent; color: var(--muted);
  font-size: 14px; font-weight: 700; padding: 10px 22px; border-radius: 10px; white-space: nowrap;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tabs button:hover { color: var(--text); background: rgba(255,255,255,.07); }
.tabs button.active { background: var(--grad-hot); color: #fff; box-shadow: var(--shadow-glow); }
.grid {
  display: grid; gap: 18px; align-content: start; min-height: 220px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(165deg, rgba(255,255,255,.075), rgba(255,255,255,.02) 45%);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s cubic-bezier(.2, .7, .3, 1.2), border-color .2s ease, box-shadow .2s ease;
  outline: none;
}
.card:hover, .card:focus-visible {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 46, 99, .55);
  box-shadow: 0 22px 46px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 46, 99, .35), 0 0 36px rgba(255, 46, 99, .2);
}
.poster { position: relative; aspect-ratio: 2 / 2.9; background: #0c101d; overflow: hidden; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.card:hover .poster img { transform: scale(1.08); }
.poster::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(4, 6, 13, .88));
  pointer-events: none;
}
.play-overlay {
  position: absolute; left: 50%; top: 46%; translate: -50% -50%; z-index: 3;
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(255, 46, 99, .88); color: #fff; font-size: 16px;
  box-shadow: 0 0 0 6px rgba(255, 46, 99, .22), 0 10px 30px rgba(0, 0, 0, .5);
  opacity: 0; scale: .7; transition: opacity .2s ease, scale .2s ease; pointer-events: none;
}
.card:hover .play-overlay, .card:focus-visible .play-overlay { opacity: 1; scale: 1; }
.card.image-error .poster { display: grid; place-items: center; }
.poster-fallback {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-size: 34px; color: rgba(255, 255, 255, .16);
  background: radial-gradient(circle at 50% 32%, rgba(139, 92, 246, .32), rgba(255, 46, 99, .12) 72%);
}
.card:not(.image-error) .poster-fallback { display: none; }
.kind-badge {
  position: absolute; left: 10px; top: 10px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; background: rgba(8, 10, 20, .72); backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .18); padding: 5px 10px; border-radius: 7px;
}
.is-live .kind-badge {
  background: linear-gradient(120deg, rgba(255, 46, 60, .95), rgba(255, 46, 99, .9));
  border-color: transparent; box-shadow: 0 0 14px rgba(255, 46, 90, .55);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse { 50% { box-shadow: 0 0 4px rgba(255, 46, 90, .3); } }
.new-badge {
  position: absolute; right: 10px; top: 10px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #fff;
  background: var(--grad-cool); padding: 5px 10px; border-radius: 7px;
  box-shadow: 0 0 16px rgba(46, 230, 255, .4);
}
.track-channels .poster { aspect-ratio: 16 / 10; }
.card-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-body .category {
  margin: 0; font-size: 10px; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--cyan); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body h3 {
  margin: 0; font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
  line-height: 1.3; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.card-body .synopsis {
  margin: 0; font-size: 12px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1;
}
.card-body .meta { font-size: 11px; color: #aab1cc; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-compact .synopsis { display: none; }
.card-compact .card-body { padding: 11px 13px 13px; }

/* ---------- Estados da grade ---------- */
.loading {
  grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 70px 0; color: var(--muted); font-weight: 600;
}
.loading span {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--red);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 64px 20px;
  background: var(--panel); border: 1px dashed var(--line); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.empty strong { font-family: var(--font-display); font-size: 20px; }
.empty span { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.empty [data-request] {
  margin-top: 6px; border: 0; border-radius: 12px; padding: 12px 24px;
  background: var(--grad-hot); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: var(--shadow-hot); transition: transform .15s ease;
}
.empty [data-request]:hover { transform: translateY(-2px); }

/* ---------- Paginação ---------- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; flex-wrap: wrap; }
.pagination button {
  min-width: 42px; height: 42px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 14px; font-weight: 700; transition: all .15s ease;
}
.pagination button:hover:not(:disabled) { border-color: rgba(255, 46, 99, .5); box-shadow: var(--shadow-glow); transform: translateY(-2px); }
.pagination button.active { background: var(--grad-hot); border-color: transparent; box-shadow: var(--shadow-hot); }
.pagination button:disabled { opacity: .35; cursor: default; }

/* ---------- Rodapé ---------- */
.footer {
  border-top: 1px solid rgba(255, 255, 255, .07);
  padding: 30px 4vw calc(34px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 6px; align-items: center; text-align: center;
}
.footer p { margin: 0; font-size: 14px; font-family: var(--font-display); }
.footer small { color: var(--muted); }

/* ============================================================
   MODAIS (compartilhados)
   ============================================================ */
.modal[hidden], .request-modal[hidden] { display: none !important; }
.modal-open { overflow: hidden; }
.modal-shade {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(2, 4, 10, .8); backdrop-filter: blur(12px);
}
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 6;
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.22);
  background: rgba(10, 12, 22, .68); color: #fff; font-size: 20px; line-height: 1;
  display: grid; place-items: center; backdrop-filter: blur(6px); transition: all .18s ease;
}
.modal-close:hover { background: var(--red); border-color: var(--red); transform: rotate(90deg); }

/* ---------- Detalhe ---------- */
.detail {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 100; width: min(980px, calc(100vw - 32px)); max-height: min(90vh, 90dvh);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none;
  background: linear-gradient(170deg, rgba(20, 24, 40, .98), rgba(7, 9, 17, .99));
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75), 0 0 60px rgba(255, 46, 99, .08);
}
.detail::-webkit-scrollbar { display: none; }
.detail-backdrop {
  position: absolute; inset: 0 0 auto 0; height: 340px;
  background-size: cover; background-position: center top; opacity: .55;
  mask-image: linear-gradient(#000 42%, transparent); -webkit-mask-image: linear-gradient(#000 42%, transparent);
}
.detail.no-backdrop .detail-backdrop { display: none; }
.detail.poster-backdrop .detail-backdrop { opacity: .45; filter: blur(26px) saturate(1.15); transform: scale(1.3); background-position: center 18%; }
.detail-content { position: relative; display: flex; gap: 28px; padding: 40px 34px 40px; }
.detail-poster { flex: 0 0 208px; }
.detail-poster img {
  width: 100%; aspect-ratio: 2/2.8; object-fit: cover; border-radius: 16px; display: block;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
}
.detail-fallback {
  width: 100%; aspect-ratio: 2/2.8; display: none; place-items: center; font-size: 40px; color: rgba(255,255,255,.16);
  border-radius: 16px; background: radial-gradient(circle at 50% 35%, rgba(139,92,246,.35), rgba(255,46,99,.14) 70%);
}
.detail-poster.missing img { display: none; }
.detail-poster.missing .detail-fallback { display: grid; }
.detail-info { flex: 1; min-width: 0; padding-top: 4px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-badges span {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 8px; color: #fff;
  background: var(--grad-hot); box-shadow: var(--shadow-glow);
}
.detail-badges span:nth-child(2) { background: var(--grad-cool); box-shadow: 0 0 20px rgba(46, 230, 255, .25); }
.detail-info h2 { font-family: var(--font-display); font-size: clamp(22px, 3.2vw, 34px); letter-spacing: -.02em; margin: 0 0 12px; line-height: 1.15; }
.detail-meta { font-size: 14px; color: #cfd5ea; font-weight: 600; margin-bottom: 16px; }
.detail-category-line {
  display: flex; gap: 10px; align-items: baseline; margin: 0 0 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px;
}
.detail-category-line span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.detail-category-line strong { font-size: 14px; }
.detail-synopsis { color: #c3cade; line-height: 1.7; font-size: 15px; margin: 0 0 20px; }
.season-area { margin-bottom: 18px; }
.season-area h3 { font-family: var(--font-display); font-size: 16px; margin: 0 0 12px; }
.season-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(185px, 1fr)); gap: 10px; }
.season-chip {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 15px;
  transition: border-color .15s ease, transform .15s ease;
}
.season-chip:hover { border-color: rgba(139, 92, 246, .6); transform: translateY(-2px); }
.season-chip strong { font-size: 13.5px; }
.season-chip span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tmdb-note { margin: 0; font-size: 11px; color: #6d7591; }
@media (max-width: 720px) {
  .detail {
    left: 10px; right: 10px; width: auto; top: auto; bottom: 10px;
    transform: none; max-height: 92dvh; border-radius: 22px;
  }
  .detail-content { flex-direction: column; padding: 60px 18px 26px; }
  .detail-poster { flex: none; max-width: 190px; margin: 0 auto; }
  .season-list { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MODAL DE PEDIDO
   ============================================================ */
.request-modal .modal-shade { z-index: 120; }
.request-dialog {
  position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 130; width: min(560px, calc(100vw - 32px)); max-height: min(90vh, 90dvh);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  scrollbar-width: none;
  background: linear-gradient(170deg, #171b2c, #0a0d18);
  border: 1px solid rgba(255, 255, 255, .13); border-radius: 24px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .75);
  padding: 36px 30px 30px;
}
.request-dialog::-webkit-scrollbar { display: none; }
@media (max-width: 640px) {
  .request-dialog {
    left: 10px; right: 10px; width: auto; top: auto; bottom: 10px;
    transform: none; max-height: 92dvh; border-radius: 22px; padding-top: 52px;
  }
}
.request-icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 26px; color: #fff;
  background: var(--grad-hot); border-radius: 16px; margin-bottom: 14px; box-shadow: var(--shadow-hot);
}
.eyebrow { font-size: 11px; letter-spacing: .22em; font-weight: 800; color: var(--cyan); margin: 0; }
.eyebrow-fire { color: var(--red); text-shadow: 0 0 20px rgba(255, 46, 99, .6); }
.request-dialog h2 { font-family: var(--font-display); font-size: 25px; letter-spacing: -.02em; margin: 8px 0 8px; }
.request-lead { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
#requestForm fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 16px; margin: 0 0 16px; }
#requestForm legend { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 0 8px; }
#requestForm fieldset label { display: inline-flex; align-items: center; gap: 9px; margin-right: 14px; cursor: pointer; position: relative; }
#requestForm fieldset input { position: absolute; opacity: 0; }
#requestForm fieldset label span {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); font-size: 13px; font-weight: 700; transition: all .15s ease;
}
#requestForm fieldset input:checked + span { background: var(--grad-hot); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
#requestForm fieldset label:hover span { border-color: rgba(255, 46, 99, .5); color: var(--text); }
#requestForm fieldset input:checked + span:hover { color: #fff; }
.field { display: block; margin-bottom: 15px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: #d5daed; }
.field > span small { color: var(--muted); font-weight: 500; }
.field input, .field textarea {
  width: 100%; background: rgba(10, 13, 24, .8); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text); font-family: inherit; font-size: 15px; padding: 13px 15px; outline: none; resize: vertical;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field textarea:focus { border-color: rgba(255, 46, 99, .6); box-shadow: 0 0 0 3px rgba(255, 46, 99, .16); }
.tmdb-search-active .tmdb-picker { min-height: 90px; }
.tmdb-picker-hint { font-size: 12.5px; color: var(--muted); margin: 0 0 10px; }
.tmdb-results { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow-y: auto; margin-bottom: 8px; }
.tmdb-results:empty { display: none; }
.tmdb-option {
  display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px;
  color: var(--text); transition: all .14s ease;
}
.tmdb-option:hover { border-color: rgba(255, 46, 99, .5); transform: translateX(3px); }
.tmdb-option.selected { border-color: var(--red); background: rgba(255, 46, 99, .1); box-shadow: 0 0 0 1px var(--red), var(--shadow-glow); }
.tmdb-option-visual {
  position: relative; flex: none; width: 44px; height: 62px; border-radius: 8px; overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(139,92,246,.4), rgba(255,46,99,.15));
  display: grid; place-items: center;
}
.tmdb-option-visual img { width: 100%; height: 100%; object-fit: cover; }
.tmdb-check {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 800; color: transparent;
  background: rgba(8, 10, 20, .75); border: 1px solid rgba(255,255,255,.25);
}
.tmdb-option.selected .tmdb-check { color: #fff; background: var(--red); border-color: transparent; }
.tmdb-option-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tmdb-option-info strong { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tmdb-option-info small { font-size: 12px; color: var(--muted); }
.tmdb-selected {
  font-size: 13px; font-weight: 700; color: #9ff0c9;
  background: rgba(47, 224, 139, .1); border: 1px solid rgba(47, 224, 139, .35);
  border-radius: 10px; padding: 10px 14px; margin-bottom: 10px;
}
.tmdb-picker-credit { font-size: 11px; color: #6d7591; margin: 4px 0 12px; }
.tmdb-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13.5px; margin: 0; }
.tmdb-loading span {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .18); border-top-color: var(--cyan);
  animation: spin .8s linear infinite;
}
.tmdb-empty { color: var(--muted); font-size: 13.5px; margin: 4px 0; }
.request-submit {
  width: 100%; border: 0; border-radius: 14px; padding: 15px; margin-top: 4px;
  background: var(--grad-hot); color: #fff; font-size: 15.5px; font-weight: 800;
  box-shadow: var(--shadow-hot); transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
}
.request-submit:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 42px rgba(255, 90, 80, .45); }
.request-submit:disabled { opacity: .6; cursor: wait; }
.request-status { min-height: 20px; text-align: center; font-size: 13.5px; font-weight: 600; margin: 12px 0 0; }
.request-status.success { color: #7dedb7; }
.request-status.error { color: #ff8ba0; }
