/* FragaTV — tema escuro, navegacao por D-pad/teclado, TV-friendly */
:root {
  --bg: #0d1117;
  --bg2: #161b22;
  --bg3: #21262d;
  --line: #30363d;
  --fg: #e6edf3;
  --fg-dim: #9da7b3;
  --accent: #2f81f7;
  --gold: #e3b341;
  --danger: #f85149;
  --radius: 10px;
  --focus: 0 0 0 2px var(--bg), 0 0 0 5px var(--accent);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  height: 100dvh;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", Roboto, system-ui, Arial, sans-serif;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.ic { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }

/* ---------- topo ---------- */
#topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
}
#brand { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; white-space: nowrap; }
.brand-ic { width: 28px; height: 28px; }
.brand-ic rect { fill: var(--accent); }
.brand-ic path { fill: #fff; }
#top-actions { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
#filters { display: flex; gap: 10px; flex: 1; min-width: 0; }
#search {
  flex: 1; min-width: 140px; max-width: 420px;
  height: 40px;
  padding: 0 14px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
}
#cat-filter {
  height: 40px;
  padding: 0 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  max-width: 220px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { background: var(--line); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.btn.primary:hover { filter: brightness(1.15); }
.btn.icon-only { padding: 0; width: 40px; }
#btn-fav.active { background: rgba(227, 179, 65, .15); border-color: var(--gold); color: var(--gold); }
#btn-search { display: none; }

/* ---------- boas-vindas (sem fontes) ---------- */
#welcome { display: none; }
body.no-sources #welcome { display: block; flex: 1; overflow-y: auto; }
body.no-sources #layout,
body.no-sources #filters,
body.no-sources #btn-fav,
body.no-sources #btn-search { display: none; }
.welcome-inner { max-width: 1100px; margin: 0 auto; padding: 40px 24px; }
#welcome h1 { font-size: 30px; }
#welcome p { color: var(--fg-dim); margin: 8px 0 24px; font-size: 16px; }
#welcome-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.welcome-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 112px;
  padding: 18px;
  text-align: left;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.welcome-card:hover { border-color: var(--accent); background: var(--bg3); }
.wc-name { font-size: 18px; font-weight: 700; }
.wc-desc { font-size: 13px; color: var(--fg-dim); line-height: 1.4; }
.wc-badge { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--accent); }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- senha da familia ---------- */
body.need-login #topbar,
body.need-login #layout,
body.need-login #welcome { display: none !important; }
body.need-login #family-login { display: flex !important; flex: 1; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: min(380px, 100%);
  padding: 32px 28px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.login-ic { width: 56px; height: 56px; }
.login-card h1 { font-size: 26px; }
.login-card p { color: var(--fg-dim); font-size: 15px; line-height: 1.5; }
#login-pass {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 22px;
  letter-spacing: .2em;
  text-align: center;
}
#login-btn { width: 100%; min-height: 48px; font-size: 16px; }

/* ---------- layout ---------- */
#layout { display: flex; flex: 1; min-height: 0; }
#sidebar {
  width: 340px; min-width: 280px;
  background: var(--bg2);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
