/* App XYZ (PWA at /app) — "Rádio XYZ Experience" (docs/radio-streaming-proprio/redesign/).
 * Tokens from the spec (contrast checked in AUDITORIA.md §6): dark premium surfaces with a
 * controlled gold; Notícias stays light editorial with the XYZ Notícias brand.
 * Spacing 4–48, radii 10–12 controls / 14–18 cards / 20–24 media, touch targets ≥ 44 px.
 * Motion: transform/opacity only, 150–400 ms, off under prefers-reduced-motion. */
@font-face { font-family: 'Inter'; src: url(/site-assets/fonts/inter-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Source Serif 4'; src: url(/site-assets/fonts/source-serif-4-latin-wght-normal.woff2) format('woff2'); font-weight: 200 900; font-display: swap; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'), local('Helvetica'); size-adjust: 107%; ascent-override: 90%; descent-override: 22.5%; }

:root {
  --xyz-bg: #080d14; --xyz-surface: #111923; --xyz-surface-raised: #192431; --xyz-border: #283443; --xyz-field: #5a6b80;
  --xyz-primary: #ffc42e; --xyz-primary-ink: #080d14; --xyz-primary-soft: rgba(255, 196, 46, .12);
  --xyz-live: #e53935; --xyz-live-strong: #d32f2f; --xyz-live-text: #ff8a80;
  --xyz-text: #f5f7fa; --xyz-muted: #94a3b8; --xyz-success: #36c78b;
  --xyz-news-bg: #fafaf7; --xyz-news-paper: #fff; --xyz-news-ink: #111827; --xyz-news-muted: #4b5563; --xyz-news-rule: #e5e2da;
  --xyz-news-green: #17683a; --xyz-news-navy: #0b3a66; --xyz-news-yellow: #fbde02;
  --flag-rule: linear-gradient(90deg, #009a1b 0 58%, var(--xyz-news-yellow) 58% 84%, #035c8d 84%);
  --sans: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --nav-h: 64px; --mini-h: 60px; --side-w: 0px; --gutter: 16px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --accent: var(--xyz-primary);
  /* Viewport units go through these: under the "desktop site" fix (html.vpz, CSS zoom set in <head>,
     public/site-head.js) 1vw/1vh would be 1% of the wide fake viewport, so they are divided by the zoom. */
  --vw: 1vw; --vh: 1vh; --top-h: 64px;
  color-scheme: dark;
}
@supports (height: 1dvh) { :root { --vh: 1dvh; } }
:root.vpz { --vw: calc(1vw / var(--vz, 1)); --vh: calc(1vh / var(--vz, 1)); }
@supports (height: 1dvh) { :root.vpz { --vh: calc(1dvh / var(--vz, 1)); } }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--xyz-bg); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; height: 100%; }
body.app { margin: 0; height: 100%; overflow: hidden; background: var(--xyz-bg); color: var(--xyz-text); font: 400 1rem/1.5 var(--sans);
  -webkit-tap-highlight-color: transparent; overscroll-behavior: none; -webkit-font-smoothing: antialiased; }
/* App chrome behaves like a native app: no text selection, callouts or double-tap zoom on controls.
   Article text, messages and form fields stay selectable. */
button, .btn, .pill, .chip, .tabbar, .mini, .topbar, .seg, .days, .player__stage, .player__controls, .sheet__head, .tile, .list-row, .row, .tv-item, .tv-card, .slide, label {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
a, button, label, input, .tabbar, .mini { touch-action: manipulation; }
img { -webkit-user-drag: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--xyz-primary); outline-offset: 2px; border-radius: 8px; }
.tab--paper :focus-visible, .reader :focus-visible { outline-color: var(--xyz-news-navy); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--xyz-primary); color: var(--xyz-primary-ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: calc(var(--safe-t) + 8px); }
time { font-variant-numeric: tabular-nums; }

/* ---------- shell: one scrolling panel per tab ---------- */
.app-main { position: fixed; inset: 0 0 0 var(--side-w); }
/* overscroll-behavior: none — no browser rubber band or pull-to-refresh; the app has its own (native.js).
   touch-action: pan-y pinch-zoom — horizontal moves are never the browser's, so the tab swipe needs no preventDefault
   (every touch listener in native.js is passive); inner sideways scrollers (.hscroll, tables) keep their own pan. */
.tab { position: absolute; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: none; touch-action: pan-y pinch-zoom; scrollbar-width: thin;
  padding: 0 var(--safe-r) calc(var(--nav-h) + var(--mini-h) + var(--safe-b) + 32px) var(--safe-l); visibility: hidden; opacity: 0;
  transition: transform .28s var(--ease); }
.tab.is-active { visibility: visible; opacity: 1; z-index: 1; }
.tab--dark { background: var(--xyz-bg); color: var(--xyz-text); scrollbar-color: var(--xyz-border) transparent; }
.tab--paper { background: var(--xyz-news-bg); color: var(--xyz-news-ink); color-scheme: light; scrollbar-color: #b9b5aa transparent; }
/* Tab change: cross-slide (the new tab comes in from the side it sits on in the bar, the old one leaves the other way). */
.enter-right { animation: enter-r .26s var(--ease) both; }
.enter-left { animation: enter-l .26s var(--ease) both; }
.leave-left, .leave-right { visibility: visible; opacity: 1; z-index: 0; pointer-events: none; }
.leave-left { animation: leave-l .26s var(--ease) both; }
.leave-right { animation: leave-r .26s var(--ease) both; }
@keyframes enter-r { from { transform: translateX(28%); opacity: 0; } }
@keyframes enter-l { from { transform: translateX(-28%); opacity: 0; } }
@keyframes leave-l { to { transform: translateX(-28%); opacity: 0; } }
@keyframes leave-r { to { transform: translateX(28%); opacity: 0; } }
/* Swipe between tabs (native.js): the neighbour follows the finger, full screen. */
.tab.is-peek { visibility: visible; opacity: 1; z-index: 2; }
.tab.is-drag { transition: none; will-change: transform; }
.tab__boot { display: grid; gap: 12px; padding: calc(var(--safe-t) + 80px) var(--gutter) 16px; }
.tab__boot noscript p { color: var(--xyz-muted); }

/* ---------- headers ---------- */
.topbar { position: sticky; top: 0; z-index: 6; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px;
  padding: calc(var(--safe-t) + 8px) var(--gutter) 8px; background: var(--xyz-bg); border-bottom: 1px solid transparent; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand__logo { width: 52px; height: auto; flex: none; }
.brand__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--xyz-primary-soft); color: var(--xyz-primary); }
.brand__text { display: grid; min-width: 0; padding-left: 12px; border-left: 1px solid var(--xyz-border); }
.brand__icon + .brand__text { padding-left: 0; border-left: 0; }
.brand__text strong { font-size: 1.125rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.2; }
.brand__text small { color: var(--xyz-muted); font-size: .8125rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { display: flex; align-items: center; gap: 4px; flex: none; }
.topbar--paper { background: var(--xyz-news-paper); color: var(--xyz-news-ink); border-bottom-color: var(--xyz-news-rule); }
.topbar--paper::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; background: var(--flag-rule); }
.brand__news { height: 40px; width: auto; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border: 1.5px solid transparent; border-radius: 12px; font-weight: 700; font-size: .9375rem;
  line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 20px; height: 20px; }
