/* 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: 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: 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: 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: 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: 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: 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 .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: 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: 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: 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; }
.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: 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: 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: 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: 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: 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); }
