/* GamesTudo — flat, editorial game portal. One accent colour (set in the backoffice), no glows, no gradients. */
:root {
  --accent: #ff5a1f;
  --on-accent: #140b06;
  --bg: #0e0e10; --surface: #151518; --surface-2: #1c1c21; --line: #2b2b32; --line-2: #3a3a43;
  --text: #ecebe6; --muted: #92919a;
  --ok: #5ccf8e; --warn: #e8b64a; --err: #f06a6a;
  --r: 3px; --max: 1280px;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --head: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--on-accent); }
img { max-width: 100%; display: block; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--head); font-weight: 700; text-transform: var(--tt, uppercase); letter-spacing: .02em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); } h2 { font-size: 1.55rem; } h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--accent); color: var(--on-accent); padding: 8px 12px; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.125em; flex: none; }

/* ---------- Buttons & forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .6rem 1.05rem; border: 1px solid var(--line-2); border-radius: var(--r); background: transparent; color: var(--text); font: 700 .95rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .06em; cursor: pointer; transition: border-color .12s, background .12s, color .12s; text-decoration: none !important; }
.btn:hover { border-color: var(--text); color: var(--text); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-lg { padding: .95rem 1.5rem; font-size: 1.15rem; }
.btn-sm { padding: .42rem .7rem; font-size: .8rem; }
.btn-danger { color: var(--err); border-color: #5a2a2a; } .btn-danger:hover { background: #2a1414; border-color: var(--err); color: var(--err); }
.btn[disabled] { opacity: .5; cursor: wait; }
input, select, textarea { width: 100%; background: var(--surface); color: var(--text); border: 1px solid var(--line-2); border-radius: var(--r); padding: .62rem .75rem; font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--accent); }
input[type=color] { padding: 2px; height: 42px; }
textarea { resize: vertical; min-height: 90px; }
label { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .3rem; }
.field { margin-bottom: 1rem; } .field .help { color: var(--muted); font-size: .8rem; margin-top: .25rem; }
.field-error, .err { color: var(--err); font-size: .85rem; margin-top: .25rem; }
.check { display: flex; gap: .6rem; align-items: center; } .check label { margin: 0; font-weight: 500; }
.row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.alert { padding: .75rem 1rem; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--surface); margin: 0 0 1rem; font-size: .95rem; }
.alert-ok { border-left-color: var(--ok); } .alert-err { border-left-color: var(--err); } .alert-info { border-left-color: var(--accent); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 1.6rem; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font: 700 1.9rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .03em; color: var(--text); white-space: nowrap; }
.brand::before { content: ''; width: 10px; height: 26px; background: var(--accent); }
.brand img { height: 34px; width: auto; } .brand:has(img)::before { display: none; }
.brand:hover { color: var(--text); }
.nav { display: flex; gap: 1.3rem; align-self: stretch; }
.nav a { display: flex; align-items: center; font: 600 1.02rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .07em; color: var(--muted); border-bottom: 3px solid transparent; padding-top: 3px; }
.nav a:hover, .nav a.on { color: var(--text); } .nav a.on { border-bottom-color: var(--accent); }
.search { margin-left: auto; position: relative; width: min(300px, 100%); }
.search input { padding-left: 2.2rem; height: 38px; background: var(--surface); }
.search .ico { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.menu-toggle { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .bar { flex-wrap: wrap; height: auto; padding-top: 10px; gap: .8rem; }
  .nav { display: none; width: 100%; flex-direction: column; gap: 0; order: 4; align-self: auto; }
  .nav.open { display: flex; } .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line); }
  .search { order: 3; width: 100%; margin: 0 0 10px; }
}

/* ---------- Hero (flat, left aligned) ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin: 26px 0 8px; border: 1px solid var(--line); background: var(--surface); }
.hero.no-img { grid-template-columns: 1fr; }
.hero-body { padding: clamp(22px, 4vw, 44px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero-body h1 { margin-bottom: .35em; } .hero-body p { color: var(--muted); max-width: 46ch; font-size: 1.05rem; }
.hero img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero img { order: -1; max-height: 220px; } }

/* ---------- Sections ---------- */
.section { margin: 40px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.section-head h2 { margin: 0; padding-left: 12px; border-left: 5px solid var(--accent); line-height: 1; }
.section-head a { font: 600 .85rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .1em; color: var(--muted); }
.section-head a:hover { color: var(--accent); }

/* Cards: poster + text, no box */
.grid { display: grid; gap: 22px 18px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.card { display: block; color: var(--text); text-decoration: none !important; }
.card .thumb { aspect-ratio: 4 / 5; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; position: relative; transition: border-color .12s; }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card:hover .thumb { border-color: var(--accent); } .card:hover h3 { color: var(--accent); }
.card .ph { display: grid; place-items: center; height: 100%; color: var(--line-2); font: 700 3rem var(--head); }
.card .flag { position: absolute; left: 0; top: 10px; background: var(--accent); color: var(--on-accent); font: 700 .72rem/1 var(--head); letter-spacing: .1em; text-transform: var(--tt, uppercase); padding: 4px 8px 3px; }
.card h3 { margin: 10px 0 2px; font-size: 1.22rem; text-transform: none; letter-spacing: 0; font-family: var(--body); font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .plat { color: var(--muted); font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .src, .rank .src { color: var(--muted); font-size: .74rem; font-style: italic; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.card .meta { display: flex; gap: 12px; color: var(--muted); font-size: .78rem; margin-top: 4px; } .card .meta span { display: inline-flex; align-items: center; gap: 4px; }

/* Featured mosaic */
.mosaic { display: grid; gap: 14px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: clamp(380px, 46vw, 560px); }
.tile { position: relative; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); display: block; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.tile:hover { border-color: var(--accent); } .tile:hover img { transform: scale(1.03); }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 14px 12px; background: linear-gradient(transparent, rgba(0,0,0,.88)); color: #fff; }
.tile .cap b { display: block; font: 700 1.25rem/1.1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .02em; }
.tile .cap span { font-size: .8rem; color: #cfcfd4; }
.tile.lead { grid-row: 1 / 3; } .tile.lead .cap b { font-size: clamp(1.8rem, 3.4vw, 2.8rem); } .tile.lead .cap { padding: 80px 20px 18px; }
.tile .flag { position: absolute; left: 0; top: 12px; z-index: 1; background: var(--accent); color: var(--on-accent); font: 700 .72rem/1 var(--head); letter-spacing: .1em; text-transform: var(--tt, uppercase); padding: 4px 8px 3px; }
@media (max-width: 860px) { .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; } .tile { aspect-ratio: 4 / 3; } .tile.lead { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16 / 9; } }

/* Ranked lists */
.rank { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; counter-reset: r; }
@media (max-width: 760px) { .rank { columns: 1; } }
.rank li { break-inside: avoid; counter-increment: r; border-bottom: 1px solid var(--line); }
.rank a { display: grid; grid-template-columns: 38px 56px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; }
.rank a::before { content: counter(r, decimal-leading-zero); font: 700 1.6rem/1 var(--head); color: var(--line-2); }
.rank li:nth-child(-n+3) a::before { color: var(--accent); }
.rank img, .rank .ph { width: 56px; height: 70px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); }
.rank .ph { display: grid; place-items: center; color: var(--line-2); font: 700 1.2rem var(--head); }
.rank b { display: block; font-weight: 600; line-height: 1.25; } .rank small { color: var(--muted); }
.rank .n { font: 700 1.1rem/1 var(--head); color: var(--muted); display: inline-flex; gap: 5px; align-items: center; }

/* Platform / category tabs */
.tabs-row { display: flex; flex-wrap: wrap; gap: 10px; }
.tab { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px 8px; background: var(--surface); border: 1px solid var(--line); border-bottom: 3px solid var(--c, var(--accent)); font: 700 1.15rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .04em; }
.tab small { font: 500 .8rem var(--body); color: var(--muted); text-transform: none; letter-spacing: 0; }
.tab:hover { background: var(--surface-2); color: var(--text); }
.empty { text-align: center; padding: 50px 20px; border: 1px dashed var(--line-2); color: var(--muted); }

/* ---------- Catalog ---------- */
.filters { display: grid; gap: 12px; grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; background: var(--surface); padding: 14px; border: 1px solid var(--line); margin: 18px 0; }
@media (max-width: 860px) { .filters { grid-template-columns: 1fr 1fr; } .filters > :first-child { grid-column: 1 / -1; } }
.crumbs { font-size: .84rem; color: var(--muted); margin: 20px 0 0; } .crumbs a { color: var(--muted); } .crumbs a:hover { color: var(--accent); } .crumbs span { margin: 0 .45rem; color: var(--line-2); }
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 34px 0; list-style: none; padding: 0; }
.pagination a, .pagination span { display: block; min-width: 40px; text-align: center; padding: .5rem .7rem; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--text); font: 700 1rem var(--head); }
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .active span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); } .pagination .disabled span { opacity: .35; }

