/* Google Play — Material 3 */
.android {
  --bg: #fff; --sup: #f0f4f9; --sup2: #e9eef6; --dialogo: #f0f4f9;
  --txt: #1f1f1f; --txt2: #444746; --txt3: #5f6368;
  --contorno: #c4c7c5; --contorno2: #747775;
  --verde: #01875f; --verde-txt: #fff; --verde-claro: #c4eed0; --verde-claro-txt: #072711;
  --desab: rgba(31, 31, 31, .12); --desab-txt: rgba(31, 31, 31, .38);
  --snack: #313033; --snack-txt: #f4eff4; --snack-acao: #a8dab5;
  --foco: #01875f;
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  background: var(--bg); color: var(--txt);
  font-family: "Google Sans", "Product Sans", Roboto, system-ui, "Segoe UI", sans-serif;
  font-size: 14px; line-height: 20px; letter-spacing: .01em;
  color-scheme: light;
}
.android[data-tema="escuro"] {
  --bg: #131314; --sup: #1e1f20; --sup2: #282a2c; --dialogo: #2b2c2f;
  --txt: #e3e3e3; --txt2: #c4c7c5; --txt3: #a8abaf;
  --contorno: #444746; --contorno2: #8e918f;
  --verde: #6dd58c; --verde-txt: #00391b; --verde-claro: #0f5223; --verde-claro-txt: #c4eed0;
  --desab: rgba(227, 227, 227, .12); --desab-txt: rgba(227, 227, 227, .38);
  --snack: #e3e3e3; --snack-txt: #1f1f1f; --snack-acao: #01875f;
  --foco: #6dd58c;
  color-scheme: dark;
}
.android.com-moldura { --st: 36px; --sb: 16px; }
.android .and-sub, .android .and-resumo, .android small { font-family: Roboto, system-ui, sans-serif; }

/* ---------- Topo ---------- */
.and-topo { position: absolute; z-index: 20; top: 0; left: 0; right: 0; height: calc(var(--st) + 64px); padding: var(--st) 4px 0; display: flex; align-items: center; background: var(--bg); transition: background .25s, box-shadow .25s; }
.and-topo.rolou { background: var(--sup); }
.and-topo-titulo { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding-left: 8px; font-size: 18px; font-weight: 500; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s; }
.and-topo-titulo img { border-radius: 7px; }
.and-topo-titulo span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.and-topo.mostra-titulo .and-topo-titulo { opacity: 1; transform: none; }
.and-ic-btn { width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--txt2); }
.and-ic-btn svg { width: 24px; height: 24px; }
.and-ic-btn--p { width: 36px; height: 36px; margin-right: -8px; }
.and-ic-btn--p svg { width: 20px; height: 20px; }

.and-rolagem { position: absolute; inset: calc(var(--st) + 64px) 0 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; outline: none; }
.and-rolagem::-webkit-scrollbar { display: none; }
.and-conteudo { padding: 4px 0 calc(var(--sb) + 96px); }

/* ---------- Topo do app ---------- */
.and-hero { padding: 0 24px; }
.and-hero-linha { display: flex; align-items: center; gap: 22px; }
.and-icone-wrap { position: relative; width: 72px; height: 72px; flex: none; display: grid; place-items: center; }
.and-icone { width: 72px; height: 72px; border-radius: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, .18), 0 1px 1px rgba(0, 0, 0, .06); transition: transform .35s cubic-bezier(.2, 0, 0, 1), border-radius .35s; }
.and-anel { position: absolute; inset: -6px; width: calc(100% + 12px) !important; height: calc(100% + 12px) !important; transform: rotate(-90deg); opacity: 0; transition: opacity .25s; }
.and-anel circle { fill: none; stroke-width: 2; }
.and-anel .anel-trilho { stroke: var(--sup2); }
.and-anel .anel-valor { stroke: var(--verde); stroke-dasharray: 100; stroke-linecap: round; transition: stroke-dashoffset .2s linear; }
.and-icone-wrap[data-estado="pendente"] .and-anel, .and-icone-wrap[data-estado="baixando"] .and-anel, .and-icone-wrap[data-estado="instalando"] .and-anel { opacity: 1; }
.and-icone-wrap[data-estado="pendente"] .and-icone, .and-icone-wrap[data-estado="baixando"] .and-icone, .and-icone-wrap[data-estado="instalando"] .and-icone { transform: scale(.74); border-radius: 50%; }
.and-icone-wrap[data-estado="pendente"] .and-anel, .and-icone-wrap[data-estado="instalando"] .and-anel { animation: giraAnel 1.4s linear infinite; }
.and-icone-wrap[data-estado="pendente"] .anel-valor, .and-icone-wrap[data-estado="instalando"] .anel-valor { stroke-dashoffset: 72 !important; animation: arco 1.4s ease-in-out infinite; transition: none; }
@keyframes giraAnel { to { transform: rotate(270deg); } }
@keyframes arco { 0% { stroke-dashoffset: 95; } 50% { stroke-dashoffset: 30; } 100% { stroke-dashoffset: 95; } }

