/* STREAM HUB - components.css : cartões, botões, chips, teclado virtual, diálogos */

/* ---------- Cartão base ---------- */
.card { display: inline-block; position: relative; margin-right: 1.5rem; border-radius: 1rem; vertical-align: top; }

/* Capas (proporção 2:3) */
.poster { width: 12.5rem; }
.grid .poster { margin-bottom: 1.6rem; }
.poster-art {
  position: relative; width: 12.5rem; height: 18.75rem; border-radius: 1rem; overflow: hidden;
  background-color: #1e1530; border: 0.0625rem solid #2d2148;
}
.poster-art.big { width: 15rem; height: 22.5rem; }
.poster-type {
  position: absolute; left: 0.9rem; top: 0.9rem; font-size: 0.85rem; letter-spacing: 0.15em; color: #cfe2ff;
  text-transform: uppercase; font-weight: bold;
}
.poster-title {
  position: absolute; left: 0.9rem; right: 0.9rem; bottom: 1.1rem;
  font-size: 1.45rem; line-height: 1.75rem; font-weight: bold; color: #fff; overflow: hidden; max-height: 7rem;
}
.poster-art.big .poster-title { font-size: 1.9rem; line-height: 2.2rem; max-height: 9rem; }
.poster-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; }
.poster-img.loaded { opacity: 1; }
.cap { padding: 0.6rem 0.2rem 0 0.2rem; }
.cap-title { font-size: 1.1rem; color: #e9edf5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-meta { font-size: 0.95rem; color: #7d869b; margin-top: 0.2rem; white-space: nowrap; overflow: hidden; }
.fav-dot {
  position: absolute; right: 0.7rem; top: 0.6rem; font-size: 1.1rem; color: #ff6b8b;
}

/* Plataformas (16:9) */
.ptile {
  width: 17rem; height: 9.6rem; overflow: hidden; border: 0.0625rem solid #2d2148;
}
.ptile-name {
  position: absolute; left: 1.2rem; right: 1.2rem; bottom: 1rem;
  font-size: 1.75rem; font-weight: bold; color: #fff; line-height: 2rem;
}
.ptile-logo { position: absolute; left: 1.2rem; top: 1rem; max-width: 9rem; max-height: 3.5rem; }
.ptile-compat {
  position: absolute; right: 0.8rem; bottom: 0.8rem; width: 1.8rem; height: 1.8rem; line-height: 1.8rem;
  border-radius: 1rem; text-align: center; font-size: 1rem; font-weight: bold;
}
.ptile .fav-dot { right: 1rem; top: 0.8rem; }

/* Categorias e atalhos */
.gtile {
  width: 14rem; height: 6rem; line-height: 6rem; text-align: center;
  font-size: 1.4rem; font-weight: bold; color: #fff; border: 0.0625rem solid #2d2148; overflow: hidden;
}
.atile {
  width: 20rem; height: 7.5rem; padding: 1.3rem 1.5rem; background: #181030; border: 0.0625rem solid #2d2148;
}
.atile-l { font-size: 1.5rem; font-weight: bold; }
.atile-s { font-size: 1.05rem; color: #8b93a7; margin-top: 0.4rem; }

/* Cartões da página Plataformas */
.pgrid .pcard { margin-bottom: 1.6rem; }
.pcard { width: 26rem; height: 21rem; background: #170f28; border: 0.0625rem solid #2d2148; overflow: hidden; }
.pcard-head { position: relative; height: 8.5rem; }
.pcard-body { padding: 1rem 1.3rem; }
.pdesc { font-size: 1.1rem; line-height: 1.55rem; color: #c3cad9; height: 4.65rem; overflow: hidden; }
.purl { font-size: 0.95rem; color: #c9a2ff; margin-top: 0.6rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.purl.big { font-size: 1.2rem; margin: 0.6rem 0; }
.pfoot { margin-top: 0.8rem; }
.favtxt { font-size: 1rem; color: #ff6b8b; margin-left: 0.8rem; }
.pcard.add { text-align: center; font-size: 1.4rem; color: #c8b4f0; border: 0.15rem dashed #3d2a60; background: #100a1c; padding-top: 5rem; }
.plus { font-size: 4rem; line-height: 4rem; color: #a64dff; margin-bottom: 0.6rem; }
.card.more {
  width: 12.5rem; height: 18.75rem; background: #160e26; border: 0.15rem dashed #3d2a60;
  text-align: center; padding-top: 7.5rem; font-size: 1.3rem; color: #c8b4f0;
}
.card.more small { display: block; font-size: 1rem; color: #6f7890; margin-top: 0.5rem; }

/* ---------- Botões e chips ---------- */
.btn {
  display: inline-block; padding: 0 1.8rem; height: 3.6rem; line-height: 3.6rem; margin-right: 1rem;
  border-radius: 0.8rem; font-size: 1.3rem; font-weight: bold; color: #e9edf5;
  background: #22183a; background: rgba(255, 255, 255, 0.1); border: 0.0625rem solid #352850;
  white-space: nowrap;
}
.btn.primary { background: #8a2be2; border-color: #8a2be2; color: #fff; }
.chips-wrap { padding-top: 1rem; }
.chip {
  display: inline-block; margin-right: 0.8rem; padding: 0 1.3rem; height: 2.9rem; line-height: 2.9rem;
  border-radius: 1.5rem; font-size: 1.15rem; color: #c3cad9; background: #1b1330; border: 0.0625rem solid #33264c;
}
.chip.on { background: #35145e; color: #fff; border-color: #a64dff; }

/* ---------- Campo de texto + teclado virtual ---------- */
.qbox {
  height: 4.4rem; line-height: 4.4rem; padding: 0 1.4rem; font-size: 1.8rem; color: #fff;
  background: #160e26; border: 0.125rem solid #3d2a60; border-radius: 0.9rem; white-space: nowrap; overflow: hidden;
}
.q-icon { color: #a64dff; margin-right: 0.8rem; }
.q-hint { color: #5f677c; font-size: 1.3rem; margin-left: 0.6rem; }
.caret { color: #a64dff; }
.kb { font-size: 0; }
.kb-row { white-space: nowrap; margin-bottom: 0.5rem; }
.kb-key {
  display: inline-block; width: 4.2rem; height: 3.5rem; line-height: 3.5rem; margin-right: 0.5rem;
  text-align: center; font-size: 1.45rem; color: #e9edf5; background: #1d1430; border: 0.0625rem solid #30244a; border-radius: 0.6rem;
}
.kb-key.w2 { width: 8.9rem; font-size: 1.15rem; }
.kb-key.w3 { width: 13.6rem; font-size: 1.15rem; }
.kb-key.kb-sp { color: #c8b4f0; }
.kb-key.on { background: #35145e; border-color: #a64dff; }

/* ---------- Configurações / formulários ---------- */
.sitem {
  display: -webkit-box; display: -webkit-flex; display: flex;
  -webkit-box-pack: justify; -webkit-justify-content: space-between; justify-content: space-between;
  -webkit-box-align: center; -webkit-align-items: center; align-items: center;
  padding: 1rem 1.5rem; margin-bottom: 0.7rem; min-height: 4.2rem;
  background: #160e26; border: 0.0625rem solid #2a1f42; border-radius: 0.9rem;
}
.slabel { font-size: 1.35rem; }
.sdesc { font-size: 1rem; color: #7d869b; margin-top: 0.25rem; }
.sval { font-size: 1.2rem; color: #c9a2ff; margin-left: 2rem; text-align: right; max-width: 50rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.err { color: #ff8a9a; font-size: 1.15rem; min-height: 1.6rem; margin-top: 0.4rem; }

/* ---------- Diálogos (fundo opaco, sem blur) ---------- */
.modal {
  position: absolute; left: 0; top: 0; right: 0; bottom: 0; z-index: 20;
  background: #000; background: rgba(3, 4, 8, 0.86);
}
.modal-panel {
  position: absolute; left: 50%; top: 8%; width: 70rem; margin-left: -35rem;
  max-height: 84%; overflow: hidden; padding: 2.4rem 2.8rem;
  background: #160e26; border: 0.0625rem solid #3d2a60; border-radius: 1.4rem;
}
.modal-panel.wide { width: 96rem; margin-left: -48rem; }
.modal-panel.small { width: 52rem; margin-left: -26rem; top: 25%; }
.modal-panel h1 { font-size: 2.4rem; font-weight: bold; margin: 0.4rem 0 0.6rem 0; }
.modal-panel h2 { font-size: 1.7rem; font-weight: bold; margin-bottom: 1rem; }
.mtext { font-size: 1.3rem; line-height: 1.9rem; color: #c3cad9; }
.modal-panel .kb { margin-top: 1rem; }
.item-dlg {
  display: -webkit-box; display: -webkit-flex; display: flex;
}
.item-info { -webkit-box-flex: 1; -webkit-flex: 1; flex: 1; margin-left: 2.6rem; }
.item-info .syn { max-height: 9rem; overflow: hidden; }
.avail { font-size: 1.15rem; color: #c9a2ff; margin-top: 1rem; }