/* ---------- Game page ---------- */
.gd { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 36px; margin-top: 18px; }
@media (max-width: 800px) { .gd { grid-template-columns: 1fr; } .gd .poster { max-width: 320px; } }
.poster { border: 1px solid var(--line); background: var(--surface-2); aspect-ratio: 4 / 5; overflow: hidden; align-self: start; }
.poster img { width: 100%; height: 100%; object-fit: cover; }
.gd h1 { margin-bottom: .25em; }
.lead-text { color: var(--muted); font-size: 1.1rem; max-width: 70ch; }
.stats { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .9rem; margin: 0 0 16px; }
.stats span { display: inline-flex; align-items: center; gap: 6px; } .stats b { color: var(--text); font-weight: 600; }
.actions-row { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0 22px; }
.like-btn[aria-pressed=true] { background: var(--text); border-color: var(--text); color: var(--bg); }
.specs { margin: 0; display: grid; grid-template-columns: 130px 1fr; border-top: 1px solid var(--line); font-size: .93rem; }
.specs dt, .specs dd { padding: 9px 0; border-bottom: 1px solid var(--line); margin: 0; } .specs dt { color: var(--muted); } .specs a { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.shots { margin-top: 36px; }
.gallery-main { aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); } .gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 6px; }
.thumbs button { flex: 0 0 120px; aspect-ratio: 16/10; padding: 0; border: 2px solid transparent; border-radius: 0; overflow: hidden; background: var(--surface-2); cursor: pointer; opacity: .65; }
.thumbs button.on, .thumbs button:hover { border-color: var(--accent); opacity: 1; } .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 74ch; font-size: 1.02rem; } .prose h2, .prose h3 { margin-top: 1.5em; font-size: 1.3rem; } .prose img { margin: 1em 0; } .prose ul, .prose ol { padding-left: 1.3rem; } .prose a { color: var(--accent); text-decoration: underline; }
.article-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; margin-top: 36px; } @media (max-width: 900px) { .article-cols { grid-template-columns: 1fr; } }
.share { display: flex; gap: 8px; flex-wrap: wrap; }
.side-box { border-top: 3px solid var(--accent); background: var(--surface); padding: 16px; } .side-box h3 { font-size: 1rem; letter-spacing: .08em; color: var(--muted); }
.comments { margin-top: 40px; }
.comment { padding: 14px 0 14px 14px; border-left: 2px solid var(--line); margin-bottom: 12px; }
.comment header { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; } .comment header strong { font-weight: 600; }
.comment p { margin: .3rem 0 .5rem; white-space: pre-wrap; word-break: break-word; }
.img-failed { visibility: hidden; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 28px 0; padding: 22px 24px; background: linear-gradient(135deg, var(--accent), var(--accent-2, #b3260a)); color: #fff; border: 0; box-shadow: 0 8px 28px rgba(0,0,0,.35); }
.promo-text strong { font-size: 1.35rem; line-height: 1.2; } .promo-text span { color: rgba(255,255,255,.9) !important; font-size: 1rem !important; }
.promo .btn-primary { background: #fff; color: #111; border-color: #fff; font-weight: 700; }
.pm { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(0,0,0,.78); } .pm[hidden] { display: none; }
.pm-box { position: relative; width: 100%; max-width: 480px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--accent); padding: 30px 26px 24px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.6); animation: pm-in .25s ease-out; }
.pm-box h2 { margin: 6px 0 10px; font-size: 1.7rem; } .pm-box p { color: var(--text); margin: 0 0 18px; line-height: 1.55; }
.pm-icon { font-size: 2.6rem; color: var(--accent); line-height: 1; }
.pm-x { position: absolute; right: 10px; top: 6px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.pm-actions { display: flex; flex-direction: column; gap: 10px; } .pm-note { margin: 12px 0 0 !important; color: var(--muted) !important; }
body.pm-open { overflow: hidden; }
@keyframes pm-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.promo-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; } .promo-text span { color: var(--muted); font-size: .92rem; }
.source-note { margin: -6px 0 18px; padding: 8px 12px; border-left: 3px solid var(--line); color: var(--muted); } .source-note a { color: var(--accent); }
.ad { margin: 24px 0; text-align: center; min-height: 20px; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%) translateY(16px); background: var(--text); color: var(--bg); padding: .65rem 1.1rem; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 80; }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Footer / consent ---------- */
.site-footer { margin-top: 70px; border-top: 1px solid var(--line); background: var(--surface); padding: 36px 0 20px; }
.foot { display: grid; gap: 28px; grid-template-columns: 2fr 1fr 1fr; } @media (max-width: 760px) { .foot { grid-template-columns: 1fr; } }
.foot h3 { font-size: .95rem; letter-spacing: .12em; color: var(--muted); } .foot ul { list-style: none; margin: 0; padding: 0; } .foot li { margin: .35rem 0; } .foot a { color: var(--text); } .foot a:hover { color: var(--accent); }
.copy { margin-top: 26px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.consent { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; background: var(--surface-2); border-top: 2px solid var(--accent); padding: 14px 20px; display: none; }
.consent.show { display: block; } .consent .inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.consent .actions { display: flex; gap: 8px; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; } @keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.err-page { padding: 80px 0; } .err-page .code { font: 700 clamp(5rem, 18vw, 9rem)/.9 var(--head); color: var(--accent); }

/* Badges (admin + status) */
.badge { display: inline-block; padding: .18rem .5rem .12rem; font: 700 .72rem/1.2 var(--head); letter-spacing: .09em; text-transform: var(--tt, uppercase); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line-2); }
.badge.published, .badge.approved { color: var(--ok); border-color: #2c5a41; } .badge.pending { color: var(--warn); border-color: #6b5517; } .badge.archived, .badge.hidden, .badge.rejected { color: var(--err); border-color: #6b2c2c; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; } @media (max-width: 900px) { .admin { grid-template-columns: 1fr; } }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; } @media (max-width: 900px) { .side { position: static; height: auto; } }
.side a { display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding: .5rem .75rem; font: 600 1.02rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .06em; margin-bottom: 2px; border-left: 3px solid transparent; } .side a:hover { color: var(--text); background: var(--surface-2); } .side a.on { color: var(--text); border-left-color: var(--accent); background: var(--surface-2); }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.2rem; } .page-head h1 { font-size: 2rem; margin: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); padding: 20px; } .panel + .panel { margin-top: 16px; }
.stat-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 14px 16px; } .stat span { color: var(--muted); font-size: .84rem; } .stat strong { display: block; font: 700 2.2rem/1.1 var(--head); }
table.t { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); } .t th, .t td { padding: .65rem .85rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; } .t th { color: var(--muted); font: 700 .78rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .1em; background: var(--surface-2); } .t tr:last-child td { border: 0; }
.table-wrap { overflow-x: auto; } .actions { display: flex; gap: 6px; flex-wrap: wrap; } .actions form { display: inline; }
.chart { display: flex; align-items: flex-end; gap: 3px; height: 180px; padding-top: 10px; } .chart .col { flex: 1; display: flex; gap: 1px; align-items: flex-end; height: 100%; min-width: 3px; } .chart i { flex: 1; background: var(--accent); } .chart i.dl { background: var(--text); }
.legend { display: flex; gap: 16px; font-size: .85rem; color: var(--muted); margin-top: 8px; } .legend b { display: inline-block; width: 10px; height: 10px; margin-right: 6px; }
.two { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 18px; border-bottom: 1px solid var(--line); } .tabs button { background: none; border: 0; color: var(--muted); padding: .7rem 1rem; font: 700 1rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .06em; cursor: pointer; border-bottom: 3px solid transparent; } .tabs button.on { color: var(--text); border-color: var(--accent); }
.tab-pane { display: none; } .tab-pane.on { display: block; }
.imgs { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } .imgs figure { margin: 0; background: var(--bg); border: 1px solid var(--line); padding: 8px; font-size: .8rem; } .imgs img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } @media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.login { max-width: 400px; margin: 12vh auto; }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.hero img { order: 2; }