.and-hero-txt { min-width: 0; }
.and-hero h1 { font-size: 24px; line-height: 30px; font-weight: 500; letter-spacing: 0; }
.and-dev { display: inline-block; margin-top: 2px; color: var(--verde); font-weight: 500; font-size: 14px; }
.and-meta { color: var(--txt2); font-size: 12px; line-height: 16px; margin-top: 2px; font-family: Roboto, system-ui, sans-serif; display: flex; flex-direction: column; gap: 2px; }
.and-meta-prog { color: var(--txt); font-weight: 500; font-variant-numeric: tabular-nums; }
.and-protect { display: inline-flex; align-items: center; gap: 4px; color: var(--txt2); }
.and-protect svg { width: 13px; height: 13px; color: var(--verde); }

.and-stats { display: flex; overflow-x: auto; margin: 22px -24px 0; padding: 0 24px; }
.and-stat { position: relative; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; padding: 0 20px; text-align: center; }
.and-stat:first-child { padding-left: 0; }
.and-stat + .and-stat::before { content: ''; position: absolute; left: 0; top: 50%; height: 24px; translate: 0 -50%; border-left: 1px solid var(--contorno); }
.and-stat strong { display: flex; align-items: center; gap: 2px; height: 22px; font-size: 14px; font-weight: 500; }
.and-stat-est svg { width: 12px; height: 12px; }
.and-stat > span { display: flex; align-items: center; gap: 3px; color: var(--txt2); font-size: 12px; white-space: nowrap; font-family: Roboto, system-ui, sans-serif; }
.and-stat > span svg { width: 13px; height: 13px; }
.classind { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 3px; background: #000; color: #fff; font: 700 11px/1 Roboto, Arial, sans-serif; letter-spacing: -.02em; }
.android[data-tema="escuro"] .classind { box-shadow: 0 0 0 1px #5f6368; }

.and-acoes { display: flex; gap: 8px; margin-top: 22px; }
.and-btn { flex: 1; height: 40px; border-radius: 20px; font-size: 14px; font-weight: 500; letter-spacing: .01em; text-align: center; transition: background .2s, color .2s, box-shadow .2s; }
.and-btn--cheio { background: var(--verde); color: var(--verde-txt); }
.and-btn--cheio:not(:disabled):hover { box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.and-btn--contorno { border: 1px solid var(--contorno2); color: var(--verde); }
.and-btn:disabled { background: var(--desab); color: var(--desab-txt); border-color: transparent; cursor: default; }
.and-btn--contorno:disabled { background: none; border: 1px solid var(--desab); }
.and-acoes[data-estado] .and-btn { animation: entraBtn .3s cubic-bezier(.2, 0, 0, 1); }
@keyframes entraBtn { from { opacity: 0; transform: scaleX(.92); } }

.and-extras { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 14px; }
.and-txt-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; margin-left: -12px; border-radius: 20px; color: var(--verde); font-weight: 500; font-size: 14px; }
.and-txt-btn svg { width: 18px; height: 18px; }
.and-extras .and-txt-btn + .and-txt-btn { margin-left: 0; }
.and-disp { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--txt2); font-size: 12px; font-family: Roboto, system-ui, sans-serif; }
.and-disp svg { width: 16px; height: 16px; }

/* ---------- Mídia ---------- */
.and-midia { --alt: clamp(190px, 54cqw, 320px); display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 24px; scroll-padding: 0 24px; margin-top: 20px; }
.and-midia > * { flex: none; height: var(--alt); border-radius: 8px; overflow: hidden; scroll-snap-align: start; border: 1px solid color-mix(in srgb, var(--contorno) 60%, transparent); }
.and-trailer { position: relative; aspect-ratio: 16 / 9; background: #000; }
.and-trailer img { width: 100%; height: 100%; object-fit: cover; }
.and-trailer-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); color: #1f1f1f; box-shadow: 0 4px 16px rgba(0, 0, 0, .35); transition: transform .2s; }
.and-trailer:hover .and-trailer-play { transform: scale(1.08); }
.and-trailer-play svg { width: 30px; height: 30px; margin-left: 3px; }
.and-trailer-tag { position: absolute; left: 10px; bottom: 10px; padding: 2px 8px; border-radius: 4px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 500; }
.and-captura { aspect-ratio: 9 / 16; }
.and-captura .cap { --ar: 9 / 16; height: 100%; width: auto; }

/* ---------- Seções ---------- */
.and-sec { padding: 0 24px; margin-top: 20px; }
.and-sec-tit { width: calc(100% + 24px); margin: 0 -12px; padding: 8px 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px; line-height: 24px; font-weight: 500; border-radius: 12px; color: var(--txt); }
.and-sec-tit svg { width: 24px; height: 24px; color: var(--txt2); transition: transform .25s; }
.and-sub { color: var(--txt2); font-size: 12px; line-height: 16px; display: flex; align-items: center; gap: 4px; margin-top: 2px; }
.and-sub svg { width: 14px; height: 14px; }
.and-sub--txt { font-size: 14px; line-height: 20px; display: block; margin-top: 4px; }
.and-resumo { color: var(--txt2); margin-top: 6px; }
.and-pre { white-space: pre-line; }

.and-chips { display: flex; gap: 8px; overflow-x: auto; margin: 16px -24px 0; padding: 0 24px; scrollbar-width: none; }
.and-chips::-webkit-scrollbar { display: none; }
.and-chips--wrap { flex-wrap: wrap; overflow: visible; margin: 16px 0 0; padding: 0; }
.and-tag { flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--contorno); color: var(--txt2); font-size: 14px; font-weight: 500; }
.and-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--contorno2); color: var(--txt2); font-size: 14px; font-weight: 500; transition: background .2s, border-color .2s; }
.and-chip svg { width: 18px; height: 18px; }
.and-chip[aria-selected="true"], .and-chip[aria-pressed="true"] { background: var(--verde-claro); color: var(--verde-claro-txt); border-color: transparent; }
.and-chip--disp[aria-selected="true"] { padding-left: 8px; }
.and-util .and-chip { height: 32px; border-radius: 16px; padding: 0 16px; }

