:root {
  --bg: #080808;
  --surface: #111111;
  --surface-2: #181818;
  --hover: #232323;
  --fg: #f5f5f5;
  --muted: #8a8a8a;
  --accent: #F4EB6C;
  --accent-fg: #0b0b0b;
  --danger: #ff6b6b;
  --r-ctl: 8px;   /* botões e campos */
  --r-card: 16px; /* superfícies flutuantes: chat, player, painel */
  --ease: cubic-bezier(.2, .8, .2, 1);
}
html { color-scheme: dark; }
body {
  background: radial-gradient(900px 420px at 50% -120px, rgba(244,235,108,.09), transparent 70%), var(--bg);
  background-attachment: fixed;
  color: var(--fg);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--hover); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }
.hidden { display: none !important; }

/* Estrutura */
.topbar { display:flex; justify-content:space-between; align-items:center; padding:20px 28px; }
.logo { display:inline-flex; align-items:center; gap:10px; font-weight:800; letter-spacing:-.02em; font-size:1.05rem; }
/* A logo é um banner (~4,7:1): o tamanho é dado pela largura e a altura acompanha */
.logo-img { display:block; width:100%; height:auto; object-fit:contain; }
.nav-logo { max-width:100%; }
.nav-logo .logo-img { width:124px; }
.feed-logo .logo-img { width:116px; }
.home .logo { display:block; }
.home .logo-img { width:min(190px, 55vw); }
.panel { background: var(--surface); border-radius: var(--r-card); box-shadow: 0 24px 64px rgba(0,0,0,.45); }
.panel-title, .sub-title { padding:14px 16px 8px; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; }

