/* legendas.online — estilo "Timecode" */
:root {
  --bg: #ECE9E2;
  --paper: #F7F5F0;
  --white: #FFFFFF;
  --ink: #141414;
  --muted: #3B3A36;
  --muted-2: #4A4843;
  --accent: #FF5A1F;
  --ok: #1F7A4A;
  --danger: #B3261E;
  --line: 2px solid var(--ink);
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #000; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.upper { text-transform: uppercase; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.section { padding-top: 48px; padding-bottom: 48px; }
.section-sm { padding-top: 28px; padding-bottom: 28px; }
.hl { background: var(--accent); padding: 0 .18em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }

/* Cabeçalho */
.site-header { border-bottom: var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: 14px; padding-bottom: 14px; font-family: var(--mono); }
.logo { font-weight: 700; font-size: 18px; text-decoration: none; display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 14px; height: 14px; background: var(--accent); border: var(--line); display: inline-block; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; font-size: 14px; text-transform: uppercase; }
.nav a, .nav button { text-decoration: none; padding: 12px 10px; background: none; border: 0; font: inherit; text-transform: inherit; color: var(--ink); cursor: pointer; }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav .nav-cta { background: var(--ink); color: var(--bg); padding: 12px 14px; }
.nav .nav-cta:hover { color: var(--accent); }
.badge-count { display: inline-block; min-width: 20px; padding: 0 5px; margin-left: 4px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); font-size: 11px; line-height: 16px; text-align: center; }
.nav form { margin: 0; }

/* Mensagens */
.flashes { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { border: var(--line); padding: 12px 16px; font-family: var(--mono); font-size: 14px; background: var(--paper); }
.flash-success { background: #DDEFD9; }
.flash-error { background: #F6D6D1; }
.flash-info { background: var(--paper); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 18px; border: var(--line); background: var(--ink); color: var(--bg); font-family: var(--mono); font-weight: 700; font-size: 14px; text-transform: uppercase; text-decoration: none; cursor: pointer; line-height: 1.1; }
.btn:hover { color: var(--accent); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); background: #ff7442; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }
.btn-dashed { background: transparent; color: var(--ink); border-style: dashed; }
.btn-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn-sm { min-height: 40px; padding: 9px 12px; font-size: 12px; }
.btn-lg { min-height: 56px; padding: 16px 24px; font-size: 15px; }
.btn[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--ink); text-decoration: underline; cursor: pointer; }

/* Rótulo estilo arquivo SRT */
.srt-label { font-family: var(--mono); font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 2px; }
.kicker { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }

/* Hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: flex; flex-direction: column; gap: 26px; }
.display { font-weight: 800; font-size: clamp(48px, 8.5vw, 132px); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; max-width: 1100px; }
.display-md { font-weight: 800; font-size: clamp(40px, 6.5vw, 96px); line-height: .92; letter-spacing: -.045em; text-transform: uppercase; }
.lead { font-size: 19px; line-height: 1.5; max-width: 600px; color: #2E2D2A; }
.h2 { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; text-transform: uppercase; }
.h3 { font-weight: 800; font-size: 24px; letter-spacing: -.02em; }

/* Busca estilo linha de comando */
.cmd { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.cmd-box { display: flex; align-items: stretch; border: var(--line); background: var(--paper); }
.cmd-prompt { font-family: var(--mono); font-weight: 700; font-size: 20px; padding: 13px 0 13px 16px; }
.cmd-box input { flex: 1 1 auto; min-width: 0; font-family: var(--mono); font-size: 18px; border: 0; outline: none; background: transparent; padding: 13px 12px; color: var(--ink); }
.cmd-box button { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 0 22px; border: 0; border-left: var(--line); background: var(--accent); color: var(--ink); cursor: pointer; }
.cmd-box:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Autocompletar */
.cmd { position: relative; }
.ac-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: -2px 0 0; padding: 0; list-style: none; background: var(--white); border: var(--line); max-height: min(70vh, 520px); overflow-y: auto; box-shadow: 6px 6px 0 var(--ink); }
.ac-item { display: flex; align-items: center; gap: 14px; padding: 10px 14px; cursor: pointer; border-top: 1px solid #D8D4CA; min-height: 48px; }
.ac-item:first-child { border-top: 0; }
.ac-item[aria-selected="true"] { background: var(--accent); }
.ac-thumb { flex: 0 0 auto; width: 36px; height: 52px; background: var(--ink); color: var(--accent); display: flex; align-items: center; justify-content: center; font-weight: 800; overflow: hidden; }
.ac-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ac-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-item[aria-selected="true"] .ac-meta { color: var(--ink); }
.ac-all { background: var(--paper); font-family: var(--mono); }
.ac-all .ac-name { font-family: var(--mono); font-weight: 700; font-size: 13px; }

.ticker { background: var(--ink); color: var(--bg); border-top: var(--line); border-bottom: var(--line); }
.ticker .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-top: 14px; padding-bottom: 14px; font-family: var(--mono); font-size: 14px; }

/* Cartões em grade com bordas coladas */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); border-top: var(--line); border-left: var(--line); }
.tile { border-right: var(--line); border-bottom: var(--line); padding: 22px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); min-width: 0; }
.tile-meta { font-family: var(--mono); font-size: 13px; color: var(--muted-2); display: flex; justify-content: space-between; gap: 12px; }
.tile h3 { font-weight: 800; font-size: 26px; letter-spacing: -.02em; }
.tile h3 a { text-decoration: none; }
.release { font-family: var(--mono); font-size: 13px; color: var(--muted); word-break: break-all; }
.tile-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }

