/* STREAM HUB - theme.css : layout com menu lateral (tema "TV BOX" roxo).
 * Só gradientes e opacidade; nada de blur, filtros ou sombras pesadas em listas grandes.
 */
.sb, .sb body { background: #0b0716; }
.sb #app {
  background-color: #0b0716;
  background-image: -webkit-radial-gradient(85% 0%, circle, #3a1670 0%, rgba(11, 7, 22, 0) 45%);
  background-image: radial-gradient(circle at 85% 0%, #3a1670 0%, rgba(11, 7, 22, 0) 45%);
}
.boot-logo { width: 9rem; height: auto; }

/* ---------- Menu lateral ---------- */
#sidebar {
  position: absolute; left: 0; top: 0; bottom: 0; width: 22rem; z-index: 6;
  background-color: #120a24;
  background-image: -webkit-linear-gradient(top, #1d0f3c, #0d0719);
  background-image: linear-gradient(to bottom, #1d0f3c, #0d0719);
  border-right: 0.0625rem solid #2a1a4a;
}
.brand { padding: 2.6rem 1.6rem 1.8rem 2.4rem; white-space: nowrap; }
.brand-ic { display: inline-block; vertical-align: middle; width: 6.4rem; height: auto; }
.brand-txt { display: inline-block; vertical-align: middle; margin-left: 0.6rem; }
.brand-l1 { font-size: 1.75rem; line-height: 1.9rem; font-weight: bold; font-style: italic; color: #fff; }
.brand-l2 { font-size: 2.2rem; line-height: 2.3rem; font-weight: bold; font-style: italic; color: #c04dff; }
.brand-sub { font-size: 1rem; letter-spacing: 0.55em; color: #d9c8ff; margin-top: 0.5rem; padding-left: 0.3rem; }

.sb #menu { margin: 0.6rem 0 0 0; padding: 0 1.4rem 0 1.6rem; white-space: normal; }
.sb .menu-item {
  display: block; position: relative; margin: 0 0 0.5rem 0; padding: 0 1.2rem; height: 4rem; line-height: 4rem;
  font-size: 1.35rem; letter-spacing: 0; color: #cfc2ea; border-radius: 1.2rem; border: 0.125rem solid transparent;
}
.sb .menu-item img { width: 2.1rem; height: 2.1rem; vertical-align: middle; margin: -0.25rem 1.3rem 0 0; opacity: 0.85; }
.sb .menu-item.active { color: #fff; font-weight: bold; background: #3a1670; }
.sb .menu-item.active:after { display: none; }
.sb .menu-item.active img { opacity: 1; }
.sb .menu-item.focused {
  color: #fff; background-color: #7b2ff7;
  background-image: -webkit-linear-gradient(left, #8a2be2, #5a1ab8);
  background-image: linear-gradient(to right, #8a2be2, #5a1ab8);
  border-color: #c79bff; box-shadow: 0 0 1.4rem rgba(166, 77, 255, 0.55);
}
.sb .menu-item.focused img { opacity: 1; }

/* ---------- Barra de status (canto superior direito) ---------- */
#status { position: absolute; right: 3rem; top: 1.6rem; z-index: 7; white-space: nowrap; }
#status > * { display: inline-block; vertical-align: middle; }
#net { width: 2.4rem; height: 2.4rem; opacity: 0.95; }
#net.off { opacity: 0.25; }
#status .sep { width: 0.0625rem; height: 2.6rem; background: #5a4a7a; margin: 0 1.4rem; }
#clock { text-align: left; margin: 0; font-size: 1rem; color: #e8defa; }
#ctime { display: block; font-size: 2rem; line-height: 2.1rem; color: #fff; }
#cdate { display: block; font-size: 1.05rem; color: #cfc2ea; }

/* ---------- Área de conteúdo ---------- */
.sb #view { left: 22rem; top: 0; }
.sb .page { padding-top: 2.4rem; }
.sb .vhead { padding-top: 0.6rem; padding-right: 20rem; }
.sb .row-title { padding-left: 3.5rem; font-size: 1.6rem; font-weight: normal; color: #fff; }
.sb .row-title:before {
  content: ""; display: inline-block; width: 0.32rem; height: 1.7rem; margin: 0 0.9rem -0.25rem 0;
  background: #a64dff; border-radius: 0.2rem;
}
.row-head { position: relative; }
.row-link { position: absolute; right: 3.5rem; top: 0.25rem; font-size: 1.15rem; color: #b49be0; padding: 0.2rem 0.8rem; border-radius: 0.6rem; }
.row-link.focused { background: #fff; color: #0b0716; }

/* ---------- Destaque de boas-vindas ---------- */
.welcome { position: relative; height: 25rem; margin: -2.4rem 0 0 0; overflow: hidden; }
.welcome-bg { position: absolute; right: 0; top: 0; height: 100%; width: auto; }
.welcome-fade {
  position: absolute; left: 0; top: 0; bottom: 0; width: 70%;
  background-image: -webkit-linear-gradient(left, #0b0716 45%, rgba(11, 7, 22, 0));
  background-image: linear-gradient(to right, #0b0716 45%, rgba(11, 7, 22, 0));
}
.welcome-fade2 {
  position: absolute; left: 0; right: 0; bottom: 0; height: 6rem;
  background-image: -webkit-linear-gradient(top, rgba(11, 7, 22, 0), #0b0716);
  background-image: linear-gradient(to bottom, rgba(11, 7, 22, 0), #0b0716);
}
.welcome-text { position: absolute; left: 4.5rem; top: 5.2rem; }
.w-hi { font-size: 2rem; color: #d9c8ff; }
.w-l1 { font-size: 5.2rem; line-height: 5.4rem; font-weight: bold; font-style: italic; color: #fff; letter-spacing: -0.04em; }
.w-l2 { font-size: 6rem; line-height: 6rem; font-weight: bold; font-style: italic; color: #c04dff; letter-spacing: -0.04em; margin-left: 3.5rem; }
.w-tag { font-size: 1.9rem; font-style: italic; color: #fff; margin: 0.8rem 0 0 8rem; }
.w-tag b { color: #c04dff; font-size: 2.3rem; border-bottom: 0.18rem solid #c04dff; }

/* ---------- Aplicativos (cartões largos) ---------- */
.apptile {
  width: 13.5rem; height: 7.4rem; margin-right: 1.2rem; overflow: hidden; text-align: center;
  border: 0.0625rem solid #2d2148; border-radius: 1rem;
}
.apptile-name {
  position: absolute; left: 0.6rem; right: 0.6rem; top: 50%; margin-top: -1.3rem; height: 2.6rem; line-height: 2.6rem;
  font-size: 1.85rem; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; letter-spacing: -0.02em;
}
.apptile-name.small { font-size: 1.35rem; }
.apptile .ptile-logo { position: absolute; left: 50%; top: 50%; margin: -1.75rem 0 0 -4.5rem; }
.apptile.add { background: #1a1230; border: 0.125rem solid #3d2a60; }
.apptile.add img { width: 2.6rem; height: 2.6rem; margin-top: 1.4rem; }
.apptile.add div { font-size: 1.3rem; color: #e8defa; margin-top: 0.3rem; }
.apptile.focused { box-shadow: 0 0 0 0.25rem #c79bff, 0 0 1.6rem rgba(166, 77, 255, 0.6); }
.anim .apptile, .anim .ctile, .anim .wcard { -webkit-transition: -webkit-transform 0.16s ease-out; transition: transform 0.16s ease-out; }
.anim .apptile.focused, .anim .ctile.focused, .anim .wcard.focused { -webkit-transform: scale(1.06); transform: scale(1.06); }

/* ---------- Categorias de canais ---------- */
.ctile {
  width: 13.5rem; height: 7.4rem; margin-right: 1.2rem; overflow: hidden; text-align: center;
  border: 0.0625rem solid #3d2a60; border-radius: 1rem;
}
.ctile img { width: 3.2rem; height: 3.2rem; margin-top: 1.1rem; }
.ctile div { font-size: 1.25rem; color: #fff; margin-top: 0.3rem; line-height: 1.4rem; }
.ctile.focused { box-shadow: 0 0 0 0.25rem #c79bff, 0 0 1.6rem rgba(166, 77, 255, 0.6); }

/* ---------- Continuar assistindo (16:9) ---------- */
.wcard { width: 20rem; height: 11.25rem; margin-right: 1.4rem; overflow: hidden; border: 0.0625rem solid #2d2148; border-radius: 1rem; }
.wcard img { position: absolute; left: 0; top: 0; width: 100%; height: auto; min-height: 100%; opacity: 0; }
.wcard img.loaded { opacity: 1; }
.wcard-shade {
  position: absolute; left: 0; right: 0; bottom: 0; height: 60%;
  background-image: -webkit-linear-gradient(top, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.85));
}
.wcard-title { position: absolute; left: 1rem; right: 1rem; bottom: 1.3rem; font-size: 1.25rem; font-weight: bold; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wcard-sub { position: absolute; left: 1rem; top: 0.8rem; font-size: 0.85rem; letter-spacing: 0.12em; color: #e8defa; font-weight: bold; text-transform: uppercase; }
.wcard-bar { position: absolute; left: 1rem; right: 1rem; bottom: 0.6rem; height: 0.3rem; background: rgba(255, 255, 255, 0.25); border-radius: 0.2rem; overflow: hidden; }
.wcard-bar div { height: 100%; background: #b14dff; }
.wcard.focused { box-shadow: 0 0 0 0.25rem #c79bff, 0 0 1.6rem rgba(166, 77, 255, 0.6); }

/* ---------- Diálogos e toast no novo tema ---------- */
.sb .modal-panel { border-color: #4a2d7a; }
.sb #toast { border-color: #a64dff; }
.wgrid .wcard { margin-bottom: 1.6rem; }
.sb .pcard { background: #170f28; }