/* Controles */
.input { background:var(--surface-2); color:var(--fg); border:0; border-radius:var(--r-ctl); padding:12px 16px; outline:none; min-width:0; transition:box-shadow .2s, background .2s; }
.input:focus { background:#1d1d1d; box-shadow: 0 0 0 2px rgba(244,235,108,.55); }
.input::placeholder { color:#666; }
.btn { background:var(--surface-2); color:var(--fg); border:0; border-radius:var(--r-ctl); padding:12px 20px; font-weight:600; cursor:pointer; transition:background .2s, color .2s, transform .2s var(--ease); }
.btn:hover { background:var(--hover); }
.btn:active { transform: scale(.97); }
.btn-primary { background:var(--accent); color:var(--accent-fg); }
.btn-primary:hover { background:#fff; color:#000; }
.btn-sm { padding:8px 14px; font-size:.8rem; }
.btn:disabled { opacity:.5; cursor:not-allowed; }
.btn-icon { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; padding:0; position:relative; flex-shrink:0; }
.btn-ghost { background:transparent !important; color:var(--fg); }
.btn-ghost:hover { color:var(--accent); }
.icon-btn { color:var(--muted); width:32px; height:32px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; transition:color .2s; }
.icon-btn:hover { color:var(--accent); }
.q-badge { position:absolute; top:-2px; right:-2px; min-width:18px; height:18px; padding:0 5px; display:flex; align-items:center; justify-content:center; background:var(--accent); color:var(--accent-fg); font-size:.65rem; font-weight:700; border-radius:4px; }
.toast { position:fixed; bottom:28px; left:50%; transform:translateX(-50%); background:var(--accent); color:var(--accent-fg); padding:11px 20px; font-weight:600; border-radius:var(--r-ctl); z-index:100; box-shadow:0 12px 32px rgba(0,0,0,.5); }

/* Sliders */
input[type=range] { -webkit-appearance:none; appearance:none; height:4px; border-radius:2px; background:linear-gradient(to right, var(--accent) var(--p,0%), #2e2e2e var(--p,0%)); outline:none; cursor:pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance:none; width:12px; height:12px; background:#fff; border:0; border-radius:50%; }
input[type=range]::-moz-range-thumb { width:12px; height:12px; background:#fff; border:0; border-radius:50%; }
input[type=range]::-moz-range-track { background:transparent; }
input[type=range]:disabled { cursor:default; }
input[type=range]:disabled::-webkit-slider-thumb { opacity:0; }
input[type=range]:disabled::-moz-range-thumb { opacity:0; }
#c-vol { --p: 100%; }
.vol { display:none; width:80px; }
@media (min-width:640px) { .vol { display:block; } }

/* Avatares */
.avatar-xs, .avatar-sm, .avatar-md, .avatar-lg { border-radius:50%; object-fit:cover; background:var(--surface-2); flex-shrink:0; }
.avatar-sm { width:32px; height:32px; }
.avatar-md { width:44px; height:44px; }
.avatar-lg { width:88px; height:88px; }

/* Home */
.home { max-width:680px; margin:0 auto; padding:56px 20px 80px; }
@media (min-width:768px) { .home { padding-top:96px; } }
.home h1 { font-size:clamp(2.4rem, 7vw, 4rem); font-weight:800; line-height:1.02; letter-spacing:-.035em; margin-bottom:44px; }
.home h1 span { color:var(--muted); }
.home h1 .dot { color:var(--accent); }
.room-row { display:flex; align-items:center; gap:16px; padding:8px; background:var(--surface); border-radius:var(--r-card); margin-bottom:8px; transition:background-color .4s ease; }
.room-row:hover { background:var(--surface-2); }
.room-row .count { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:.85rem; transition:color .2s; }
.room-row:hover .count { color:var(--accent); }

/* Sala: tela cheia sem scroll. Desktop = player | chat. Mobile = player sobre chat. */
.room { position:relative; isolation:isolate; height:100vh; height:100dvh; display:flex; flex-direction:column; overflow:hidden; }
.room::before { content:''; position:absolute; inset:-20%; z-index:-1; background:var(--np-img) center/cover no-repeat; filter:blur(80px) saturate(1.5) brightness(.5); opacity:0; transition:opacity .8s; }
.room.has-art::before { opacity:.6; }
.stage { display:flex; flex-direction:column; min-width:0; flex:none; }
.room-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 10px 0 18px; height:48px; }
.bar-main { display:flex; align-items:center; flex:1; min-width:0; }
.room-bar b { font-size:1rem; font-weight:600; min-width:0; }
.add-inline { display:flex; gap:8px; flex:1; min-width:0; }
.add-inline .input { flex:1; padding:8px 14px; }
.stage-video { display:flex; align-items:center; justify-content:center; }
.video-box { position:relative; width:100%; aspect-ratio:16/9; background:#000; overflow:hidden; }
.video-box.host { cursor:pointer; }
/* O player nativo não recebe cliques: nada é desenhado por cima dele */
.video-box iframe, #player { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.video-box.idle iframe { visibility:hidden; }
.empty-state { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; color:var(--muted); font-size:.9rem; background:radial-gradient(60% 60% at 50% 40%, #161616, #050505); pointer-events:none; }
.empty-state i { font-size:2.6rem; color:#2c2c2c; }
.ctrl { display:flex; align-items:center; gap:10px; padding:8px 14px; }
.ctrl button { color:var(--fg); width:36px; height:36px; border-radius:var(--r-ctl); flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; transition:color .2s, transform .2s var(--ease); }
.ctrl button:hover { color:var(--accent); }
.ctrl button:active { transform:scale(.92); }
.ctrl .time { font-size:.75rem; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
#c-play { background:transparent; color:#fff; font-size:1.1rem; }
#c-play:hover { color:var(--accent); }
.chat-col { flex:1; min-height:0; display:flex; flex-direction:column; background:rgba(18,18,18,.78); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); border-radius:var(--r-card) var(--r-card) 0 0; }
.chat-log { flex:1; min-height:0; overflow-y:auto; padding:8px 18px; display:flex; flex-direction:column; gap:16px; }
.chat-log:empty::before { content:'Sem mensagens ainda'; margin:auto; color:var(--muted); font-size:.85rem; }
/* Campo e ícone de enviar num único container */
.chat-form { display:flex; align-items:center; margin:0 14px 14px; padding:4px 4px 4px 16px; background:var(--surface-2); border-radius:var(--r-ctl); transition:box-shadow .2s, background .2s; }
.chat-form:focus-within { background:#1d1d1d; box-shadow:0 0 0 2px rgba(244,235,108,.55); }
.chat-input { flex:1; min-width:0; background:transparent; border:0; outline:none; color:var(--fg); padding:9px 0; }
.chat-input::placeholder { color:#666; }
.send { width:36px; height:36px; flex-shrink:0; display:inline-flex; align-items:center; justify-content:center; background:transparent; color:var(--accent); transition:color .2s, transform .2s var(--ease); }
.send:hover { color:#fff; }
.send:active { transform:scale(.9); }
.chat-msg { display:flex; gap:12px; align-items:flex-start; animation:pop .25s var(--ease); }
.chat-msg b { color:var(--accent); font-size:.78rem; font-weight:600; }
.chat-msg p { font-size:.9rem; line-height:1.4; word-break:break-word; color:#e8e8e8; }
@keyframes pop { from { opacity:0; transform:scale(.97); } to { opacity:1; transform:none; } }
@media (min-width:1024px) {
  .room { flex-direction:row; padding:12px; gap:12px; }
  /* título, vídeo e controles compartilham a mesma largura => bordas alinhadas */
  .stage { flex:1; align-items:center; justify-content:center; }
  .room-bar, .stage-video, .ctrl { width:min(100%, calc((100dvh - 124px) * 16 / 9)); }
  .room-bar { padding:0; }
  .room-bar > div:last-child { margin-right:-10px; } /* alinha o glifo dos ícones à borda do vídeo */
  .ctrl { padding:8px 0; }
  .stage-video { flex:none; }
  .video-box { width:100%; border-radius:var(--r-card); box-shadow:0 30px 80px rgba(0,0,0,.6); }
  .chat-col { flex:none; width:380px; border-radius:var(--r-card); }
}

/* Painel lateral (estilo Jam) */
.drawer { position:fixed; top:0; right:0; height:100%; width:min(400px,100%); background:rgba(14,14,14,.94); backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px); z-index:60; display:flex; flex-direction:column; opacity:0; transform:scale(.97); pointer-events:none; transition:opacity .25s ease, transform .25s var(--ease), box-shadow .3s; }
.drawer.open { opacity:1; transform:none; pointer-events:auto; box-shadow:0 30px 80px rgba(0,0,0,.6); }
.backdrop { position:fixed; inset:0; background:rgba(0,0,0,.6); z-index:55; opacity:0; pointer-events:none; transition:opacity .3s; }
.backdrop.open { opacity:1; pointer-events:auto; }
.drawer-head { display:flex; justify-content:space-between; align-items:center; padding:20px 16px 6px 20px; font-weight:700; font-size:1.25rem; letter-spacing:-.02em; }
.drawer-body { flex:1; overflow-y:auto; }
.people { display:flex; gap:16px; overflow-x:auto; padding:14px 20px 18px; }
.person { position:relative; display:flex; flex-direction:column; align-items:center; gap:6px; width:56px; flex-shrink:0; }
.person small { font-size:.65rem; color:var(--muted); max-width:56px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.person.host .avatar-md { box-shadow:0 0 0 2px var(--accent); }
.person .crown { position:absolute; top:-7px; right:3px; font-size:.65rem; color:var(--accent); }
.np { display:flex; gap:14px; align-items:center; margin:0 16px 18px; padding:12px; background:var(--surface-2); }
.np img { width:88px; aspect-ratio:16/9; object-fit:cover; flex-shrink:0; }
.eq { display:flex; align-items:flex-end; gap:2px; height:14px; flex-shrink:0; margin-left:auto; }
.eq i { width:3px; border-radius:2px; background:var(--accent); animation:eq 1s infinite ease-in-out; }
.eq i:nth-child(2) { animation-delay:.2s; }
.eq i:nth-child(3) { animation-delay:.4s; }
.eq.paused i { animation-play-state:paused; height:3px; }
@keyframes eq { 0%, 100% { height:3px; } 50% { height:14px; } }
.q-item { display:flex; align-items:center; gap:12px; padding:8px 16px; transition:background .2s; }
.q-item:hover { background:var(--surface-2); }
.q-item img { width:72px; height:40px; object-fit:cover; flex-shrink:0; }
.q-item .meta { min-width:0; flex:1; }
.q-item .meta b { display:block; font-size:.85rem; font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.who { display:block; color:var(--muted); font-size:.7rem; margin-top:2px; }
.q-item-by { color:var(--muted); font-size:.75rem; margin-top:2px; }
.drag-handle { cursor:grab; color:var(--muted); padding:4px 2px; touch-action:none; }
.sortable-ghost { opacity:.4; background:var(--hover); }

/* Perfil (estilo rede social) */
.avatar-xl { width:112px; height:112px; border-radius:50%; object-fit:cover; background:var(--surface-2); flex-shrink:0; border:4px solid var(--surface); display:block; }
.profile-cover { position:relative; aspect-ratio:3 / 1; background:var(--accent); overflow:hidden; } /* 1500×500 */
.profile-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.cover-edit { position:absolute; right:12px; bottom:12px; width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:.8rem; display:inline-flex; align-items:center; justify-content:center; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:background .2s, transform .2s var(--ease); }
.cover-edit:hover { background:rgba(0,0,0,.85); transform:scale(1.08); }
.cover-edit:disabled { opacity:.7; cursor:default; }
.avatar-wrap { position:relative; margin-top:-56px; z-index:1; }
.avatar-edit { position:absolute; right:2px; bottom:4px; width:34px; height:34px; border-radius:50%; background:var(--accent); color:var(--accent-fg); font-size:.8rem; display:inline-flex; align-items:center; justify-content:center; box-shadow:0 4px 14px rgba(0,0,0,.5); transition:transform .2s var(--ease), background .2s; }
.avatar-edit:hover { background:#fff; transform:scale(1.08); }
.avatar-edit:disabled { opacity:.7; cursor:default; }
.handle { color:var(--muted); font-size:.95rem; margin-top:2px; }
.field-label { display:block; font-size:.7rem; letter-spacing:.14em; text-transform:uppercase; color:var(--muted); font-weight:600; margin-bottom:8px; }
.field-hint { font-size:.78rem; color:var(--muted); margin-top:6px; }
.field-ok { color:#7ddc8a; }
.field-err { color:var(--danger); }
.input-prefix { display:flex; align-items:center; background:var(--surface-2); border-radius:var(--r-ctl); padding-left:16px; transition:box-shadow .2s, background .2s; }
.input-prefix:focus-within { background:#1d1d1d; box-shadow:0 0 0 2px rgba(244,235,108,.55); }
.input-prefix span { color:var(--muted); }
.input-prefix input { flex:1; min-width:0; background:transparent; border:0; outline:none; color:var(--fg); padding:12px 16px 12px 4px; }

.bio { margin-top:12px; font-size:.95rem; line-height:1.5; color:#e8e8e8; white-space:pre-line; word-break:break-word; }
textarea.input { resize:none; display:block; line-height:1.45; }
.counter { font-size:.75rem; color:var(--muted); text-align:right; margin-top:6px; font-variant-numeric:tabular-nums; }
.counter.warn { color:var(--danger); }

/* Home: cabeçalho da lista e busca (mesmo visual da caixa de mensagem) */
.chat-form.search-box { margin:0 0 20px; }

.avatar-xs { width:20px; height:20px; }
.room-title { display:flex; align-items:baseline; gap:8px; min-width:0; }
.room-title b { font-weight:600; min-width:0; }
.room-code { color:var(--muted); font-size:.8rem; flex-shrink:0; }
.room-host { display:flex; align-items:center; gap:6px; margin-top:6px; font-size:.85rem; min-width:0; }
.room-host .host-name { color:#cfcfcf; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.room-host .host-handle { color:var(--muted); flex-shrink:0; }
.back-btn, .cover-back { width:34px; height:34px; border-radius:50%; background:rgba(0,0,0,.6); color:#fff; font-size:.8rem; display:inline-flex; align-items:center; justify-content:center; backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); transition:background .2s, transform .2s var(--ease); }
.cover-back { position:absolute; left:12px; top:12px; z-index:1; }
.back-btn { flex-shrink:0; margin-right:12px; }
.back-btn:hover, .cover-back:hover { background:rgba(0,0,0,.85); transform:scale(1.08); }
.panel.flat { box-shadow:none; }

/* Navegação (inferior no mobile, lateral no desktop) */
.shell { display:flex; justify-content:center; min-height:100vh; min-height:100dvh; }
.feed { flex:1; min-width:0; max-width:640px; padding:20px 20px 110px; }
.feed-logo { margin-bottom:24px; }
.nav { position:fixed; left:0; right:0; bottom:0; z-index:40; height:62px; padding:0 8px env(safe-area-inset-bottom, 0px); display:flex; align-items:center; justify-content:space-around; background:rgba(12,12,12,.92); backdrop-filter:blur(16px); -webkit-backdrop-filter:blur(16px); border-top:1px solid rgba(255,255,255,.07); box-sizing:content-box; }
.nav-logo { display:none; }
.nav-item { flex:1; height:62px; display:flex; align-items:center; justify-content:center; gap:18px; color:var(--muted); font-size:1.3rem; transition:color .2s, background .2s; }
.nav-item span { display:none; }
.nav-item:hover { color:var(--fg); }
.nav-item.active { color:var(--accent); }
.nav-avatar { display:block; width:28px; height:28px; border-radius:50%; object-fit:cover; background:var(--surface-2); }
.nav-profile .fa-user { display:none; }
.nav-create { flex:0 0 auto; width:48px; height:48px; margin:0 4px; border-radius:50%; background:var(--accent); color:var(--accent-fg); font-size:1.1rem; display:flex; align-items:center; justify-content:center; transition:transform .2s var(--ease), background .2s; box-shadow:0 6px 18px rgba(0,0,0,.45); }
.nav-create:hover { background:#fff; transform:scale(1.06); }
.nav-create span { display:none; }
.empty-tab { display:flex; flex-direction:column; align-items:center; gap:10px; padding:96px 0; color:var(--muted); text-align:center; }
.empty-tab i { font-size:2rem; }
.empty-tab h2 { color:var(--fg); font-size:1.25rem; font-weight:700; }
body.has-nav .toast { bottom:92px; }

@media (min-width:768px) {
  .feed { padding:36px 24px 80px; }
  .feed-logo { display:none; }
  .nav { position:sticky; top:0; bottom:auto; left:auto; right:auto; align-self:flex-start; width:240px; height:100vh; height:100dvh; flex-shrink:0; padding:20px 12px; flex-direction:column; align-items:stretch; justify-content:flex-start; gap:4px; background:transparent; backdrop-filter:none; -webkit-backdrop-filter:none; border-top:0; box-sizing:border-box; }
  .nav-logo { display:inline-flex; padding:8px 16px 20px; }
  .nav-item { flex:none; height:auto; justify-content:flex-start; padding:12px 16px; border-radius:999px; font-size:1.2rem; color:var(--fg); }
  .nav-item i { width:26px; text-align:center; }
  .nav-item span { display:inline; font-size:1.05rem; font-weight:500; }
  .nav-item:hover { background:var(--surface); color:var(--fg); }
  .nav-item.active { color:var(--accent); }
  .nav-item.active span { font-weight:700; }
  .nav-avatar { display:none; }
  .nav-profile .fa-user { display:inline-block; }
  .nav-create { order:10; width:100%; height:52px; margin:16px 0 0; border-radius:999px; gap:10px; font-size:1rem; font-weight:700; box-shadow:none; }
  .nav-create span { display:inline; }
}


/* Lista de salas: miniatura à esquerda, avatares à direita */
.room-thumb { width:88px; aspect-ratio:16 / 9; border-radius:10px; overflow:hidden; background:var(--surface-2); flex-shrink:0; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:1rem; }
.room-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.avatar-stack { display:flex; align-items:center; flex-shrink:0; }
.stack-avatar, .stack-more { width:28px; height:28px; border-radius:50%; border:2px solid var(--surface); margin-left:-8px; flex-shrink:0; }
.stack-avatar { object-fit:cover; background:var(--surface-2); }
.stack-avatar:first-child { margin-left:0; }
.stack-more { background:#2c2c2c; color:var(--muted); font-size:.68rem; font-weight:700; display:flex; align-items:center; justify-content:center; }
@media (max-width:480px) { .room-row { gap:10px; padding:6px; } .room-thumb { width:64px; border-radius:8px; } .stack-avatar, .stack-more { width:22px; height:22px; margin-left:-9px; border-width:2px; } .stack-more { font-size:.6rem; } .room-code { font-size:.72rem; } .room-host { gap:5px; font-size:.8rem; } }

/* Popular */
#popular-list { list-style:none; margin:0; padding:0; }
.pop-card { display:block; width:100%; text-align:left; border:0; font:inherit; color:inherit; cursor:pointer; padding:12px; margin-bottom:10px; background:var(--surface); border-radius:var(--r-card); transition:background-color .4s ease; }
.pop-card:hover { background:var(--surface-2); }
.pop-thumb { aspect-ratio:16 / 9; border-radius:12px; overflow:hidden; background:var(--surface-2); }
.pop-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.pop-meta { display:flex; align-items:baseline; gap:8px; margin-top:12px; padding:0 4px 2px; }
.pop-pos { color:var(--muted); font-size:.85rem; flex-shrink:0; }
.pop-title { font-weight:600; line-height:1.3; min-width:0; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.create-video { display:flex; align-items:center; gap:12px; padding:8px; margin-bottom:16px; background:var(--surface-2); border-radius:12px; }
.create-video img { width:96px; aspect-ratio:16 / 9; object-fit:cover; border-radius:8px; flex-shrink:0; }
.create-video small { display:block; font-size:.72rem; color:var(--muted); margin-bottom:2px; }
.create-video b { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-size:.9rem; font-weight:600; line-height:1.3; }

/* Splash */
#splash { position:fixed; inset:0; z-index:200; background:#080808; display:flex; align-items:center; justify-content:center; transition:opacity .45s ease, visibility .45s; }
#splash.out { opacity:0; visibility:hidden; }
#splash img { width:min(72vw, 360px); max-height:40vh; height:auto; object-fit:contain; animation:splash-in .6s var(--ease) both; }
.no-splash #splash { display:none; }
@keyframes splash-in { from { opacity:0; transform:scale(.9); } to { opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce) { #splash img { animation:none; } }


/* Fundo tingido pela cor da miniatura (Sessões e Popular). A cor é misturada com um preto quente para o texto continuar legível. */
.tinted { --tint: var(--surface); background: color-mix(in srgb, var(--tint) 30%, #0f0f0f); transition: background-color .4s ease; }
.tinted:hover { background: color-mix(in srgb, var(--tint) 44%, #0f0f0f); }
.room-row.tinted:hover, .pop-card.tinted:hover { background: color-mix(in srgb, var(--tint) 44%, #0f0f0f); }
/* (camada de hover antiga, substituída pelo fundo tingido) */
.tintable { position:relative; isolation:isolate; }
.tintable::before { content:''; position:absolute; inset:0; z-index:-1; border-radius:inherit; background:var(--tint, transparent); opacity:0; transition:opacity .35s ease; pointer-events:none; }
.tintable:hover::before, .tintable:focus-visible::before { opacity:0; }

/* Painel de busca do YouTube (mesmo deslizar do menu lateral) */
.drawer-yt { width:min(480px, 100%); }
.yt-head { display:flex; align-items:center; gap:6px; padding:14px 14px 10px 8px; }
.yt-search { flex:1; min-width:0; margin:0; }
#yt-clear { color:var(--muted); }
#yt-clear:hover { color:var(--accent); }
.yt-body { flex:1; overflow-y:auto; padding:0 14px 24px; }
.yt-label { padding:6px 2px 12px; }
.yt-status { color:var(--muted); font-size:.9rem; padding:28px 4px; text-align:center; }
#yt-list { list-style:none; margin:0 0 12px; padding:0; }
.yt-card { display:block; width:100%; text-align:left; margin-bottom:20px; padding:0; border:0; background:none; color:inherit; font:inherit; cursor:pointer; }
.yt-thumb { position:relative; aspect-ratio:16 / 9; border-radius:12px; overflow:hidden; background:var(--surface-2); }
.yt-thumb img { width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s var(--ease), filter .25s; }
.yt-card:hover .yt-thumb img { transform:scale(1.03); }
.yt-dur { position:absolute; right:8px; bottom:8px; padding:2px 6px; border-radius:4px; background:rgba(0,0,0,.82); color:#fff; font-size:.72rem; font-weight:600; font-variant-numeric:tabular-nums; }
.yt-add { position:absolute; left:8px; top:8px; width:32px; height:32px; border-radius:var(--r-ctl); background:rgba(0,0,0,.65); backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px); color:#fff; font-size:.8rem; display:flex; align-items:center; justify-content:center; transition:background .2s, color .2s; }
.yt-card:hover .yt-add, .yt-card.added .yt-add { background:var(--accent); color:var(--accent-fg); }
.yt-card.added .yt-thumb img { filter:brightness(.5); }
.yt-meta { padding:10px 2px 0; }
.yt-title { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; font-weight:600; font-size:.95rem; line-height:1.3; }
.yt-sub { display:block; margin-top:4px; color:var(--muted); font-size:.78rem; line-height:1.35; }
