/* Player completo e painel de sincronia. A janelinha flutuante (antigo mini player) mora em tv-janela.css. */
.chip { padding: 5px 10px; border-radius: 999px; background: rgb(var(--accent-rgb) / .14); color: var(--accent-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
.chip.muted { background: var(--s3); color: var(--muted); }

/* ---------- player completo ---------- */
.player {
  position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column;
  background: var(--bg); /* sem o fundo na cor da rádio em volta da TV (v74) */
  transform: translateY(100%); visibility: hidden; transition: transform .4s cubic-bezier(.2, .8, .2, 1), visibility 0s .4s;
}
.player[data-open='true'] { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2, .8, .2, 1); }

/* telas largas (a TV não ocupa a largura toda): cantos arredondados de novo */
@media (min-width: 600px) { .p-fixed { padding: max(10px, var(--safe-t)) 12px 0; background: none; } .tv { border-radius: 20px; } }
/* ---------- andar fixo: a TV (16 × 9, de ponta a ponta) e, embaixo dela, a faixa de botões. Só o feed rola. ---------- */
.p-fixed { flex: none; width: 100%; max-width: 560px; margin: 0 auto; padding: var(--safe-t) 0 0; background: var(--bg); }
.p-strip > .pill { flex: none; white-space: nowrap; } /* "Tema · Vibe" numa linha só */
/* botões embaixo da TV: finos, rentes ao texto, como os do YouTube (v75) */
.p-under > .p-strip { gap: 7px; padding: 2px 12px 10px; }
.p-under > .p-strip .pill { min-height: 34px; height: 34px; padding: 0 13px; gap: 6px; border-radius: 17px; font: 600 13px/1 var(--ui); }
.p-under > .p-strip .pill svg { width: 16px; height: 16px; }
.p-under > .p-strip .pill em { font-style: normal; font-weight: 500; color: var(--muted); }
/* título embaixo da TV: nome da rádio, a música que está tocando e o estado com frequência e lugar */
.p-title { position: relative; z-index: 2; display: grid; gap: 3px; padding: 11px 14px 6px; background: var(--bg); min-width: 0; }
/* rolando: nome e música numa linha só (toque para abrir de novo) */
.p-title.compact { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; box-shadow: 0 8px 14px -12px rgb(0 0 0 / .8); }
.p-title.compact h2 { flex: 0 1 auto; max-width: 52%; font-size: 15px; }
.p-title.compact .pt-song { flex: 1 1 0; font-size: 13px; color: var(--muted); }
.p-title.compact .pt-song::before { content: '·'; margin-right: 1px; color: var(--muted); }
/* topo da lista: a linha AO VIVO e os botões sobem com o dedo e vão sumindo dentro do título */
.p-under { padding: 0; }
.p-under > * { transform-origin: 50% 0; opacity: calc(1 - var(--up, 0) * 1.3); transform: translateY(calc(var(--up, 0) * 6px)) scale(calc(1 - var(--up, 0) * .05)); }
.p-under > .pt-meta { padding: 0 14px 8px; }
@media (prefers-reduced-motion: reduce) { .p-under > * { transform: none; } }
.p-title h2 { margin: 0; font: 700 17px/1.25 var(--ui); letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-song { display: flex; align-items: center; gap: 7px; min-width: 0; font: 600 13.5px/1.3 var(--ui); }
.pt-song[hidden] { display: none; }
.pt-song > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-eq { flex: none; display: inline-flex; align-items: flex-end; gap: 2px; width: 13px; height: 12px; }
/* as barrinhas têm a altura toda e crescem por escala (transform): animar height refazia o layout a cada quadro */
.pt-eq i { width: 3px; height: 100%; transform-origin: 50% 100%; transform: scaleY(.55); border-radius: 1px; background: var(--accent); animation: pt-eq 1s ease-in-out infinite; } /* parado (movimento reduzido): barrinhas de alturas diferentes */
.pt-eq i:nth-child(2) { transform: scaleY(1); }
.pt-eq i:nth-child(3) { transform: scaleY(.35); }
.pt-eq i:nth-child(2) { animation-delay: -.4s; }
.pt-eq i:nth-child(3) { animation-delay: -.7s; }
.player:not([data-state="playing"]):not([data-state="direct"]) .pt-eq i { animation: none; transform: scaleY(.3); }
@keyframes pt-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.pt-meta { font: 500 12px/1.35 var(--ui); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-meta b { font-weight: 700; color: var(--text); }
.pt-meta b.live { color: var(--live); }
.player[data-tvfull='true'] .p-title { display: none; }
@media (prefers-reduced-motion: reduce) { .pt-eq i { animation: none; } }
.tv { position: relative; height: var(--T, 211px); border-radius: 0; overflow: hidden; isolation: isolate; contain: layout paint; background: #140a1e; touch-action: none; user-select: none; -webkit-user-select: none; }
#p-hero { position: absolute; inset: 0; z-index: 0; }
.tv-scrim { position: absolute; inset: 0; z-index: 6; background: rgb(0 0 0 / .5); opacity: 0; transition: opacity .25s; pointer-events: none; }
.tv.show-ctrl .tv-scrim { opacity: 1; }

/* em cima: fechar, selo de estado, menu */
.tv-top { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 7; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tv-ib { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgb(0 0 0 / .46); transition: transform .1s; }
.tv-ib:active { transform: scale(.94); }
.tv-ib svg { width: 22px; height: 22px; }
.tv-chip { display: inline-flex; align-items: center; gap: 7px; min-width: 0; height: 28px; padding: 0 12px; border-radius: 14px; font: 700 11.5px/1 var(--ui); letter-spacing: .02em; color: #fff; background: rgb(0 0 0 / .34); }
.tv-chip span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player:not([data-state="playing"]):not([data-state="direct"]) .tv-chip .dot { background: var(--muted-2); box-shadow: none; animation: none; }

/* no centro exato da TV: anterior, tocar/pausar, próxima */
.tv-ctrls { position: absolute; left: 0; right: 0; top: 0; bottom: 0; z-index: 7; pointer-events: none; display: flex; align-items: center; justify-content: center; gap: 22px; transition: opacity .25s, visibility .25s; }
.tv-ctrls > * { pointer-events: auto; }
.tv-ctrls .tv-ib { width: 52px; height: 52px; }
.tv-ctrls .play { width: 64px; height: 64px; background: #fff; color: var(--brand-ink); box-shadow: 0 8px 24px rgb(0 0 0 / .4); }

/* embaixo: a régua do atraso (a fita do app) e o AO VIVO */
.tv-time { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 7; display: flex; align-items: center; gap: 10px; transition: opacity .25s, visibility .25s; }
.tv-track { position: relative; flex: 1; height: 32px; margin-right: 4px; pointer-events: none; } /* folga até o botão de tela cheia */
.tt-rail, .tt-buf { position: absolute; top: 14px; height: 4px; border-radius: 2px; }
.tt-rail { left: 0; right: 0; background: rgb(var(--ov) / .16); }
/* marquinhas a cada 30 s (a régua vai do ao vivo, na direita, até 120 s, na esquerda) */
.tv-track::before { content: ''; position: absolute; left: 0; right: 0; top: 12px; height: 8px; pointer-events: none;
  background: linear-gradient(rgb(var(--ov) / .3), rgb(var(--ov) / .3)) 25% 0 / 2px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / .3), rgb(255 255 255 / .3)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(rgb(255 255 255 / .3), rgb(255 255 255 / .3)) 75% 0 / 2px 100% no-repeat; }
.tt-buf { right: 0; width: 100%; transform: scaleX(0); transform-origin: 100% 50%; background: rgb(var(--ov) / .34); transition: transform .9s linear; } /* escala (não width): o tique de 1 s não refaz o layout */
.tt-head { position: absolute; left: 100%; top: 9px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .35); transition: left .25s linear, background-color .25s, box-shadow .25s; }
/* ao vivo: a bolinha fica na ponta direita e vermelha; atrás do ao vivo ela é branca */
.tt-head.live { background: rgb(var(--live-rgb)); box-shadow: 0 0 0 4px rgb(var(--live-rgb) / .35); }
.tt-tip { position: absolute; left: 100%; bottom: 26px; translate: -50% 0; padding: 3px 8px; border-radius: 8px; background: #fff; color: #111;
  font: 700 12px/1.25 var(--ui); font-variant-numeric: tabular-nums; white-space: nowrap; box-shadow: 0 4px 12px rgb(0 0 0 / .35);
  opacity: 0; scale: .85; transform-origin: 50% 100%; pointer-events: none; transition: opacity .18s, scale .18s, left .25s linear; }
.tt-tip.on { opacity: 1; scale: 1; }
/* dois toques com os botões escondidos: só a régua aparece por um instante, com o "−20 s" em cima da bolinha */
.tv.peek-time:not(.show-ctrl) .tv-time { opacity: 1; visibility: visible; }
.tt-me { position: absolute; left: 100%; top: 8px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: #ffd166; transition: left .25s linear; }
.tv-fs { width: 44px; height: 44px; } /* toque de 44 px de verdade (era 36) */
.tv-fs svg { width: 20px; height: 20px; }
.tv-live { position: relative; flex: none; height: 32px; padding: 0 12px; border-radius: 16px; display: inline-flex; align-items: center; gap: 6px; font: 800 11.5px/1 var(--ui); letter-spacing: .02em; white-space: nowrap; }
.tv-live::before { content: ''; position: absolute; inset: -6px -2px; } /* área de toque de 44 px */
.tv-live.is-live { background: rgb(var(--live-rgb) / .22); color: #ffd9dd; }
.tv-live.behind { background: #fff; color: var(--brand-ink); }
.tv-live.behind .dot { display: none; }

/* em todos os temas os controles somem; um toque na TV mostra por 3 s e outro toque esconde (player/tv.js) */
.tv:not(.show-ctrl) :is(.tv-ctrls, .tv-time, .p-strip) { opacity: 0; visibility: hidden; pointer-events: none; }
.tv:not(.show-ctrl) :is(.tv-chip, #btn-pmenu) { display: none; }
/* propaganda no ar + controles na tela: selo, botão Conhecer, relógio e pílula somem para não brigar com eles (v136, 25/11) */
.tv[data-mode="ad"].show-ctrl :is(.tv-ad-selo, .tv-ad-live, .tv-ad-clock, .tv-ad-cta) { opacity: 0; pointer-events: none; }
.player[data-skin="lofi"] .tv.show-ctrl .lf-logo { opacity: 0; pointer-events: none; }
.tv :is(.vb-name, .vb-marquee, .vb-logo) { transition: opacity .25s; }
.tv.show-ctrl :is(.vb-name, .vb-marquee, .vb-logo) { opacity: .25; }

/* dois toques nas pontas: o efeito aparece no lado tocado e soma a cada toque */
.tv-seek { position: absolute; top: 0; bottom: 0; width: 42%; z-index: 8; display: grid; place-items: center; pointer-events: none; opacity: 0; transition: opacity .2s; }
.tv-seek.l { left: 0; border-radius: 0 50% 50% 0 / 0 60% 60% 0; background: linear-gradient(90deg, rgb(var(--ov) / .2), transparent); }
.tv-seek.r { right: 0; border-radius: 50% 0 0 50% / 60% 0 0 60%; background: linear-gradient(270deg, rgb(var(--ov) / .2), transparent); }
.tv-seek.show { opacity: 1; }
.tv-seek > div { display: grid; justify-items: center; gap: 6px; padding: 0 8px; text-align: center; }
.tv-seek .arrows { display: flex; gap: 2px; }
.tv-seek .arrows i { width: 0; height: 0; border-top: 8px solid transparent; border-bottom: 8px solid transparent; opacity: .3; animation: tv-arr .6s 5; }
.tv-seek.l .arrows { flex-direction: row-reverse; }
.tv-seek.l .arrows i { border-right: 11px solid #fff; }
.tv-seek.r .arrows i { border-left: 11px solid #fff; }
.tv-seek .arrows i:nth-child(2) { animation-delay: .1s; }
.tv-seek .arrows i:nth-child(3) { animation-delay: .2s; }
@keyframes tv-arr { 40% { opacity: 1; } }
.tv-seek b { font: 800 18px/1 var(--ui); font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 2px 10px rgb(0 0 0 / .5); }
.tv-seek small { font: 600 11.5px/1.2 var(--ui); color: #f0eaf8; }

/* faixa de botões dentro da TV, acima da régua: aparece com os controles */
.p-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 2px; scrollbar-width: none; overscroll-behavior-x: contain; }
.p-strip::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .tv .p-strip { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); } }
.tv .p-strip { position: absolute; left: 12px; right: 12px; bottom: 56px; z-index: 7; padding: 0; transition: opacity .25s, visibility .25s; }
.tv .p-strip .pill { position: relative; flex: none; min-height: 36px; height: 36px; padding: 0 13px; gap: 7px; font: 600 12.5px/1 var(--ui); white-space: nowrap; color: #fff; background: rgb(0 0 0 / .4); border: 1px solid rgb(var(--ov) / .18); }
.tv .p-strip .pill::before { content: ''; position: absolute; inset: -4px 0; } /* área de toque de 44 px */
.tv .p-strip .pill em { font-style: normal; font-weight: 500; color: rgb(255 255 255 / .6); }
.p-strip .pill em::before { content: '· '; }
.p-strip .pill.on, .p-strip .pill[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }

/* o que rola: o feed */
.p-feed::after { content: ''; display: block; height: calc(96px + var(--safe-b)); } /* respiro para a janelinha não cobrir o fim */
.p-feed { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.p-body { width: 100%; max-width: 560px; margin: 0 auto; padding: 8px 14px calc(32px + var(--safe-b)); display: grid; gap: 16px; }
.p-body > * { min-width: 0; }

.warm { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 30px; background: rgb(7 7 10 / .72); }
.warm svg { position: absolute; width: 74%; height: 74%; transform: rotate(-90deg); }
.warm-track { fill: none; stroke: rgb(var(--ov) / .12); stroke-width: 6; }
.warm-arc { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 276.5; stroke-dashoffset: 276.5; transition: stroke-dashoffset .25s linear; }
.warm-text { display: grid; justify-items: center; }
.warm-text b { font: 700 46px/1 var(--mono); letter-spacing: -.05em; }
.warm-text small { font: 500 12px var(--mono); color: var(--muted); margin-top: 4px; }
.warm-cta { margin: -4px 0 14px; padding: 14px 16px; border-radius: var(--r-md); background: rgb(var(--accent-rgb) / .08); border: 1px solid rgb(var(--accent-rgb) / .25); font-size: 13px; color: rgb(255 255 255 / .8); }
.warm-cta p { margin: 0 0 10px; }
.warm-cta b { color: var(--accent-text); }
.warm-cta .pill { min-height: 40px; font-size: 13px; }

.live-cta { width: 100%; display: flex; align-items: center; gap: 12px; margin: 0 0 16px; padding: 14px 16px; border-radius: var(--r-md); background: linear-gradient(120deg, rgb(var(--live-rgb) / .9), rgb(var(--live-rgb) / .55)); color: #fff; text-align: left; }
.live-cta .dot { background: #fff; box-shadow: 0 0 0 4px rgb(255 255 255 / .25); }
.live-cta span { flex: 1; display: grid; min-width: 0; }
.live-cta b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-cta small { font-size: 12.5px; opacity: .85; }

/* sincronia: recolhida no modo música, aberta no futebol */
.sync { border-radius: var(--r-lg); background: rgb(16 16 21 / .9); border: 1px solid var(--line); overflow: hidden; }
.sync-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 12px; }
.sync-toggle { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 4px; }
.sync-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--s2); color: var(--accent-text); flex: none; }
.sync-title { flex: 1; min-width: 0; display: grid; }
.sync-title b { font-size: 15px; }
.sync-title small { font: 500 12px var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { color: var(--muted); transition: transform .3s; }
.sync[data-open='true'] .chev { transform: rotate(180deg); }
.sync-body { display: none; padding: 0 18px 20px; }
.sync[data-open='true'] .sync-body { display: block; }
.sync[data-open='false'] .lock { display: none; }

.lock { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--s2); font-size: 13px; font-weight: 600; touch-action: none; user-select: none; -webkit-user-select: none; flex: none; }
.lock svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.lock span { position: relative; z-index: 1; }
.lock::after { content: ''; position: absolute; inset: 0; background: rgb(var(--accent-rgb) / .4); transform: scaleX(0); transform-origin: left; }
.lock.holding::after { transform: scaleX(1); transition: transform .7s linear; }
.lock[aria-pressed='true'] { background: var(--accent); color: var(--accent-ink); }
.lock-note { margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: rgb(var(--accent-rgb) / .1); color: var(--accent-text); font-size: 12.5px; }
.sync[data-locked='true'] .dialer, .sync[data-locked='true'] .quick, .sync[data-locked='true'] .source,
.sync[data-locked='true'] .actions, .sync[data-locked='true'] .calib { pointer-events: none; opacity: .38; filter: saturate(.5); }

.note { margin: 2px 0 14px; min-height: 2.8em; font-size: 12.5px; color: var(--muted); text-align: center; }
.dialer { display: flex; align-items: center; justify-content: center; gap: 14px; }
.round.big { width: 56px; height: 56px; font: 500 30px/1 var(--mono); background: var(--s2); }
.num { display: flex; align-items: baseline; justify-content: center; gap: 4px; min-width: 0; }
.num input { width: 3.4ch; background: none; border: 0; padding: 0; text-align: center; font: 700 64px/1 var(--mono); letter-spacing: -.06em; color: var(--text); }
.num input:focus { outline: none; color: var(--accent-text); }
.num span { font: 500 22px var(--mono); color: var(--muted); }
.real { margin: 4px 0 14px; text-align: center; font: 500 12px var(--mono); color: var(--muted); min-height: 1.2em; }
.source { border: 0; padding: 0; margin: 20px 0 0; min-width: 0; }
.source legend { padding: 0; margin-bottom: 10px; font: 600 13.5px var(--ui); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.calib { margin-top: 14px; padding: 16px; border-radius: var(--r-md); background: var(--s1); border: 1px solid var(--accent); }
.calib p { margin: 0 0 14px; font-size: 14px; }
.calib-row { display: flex; align-items: center; gap: 12px; }
.pill.tap { flex: 1; min-height: 62px; font-size: 18px; background: var(--live); color: #fff; }
.player[data-direct='true'] :is(.tv-track, .dialer, .quick, #btn-calib, #btn-replay, #btn-live) { opacity: .3; pointer-events: none; }
@media (prefers-reduced-motion: reduce) { .player, .player[data-open='true'], .tv-ctrls, .tv-time, .p-strip { transition: none; } .tv-seek .arrows i { animation: none; } }
.tv-hint { position: absolute; left: 50%; top: 64px; z-index: 9; transform: translateX(-50%); padding: 7px 14px; border-radius: 16px; background: rgb(0 0 0 / .62); color: #fff; font: 600 12.5px/1 var(--ui); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .25s; }
.tv-hint.on { opacity: 1; }

/* Rádio que toca só ao vivo: a régua e o "Rever 15 s" ficam apagados e uma linha embaixo do nome explica */
#player[data-direct='true'] .tv-track, #player[data-direct='true'] #btn-replay2, #player[data-direct='true'] #btn-replay { opacity: .34; pointer-events: none; }
.pt-sa { display: flex; align-items: flex-start; gap: 7px; margin: 0; font: 500 13px/1.35 var(--ui); color: var(--muted); }
.pt-sa svg { width: 15px; height: 15px; flex: none; margin-top: 1px; }
.p-title.compact .pt-sa { display: none; }