#source-list { display: flex; gap: 6px; padding: 8px; overflow-x: auto; border-bottom: 1px solid var(--line); flex-shrink: 0; }
#source-list:empty { display: none; }
.source-pill {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.source-pill .src-name {
  background: none;
  border: 0;
  padding: 7px 4px 7px 14px;
  font-size: 14px;
  white-space: nowrap;
  border-radius: 999px;
  cursor: pointer;
}
.source-pill .rm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  margin-right: 3px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--fg-dim);
  cursor: pointer;
}
.source-pill .rm .ic { width: 16px; height: 16px; }
.source-pill .src-name.managed { padding-right: 14px; }
.source-pill .rm:hover { color: var(--danger); background: rgba(248, 81, 73, .15); }
.source-pill.selected { background: var(--accent); border-color: var(--accent); }
.source-pill.selected .src-name { font-weight: 600; color: #fff; }
.source-pill.selected .rm { color: rgba(255, 255, 255, .85); }

#list-status { padding: 6px 14px; font-size: 12px; color: var(--fg-dim); border-bottom: 1px solid var(--line); flex-shrink: 0; }
#list-status:empty { display: none; }

#channel-list { flex: 1; overflow-y: auto; padding: 6px; }
.ch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 8px 6px 8px 10px;
  border-radius: var(--radius);
  cursor: pointer;
  margin-bottom: 2px;
}
.ch:hover, .ch.sel { background: var(--bg3); }
.ch.sel { box-shadow: inset 3px 0 0 var(--accent); }
.ch:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ch .logo {
  width: 40px; height: 40px;
  object-fit: contain;
  background: var(--bg);
  border-radius: 6px;
  flex-shrink: 0;
}
.logo-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--bg3);
  font-weight: 700;
  color: var(--accent);
}
.ch .logo-placeholder { background: var(--bg); }
.ch .ch-info { flex: 1; min-width: 0; }
.ch .ch-name { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch .ch-cat { font-size: 11px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch.playing .ch-name { color: var(--accent); font-weight: 600; }
.ch .fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  background: none;
  border: 0;
  border-radius: 50%;
  color: var(--fg-dim);
  cursor: pointer;
  flex-shrink: 0;
}
.ch .fav:hover { background: var(--line); }
.ch .fav.on { color: var(--gold); }
.ch .fav.on .ic { fill: var(--gold); }
.ch .fav .ic { fill: none; }
#list-sentinel { height: 1px; }

#sidebar .empty { padding: 20px 14px; color: var(--fg-dim); font-size: 14px; line-height: 1.6; }

/* ---------- palco / video ---------- */
#stage { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #000; }
#video-wrap { position: relative; flex: 1; background: #000; min-height: 0; overflow: hidden; }
#video-wrap.playing:not(.show-bar) { cursor: none; }
#video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
#video-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  text-align: center;
  color: #c9d1d9;
  font-size: 20px;
  line-height: 1.5;
  pointer-events: none;
}
#video-overlay.hidden { display: none; }
#video-overlay small { font-size: 14px; color: var(--fg-dim); }
#video-overlay.error { pointer-events: auto; background: rgba(0, 0, 0, .6); }
.play-error {
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  max-width: 520px;
}
.pe-title { font-size: 18px; font-weight: 700; color: var(--fg); }
.pe-msg { font-size: 14px; color: var(--fg-dim); margin: 10px 0 18px; line-height: 1.5; }
.pe-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