.and-link { display: inline-block; margin-top: 14px; color: var(--verde); font-weight: 500; font-size: 14px; padding: 6px 0; }

/* Eventos */
.and-eventos { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 12px -24px 0; padding: 0 24px; scroll-padding: 0 24px; }
.and-evento { flex: 0 0 min(80%, 320px); scroll-snap-align: start; }
.and-evento-img { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.and-evento-img img { width: 100%; height: 100%; object-fit: cover; }
.and-evento-img span { position: absolute; left: 10px; top: 10px; padding: 3px 10px; border-radius: 6px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 12px; font-weight: 500; backdrop-filter: blur(6px); }
.and-evento-txt { padding-top: 10px; }
.and-evento-txt small { color: var(--txt2); font-size: 12px; }
.and-evento-txt strong { display: block; font-size: 16px; font-weight: 500; margin-top: 2px; }
.and-evento-txt p { color: var(--txt2); margin-top: 2px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-family: Roboto, system-ui, sans-serif; }

/* Avaliar (só com o app instalado) */
.and-sec--avaliar { display: none; }
.android.esta-instalado .and-sec--avaliar { display: block; animation: entraBtn .4s; }
.and-avaliar { display: flex; justify-content: space-between; max-width: 320px; margin-top: 16px; }
.and-avaliar button { position: relative; width: 44px; height: 44px; color: var(--txt2); transition: transform .15s; }
.and-avaliar button:active { transform: scale(.85); }
.and-avaliar svg { position: absolute; inset: 4px; width: 36px; height: 36px; }
.and-avaliar svg + svg { color: var(--verde); opacity: 0; transform: scale(.3); transition: opacity .2s, transform .3s cubic-bezier(.2, .9, .3, 1.5); }
.and-avaliar button.on svg + svg { opacity: 1; transform: none; }

/* Segurança */
.and-seguranca { margin-top: 16px; border: 1px solid var(--contorno); border-radius: 8px; padding: 16px; display: grid; gap: 16px; }
.and-seg-l { display: flex; gap: 16px; align-items: flex-start; }
.and-seg-l > svg { width: 20px; height: 20px; color: var(--txt2); margin-top: 1px; }
.and-seg-l strong { display: block; font-weight: 400; color: var(--txt); font-family: Roboto, system-ui, sans-serif; }
.and-seg-l small { display: block; color: var(--txt2); font-size: 12px; line-height: 16px; margin-top: 2px; }
.and-seguranca .and-link { margin-top: 0; justify-self: start; }

/* Notas e resenhas */
.and-notas { display: flex; align-items: center; gap: 24px; margin-top: 18px; }
.and-notas-g { display: flex; flex-direction: column; align-items: flex-start; }
.and-notas-g strong { font-size: 56px; line-height: 64px; font-weight: 400; letter-spacing: -.02em; }
.and-notas-g small { color: var(--txt2); font-size: 12px; margin-top: 4px; }
.estrelas--play { --tam-est: 12px; color: var(--verde); }
.estrelas--play .estrelas-base { color: var(--contorno); }
.and-notas-g .estrelas--play { --tam-est: 13px; }
.and-hist { flex: 1; display: grid; gap: 4px; }
.and-hist-l { display: flex; align-items: center; gap: 14px; color: var(--txt2); font-size: 12px; font-family: Roboto, system-ui, sans-serif; }
.and-hist-l > span:first-child { width: 6px; text-align: center; }
.and-hist-b { flex: 1; height: 10px; border-radius: 5px; background: var(--sup2); overflow: hidden; }
.and-hist-b i { display: block; height: 100%; border-radius: 5px; background: var(--verde); }

.and-resenhas { display: grid; gap: 28px; margin-top: 26px; }
.and-resenha header { display: flex; align-items: center; gap: 16px; }
.and-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 500; font-size: 15px; }
.and-resenha header strong { flex: 1; font-weight: 400; font-size: 14px; font-family: Roboto, system-ui, sans-serif; }
.and-resenha-linha { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--txt2); font-size: 12px; font-family: Roboto, system-ui, sans-serif; }
.and-resenha .txt { margin-top: 8px; color: var(--txt2); font-family: Roboto, system-ui, sans-serif; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }
.android [data-expansivel].aberto .txt { display: block; }
.and-mais { color: var(--verde); font-weight: 500; margin-top: 4px; }
.and-resposta { margin-top: 12px; padding: 12px 16px; border-radius: 8px; background: var(--sup); }
.and-resposta header { justify-content: space-between; }
.and-resposta header strong { font-weight: 500; flex: none; }
.and-resposta time { color: var(--txt2); font-size: 12px; }
.and-resposta p { margin-top: 6px; color: var(--txt2); font-family: Roboto, system-ui, sans-serif; }
.and-uteis { margin-top: 12px; color: var(--txt2); font-size: 12px; font-family: Roboto, system-ui, sans-serif; }
.and-util { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--txt2); font-size: 12px; font-family: Roboto, system-ui, sans-serif; }
.and-util > span { margin-right: 8px; }