/* News */
.news-list { display: grid; gap: 0 28px; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
@media (max-width: 480px) { .news-list { grid-template-columns: 1fr; } }
.news-item { display: grid; grid-template-columns: 120px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
.news-item img, .news-item .ph { width: 120px; height: 80px; object-fit: cover; border: 1px solid var(--line); background: var(--surface-2); display: grid; place-items: center; color: var(--line-2); font: 700 1.6rem var(--head); }
.news-item b { display: block; font-weight: 600; line-height: 1.25; margin: 2px 0 4px; }
.news-item:hover b { color: var(--accent); }
.news-item span span { font-size: .88rem; display: block; }

/* ---------- News layout ---------- */
.front { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; margin: 26px 0 8px; }
@media (max-width: 900px) { .front { grid-template-columns: 1fr; } }
.lead-news { aspect-ratio: 16 / 9; width: 100%; }
.lead-news.big { aspect-ratio: 21 / 9; margin-top: 18px; }
@media (max-width: 700px) { .lead-news.big { aspect-ratio: 16 / 10; } }
.lead-news .cap b { font-size: clamp(1.5rem, 3vw, 2.4rem); } .lead-news .cap > span { display: block; max-width: 70ch; margin-top: 4px; }
.front-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; margin-top: 6px; }
@media (max-width: 700px) { .front-list { grid-template-columns: 1fr; } }
.front-top .rank { columns: 1; }
.news-item { grid-template-columns: 96px 1fr; }
.news-item img, .news-item .ph { width: 96px; height: 64px; }
.ngrid { display: grid; gap: 26px 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin-top: 20px; }
.ncard { display: block; color: var(--text); }
.ncard .nimg { display: block; aspect-ratio: 16 / 9; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; transition: border-color .12s; }
.ncard .nimg img, .ncard .nimg .ph { width: 100%; height: 100%; object-fit: cover; display: grid; place-items: center; color: var(--line-2); font: 700 2.4rem var(--head); }
.ncard:hover .nimg { border-color: var(--accent); } .ncard:hover b { color: var(--accent); }
.ncard .nmeta { display: block; color: var(--muted); font-size: .78rem; margin: 9px 0 3px; text-transform: var(--tt, uppercase); letter-spacing: .05em; }
.ncard b { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font: 700 1.25rem/1.15 var(--head); text-transform: none; letter-spacing: .01em; }
.ncard .nex { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--muted); font-size: .88rem; margin-top: 5px; }
.news-hero { width: 100%; max-height: 440px; object-fit: cover; border: 1px solid var(--line); margin: 14px 0; }

