/* WebApp da rádio. Nada aqui é compartilhado com o site.
   As cores vêm do painel: p1 pinta o fundo, p2 o texto e o realce.
   Mobile: aplicativo em tela cheia com drawer e player central.
   Desktop: menu lateral fixo, player no topo e conteúdo rolando abaixo. */
:root {
  --p1: #0e1a17;
  --p2: #e8f1ee;
  --p3: var(--p2);

  --surface:   color-mix(in srgb, var(--p2) 4%,  var(--p1));
  --surface-2: color-mix(in srgb, var(--p2) 8%,  var(--p1));
  --border:    color-mix(in srgb, var(--p2) 12%, transparent);
  --muted:     color-mix(in srgb, var(--p2) 55%, var(--p1));
  --ring:      color-mix(in srgb, var(--p3) 22%, transparent);
  --on-p3:     var(--p1);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --font: 'Red Hat Display', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --content-w: 1080px;
  --header-h: 58px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

body {
  font-family: var(--font);
  background: var(--p1);
  color: var(--p2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: var(--radius-sm); padding: 11px 16px; font-size: 14px; font-weight: 700; transition: background .15s, transform .12s; }
.btn svg { width: 16px; height: 16px; }
.btn--sm { padding: 7px 12px; font-size: 13px; }
.btn--primary { background: var(--p3); color: var(--on-p3); }
.btn--primary:hover { background: color-mix(in srgb, var(--p3) 88%, var(--p1)); }
.btn--primary:active { transform: translateY(1px); }
.btn--ghost { background: transparent; color: var(--muted); }
.btn--ghost:hover { background: var(--surface-2); color: var(--p2); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Chamada de instalação: fica no topo enquanto o app não estiver instalado */
.install-bar {
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  background: linear-gradient(180deg, color-mix(in srgb, var(--p3) 16%, var(--p1)), color-mix(in srgb, var(--p3) 7%, var(--p1)));
  border-bottom: 1px solid color-mix(in srgb, var(--p3) 26%, transparent);
}
.install-bar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--p3); opacity: .55; }
.install-bar[hidden] { display: none; }
.install-app { display: flex; align-items: center; gap: 13px; min-width: 0; }
.install-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; border: 1px solid color-mix(in srgb, var(--p3) 34%, transparent); }
.install-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.install-text strong { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.install-text span { font-size: 12.5px; color: var(--muted); }
.install-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.install-actions .btn--primary { padding: 10px 18px; font-size: 13.5px; border-radius: var(--radius-pill); }

/* Shell */
.app { width: 100%; max-width: var(--content-w); margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; }

.app-header { position: relative; min-height: var(--header-h); display: flex; align-items: center; gap: 12px; padding: 12px 14px 4px; padding-top: calc(12px + env(safe-area-inset-top)); }
.app-title { position: absolute; left: 50%; transform: translateX(-50%); max-width: 60%; font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.menu-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); background: transparent; color: var(--p2); transition: background .15s; }
.menu-btn:hover { background: var(--surface-2); }
.menu-btn svg { width: 20px; height: 20px; }
.brand { display: none; align-items: center; justify-content: center; }
.brand-logo { width: 100%; max-width: 160px; height: auto; border-radius: 7px; }
.topnav { display: none; }

/* Drawer (mobile) */
.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60;
  width: 80%; max-width: 300px;
  padding: calc(20px + env(safe-area-inset-top)) 14px 16px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--p1); border-right: 1px solid var(--border);
  transform: translateX(-100%); transition: transform .25s ease;
  overflow-y: auto;
}
body.menu-open .drawer { transform: none; }

.nav-link { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--radius-sm); font-size: 15px; font-weight: 600; color: var(--p2); transition: background .15s, color .15s; }
.nav-link svg { width: 22px; height: 22px; flex-shrink: 0; }
.nav-link:hover { background: var(--surface-2); color: var(--p2); }
.nav-link.is-active { background: var(--surface-2); color: var(--p2); }

