/*
 * NUTEF TV Web — tv.css
 * Palco lógico fixo 1920×1080 escalado por JS (letterbox) + safe area de ~5%.
 * Compatível com motores antigos de TV: sem CSS Grid, sem gap, sem variáveis
 * obrigatórias; flex apenas onde há alternativa (inline-block/table).
 */

/* ---------- Base ---------- */
html, body {
  margin: 0; padding: 0; width: 100%; height: 100%;
  overflow: hidden; background: #000;
}
* { -webkit-box-sizing: border-box; box-sizing: border-box; }
body {
  font-family: "Samsung One", "SamsungOne", "Tizen", "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  color: #F4F7FF;
}
h1, h2, h3, h4, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { border: 0; }
:focus { outline: none; }

#viewport {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%;
  overflow: hidden; background: #000;
}

#stage {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px; overflow: hidden;
  -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0;
  background: #0A1020;
  background: -webkit-linear-gradient(top, #0A1020 0%, #111A33 100%);
  background: linear-gradient(to bottom, #0A1020 0%, #111A33 100%);
  font-size: 28px; line-height: 1.3;
}

/* Safe area: ~5% de cada lado (1728×972 úteis). */
#safe { position: absolute; left: 96px; top: 54px; right: 96px; bottom: 54px; }

/* ---------- Cabeçalho ---------- */
#header {
  position: absolute; left: 0; right: 0; top: 0; height: 100px;
  display: table; width: 100%; table-layout: fixed;
}
.hdr-cell { display: table-cell; vertical-align: middle; }
.hdr-brand { width: 520px; white-space: nowrap; }
.hdr-right { text-align: right; white-space: nowrap; }
.brand { font-size: 48px; font-weight: bold; letter-spacing: 1px; display: inline-block; vertical-align: middle; }
.brand-n { color: #FF7A1A; }
.brand-tv { color: #FFFFFF; }
.brand-city { display: inline-block; vertical-align: middle; margin-left: 18px; font-size: 24px; color: #AFC0E6; line-height: 1.15; }
.hdr-clock { display: inline-block; vertical-align: middle; text-align: right; margin-left: 28px; }
.hdr-time { font-size: 44px; font-weight: bold; line-height: 1; display: block; }
.hdr-date { font-size: 24px; color: #AFC0E6; display: block; }
.hdr-btn {
  display: inline-block; vertical-align: middle; height: 68px; line-height: 68px; padding: 0 28px;
  margin-left: 18px; border-radius: 34px; background: #1C2A4D; color: #FFFFFF;
  font-size: 28px; font-weight: bold; white-space: nowrap; border: 2px solid #33477A;
}
.hdr-btn .ico { width: 34px; height: 34px; vertical-align: middle; margin: -4px 10px 0 0; }

/* ---------- Área da tela ---------- */
/* Estende 40px para fora da safe area apenas para caber o anel de foco. */
#screen {
  position: absolute; left: -40px; right: -40px; top: 108px; bottom: 62px;
  overflow: hidden;
}
.page { padding: 18px 40px 60px 40px; }

#footer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 52px; line-height: 52px;
  font-size: 26px; color: #AFC0E6; white-space: nowrap; overflow: hidden;
  border-top: 2px solid #22305A;
}
#footer .ft-right { float: right; }
#footer b { color: #FFFFFF; }
#stage.no-hints #footer .ft-hints { visibility: hidden; }

/* Modo tela cheia (Business TV, player em tela cheia): esconde cabeçalho/rodapé. */
#stage.is-fullscreen #safe { left: 0; top: 0; right: 0; bottom: 0; }
#stage.is-fullscreen #header, #stage.is-fullscreen #footer { display: none; }
#stage.is-fullscreen #screen { left: 0; right: 0; top: 0; bottom: 0; }

/* ---------- Foco ---------- */
.focusable {
  position: relative; cursor: pointer;
  -webkit-transition: -webkit-transform 0.12s ease-out, box-shadow 0.12s ease-out;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
button, a {
  font-family: inherit; font-size: inherit; color: inherit; text-decoration: none;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  border: 0; outline: 0; margin-top: 0; margin-bottom: 0; text-align: left;
}
button::-moz-focus-inner { border: 0; padding: 0; }
.focusable.is-focused {
  z-index: 5;
  box-shadow: 0 0 0 5px #000000, 0 0 0 11px #FFE14D, 0 14px 32px rgba(0, 0, 0, 0.6);
  -webkit-transform: scale(1.06); -ms-transform: scale(1.06); transform: scale(1.06);
}
.btn.is-focused, .hdr-btn.is-focused, .chip.is-focused, .list-item.is-focused, .opt.is-focused {
  background: #FFFFFF; color: #0A1020; border-color: #FFFFFF;
}
.btn.is-focused .ico, .hdr-btn.is-focused .ico { color: #0A1020; }

/* ---------- Botões ---------- */
.btn {
  display: inline-block; vertical-align: middle; height: 76px; line-height: 72px;
  padding: 0 38px; margin: 0 22px 14px 0; border-radius: 38px;
  background: #1C2A4D; color: #FFFFFF; border: 2px solid #3A5088;
  font-size: 30px; font-weight: bold; white-space: nowrap; text-align: center;
}
.btn .ico { width: 36px; height: 36px; vertical-align: middle; margin: -5px 12px 0 0; }
.btn-primary { background: #FF7A1A; color: #160A00; border-color: #FF7A1A; }
.btn-big { height: 96px; line-height: 92px; font-size: 38px; padding: 0 56px; border-radius: 48px; }
.btn-back { margin-right: 28px; margin-bottom: 0; }

/* ---------- Ícones (SVG inline) ---------- */
.ico {
  display: inline-block; width: 56px; height: 56px; fill: none; stroke: currentColor;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- Cabeçalho de página ---------- */
.page-head { white-space: nowrap; margin: 4px 0 22px 0; }
.page-head .btn-back { vertical-align: middle; }
.page-title { display: inline-block; vertical-align: middle; font-size: 52px; font-weight: bold; line-height: 1.1; white-space: normal; max-width: 1300px; }
.page-sub { font-size: 28px; color: #C9D5F0; margin: -8px 0 22px 0; max-width: 1500px; }

/* ---------- Selos ---------- */
.badge {
  display: inline-block; vertical-align: middle; padding: 2px 12px; border-radius: 8px;
  font-size: 22px; font-weight: bold; letter-spacing: 1px; line-height: 1.3;
  background: #FFE14D; color: #1A1400; text-transform: uppercase; white-space: nowrap;
}
.badge-demo { background: #FFE14D; color: #1A1400; }
.badge-live { background: #E5383B; color: #FFFFFF; }
.badge-soft { background: #22305A; color: #DDE6FA; }
.page-title + .badge, .hero-kicker .badge { margin-left: 18px; }

/* ---------- Seções e linhas ---------- */
.section { margin: 0 0 6px 0; }
.section-title { font-size: 36px; font-weight: bold; line-height: 1.2; margin: 0; white-space: nowrap; }
.section-title .badge { margin-left: 14px; }
.section-note { font-size: 26px; color: #AFC0E6; margin: 2px 0 0 0; }
/* Linha horizontal: inline-block + nowrap (não depende de flexbox). */
.row {
  white-space: nowrap; overflow: hidden;
  margin: 0 -40px; padding: 22px 40px 28px 40px;
}
.row > .focusable, .row > .card { margin-right: 28px; }
.wrap { white-space: normal; margin: 0 -40px; padding: 18px 40px 24px 40px; }
.wrap > .focusable { margin: 0 24px 28px 0; }

/* ---------- Cards ---------- */
.card {
  display: inline-block; vertical-align: top; position: relative; overflow: hidden;
  width: 400px; height: 236px; padding: 22px 24px; border-radius: 20px;
  background: #1C2A4D; color: #FFFFFF; white-space: normal; text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.card .badge { position: absolute; top: 18px; right: 18px; }
.card .card-kicker { font-size: 24px; font-weight: bold; color: #FFE7D1; text-transform: uppercase; letter-spacing: 1px; }
.card .card-title { font-size: 34px; font-weight: bold; line-height: 1.15; margin-top: 8px; }
.card .card-meta { font-size: 28px; color: #E3EAFB; margin-top: 8px; line-height: 1.25; }
.card .card-bottom { position: absolute; left: 24px; right: 24px; bottom: 18px; font-size: 26px; color: #FFFFFF; }
.card .card-price { font-size: 40px; font-weight: bold; color: #FFFFFF; }
.card .card-old { font-size: 26px; color: #E3EAFB; text-decoration: line-through; margin-left: 10px; }
.card .ico { position: absolute; right: 22px; bottom: 18px; width: 64px; height: 64px; opacity: 0.85; }
.card-fav { position: absolute; left: 24px; bottom: 18px; font-size: 24px; font-weight: bold; color: #FFE14D; }

.tile {
  display: inline-block; vertical-align: top; position: relative; overflow: hidden;
  width: 262px; height: 206px; padding: 22px 22px; border-radius: 22px;
  background: #1C2A4D; color: #FFFFFF; white-space: normal; text-align: left;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}
.row > .tile { margin-right: 28px; }
.tile .ico { width: 62px; height: 62px; display: block; margin-bottom: 14px; }
.tile .tile-title { font-size: 32px; font-weight: bold; line-height: 1.1; }
.tile .tile-sub { font-size: 26px; color: #E3EAFB; margin-top: 6px; line-height: 1.2; }

.card-small { width: 330px; height: 170px; }
.card-small .card-title { font-size: 30px; }

/* Link de seção ("Todas as seções") */
.chip {
  display: inline-block; vertical-align: top; height: 86px; line-height: 82px; padding: 0 30px 0 22px;
  border-radius: 43px; background: #1C2A4D; border: 2px solid #33477A; color: #FFFFFF;
  font-size: 28px; font-weight: bold; white-space: nowrap;
}
.chip .ico { width: 40px; height: 40px; vertical-align: middle; margin: -5px 12px 0 0; }
.row > .chip { margin-right: 22px; }

/* ---------- Destaque (hero) ---------- */
.hero {
  display: table; width: 100%; table-layout: fixed; height: 300px; margin: 0 0 8px 0;
  border-radius: 26px; overflow: hidden; background: #15224A;
}
.hero-text { display: table-cell; vertical-align: middle; padding: 26px 40px; }
.hero-media { display: table-cell; vertical-align: middle; width: 540px; padding: 0; background: #0E1730; }
.hero-media img { display: block; width: 540px; height: 300px; }
.hero-kicker { font-size: 26px; font-weight: bold; color: #FFB07A; text-transform: uppercase; letter-spacing: 1px; }
.hero-title { font-size: 54px; font-weight: bold; line-height: 1.1; margin: 8px 0 8px 0; }
.hero-desc { font-size: 28px; color: #DCE5FA; max-width: 900px; margin-bottom: 18px; }
.hero .btn { margin-bottom: 0; }

/* ---------- Perfil ---------- */
.profile-choices { text-align: center; white-space: nowrap; margin-top: 30px; }
.profile-card {
  display: inline-block; vertical-align: top; width: 620px; height: 420px; margin: 0 30px;
  padding: 40px; border-radius: 30px; text-align: left; white-space: normal;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.4);
}
.profile-card .ico { width: 96px; height: 96px; display: block; margin-bottom: 20px; }
.profile-card .pc-title { font-size: 58px; font-weight: bold; }
.profile-card .pc-text { font-size: 30px; margin-top: 12px; color: #F1F5FF; }
.profile-card .pc-current { position: absolute; top: 28px; right: 28px; }
.profile-hint { text-align: center; color: #C9D5F0; margin-top: 34px; font-size: 28px; }

/* ---------- Detalhe ---------- */
.detail { display: table; width: 100%; table-layout: fixed; }
.detail-main { display: table-cell; vertical-align: top; padding-right: 48px; }
.detail-side { display: table-cell; vertical-align: top; width: 520px; }
.detail-hero {
  border-radius: 24px; padding: 30px 34px; margin-bottom: 26px; min-height: 200px; position: relative;
}
.detail-hero .badge { position: absolute; top: 24px; right: 24px; }
.detail-kicker { font-size: 26px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: #FFE7D1; }
.detail-title { font-size: 50px; font-weight: bold; line-height: 1.1; margin: 10px 0 8px 0; padding-right: 160px; }
.detail-price { font-size: 56px; font-weight: bold; }
.detail-old { font-size: 32px; text-decoration: line-through; color: #E3EAFB; margin-left: 14px; }
.detail-text { font-size: 30px; color: #E3EAFB; margin-bottom: 22px; max-width: 1100px; }
.kv { margin: 0 0 22px 0; }
.kv li { font-size: 28px; padding: 8px 0; border-bottom: 2px solid #22305A; }
.kv li b { color: #AFC0E6; font-weight: normal; display: inline-block; min-width: 230px; }
.lines li { font-size: 30px; padding: 10px 0; border-bottom: 2px solid #22305A; }
.poster { display: block; width: 520px; height: 292px; border-radius: 20px; background: #0E1730; }
.side-note { font-size: 26px; color: #C9D5F0; margin-top: 16px; }

/* ---------- QR ---------- */
.qr-box { background: #FFFFFF; color: #0A1020; border-radius: 24px; padding: 22px; text-align: center; width: 440px; }
.qr-box .qr-svg, .qr-box .qr-divs { display: block; margin: 0 auto; width: 360px; height: 360px; }
.qr-box .qr-caption { font-size: 26px; font-weight: bold; margin-top: 10px; line-height: 1.2; }
.qr-box .qr-demo { display: inline-block; margin-top: 8px; padding: 4px 14px; background: #0A1020; color: #FFE14D; border-radius: 8px; font-size: 24px; font-weight: bold; }
.qr-url { font-size: 22px; color: #AFC0E6; margin-top: 12px; word-wrap: break-word; width: 440px; }
.qr-error { color: #B00020; font-size: 26px; padding: 40px 10px; }

/* ---------- Grade de canais (EPG) ---------- */
.epg-detail {
  height: 170px; border-radius: 22px; background: #15224A; padding: 22px 30px; margin-bottom: 18px; overflow: hidden;
}
.epg-detail .epg-d-time { font-size: 26px; color: #FFB07A; font-weight: bold; }
.epg-detail .epg-d-title { font-size: 40px; font-weight: bold; line-height: 1.15; margin: 4px 0; }
.epg-detail .epg-d-desc { font-size: 28px; color: #DCE5FA; }
.epg { white-space: nowrap; }
.epg-names { display: inline-block; vertical-align: top; width: 280px; white-space: normal; }
.epg-scroll { display: inline-block; vertical-align: top; width: 1448px; overflow: hidden; margin-right: -40px; padding-right: 40px; }
.epg-inner { position: relative; padding: 10px 0 10px 12px; }
.epg-corner, .epg-ruler { height: 50px; line-height: 50px; font-size: 26px; color: #AFC0E6; }
.epg-corner { padding-top: 10px; height: 60px; }
.epg-ruler span { display: inline-block; vertical-align: top; border-left: 2px solid #33477A; padding-left: 10px; white-space: nowrap; }
.epg-name {
  height: 96px; margin-bottom: 14px; padding: 12px 18px; border-radius: 16px; background: #15224A;
  font-size: 28px; font-weight: bold; line-height: 1.2; overflow: hidden;
}
.epg-name small { display: block; font-size: 24px; color: #AFC0E6; font-weight: normal; }
.epg-row { height: 96px; margin-bottom: 14px; white-space: nowrap; }
.prog {
  display: inline-block; vertical-align: top; height: 96px; margin-right: 6px; padding: 12px 16px;
  border-radius: 14px; background: #1C2A4D; color: #FFFFFF; white-space: normal; overflow: hidden;
  border: 2px solid #33477A;
}
.prog .prog-title { font-size: 28px; font-weight: bold; line-height: 1.15; display: block; }
.prog .prog-time { font-size: 24px; color: #C9D5F0; display: block; margin-top: 4px; }
.prog.is-focused { background: #FFFFFF; color: #0A1020; -webkit-transform: none; -ms-transform: none; transform: none; }
.prog.is-focused .prog-time { color: #22305A; }

/* ---------- Lista / configurações ---------- */
.list-item {
  display: block; width: 100%; min-height: 84px; padding: 18px 28px; margin: 0 0 16px 0;
  border-radius: 18px; background: #1C2A4D; color: #FFFFFF; font-size: 30px; font-weight: bold;
  border: 2px solid #33477A; white-space: normal;
}
.list-item .li-value { float: right; font-weight: normal; color: #FFE14D; }
.list-item.is-focused .li-value { color: #0A1020; }
.list-item.is-focused { -webkit-transform: scale(1.02); -ms-transform: scale(1.02); transform: scale(1.02); }
.cols { display: table; width: 100%; table-layout: fixed; }
.col { display: table-cell; vertical-align: top; padding-right: 40px; }
.col:last-child { padding-right: 0; }
.panel { background: #15224A; border-radius: 22px; padding: 24px 28px; margin-bottom: 22px; }
.panel h2 { font-size: 34px; margin-bottom: 14px; }
.panel p { font-size: 28px; color: #DCE5FA; margin-bottom: 10px; }
.info-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.info-table td { font-size: 26px; padding: 8px 6px; border-bottom: 2px solid #22305A; vertical-align: top; word-wrap: break-word; }
.info-table td.k { color: #AFC0E6; width: 34%; }
.ok { color: #6CF0A9; font-weight: bold; }
.fail { color: #FF8A8A; font-weight: bold; }
.mono { font-family: "DejaVu Sans Mono", "Courier New", monospace; font-size: 24px; }

/* ---------- Enquete ---------- */
.opt {
  display: block; width: 100%; height: 92px; line-height: 88px; padding: 0 30px; margin-bottom: 18px;
  border-radius: 20px; background: #1C2A4D; border: 2px solid #33477A; font-size: 34px; font-weight: bold; color: #FFFFFF;
}
.opt.is-voted { border-color: #FFE14D; }
.opt .opt-mark { float: right; font-size: 26px; color: #FFE14D; }
.opt.is-focused .opt-mark { color: #0A1020; }
.opt.is-focused { -webkit-transform: scale(1.02); -ms-transform: scale(1.02); transform: scale(1.02); }
.result-label { display: inline-block; background: #FFE14D; color: #1A1400; font-weight: bold; padding: 6px 16px; border-radius: 10px; font-size: 26px; margin-bottom: 18px; }
.bar { margin-bottom: 20px; }
.bar-label { font-size: 28px; margin-bottom: 6px; }
.bar-track { height: 30px; background: #0E1730; border-radius: 15px; overflow: hidden; border: 2px solid #33477A; }
.bar-fill { height: 100%; background: #2F80FF; }
.bar.is-mine .bar-fill { background: #FF7A1A; }

/* ---------- Player ---------- */
.player-wrap { position: relative; width: 1120px; height: 630px; background: #000; border-radius: 18px; overflow: hidden; display: inline-block; vertical-align: top; }
.player-wrap video, .player-wrap img.player-fallback { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #000; }
.player-side { display: inline-block; vertical-align: top; width: 540px; margin-left: 40px; white-space: normal; }
.player-layer {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; text-align: center;
  background: rgba(5, 8, 15, 0.72);
}
.player-layer-inner { position: absolute; left: 40px; right: 40px; top: 50%; -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%); }
.player-msg { font-size: 34px; font-weight: bold; margin-bottom: 24px; }
.player-status { font-size: 28px; color: #C9D5F0; margin: 10px 0 18px 0; }
.player-controls { margin-top: 22px; white-space: nowrap; }
.player-controls .btn { padding: 0 30px; }

/* ---------- Business TV ---------- */
.biz { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; overflow: hidden; }
.biz video, .biz img { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; background: #000; }
.biz-bar {
  position: absolute; left: 96px; right: 96px; bottom: 54px; padding: 16px 24px; border-radius: 20px;
  background: rgba(5, 8, 15, 0.82); white-space: nowrap; display: table; table-layout: fixed;
}
.biz-bar-info { display: table-cell; vertical-align: middle; font-size: 28px; line-height: 1.35; overflow: hidden; white-space: normal; }
.biz-bar-info b { color: #FFE14D; }
.biz-bar-actions { display: table-cell; vertical-align: middle; text-align: right; width: 800px; }
.biz-bar .btn { margin-bottom: 0; margin-right: 0; margin-left: 18px; }
.biz-progress { position: absolute; left: 0; bottom: 0; height: 6px; background: #FF7A1A; width: 0; }
.biz-tag { position: absolute; top: 54px; right: 96px; }

/* ---------- Modal / avisos ---------- */
#overlay {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; z-index: 50;
  background: rgba(3, 6, 14, 0.82); display: none;
}
#overlay.is-open { display: block; }
.modal {
  position: absolute; left: 50%; top: 50%; width: 1100px; margin-left: -550px;
  -webkit-transform: translateY(-50%); -ms-transform: translateY(-50%); transform: translateY(-50%);
  background: #15224A; border: 3px solid #33477A; border-radius: 28px; padding: 40px 48px; max-height: 960px; overflow: hidden;
}
.modal h2 { font-size: 44px; margin-bottom: 18px; }
.modal p { font-size: 30px; color: #E3EAFB; margin-bottom: 22px; }
.modal pre { white-space: pre-wrap; word-wrap: break-word; max-height: 600px; overflow: hidden; background: #0A1020; padding: 18px; border-radius: 14px; margin: 0 0 22px 0; }
.modal-actions { margin-top: 10px; }

#toast {
  position: absolute; left: 50%; bottom: 120px; width: 1200px; margin-left: -600px; z-index: 60;
  text-align: center; display: none;
}
#toast span {
  display: inline-block; background: #FFFFFF; color: #0A1020; font-size: 32px; font-weight: bold;
  padding: 18px 36px; border-radius: 20px; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
#toast.is-open { display: block; }

#offline-banner {
  position: absolute; left: 0; right: 0; top: 0; z-index: 40; display: none;
  background: #B4420A; color: #FFFFFF; text-align: center; font-size: 28px; font-weight: bold; padding: 10px 20px;
}
#offline-banner.is-open { display: block; }

/* ---------- Estados ---------- */
.state { text-align: center; padding: 120px 40px; }
.state h1 { font-size: 56px; margin-bottom: 20px; }
.state p { font-size: 30px; color: #DCE5FA; margin-bottom: 34px; }
.empty { font-size: 30px; color: #C9D5F0; padding: 30px 0; }

#boot {
  position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #0A1020; color: #FFFFFF;
  font-family: Arial, sans-serif; font-size: 28px; text-align: center; padding-top: 20%;
}

/* ---------- Texto grande (preferência) ---------- */
#stage.text-large { font-size: 32px; }
#stage.text-large .page-sub, #stage.text-large .detail-text, #stage.text-large .hero-desc { font-size: 34px; }
#stage.text-large .card .card-title { font-size: 38px; }
#stage.text-large .card .card-meta, #stage.text-large .tile .tile-sub { font-size: 29px; }
#stage.text-large .tile .tile-title { font-size: 36px; }
#stage.text-large .kv li, #stage.text-large .lines li, #stage.text-large .info-table td { font-size: 32px; }
#stage.text-large .section-title { font-size: 40px; }
#stage.text-large .panel p { font-size: 32px; }

/* ---------- Complementos (app.js) ---------- */
.hdr-swap { color: #FFB07A; font-weight: bold; }
.hdr-btn.is-focused .hdr-swap { color: #9A3D06; }
.card-fav-top { left: auto; right: 22px; bottom: 18px; font-size: 40px; }
.detail-actions { white-space: normal; }
.poll-q { white-space: normal; margin-bottom: 22px; font-size: 40px; }

/* Grade de canais compacta para caber em 802px de altura útil. */
.page-epg .page-head { margin-bottom: 14px; }
.page-epg .epg-detail { height: 150px; padding: 16px 28px; margin-bottom: 10px; }
.page-epg .epg-detail .epg-d-title { font-size: 40px; }
.page-epg .epg-corner, .page-epg .epg-ruler { height: 46px; line-height: 46px; padding-top: 0; }
.page-epg .epg-name, .page-epg .epg-row, .page-epg .prog { height: 88px; }
.page-epg .epg-name, .page-epg .epg-row { margin-bottom: 10px; }
.page-epg .prog { padding: 10px 14px; }
.page-epg .epg-inner { padding-top: 0; }

/* Player */
.player-row { white-space: nowrap; }
.btn-wide { display: block; width: 100%; margin: 0 0 14px 0; text-align: left; }
.player-side .player-status { min-height: 74px; margin-top: 0; }
.player-layer.is-over-image { background: rgba(5, 8, 15, 0.6); }
.player-layer .btn { margin: 0 12px; }

/* Business TV */
.biz-kind { color: #C9D5F0; }
.biz-note { color: #FFB07A; }
.biz-bar-info .badge { margin-left: 6px; }

/* Diagnóstico */
.diag-actions { margin-bottom: 8px; }
.diag-hint { font-size: 26px; color: #C9D5F0; }
.diag-log { font-size: 26px; color: #DCE5FA; margin: 12px 0 18px 0; min-height: 40px; line-height: 1.35; word-wrap: break-word; }
.diag-video-wrap { width: 480px; height: 270px; background: #000; border-radius: 14px; overflow: hidden; }
.diag-video-wrap video { width: 480px; height: 270px; display: block; background: #000; }
.mono-table td { font-family: "DejaVu Sans Mono", "Courier New", monospace; font-size: 24px; word-wrap: break-word; }
.mono-table td.k { width: auto; font-family: inherit; }
.panel .btn { margin-top: 14px; margin-bottom: 0; }
.modal pre.mono { font-size: 22px; line-height: 1.3; max-height: 560px; }
.card .card-meta { padding-right: 60px; }
.card-tall { height: 276px; }
.card-tall .card-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 0; }
.card-tall .card-title { max-height: 80px; overflow: hidden; }
.prog .prog-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.modal-wide { width: 1600px; margin-left: -800px; }
.modal-wide pre.mono { max-height: 600px; }
/* Erro do player: imagem alternativa visível, mensagem em faixa inferior. */
.player-layer.is-over-image { background: transparent; }
.player-layer.is-over-image .player-layer-inner {
  top: auto; bottom: 0; left: 0; right: 0; padding: 18px 24px 22px 24px;
  -webkit-transform: none; -ms-transform: none; transform: none;
  background: #070B16; background: rgba(5, 8, 15, 0.9);
}
.player-layer.is-over-image .player-msg { margin-bottom: 6px; }
.player-layer.is-over-image .player-status { margin: 0 0 14px 0; }
.card .card-bottom { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-tall .card-title { max-height: 82px; }
#stage.text-large .card-tall { height: 316px; }
#stage.text-large .card-tall .card-title { max-height: 90px; }
/* Revisão P0: textos dos cards cortam em linha inteira (sem meia linha visível).
   Título: até 2 linhas; meta: 1 linha com reticências. line-clamp é progressivo:
   sem suporte, max-height múltiplo da altura de linha corta na linha inteira. */
.card .card-title { max-height: 78px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.card .card-meta { max-height: 35px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#stage.text-large .card .card-title { max-height: 88px; }
#stage.text-large .card .card-meta { max-height: 37px; }
.card-small .card-title { max-height: 69px; }
.tile .tile-sub { max-height: 63px; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.biz-bar { background: #070B16; }
/* V1: barra da Business TV de ponta a ponta no rodapé, cobrindo a faixa inferior
   dos vídeos de teste (timecode gravado no vídeo); conteúdo continua na safe area. */
.biz-bar {
  left: 0; right: auto; bottom: 0; width: 100%; height: 184px;
  -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;
  padding: 30px 96px 54px 96px; border-radius: 0; background: #070B16;
}
.biz-bar-info { width: 928px; }
/* N3: barra de progresso dentro da área segura (não colada na borda inferior). */
.biz-progress { left: 96px; bottom: 44px; height: 6px; } /* N3b/N3c: abaixo do anel de foco dos botões, dentro da área de ação (38px) */
