/* Jefy — design system: cyber brutalista, regra de 8 pontos */
:root {
  --bg: #000000; --surface: #1A1A1A; --surface-raised: #2D2D2D;
  --line: #3C3C3C; --line-strong: #696969;
  --text: #FFFFFF; --text-muted: #C1C1C1; --accent-text: #CCFF00;
  --accent: #CCFF00; --accent-hover: #BAEA00; --on-accent: #000000;
  --lime-a16: #CCFF0029; --focus: #CCFF00;
  --tier-promessa: #C1C1C1; --tier-destaque: #FFFFFF; --tier-lenda: #CCFF00;
  --font-display: "Space Mono", ui-monospace, monospace;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; border-radius: 0; margin: 0; }
html, body { background: var(--bg); color: var(--text); }
body { font-family: var(--font-mono); font-size: 16px; line-height: 24px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* tipografia */
.d-xl { font-family: var(--font-display); font-weight: 700; font-size: 96px; line-height: 88px; letter-spacing: -0.03em; text-transform: uppercase; }
.h2 { font-family: var(--font-display); font-weight: 700; font-size: 32px; line-height: 40px; letter-spacing: -0.01em; text-transform: uppercase; }
.h3 { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; text-transform: uppercase; }
.lead { font-size: 18px; line-height: 32px; font-weight: 500; text-transform: uppercase; color: var(--accent-text); }
.body-sm { font-size: 14px; line-height: 24px; color: var(--text-muted); }
.label { font-size: 14px; line-height: 16px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }
.cap { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.num { font-weight: 700; font-size: 40px; line-height: 48px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.muted { color: var(--text-muted); }
.acc { color: var(--accent-text); }
.tab { font-variant-numeric: tabular-nums; }

/* assinatura */
.pingo { display: inline-block; width: 8px; height: 8px; background: var(--line-strong); flex: none; }
.pingo.on { background: var(--accent); }
.blink, .pcur { animation: blink 1s steps(2, jump-none) infinite; }
.pcur { display: inline-block; width: .25em; height: .25em; margin-left: .08em; background: var(--accent); vertical-align: baseline; }
@keyframes blink { 50% { opacity: 0; } }
.idx { display: flex; gap: 16px; align-items: center; }
.idx .n { color: var(--accent-text); }
.arrow { width: 16px; height: 16px; flex: none; }
.arrow path { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: square; }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; height: 48px; padding: 0 16px 0 24px; border: 1px solid transparent; cursor: pointer; background: none; color: var(--text); }
.btn-lg { height: 56px; min-width: 240px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: var(--line-strong); }
.btn-text { padding: 0 8px; }
.btn:disabled { cursor: default; opacity: .6; }

/* header */
.top { display: grid; grid-template-columns: 200px 1fr 200px 264px; height: 64px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg); z-index: 50; }
.top > * { display: flex; align-items: center; }
.logo-cell { padding: 0 24px; border-right: 1px solid var(--line); }
.logo-cell img { height: 32px; width: auto; display: block; }
.top nav { padding: 0 8px; }
.top nav a { display: flex; align-items: center; height: 64px; padding: 0 16px; }
.top nav a:hover, .top nav a.on { color: var(--accent-text); }
.clock { flex-direction: column; align-items: flex-start !important; justify-content: center; padding: 0 24px; border-left: 1px solid var(--line); }
.clock .t { color: var(--accent-text); display: flex; gap: 8px; align-items: center; }
.cta-cell .btn { width: 100%; height: 64px; }

/* corpo com trilho */
.page { width: 100%; }
.shell { display: grid; grid-template-columns: 48px minmax(0, 1fr); }
main { min-width: 0; }
.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 40px; padding: 32px 0; }
section { border-bottom: 1px solid var(--line); }
.sec-head { padding: 32px 40px 0; }

/* selos */
.live { display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; background: var(--accent); color: var(--on-accent); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--on-accent); animation: blink 1s steps(2, jump-none) infinite; }
.badge { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--tier-promessa); color: var(--tier-promessa); flex: none; }
.badge.destaque { background: var(--tier-destaque); border-color: var(--tier-destaque); color: var(--bg); }
.badge.lenda { background: var(--tier-lenda); border-color: var(--tier-lenda); color: var(--on-accent); }

