/* BraboPlayer — site público. Linguagem visual: grade de TV / sinal de teste.
   Cores chapadas, cantos curtos, rótulos em monoespaçada. */
:root {
  --bg: #0e0e10;
  --bg-2: #141417;
  --panel: #18181c;
  --panel-2: #1f1f24;
  --line: #2b2b31;
  --line-2: #3a3a42;
  --text: #f1eee8;
  --muted: #a09d96;
  --dim: #6d6b66;
  --orange: #ff5b1f;
  --orange-2: #ff7a45;
  --pink: #ff2d6f;
  --yellow: #ffcc33;
  --green: #3ddc84;
  --red: #ff4d4d;
  --ink: #111013;
  --r: 6px;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- faixa de "sinal de teste" ---------- */
.bars { display: grid; grid-template-columns: repeat(7, 1fr); height: 5px; }
.bars i:nth-child(1) { background: #e8e4dc; }
.bars i:nth-child(2) { background: var(--yellow); }
.bars i:nth-child(3) { background: #2ec4b6; }
.bars i:nth-child(4) { background: var(--green); }
.bars i:nth-child(5) { background: var(--pink); }
.bars i:nth-child(6) { background: var(--orange); }
.bars i:nth-child(7) { background: #4c6fff; }

/* ---------- topo ---------- */
.top { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 30; }
.top-in { display: flex; align-items: stretch; gap: 24px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.logo img { width: 30px; height: 30px; }
.logo span { font-weight: 800; font-stretch: 80%; font-size: 21px; letter-spacing: .01em; text-transform: uppercase; }
.logo span b { color: var(--orange); font-weight: 800; }
.nav { display: flex; margin-left: auto; }
.nav a {
  display: flex; align-items: center; gap: 8px; padding: 0 16px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 15px; border-left: 1px solid var(--line); position: relative;
}
.nav a:last-child { border-right: 1px solid var(--line); }
.nav a small { font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 500; }
.nav a:hover { color: var(--text); background: var(--bg-2); }
.nav a[aria-current='page'] { color: var(--text); background: var(--panel); }
.nav a[aria-current='page']::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--orange); }
.nav a[aria-current='page'] small { color: var(--orange); }
.menu-btn { display: none; margin-left: auto; align-self: center; background: none; border: 1px solid var(--line-2); color: var(--text); font: 600 14px var(--sans); padding: 8px 14px; border-radius: var(--r); cursor: pointer; }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 16px; border: 0; border-top: 1px solid var(--line); }
  .nav a:last-child { border-right: 0; }
  .nav a[aria-current='page']::after { top: 0; bottom: 0; width: 3px; height: auto; right: auto; }
}

/* ---------- tipografia ---------- */
h1, h2, h3 { margin: 0; line-height: 1.05; font-weight: 800; font-stretch: 78%; letter-spacing: -.005em; }
.ch { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.ch::before { content: ''; width: 8px; height: 8px; background: var(--orange); }
.lede { color: var(--muted); font-size: 18px; max-width: 60ch; margin: 14px 0 0; }

/* ---------- botões e formulários ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: var(--r); border: 1px solid transparent; background: var(--orange); color: var(--ink);
  font: 700 15px var(--sans); text-decoration: none; cursor: pointer; transition: background .12s, transform .12s;
}
.btn:hover { background: var(--orange-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; }
.btn .arrow { font-family: var(--mono); font-weight: 500; }
.btn.line { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn.line:hover { border-color: var(--text); background: transparent; }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn.danger { background: transparent; color: #ff8b8b; border-color: #5a2a2a; }
.btn.danger:hover { border-color: var(--red); }
.btn.block { width: 100%; }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field > label:not(.plan), .label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.input {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--bg); color: var(--text); font: 400 16px var(--sans); outline: none; transition: border-color .12s;
}
textarea.input { min-height: 180px; resize: vertical; line-height: 1.5; }
.input:focus { border-color: var(--orange); }
.input.mono { font-family: var(--mono); letter-spacing: .04em; }
.input.big { font-size: 22px; min-height: 60px; }
.hint { font-size: 14px; color: var(--muted); }
.error { color: #ff8b8b; font-size: 14px; min-height: 22px; margin: 2px 0 10px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 620px) { .row-2 { grid-template-columns: 1fr; } }

/* ---------- blocos ---------- */
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 22px; }
.panel-head .right { margin-left: auto; }
.panel-body { padding: 20px; }
.tag { font-family: var(--mono); font-size: 12px; padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--muted); white-space: nowrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.status.ok { color: var(--green); }
.status.warn { color: var(--yellow); }
.status.bad { color: var(--red); }
.status.info { color: #8ea2ff; }

/* ---------- página interna ---------- */
.page-head { padding: 48px 0 36px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.page-head h1 { font-size: clamp(40px, 6vw, 64px); }
.page-body { padding: 40px 0 72px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.split.left { grid-template-columns: 340px minmax(0, 1fr); }
@media (max-width: 920px) { .split, .split.left { grid-template-columns: 1fr; } .split > aside { order: 2; } }

/* ---------- início ---------- */
.hero { padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
@media (max-width: 920px) { .hero-in { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(46px, 7.4vw, 92px); text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lede { font-size: 19px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.signal { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-family: var(--mono); font-size: 13px; color: var(--muted); text-transform: uppercase; }
.signal span { display: inline-flex; align-items: center; gap: 8px; }
.signal .on { color: var(--text); }
.signal .on .dot { color: var(--green); }
.signal .off .dot { color: transparent; box-shadow: inset 0 0 0 1.5px var(--dim); }

/* tela da TV (mock) */
.tv { border: 1px solid var(--line-2); border-radius: 10px; background: #000; padding: 10px; }
.tv-screen { aspect-ratio: 16 / 9; background: #121216; border-radius: 4px; padding: 6% 6% 5%; display: flex; flex-direction: column; overflow: hidden; position: relative; }
.tv-row { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: clamp(8px, 1vw, 11px); color: var(--muted); }
.tv-row b { font-family: var(--sans); font-stretch: 78%; font-weight: 800; font-size: 1.6em; color: var(--text); text-transform: uppercase; }
.tv-row b i { font-style: normal; color: var(--orange); }
.tv-tiles { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4%; align-items: center; }
.tv-tile { aspect-ratio: 3 / 3.5; border-radius: 6px; background: #1d1d22; border: 1px solid #2b2b31; display: flex; flex-direction: column; justify-content: space-between; padding: 10%; font-size: clamp(8px, 1.05vw, 13px); font-weight: 700; color: #d9d6cf; }
.tv-tile svg { width: 34%; height: auto; }
.tv-tile.focus { background: var(--orange); color: var(--ink); border-color: var(--orange); transform: scale(1.06); }
.tv-foot { width: 30%; height: 10px; margin: 0 auto; background: #050505; border-radius: 0 0 6px 6px; }
.tv-live { position: absolute; top: 6%; right: 6%; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }

/* atalhos em formato de grade de canais */
.channels { border-top: 1px solid var(--line); }
.channel {
  display: grid; grid-template-columns: 90px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--line); text-decoration: none; transition: background .12s;
}
.channel:hover { background: var(--bg-2); }
.channel .num { font-family: var(--mono); font-size: 34px; color: var(--dim); font-weight: 500; }
.channel:hover .num { color: var(--orange); }
.channel h3 { font-size: 32px; }
.channel p { margin: 6px 0 0; color: var(--muted); max-width: 62ch; }
.channel .go { font-family: var(--mono); font-size: 14px; color: var(--muted); white-space: nowrap; }
.channel:hover .go { color: var(--text); }
@media (max-width: 620px) { .channel { grid-template-columns: 56px 1fr; } .channel .go { display: none; } .channel .num { font-size: 24px; } .channel h3 { font-size: 26px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r); }
.steps li { list-style: none; padding: 24px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps b { display: block; font-size: 20px; margin: 10px 0 6px; font-stretch: 85%; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; border-top: 1px solid var(--line); } .steps li:first-child { border-top: 0; } }

.price-strip { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); }
.price-strip .big { font-size: clamp(36px, 5vw, 56px); font-weight: 800; font-stretch: 78%; line-height: 1; }
.price-strip .big small { font-size: .4em; color: var(--muted); font-weight: 600; font-stretch: 100%; }
@media (max-width: 760px) { .price-strip { grid-template-columns: 1fr; } }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--orange); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0 0 20px; color: var(--muted); max-width: 70ch; }

/* ---------- ativar app ---------- */
.stepper { display: flex; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 24px; overflow: hidden; }
.stepper span { flex: 1; padding: 12px 16px; font-family: var(--mono); font-size: 13px; color: var(--dim); text-transform: uppercase; border-left: 1px solid var(--line); }
.stepper span:first-child { border-left: 0; }
.stepper span.on { color: var(--ink); background: var(--orange); }
.stepper span.done { color: var(--text); }
.plan { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 10px; cursor: pointer; background: var(--bg); }
.plan:has(input:checked) { border-color: var(--orange); background: #1c1410; }
.plan input { accent-color: var(--orange); width: 18px; height: 18px; margin: 0; }
.plan b { display: block; font-size: 18px; }
.plan small { color: var(--muted); font-size: 14px; }
.plan .price { font-size: 26px; font-weight: 800; font-stretch: 78%; white-space: nowrap; }
.pix { display: grid; grid-template-columns: 260px 1fr; gap: 24px; align-items: start; }
@media (max-width: 700px) { .pix { grid-template-columns: 1fr; } }
.pix img { width: 260px; height: 260px; background: #fff; padding: 10px; border-radius: var(--r); }
.copy { display: flex; gap: 8px; }
.copy .input { font-family: var(--mono); font-size: 12px; min-height: 48px; }
.waiting { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: var(--r); margin-top: 16px; color: var(--muted); }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); animation: pulse 1.2s infinite; flex: none; }
@keyframes pulse { 50% { opacity: .25; } }
.done-box { text-align: left; }
.done-box .check { width: 56px; height: 56px; border-radius: var(--r); background: var(--green); color: var(--ink); display: grid; place-items: center; font-size: 30px; font-weight: 800; margin-bottom: 18px; }

/* coluna lateral de ajuda */
.aside h3 { font-size: 20px; margin-bottom: 10px; }
.aside ol { padding-left: 20px; margin: 0; color: var(--muted); }
.aside ol li { margin-bottom: 8px; }
.aside .panel + .panel { margin-top: 16px; }

/* ---------- playlists ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; margin: 0; }
.kv dt, .kv dd { padding: 10px 0; border-bottom: 1px solid var(--line); margin: 0; }
.kv dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding-right: 16px; }
.kv dd { text-align: right; font-weight: 600; }
.kv dd.mono { font-family: var(--mono); font-weight: 500; }
.license { margin-top: 18px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); }
.license .big { font-size: 20px; font-weight: 700; margin: 8px 0 14px; }
.pl { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pl:last-child { border-bottom: 0; }
.pl .kind { font-family: var(--mono); font-size: 11px; font-weight: 600; height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 4px; color: var(--orange); }
.pl b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl span { font-size: 14px; color: var(--muted); }
.pl .actions { display: flex; gap: 8px; }
@media (max-width: 560px) { .pl { grid-template-columns: 44px 1fr; } .pl .actions { grid-column: 1 / -1; } }
.empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 18px; overflow: hidden; }
.seg button { background: none; border: 0; color: var(--muted); font: 600 14px var(--sans); padding: 10px 16px; cursor: pointer; border-left: 1px solid var(--line-2); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--text); color: var(--ink); }
.notice { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-left: 3px solid var(--yellow); background: #1d1a10; margin-bottom: 22px; border-radius: 0 var(--r) var(--r) 0; }
.notice.bad { border-color: var(--red); background: #1f1213; }
.notice .btn { margin-left: auto; flex: none; }

/* ---------- contato ---------- */
.counter { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; color: var(--muted); margin-top: 6px; }
.counter b { color: var(--text); font-weight: 600; }
.counter.near b { color: var(--yellow); }
.counter.full b { color: var(--red); }
.meter { height: 3px; background: var(--line); margin-top: 8px; border-radius: 2px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--orange); transition: width .1s; }
.contact-line { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-line:last-child { border-bottom: 0; }
.contact-line a { font-size: 19px; font-weight: 700; text-decoration: none; word-break: break-all; }
.contact-line a:hover { color: var(--orange); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 14px; background: var(--bg-2); }
.foot-in { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.foot nav { display: flex; gap: 18px; flex-wrap: wrap; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot p { margin: 12px 0 0; max-width: 70ch; }
@media (max-width: 700px) { .foot-in { grid-template-columns: 1fr; } }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--text); color: var(--ink); padding: 12px 18px; border-radius: var(--r); font-weight: 600; font-size: 15px; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--red); color: #fff; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Páginas legais (privacidade, termos) */
.legal { max-width: 78ch; }
.legal h2 { font-size: 26px; margin: 40px 0 12px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 19px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal b, .legal strong { color: var(--text); }
.legal a { color: var(--orange-2); }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--dim); margin-bottom: 28px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border: 1px solid var(--line); }
.legal th { color: var(--text); background: var(--panel); }
.legal td { color: var(--muted); }
.lang-switch { margin-top: 18px; font-family: var(--mono); font-size: 13px; }
.lang-switch a { color: var(--orange-2); }