.brand img { height: 36px; width: 36px; object-fit: contain; }
.brand:has(img)::before { display: none; }

/* Hero com imagem: banner de largura total com o texto por cima */
.hero.has-img { display: block; position: relative; min-height: 260px; overflow: hidden; background: #000; }
.hero.has-img img { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; object-fit: cover; order: 0; }
.hero.has-img .hero-body { position: relative; min-height: 260px; max-width: none; background: linear-gradient(90deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.45) 55%, rgba(0,0,0,.05) 100%); color: #fff; }
.hero.has-img .hero-body p { color: #e2e1e6; }
@media (max-width: 760px) { .hero.has-img img { position: absolute; max-height: none; order: 0; } .hero.has-img .hero-body { background: rgba(0,0,0,.6); } }

/* cabeçalho: o nome do site nunca encolhe; menu mais compacto em telas médias */
.brand { flex: none; }
.nav { min-width: 0; }
@media (max-width: 1250px) { .bar { gap: 1rem; } .nav { gap: .85rem; } .nav a { font-size: .9rem; letter-spacing: .04em; } .search { width: 190px; } }

/* Banner só com imagem */
.hero.hero-only { display: block; border: 0; background: none; }
.hero.hero-only a { display: block; }
.hero.hero-only img { width: 100%; height: auto; max-height: 360px; min-height: 0; object-fit: cover; order: 0; position: static; border: 1px solid var(--line); }

/* ---------- Admin: menu de relatórios e componentes ---------- */
.side-group summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; color: var(--muted); padding: .5rem .75rem; font: 600 1.02rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .06em; margin-bottom: 2px; border-left: 3px solid transparent; }
.side-group summary::-webkit-details-marker { display: none; }
.side-group summary::after { content: '▸'; font-size: .8rem; transition: transform .12s; } .side-group[open] summary::after { transform: rotate(90deg); }
.side-group summary:hover, .side-group summary.on { color: var(--text); background: var(--surface-2); } .side-group summary.on { border-left-color: var(--accent); }
.side a.sub { padding: .38rem .75rem .38rem 1.6rem; font-size: .9rem; } .side a.sub.on { border-left-color: var(--accent); }
.subnav { display: flex; gap: 2px; overflow-x: auto; border-bottom: 1px solid var(--line); margin: -4px 0 18px; scrollbar-width: thin; }
.subnav a { white-space: nowrap; color: var(--muted); padding: .6rem .85rem; font: 700 .92rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .05em; border-bottom: 3px solid transparent; } .subnav a:hover { color: var(--text); } .subnav a.on { color: var(--text); border-bottom-color: var(--accent); }
.h { font-size: 1.2rem; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .h a.small { font: 600 .8rem var(--body); text-transform: none; letter-spacing: 0; color: var(--accent); }
.stat small { display: block; font-size: .78rem; margin-top: 2px; } .stat small.up { color: var(--ok); } .stat small.down { color: var(--err); }
.bars { list-style: none; margin: 0; padding: 0; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: .45rem 0; border-bottom: 1px solid var(--line); } .bars li:last-child { border: 0; }
.bars .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bars b { font-weight: 600; white-space: nowrap; } .bars b small { font-weight: 400; }
.bars .track { grid-column: 1 / -1; height: 5px; background: var(--surface-2); } .bars .track i { display: block; height: 100%; background: var(--accent); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: .4rem 0; border-bottom: 1px solid var(--line); } .kv:last-of-type { border-bottom: 0; } .kv > :first-child { min-width: 0; overflow-wrap: anywhere; } .kv > b { text-align: right; } .kv > span:first-child { color: var(--muted); }
.chart-axis { display: flex; justify-content: space-between; font-size: .75rem; color: var(--muted); margin-top: 4px; }
.heat { display: grid; grid-template-columns: 34px repeat(24, minmax(12px, 1fr)); gap: 3px; min-width: 520px; font-size: .72rem; color: var(--muted); align-items: center; }
.heat i { display: block; aspect-ratio: 1; background: var(--accent); border-radius: 2px; } .heat .hh { text-align: left; }
.timeline .sess { border-left: 3px solid var(--accent); padding: 2px 0 2px 14px; margin: 0 0 20px; }
.timeline .sess-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 6px; }
.timeline ol { list-style: none; margin: 0; padding: 0; } .timeline li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: .3rem 0; border-bottom: 1px dashed var(--line); } .timeline li:last-child { border: 0; }
.timeline .ev { overflow-wrap: anywhere; } .timeline .ev code { margin-left: 6px; }
code { font-size: .88em; overflow-wrap: anywhere; }