.menu-backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.5); }
.menu-backdrop[hidden] { display: none; }

/* Layout */
.layout { flex: 1; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 28px; }

/* Player */
.player { display: flex; flex-direction: column; align-items: center; text-align: center; }
.player-art { position: relative; width: 240px; max-width: 74vw; aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-2); overflow: hidden; transition: box-shadow .4s; }
.player-mark { width: 100%; height: 100%; object-fit: cover; }

body.is-playing .player-art { animation: artPlay 2.6s ease-in-out infinite; }
@keyframes artPlay {
  0%, 100% { box-shadow: 0 0 0 1px color-mix(in srgb, var(--p3) 24%, transparent); }
  50%      { box-shadow: 0 0 0 1px color-mix(in srgb, var(--p3) 48%, transparent), 0 0 26px 3px color-mix(in srgb, var(--p3) 22%, transparent); }
}

.player-tag { display: block; margin-top: 18px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.player-meta { font-size: 19px; font-weight: 800; line-height: 1.3; margin-top: 6px; max-width: 26ch; text-wrap: balance; }

.controls { display: flex; align-items: center; justify-content: center; gap: 22px; margin-top: 20px; }
.ctrl--play { width: 60px; height: 60px; display: grid; place-items: center; border: none; border-radius: 50%; background: var(--p3); color: var(--on-p3); transition: background .15s, transform .12s; }
.ctrl--play:hover { background: color-mix(in srgb, var(--p3) 88%, var(--p1)); }
.ctrl--play:active { transform: scale(.95); }
.ctrl--play svg { width: 26px; height: 26px; }
.ctrl--play .ic-play { margin-left: 1px; }
.ic-pause { display: none; }
body.is-playing .ic-play { display: none; }
body.is-playing .ic-pause { display: block; }

.ctrl--round { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--border); border-radius: 50%; background: transparent; color: var(--p3); transition: background .15s; }
.ctrl--round:hover { background: var(--surface-2); }
.ctrl--round svg { width: 20px; height: 20px; }

/* Conteúdo */
.content { min-width: 0; transition: opacity .18s ease; }
.content.is-loading { opacity: .4; pointer-events: none; }
.page { display: flex; flex-direction: column; }
.page-title { font-size: 16px; font-weight: 700; margin: 4px 0 8px; }
.page-title + .program-list, .page-title + .social-row { margin-bottom: 22px; }
.prose { font-size: 14.5px; color: var(--muted); margin-bottom: 22px; max-width: 62ch; }
.prose-link { color: var(--p3); font-weight: 600; }

.empty { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; padding: 42px 16px; }
.empty strong { font-size: 15.5px; font-weight: 700; }
.empty span { font-size: 13.5px; }

/* No ar agora */
.onair { display: flex; align-items: center; gap: 12px; padding: 12px 0 18px; }
.onair-time { flex-shrink: 0; font-size: 12.5px; font-weight: 700; color: var(--p3); }
.onair-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.onair-body strong { font-size: 15px; font-weight: 700; }
.onair-body span { font-size: 12.5px; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .05em; color: var(--p3); }

.program-list { list-style: none; display: flex; flex-direction: column; }
.program-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--border); }
.program-list li:first-child { border-top: none; }
.program-list .t { font-size: 12.5px; font-weight: 700; color: var(--muted); width: 46px; flex-shrink: 0; }
.program-list .p { font-size: 14.5px; font-weight: 600; }
.program-list .h { font-size: 12.5px; }

/* Programação */
.prog-days { display: flex; gap: 5px; margin-bottom: 18px; }
.prog-day { flex: 1 1 0; min-width: 0; padding: 11px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--muted); font-size: 13.5px; font-weight: 700; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.prog-day:hover { background: var(--surface-2); color: var(--p2); }
.prog-day.is-active { background: var(--p3); color: var(--on-p3); border-color: var(--p3); }