/* Suporte */
.and-suporte summary { list-style: none; cursor: pointer; }
.and-suporte summary::-webkit-details-marker { display: none; }
.and-suporte[open] summary svg { transform: rotate(180deg); }
.and-sup-l { display: flex; align-items: center; gap: 22px; padding: 14px 0; }
.and-sup-l > svg { width: 22px; height: 22px; color: var(--txt2); }
.and-sup-l strong { display: block; font-weight: 500; }
.and-sup-l small { display: block; color: var(--txt2); font-size: 12px; }

.and-rodape { margin: 28px 24px 0; padding-top: 12px; border-top: 1px solid var(--contorno); display: grid; justify-items: start; gap: 6px; }
.and-sinalizar { display: inline-flex; align-items: center; gap: 16px; padding: 10px 12px; margin-left: -12px; border-radius: 20px; color: var(--txt2); font-weight: 500; }
.and-sinalizar svg { width: 20px; height: 20px; }

/* ---------- Navegação inferior ---------- */
.and-nav { position: absolute; z-index: 25; left: 0; right: 0; bottom: 0; height: calc(80px + var(--sb)); padding-bottom: var(--sb); display: flex; background: var(--sup); }
.and-nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--txt2); font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.and-nav-ic { width: 64px; height: 32px; border-radius: 16px; display: grid; place-items: center; transition: background .25s; }
.and-nav-ic svg { width: 24px; height: 24px; }
.and-nav-item.ativo { color: var(--txt); font-weight: 700; }
.and-nav-item.ativo .and-nav-ic { background: var(--verde-claro); color: var(--verde-claro-txt); }