/* ---------- Admin no celular: menu em gaveta, grades e tabelas compactas ---------- */
.admin-top, .side-backdrop { display: none; }
.row { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.two { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (max-width: 900px) {
  .admin-top { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); padding: 10px 14px; }
  .admin-top .brand { font-size: 1.4rem; } .admin-top .brand::before { height: 20px; width: 8px; }
  .side { position: fixed; top: 0; bottom: 0; left: 0; z-index: 60; width: min(84vw, 300px); height: 100vh; height: 100dvh; transform: translateX(-102%); transition: transform .18s ease; box-shadow: none; }
  body.nav-open { overflow: hidden; } body.nav-open .side { transform: none; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
  body.nav-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 55; }
  .side a, .side-group summary { padding-top: .65rem; padding-bottom: .65rem; }
  .filters { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 600px) {
  .main { padding: 16px 12px 48px; }
  .page-head { margin-bottom: .9rem; } .page-head h1 { font-size: 1.55rem; } .page-head .actions { width: 100%; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
  .stat { padding: 10px 12px; } .stat strong { font-size: 1.55rem; }
  .panel { padding: 14px; }
  .filters { grid-template-columns: 1fr !important; padding: 12px; } .filters > :first-child { grid-column: auto; }
  .t th, .t td { padding: .5rem .6rem; font-size: .9rem; }
  .t input:not([type=checkbox]), .t select { min-width: 150px; }
  .chart { gap: 1px; height: 140px; } .chart .col { min-width: 0; }
  .tabs button { padding: .6rem .7rem; font-size: .9rem; }
  .pagination { margin: 22px 0; } .pagination a, .pagination span { min-width: 34px; padding: .4rem .5rem; }
  .timeline li { grid-template-columns: 1fr; gap: 0; }
  .split { gap: 0; }
}

.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 780px; margin: 28px 0 0; }
.pn a { display: block; padding: 12px 14px; border: 1px solid var(--line); color: var(--text); }
.pn a:last-child { text-align: right; }
.pn a:hover { border-color: var(--accent); }
.pn small { display: block; color: var(--muted); font: 600 .75rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .1em; margin-bottom: 6px; }
.pn b { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 560px) { .pn { grid-template-columns: 1fr; } }

.news-cols { display: grid; grid-template-columns: minmax(0, 780px) minmax(260px, 340px); gap: 40px; margin-top: 18px; justify-content: space-between; align-items: start; }
.news-side { position: sticky; top: 16px; display: grid; gap: 26px; }
.news-side .section-head h2 { font-size: 1.1rem; }
.news-side .news-item { grid-template-columns: 88px 1fr; }
.news-side .news-item img, .news-side .news-item .ph { width: 88px; height: 60px; }
@media (max-width: 960px) { .news-cols { grid-template-columns: minmax(0, 1fr); } .news-side { position: static; } }

/* Retenção nas notícias: "Leia também" no meio do texto, "Continue lendo" ao fim e barra no celular. */
.inline-related { margin: 20px 0; padding: 12px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); display: grid; gap: 7px; }
.inline-related b { font: 700 .78rem var(--head); text-transform: var(--tt, uppercase); letter-spacing: .1em; color: var(--muted); }
.inline-related a { color: var(--text); font-weight: 600; line-height: 1.3; }
.inline-related a:hover { color: var(--accent); }
.continue-reading { margin-top: 28px; }
.next-bar { display: none; position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; max-width: 560px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-2, var(--line)); border-left: 3px solid var(--accent); box-shadow: 0 8px 30px rgba(0, 0, 0, .35); align-items: stretch; }
.next-bar a { flex: 1; min-width: 0; padding: 10px 12px; color: var(--text); }
.next-bar small { display: block; color: var(--accent); font: 700 .7rem/1 var(--head); text-transform: var(--tt, uppercase); letter-spacing: .1em; margin-bottom: 4px; }
.next-bar b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; line-height: 1.25; }
.next-bar button { border: 0; background: none; color: var(--muted); font-size: 1.4rem; padding: 0 14px; cursor: pointer; }
@media (max-width: 760px) { .next-bar:not([hidden]) { display: flex; } }