/* hero */
.hero-top { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; padding: 64px 40px 40px; align-items: end; }
.hero-l { display: flex; flex-direction: column; gap: 32px; }
.hero-r { display: flex; flex-direction: column; gap: 24px; padding-bottom: 8px; }
.hero-r .actions { display: flex; gap: 24px; align-items: center; margin-top: 8px; flex-wrap: wrap; }

/* carrossel curvo */
.lcar { position: relative; height: 336px; overflow: hidden; perspective: 1200px; cursor: grab; touch-action: pan-y; user-select: none; border-top: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent 0 4%, rgba(0,0,0,.25) 4% 8%, rgba(0,0,0,.5) 8% 12%, rgba(0,0,0,.75) 12% 16%, #000 16% 84%, rgba(0,0,0,.75) 84% 88%, rgba(0,0,0,.5) 88% 92%, rgba(0,0,0,.25) 92% 96%, transparent 96%);
          mask-image: linear-gradient(90deg, transparent 0 4%, rgba(0,0,0,.25) 4% 8%, rgba(0,0,0,.5) 8% 12%, rgba(0,0,0,.75) 12% 16%, #000 16% 84%, rgba(0,0,0,.75) 84% 88%, rgba(0,0,0,.5) 88% 92%, rgba(0,0,0,.25) 92% 96%, transparent 96%); }
.lcar.is-drag { cursor: grabbing; }
.lcar .stage { position: absolute; inset: 0; transform-style: preserve-3d; }
.cc { position: absolute; left: 50%; top: 50%; width: 384px; height: 216px; margin: -108px 0 0 -192px; transform-style: preserve-3d; will-change: transform; }
.cc .inner { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: transform 120ms steps(2, end), border-color 120ms steps(2, end); }
.cc:hover .inner { transform: scale(1.04); border-color: var(--line-strong); }
.cc img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.cc .live { position: absolute; top: 16px; left: 16px; }
.cc .live i { animation: none; }
.cc .who { position: absolute; right: 16px; bottom: 16px; height: 24px; display: inline-flex; align-items: center; padding: 0 8px; background: var(--bg); border: 1px solid var(--line); max-width: calc(100% - 32px); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cc .rec { position: absolute; top: 16px; right: 16px; opacity: 0; display: inline-flex; align-items: center; gap: 8px; height: 24px; padding: 0 8px; background: var(--bg); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.cc .rec .pingo { background: var(--accent); animation: blink 1s steps(2, jump-none) infinite; }
.cc .play { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--surface-raised); opacity: 0; }
.cc .play b { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); }
.cc.is-center .inner { border-color: var(--focus); }
.cc.is-center .live i { animation: blink 1s steps(2, jump-none) infinite; }
.cc.is-center .rec, .cc.is-center .play { opacity: 1; }
.cc.is-center .play b { animation: playbar 8s linear infinite; }
@keyframes playbar { to { width: 100%; } }
.visor { position: absolute; left: 50%; top: 50%; width: 432px; height: 264px; margin: -132px 0 0 -216px; pointer-events: none; z-index: 2000; }
.visor .c { position: absolute; width: 16px; height: 16px; border: 0 solid var(--focus); }
.visor .tl { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.visor .tr { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.visor .bl { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.visor .br { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.lcar-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-muted); }
.lcar-empty[hidden] { display: none; }
.lcar-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 24px 40px; border-top: 1px solid var(--line); }
.lcar-now { display: flex; align-items: center; gap: 16px; min-width: 0; }
.lcar-now .nm { font-family: var(--font-display); font-weight: 700; font-size: 24px; line-height: 32px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lcar-now .nm.swap { animation: lc-swap 160ms steps(4, end); }
@keyframes lc-swap { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.lcar-dots { display: flex; gap: 8px; }
.lcar-dots button { width: 8px; height: 8px; padding: 0; border: 0; background: var(--line-strong); cursor: pointer; }
.lcar-dots button.on { background: var(--accent); width: 24px; }
.lcar-nav { display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.sqbtn { width: 48px; height: 48px; display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer; padding: 0; }
.sqbtn:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sqbtn svg { width: 16px; height: 16px; } .sqbtn path { stroke: currentColor; stroke-width: 1.5; fill: none; stroke-linecap: square; }

/* como funciona */
.cols4 { display: grid; grid-template-columns: repeat(4, 1fr); padding: 32px 0 48px; }
.cell { position: relative; padding: 0 40px; display: grid; grid-template-columns: 48px 1fr; column-gap: 24px; }
.cell + .cell { border-left: 1px solid var(--line); }
.cell svg.ic { width: 48px; height: 48px; }
.ic * { stroke: var(--text-muted); stroke-width: 1; fill: none; }
.cell h4 { margin: 0 0 8px; color: var(--accent-text); }

/* catálogo */
.bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding: 32px 40px 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chips { display: flex; border: 1px solid var(--line-strong); }
.chips button { height: 40px; padding: 0 16px; background: none; border: 0; color: var(--text-muted); cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
.chips button + button { border-left: 1px solid var(--line); }
.chips button.on { background: var(--accent); color: var(--on-accent); }
select { height: 40px; padding: 0 16px; background: var(--bg); color: var(--text); border: 1px solid var(--line-strong); font: inherit; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.tierhint { padding: 16px 40px 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 40px 48px; }
.empty { padding: 0 40px 48px; }
.empty a { color: var(--accent-text); text-decoration: underline; }

/* LiveCard */
.card { min-width: 0; border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color 120ms steps(2, end); animation: reveal 200ms steps(4, end) both; }
.card:hover, .card:focus-within { border-color: var(--focus); }
@keyframes reveal { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; cursor: pointer; display: block; width: 100%; padding: 0; border-top: 0; border-left: 0; border-right: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .live { position: absolute; top: 16px; left: 16px; }
.thumb .data { position: absolute; right: 16px; bottom: 16px; height: 24px; display: inline-flex; align-items: center; gap: 8px; padding: 0 8px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-variant-numeric: tabular-nums; }
.thumb .scan { display: none; }
.card .body { padding: 16px 24px 24px; display: flex; flex-direction: column; gap: 8px; }
.card .ch { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ttl { height: 48px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 8px; }
.card .acts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.card .acts > * { height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; background: none; border: 0; color: var(--text); cursor: pointer; }
.card .acts > * + * { border-left: 1px solid var(--line); }
.card .acts .vote { color: var(--text-muted); cursor: default; }
.card .acts a:hover { background: var(--accent); color: var(--on-accent); }
.card .acts a .arrow { transition: transform 120ms steps(2, end); }
.card .acts a:hover .arrow { transform: translateY(-4px); }
.sk { height: 16px; background: var(--surface); }

/* passe de voto */
.pass { display: grid; grid-template-columns: 1fr auto 240px; }
.pass > * { padding: 48px 40px; }
.pass-l { display: flex; flex-direction: column; gap: 24px; }
.slots { display: grid; grid-template-columns: repeat(3, 144px); gap: 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); align-content: center; }
.slot { display: flex; flex-direction: column; gap: 8px; }
.slot .sq { width: 144px; height: 144px; border: 1px solid var(--line-strong); margin-bottom: 8px; }
.pass-r { display: grid; gap: 16px; align-content: center; }
.kv { display: flex; justify-content: space-between; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.kv .v { color: var(--text); font-variant-numeric: tabular-nums; }

/* lista de aviso */
.news { display: grid; grid-template-columns: 1fr 640px; align-items: start; padding: 32px 40px; gap: 40px; }
.news form { display: flex; flex-direction: column; gap: 8px; }
.field { display: flex; }
.field input, .news input { flex: 1; min-width: 0; height: 48px; background: transparent; border: 1px solid var(--line-strong); color: var(--text); padding: 0 16px; font: inherit; font-size: 14px; letter-spacing: .04em; }
.field input { border-right: 0; }
.news input::placeholder { color: var(--text-muted); text-transform: uppercase; }
.ok { border: 1px solid var(--accent); background: var(--lime-a16); min-height: 40px; display: flex; align-items: center; padding: 0 16px; color: var(--accent-text); }
.ok[hidden] { display: none; }

/* rodapé */
footer { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; padding: 48px 40px; gap: 40px; border-bottom: 1px solid var(--line); }
footer ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
footer li { font-size: 14px; line-height: 24px; color: var(--text-muted); }
footer li a:hover { color: var(--accent-text); }
.legal { padding: 24px 40px 32px; max-width: 880px; }
.ticker { display: flex; height: 32px; background: var(--accent); color: var(--on-accent); overflow: hidden; position: sticky; bottom: 0; z-index: 40; }
.ticker .tag { flex: none; display: flex; align-items: center; gap: 8px; padding: 0 16px; background: #000; color: var(--accent); z-index: 1; }
.ticker .tag .pingo { background: var(--accent); }
.ticker .run { display: flex; white-space: nowrap; animation: run 60s linear infinite; }
.ticker .run span { display: flex; align-items: center; gap: 8px; padding: 0 24px 0 0; }
.ticker .run i { width: 8px; height: 8px; background: var(--on-accent); display: inline-block; }
@keyframes run { to { transform: translateX(-50%); } }

/* modal do player */
.modal { position: fixed; inset: 0; background: #000E; display: grid; place-items: center; padding: 24px; z-index: 100; }
.modal[hidden] { display: none; }
.modal-box { width: min(960px, 100%); border: 1px solid var(--line-strong); background: var(--bg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 8px 8px 8px 24px; border-bottom: 1px solid var(--line); }
.player { aspect-ratio: 16 / 9; }
.player iframe { width: 100%; height: 100%; border: 0; display: block; }
.modal-info { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 24px; }

/* páginas de texto */
.doc { max-width: 800px; padding: 64px 40px 80px; }
.doc h1 { margin-bottom: 24px; }
.doc h2 { margin: 48px 0 16px; }
.doc p, .doc li { color: var(--text-muted); margin-bottom: 8px; }
.doc ul { padding-left: 24px; }
.doc a { color: var(--accent-text); text-decoration: underline; }
.doc strong { color: var(--text); }

/* responsivo */
@media (min-width: 1600px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols4 { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .cell:nth-child(3) { border-left: 0; }
  .pass { grid-template-columns: 1fr; }
  .slots { border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); }
  .slot .sq { width: 100%; height: auto; aspect-ratio: 1; }
  .news { grid-template-columns: 1fr; }
  .top { grid-template-columns: 160px 1fr 200px; }
  .cta-cell { display: none !important; }
}
@media (max-width: 760px) {
  .d-xl { font-size: 64px; line-height: 64px; letter-spacing: -0.02em; }
  .top { grid-template-columns: 1fr auto; }
  .top nav { display: none !important; }
  .logo-cell { border-right: 0; }
  .shell { grid-template-columns: 1fr; }
  .rail { display: none; }
  .hero-top { grid-template-columns: 1fr; padding: 48px 24px 32px; gap: 32px; }
  .sec-head, .bar, .tierhint { padding-left: 24px; padding-right: 24px; }
  .grid { grid-template-columns: minmax(0, 1fr); padding: 24px 24px 48px; }
  .empty { padding: 0 24px 48px; }
  .cols4 { grid-template-columns: 1fr; }
  .cell { padding: 0 24px; } .cell + .cell { border-left: 0; }
  .pass > * { padding: 32px 24px; } .slots { gap: 16px; }
  .news { padding: 32px 24px; }
  footer { grid-template-columns: 1fr 1fr; padding: 32px 24px; }
  .legal { padding: 24px; }
  .lcar { height: 264px; }
  .cc { width: 288px; height: 162px; margin: -81px 0 0 -144px; }
  .visor { width: 320px; height: 192px; margin: -96px 0 0 -160px; }
  .lcar-bar { grid-template-columns: 1fr; padding: 16px 24px; }
  .lcar-dots, .lcar-nav .count { display: none; }
  .lcar-nav { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