.btn--gold { background: var(--xyz-primary); color: var(--xyz-primary-ink); }
.btn--gold:hover { background: #ffd056; }
.btn--outline { background: transparent; color: var(--xyz-text); border-color: var(--xyz-primary); }
.btn--outline:hover { background: var(--xyz-primary-soft); }
.btn--ghost { background: var(--xyz-surface-raised); color: var(--xyz-text); }
.btn--navy { background: var(--xyz-news-navy); color: #fff; }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 14px; font-size: .875rem; }
.btn[disabled] { opacity: .6; cursor: default; }
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 999px; font-size: .8125rem; font-weight: 700; cursor: pointer; white-space: nowrap; }
.pill .ic { width: 16px; height: 16px; }
.pill--gold { background: var(--xyz-primary); color: var(--xyz-primary-ink); }
.pill--red { background: var(--xyz-live-strong); color: #fff; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none; border: 0; border-radius: 12px; background: transparent; color: var(--xyz-text);
  cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background-color .15s; }
.icon-btn:hover { background: var(--xyz-surface-raised); }
.icon-btn:active { transform: scale(.92); }
.icon-btn .ic { width: 22px; height: 22px; }
.icon-btn--sm { width: 40px; height: 40px; }
.icon-btn--sm .ic { width: 18px; height: 18px; }
.icon-btn--paper { color: var(--xyz-news-ink); }
.icon-btn--paper:hover { background: #efece4; }
.icon-btn--paper[aria-pressed="true"] { background: var(--xyz-news-ink); color: var(--xyz-news-yellow); }
.icon-btn--gold { background: var(--xyz-primary); color: var(--xyz-primary-ink); border-radius: 50%; }
.icon-btn[disabled] { opacity: .4; cursor: default; }
.round-btn { position: relative; display: inline-grid; place-items: center; width: 48px; height: 48px; flex: none; border: 1px solid var(--xyz-border); border-radius: 50%; background: var(--xyz-surface-raised);
  color: var(--xyz-text); cursor: pointer; transition: transform .15s var(--ease), background-color .15s, color .15s; }
.round-btn:hover { background: #22303f; }
.round-btn:active { transform: scale(.9); }
.round-btn .ic { width: 22px; height: 22px; }
.round-btn[aria-pressed="true"] { color: var(--xyz-primary); border-color: var(--xyz-primary); }
.round-btn[aria-pressed="true"] .ic { fill: currentColor; }
.round-btn[disabled] { opacity: .4; cursor: default; }
.round-btn__badge { position: absolute; top: -4px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 11px; background: var(--xyz-primary); color: var(--xyz-primary-ink);
  font-size: .6875rem; font-weight: 800; line-height: 22px; text-align: center; font-variant-numeric: tabular-nums; }
.chip-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--xyz-border); border-radius: 12px; background: var(--xyz-surface);
  font-size: .875rem; font-weight: 650; cursor: pointer; transition: transform .15s var(--ease); }
.chip-btn:active { transform: scale(.96); }
.chip-btn .ic { width: 18px; height: 18px; }
.link-btn { min-height: 44px; border: 0; background: none; color: var(--xyz-primary); font-weight: 650; cursor: pointer; padding: 8px; text-align: left; }
.tab--paper .link-btn { color: var(--xyz-news-navy); }
.spinner { display: none; width: 26px; height: 26px; border-radius: 50%; border: 3px solid rgba(8, 13, 20, .25); border-top-color: var(--xyz-primary-ink); animation: spin .8s linear infinite; }
.spinner--dark { display: block; border-color: rgba(17, 24, 39, .15); border-top-color: var(--xyz-news-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ouvir: player ---------- */
.topbar--radio { background: transparent; position: relative; height: calc(var(--top-h) + var(--safe-t)); }
/* Phone: header + player never take more than the screen above the tab bar, so the play button is always in
   view; the disc shrinks first (down to 120 px) on short phones or large system fonts, and on tall phones
   it grows up to 76% of the width (the arm stays inside) and "No ar agora" starts right below instead of leaving a gap.
   Two columns from 720 px. */
.player { position: relative; isolation: isolate; overflow-x: clip; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px var(--gutter) 16px; --lvl: 0; --bass: 0;
  max-height: max(25rem, calc(100 * var(--vh) - var(--top-h) - var(--safe-t) - var(--nav-h) - var(--safe-b))); }
.player > * { flex-shrink: 0; }
.player__stage { flex: 0 1 auto; height: min(76 * var(--vw), 340px); min-height: 120px; width: 100%; display: flex; justify-content: center; align-items: center; container-type: size;
  margin: clamp(0px, 1.2 * var(--vh), 12px) 0 clamp(8px, 1.8 * var(--vh), 20px); }
.vinyl { position: relative; width: 200px; aspect-ratio: 1; }
@supports (width: 1cqh) { .vinyl { width: min(100cqw, 100cqh); } }
.vinyl__disc { position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 31%, rgba(255, 255, 255, .06) 31.5% 32%, transparent 32.5%), repeating-radial-gradient(circle, #0b0e12 0 1.6px, #181c22 1.6px 2.8px);
  box-shadow: 0 0 0 2px rgba(255, 196, 46, .55), 0 0 0 7px rgba(255, 196, 46, .08), 0 24px 48px rgba(0, 0, 0, .55); animation: spin 8s linear infinite; animation-play-state: paused; }
[data-radio="live"] .vinyl__disc { animation-play-state: running; }
.vinyl__label { position: absolute; inset: 29%; border-radius: 50%; display: grid; place-items: center; background: var(--xyz-primary); box-shadow: inset 0 0 0 3px rgba(8, 13, 20, .18); }
.vinyl__label img { width: 76%; height: auto; }
.vinyl__arm { position: absolute; top: -4%; right: 0; width: 8%; height: 56%; transform-origin: 50% 6%; transform: rotate(-14deg); transition: transform .6s var(--ease); pointer-events: none; }
.vinyl__arm::before { content: ''; position: absolute; left: 50%; top: 0; width: 30%; height: 100%; transform: translateX(-50%); border-radius: 4px; background: linear-gradient(90deg, #7d8590, #e7eaee 50%, #7d8590); }
.vinyl__arm::after { content: ''; position: absolute; left: 50%; bottom: -6%; width: 100%; height: 18%; transform: translateX(-50%); border-radius: 4px; background: #1d232b; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); }
[data-radio="live"] .vinyl__arm, [data-radio="connecting"] .vinyl__arm, [data-radio="reconnecting"] .vinyl__arm { transform: rotate(12deg); }
.live-badge { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 5px 12px; border-radius: 999px; background: var(--xyz-live-strong); color: #fff;
  font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.live-badge i, .badge-live i, .tv-badge--live i, .ticker__label i, .slot__state--on i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.player__meta { display: grid; justify-items: center; gap: 4px; max-width: 100%; }
.player__meta.is-swap { animation: swap .32s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(6px); } }
.player__title { font-size: clamp(1.5rem, 6.6 * var(--vw), 1.875rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 100%; }
.player__artist { color: var(--xyz-primary); font-size: 1.0625rem; font-weight: 650; max-width: 100%; overflow-wrap: anywhere; }
.player__context { color: var(--xyz-muted); font-size: .9375rem; }
.player__progress { width: min(100%, 340px); margin-top: 12px; }
.player__progress .bar { display: block; height: 4px; border-radius: 4px; background: var(--xyz-border); overflow: hidden; }
.player__progress .bar i { display: block; height: 100%; background: var(--xyz-primary); transform-origin: left; transform: scaleX(var(--from, 0)); animation: grow var(--dur, 1s) linear forwards; }
@keyframes grow { from { transform: scaleX(var(--from, 0)); } to { transform: scaleX(1); } }
.player__progress .times { display: flex; justify-content: space-between; margin-top: 6px; color: var(--xyz-muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.viz { display: block; }
.player__eq { width: min(100%, 300px); margin-top: 10px; }
.viz--hero { width: 100%; height: 34px; }
.player__controls { display: flex; align-items: center; justify-content: center; gap: clamp(6px, 3.2 * var(--vw), 18px); margin-top: clamp(8px, 1.4 * var(--vh), 16px); }
.play-big { position: relative; display: grid; place-items: center; width: 76px; height: 76px; flex: none; border: 0; border-radius: 50%; background: var(--xyz-primary); color: var(--xyz-primary-ink); cursor: pointer;
  box-shadow: 0 0 0 6px rgba(255, 196, 46, .12), 0 12px 28px rgba(0, 0, 0, .45); transition: transform .15s var(--ease); }
.play-big:hover { background: #ffd056; }
.play-big:active { transform: scale(.94); }
.play-big .ic { width: 34px; height: 34px; }
.i-pause, [data-radio="live"] .i-play, [data-radio="connecting"] .i-play, [data-radio="connecting"] .i-pause,
[data-radio="reconnecting"] .i-play, [data-radio="reconnecting"] .i-pause { display: none; }
[data-radio="live"] .i-pause { display: block; }
[data-radio="connecting"] .play-big .spinner, [data-radio="reconnecting"] .play-big .spinner { display: block; }
.player__status { margin-top: 12px; min-height: 1.4em; color: var(--xyz-muted); font-size: .875rem; }
[data-radio="error"] .player__status, [data-radio="offline"] .player__status { color: var(--xyz-live-text); }
.player__listeners { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 4px 12px; border-radius: 999px; background: var(--xyz-surface); font-size: .8125rem; font-weight: 600; }
.player__listeners .ic { width: 16px; height: 16px; color: var(--xyz-primary); }

/* ---------- Ouvir: sections ---------- */
.sections { display: grid; gap: 24px; padding: 0 var(--gutter); }
.eyebrow { color: var(--xyz-primary); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.onair { display: flex; align-items: center; gap: 14px; min-height: 88px; padding: 14px 12px 14px 14px; border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border);
  text-decoration: none; transition: background-color .15s; }
.onair:hover { background: var(--xyz-surface-raised); }
.onair__mark { display: grid; place-items: center; width: 64px; height: 64px; flex: none; border-radius: 14px; border: 1.5px solid var(--xyz-primary); background: var(--xyz-surface-raised); }
.onair__mark img { width: 44px; height: auto; }
.onair__text { flex: 1; min-width: 0; display: grid; gap: 1px; }
.onair__name { font-size: 1.0625rem; font-weight: 750; letter-spacing: -.01em; line-height: 1.3; }
.onair__meta { color: var(--xyz-muted); font-size: .875rem; }
.onair__bar { display: block; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--xyz-border); overflow: hidden; }
.onair__bar i { display: block; height: 100%; background: var(--xyz-primary); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
.onair__go { color: var(--xyz-muted); }
.avatar { display: grid; place-items: center; flex: none; border-radius: 14px; overflow: hidden; background: var(--xyz-surface-raised); color: var(--xyz-primary); font-weight: 800; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 40px; height: 40px; font-size: .75rem; border-radius: 10px; }
.avatar--md { width: 56px; height: 56px; font-size: .9375rem; }
.avatar--lg { width: 64px; height: 64px; font-size: 1.125rem; }
.avatar--xl { width: 72px; height: 72px; font-size: 1.25rem; border-radius: 16px; }
.cta-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta-row .btn { min-height: 52px; padding: 0 12px; }
.block { display: grid; gap: 12px; }
.block__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.block__title { display: flex; align-items: center; gap: 10px; font-size: 1.1875rem; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.block__icon { width: 22px; height: 22px; color: var(--xyz-primary); }
.block__more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--xyz-muted); font-size: .875rem; font-weight: 650;
  text-decoration: none; cursor: pointer; white-space: nowrap; }
.block__more .ic { width: 18px; height: 18px; }
.block__more:hover { color: var(--xyz-text); }
.next-list, .top-list, .timeline, .feed, .tv-list, .tv-grid, .tv-rail, .tv-upcoming, .wall, .promos, .events, .list, .hosts, .socials, .article__tags, .menu, .favs { list-style: none; margin: 0; padding: 0; }
.next-list, .top-list { display: grid; gap: 8px; }
.next-item, .top-item { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; border-radius: 14px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.next-item__time { width: 44px; color: var(--xyz-primary); font-weight: 750; font-size: .875rem; }
.next-item__text, .top-item__text { min-width: 0; display: grid; }
.next-item strong, .top-item strong { font-size: .9375rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-item small, .top-item small { color: var(--xyz-muted); font-size: .8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-item__pos { width: 28px; flex: none; text-align: center; color: var(--xyz-primary); font-size: 1.375rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.top-list--sheet .top-item { background: var(--xyz-surface-raised); }
.empty-line { padding: 14px; border-radius: 14px; background: var(--xyz-surface); color: var(--xyz-muted); font-size: .875rem; list-style: none; }

/* ---------- mini-player + navigation ---------- */
.mini { position: fixed; z-index: 30; left: calc(var(--side-w) + var(--safe-l) + 8px); right: calc(var(--safe-r) + 8px); bottom: calc(var(--nav-h) + var(--safe-b) + 8px); height: var(--mini-h);
  display: flex; align-items: center; gap: 8px; padding: 6px; border-radius: 16px; background: var(--xyz-surface-raised); border: 1px solid var(--xyz-border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .45); transition: transform .26s var(--ease), opacity .2s; }
.hero-visible .mini, body[data-tab="tv"] .mini[data-mode="tv"], .has-reader .mini { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; visibility: hidden;
  transition: transform .26s var(--ease), opacity .2s, visibility 0s .26s; }
.mini__main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; height: 100%; padding: 0 4px 0 0; border: 0; border-radius: 12px; background: none; text-align: left; cursor: pointer; }
.mini__cover { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: repeating-radial-gradient(circle, #0b0e12 0 1.2px, #181c22 1.2px 2.2px);
  box-shadow: 0 0 0 1.5px rgba(255, 196, 46, .6); animation: spin 8s linear infinite; animation-play-state: paused; }
.mini__cover img { width: 48%; height: auto; padding: 3px; border-radius: 50%; background: var(--xyz-primary); box-sizing: content-box; }
[data-radio="live"] .mini[data-mode="radio"] .mini__cover { animation-play-state: running; }
.mini[data-mode="tv"] .mini__cover { animation: none; border-radius: 10px; background: var(--xyz-live-strong); box-shadow: none; }
.mini[data-mode="tv"] .mini__cover img { display: none; }
.mini[data-mode="tv"] .mini__cover::after { content: 'TV'; font-weight: 900; font-size: .875rem; color: #fff; }
.mini__text { min-width: 0; display: grid; }
.mini__text strong { font-size: .9375rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini__text small { color: var(--xyz-muted); font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz--mini { width: 36px; height: 24px; flex: none; }
.mini[data-mode="tv"] .viz--mini, [data-viz="none"] .viz--mini { display: none; }
.mini__btn { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; background: var(--xyz-primary); color: var(--xyz-primary-ink); cursor: pointer; transition: transform .15s var(--ease); }
.mini__btn:active { transform: scale(.9); }
.mini__btn .ic { width: 22px; height: 22px; }
.mini__btn .spinner { width: 20px; height: 20px; border-width: 2.5px; }
[data-radio="connecting"] .mini[data-mode="radio"] .mini__btn .spinner, [data-radio="reconnecting"] .mini[data-mode="radio"] .mini__btn .spinner { display: block; }
.mini[data-mode="tv"] .mini__btn .i-play { display: block; }
.mini[data-mode="tv"] .mini__btn .i-pause, .mini[data-mode="tv"] .mini__btn .spinner { display: none; }
.mini[data-mode="tv"].is-playing .mini__btn .i-pause { display: block; }
.mini[data-mode="tv"].is-playing .mini__btn .i-play { display: none; }
.mini__close { background: var(--xyz-surface); color: var(--xyz-text); width: 44px; height: 44px; }
.radio-offer { position: fixed; z-index: 31; left: calc(var(--side-w) + 16px); right: 16px; bottom: calc(var(--nav-h) + var(--mini-h) + var(--safe-b) + 20px); display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 14px; border-radius: 14px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  font-size: .875rem; color: var(--xyz-muted); transform: translateY(12px); opacity: 0; transition: transform .26s var(--ease), opacity .2s; }
.radio-offer span { display: inline-flex; align-items: center; gap: 8px; }
.radio-offer.is-visible { transform: none; opacity: 1; }
.tabbar { position: fixed; z-index: 32; left: 0; right: 0; bottom: 0; display: flex; height: calc(var(--nav-h) + var(--safe-b)); padding: 0 calc(var(--safe-r) + 4px) var(--safe-b) calc(var(--safe-l) + 4px);
  background: var(--xyz-bg); border-top: 1px solid var(--xyz-border); }
.tabbar__brand { display: none; }
/* Native tab bar: 64 px + the gesture area, 24 px icons, 12 px labels (they follow the system font size up to
   15 px, then ellipsis), an indicator pill that grows behind the active icon and a short press feedback. */
.tabbar__item { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; min-height: 48px; color: var(--xyz-muted);
  text-decoration: none; font-size: min(.75rem, 15px); font-weight: 600; line-height: 1.2; transition: color .15s; }
.tabbar__item span { max-width: 100%; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabbar__item .ic { position: relative; z-index: 1; width: 24px; height: 24px; transition: transform .15s var(--ease); }
.tabbar__item:active .ic { transform: scale(.86); }
.tabbar__item::after { content: ''; position: absolute; top: 50%; left: 50%; width: 56px; height: 30px; margin: calc(-17px - .6em) 0 0 -28px; border-radius: 15px;
  background: var(--xyz-primary-soft); box-shadow: inset 0 0 0 1px rgba(255, 196, 46, .18); opacity: 0; transform: scaleX(.4); transition: transform .28s var(--ease), opacity .2s; }
.tabbar__item[aria-current="page"] { color: var(--accent); font-weight: 750; }
.tabbar__item[aria-current="page"]::after { opacity: 1; transform: none; }
.tabbar__item:hover { color: var(--xyz-text); }
.tabbar__item[aria-current="page"]:hover { color: var(--accent); }
.tabbar__dot { position: absolute; top: 8px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--xyz-live); box-shadow: 0 0 0 2px var(--xyz-bg); }
.has-sheet .tabbar, .has-sheet .mini { pointer-events: none; }

/* ---------- sheets, toast ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .24s; }
/* --kb: height of the on-screen keyboard while a field of the sheet has focus (native.js, visualViewport):
   the sheet sits on top of the keyboard instead of under it. */
.sheet__panel { position: absolute; left: 0; right: 0; bottom: var(--kb, 0px); margin: 0 auto; width: min(100%, 560px); max-height: calc(92 * var(--vh) - var(--kb, 0px)); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px calc(var(--gutter) + 4px) calc(20px + var(--safe-b)); background: var(--xyz-surface); border: 1px solid var(--xyz-border); border-bottom: 0; border-radius: 24px 24px 0 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); transform: translateY(100%); transition: transform .28s var(--ease), bottom .2s var(--ease); }
.sheet.is-open .sheet__backdrop { opacity: 1; }
.sheet.is-open .sheet__panel { transform: none; }
.sheet__panel.is-drag, .sheet.is-drag .sheet__backdrop { transition: none; }
.steps { margin: 0 0 20px; padding-left: 1.3em; display: grid; gap: 12px; font-size: .9375rem; }
.steps strong { color: var(--xyz-primary); }
.sheet__grip { touch-action: none; display: block; width: 40px; height: 5px; margin: 4px auto 8px; border-radius: 3px; background: var(--xyz-border); }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sheet__head h2 { font-size: 1.25rem; font-weight: 750; }
.sheet__lead { color: var(--xyz-muted); font-size: .9375rem; margin-bottom: 16px; }
.req-form { display: grid; gap: 14px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--xyz-bg); border: 1px solid var(--xyz-border); }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border-radius: 10px; font-weight: 700; font-size: .875rem; color: var(--xyz-muted); cursor: pointer; transition: background-color .15s, color .15s; }
.segmented span .ic { width: 18px; height: 18px; }
.segmented input:checked + span { background: var(--xyz-primary); color: var(--xyz-primary-ink); }
.segmented input:focus-visible + span { outline: 3px solid var(--xyz-primary); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .875rem; font-weight: 650; }
.field small { color: var(--xyz-muted); font-weight: 500; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--xyz-field); border-radius: 12px; background: var(--xyz-bg); color: var(--xyz-text); font: 1rem/1.4 var(--sans); }
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--xyz-primary); box-shadow: 0 0 0 3px rgba(255, 196, 46, .3); }
.field [aria-invalid="true"] { border-color: var(--xyz-live-text); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .875rem; font-weight: 650; }
.form-msg.is-error { color: var(--xyz-live-text); }
.form-msg.is-ok { color: var(--xyz-success); }
.fine { color: var(--xyz-muted); font-size: .8125rem; text-align: center; }
.fine--left { display: flex; align-items: center; gap: 6px; text-align: left; }
.fine--left .ic { color: var(--xyz-success); width: 18px; height: 18px; }
.timer-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.timer-opt { display: grid; justify-items: center; min-height: 72px; padding: 10px 4px; border: 1px solid var(--xyz-border); border-radius: 14px; background: var(--xyz-surface-raised); cursor: pointer; transition: transform .15s var(--ease), border-color .15s; }
.timer-opt:hover { border-color: var(--xyz-primary); }
.timer-opt:active { transform: scale(.95); }
.timer-opt strong { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.timer-opt small { color: var(--xyz-muted); font-size: .75rem; }
.menu { display: grid; gap: 4px; }
.menu__row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 0 12px; border: 0; border-radius: 12px; background: none; text-align: left; text-decoration: none; font-size: 1rem; font-weight: 600; cursor: pointer; }
.menu__row:hover { background: var(--xyz-surface-raised); }
.menu__row .ic { width: 22px; height: 22px; color: var(--xyz-primary); }
.favs { display: grid; gap: 8px; }
.fav { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 12px; border-radius: 14px; background: var(--xyz-surface-raised); }
.fav__icon { color: var(--xyz-primary); display: grid; }
.fav__icon .ic { fill: currentColor; }
.fav__text { flex: 1; min-width: 0; display: grid; }
.fav__text strong { font-size: .9375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fav__text small { color: var(--xyz-muted); font-size: .8125rem; }
.ios-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ios-steps li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 16px; background: var(--xyz-surface-raised); }
.ios-steps li > span:last-child { display: grid; }
.ios-steps small { color: var(--xyz-muted); }
.ios-steps__art { display: grid; place-items: center; width: 96px; height: 64px; flex: none; border-radius: 12px; background: #f2f2f7; color: #007aff; font-size: 10px; font-weight: 600; }
.ios-steps__art--bar { display: flex; justify-content: space-around; align-items: center; }
.ios-steps__art--bar i { width: 16px; height: 4px; border-radius: 2px; background: #c7c7cc; }
.ios-steps__art--bar b .ic { width: 28px; height: 28px; }
.ios-steps__row { display: flex; align-items: center; gap: 4px; padding: 6px; border-radius: 8px; background: #fff; color: #111; line-height: 1.1; text-align: left; }
.ios-steps__row .ic { width: 18px; height: 18px; color: #111; }
.ios-steps__art--icon img { width: 44px; height: 44px; border-radius: 10px; }
.toast { position: fixed; z-index: 80; left: calc(var(--side-w) + 16px); right: 16px; bottom: calc(var(--nav-h) + var(--mini-h) + var(--safe-b) + 24px); margin: 0 auto; max-width: 480px; display: flex; align-items: center; gap: 12px;
  padding: 12px 12px 12px 16px; border-radius: 14px; background: var(--xyz-text); color: var(--xyz-bg); font-size: .9375rem; font-weight: 600; box-shadow: 0 14px 40px rgba(0, 0, 0, .45);
  transform: translateY(16px); opacity: 0; pointer-events: none; transition: transform .26s var(--ease), opacity .2s; }
.toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.toast span { flex: 1; }
.toast__action { border: 0; border-radius: 10px; min-height: 40px; padding: 0 14px; background: var(--xyz-bg); color: var(--xyz-primary); font-weight: 800; cursor: pointer; white-space: nowrap; }

/* ---------- skeletons, empty states ---------- */
.skeleton { display: block; height: 14px; border-radius: 8px; background: var(--xyz-surface-raised); animation: breathe 1.6s ease-in-out infinite; }
.tab--paper .skeleton, .reader .skeleton { background: #ebe8e0; }
.skeleton--title { height: 26px; width: 70%; }
.skeleton--block { height: 120px; border-radius: 16px; }
.skeleton--video { aspect-ratio: 16 / 9; height: auto; border-radius: 20px; }
.skeleton--cover { aspect-ratio: 16 / 9; height: auto; border-radius: 0; }
.skeleton--thumb { width: 96px; height: 72px; border-radius: 10px; flex: none; }
.skeleton--short { width: 40%; }
@keyframes breathe { 50% { opacity: .5; } }
.empty { display: grid; justify-items: center; gap: 6px; padding: 32px 20px; text-align: center; color: var(--xyz-news-muted); }
.empty .ic { width: 36px; height: 36px; color: var(--xyz-news-navy); }
.empty strong { color: var(--xyz-news-ink); font-size: 1.0625rem; }
.empty .btn { margin-top: 8px; }
.empty--dark { color: var(--xyz-muted); border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.empty--dark strong { color: var(--xyz-text); }
.empty--dark .ic { color: var(--xyz-primary); }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.empty__actions .btn { margin-top: 0; }

/* ---------- Notícias (light editorial) ---------- */
body[data-tab="noticias"] { --accent: var(--xyz-primary); }
.news-body { position: relative; padding-top: 4px; }
.news-search { position: sticky; top: 64px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 10px var(--gutter); background: var(--xyz-news-paper); border-bottom: 1px solid var(--xyz-news-rule); color: var(--xyz-news-muted); }
.news-search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #8a8577; border-radius: 12px; font: 1rem var(--sans); color: var(--xyz-news-ink); background: var(--xyz-news-bg); }
/* Pull to refresh (Notícias, TV, Agenda; native.js): a circle that comes down from under the header. */
.ptr { position: fixed; left: calc(50% + var(--side-w) / 2); top: calc(var(--safe-t) + 60px); z-index: 40; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: #fff; color: var(--xyz-news-ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .28); transform: translate(-50%, -48px); opacity: 0; transition: transform .2s var(--ease), opacity .2s; pointer-events: none; }
.ptr.is-drag { transition: none; }
.ptr.is-armed { color: var(--xyz-news-green); }
.ptr.is-loading .ic { animation: spin .8s linear infinite; }
.ticker { display: flex; align-items: stretch; min-height: 44px; margin-top: 4px; background: var(--xyz-news-ink); color: #fff; overflow: hidden; }
.ticker__label { display: flex; align-items: center; gap: 7px; flex: none; padding: 0 12px; background: var(--xyz-news-yellow); color: var(--xyz-news-ink); font-size: .75rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.ticker__label i { color: #b42318; }
.ticker__viewport { flex: 1; min-width: 0; overflow: hidden; display: flex; align-items: center; mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 24px), transparent); }
.ticker__track { display: flex; gap: 36px; width: max-content; padding-left: 16px; animation: ticker var(--ticker-dur, 40s) linear infinite; }
.ticker:hover .ticker__track, .ticker:focus-within .ticker__track, .ticker.is-paused .ticker__track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }
.ticker a { display: inline-flex; gap: 8px; align-items: baseline; color: #fff; text-decoration: none; font-size: .875rem; font-weight: 600; white-space: nowrap; }
.ticker time { color: var(--xyz-news-yellow); font-size: .75rem; font-weight: 700; }
.ticker__pause { display: grid; place-items: center; width: 44px; flex: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .16); background: var(--xyz-news-ink); color: #fff; cursor: pointer; }
.ticker__pause .ic { width: 18px; height: 18px; }
.carousel { padding-top: 16px; }
.carousel__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.carousel__track::-webkit-scrollbar, .chips::-webkit-scrollbar, .hosts::-webkit-scrollbar, .days::-webkit-scrollbar, .tv-rail::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 calc(100% - 24px); max-width: 680px; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; scroll-snap-align: start; color: #fff; text-decoration: none; background: var(--xyz-news-ink); isolation: isolate; }
.slide__media, .slide__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slide__media--art, .row__thumb--art { background: var(--xyz-news-navy); }
.slide__media--art::after, .row__thumb--art::after { content: ''; position: absolute; inset: 0; background: url(/site-assets/brand/xyz-escudo.webp) center / auto 46% no-repeat; }
.slide__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 24, 39, 0) 30%, rgba(17, 24, 39, .6) 55%, rgba(17, 24, 39, .95)); }
.slide__text { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 8px; padding: 18px; }
.slide__cat { justify-self: start; padding: 3px 9px; border-radius: 6px; background: var(--xyz-news-yellow); color: var(--xyz-news-ink); font-size: .75rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.slide__title { font: 700 clamp(1.3125rem, 5.6 * var(--vw), 1.75rem)/1.18 var(--serif); letter-spacing: -.01em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.slide__meta { display: flex; align-items: center; gap: 4px; color: #e5e7eb; font-size: .8125rem; }
.slide__meta .ic { width: 14px; height: 14px; }
.carousel__dots { display: flex; justify-content: center; gap: 2px; padding-top: 4px; }
.dot { display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; padding: 0; }
.dot::before { content: ''; width: 8px; height: 8px; border-radius: 4px; background: #b9b5aa; transition: transform .2s var(--ease), background-color .2s; }
.dot[aria-current="true"]::before { background: var(--xyz-news-ink); transform: scaleX(2.4); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--gutter) 6px; scrollbar-width: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 16px; border: 1px solid #d8d4c8; border-radius: 999px; background: #fff; color: var(--xyz-news-ink);
  font-size: .875rem; font-weight: 650; cursor: pointer; white-space: nowrap; transition: background-color .15s, color .15s, transform .15s var(--ease); }
.chip .ic { width: 16px; height: 16px; }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--xyz-primary); border-color: var(--xyz-primary); color: var(--xyz-primary-ink); }
.chips--dark { padding: 0; }
.chips--dark .chip { background: var(--xyz-surface); border-color: var(--xyz-border); color: var(--xyz-text); }
.chips--dark .chip[aria-pressed="true"] { background: var(--xyz-primary); color: var(--xyz-primary-ink); border-color: transparent; }
.feed__title { padding: 18px var(--gutter) 4px; font: 800 1.25rem/1.2 var(--sans); letter-spacing: -.02em; color: var(--xyz-news-ink); }
.feed__title::after { content: ''; display: block; width: 36px; height: 4px; margin-top: 8px; border-radius: 2px; background: var(--flag-rule); }
.row { display: grid; grid-template-columns: 1fr 96px; gap: 14px; align-items: start; padding: 16px var(--gutter); border-bottom: 1px solid var(--xyz-news-rule); color: inherit; text-decoration: none; transition: background-color .15s; }
.row:hover { background: #f3f1ea; }
.row__thumb { position: relative; order: 2; width: 96px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #ebe8e0; }
.row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.row__text { display: grid; gap: 4px; min-width: 0; }
.row__cat { color: var(--xyz-news-green); font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.row__title { font: 700 1.0625rem/1.3 var(--serif); color: var(--xyz-news-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.row__meta { display: flex; flex-wrap: wrap; gap: 2px 8px; color: var(--xyz-news-muted); font-size: .8125rem; }
.row__source::before { content: '·'; margin-right: 8px; }
.row-skel { display: flex; gap: 14px; padding: 16px var(--gutter); border-bottom: 1px solid var(--xyz-news-rule); }
.row-skel__lines { flex: 1; display: grid; gap: 8px; align-content: start; }
.feed__more { display: grid; place-items: center; padding: 20px; }

/* ---------- reader ---------- */
.reader { --r-bg: var(--xyz-news-paper); --r-ink: var(--xyz-news-ink); --r-muted: var(--xyz-news-muted); --r-rule: var(--xyz-news-rule); --r-head: var(--xyz-news-ink); --r-link: var(--xyz-news-navy); --r-cat: var(--xyz-news-green);
  --r-size: 1.125rem; position: fixed; inset: 0 0 0 var(--side-w); z-index: 50; display: flex; flex-direction: column; background: var(--r-bg); color: var(--r-ink); color-scheme: light;
  transform: translateX(100%); transition: transform .28s var(--ease); box-shadow: -12px 0 40px rgba(0, 0, 0, .18); }
.reader.is-drag { transition: none; }
/* Push / pop: the list underneath moves a little to the left while the article covers it (phones). */
.has-reader #tab-noticias { transform: translateX(-24%); }
.reader[data-theme="dark"] { --r-bg: var(--xyz-surface); --r-ink: #e5e7eb; --r-muted: var(--xyz-muted); --r-rule: var(--xyz-border); --r-head: #f5f7fa; --r-link: var(--xyz-primary); --r-cat: #7fd6a0; color-scheme: dark; }
.reader[data-size="1"] { --r-size: 1.25rem; }
.reader[data-size="2"] { --r-size: 1.4375rem; }
.reader.is-open { transform: none; }
.reader__bar { display: flex; align-items: center; gap: 2px; padding: calc(var(--safe-t) + 8px) 8px 8px; border-bottom: 1px solid var(--r-rule); background: var(--r-bg); }
.reader__brand { flex: 1; min-width: 0; display: flex; padding: 0 6px; }
.reader__brand img { height: 32px; width: auto; max-width: 100%; object-fit: contain; object-position: left; }
/* the official logo is never recoloured: in the dark reader it sits on its own light plate */
.reader[data-theme="dark"] .reader__brand img { padding: 3px 8px; border-radius: 8px; background: #fff; }
.reader[data-theme="dark"] .icon-btn--paper { color: var(--r-ink); }
.reader[data-theme="dark"] .icon-btn--paper:hover { background: var(--xyz-surface-raised); }
.reader[data-theme="dark"] .icon-btn--paper[aria-pressed="true"] { background: var(--xyz-primary); color: var(--xyz-primary-ink); }
.reader__scroll { flex: 1; overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y pinch-zoom; padding-bottom: calc(32px + var(--safe-b)); }
.reader__loading { display: grid; gap: 12px; padding-bottom: 20px; }
.reader__loading .skeleton:not(.skeleton--cover) { margin: 0 20px; }
.article { max-width: 720px; margin: 0 auto; }
.article__head { display: grid; gap: 12px; padding: 20px 20px 16px; }
.article__cat { justify-self: start; color: var(--r-cat); font-size: .8125rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; border-bottom: 3px solid var(--xyz-news-yellow); }
.article__title { font: 750 clamp(1.625rem, 7 * var(--vw), 2.25rem)/1.14 var(--serif); letter-spacing: -.015em; color: var(--r-head); }
.article__summary { font: 400 calc(var(--r-size) * 1.02)/1.5 var(--serif); color: var(--r-muted); }
.article__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--r-muted); font-size: .875rem; }
.article__meta strong { color: var(--r-ink); }
.article__cover { margin: 0 0 8px; }
.article__cover img { width: 100%; max-height: calc(56 * var(--vh)); object-fit: cover; }
.article__cover figcaption { padding: 6px 20px 0; font: .8125rem/1.4 var(--sans); color: var(--r-muted); }
.article__body { padding: 8px 20px; font: 400 var(--r-size)/1.7 var(--serif); color: var(--r-ink); overflow-wrap: anywhere; }
.article__body p { margin: 0 0 1.05em; }
.article__body h2, .article__body h3 { margin: 1.3em 0 .5em; font-family: var(--sans); font-weight: 800; color: var(--r-head); line-height: 1.25; }
.article__body a, .article__source a { color: var(--r-link); }
.article__body img, .article__body iframe { max-width: 100%; height: auto; border-radius: 12px; margin: 1em 0; }
.article__body iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.article__body blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--r-cat); color: var(--r-muted); font-style: italic; }
.article__body figure { margin: 1.2em 0; }
.article__body figcaption { font: .8125rem/1.4 var(--sans); color: var(--r-muted); margin-top: 6px; }
.article__body ul, .article__body ol { padding-left: 1.2em; }
.article__source { padding: 0 20px; color: var(--r-muted); font-size: .875rem; }
.article__source a { font-weight: 650; }
.article__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px 0; }
.article__tags li { padding: 4px 10px; border-radius: 999px; background: var(--r-rule); color: var(--r-muted); font-size: .8125rem; }
.article__portal { padding: 20px; }
.article__related { padding: 8px 0 0; border-top: 8px solid var(--r-rule); }
.article__related h2 { padding: 16px 16px 0; font-size: 1.125rem; font-weight: 800; color: var(--r-head); }
.reader[data-theme="dark"] .row { border-bottom-color: var(--r-rule); }
.reader[data-theme="dark"] .row:hover { background: var(--xyz-surface-raised); }
.reader[data-theme="dark"] .row__title { color: var(--r-head); }
.reader[data-theme="dark"] .row__cat { color: var(--r-cat); }
.reader[data-theme="dark"] .row__meta { color: var(--r-muted); }

/* ---------- TV XYZ ---------- */
.tv-body { display: grid; gap: 16px; padding-bottom: 8px; }
.seg { display: flex; gap: 4px; margin: 0 var(--gutter); border-bottom: 1px solid var(--xyz-border); }
.seg__tab { flex: 1; min-height: 44px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: none; color: var(--xyz-muted); font-weight: 700; font-size: .9375rem; cursor: pointer; transition: color .15s, border-color .15s; }
.seg__tab:hover { color: var(--xyz-text); }
.seg__tab[aria-selected="true"] { color: var(--xyz-primary); border-bottom-color: var(--xyz-primary); }
.seg__tab:focus-visible { outline: 2px solid var(--xyz-primary); outline-offset: -2px; border-radius: 8px; }
.tv-view, .tv-main, .tv-side { display: grid; gap: 20px; align-content: start; }
.tv-screen { position: relative; margin: 0 var(--gutter); aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--xyz-border), 0 20px 44px rgba(0, 0, 0, .5); }
.tv-frame, .tv-slot, .tv-slot > *, .tv-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tv-poster { position: absolute; inset: 0; z-index: 1; padding: 0; border: 0; background: #000; color: #fff; cursor: pointer; overflow: hidden; }
.tv-poster__img, .tv-poster__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tv-poster__img img { transition: transform .6s var(--ease); }
.tv-poster:hover .tv-poster__img img { transform: scale(1.03); }
.tv-poster::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .7)); }
.tv-poster__play { position: absolute; z-index: 1; left: 50%; top: 50%; display: grid; place-items: center; width: 68px; height: 68px; margin: -34px 0 0 -34px; border-radius: 50%; background: var(--xyz-primary); color: var(--xyz-primary-ink);
  box-shadow: 0 0 0 8px rgba(255, 196, 46, .2); transition: transform .15s var(--ease); }
.tv-poster:active .tv-poster__play { transform: scale(.92); }
.tv-poster__play .ic { width: 30px; height: 30px; margin-left: 3px; }
.tv-poster__label { position: absolute; z-index: 1; left: 16px; bottom: 14px; font-weight: 750; font-size: .9375rem; }
.tv-badge { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; font-size: .75rem; font-weight: 850;
  letter-spacing: .07em; text-transform: uppercase; pointer-events: none; }
.tv-badge--live { background: var(--xyz-live-strong); color: #fff; }
.tv-badge--replay { background: rgba(8, 13, 20, .85); color: var(--xyz-primary); border: 1px solid rgba(255, 196, 46, .5); }
.tv-screen.is-on .tv-badge { display: none; }
.tv-badge--inline { position: static; justify-self: start; }
.tv-fs { position: absolute; z-index: 2; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(8, 13, 20, .7); color: #fff; cursor: pointer; }
.tv-screen.is-on .tv-fs { display: none; }
.tv-screen:fullscreen { margin: 0; border-radius: 0; aspect-ratio: auto; width: 100%; height: 100%; }
.tv-theater .tv-screen { position: fixed; z-index: 70; inset: 0; margin: 0; border-radius: 0; aspect-ratio: auto; }
.tv-theater .tv-screen .tv-fs { display: grid; top: calc(var(--safe-t) + 10px); }
.tv-info { display: grid; gap: 10px; padding: 0 var(--gutter); }
.tv-title { font-size: 1.375rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; }
.tv-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--xyz-muted); font-size: .875rem; }
.tv-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.tv-meta__item .ic { width: 16px; height: 16px; color: var(--xyz-primary); }
.tv-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 4px; }
.tv-actions > .btn, .tv-actions > .pill { grid-column: 1 / -1; }
.tv-actions > .pill { justify-self: start; }
.tv-side > .block { padding: 0 var(--gutter); }
.tv-list { display: grid; gap: 8px; }
.tv-grid { display: grid; gap: 8px; padding: 0 var(--gutter); }
.tv-view > .chips { padding: 0 var(--gutter); }
.tv-item { display: grid; grid-template-columns: 132px 1fr; gap: 12px; align-items: center; width: 100%; padding: 6px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; transition: background-color .15s; }
.tv-item:hover, .tv-item[aria-current="true"] { background: var(--xyz-surface); }
.tv-item__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: var(--xyz-surface-raised); }
.tv-item__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-item__dur { position: absolute; right: 5px; bottom: 5px; padding: 1px 5px; border-radius: 4px; background: rgba(0, 0, 0, .82); font-size: .6875rem; font-weight: 700; }
.tv-item__text { display: grid; gap: 3px; min-width: 0; }
.tv-item strong { font-size: .9375rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-item small { color: var(--xyz-muted); font-size: .8125rem; }
.tv-item[aria-current="true"] small { color: var(--xyz-primary); font-weight: 700; }
.tv-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); scroll-padding: 0 var(--gutter); scrollbar-width: none; }
.tv-rail li { flex: 0 0 min(72%, 260px); scroll-snap-align: start; }
.tv-card { display: grid; gap: 6px; width: 100%; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; }
.tv-card__thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--xyz-surface-raised); }
.tv-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tv-card__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .25); }
.tv-card__bar i { display: block; height: 100%; background: var(--xyz-primary); transform-origin: left; }
.tv-card strong { font-size: .9375rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-card small { color: var(--xyz-muted); font-size: .8125rem; }
.tv-upcoming { display: grid; gap: 8px; }
.tv-up { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 8px; padding: 12px 8px 12px 14px; border-radius: 14px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.tv-up__when { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.tv-up__when strong { font-size: .8125rem; color: var(--xyz-primary); }
.tv-up__when small { color: var(--xyz-muted); font-size: .75rem; }
.tv-up__title { grid-column: 1; grid-row: 2; min-width: 0; font-size: .9375rem; font-weight: 650; line-height: 1.3; }
.tv-up > .icon-btn { grid-row: 1 / 3; }
.tv-note { display: flex; align-items: center; gap: 8px; color: var(--xyz-muted); font-size: .875rem; }
.tv-note:empty { display: none; }
.tv-note .ic { color: var(--xyz-primary); }
.tv-off { display: grid; justify-items: center; gap: 10px; margin: 0 var(--gutter); padding: 28px 20px; border-radius: 20px; text-align: center; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.tv-off h2 { font-size: 1.25rem; font-weight: 800; }
.tv-off p { color: var(--xyz-muted); max-width: 34ch; }
.tv-off .btn { margin-top: 4px; }
.tv-off__art { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--xyz-surface-raised); color: var(--xyz-primary); }
.tv-off__art .ic { width: 36px; height: 36px; }

/* ---------- Programação ---------- */
.days { display: flex; gap: 8px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter); scrollbar-width: none; }
.day { position: relative; display: grid; justify-items: center; gap: 2px; flex: none; min-width: 64px; min-height: 60px; padding: 8px 10px; border: 1px solid var(--xyz-border); border-radius: 14px;
  background: var(--xyz-surface); cursor: pointer; transition: background-color .15s, color .15s; }
.day strong { font-size: .875rem; font-weight: 750; }
.day small { color: var(--xyz-muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.day[aria-pressed="true"] { background: var(--xyz-primary); color: var(--xyz-primary-ink); border-color: var(--xyz-primary); }
.day[aria-pressed="true"] small { color: var(--xyz-primary-ink); }
.day__none { position: absolute; left: 50%; bottom: 5px; width: 10px; height: 2px; margin-left: -5px; border-radius: 1px; background: var(--xyz-muted); opacity: .6; }
.now-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--xyz-surface); border: 1.5px solid var(--xyz-primary); }
.now-card__text { flex: 1; min-width: 0; display: grid; gap: 4px; justify-items: start; }
.now-card__text strong { font-size: 1.1875rem; font-weight: 800; line-height: 1.25; }
.now-card__text small { color: var(--xyz-muted); font-size: .875rem; }
.now-card .btn { margin-top: 6px; }
.badge-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: var(--xyz-live-strong); color: #fff; font-size: .6875rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); color: var(--xyz-muted); font-size: .875rem; }
.note .ic { color: var(--xyz-primary); margin-top: 1px; }
.timeline { position: relative; display: grid; gap: 10px; }
.timeline::before { content: ''; position: absolute; left: 25px; top: 16px; bottom: 16px; width: 2px; background: var(--xyz-border); }
.slot { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; align-items: start; }
.slot__time { position: relative; z-index: 1; display: grid; justify-items: center; padding: 12px 0 6px; background: var(--xyz-bg); font-variant-numeric: tabular-nums; }
.slot__time strong { font-size: .9375rem; font-weight: 800; }
.slot__time small { color: var(--xyz-muted); font-size: .75rem; }
.slot__card { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); min-width: 0; }
.slot.is-on .slot__card { border: 1.5px solid var(--xyz-primary); background: var(--xyz-surface-raised); }
.slot.is-on .slot__time strong { color: var(--xyz-primary); }
.slot-toggle { position: relative; z-index: 1; list-style: none; display: flex; padding: 0 0 4px 62px; }
.slot.is-past .slot__card { background: transparent; }
.slot.is-past .slot__text strong, .slot.is-past .slot__time strong { color: var(--xyz-muted); }
.slot__text { flex: 1; min-width: 0; display: grid; gap: 2px; justify-items: start; }
.slot__text strong { font-size: 1rem; font-weight: 750; line-height: 1.3; }
.slot__text small { color: var(--xyz-muted); font-size: .8125rem; }
.slot__text p { color: var(--xyz-muted); font-size: .8125rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slot__state { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: .6875rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.slot__state--on { background: var(--xyz-live-strong); color: #fff; }
.slot__state--past { background: var(--xyz-surface-raised); color: var(--xyz-muted); }
.slot__state--next { background: var(--xyz-primary-soft); color: var(--xyz-primary); }
.remind { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; flex: none; min-width: 64px; min-height: 48px; padding: 4px; border: 0; border-radius: 12px; background: none;
  color: var(--xyz-muted); font-size: .6875rem; font-weight: 700; cursor: pointer; transition: transform .15s var(--ease), color .15s; }
.remind:hover { color: var(--xyz-text); }
.remind:active { transform: scale(.94); }
.remind[aria-pressed="true"] { color: var(--xyz-primary); }
.remind[aria-pressed="true"] .ic { fill: currentColor; }
.hosts { display: flex; gap: 14px; overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 6px; scrollbar-width: none; }
.host { display: grid; justify-items: center; gap: 6px; flex: none; width: 92px; text-align: center; }
.host strong { font-size: .8125rem; font-weight: 650; line-height: 1.25; }
.host__link { display: grid; place-items: center; width: 44px; height: 44px; color: var(--xyz-muted); }

/* ---------- Mais ---------- */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 4px; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 112px; padding: 14px; border: 1px solid var(--xyz-border); border-radius: 16px; background: var(--xyz-surface);
  color: inherit; text-decoration: none; text-align: left; cursor: pointer; transition: transform .15s var(--ease), background-color .15s; }
.tile:hover { background: var(--xyz-surface-raised); }
.tile:active { transform: scale(.97); }
.tile__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; border-radius: 12px; background: var(--xyz-primary-soft); color: var(--xyz-primary); }
.tile__icon .ic { width: 24px; height: 24px; }
.tile strong { font-size: .9375rem; font-weight: 750; line-height: 1.25; }
.tile small { color: var(--xyz-muted); font-size: .8125rem; line-height: 1.3; }
.list { border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); overflow: hidden; }
.list li + li { border-top: 1px solid var(--xyz-border); }
.list-row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 14px; border: 0; background: none; color: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background-color .15s; }
span.list-row { cursor: default; }
a.list-row:hover, button.list-row:hover, label.list-row:hover { background: var(--xyz-surface-raised); }
.list-row__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--xyz-primary-soft); color: var(--xyz-primary); }
.list-row__text { flex: 1; min-width: 0; display: grid; }
.list-row__text strong { font-size: .9375rem; font-weight: 650; }
.list-row__text small { color: var(--xyz-muted); font-size: .8125rem; overflow-wrap: anywhere; }
.list-row__go { color: var(--xyz-muted); width: 18px; height: 18px; }
.list-row input[role="switch"], .push-opt input { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 48px; height: 28px; margin: 0; border-radius: 999px;
  background: #3a4a5c; border: 1px solid var(--xyz-field); cursor: pointer; transition: background-color .2s; }
.list-row input[role="switch"]::after, .push-opt input::after { content: ''; position: absolute; top: 2px; left: 2px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); }
.list-row input[role="switch"]:checked, .push-opt input:checked { background: var(--xyz-primary); border-color: var(--xyz-primary); }
.list-row input[role="switch"]:checked::after, .push-opt input:checked::after { transform: translateX(20px); background: var(--xyz-primary-ink); }
.wall { display: grid; gap: 8px; }
.wall__item { display: grid; gap: 4px; padding: 12px 14px 12px 17px; border-radius: 14px; background: var(--xyz-surface); box-shadow: inset 3px 0 0 var(--xyz-primary); }
.wall__item--recado { box-shadow: inset 3px 0 0 var(--xyz-muted); }
.wall__kind { display: inline-flex; align-items: center; gap: 6px; color: var(--xyz-primary); font-size: .6875rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.wall__kind .ic { width: 15px; height: 15px; }
.wall__item p { font-size: .9375rem; }
.wall__item small { color: var(--xyz-muted); font-size: .8125rem; }
.promos, .events { display: grid; gap: 10px; }
.promo { display: grid; grid-template-columns: 84px 1fr; gap: 12px; padding: 12px; border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.promo > img, .promo__art { width: 84px; height: 84px; border-radius: 12px; object-fit: cover; }
.promo__art { display: grid; place-items: center; background: var(--xyz-primary-soft); color: var(--xyz-primary); }
.promo__art .ic { width: 34px; height: 34px; }
.promo strong { display: block; font-size: .9375rem; line-height: 1.3; }
.promo p { color: var(--xyz-muted); font-size: .8125rem; margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.promo small { display: block; color: var(--xyz-primary); font-size: .8125rem; }
.link { display: inline-block; padding: 6px 0; color: var(--xyz-primary); font-size: .875rem; font-weight: 700; }
.event { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--xyz-surface); }
.event__date { display: grid; justify-items: center; width: 52px; padding: 6px 0; border-radius: 12px; background: var(--xyz-primary); color: var(--xyz-primary-ink); line-height: 1.1; }
.event__date strong { font-size: 1.25rem; font-weight: 900; }
.event__date small { font-size: .6875rem; font-weight: 800; text-transform: uppercase; }
.event div { display: grid; min-width: 0; }
.event div small { color: var(--xyz-muted); font-size: .8125rem; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials .icon-btn { background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.install-card { display: flex; gap: 14px; padding: 14px; border-radius: 16px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
.install-card img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.install-card p { color: var(--xyz-muted); font-size: .875rem; margin: 4px 0 10px; }
.about { display: grid; gap: 10px; justify-items: start; color: var(--xyz-muted); font-size: .875rem; }
.about img { width: 72px; height: auto; }
.about strong { color: var(--xyz-text); }
.about__privacy { padding: 12px 14px; border-radius: 14px; background: var(--xyz-surface); border: 1px solid var(--xyz-border); }

/* ---------- notifications sheet (push.js) ---------- */
.push-body { display: grid; gap: 14px; }
.push-state { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--xyz-surface-raised); font-weight: 700; font-size: .9375rem; }
.push-state .ic { color: var(--xyz-primary); }
.push-text { color: var(--xyz-muted); font-size: .9375rem; }
.push-opts { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.push-opt { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 10px 14px; border-radius: 14px; background: var(--xyz-surface-raised); cursor: pointer; }
.push-opt span { display: grid; gap: 2px; }
.push-opt strong { font-size: .9375rem; font-weight: 700; }
.push-opt small { color: var(--xyz-muted); font-size: .8125rem; }
.push-fine { color: var(--xyz-muted); font-size: .8125rem; }
.push-off { background: transparent; color: var(--xyz-text); border: 1px solid var(--xyz-border); }

/* ---------- offline page ---------- */
.app--offline { overflow: auto; }
.offline { display: grid; justify-items: center; gap: 14px; min-height: 100%; place-content: center; padding: 32px 24px; text-align: center; }
.offline img { width: 120px; height: auto; }
.offline h1 { font-size: 1.625rem; font-weight: 800; }
.offline p { color: var(--xyz-muted); max-width: 34ch; }

/* ---------- small phones ---------- */
@media (max-width: 359px) {
  :root { --gutter: 14px; }
  .cta-row { grid-template-columns: 1fr; }
  .round-btn { width: 44px; height: 44px; }
  .play-big { width: 68px; height: 68px; }
  .brand__logo { width: 44px; }
  .tabbar__item { font-size: min(.6875rem, 14px); }
  .field-row { grid-template-columns: 1fr; }
  .timer-opts { grid-template-columns: repeat(2, 1fr); }
  .tv-item { grid-template-columns: 112px 1fr; }
}

/* ---------- landscape phone on the TV: the player takes the screen ---------- */
@media (orientation: landscape) and (max-height: 520px) {
  body[data-tab="tv"] .tabbar, body[data-tab="tv"] .mini, body[data-tab="tv"] #tab-tv .topbar, body[data-tab="tv"] .seg { display: none; }
  body[data-tab="tv"] #tab-tv { padding-bottom: 24px; }
  body[data-tab="tv"] .tv-screen { margin: 0 auto; height: calc(100 * var(--vh)); width: min(100%, calc(100 * var(--vh) * 16 / 9)); border-radius: 0; aspect-ratio: auto; }
}

/* ---------- wider screens ----------
   Under the "desktop site" fix (html.vpz) the page is a phone but the width media queries still see the
   fake ~980 px viewport, so every rule below is scoped to :where(html:not(.vpz)) (adds no specificity). */

/* 600 px+ (large phones in landscape, small tablets): wider gutters, lists and grids in columns */
@media (min-width: 600px) {
  :root:not(.vpz) { --gutter: 24px; }
  :where(html:not(.vpz)) .tv-grid, :where(html:not(.vpz)) .tv-list { grid-template-columns: 1fr 1fr; }
  :where(html:not(.vpz)) .tiles { grid-template-columns: repeat(3, 1fr); }
  :where(html:not(.vpz)) .slide { flex-basis: calc(100% - 64px); aspect-ratio: 16 / 9; }
}
@media (min-width: 600px) and (max-width: 719px) {
  :where(html:not(.vpz)) .next-list, :where(html:not(.vpz)) .sections > .block .top-list { grid-template-columns: 1fr 1fr; }
}

/* 720 px+: Ouvir in two columns (the player stays in view on the left), news in two columns */
@media (min-width: 720px) {
  :where(html:not(.vpz)) .news-body > .feed { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; padding: 0 var(--gutter); }
  :where(html:not(.vpz)) .news-body > .feed .row, :where(html:not(.vpz)) .news-body > .feed .row-skel { padding-left: 0; padding-right: 0; }
  :where(html:not(.vpz)) .news-body > .feed .row { grid-template-columns: 1fr 120px; }
  :where(html:not(.vpz)) .news-body > .feed .row__thumb { width: 120px; }
}
@media (min-width: 720px) and (min-height: 560px) {
  :where(html:not(.vpz)) #tab-ouvir { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; align-content: start; padding-left: calc(var(--gutter) + var(--safe-l)); padding-right: calc(var(--gutter) + var(--safe-r)); }
  :where(html:not(.vpz)) #tab-ouvir > .topbar { grid-column: 1 / -1; padding-left: 0; padding-right: 0; }
  :where(html:not(.vpz)) #tab-ouvir .player { position: sticky; top: calc(var(--top-h) + var(--safe-t) + 8px); align-self: start; max-height: none; padding: 16px 12px 24px; border-radius: 24px;
    background: var(--xyz-surface); border: 1px solid var(--xyz-border); }
  :where(html:not(.vpz)) .player__stage { flex: none; height: clamp(160px, 100 * var(--vh) - 34rem, 280px); max-height: none; }
  :where(html:not(.vpz)) .player__controls { gap: 10px; }
  :where(html:not(.vpz)) #tab-ouvir .sections { padding: 0; align-self: start; align-content: start; }
}

/* 768 px+ (tablets): centred dialogs instead of bottom sheets, the reader as a centred column */
@media (min-width: 768px) {
  :where(html:not(.vpz)) .mini { left: calc(var(--side-w) + var(--gutter)); right: var(--gutter); }
  :where(html:not(.vpz)) .sheet__panel { bottom: 50%; border-radius: 24px; border-bottom: 1px solid var(--xyz-border); transform: translateY(calc(50% + 32px)); opacity: 0; transition: transform .28s var(--ease), opacity .2s; }
  :where(html:not(.vpz)) .sheet.is-open .sheet__panel { transform: translateY(50%); opacity: 1; }
  :where(html:not(.vpz)) .sheet__grip { display: none; }
  :where(html:not(.vpz)) .reader { left: calc(var(--side-w) + max(0px, (100vw - var(--side-w) - 860px) / 2)); right: max(0px, calc((100vw - var(--side-w) - 860px) / 2)); }
  :where(html:not(.vpz)) .reader.is-open { box-shadow: 0 0 0 1px var(--r-rule), 0 0 60px rgba(0, 0, 0, .3); }
  :where(html:not(.vpz)) .has-reader #tab-noticias { transform: none; }
}

/* ---------- desktop: sidebar + mini-player anchored at the bottom ---------- */
@media (min-width: 1024px) {
  :root:not(.vpz) { --side-w: 232px; --nav-h: 0px; --mini-h: 72px; --gutter: max(32px, calc((100vw - var(--side-w) - 1040px) / 2)); }
  :where(html:not(.vpz)) .tab { padding-bottom: calc(var(--mini-h) + 40px); }
  :where(html:not(.vpz)) .tabbar { top: 0; right: auto; width: var(--side-w); height: auto; flex-direction: column; gap: 4px; padding: calc(var(--safe-t) + 20px) 12px 20px; border-top: 0; border-right: 1px solid var(--xyz-border); background: var(--xyz-bg); }
  :where(html:not(.vpz)) .tabbar__brand { display: flex; align-items: center; justify-content: center; height: 96px; margin-bottom: 16px; border-radius: 16px; }
  :where(html:not(.vpz)) .tabbar__brand img { width: 96px; height: auto; }
  :where(html:not(.vpz)) .tabbar__item { flex: none; flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 52px; padding: 0 16px; border-radius: 12px; font-size: .9375rem; font-weight: 650; }
  :where(html:not(.vpz)) .tabbar__item:hover { background: var(--xyz-surface); }
  :where(html:not(.vpz)) .tabbar__item[aria-current="page"] { background: var(--xyz-primary-soft); }
  :where(html:not(.vpz)) .tabbar__item::after { left: 0; top: 14px; bottom: 14px; width: 3px; height: auto; margin: 0; border-radius: 2px; background: var(--accent); box-shadow: none; transform: scaleY(0); }
  :where(html:not(.vpz)) .tabbar__item[aria-current="page"]::after { transform: scaleY(1); }
  :where(html:not(.vpz)) .tabbar__dot { top: 14px; left: 34px; }
  :where(html:not(.vpz)) .mini { left: var(--side-w); right: 0; bottom: 0; height: var(--mini-h); padding: 8px max(24px, calc((100vw - var(--side-w) - 1040px) / 2)); border-radius: 0; border: 0; border-top: 1px solid var(--xyz-border); box-shadow: none; }
  :where(html:not(.vpz)) .viz--mini { width: 120px; }
  :where(html:not(.vpz)) .radio-offer, :where(html:not(.vpz)) .toast { left: calc(var(--side-w) + var(--gutter)); right: var(--gutter); bottom: calc(var(--mini-h) + 16px); }
  :where(html:not(.vpz)) .topbar { padding-left: var(--gutter); padding-right: var(--gutter); }
  :where(html:not(.vpz)) .tv-screen, :where(html:not(.vpz)) .tv-off { margin: 0 var(--gutter); }
  :where(html:not(.vpz)) .tv-grid { grid-template-columns: repeat(3, 1fr); }
  :where(html:not(.vpz)) .tv-side .tv-list { grid-template-columns: 1fr; }
  :where(html:not(.vpz)) .tv-view--live { grid-template-columns: minmax(0, 1.75fr) minmax(280px, 1fr); column-gap: 32px; padding: 0 var(--gutter); }
  :where(html:not(.vpz)) .tv-view--live .tv-screen, :where(html:not(.vpz)) .tv-view--live .tv-off { margin: 0; }
  :where(html:not(.vpz)) .tv-view--live .tv-info, :where(html:not(.vpz)) .tv-side > .block { padding: 0; }
  :where(html:not(.vpz)) .tv-side .tv-item { grid-template-columns: 120px 1fr; }
  :where(html:not(.vpz)) .tv-side .tv-rail { margin: 0; padding: 0; }
  :where(html:not(.vpz)) #tab-ouvir { column-gap: 48px; }
  :where(html:not(.vpz)) #tab-ouvir .player { top: 72px; }
  :where(html:not(.vpz)) .topbar .brand__logo { display: none; }
  :where(html:not(.vpz)) .topbar .brand__logo + .brand__text { padding-left: 0; border-left: 0; }
  :where(html:not(.vpz)) .agenda { grid-template-columns: minmax(0, 1fr) 340px; column-gap: 32px; align-items: start; }
  :where(html:not(.vpz)) .agenda > .days { grid-column: 1 / -1; margin: 0; padding: 4px 0; }
  :where(html:not(.vpz)) .agenda__day { grid-column: 1; grid-row: 2 / span 3; }
  :where(html:not(.vpz)) .agenda__now, :where(html:not(.vpz)) .agenda__note, :where(html:not(.vpz)) .agenda__hosts { grid-column: 2; }
  :where(html:not(.vpz)) .agenda__now:empty { display: none; }
  :where(html:not(.vpz)) .agenda__hosts .hosts { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
  :where(html:not(.vpz)) .now-card { flex-direction: column; }
  :where(html:not(.vpz)) #tab-mais .sections { max-width: 880px; }
  :where(html:not(.vpz)) .reader { left: calc(var(--side-w) + max(0px, (100vw - var(--side-w) - 860px) / 2)); bottom: var(--mini-h); }
  :where(html:not(.vpz)) .slide { flex-basis: min(680px, 64%); }
  :where(html:not(.vpz)) .news-body > .feed { column-gap: 32px; }
  :where(html:not(.vpz)) .news-body > .feed .row { grid-template-columns: 1fr 144px; }
  :where(html:not(.vpz)) .news-body > .feed .row__thumb { width: 144px; }
  :where(html:not(.vpz)) .has-reader .mini { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .player__progress .bar i { animation-duration: var(--dur, 1s) !important; }
  .vinyl__disc, .mini__cover, .ticker__track, .skeleton { animation: none !important; }
  .ticker__viewport { overflow-x: auto; mask-image: none; }
  .ticker__pause { display: none; }
}
