/* ==================================================================
   Seletor de aparência (site e painel). Usa as variáveis --ui-* de cada tema.
   Formatos: .tp--list (menu suspenso), .tp--chips (rodapé) e .tp--grid (cartões no Perfil).
   Aurora e Ouro Real só são enviadas pelo servidor para assinantes ativos e equipe.
   ================================================================== */
.tp { display: grid; gap: 2px; }

.tp-opt {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ui-text, inherit);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .15s ease;
}
.tp-opt:hover { background: var(--ui-hover, rgba(255, 255, 255, .06)); }
.tp-opt:focus-visible { outline: 2px solid var(--ui-focus, var(--ui-accent, #E8A33A)); outline-offset: 1px; }
.tp-opt.is-active { background: var(--ui-hover, rgba(255, 255, 255, .06)); }

/* Miniatura: uma tela com cabeçalho, um pôster e a cor de destaque */
.tp-swatch {
  position: relative;
  width: 44px;
  height: 30px;
  border-radius: 5px;
  background: var(--s1, #111);
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35);
  overflow: hidden;
  flex: none;
}
.tp-swatch i { position: absolute; display: block; }
.tp-swatch i:nth-child(1) { left: 0; right: 0; top: 0; height: 6px; background: var(--s2, #222); }
.tp-swatch i:nth-child(2) { left: 6px; bottom: 5px; width: 11px; height: 15px; border-radius: 2px; background: var(--s2, #222); }
.tp-swatch i:nth-child(3) { right: 6px; bottom: 6px; width: 16px; height: 5px; border-radius: 2px; background: var(--s3, #fc0); }

.tp-text { display: grid; gap: 1px; min-width: 0; }
.tp-name { font-weight: 600; font-size: .9rem; }
.tp-desc { color: var(--ui-muted, #8d8aa0); font-size: .8rem; line-height: 1.4; }
.tp--list .tp-desc { display: none; }
.tp-tag { color: var(--ui-muted, #a29fb5); font-size: .75rem; font-weight: 500; }
.tp-check { width: 18px; height: 18px; display: grid; place-items: center; color: var(--ui-text, currentColor); opacity: 0; }
.tp-check svg { width: 16px; height: 16px; stroke-width: 2.5; }
.tp-opt.is-active .tp-check { opacity: 1; }

/* Cartões (página de perfil) */
.tp--grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.tp--grid .tp-opt {
  grid-template-columns: 1fr auto;
  grid-template-areas: "sw sw" "tx ck";
  align-items: start;
  gap: 10px 8px;
  padding: 10px;
  border: 1px solid var(--ui-border, rgba(255, 255, 255, .1));
  border-radius: 12px;
}
.tp--grid .tp-opt.is-active { border-color: var(--ui-text, currentColor); box-shadow: inset 0 0 0 1px var(--ui-text, currentColor); background: transparent; }
.tp--grid .tp-swatch { grid-area: sw; width: 100%; height: 84px; border-radius: 7px; }
.tp--grid .tp-swatch i:nth-child(1) { height: 14px; }
.tp--grid .tp-swatch i:nth-child(2) { left: 12px; bottom: 12px; width: 30%; height: 44px; border-radius: 3px; }
.tp--grid .tp-swatch i:nth-child(3) { right: 12px; bottom: 14px; width: 34%; height: 10px; border-radius: 3px; }
.tp--grid .tp-text { grid-area: tx; }
.tp--grid .tp-check { grid-area: ck; }
.tp--grid .tp-desc { display: block; }

/* Rodapé: tira compacta, como um seletor de canal */
.tp--chips { display: flex; flex-wrap: wrap; gap: 4px; }
.tp--chips .tp-opt {
  width: auto;
  grid-template-columns: auto auto;
  gap: 8px;
  padding: 5px 10px 5px 5px;
  border: 1px solid var(--ui-border, rgba(255, 255, 255, .1));
  border-radius: 8px;
}
.tp--chips .tp-opt.is-active { border-color: var(--ui-text, currentColor); background: transparent; }
.tp--chips .tp-swatch { width: 24px; height: 18px; border-radius: 3px; }
.tp--chips .tp-swatch i:nth-child(1) { height: 4px; }
.tp--chips .tp-swatch i:nth-child(2) { left: 3px; bottom: 3px; width: 6px; height: 8px; }
.tp--chips .tp-swatch i:nth-child(3) { right: 3px; bottom: 3px; width: 8px; height: 3px; }
.tp--chips .tp-desc, .tp--chips .tp-tag, .tp--chips .tp-check { display: none; }
.tp--chips .tp-name { font-size: .8125rem; font-weight: 550; }