.prog-list { list-style: none; }
.prog-list[hidden] { display: none; }
.prog-empty { padding: 34px 4px; font-size: 14px; text-align: center; }
.prog-row { display: flex; align-items: center; gap: 16px; padding: 14px 12px; border-bottom: 1px solid var(--border); }
.prog-row:last-child { border-bottom: none; }
.prog-row:has(+ .prog-row.is-now) { border-bottom-color: transparent; }
.prog-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.prog-time { font-size: 12.5px; color: var(--muted); }
.prog-name { font-size: 16px; font-weight: 700; line-height: 1.25; }
.prog-host { font-size: 13px; color: var(--muted); }
/* Initials stay underneath: if the photo fails to load the tile keeps meaning */
.prog-thumb { position: relative; display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 12px; background: var(--surface-2); color: var(--p3); font-weight: 800; font-size: 16px; overflow: hidden; }
.prog-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.prog-row.is-now { background: color-mix(in srgb, var(--p3) 12%, transparent); border-bottom-color: transparent; border-radius: var(--radius); margin: 6px 0; box-shadow: inset 3px 0 0 var(--p3); }
.prog-live { color: var(--p3); font-weight: 700; font-style: normal; margin-left: 8px; }

/* Recados */
.recados-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.recado { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 15px 16px 14px; }
.recado-text { font-size: 14.5px; line-height: 1.55; }
.recado-meta { margin-top: 12px; }
.recado-meta strong { font-size: 14px; font-weight: 700; }
.recado-meta span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.recados-sentinel { height: 1px; }

.rec-skeletons { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.recado.is-skeleton { display: flex; flex-direction: column; gap: 10px; }
.sk { display: block; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, color-mix(in srgb, var(--p2) 14%, var(--p1)) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: skShimmer 1.3s ease infinite; }
.sk-line { height: 13px; }
.sk-short { width: 62%; }
.sk-meta { height: 12px; width: 40%; margin-top: 6px; }
@keyframes skShimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Flutuante, sempre logo acima do mini player */
.fab { position: fixed; right: 16px; bottom: calc(78px + env(safe-area-inset-bottom)); width: 56px; height: 56px; border-radius: 50%; background: var(--p3); color: var(--on-p3); display: grid; place-items: center; z-index: 45; transition: transform .12s, background .15s; }
.fab:hover { background: color-mix(in srgb, var(--p3) 88%, var(--p1)); }
.fab:active { transform: scale(.94); }
.fab svg { width: 24px; height: 24px; }

/* Formulários */
.form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 600; color: var(--muted); }
.field input, .field textarea { font-size: 14px; color: var(--p2); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 12px; resize: vertical; transition: border-color .15s; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--p2) 36%, var(--p1)); }
.field input:focus, .field textarea:focus { outline: none; border-color: color-mix(in srgb, var(--p3) 55%, var(--border)); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1; min-width: 0; }
.field--sm { flex: 0 0 34% !important; }
.field-error { display: none; font-size: 12.5px; font-style: normal; color: #ef5350; }
.field.has-error input, .field.has-error textarea { border-color: #ef5350; }
.field.has-error .field-error { display: block; }
.char-count { align-self: flex-end; font-size: 12px; color: var(--muted); margin-top: 2px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; }


/* Sobre */
.about-title { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.about-brand { display: inline-block; margin-top: 4px; color: var(--p2); }
.about-brand-logo { height: 26px; width: auto; }

/* Bate-papo: o iframe ocupa exatamente a área livre, nunca passa por baixo do
   mini player. O position absolute evita depender de altura em porcentagem. */
body[data-page="chat"] .layout { flex: 1; min-height: 0; }
body[data-page="chat"] .content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.chat-page { flex: 1; min-height: 0; position: relative; }
.chat-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); background: var(--surface); }

/* No celular a página inteira precisa caber na tela para o iframe medir certo.
   No desktop o .app já desconta a altura do mini player. */
@media (max-width: 899px) {
  body[data-page="chat"] .app { height: 100dvh; }
}

/* Redes sociais */
.social-row { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; }
.social-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--surface-2); color: var(--p2); transition: background .15s; }
.social-btn:hover { background: color-mix(in srgb, var(--p3) 14%, var(--surface-2)); }
.social-btn svg { width: 20px; height: 20px; }

