/* Ofiplay PWA — mesmas cores, tipografia e medidas do app Android (OfiplayTheme / UiSpec).
   Sem variáveis CSS, gap ou aspect-ratio: precisa rodar em navegadores antigos de Smart TV. */

/* region Base */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #050505;
  color: #F5F2EF;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}

input, textarea { -webkit-user-select: text; user-select: text; font-family: inherit; }
input::placeholder { color: #6F6963; opacity: 1; }
input::-webkit-input-placeholder { color: #6F6963; }

*:focus { outline: none; }
[data-f] { cursor: pointer; }
img { border: 0; }

::-webkit-scrollbar { width: 0; height: 0; display: none; }
.scroll-x, .scroll-y { scrollbar-width: none; -ms-overflow-style: none; }

#app {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #050505;
  -webkit-transform-origin: 0 0;
  transform-origin: 0 0;
}

.screen {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: #050505;
}
.screen.hidden { visibility: hidden; pointer-events: none; }

.boot {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #050505;
}
.boot-mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #F26E1E, #B8440A);
  animation: pulse 1.2s ease-in-out infinite;
}
.nojs { color: #B4ADA6; padding: 32px 24px; text-align: center; font-size: 16px; line-height: 24px; }

@keyframes spin { to { transform: rotate(360deg); } }
@-webkit-keyframes spin { to { -webkit-transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* endregion */

/* region Tipografia (Material 3 do app) */

.t-display-s { font-size: 36px; line-height: 44px; font-weight: 900; letter-spacing: -.01em; }
.t-headline-l { font-size: 32px; line-height: 40px; font-weight: 900; letter-spacing: -.01em; }
.t-headline-m { font-size: 28px; line-height: 36px; font-weight: 800; }
.t-headline-s { font-size: 24px; line-height: 32px; font-weight: 800; }
.t-title-l { font-size: 22px; line-height: 28px; font-weight: 700; }
.t-title-m { font-size: 16px; line-height: 24px; font-weight: 700; }
.t-title-s { font-size: 14px; line-height: 20px; font-weight: 600; }
.t-body-l { font-size: 16px; line-height: 24px; font-weight: 400; }
.t-body-m { font-size: 14px; line-height: 20px; font-weight: 400; }
.t-body-s { font-size: 12px; line-height: 16px; font-weight: 400; }
.t-label-l { font-size: 14px; line-height: 20px; font-weight: 700; }
.t-label-m { font-size: 12px; line-height: 16px; font-weight: 500; }
.t-label-s { font-size: 11px; line-height: 16px; font-weight: 500; }

.c-pri { color: #F5F2EF; }
.c-sec { color: #B4ADA6; }
.c-muted { color: #6F6963; }
.c-white { color: #FFFFFF; }
.c-orl { color: #FA9753; }
.c-danger { color: #EF4444; }

.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2, .clamp3, .clamp4, .clamp5 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; }
.clamp4 { -webkit-line-clamp: 4; }
.clamp5 { -webkit-line-clamp: 5; }
.center { text-align: center; }
.pre { white-space: pre-line; }

/* endregion */

/* region Layout utilitário */

.grow { flex: 1 1 auto; min-width: 0; }
.fill { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.col { display: flex; flex-direction: column; }
.row-center { display: flex; align-items: center; }
.scroll-y { overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; }
.scroll-x { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; }

.ico { display: inline-flex; flex: none; align-items: center; justify-content: center; }
.ico svg { display: block; }

/* Proporções por padding-top (sem aspect-ratio). */
.ratio { position: relative; width: 100%; height: 0; }
.ratio > * { position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.r23 { padding-top: 150%; }
.r169 { padding-top: 56.25%; }
.r1610 { padding-top: 62.5%; }

/* endregion */

/* region Botões, ações e foco */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  border: 2px solid transparent;
  background: #E8590D;
  color: #FFFFFF;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn.sec { background: rgba(255, 255, 255, .1); color: #F5F2EF; }
.btn.full { display: flex; width: 100%; }
.btn.disabled { opacity: .45; cursor: default; }
.btn-icon { display: flex; align-items: center; margin-right: 8px; }
.btn-icon:empty { display: none; }
.btn:active { opacity: .85; }
.kbd .btn:focus { transform: scale(1.04); border-color: #FFFFFF; background: #F26E1E; }
.kbd .btn.sec:focus { border-color: #E8590D; background: rgba(232, 89, 13, .22); }
.kbd .btn.disabled:focus { background: #E8590D; }

.iact {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .25);
  color: #F5F2EF;
  transition: transform .15s ease, background-color .15s ease;
}
.iact:active { background: rgba(255, 255, 255, .12); }
.kbd .iact:focus { transform: scale(1.1); background: rgba(255, 255, 255, .18); box-shadow: 0 0 0 2px #E8590D; }

.spinner {
  display: inline-block;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid rgba(232, 89, 13, .22);
  border-top-color: #E8590D;
  -webkit-animation: spin .8s linear infinite;
  animation: spin .8s linear infinite;
}
.spinner.sm { width: 18px; height: 18px; border-width: 2px; }
.spinner.white { border-color: rgba(255, 255, 255, .3); border-top-color: #FFFFFF; }
.spinner.thin { width: 32px; height: 32px; border-width: 2px; }

/* endregion */

/* region Imagens */

.pimg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #1A1715;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pimg-t { padding: 8px; color: #6F6963; text-align: center; }
.pimg img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .25s ease;
}
.pimg img.ok { opacity: 1; }
.fit-contain { object-fit: contain; }
.pimg img.fit-contain { object-fit: contain; }
.blur28 img { filter: blur(28px); -webkit-filter: blur(28px); transform: scale(1.15); }
.blur30 img { filter: blur(30px); -webkit-filter: blur(30px); transform: scale(1.2); }
.blur28, .blur30 { background: #050505; }
.blur28 .pimg-t, .blur30 .pimg-t { display: none; }

/* endregion */

/* region Cards */

.pc, .cc, .cw, .tt { flex: none; }
.pc-title { margin-top: 6px; padding: 0 2px; }

.pc-surface, .cc-surface, .cw-surface, .tt-surface, .eps-card-surface {
  overflow: hidden;
  background: #1A1715;
  transition: transform .15s ease, box-shadow .15s ease;
}
.pc-surface { border-radius: 10px; }
.cc-surface {
  border-radius: 12px;
  background: linear-gradient(135deg, #1D140D, #131210);
  border: 1px solid #2B221B;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cc-initials { color: #6F6963; }
.cc-logo {
  position: absolute;
  left: 14%;
  top: 14%;
  width: 72%;
  height: 72%;
  object-fit: contain;
  opacity: 0;
  transition: opacity .2s ease;
}
.cc-logo.ok { opacity: 1; background: #171310; }
.cw-surface { border-radius: 12px; }

.pc-surface:active, .cc-surface:active, .cw-surface:active, .tt-surface:active, .eps-card-surface:active { opacity: .85; }
.kbd .pc-surface:focus, .kbd .cc-surface:focus, .kbd .cw-surface:focus, .kbd .tt-surface:focus, .kbd .eps-card-surface:focus {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px #E8590D, 0 8px 24px rgba(0, 0, 0, .6);
  z-index: 2;
}

.grad-bottom {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, .85) 100%);
}
.cw-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .45);
  border: 1.5px solid rgba(255, 255, 255, .7);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cw-left { position: absolute; left: 10px; bottom: 10px; color: #FFFFFF; }

.pbar { position: relative; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .18); }
.pbar-fill { height: 100%; background: #E8590D; }
.pbar-bottom { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 0; }
.pbar.light { background: rgba(255, 255, 255, .25); }
.pbar.dark { background: rgba(0, 0, 0, .55); }
.detail-progress { margin-top: 12px; width: 240px; max-width: 100%; }

/* Top 10 */
.tt { display: flex; position: relative; }
.tt-number { flex: none; position: relative; z-index: 0; }
.tt-number svg { display: block; overflow: visible; }
.tt-surface { position: relative; flex: none; margin-left: -8px; border-radius: 10px; z-index: 1; }
.tt-cover {
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .5);
}
.tt-grad {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .85) 0%, rgba(0, 0, 0, 0) 60%);
}
.tt-logo { position: absolute; left: 10px; bottom: 10px; width: 55%; height: 34%; }
.tt-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left bottom; }
.tt-title { position: absolute; right: 0; bottom: 10px; padding: 0 10px; color: #FFFFFF; text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.tt-badge {
  position: absolute;
  top: 0;
  right: 8px;
  padding: 4px 4px 5px;
  border-radius: 0 0 4px 4px;
  background: #E8590D;
  color: #FFFFFF;
  font-size: 9px;
  line-height: 10px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .02em;
}

/* endregion */

/* region Fileiras e grade */

.row { padding-top: 14px; }
.sh { display: flex; align-items: center; min-height: 36px; }
.sh-bar { flex: none; width: 4px; height: 18px; border-radius: 2px; background: #E8590D; margin-right: 10px; }
.sh-action {
  flex: none;
  display: flex;
  align-items: center;
  padding: 4px 6px 4px 10px;
  border-radius: 999px;
  transition: transform .15s ease, background-color .15s ease;
}
.kbd .sh-action:focus { transform: scale(1.05); background: rgba(232, 89, 13, .18); }

.rl { display: flex; align-items: flex-start; padding-top: 8px; padding-bottom: 12px; }
.rl-end { flex: none; height: 1px; }

.grid { display: flex; flex-wrap: wrap; margin-right: -2px; }
.grid > * { flex: none; }
.grid-head { display: flex; align-items: center; padding: 4px 0 12px; }
.sort-chip {
  flex: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid #2B221B;
  transition: transform .15s ease, border-color .15s ease;
}
.kbd .sort-chip:focus { transform: scale(1.05); border-color: #E8590D; }

/* endregion */

/* region Destaque */

.hero { position: relative; overflow: hidden; flex: none; }
.hero-layers { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.hero-layer { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: 0; transition: opacity .45s ease; }
.hero-layer.in { opacity: 1; }
.hero-poster { position: absolute; border-radius: 14px; overflow: hidden; box-shadow: 0 14px 40px rgba(0, 0, 0, .65); }
.hero-grad-v {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .35) 0%, rgba(5, 5, 5, 0) 30%, rgba(5, 5, 5, .55) 65%, #050505 100%);
}
.hero-grad-h {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(90deg, rgba(5, 5, 5, .92) 0%, rgba(5, 5, 5, .55) 40%, rgba(5, 5, 5, 0) 70%);
}
.hero-content { position: absolute; left: 0; bottom: 0; padding-bottom: 20px; z-index: 1; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(232, 89, 13, .18);
  color: #FA9753;
  letter-spacing: .06em;
}
.hero-chip-dot { width: 6px; height: 6px; border-radius: 50%; background: #E8590D; margin-right: 6px; }
.hero-content .t-body-m { margin-top: 4px; }
.hero-actions { display: flex; margin-top: 16px; }
.hero-actions .btn + .btn { margin-left: 10px; }
.hero-dots { display: flex; margin-top: 14px; height: 6px; }
.hero-dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); margin-right: 6px; transition: width .3s ease, background-color .3s ease; }
.hero-dot.on { width: 18px; background: #E8590D; }

/* endregion */

/* region Estados e barras */

.state-view {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 0;
}
.state-col { display: flex; flex-direction: column; align-items: center; }
.pad24 { padding: 24px; }
.empty-view { display: flex; align-items: center; justify-content: center; padding: 56px 24px; }

.topbar { position: relative; z-index: 1; display: flex; align-items: center; height: 64px; flex: none; }
.tab-header { display: flex; align-items: center; padding-top: 16px; padding-bottom: 8px; flex: none; }
.tab-sub { margin-top: 2px; }
.section-label { padding: 18px 4px 4px; letter-spacing: .08em; }

.home-topbar {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 2;
  height: 64px;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(5, 5, 5, .8) 0%, rgba(5, 5, 5, 0) 100%);
  transition: background-color .2s ease;
}
.home-topbar.solid { background: rgba(5, 5, 5, .94); }

/* endregion */

/* region Diálogos, campos e avisos */

.dialog-scrim {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .66);
  animation: fadeIn .15s ease;
}
.dialog {
  width: 100%;
  max-width: 420px;
  max-height: 100%;
  overflow-y: auto;
  padding: 24px;
  border-radius: 28px;
  background: #1D140D;
  border: 1px solid #2B221B;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .6);
}
.dialog.with-icon .dialog-title, .dialog.with-icon .dialog-msg { text-align: center; }
.dialog-icon { display: flex; justify-content: center; margin-bottom: 16px; }
.dialog-msg { margin-top: 12px; }
.dialog-body { margin-top: 16px; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; margin-top: 24px; }

.tf { display: block; }
.tf-label { display: block; margin-bottom: 6px; color: #B4ADA6; }
.tf-box {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1.5px solid #2B221B;
  background: #131210;
  transition: border-color .15s ease;
}
.tf-box .ico { margin-right: 10px; }
.tf-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #F5F2EF;
  font-size: 16px;
  line-height: 24px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.tf-input:focus { outline: none; }
.tf:focus-within .tf-box { border-color: #E8590D; }
.kbd .tf:focus-within .tf-box { box-shadow: 0 0 0 1px #E8590D; }
.tf.error .tf-box { border-color: #EF4444; }

.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  z-index: 100;
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 12px;
  background: #1D140D;
  border: 1px solid #2B221B;
  color: #F5F2EF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translate(-50%, 20px);
  transform: translate(-50%, 20px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; -webkit-transform: translate(-50%, 0); transform: translate(-50%, 0); }

/* endregion */

/* region Menus e switch */

.meta-tag {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 8px 8px 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, .08);
  color: #B4ADA6;
}

.menu-row {
  display: flex;
  align-items: center;
  padding: 14px 12px;
  border-radius: 16px;
  background: #1A1715;
  border: 1px solid #2B221B;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.menu-row:active { background: #1D140D; }
.kbd .menu-row:focus { transform: scale(1.015); background: #1D140D; box-shadow: 0 0 0 2px #E8590D; }
.menu-icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; }
.menu-row > .ico { margin-left: 8px; }

.switch {
  position: relative;
  display: inline-block;
  flex: none;
  width: 46px;
  height: 28px;
  margin-left: 10px;
  border-radius: 14px;
  background: #2B221B;
  transition: background-color .2s ease;
}
.switch-thumb {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #6F6963;
  transition: left .2s ease, background-color .2s ease;
}
.switch.on { background: #E8590D; }
.switch.on .switch-thumb { left: 22px; background: #FFFFFF; }

/* endregion */

/* region Abertura e ativação */

.warm { background: linear-gradient(180deg, #160D06 0%, #050505 70%); }
.center-box { display: flex; align-items: center; justify-content: center; }
.splash { opacity: 0; -webkit-transform: scale(.92); transform: scale(.92); transition: opacity .6s ease, transform .6s ease; }
.in .splash { opacity: 1; -webkit-transform: none; transform: none; }

.logo { display: flex; align-items: center; }
.logo-mark {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #F26E1E, #B8440A);
  box-shadow: 0 6px 20px rgba(232, 89, 13, .35);
  color: #FFFFFF;
}
.logo-text { font-weight: 900; letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.logo-text b { font-weight: 900; }
.logo-text .w { color: #FFFFFF; }
.logo-text .o { color: #E8590D; }

.grad-text {
  color: #E8590D;
  background: linear-gradient(90deg, #FA9753, #E8590D);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pitch { display: block; }
.features { display: flex; flex-wrap: wrap; }
.feature {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid #2B221B;
}
.feature-icon { display: flex; }

.act { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.act-wide { display: flex; }
.act-wide .act-pitch-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 48px 56px; }
.act-form-col { flex: 1 1 0; min-width: 0; height: 100%; }
.act-form-inner { min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 32px; }
.act-form { width: 100%; max-width: 460px; }
.act-compact-inner { max-width: 460px; margin: 0 auto; padding: 40px 20px 40px; }
.act-compact.typing .act-pitch-col { display: none; }
.act-card { padding: 24px; border-radius: 22px; background: #131210; border: 1px solid #2B221B; }
.act-key { flex: none; width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center; background: rgba(232, 89, 13, .14); }
.act-back { position: absolute; left: 12px; top: 12px; z-index: 2; }

.code-field {
  display: flex;
  align-items: center;
  height: 58px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1.5px solid #2B221B;
  background: #0E0C0B;
  cursor: text;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.code-field.focused { border-color: #E8590D; }
.kbd .code-field.focused { box-shadow: 0 0 0 1px #E8590D; }
.code-field.error { border-color: #EF4444; }
.code-prefix, .code-input {
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Roboto Mono', 'Courier New', monospace;
  font-size: 22px;
  font-weight: 700;
}
.code-prefix { flex: none; color: #E8590D; margin-right: 2px; }
.code-input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #FFFFFF;
  letter-spacing: .06em;
  text-transform: uppercase;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}
.code-input:disabled { opacity: .6; }
.err-box { padding: 10px 12px; border-radius: 10px; background: rgba(239, 68, 68, .12); color: #EF4444; }

/* endregion */

/* region Contas */

.saved-accounts { margin-bottom: 18px; }
.saved-list { margin-top: 12px; }
.acc-item { display: flex; align-items: center; }
.acc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  background: #1A1715;
  border: 1px solid #2B221B;
  transition: transform .15s ease, box-shadow .15s ease;
}
.acc-avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 89, 13, .18);
  color: #FA9753;
}
.acc-del {
  flex: none;
  width: 48px;
  height: 48px;
  margin-left: 8px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1A1715;
  border: 1px solid #2B221B;
  transition: transform .15s ease, box-shadow .15s ease;
}
.acc-main:active, .acc-del:active { background: #1D140D; }
.kbd .acc-main:focus, .kbd .acc-del:focus { transform: scale(1.015); box-shadow: 0 0 0 2px #E8590D; background: #1D140D; }
.chip-ok { flex: none; margin: 0 8px; padding: 4px 10px; border-radius: 999px; background: rgba(34, 197, 94, .14); color: #22C55E; }
.accounts-col { max-width: 720px; display: flex; flex-direction: column; }

/* endregion */

/* region Principal: trilho lateral e barra inferior */

.main { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }
.rail-layout { display: flex; }
.nav-layout { display: flex; flex-direction: column; }
.main-content { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; }
.tab { position: absolute; left: 0; top: 0; right: 0; bottom: 0; }

.rail {
  flex: none;
  width: 96px;
  height: 100%;
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  background: linear-gradient(180deg, #160D06 0%, #131210 100%);
  border-right: 1px solid #1D140D;
}
.rail-item {
  flex: none;
  width: 80px;
  padding: 10px 0;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #6F6963;
  transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.rail-item.sel { background: rgba(232, 89, 13, .18); color: #FA9753; }
.rail-label { margin-top: 4px; max-width: 72px; font-size: 11px; line-height: 16px; font-weight: 600; }
.rail-item:active { background: rgba(255, 255, 255, .06); }
.kbd .rail-item:focus { transform: scale(1.05); color: #FFFFFF; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 2px #E8590D; }
.kbd .rail-item.sel:focus { background: rgba(232, 89, 13, .28); color: #FA9753; }

.bottom-nav {
  flex: none;
  display: flex;
  height: 80px;
  height: calc(80px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: #131210;
  border-top: 1px solid #1D140D;
}
.bn-item {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #6F6963;
}
.bn-pill {
  width: 64px;
  height: 32px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color .2s ease;
}
.bn-label { margin-top: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: #6F6963; }
.bn-item.sel { color: #FA9753; }
.bn-item.sel .bn-pill { background: rgba(232, 89, 13, .18); }
.bn-item.sel .bn-label { color: #FA9753; font-weight: 700; }
.kbd .bn-item:focus .bn-pill { box-shadow: 0 0 0 2px #E8590D; }

/* endregion */

/* region Ao vivo */

.live-wide { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; }
.live-cats {
  flex: none;
  width: 280px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #1D140D;
  background: #0A0908;
}
.live-cats .tab-header { padding-left: 16px !important; }
.live-cat-list { flex: 1 1 auto; min-height: 0; padding: 4px 12px 24px; }
.cat-item {
  display: flex;
  align-items: center;
  height: 44px;
  padding-right: 12px;
  border-radius: 10px;
  color: #B4ADA6;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.cat-bar { flex: none; width: 3px; height: 18px; margin: 0 10px 0 4px; border-radius: 2px; background: transparent; }
.cat-name { margin-right: 8px; }
.cat-item.sel { background: rgba(232, 89, 13, .14); color: #FFFFFF; }
.cat-item.sel .cat-bar { background: #E8590D; }
.cat-item:active { background: #1D140D; }
.kbd .cat-item:focus { transform: scale(1.02); background: #1D140D; color: #FFFFFF; box-shadow: 0 0 0 2px #E8590D; }
.live-grid { position: relative; flex: 1 1 auto; min-width: 0; min-height: 0; height: 100%; }
.live-compact { position: absolute; left: 0; top: 0; right: 0; bottom: 0; display: flex; flex-direction: column; }
.live-compact .live-grid { height: auto; }
.chips-row { flex: none; padding-top: 4px; padding-bottom: 8px; }

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid #2B221B;
  color: #B4ADA6;
  white-space: nowrap;
  transition: transform .15s ease, border-color .15s ease, background-color .15s ease;
}
.chip.sel { background: #E8590D; border-color: #E8590D; color: #FFFFFF; }
.kbd .chip:focus { transform: scale(1.05); border-color: #FA9753; color: #FFFFFF; }
.kbd .chip.sel:focus { border-color: #FFFFFF; }

/* endregion */

/* region Detalhes */

.detail-header { position: relative; overflow: hidden; }
.detail-bg { position: absolute; left: 0; top: 0; right: 0; bottom: 0; opacity: .55; }
.detail-grad {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(5, 5, 5, .3) 0%, rgba(5, 5, 5, .75) 60%, #050505 100%);
}
.detail-content { position: relative; z-index: 1; }
.detail-body { display: flex; align-items: flex-start; }
.detail-body.wide { align-items: center; }
.detail-poster { flex: none; position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, .6); }
.detail-info { flex: 1 1 auto; min-width: 0; margin-left: 18px; }
.detail-body.wide .detail-info { margin-left: 28px; }
.meta-row { display: flex; flex-wrap: wrap; margin-top: 10px; margin-bottom: -8px; }
.detail-actions { display: flex; flex-wrap: wrap; margin-top: 18px; }
.detail-actions .btn { margin: 0 10px 10px 0; }

.season-row { padding-top: 10px; padding-bottom: 6px; }
.ep-row {
  display: flex;
  align-items: center;
  margin-top: 6px;
  padding: 10px;
  border-radius: 14px;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.ep-row:active { background: #131210; }
.kbd .ep-row:focus { transform: scale(1.015); background: #1D140D; box-shadow: 0 0 0 2px #E8590D; }
.ep-thumb { flex: none; position: relative; border-radius: 10px; overflow: hidden; background: #1A1715; }
.ep-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* endregion */

/* region Perfil e configurações */

.profile-card {
  display: flex;
  align-items: center;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #1D140D, #131210);
  border: 1px solid #2B221B;
}
.profile-avatar {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}
.status-chip { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.tile-row { display: flex; margin-bottom: 10px; }
.info-tile { flex: 1 1 0; min-width: 0; padding: 14px; border-radius: 16px; background: #1A1715; border: 1px solid #2B221B; }
.info-tile.ghost { visibility: hidden; }
.swatches { display: flex; flex-wrap: wrap; }
.swatch {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.kbd .swatch:focus { transform: scale(1.1); box-shadow: 0 0 0 2px #FFFFFF; }
.menu-col { max-width: 720px; }
.settings-col { max-width: 760px; }

/* endregion */

/* region Busca */

.search-bar { flex: none; display: flex; align-items: center; height: 76px; }
.search-field .tf-box { height: 48px; border-radius: 24px; }
.search-results { flex: 1 1 auto; min-height: 0; position: relative; }

/* endregion */

/* region Player */

.player { background: #000000; overflow: hidden; }
.pl-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #000000;
  object-fit: contain;
}
.pl-tap { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 1; }
.pl-loading {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  margin: -18px 0 0 -18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.pl-loading.show { opacity: 1; transition-delay: .3s; }

.pl-top {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: 20px 24px 40px;
  background: linear-gradient(180deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pl-top.show { opacity: 1; pointer-events: auto; }
.pl-top .iact + .iact { margin-left: 8px; }
.pl-top .grow { margin-right: 12px; }

/* No celular/computador os controles nativos ficam sobre o vídeo: a barra do app vai acima dele. */
.player:not(.tv) { display: flex; flex-direction: column; }
.player:not(.tv) .pl-top {
  position: relative;
  order: -1;
  flex: none;
  opacity: 1;
  pointer-events: auto;
  padding: 10px 12px;
  background: #000000;
}
.player:not(.tv) .pl-video { position: relative; flex: 1 1 0; height: auto; min-height: 0; }

.pl-status {
  position: absolute;
  left: 50%;
  top: 84px;
  z-index: 3;
  max-width: 80%;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  pointer-events: none;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
  transition: opacity .2s ease;
}
.pl-status.show { opacity: 1; }

.pl-osd {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 48px 32px 28px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .82) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.pl-osd.show { opacity: 1; }
.pl-osd-row { display: flex; align-items: center; margin-bottom: 10px; }
.pl-osd-state { display: flex; margin-right: 12px; }
.pl-osd-track { height: 4px; border-radius: 2px; overflow: hidden; background: rgba(255, 255, 255, .25); }
.pl-osd-fill { width: 0; height: 100%; background: #E8590D; }

.pl-zap-host { position: absolute; left: 24px; bottom: 32px; z-index: 3; pointer-events: none; }
.pl-zap {
  display: flex;
  align-items: center;
  min-width: 260px;
  max-width: 420px;
  padding: 12px 18px 12px 12px;
  border-radius: 16px;
  background: rgba(19, 18, 16, .92);
  border: 1px solid #2B221B;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
  animation: slideUp .2s ease-out;
}
.pl-zap-logo { flex: none; position: relative; width: 64px; height: 40px; }
.pl-zap-logo img { width: 100%; height: 100%; object-fit: contain; }

.pl-error-host:empty { display: none; }
.pl-error-host {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .82);
}
.pl-error { display: flex; flex-direction: column; align-items: center; max-width: 460px; padding: 24px; }

/* Painel de episódios */
.eps-panel { position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 40; }
.eps-scrim { position: absolute; left: 0; top: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, .35); }
.eps-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding-top: 40px;
  padding-bottom: 20px;
  padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(5, 5, 5, 0) 0%, rgba(5, 5, 5, .92) 22%, #050505 100%);
  animation: slideUp .25s ease-out;
}
.eps-head { display: flex; align-items: center; margin-bottom: 6px; }
.eps-loading { height: 150px; display: flex; align-items: center; justify-content: center; }
.eps-chips { padding-top: 6px; padding-bottom: 4px; }
.eps-card { flex: none; }
.eps-card-surface { border-radius: 10px; }
.eps-grad {
  position: absolute;
  left: 0; top: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, .75) 100%);
}
.eps-playing {
  position: absolute;
  left: 8px;
  top: 8px;
  display: flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  background: #E8590D;
  color: #FFFFFF;
}
.eps-playing .ico { margin-right: 4px; }
.eps-dur { position: absolute; right: 8px; bottom: 10px; color: #FFFFFF; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }

/* endregion */