.title-card { flex-direction: row; gap: 18px; text-decoration: none; }
.poster { flex: 0 0 auto; width: 72px; height: 104px; background: var(--ink); border: var(--line); object-fit: cover; display: flex; align-items: flex-end; padding: 8px; color: var(--accent); font-weight: 800; font-size: 14px; overflow: hidden; }
.poster-lg { width: 200px; height: 290px; font-size: 32px; padding: 14px; }
.title-card .info { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.title-card .name { font-weight: 800; font-size: 26px; letter-spacing: -.02em; line-height: 1.05; }
.title-card form { margin-top: 8px; }

/* Lista "Saindo agora" */
.feed { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.feed-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 0 22px; padding: 16px 0; border-bottom: var(--line); }
.feed-item:hover { background: var(--paper); }
.feed-head { font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; margin: 0; }
.feed-head::before { content: ""; width: 14px; height: 14px; background: var(--accent); border: var(--line); }
.feed-thumb { display: block; text-decoration: none; }
.feed-thumb .poster { width: 64px; height: 92px; font-size: 16px; }
.feed-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.feed-time { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.feed-title { font-weight: 800; font-size: 24px; letter-spacing: -.02em; line-height: 1.1; text-decoration: none; }
.feed-title:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.feed-ep { background: var(--accent); padding: 0 6px; font-family: var(--mono); font-size: 17px; letter-spacing: 0; white-space: nowrap; }
.feed-year { color: var(--muted-2); font-weight: 500; }
.feed-sub { font-size: 15px; color: #2E2D2A; }
.feed-main .release { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; word-break: normal; }
.feed-tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; max-width: 280px; }
.feed-by { flex-basis: 100%; text-align: right; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.feed-dl { white-space: nowrap; }

/* Cabeçalho de série/filme com pôster grande */
.title-head { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 48px; align-items: end; }
.title-head .poster-xl { width: 100%; height: auto; aspect-ratio: 2 / 3; font-size: clamp(40px, 5vw, 72px); padding: 22px; box-shadow: 12px 12px 0 var(--accent); }
img.poster, .title-head img.poster-xl { padding: 0; object-fit: cover; }
.title-head .title-info { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.title-head .title-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.title-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.aka { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; font-family: var(--mono); font-size: 14px; }
.aka > div { display: flex; gap: 8px; align-items: baseline; }
.aka dt { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-2); }
.aka dd { margin: 0; font-weight: 700; }

/* Calendário de exibição */
.air-list { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.air-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 0 18px; padding: 12px 0; border-bottom: var(--line); }
.air-item:hover { background: var(--paper); }
.air-thumb { display: block; text-decoration: none; }
.air-thumb .poster { width: 48px; height: 70px; font-size: 13px; padding: 6px; }
.air-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.air-title { font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1.15; text-decoration: none; }
.air-title:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.air-code { background: var(--accent); padding: 0 6px; font-family: var(--mono); font-size: 15px; letter-spacing: 0; white-space: nowrap; }
.air-sub { font-size: 15px; color: #2E2D2A; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.air-action { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.air-action form { margin: 0; }

.air-day { display: flex; flex-direction: column; gap: 12px; scroll-margin-top: 16px; }
.air-day-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 12px 0 0; }
.air-day-date { font-family: var(--mono); font-weight: 700; font-size: 18px; }
.air-day-name { font-weight: 800; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.03em; text-transform: uppercase; line-height: 1; }
.air-day-count { font-family: var(--mono); font-size: 13px; color: var(--muted-2); }

.day-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: var(--line); border-left: var(--line); }
.day-strip a { border-right: var(--line); border-bottom: var(--line); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; background: var(--paper); min-height: 76px; }
.day-strip a:hover { background: var(--ink); color: var(--bg); }
.day-strip a.is-today { background: var(--accent); }
.day-strip a.is-today:hover { color: var(--ink); }
.day-strip a.is-empty { background: transparent; color: var(--muted-2); }
.ds-wd { font-family: var(--mono); font-size: 12px; text-transform: uppercase; }
.ds-date { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.ds-count { font-family: var(--mono); font-size: 12px; }

@media (max-width: 640px) {
  .air-item { grid-template-columns: 44px minmax(0, 1fr); gap: 8px 14px; }
  .air-thumb { grid-row: 1 / 3; align-self: start; }
  .air-thumb .poster { width: 44px; height: 64px; }
  .air-action { grid-column: 2; justify-content: flex-start; }
  .air-title { font-size: 18px; }
  .day-strip a { padding: 8px 4px; min-height: 64px; align-items: center; text-align: center; }
  .ds-date { font-size: 15px; }
}

/* Envio em lote */
.batch-table { min-width: 1080px; font-size: 14px; }
.batch-table td { vertical-align: top; padding: 10px 12px; }
.batch-table select, .batch-table input[type=text] { font: inherit; font-size: 14px; padding: 8px 10px; border: var(--line); background: var(--white); color: var(--ink); border-radius: 0; }
.batch-table .mono-input { font-family: var(--mono); font-size: 13px; width: 100%; }
.batch-table .num-input { width: 56px; text-align: center; font-family: var(--mono); }
.batch-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ink); margin-top: 8px; }
.batch-table tr.row-error td { background: #FBE3DF; }

/* Equipes oficiais */
.team-link { font-weight: 700; }
.team-official { font-weight: 800; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.badge-official { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; padding: 1px 6px; background: var(--accent); color: var(--ink); border: 2px solid var(--ink); font-family: var(--mono); font-weight: 700; font-size: 10px; line-height: 1.4; text-transform: uppercase; letter-spacing: .04em; vertical-align: 2px; white-space: nowrap; }
.badge-official-lg { margin-left: 0; padding: 4px 10px; font-size: 13px; gap: 6px; vertical-align: 0; }
.tag-official { background: var(--accent); }
.chip-official { background: var(--accent); }
.tile-official { background: #FFE9DE; box-shadow: inset 0 0 0 3px var(--accent); }

/* Tabelas */
.table-box { overflow-x: auto; border: var(--line); background: var(--paper); }
table.data { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
table.data th { text-align: left; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 12px; text-transform: uppercase; padding: 12px 16px; font-weight: 700; }
table.data td { padding: 12px 16px; border-top: var(--line); vertical-align: middle; }
table.data td.mono { font-size: 13px; }
table.data td.actions { text-align: right; white-space: nowrap; }

/* Filtros */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 11px 14px; border: var(--line); background: transparent; color: var(--ink); text-decoration: none; text-transform: uppercase; }
.chip[aria-current="true"] { background: var(--accent); }
.chip:hover { background: var(--ink); color: var(--bg); }
.chip[aria-current="true"]:hover { background: var(--accent); color: var(--ink); }
.tabs { display: inline-flex; border: var(--line); flex-wrap: wrap; }
.tabs a { font-family: var(--mono); font-weight: 700; font-size: 15px; padding: 12px 20px; text-decoration: none; }
.tabs a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* Selos */
.tag { font-family: var(--mono); font-weight: 700; font-size: 12px; padding: 5px 9px; border: var(--line); display: inline-block; white-space: nowrap; text-transform: uppercase; }
.tag-accent { background: var(--accent); }
.tag-ink { background: var(--ink); color: var(--bg); }
.tag-dashed { border-style: dashed; }
.tag-ok { background: #DDEFD9; }
.tag-bad { background: #F6D6D1; }

/* Lista estilo SRT */
.srt-list { list-style: none; margin: 0; padding: 0; border-top: var(--line); }
.srt-item { border-bottom: var(--line); padding: 16px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.srt-item .num { font-family: var(--mono); font-weight: 700; font-size: 22px; min-width: 64px; }
.srt-item .grow { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srt-item .name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; text-decoration: none; }
.srt-item .sub { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.srt-item form { margin: 0; }

/* Grade de episódios */
.ep-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.ep-cell { font-family: var(--mono); aspect-ratio: 1 / 1; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; text-decoration: none; min-height: 72px; border: var(--line); }
.ep-cell .ep-status { font-size: 12px; }
.ep-cell .ep-num { font-size: 24px; font-weight: 700; }
.ep-ok { background: var(--ink); color: var(--bg); }
.ep-ok:hover { color: var(--accent); }
.ep-review { background: var(--accent); color: var(--ink); }
.ep-missing { background: transparent; border-style: dashed; color: var(--ink); }
.legend { display: flex; flex-direction: column; gap: 8px; font-family: var(--mono); font-size: 13px; }
.legend span { display: flex; align-items: center; gap: 8px; }
.legend i { width: 16px; height: 16px; display: inline-block; border: var(--line); }

/* Layout em duas colunas que empilha no celular */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split > .main { flex: 999 1 600px; min-width: 0; }
.split > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }

.panel { border: var(--line); background: var(--paper); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.panel-dark { background: var(--ink); color: var(--bg); }
.panel-dark a { color: var(--bg); }
.preview { margin: 0; font-family: var(--mono); font-size: 14px; line-height: 1.65; white-space: pre-wrap; word-break: break-word; }
.preview .line { color: var(--accent); }

.stepper { display: flex; align-items: stretch; border: var(--line); }
.stepper button { font-family: var(--mono); font-weight: 700; font-size: 20px; width: 56px; min-height: 48px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.stepper button:first-child { border-right: var(--line); }
.stepper button:last-child { border-left: var(--line); }
.stepper output { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; }

/* Formulários */
.form { border: var(--line); background: var(--paper); padding: 28px; display: flex; flex-direction: column; gap: 22px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, .field .label { font-family: var(--mono); font-size: 13px; font-weight: 700; text-transform: uppercase; }
.field input[type=text], .field input[type=email], .field input[type=password], .field input[type=search], .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 13px 14px; border: var(--line); background: var(--white); color: var(--ink); border-radius: 0; width: 100%;
}
.field textarea { min-height: 96px; resize: vertical; }
.field .mono-input { font-family: var(--mono); font-size: 15px; }
.field .hint { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.field .error, .error-text { font-family: var(--mono); font-size: 13px; color: var(--danger); font-weight: 700; }
.field.has-error input, .field.has-error select, .field.has-error .drop { border-color: var(--danger); }
.fields-row { display: flex; flex-wrap: wrap; gap: 16px; }
.fields-row > .field { flex: 1 1 180px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 140px; padding: 20px; border: 2px dashed var(--ink); background: var(--white); text-align: center; cursor: pointer; }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop.has-file { background: var(--accent); border-style: solid; }
.drop.dragging { background: #FFE3D6; }
.drop strong { font-size: 20px; text-transform: uppercase; }
.drop span { font-family: var(--mono); font-size: 13px; }

.steps { margin: 0; padding: 0; list-style: none; border-top: var(--line); font-family: var(--mono); font-size: 14px; }
.steps li { padding: 14px 0; border-bottom: var(--line); display: flex; gap: 14px; }

details.report summary { cursor: pointer; font-family: var(--mono); font-size: 13px; text-decoration: underline; list-style: none; }
details.report summary::-webkit-details-marker { display: none; }
details.report[open] summary { margin-bottom: 12px; }

.notice { border: var(--line); border-style: dashed; padding: 20px; display: flex; flex-direction: column; gap: 12px; background: transparent; }
.empty { font-family: var(--mono); font-size: 14px; padding: 24px; border: 2px dashed var(--ink); }

.crumbs { font-family: var(--mono); font-size: 13px; display: flex; flex-wrap: wrap; gap: 8px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 14px; }

.letters { display: flex; flex-wrap: wrap; gap: 4px; }
.letters a { font-family: var(--mono); font-weight: 700; min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border: var(--line); text-decoration: none; }
.letters a[aria-current="true"] { background: var(--accent); }

.prose { max-width: 760px; display: flex; flex-direction: column; gap: 16px; font-size: 17px; }
.prose h2 { font-weight: 800; font-size: 26px; text-transform: uppercase; letter-spacing: -.02em; margin-top: 12px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }

.admin-nav { display: flex; flex-wrap: wrap; gap: 6px; }

/* Números do perfil e da equipe */
.stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: var(--line); border-left: var(--line); }
.stats-row > div { border-right: var(--line); border-bottom: var(--line); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.stats-row strong { font-weight: 800; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; line-height: 1; }
.stats-row span { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.rank-1 { background: var(--accent); padding: 0 6px; }

/* Pix */
.pix-qr { align-self: center; width: 220px; height: 220px; display: flex; align-items: center; justify-content: center; background: var(--white); border: var(--line); padding: 8px; }
.pix-qr svg, .pix-qr img { width: 100%; height: 100%; }

/* Barra discreta de apoio */
.donate-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--paper); border-top: var(--line); }
.donate-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-top: 12px; padding-bottom: 12px; }
.donate-bar p { font-size: 14px; display: flex; align-items: center; gap: 10px; flex: 1 1 320px; }
.donate-bar[hidden] { display: none; }
body:has(.donate-bar:not([hidden])) { padding-bottom: 96px; }

/* Rodapé */
.site-footer { border-top: var(--line); margin-top: 32px; }
.site-footer .wrap { padding-top: 24px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-family: var(--mono); font-size: 13px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.attribution { font-size: 12px; color: var(--muted); }

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0; }
  .tiles { grid-template-columns: 1fr; }
  .ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .form { padding: 18px; }
  .poster-lg { width: 120px; height: 174px; font-size: 22px; }
  .cmd-box button { padding: 0 14px; }
  .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .feed-item { grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px 16px; }
  .feed-thumb .poster { width: 52px; height: 76px; }
  .feed-tags { grid-column: 2 / 4; justify-content: flex-start; max-width: none; }
  .feed-by { flex-basis: auto; text-align: left; }
  .feed-dl { grid-column: 3; grid-row: 1; }
  .feed-title { font-size: 20px; }
  .title-head { grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 28px; }
}

@media (max-width: 640px) {
  .title-head { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .title-head .poster-xl { width: 58%; max-width: 230px; box-shadow: 8px 8px 0 var(--accent); }
  .feed-item { grid-template-columns: 48px minmax(0, 1fr); }
  .feed-thumb .poster { width: 48px; height: 70px; }
  .feed-tags { grid-column: 1 / 3; }
  .feed-dl { grid-column: 1 / 3; grid-row: auto; }
}

/* chamada do envio em lote em /enviar */
.batch-cta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border: 2px solid var(--ink); background: var(--white); padding: 16px 20px; }
.batch-cta > div { display: flex; flex-direction: column; gap: 4px; max-width: 640px; }
.batch-cta strong { font-size: 18px; }
.batch-cta span { font-family: 'JetBrains Mono', monospace; font-size: 13px; }

/* página do addon do Stremio */
.stremio-hero { display: flex; gap: 36px; align-items: flex-start; flex-wrap: wrap; }
.stremio-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 36px; }
.stremio-facts { list-style: none; margin: 0; padding: 14px 0 0; border-top: var(--line); display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.stremio-facts strong { font-size: 15px; }

/* aviso discreto de doação, logo abaixo do menu */
.donate-strip { border-bottom: var(--line); background: var(--paper); }
.donate-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding-top: 10px; padding-bottom: 10px; }
.donate-strip-cue { font-size: 11px; line-height: 1.5; color: var(--muted-2); flex: 0 0 auto; }
.donate-strip p { flex: 1 1 320px; font-size: 14px; margin: 0; }
.donate-strip p strong { background: var(--accent); padding: 0 4px; font-weight: 600; }
.donate-strip-link { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 640px) { .donate-strip-cue { display: none; } }

/* episódio que ainda não foi ao ar */
.ep-soon { background: transparent; border-style: dotted; color: var(--muted-2); }
.ep-soon .ep-num { opacity: .6; }

.legend i.ep-missing { border-style: dashed; }
.legend i.ep-soon { border-style: dotted; }