.links { list-style: none; display: flex; flex-direction: column; }
.links li { border-top: 1px solid var(--border); }
.links li:first-child { border-top: none; }
.links a { display: flex; align-items: center; gap: 12px; padding: 15px 2px; font-size: 14.5px; font-weight: 600; }
.links a svg { width: 20px; height: 20px; color: var(--p3); flex-shrink: 0; }
.links-go { margin-left: auto; color: var(--muted) !important; }

/* Título da página */
.page-head { display: none; }
.page-head h1 { font-weight: 800; }

/* Player cheio na home, mini player nas demais */
body:not(.home) #fullPlayer { display: none; }
body.home .miniplayer { display: none; }

.miniplayer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: var(--surface-2); border-top: 1px solid var(--border); }
.mini-inner { max-width: var(--content-w); margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 9px 16px; padding-bottom: calc(9px + env(safe-area-inset-bottom)); }
.mini-info { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.mini-thumb { width: 42px; height: 42px; border-radius: 8px; background: var(--surface); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-meta { display: flex; flex-direction: column; min-width: 0; }
.mini-meta small { font-size: 13px; color: var(--muted); line-height: 1.3; }
.mini-meta strong { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-actions { display: flex; align-items: center; flex-shrink: 0; }
.mini-play { width: 44px; height: 44px; }
.mini-play svg { width: 20px; height: 20px; }
body:not(.home) .layout { padding-bottom: 88px; }

/* Timer */
.timer-page { align-items: center; text-align: center; }
.timer-lead { font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.timer-card { width: 100%; display: flex; flex-direction: column; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 16px; }

.timer-picker { position: relative; width: 100%; max-width: 330px; height: 86px; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
  -webkit-mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
          mask: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent); }
.timer-picker[hidden] { display: none; }
.timer-picker:active { cursor: grabbing; }
.timer-strip { display: flex; height: 100%; }
.timer-strip.snapping { transition: transform .3s cubic-bezier(.22,.61,.36,1); }
.timer-item { flex: 0 0 33.3333%; display: grid; place-items: center; font-size: 52px; font-weight: 800; line-height: 1; color: color-mix(in srgb, var(--p2) 24%, var(--p1)); transform: scale(.52); transition: transform .25s, color .25s; }
.timer-item.is-center { color: var(--p2); transform: scale(1); }

.timer-countdown { height: 86px; display: grid; place-items: center; font-size: 52px; font-weight: 800; line-height: 1; color: var(--p3); }
.timer-countdown[hidden] { display: none; }
.timer-unit { font-size: 14px; color: var(--muted); margin-top: 4px; }
.timer-start { margin-top: 16px; min-width: 130px; border-radius: var(--radius-pill); }
.timer-desc { font-size: 13.5px; margin-top: 18px; }

/* Configurações */
.setting { display: flex; align-items: center; gap: 16px; padding: 4px 0 18px; }
.setting-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.setting-text strong { font-size: 15px; font-weight: 700; }
.setting-text span { font-size: 13px; }
.switch { flex-shrink: 0; width: 46px; height: 26px; border: none; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--p2) 16%, var(--p1)); padding: 3px; transition: background .2s; }
.switch .switch-knob { display: block; width: 20px; height: 20px; border-radius: 50%; background: var(--p2); transition: transform .2s; }
.switch.is-on { background: var(--p3); }
.switch.is-on .switch-knob { transform: translateX(20px); background: var(--on-p3); }

/* Confirmação de envio */
.feedback { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--p1) 82%, transparent); opacity: 0; transition: opacity .24s; }
.feedback[hidden] { display: none; }
.feedback.show { opacity: 1; }
.feedback-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; width: 100%; max-width: 340px; padding: 34px 26px 30px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; transform: scale(.94); transition: transform .24s cubic-bezier(.22,.61,.36,1); }
.feedback.show .feedback-card { transform: none; }
.feedback-icon { display: grid; place-items: center; width: 74px; height: 74px; margin-bottom: 12px; border-radius: 50%; background: color-mix(in srgb, var(--p3) 16%, transparent); color: var(--p3); }
.feedback-icon svg { width: 36px; height: 36px; }
.feedback-card strong { font-size: 20px; font-weight: 800; line-height: 1.25; }
.feedback-card span { font-size: 14px; color: var(--muted); }
.form-actions--single { justify-content: stretch; }
.form-actions--single .btn { width: 100%; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%) translateY(16px); background: var(--surface-2); color: var(--p2); border: 1px solid var(--border); padding: 11px 16px; border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 55; max-width: calc(100vw - 40px); text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
body:not(.home) .toast { bottom: 100px; }