/* ---------- Diálogo ---------- */
.dialogo { z-index: 88; display: grid; place-items: center; }
.dialogo-fundo { position: absolute; inset: 0; background: rgba(0, 0, 0, .32); opacity: 0; transition: opacity .2s; }
.dialogo.aberta .dialogo-fundo { opacity: 1; }
.dialogo-caixa { position: relative; width: min(312px, calc(100% - 48px)); padding: 24px; border-radius: 28px; background: var(--dialogo); display: grid; justify-items: center; text-align: center; opacity: 0; transform: scale(.9); transition: opacity .2s, transform .25s cubic-bezier(.2, 0, 0, 1); }
.dialogo.aberta .dialogo-caixa { opacity: 1; transform: none; }
.dialogo-caixa img { border-radius: 10px; }
.dialogo-caixa h2 { font-size: 24px; line-height: 32px; font-weight: 400; margin-top: 16px; }
.dialogo-caixa p { color: var(--txt2); margin-top: 16px; font-family: Roboto, system-ui, sans-serif; text-align: left; }
.dialogo-acoes { justify-self: end; display: flex; gap: 8px; margin-top: 24px; }
.dialogo-acoes .and-txt-btn { margin: 0; padding: 0 12px; }

/* ---------- Página interna em tela cheia ---------- */
.pagina--android { z-index: 82; }
.pagina-tela { position: absolute; inset: 0; background: var(--bg); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, 0, 0, 1); }
.pagina--android.aberta .pagina-tela { transform: none; }
.pagina--android .pagina-topo { display: flex; align-items: center; gap: 12px; padding: calc(var(--st) + 8px) 8px 8px 4px; }
.pagina--android .pagina-topo img { border-radius: 8px; }
.pagina--android .pagina-topo h2 { font-size: 18px; line-height: 24px; font-weight: 500; }
.pagina--android .pagina-topo p { color: var(--txt2); font-size: 12px; line-height: 16px; }
.pagina--android .pagina-corpo { flex: 1; overflow-y: auto; padding: 8px 24px calc(var(--sb) + 32px); scrollbar-width: none; }
.and-pag-txt { color: var(--txt2); font-family: Roboto, system-ui, sans-serif; }
.and-pag-h { font-size: 16px; font-weight: 500; margin: 26px 0 0; }
.and-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin-top: 14px; }
.and-info dt { font-size: 14px; color: var(--txt); }
.and-info dd { font-size: 14px; color: var(--txt2); font-family: Roboto, system-ui, sans-serif; }
.and-versao { padding: 16px 0; border-bottom: 1px solid var(--contorno); }
.and-versao strong { font-weight: 500; }
.and-versao small { display: block; color: var(--txt2); font-size: 12px; }
.and-versao p { color: var(--txt2); margin-top: 8px; }

/* ---------- Tablet ---------- */
@container loja (min-width: 700px) {
  .and-conteudo { max-width: 880px; margin: 0 auto; }
  .and-hero, .and-sec { padding-inline: 32px; }
  .and-hero-linha { gap: 28px; }
  .and-icone-wrap, .and-icone { width: 96px; height: 96px; }
  .and-icone { border-radius: 22px; }
  .and-hero h1 { font-size: 32px; line-height: 40px; }
  .and-acoes { max-width: 360px; }
  .and-midia { padding-inline: 32px; scroll-padding: 0 32px; }
  .and-stats, .and-chips, .and-eventos { margin-inline: -32px; padding-inline: 32px; }
  .and-resenhas { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .and-nav { left: 0; right: auto; top: 0; bottom: 0; width: 80px; height: auto; flex-direction: column; justify-content: flex-start; gap: 12px; padding: calc(var(--st) + 84px) 0 0; }
  .and-nav-item { flex: none; }
  .and-topo, .and-rolagem { left: 80px; }
  .aviso { left: calc(80px + 24px) !important; right: auto !important; width: 420px; }
}