#spinner {
  position: absolute; top: 50%; left: 50%;
  width: 56px; height: 56px;
  margin: -28px 0 0 -28px;
  border: 4px solid rgba(255, 255, 255, .2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .9s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

#osd {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 12px;
  max-width: min(520px, calc(100% - 32px));
  padding: 10px 18px 10px 10px;
  background: rgba(13, 17, 23, .88);
  border: 1px solid var(--line);
  border-radius: 14px;
  pointer-events: none;
}
.osd-logo { width: 48px; height: 48px; object-fit: contain; background: #000; border-radius: 8px; flex-shrink: 0; font-size: 20px; }
.osd-info { min-width: 0; }
.osd-name { font-size: 18px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.osd-meta { font-size: 13px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

#video-bar {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85));
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
#video-wrap.show-bar #video-bar { opacity: 1; pointer-events: auto; }
#video-overlay.error ~ #video-bar { display: none; }
.vbtn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(255, 255, 255, .14);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
}
.vbtn:hover { background: rgba(255, 255, 255, .24); }
.vbtn .ic { width: 22px; height: 22px; }
#volume { width: 110px; accent-color: var(--accent); }
#video-bar { flex-wrap: wrap; }
#seek { flex-basis: 100%; height: 22px; margin: 0 2px 2px; accent-color: var(--accent); cursor: pointer; }
#time { font-size: 13px; color: #fff; white-space: nowrap; font-variant-numeric: tabular-nums; }
#now-playing { font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.spacer { flex: 1; }

/* ---------- biblioteca (Sonarr) ---------- */
#library, #library-nav { display: none; }
body.library-mode #video-wrap,
body.library-mode #channel-list { display: none; }
body.library-mode #library { display: block; flex: 1; min-height: 0; overflow-y: auto; background: var(--bg); padding: 20px; }
body.library-mode #library-nav { display: flex; flex-direction: column; gap: 4px; padding: 8px; }
.lib-tab {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  background: none;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  text-align: left;
  cursor: pointer;
}
.lib-tab:hover { background: var(--bg3); }
.lib-tab.active { background: var(--bg3); box-shadow: inset 3px 0 0 var(--accent); font-weight: 600; }
.lib-count { font-size: 12px; color: var(--fg-dim); font-weight: 400; }
.lib-empty { color: var(--fg-dim); text-align: center; padding: 60px 20px; font-size: 15px; line-height: 1.6; }
.lib-empty .btn { margin-top: 14px; }

.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 16px; }
.poster-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
}
.pc-img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 10px; background: var(--bg3); }
.poster-card:hover .pc-img { filter: brightness(1.15); }
.poster-ph {
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  color: var(--fg-dim);
  background: var(--bg3);
  overflow: hidden;
}
.pc-title { font-size: 14px; font-weight: 600; padding: 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { font-size: 12px; color: var(--fg-dim); padding: 0 2px; }
.pc-bar, .q-bar { height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.pc-bar span, .q-bar span { display: block; height: 100%; background: var(--accent); }
.pc-bar.done span, .q-bar.done span { background: #3fb950; }

.sd-head { display: flex; gap: 22px; margin-bottom: 22px; }
.sd-poster { width: 160px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.sd-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sd-info h2 { font-size: 26px; }
.sd-meta, .sd-stats { font-size: 14px; color: var(--fg-dim); }
.sd-overview {
  max-width: 760px;
  font-size: 14px; line-height: 1.55; color: #c9d1d9;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.sd-seasons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.season-btn small { font-size: 12px; opacity: .75; }
.season-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.lib-list { display: flex; flex-direction: column; gap: 6px; max-width: 900px; }
.lib-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lib-toolbar h3 { font-size: 18px; }
.lib-day { margin: 14px 0 2px; font-size: 13px; font-weight: 700; color: var(--accent); }
.ep-row, .cal-row, .q-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px;
  width: 100%;
  min-height: 56px;
  padding: 10px 14px;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
}
.ep-row:hover, .cal-row:hover, .q-row:hover { background: var(--bg3); }
.ep-num, .cal-time { min-width: 44px; font-size: 14px; font-weight: 600; color: var(--fg-dim); font-variant-numeric: tabular-nums; }
.ep-main { flex: 1; min-width: 0; }
.ep-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-date, .q-meta { font-size: 12px; color: var(--fg-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-bar { margin: 8px 0 4px; }
.ep-overview { flex-basis: 100%; padding-left: 58px; font-size: 13px; line-height: 1.5; color: var(--fg-dim); }
.ep-badge { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ep-badge.ok { color: #3fb950; background: rgba(63, 185, 80, .15); }
.ep-badge.miss { color: var(--danger); background: rgba(248, 81, 73, .12); }
.ep-badge.soon { color: var(--accent); background: rgba(47, 129, 247, .15); }
.ep-badge.off { color: var(--fg-dim); background: var(--bg3); }
.ep-badge.play { color: #fff; background: var(--accent); }
.ep-progress { flex-basis: 100%; height: 3px; margin-left: 58px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.ep-progress span { display: block; height: 100%; background: var(--accent); }
.sd-jf { font-size: 13px; color: var(--accent); }
.lib-section { font-size: 18px; margin-bottom: 12px; }
.lib-grid + .lib-section { margin-top: 28px; }

/* player dentro da biblioteca (Jellyfin) */
body.library-mode.library-playing #video-wrap { display: block; flex: 1; min-height: 0; }
body.library-mode.library-playing #library { display: none; }
.hint { font-size: 12px; color: var(--fg-dim); line-height: 1.5; }
.hint code { font-size: 12px; }

/* ---------- dialog ---------- */
dialog {
  background: var(--bg2);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  width: min(560px, 92vw);
  max-height: 90dvh;
  margin: auto;
}
dialog::backdrop { background: rgba(0, 0, 0, .6); }
dialog h2 { margin-bottom: 14px; font-size: 20px; }
.tabs { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab {
  min-height: 36px;
  padding: 0 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg-dim);
  cursor: pointer;
  font-size: 13px;
}
.tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.tab-body { display: flex; flex-direction: column; gap: 12px; }
.tab-body.hidden { display: none; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--fg-dim); }
label input {
  padding: 10px 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--fg);
  font-size: 14px;
}
.row { display: flex; gap: 12px; }
.row label { flex: 1; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.error { color: var(--danger); font-size: 13px; margin-top: 10px; }
.link-btn { background: none; border: 0; color: var(--accent); text-decoration: underline; cursor: pointer; font-size: inherit; border-radius: 4px; }

/* ---------- catálogo ---------- */
.cat-intro { font-size: 13px; color: var(--fg-dim); margin-bottom: 4px; line-height: 1.5; }
#catalog-list { max-height: max(160px, calc(90dvh - 270px)); overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 4px; }
.cat-loading { color: var(--fg-dim); font-size: 13px; padding: 8px 0; }
.cat-group {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
}
.cat-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 12px;
}
.cat-info { flex: 1; min-width: 0; }
.cat-name { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cat-desc { font-size: 12px; color: var(--fg-dim); margin-top: 2px; }
.cat-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(47, 129, 247, .18);
  color: var(--accent);
  border: 1px solid rgba(47, 129, 247, .4);
  border-radius: 999px;
  padding: 1px 8px;
}
.cat-badge.warn { background: rgba(227, 179, 65, .15); color: var(--gold); border-color: rgba(227, 179, 65, .4); }

/* ---------- toast ---------- */
#toast {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg3);
  border: 1px solid var(--line);
  padding: 10px 12px 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  z-index: 99;
  max-width: 90vw;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
}
#toast.error { border-color: var(--danger); color: var(--danger); }
.toast-action { min-height: 32px; padding: 0 12px; color: var(--accent); font-weight: 600; }
.hidden { display: none !important; }

/* ---------- responsivo (celular) ---------- */
@media (max-width: 760px) {
  /* topo: os botoes viram itens do proprio #topbar; a busca abre numa 2a linha inteira */
  #topbar { padding: 8px 10px; gap: 8px; flex-wrap: wrap; }
  #brand { font-size: 17px; margin-right: auto; }
  .brand-ic { width: 24px; height: 24px; }
  #top-actions { display: contents; }
  #btn-fav { padding: 0; width: 40px; }
  #btn-fav .lbl { display: none; }
  #btn-search { display: inline-flex; }
  #filters { display: none; order: 9; flex-basis: 100%; }
  #topbar.search-open #filters { display: flex; }
  #search { max-width: none; min-width: 0; }
  #cat-filter { max-width: 45%; }

  /* video em 16:9 no topo, lista embaixo */
  #layout { flex-direction: column; }
  #stage { order: -1; flex: none; }
  #video-wrap { flex: none; width: 100%; aspect-ratio: 16 / 9; }
  #sidebar { width: 100%; min-width: 0; flex: 1; border-right: none; }

  #video-overlay { font-size: 16px; padding: 10px; }
  .play-error { padding: 12px 16px; }
  .pe-title { font-size: 15px; }
  .pe-msg { font-size: 12px; margin: 6px 0 10px; }
  .pe-actions .btn { min-height: 36px; }
  #osd { top: 8px; left: 8px; padding: 6px 12px 6px 6px; gap: 8px; }
  .osd-logo { width: 34px; height: 34px; }
  .osd-name { font-size: 15px; }
  #volume { width: 72px; }
  .vbtn { width: 40px; height: 40px; }

  /* biblioteca: abas em linha no topo, conteudo ocupa o resto */
  body.library-mode #stage { order: 0; flex: 1; min-height: 0; }
  body.library-mode #sidebar { flex: none; }
  body.library-mode #library-nav { flex-direction: row; padding: 6px; }
  body.library-mode #library { padding: 12px; }
  .lib-tab { flex: 1; justify-content: center; min-height: 40px; padding: 0 8px; }
  .lib-tab.active { box-shadow: inset 0 -3px 0 var(--accent); }
  .lib-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px 10px; }
  .sd-head { gap: 14px; }
  .sd-poster { width: 96px; }
  .sd-info h2 { font-size: 20px; }
  .sd-overview { -webkit-line-clamp: 3; }
  .ep-overview { padding-left: 0; }
  .ep-progress { margin-left: 0; }
  /* assistindo: o video ocupa a tela toda */
  body.library-playing #sidebar { display: none; }
  body.library-mode.library-playing #video-wrap { aspect-ratio: auto; }

  .welcome-inner { padding: 24px 16px; }
  #welcome h1 { font-size: 24px; }
  #welcome-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .welcome-card { min-height: 96px; padding: 14px; }
  .wc-name { font-size: 16px; }
}