/* Instrução de instalação manual, quando o navegador não oferece o prompt */
.install-hint { position: fixed; left: 16px; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: flex; align-items: flex-start; gap: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.install-hint[hidden] { display: none; }
.install-hint p { flex: 1; font-size: 13.5px; line-height: 1.5; }
.install-hint p[hidden] { display: none; }
.install-hint__icon { display: inline-grid; place-items: center; vertical-align: middle; width: 22px; height: 22px; border-radius: 6px; background: var(--surface); }
.install-hint__icon svg { width: 14px; height: 14px; }
.install-hint__close { width: 26px; height: 26px; display: grid; place-items: center; border: none; background: transparent; color: var(--muted); flex-shrink: 0; order: 2; }
.install-hint__close svg { width: 16px; height: 16px; }

/* Desktop */
@media (min-width: 900px) {
  .menu-btn, .app-title { display: none; }
  .menu-backdrop, .drawer { display: none !important; }
  .install-bar { padding: 12px 28px; }

  .miniplayer { height: 72px; }
  .mini-inner { max-width: 1280px; height: 100%; padding: 0 44px; }
  body:not(.home) .app { height: calc(100dvh - 72px); }

  .app {
    height: 100dvh;
    min-height: 0;
    max-width: 1280px;
    margin-inline: auto;
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    grid-template-areas:
      "side player"
      "side content";
    overflow: hidden;
  }
  .layout { display: contents; }

  .app-header { grid-area: side; flex-direction: column; align-items: stretch; gap: 0; min-height: 0; overflow-y: auto; padding: 22px 14px; border-right: 1px solid var(--border); }
  .brand { display: flex; padding: 4px; margin-bottom: 20px; }
  .topnav { display: flex; flex-direction: column; gap: 3px; }
  .topnav .nav-link { padding: 11px 12px; font-size: 14.5px; border-radius: 10px; }
  .topnav .nav-link svg { width: 20px; height: 20px; }

  #fullPlayer { grid-area: player; gap: 0; padding: 28px 24px 26px; border-bottom: 1px solid var(--border); }
  #fullPlayer .player-art { display: none; }
  #fullPlayer .player-tag { margin-top: 0; }
  #fullPlayer .player-meta { max-width: none; }
  #fullPlayer .controls { margin-top: 16px; }

  .content { grid-area: content; padding: 30px 44px 48px; overflow-y: auto; }
  .content > .page-head { display: block; margin: 0 0 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
  .content > .page-head h1 { font-size: 24px; }
  /* Acompanha a margem do conteúdo, que fica centralizado em telas largas */
  .fab { bottom: 92px; right: max(44px, calc(50vw - 640px + 44px)); }

  body[data-page="chat"] .content { overflow: hidden; padding-bottom: 30px; }

  .form { max-width: 520px; }
  .install-hint { left: auto; right: 28px; max-width: 420px; }
}

@media (prefers-reduced-motion: reduce) {
  body.is-playing .player-art { animation: none; }
  * { transition: none !important; }
}
