/* =====================================================================
 * Zenith AutoOS · Central — estilos do motor de apps (#c-appx),
 * janela "Mais apps" por categoria e extensões do Settings
 * ===================================================================== */
.central-lcd[data-screen="app"] #c-appx { display: grid; }
.c-appx {
  --xapp: #38bdf8;
  grid-template-columns: 21cqw minmax(0, 1fr) 22cqw;
  background:
    radial-gradient(70% 90% at 60% 25%, color-mix(in srgb, var(--xapp) 16%, transparent), transparent 70%),
    linear-gradient(160deg, #161a22 0%, #0d0f14 100%);
}
.c-appx.no-aside { grid-template-columns: 21cqw minmax(0, 1fr); }
.x-side h2 { display: flex; align-items: center; gap: 0.8cqw; font-size: 3.6cqh !important; line-height: 1.05; }
.x-app-ic { width: 5.4cqh; height: 5.4cqh; flex-shrink: 0; border-radius: 1.5cqh; display: grid; place-items: center; font-size: 3cqh; background: linear-gradient(160deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 60%, #000)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.x-nav-ic { width: 2.9cqh; text-align: center; flex-shrink: 0; }
.x-back { margin-top: auto; color: #94a3b8 !important; }
.x-content { padding-right: 1.4cqw; }
.x-aside { overflow-y: auto; }

.x-head { margin: -0.6cqh 0 2cqh; padding: 1.4cqh 1.2cqw; border-radius: 1.6cqh; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); }
.x-head p { margin: 0 0 1cqh; font: 500 2.05cqh "Rajdhani", system-ui, sans-serif; color: #cbd5e1; line-height: 1.3; }
.x-chips { display: flex; flex-wrap: wrap; gap: 0.6cqw; }
.x-chips span, .x-chip-go { padding: 0.4cqh 0.8cqw; border-radius: 99px; font: 700 1.6cqh "Rajdhani", system-ui, sans-serif; background: color-mix(in srgb, var(--xapp) 22%, transparent); color: #e2e8f0; border: 1px solid color-mix(in srgb, var(--xapp) 45%, transparent); }
.x-chip-go { appearance: none; cursor: pointer; background: rgba(255, 255, 255, 0.06); }
.x-chip-go:hover { background: rgba(255, 255, 255, 0.14); }

.x-text { margin: 0; font: 500 2cqh "Rajdhani", system-ui, sans-serif; color: #cbd5e1; line-height: 1.35; }
.x-text code { font-size: 1.8cqh; color: #7dd3fc; }
.x-info { max-width: 45%; text-align: right; }

.x-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(13cqw, 1fr)); gap: 0.8cqw; }
.x-stat { padding: 1.2cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.05); border-left: 0.4cqh solid var(--xc, color-mix(in srgb, var(--xapp) 70%, transparent)); display: flex; flex-direction: column; gap: 0.3cqh; min-width: 0; }
.x-stat small { font: 600 1.65cqh "Rajdhani", system-ui, sans-serif; color: #94a3b8; }
.x-stat b { font: 700 2.5cqh "Rajdhani", system-ui, sans-serif; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.x-btns { display: flex; flex-wrap: wrap; gap: 0.7cqw; }
.x-btn.x-danger { border-color: rgba(248, 113, 113, 0.5); color: #fecaca; }

.x-list { display: flex; flex-direction: column; gap: 0.7cqh; }
.x-li { display: flex; align-items: center; gap: 1cqw; padding: 1cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.045); border: 1px solid transparent; }
.x-li.on { border-color: color-mix(in srgb, var(--xc, var(--xapp)) 60%, transparent); background: color-mix(in srgb, var(--xc, var(--xapp)) 12%, rgba(255, 255, 255, 0.04)); }
.x-li > i { font-style: normal; font-size: 2.8cqh; width: 3.4cqh; text-align: center; flex-shrink: 0; }
.x-li > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.x-li b { font: 600 2.2cqh "Rajdhani", system-ui, sans-serif; color: #f1f5f9; }
.x-li small { font: 500 1.75cqh "Rajdhani", system-ui, sans-serif; color: #9ca3af; }
.x-li em { font: 700 1.9cqh "Rajdhani", system-ui, sans-serif; font-style: normal; color: var(--xc, #cbd5e1); white-space: nowrap; }
.x-li-act { flex-shrink: 0; }
.x-empty { padding: 1.4cqh 1cqw; color: #64748b; font: 600 2cqh "Rajdhani", system-ui, sans-serif; }

.x-bar { display: flex; flex-direction: column; gap: 0.6cqh; }
.x-bar > div { display: flex; justify-content: space-between; gap: 1cqw; font-size: 2.1cqh; }
.x-bar small { color: #9ca3af; font-size: 1.8cqh; text-align: right; }
.x-bar > i { height: 0.9cqh; border-radius: 99px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.x-bar > i > s { display: block; height: 100%; border-radius: 99px; background: var(--xapp); transition: width 0.3s ease; }

.x-spark { padding: 1.2cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.04); }
.x-spark-h { display: flex; justify-content: space-between; font-size: 2cqh; margin-bottom: 0.6cqh; }
.x-spark-h span { font-weight: 700; color: var(--xapp); }
.x-spark canvas { width: 100%; height: 11cqh; display: block; }

.x-log { white-space: pre-wrap; max-height: 22cqh; overflow-y: auto; padding: 1cqh 1cqw; border-radius: 1.2cqh; background: rgba(0, 0, 0, 0.35); font: 500 1.75cqh ui-monospace, "JetBrains Mono", monospace; color: #a7f3d0; }
.x-input, .x-chat-in { display: flex; gap: 0.8cqw; }
.x-input input, .x-chat-in input { flex: 1; min-width: 0; padding: 1cqh 1.2cqw; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.06); color: #fff; font: 600 2cqh "Rajdhani", system-ui, sans-serif; outline: none; }
.x-input input:focus, .x-chat-in input:focus { border-color: var(--xapp); }

/* Telefone */
.x-phone { display: flex; flex-direction: column; align-items: center; gap: 1.2cqh; }
.x-phone-num { min-height: 5cqh; font: 700 4cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.08em; }
.x-keys { display: grid; grid-template-columns: repeat(3, 9cqh); gap: 1.2cqh 1.2cqw; }
.x-keys button, .x-phone-act button { appearance: none; height: 9cqh; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.07); color: #fff; font: 700 3.4cqh "Rajdhani", system-ui, sans-serif; cursor: pointer; }
.x-keys button:active { background: rgba(255, 255, 255, 0.2); }
.x-phone-act { display: flex; gap: 1.2cqw; }
.x-phone-act .x-call { width: 22cqh; border-radius: 99px; background: #16a34a; font-size: 2.6cqh; }
.x-phone-act .x-del { width: 9cqh; }

/* Projeção CarPlay / Android Auto */
.x-proj { border-radius: 2cqh; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1); background: #0b0d12; opacity: 0.45; filter: grayscale(0.7); transition: all 0.4s ease; }
.x-proj.on { opacity: 1; filter: none; }
.x-proj-bar { padding: 1cqh 1.4cqw; font: 700 1.9cqh "Rajdhani", system-ui, sans-serif; color: #cbd5e1; background: rgba(255, 255, 255, 0.05); }
.x-proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2cqh 1cqw; padding: 2.4cqh 1.6cqw; }
.x-proj-grid span { display: flex; flex-direction: column; align-items: center; gap: 0.6cqh; font: 600 1.8cqh "Rajdhani", system-ui, sans-serif; }
.x-proj-grid i { width: 8cqh; height: 8cqh; border-radius: 2cqh; display: grid; place-items: center; font-style: normal; font-size: 3.8cqh; background: var(--c); }

/* Canvas (RTA, radar ADAS, G-G, jogo) */
.x-rta, .x-radar, .x-gg { width: 100%; max-height: 52cqh; aspect-ratio: auto; border-radius: 1.6cqh; background: #070b14; display: block; }
.x-radar, .x-gg { max-width: 52cqh; margin: 0 auto; }
.x-game { display: flex; flex-direction: column; align-items: center; gap: 1cqh; }
.x-game canvas { width: min(100%, 72cqh); border-radius: 1.4cqh; image-rendering: pixelated; }
.x-game-ctl { display: grid; grid-template-columns: repeat(4, 7cqh); gap: 0.6cqw; }
.x-game-ctl button { appearance: none; height: 6cqh; border-radius: 1.2cqh; border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.08); color: #fff; font-size: 2.6cqh; cursor: pointer; }
.x-game small { color: #94a3b8; font-size: 1.8cqh; }

/* OLED fail-safe */
.x-oled { white-space: pre; padding: 1.6cqh 1.6cqw; width: max-content; border-radius: 1cqh; background: #000; border: 0.6cqh solid #1f2937; font: 700 2.6cqh ui-monospace, monospace; color: #7dd3fc; text-shadow: 0 0 0.8cqh rgba(125, 211, 252, 0.6); }

/* Copiloto */
.x-chat { display: flex; flex-direction: column; gap: 1.2cqh; }
.x-chat-log { height: 40cqh; overflow-y: auto; display: flex; flex-direction: column; gap: 0.8cqh; padding: 1cqh; border-radius: 1.6cqh; background: rgba(0, 0, 0, 0.25); }
.x-msg { max-width: 78%; padding: 1cqh 1.2cqw; border-radius: 1.6cqh; font: 500 2.05cqh "Rajdhani", system-ui, sans-serif; line-height: 1.3; }
.x-msg.ia { align-self: flex-start; background: rgba(139, 92, 246, 0.22); border: 1px solid rgba(167, 139, 250, 0.35); }
.x-msg.eu { align-self: flex-end; background: rgba(255, 255, 255, 0.1); }

/* Mascote */
.x-mascot { display: flex; align-items: center; gap: 1.4cqw; padding: 2cqh 1.6cqw; border-radius: 2cqh; background: linear-gradient(135deg, rgba(234, 88, 12, 0.18), rgba(255, 255, 255, 0.04)); }
.x-mascot span { font-size: 9cqh; animation: xBob 2.4s ease-in-out infinite; }
.x-mascot b { flex: 1; font: 600 2.4cqh "Rajdhani", system-ui, sans-serif; }
.x-mascot em { font-style: normal; font-size: 5cqh; }
@keyframes xBob { 50% { transform: translateY(-1cqh) rotate(-4deg); } }

/* Janela "Mais apps" agrupada por categoria */
.c-apps-cat { grid-column: 1 / -1; margin: 1cqh 0 -0.6cqh; padding-bottom: 0.6cqh; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font: 700 1.8cqh "Rajdhani", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: #8b8fa3; }
.c-apps-cat:first-child { margin-top: 0; }
.c-apps-win { width: 80cqw !important; max-height: 76cqh !important; }

/* Extensões do Settings */
.x-sdesc { margin: -0.8cqh 0 2cqh; font: 500 2cqh "Rajdhani", system-ui, sans-serif; color: #a5a5b8; }
.x-phase { margin-left: 0.6cqw; padding: 0.1cqh 0.6cqw; border-radius: 99px; font: 700 1.45cqh "Rajdhani", system-ui, sans-serif; color: #93c5fd; background: rgba(59, 130, 246, 0.16); vertical-align: middle; }
#c-settings .x-btns { margin-top: 0.4cqh; }

/* ---------------------------------------------------------------------
 * Diário de Bordo — painel (velocímetro), gráficos e infrações
 * --------------------------------------------------------------------- */
.dz-panel { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 1.15fr); gap: 0.8cqw; align-items: stretch; margin-bottom: 1.2cqh; }
.dz-gbox { position: relative; border-radius: 1.6cqh; background: radial-gradient(80% 80% at 50% 45%, rgba(14, 165, 233, 0.12), transparent 70%), rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.07); min-height: 30cqh; }
.dz-gbox-sm { background: radial-gradient(80% 80% at 50% 45%, rgba(167, 139, 250, 0.12), transparent 70%), rgba(255, 255, 255, 0.04); }
.dz-gbox canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.dz-ind { display: flex; flex-direction: column; gap: 0.7cqh; min-width: 0; }
.dz-ind > div { display: flex; align-items: center; gap: 0.8cqw; padding: 0.8cqh 0.8cqw; border-radius: 1.3cqh; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
.dz-ind > div > div { display: flex; flex-direction: column; min-width: 0; }
.dz-ind small { font: 600 1.5cqh "Rajdhani", system-ui, sans-serif; color: #94a3b8; }
.dz-ind em { font: 700 1.8cqh "Rajdhani", system-ui, sans-serif; font-style: normal; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-plate { width: 5.2cqh; height: 5.2cqh; flex-shrink: 0; border-radius: 50%; background: #fff; border: 0.6cqh solid #dc2626; display: grid; place-items: center; }
.dz-plate b { font: 800 2.2cqh "Rajdhani", system-ui, sans-serif; color: #111; }
.dz-lamps { display: flex; flex-direction: column; gap: 0.3cqh; padding: 0.4cqh; border-radius: 0.8cqh; background: #0b0d10; flex-shrink: 0; }
.dz-lamps i { width: 1.4cqh; height: 1.4cqh; border-radius: 50%; background: #1f2329; }
.dz-sig[data-ph="red"] .dz-lamps i:nth-child(1) { background: #ef4444; box-shadow: 0 0 1cqh #ef4444; }
.dz-sig[data-ph="yellow"] .dz-lamps i:nth-child(2) { background: #fbbf24; box-shadow: 0 0 1cqh #fbbf24; }
.dz-sig[data-ph="green"] .dz-lamps i:nth-child(3) { background: #22c55e; box-shadow: 0 0 1cqh #22c55e; }
.dz-sig[data-ph="red"] { border-color: rgba(239, 68, 68, 0.5) !important; }
.dz-ricon { font-size: 2.8cqh; flex-shrink: 0; }
.dz-radar.on { border-color: rgba(245, 158, 11, 0.55) !important; background: rgba(245, 158, 11, 0.1) !important; }
.dz-flag { justify-content: center; font: 700 1.8cqh "Rajdhani", system-ui, sans-serif; color: #6ee7b7; background: rgba(16, 185, 129, 0.1) !important; }
.dz-flag.bad { color: #fecaca; background: rgba(239, 68, 68, 0.22) !important; border-color: rgba(239, 68, 68, 0.6) !important; animation: dz-pulse 0.9s ease-in-out infinite alternate; }
@keyframes dz-pulse { from { opacity: 0.7; } to { opacity: 1; } }

.dz-chart { padding: 1.1cqh 1cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.06); min-width: 0; }
.dz-chart-h { display: flex; justify-content: space-between; align-items: baseline; gap: 1cqw; margin-bottom: 0.6cqh; }
.dz-chart-h b { font: 700 2cqh "Rajdhani", system-ui, sans-serif; color: #f1f5f9; }
.dz-chart-h small { font: 600 1.55cqh "Rajdhani", system-ui, sans-serif; color: #94a3b8; text-align: right; }
.dz-chart canvas { width: 100%; height: 20cqh; display: block; }
.dz-chart-tall canvas { height: 26cqh; }
.dz-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.8cqw; margin-top: 1cqh; }

.dz-inf-list { display: flex; flex-direction: column; gap: 0.8cqh; margin: 1cqh 0; }
.dz-inf { appearance: none; cursor: pointer; text-align: left; display: flex; align-items: center; gap: 1cqw; padding: 0.8cqh 0.9cqw; border-radius: 1.4cqh; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(245, 158, 11, 0.35); color: inherit; }
.dz-inf.sinal { border-color: rgba(239, 68, 68, 0.45); }
.dz-inf:hover { background: rgba(255, 255, 255, 0.09); }
.dz-inf img, .dz-nophoto { width: 13cqh; height: 7.3cqh; flex-shrink: 0; border-radius: 0.8cqh; object-fit: cover; background: #0b0f0d; display: grid; place-items: center; font-size: 2.4cqh; }
.dz-inf > div { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dz-inf b { font: 700 2cqh "Rajdhani", system-ui, sans-serif; color: #f8fafc; }
.dz-inf small { font: 500 1.6cqh "Rajdhani", system-ui, sans-serif; color: #9ca3af; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dz-inf em { font: 700 1.6cqh "Rajdhani", system-ui, sans-serif; font-style: normal; color: #fca5a5; text-align: right; flex-shrink: 0; }

.dz-modal { position: absolute; inset: 0; z-index: 80; display: grid; place-items: center; background: rgba(2, 6, 12, 0.78); backdrop-filter: blur(4px); }
.dz-modal-card { width: 88cqw; max-height: 92cqh; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.4cqw; padding: 2cqh 1.6cqw; border-radius: 2cqh; background: linear-gradient(160deg, #161a22, #0d0f14); border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: 0 2cqh 6cqh rgba(0, 0, 0, 0.6); }
.dz-modal-card > img, .dz-nophoto.big { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: 1.2cqh; object-fit: cover; }
.dz-modal-info { display: flex; flex-direction: column; gap: 0.7cqh; }
.dz-modal-info div { display: flex; flex-direction: column; }
.dz-modal-info small { font: 600 1.5cqh "Rajdhani", system-ui, sans-serif; color: #94a3b8; }
.dz-modal-info b { font: 700 2cqh "Rajdhani", system-ui, sans-serif; color: #f1f5f9; }
.dz-modal-card .x-btns { grid-column: 1 / -1; justify-content: flex-end; }

/* =====================================================================
 * Zenith IPTV Player — TV ao vivo · Filmes · Séries (central_iptv.js)
 * ===================================================================== */
#mview-iptv.iptv { gap: 6px; }
.iptv-top { display: flex; align-items: center; gap: 6px; }
.iptv-modes { display: flex; gap: 4px; }
.iptv-mode {
  appearance: none; cursor: pointer; border: 1px solid rgba(148,163,184,.22); background: rgba(15,23,42,.78);
  color: #cbd5e1; border-radius: 8px; padding: 5px 10px; font-size: 10px; font-weight: 800; white-space: nowrap;
}
.iptv-mode.active { border-color: #c084fc; background: rgba(168,85,247,.22); color: #e9d5ff; box-shadow: 0 0 10px rgba(168,85,247,.25); }
.iptv-search {
  flex: 1; min-width: 0; background: rgba(2,6,23,.7); border: 1px solid rgba(148,163,184,.22); border-radius: 8px;
  color: #e2e8f0; font-size: 9.5px; padding: 5px 8px; outline: none;
}
.iptv-search:focus { border-color: #c084fc; }
.iptv-count { font-size: 8.5px; color: #94a3b8; font-weight: 700; white-space: nowrap; }

.iptv-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 128px; gap: 6px; }
.iptv-main { min-width: 0; min-height: 0; display: flex; flex-direction: column; gap: 6px; }

/* Categorias (menu à direita) */
.iptv-cats {
  min-height: 0; display: flex; flex-direction: column; background: rgba(2,6,23,.6);
  border: 1px solid rgba(148,163,184,.16); border-radius: 10px; overflow: hidden;
}
.iptv-cats-h { font-size: 8.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #c084fc; padding: 6px 8px 4px; }
#iptv-cats { flex: 1; min-height: 0; overflow-y: auto; padding: 0 4px 4px; display: flex; flex-direction: column; gap: 2px; }
.iptv-cat {
  appearance: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 4px;
  border: 1px solid transparent; background: transparent; color: #cbd5e1; border-radius: 6px;
  padding: 4px 5px; font-size: 8.8px; font-weight: 700; text-align: left;
}
.iptv-cat:hover { background: rgba(148,163,184,.1); }
.iptv-cat.active { background: rgba(168,85,247,.2); border-color: rgba(192,132,252,.6); color: #f3e8ff; }
.iptv-cat.sep { margin-top: 0; }
.iptv-cat:nth-child(3) { margin-bottom: 4px; border-bottom-color: rgba(148,163,184,.14); border-radius: 6px 6px 0 0; }
.iptv-cat-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iptv-cat-n { font-size: 8px; color: #94a3b8; background: rgba(148,163,184,.12); border-radius: 6px; padding: 0 4px; flex-shrink: 0; }

/* Palco / player */
.iptv-stage {
  position: relative; flex-shrink: 0; height: 112px; border-radius: 10px; border: 1px solid rgba(168,85,247,.4);
  display: flex; justify-content: space-between; align-items: flex-end; gap: 8px; padding: 8px 10px; overflow: hidden;
}
.iptv-st-info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.iptv-badge { font-size: 8.5px; font-weight: 800; color: #c084fc; letter-spacing: .03em; }
.iptv-badge.live { color: #f87171; }
.iptv-st-title { font-size: 14px; font-weight: 900; color: #f8fafc; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iptv-st-meta { font-size: 9px; color: #cbd5e1; }
.iptv-st-next { font-size: 8.5px; color: #94a3b8; }
.iptv-st-desc { font-size: 8.5px; color: #94a3b8; max-width: 340px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iptv-st-acts { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.iptv-btn {
  appearance: none; cursor: pointer; border: 1px solid rgba(148,163,184,.25); background: rgba(15,23,42,.85);
  color: #e2e8f0; border-radius: 7px; padding: 4px 8px; font-size: 9px; font-weight: 800; white-space: nowrap;
}
.iptv-btn.primary { background: linear-gradient(135deg,#a855f7,#6366f1); border-color: transparent; color: #fff; }
.iptv-btn.on { border-color: #fbbf24; color: #fbbf24; }
.iptv-prog { height: 3px; width: 220px; max-width: 100%; background: rgba(148,163,184,.25); border-radius: 3px; overflow: hidden; margin-top: 2px; }
.iptv-prog i { display: block; height: 100%; background: linear-gradient(90deg,#a855f7,#38bdf8); }
.iptv-prog.sm { width: 100%; height: 2px; }

/* Lista */
.iptv-list { flex: 1; min-height: 0; overflow-y: auto; }
.iptv-list.rows { display: flex; flex-direction: column; gap: 3px; }
.iptv-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 6px; align-content: start; }
.iptv-empty { font-size: 10px; color: #64748b; text-align: center; padding: 18px 0; grid-column: 1 / -1; margin: auto; }

.iptv-ch {
  display: grid; grid-template-columns: 24px 26px 1fr auto auto; align-items: center; gap: 6px; cursor: pointer;
  padding: 3px 6px; border-radius: 7px; border: 1px solid rgba(148,163,184,.12); background: rgba(15,23,42,.6);
}
.iptv-ch:hover { border-color: rgba(148,163,184,.3); }
.iptv-ch.active { border-color: #c084fc; background: rgba(168,85,247,.16); }
.iptv-ch-num { font-size: 9px; font-weight: 800; color: #94a3b8; text-align: right; }
.iptv-logo { width: 26px; height: 20px; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 7px; font-weight: 900; color: #fff; letter-spacing: .02em; }
.iptv-ch-mid { min-width: 0; }
.iptv-ch-name { font-size: 9.5px; font-weight: 800; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iptv-ch-now { font-size: 8px; color: #94a3b8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.iptv-q { font-size: 7.5px; font-weight: 800; color: #38bdf8; border: 1px solid rgba(56,189,248,.4); border-radius: 4px; padding: 0 3px; }
.iptv-star { appearance: none; background: none; border: 0; cursor: pointer; color: #64748b; font-size: 12px; padding: 0 2px; }
.iptv-star.on { color: #fbbf24; }

.iptv-poster {
  position: relative; aspect-ratio: 2 / 3; border-radius: 8px; cursor: pointer; overflow: hidden;
  border: 1px solid rgba(148,163,184,.18); transition: transform .15s ease, border-color .15s ease;
}
.iptv-poster:hover { transform: translateY(-2px); }
.iptv-poster.active { border-color: #c084fc; box-shadow: 0 0 0 1px #c084fc, 0 0 12px rgba(168,85,247,.45); }
.iptv-plat { position: absolute; top: 4px; left: 4px; font-size: 6.5px; font-weight: 900; color: #fff; border-radius: 3px; padding: 1px 3px; }
.iptv-rate { position: absolute; top: 4px; right: 4px; font-size: 7px; font-weight: 800; color: #fde68a; background: rgba(2,6,23,.6); border-radius: 3px; padding: 0 3px; }
.iptv-pfav { position: absolute; top: 16px; right: 5px; font-size: 9px; color: #fbbf24; }
.iptv-cap { position: absolute; inset: auto 0 0 0; padding: 14px 5px 4px; background: linear-gradient(transparent, rgba(2,6,23,.92)); }
.iptv-cap-t { font-size: 8.5px; font-weight: 800; color: #fff; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.iptv-cap-s { font-size: 7px; color: #cbd5e1; }

.iptv-seasons { display: flex; flex-wrap: wrap; gap: 3px; margin-bottom: 3px; }
.iptv-seasons .iptv-btn { padding: 2px 7px; }
.iptv-seasons .iptv-btn.on { border-color: #c084fc; color: #e9d5ff; background: rgba(168,85,247,.22); }
.iptv-ep {
  display: grid; grid-template-columns: 52px 1fr auto 18px; gap: 6px; align-items: center; cursor: pointer;
  padding: 4px 8px; border-radius: 7px; border: 1px solid rgba(148,163,184,.12); background: rgba(15,23,42,.6); font-size: 9px;
}
.iptv-ep.active { border-color: #f87171; background: rgba(239,68,68,.12); }
.iptv-ep-n { font-weight: 800; color: #c084fc; }
.iptv-ep-t { color: #e2e8f0; font-weight: 700; }
.iptv-ep-d { color: #94a3b8; font-size: 8px; }
.iptv-ep-p { color: #f8fafc; text-align: center; }

/* ---- Áudio DSP · mapa da cabine (sweet spot arrastável) ---- */
.x-spotmap { display: grid; gap: 1.2cqh; margin-bottom: 1.6cqh; }
.x-spotmap .sm-svg { width: 100%; max-height: 50cqh; display: block; border-radius: 1.6cqh; background: radial-gradient(120% 120% at 70% 50%, #111827 0%, #070b14 70%); touch-action: none; cursor: crosshair; user-select: none; }
.x-spotmap.dragging .sm-svg { cursor: grabbing; }
.sm-body { fill: #0f1625; stroke: #3b4a66; stroke-width: 3; }
.sm-hood { stroke: none; }
.sm-glass { fill: none; stroke: #38bdf8; stroke-opacity: .35; stroke-width: 4; }
.sm-dash { fill: #1e293b; stroke: #334155; stroke-width: 1.5; }
.sm-div { stroke: #334155; stroke-width: 2; stroke-dasharray: 6 6; }
.sm-door { stroke: #64748b; stroke-width: 3; }
.sm-console { fill: #141c2c; stroke: #263247; }
.sm-wheel { fill: none; stroke: #475569; stroke-width: 6; }
.sm-seat rect { fill: #1c2538; stroke: #2e3b55; stroke-width: 1.5; }
.sm-seat .sm-back { fill: #232e46; }
.sm-lbl { font: 600 15px system-ui, sans-serif; fill: #cbd5e1; }
.sm-dim { fill: #64748b; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.sm-snap { fill: none; stroke: #475569; stroke-width: 1.5; stroke-dasharray: 3 3; transition: all .15s; }
.sm-snap.on { stroke: #22d3ee; stroke-dasharray: none; r: 11; }
.sm-rays line { stroke: #a855f7; stroke-opacity: .45; stroke-width: 1.5; stroke-dasharray: 4 5; }
.sm-spk circle { fill: #2a1747; stroke: #a855f7; stroke-width: 2; }
.sm-spk text { font: 700 11px system-ui, sans-serif; fill: #e9d5ff; pointer-events: none; }
.sm-focus { cursor: grab; }
.sm-dot { fill: #22d3ee; stroke: #ecfeff; stroke-width: 3; filter: drop-shadow(0 0 6px #22d3ee); }
.sm-ring { fill: none; stroke: #22d3ee; stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; animation: smPulse 2.2s ease-out infinite; }
.sm-r2 { animation-delay: 1.1s; }
@keyframes smPulse { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(1.6); } }
.sm-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 2cqh; flex-wrap: wrap; }
.sm-name { font-weight: 700; color: #22d3ee; font-size: 2.3cqh; }
.sm-hint { color: #94a3b8; font-size: 1.7cqh; }
.sm-chips { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8cqh; }
.sm-chip { background: rgba(255,255,255,.04); border: 1px solid rgba(168,85,247,.25); border-radius: 1cqh; padding: .7cqh 1cqh; display: grid; gap: .2cqh; }
.sm-chip b { color: #e9d5ff; font-size: 1.7cqh; }
.sm-chip span { color: #94a3b8; font-size: 1.5cqh; white-space: nowrap; }

/* ===== Gaveta "Todos os apps" — legibilidade + ícones oficiais ===== */
.c-apps-win { font-family: "Segoe UI", "Inter", system-ui, -apple-system, sans-serif !important; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.c-apps-head b { font: 700 max(18px, 3.6cqh) "Segoe UI", "Inter", system-ui, sans-serif; color: #fff; letter-spacing: 0; white-space: nowrap; }
.c-apps-head input { font: 500 max(14px, 2.4cqh) "Segoe UI", "Inter", system-ui, sans-serif !important; color: #fff; padding: max(8px, 1.2cqh) 1.4cqw !important; }
.c-apps-head input::placeholder { color: #a1a7b8; opacity: 1; }
.c-apps-cat { font: 700 max(12px, 2.1cqh) "Segoe UI", "Inter", system-ui, sans-serif !important; letter-spacing: 0.08em !important; color: #c7cbe0 !important; border-bottom-color: rgba(255, 255, 255, 0.14) !important; margin-top: 1.6cqh !important; }
.c-apps-item { font: 600 max(12px, 2.25cqh)/1.2 "Segoe UI", "Inter", system-ui, sans-serif !important; color: #f8fafc !important; letter-spacing: 0; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); gap: 1cqh !important; }
.c-apps-item b { font-weight: 600; max-width: 100%; overflow-wrap: normal; word-break: normal; hyphens: manual; }
.c-apps-grid { gap: 2.6cqh 1cqw !important; }
.c-apps-ic-img { padding: 0; overflow: hidden; }
.c-apps-ic-img img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.c-apps-ic-img.is-full { background: transparent !important; }
.c-apps-ic-img.is-logo { background: linear-gradient(160deg, #2a2a33, #111116) !important; }
.c-apps-ic-img.is-logo img { width: 72%; height: 72%; object-fit: contain; }
