/* Estilos só da página Adicionar Playlist. Cores, botões, campos, cartão, aviso e .codigo vêm de base.css.
   Compatível com Safari iOS 13+ e Chrome/WebView 80+: sem :has, inset, gap em flex, aspect-ratio, dvh. */

[hidden] { display: none !important; }

.pl { padding: 20px 0 64px; }
.pl h1 { font-size: 2.125rem; margin-bottom: 16px; }
.pl h2 { font-size: 1.625rem; margin-bottom: 12px; }
.pl h2:focus, .pl h1:focus { outline: none; }
.pl h3 { font-size: 1.0625rem; }
.pl .abre { margin-bottom: 24px; }
.entrar h1 { font-size: 2.25rem; line-height: 1.04; margin-bottom: 20px; }

/* uma etapa por vez; entra com um fade curto */
@keyframes entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.etapa { animation: entra .28s var(--curva) both; }
.coluna { max-width: 620px; }

.voltar { display: inline-flex; align-items: center; min-height: 44px; margin: 0 0 8px -4px; padding: 0 4px; color: var(--suave); font-size: .9375rem; font-weight: 600; text-decoration: none; }
.voltar svg { display: block; width: 18px; height: 18px; margin-right: 6px; }
.voltar:hover { color: var(--creme); }

/* ---------- a) entrar ---------- */
.entrar { display: grid; grid-template-columns: 1fr; grid-gap: 40px; }
.entrar .campo input { text-transform: uppercase; letter-spacing: 0; font-weight: 700; font-size: 1.25rem; }
.entrar .campo input::placeholder { text-transform: none; letter-spacing: .02em; font-weight: 400; font-size: 1rem; }
.entrar .botao { margin-top: 4px; }
.entrar__nota { margin: 20px 0 0; color: var(--suave); font-size: .875rem; }

/* onde achar o código: a tela da TV, em imagem */
.achar h2 { font-size: 1.25rem; margin-bottom: 16px; }
.tvd { margin: 0 0 24px; overflow: hidden; border-radius: 12px; background: var(--c-25); }
.tvd img { display: block; width: 100%; height: auto; transition: transform .4s var(--curva); }
.tvd:hover img { transform: scale(1.025); }
.achar__passos { list-style: none; margin: 0; padding: 0; counter-reset: p; }
.achar__passos > li { position: relative; padding: 0 0 12px 40px; counter-increment: p; color: var(--texto); }
.achar__passos > li::before { content: counter(p); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; line-height: 28px; text-align: center; background: var(--acento); border-radius: 50%; color: var(--sobre-laranja); font-size: .875rem; font-weight: 800; }
.achar__passos > li:last-child { padding-bottom: 0; }

/* ---------- campos com "Mostrar" e grupos ---------- */
.campo__linha { position: relative; }
.campo__linha input { padding-right: 96px; }
.campo__ver { position: absolute; right: 4px; top: 4px; height: 44px; min-width: 80px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--creme); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.campo__ver:hover { background: var(--superficie-2); }
.esqueci { margin: 4px 0 0; }
.esqueci__botao { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--creme); font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: .22em; cursor: pointer; }
.esqueci__caixa { margin-top: 12px; }
.esqueci__caixa p:last-child { margin-bottom: 0; }
.esqueci__caixa p { margin-bottom: 10px; }

/* ---------- c) sua TV ---------- */
.tvbarra { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin: 0 0 24px; padding: 6px 20px; background: var(--superficie); border-radius: var(--raio); }
.tvbarra p { margin: 0; color: var(--suave); font-size: .875rem; }
.tvbarra strong { margin-left: 8px; color: var(--creme); font-size: 1.125rem; font-weight: 800; letter-spacing: .12em; }
.tvbarra a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; }

.hub { display: grid; grid-template-columns: 1fr; grid-gap: 36px; }
.status h2 { margin: 0 0 8px; font-size: 1.5rem; }
.status__topo { display: flex; align-items: center; margin: 0 0 14px; }
.status__sel { display: block; width: 36px; height: 36px; margin-right: 12px; flex: 0 0 auto; }
.status .preco { margin: 16px 0 14px; font-size: 1rem; color: var(--texto); }
.status .preco strong { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.status__renova { margin: 0 0 18px; color: var(--suave); font-size: .9375rem; }
.status__botoes { margin: 0 -6px -6px; }
.status__botoes .botao { flex: 1 1 100%; }
.troca { margin: 0 0 16px; padding: 12px 14px; background: var(--superficie); border-radius: var(--raio); font-size: .9375rem; color: var(--creme); }
.bloco { margin: 0 0 16px; padding: 24px; background: var(--superficie); border-radius: var(--raio); }
.bloco:last-child { margin-bottom: 0; }
.bloco > :last-child { margin-bottom: 0; }
.bloco h2 { font-size: 1.375rem; }
.bloco p { max-width: 56ch; }

.lista-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; padding: 16px 18px; background: var(--superficie-2); border-radius: var(--raio); }
.lista-item__texto { flex: 1 1 200px; min-width: 0; margin: 0 12px 0 0; }
.lista-item h3 { margin: 0 0 2px; font-size: 1.125rem; }
.lista-item p { margin: 0; color: var(--suave); font-size: .875rem; overflow-wrap: anywhere; }
.lista-item .botoes { flex: 0 0 auto; margin: 10px -6px -6px; }
.botao--apagar { color: var(--erro); }
.botao--apagar:hover { border-color: var(--erro); }
.protegida { display: flex; align-items: center; margin: 0 0 10px; color: var(--creme); font-weight: 600; }
.protegida svg { display: block; width: 20px; height: 20px; margin-right: 10px; flex: 0 0 auto; }

/* ---------- d) cadastrar / editar lista ---------- */
.tipos { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.tipos legend { padding: 0; margin: 0 0 10px; color: var(--creme); font-size: .9375rem; font-weight: 600; }
.tipos__grade { display: grid; grid-template-columns: 1fr; grid-gap: 10px; }
.tipo { position: relative; display: block; cursor: pointer; }
.tipo input { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tipo__corpo { display: block; position: relative; min-height: 64px; padding: 14px 16px 14px 52px; background: var(--superficie); border: 1.5px solid var(--linha-forte); border-radius: 12px; transition: border-color .15s var(--curva), background-color .15s var(--curva); }
.tipo__corpo::before { content: ''; position: absolute; left: 18px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 2px solid var(--linha-forte); border-radius: 50%; transition: border-color .15s var(--curva); }
.tipo__corpo::after { content: ''; position: absolute; left: 23px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--acento); opacity: 0; transform: scale(.4); transition: transform .15s var(--curva), opacity .15s var(--curva); }
.tipo__corpo b { display: block; color: var(--creme); font-size: 1rem; line-height: 1.3; }
.tipo__corpo small { display: block; color: var(--suave); font-size: .8125rem; line-height: 1.4; }
.tipo:hover .tipo__corpo { border-color: var(--suave); }
.tipo input:checked + .tipo__corpo { border-color: var(--acento); background: var(--superficie-2); }
.tipo input:checked + .tipo__corpo::before { border-color: var(--acento); }
.tipo input:checked + .tipo__corpo::after { opacity: 1; transform: scale(1); }
.tipo input:focus-visible + .tipo__corpo { outline: 3px solid var(--acento); outline-offset: 3px; }
.form-botoes { margin-top: 28px; }
.form-botoes .botao { flex: 1 1 100%; }

/* ---------- e) proteger com senha ---------- */
.pl .aviso { margin: 0 0 24px; }
.aviso--forte { font-size: 1.0625rem; }

/* ---------- apagar ---------- */
.botao--perigo { background: var(--erro); border-color: var(--erro); color: var(--sobre-laranja); }
.botao--perigo:hover { background: var(--c-37); border-color: var(--c-37); }
.alvo { margin: 0 0 24px; padding: 14px 18px; background: var(--superficie-2); border-radius: var(--raio); }
.alvo strong { display: block; font-size: 1.0625rem; }
.alvo span { color: var(--suave); font-size: .875rem; }

/* ---------- f) Pix ---------- */
.pix { display: grid; grid-template-columns: 1fr; grid-gap: 28px; margin-top: 20px; }
.pix__resumo { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; margin: 0 0 18px; padding: 18px 20px; background: var(--superficie-2); border-radius: var(--raio); }
.pix__resumo p { margin: 0; color: var(--suave); font-size: .9375rem; line-height: 1.45; }
.pix__resumo p strong { display: block; color: var(--creme); font-size: 1.0625rem; }
.pix__resumo .pix__valor { margin: 8px 0 0; color: var(--creme); font-size: 2rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; white-space: nowrap; }
.aguardando { display: flex; align-items: center; margin: 0 0 22px; color: var(--creme); font-weight: 600; }
.aguardando__ponto { display: block; width: 10px; height: 10px; margin-right: 12px; border-radius: 50%; background: var(--acento); animation: pulsa 1.4s ease-in-out infinite; }
@keyframes pulsa { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.pix__codigo { margin: 0 0 14px; padding: 14px 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; background: var(--superficie-2); border-radius: 12px; color: var(--suave); font-size: .8125rem; line-height: 1.5; word-break: break-all; -webkit-user-select: all; user-select: all; }
.pix__copiar { min-height: 60px; font-size: 1.0625rem; }
.pix__passos { margin: 22px 0 0; padding: 0; list-style: none; counter-reset: q; }
.pix__passos li { position: relative; padding: 0 0 10px 36px; counter-increment: q; color: var(--texto); font-size: .9375rem; line-height: 1.55; }
.pix__passos li::before { content: counter(q); position: absolute; left: 0; top: 0; width: 24px; height: 24px; line-height: 24px; text-align: center; background: var(--acento); border-radius: 50%; color: var(--sobre-laranja); font-size: .8125rem; font-weight: 800; }
.pix__passos .so-pc { display: none; }
.pix__qr { order: 2; text-align: center; }
.pix__qr[hidden] { display: none !important; }
.qr-tile { display: inline-block; padding: 16px; background: var(--superficie); border-radius: 16px; line-height: 0; }
.qr-tile img { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.pix__qr p { margin: 12px 0 0; color: var(--suave); font-size: .875rem; }
.pix__verqr { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; padding: 0; border: 0; background: none; color: var(--creme); font: inherit; font-size: .9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: .22em; cursor: pointer; }

/* ---------- comprovante ---------- */
.recibo { padding: 0; overflow: hidden; }
.recibo__topo { padding: 22px 24px; background: var(--superficie-2); }
.recibo__topo h3 { margin: 0 0 2px; font-size: 1.25rem; }
.recibo__topo p { margin: 0; color: var(--suave); font-size: .875rem; }
.recibo__cod { padding: 20px 24px 8px; }
.recibo .recibo__cod dt { margin: 0 0 8px; }
.recibo .recibo__cod dd { margin: 0; text-align: left; }
.recibo__cod .codigo { max-width: 340px; }
.recibo dl { margin: 0; }
.recibo__linha { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 24px; }
.recibo__linha:nth-child(odd) { background: var(--superficie-2); }
.recibo dt { color: var(--suave); font-size: .9375rem; }
.recibo dd { margin: 0 0 0 16px; color: var(--creme); font-size: 1rem; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.recibo__total dd { font-size: 1.25rem; font-weight: 800; }
.recibo__acoes { margin-top: 22px; }
.recibo__acoes .botao { flex: 1 1 100%; }
.recibo__aviso { margin: 18px 0 0; color: var(--suave); font-size: .875rem; }

/* ---------- revenda ---------- */
.revenda h2 { font-size: 1.75rem; }
.revenda .abre { margin-bottom: 20px; }
.revenda .botoes .botao { flex: 1 1 100%; }

@media (min-width: 760px) {
  .pl { padding: 48px 0 96px; }
  .pl h1 { font-size: 2.75rem; }
  .pl h2 { font-size: 2rem; }
  
  .entrar { grid-template-columns: 1fr 1fr; grid-gap: 72px; align-items: start; }
  .entrar__form { max-width: 460px; }
  .achar { padding-top: 6px; }
  .achar h2 { font-size: 1.375rem; }
  .tvd__miolo img { height: 22px; margin-bottom: 16px; }
  .tvd__marca .codigo li { font-size: 1.25rem; padding: 10px 0; }
  .tvd__miolo p { font-size: .875rem; }

  .hub { grid-template-columns: 5fr 7fr; grid-gap: 64px; align-items: start; }
  .status h2 { font-size: 1.75rem; }

  .lista-item { flex-wrap: nowrap; padding: 18px 20px; }
  .lista-item .botoes { margin: -6px; }

  .tipos__grade { grid-template-columns: 1fr 1fr; }
  .form-botoes .botao, .recibo__acoes .botao, .revenda .botoes .botao { flex: 0 0 auto; }

  .pix { grid-template-columns: 330px 1fr; grid-gap: 64px; align-items: start; max-width: 900px; }
  .pix__qr { order: 0; }
  .pix__resumo .pix__valor { margin: 0; }
  .pix__qr[hidden] { display: block !important; }
  .pix__verqr { display: none; }
  .qr-tile { padding: 20px; border-radius: 18px; }
  .qr-tile img { width: 290px; height: 290px; }
  .pix__passos .so-celular { display: none; }
  .pix__passos .so-pc { display: block; }
  .pix__copiar { display: inline-flex; width: auto; min-width: 280px; }
  .recibo__topo, .recibo__cod, .recibo__linha { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 400px) {
  .codigo li { font-size: 1.125rem; }
  .tvd__marca .codigo li { font-size: .875rem; }
}

/* ---------- A2: partes que o esboço não tinha (site de verdade) ---------- */
.so-impressao { display: none; }

/* aviso curto que aparece em cima da TV depois de salvar */
.flash { margin: 0 0 20px; padding: 12px 16px; background: var(--superficie-2); border-radius: var(--raio); color: var(--creme); font-weight: 600; font-size: .9375rem; }
.indisp { margin: 14px 0 0; color: var(--suave); font-size: .9375rem; }
.aviso--editar { margin-bottom: 24px; font-size: .9375rem; }

/* erro geral do formulário (o erro de cada campo continua na própria .ajuda) */
.erro-form { margin: 0 0 18px; padding: 12px 16px; border: 1.5px solid var(--erro); border-radius: 12px; color: var(--erro); font-size: .9375rem; line-height: 1.5; }
.erro-form[hidden] { display: none; }
.botao[aria-busy="true"] { opacity: .7; cursor: progress; }

/* linhas de ação (Outras opções): linha inteira, seta no fim */
.acoes { margin: 0; padding: 0; list-style: none; }
.acoes li { margin: 0 0 6px; }
.acoes a { display: flex; align-items: center; justify-content: space-between; min-height: 64px; padding: 14px 18px; background: var(--superficie-2); border-radius: 12px; color: var(--creme); text-decoration: none; transition: background-color .15s var(--curva); }
.acoes a:hover { background: var(--linha); }
.acoes a:hover .acoes__texto strong { text-decoration: underline; text-decoration-color: var(--acento); text-underline-offset: .22em; }
.acoes__texto { display: block; min-width: 0; margin-right: 16px; }
.acoes__texto strong { display: block; font-size: 1rem; line-height: 1.35; }
.acoes__texto span { display: block; margin-top: 2px; color: var(--suave); font-size: .875rem; line-height: 1.45; }
.acoes svg { display: block; flex: 0 0 auto; width: 20px; height: 20px; color: var(--suave); }

/* Pix: estados */
.pix-estado { margin-top: 20px; }
.pl .pix-expirado { margin: 0 0 8px; font-size: 1.5rem; }
.pix__validade { margin: 14px 0 0; color: var(--suave); font-size: .875rem; }
.pix__paguei { margin: 18px 0 0; }
.pix__paguei p { margin: 12px 0 0; font-size: .9375rem; min-height: 1.5em; }

/* número do pedido, em destaque */
.pedido-destaque { margin: 0 0 24px; padding: 22px 24px; background: var(--superficie-2); border: 2px solid var(--acento); border-radius: var(--raio); }
.pedido-destaque p { margin: 0; }
.pedido-destaque__rotulo { color: var(--suave); font-size: .875rem; }
.pedido-destaque__numero { margin: 4px 0 10px !important; color: var(--creme); font-size: 2rem; font-weight: 800; letter-spacing: .04em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.pedido-destaque__aviso { color: var(--texto); font-size: .9375rem; line-height: 1.55; }

/* lista de comprovantes */
.historico { margin: 24px 0 20px; padding: 0; list-style: none; }
.historico li { margin: 0 0 6px; padding: 18px 20px; background: var(--superficie); border-radius: 12px; }
.historico__topo { display: flex; justify-content: space-between; align-items: baseline; }
.historico__topo strong { font-size: 1.0625rem; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.historico__topo span { color: var(--creme); font-weight: 800; font-variant-numeric: tabular-nums; }
.historico p { margin: 4px 0 0; color: var(--suave); font-size: .875rem; line-height: 1.5; }

@media (min-width: 760px) {
  .pedido-destaque__numero { font-size: 2.5rem; }
  .pedido-destaque { padding: 26px 32px; }
}

/* ---------- depois do código (só na primeira etapa) ---------- */
.depois { margin-top: 72px; }
.depois h2 { margin-bottom: 12px; }
.depois .abre { margin-bottom: 0; }
.depois__lista { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; grid-gap: 40px; }
.depois__lista figure { margin: 0 0 18px; height: 260px; overflow: hidden; border-radius: 12px; background: var(--c-25); }
.depois__lista img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .4s var(--curva); }
.depois__lista figure:hover img { transform: scale(1.03); }
.depois__lista h3 { font-size: 1.25rem; margin-bottom: 8px; }
.depois__lista p { margin: 0; max-width: 34ch; }

/* entradas ao abrir a página: texto sobe e sai do desfoque, uma vez, em menos de meio segundo */
.entrar__form h1 { animation: sobe .45s var(--curva) 0s both; }
.entrar__form .abre { animation: sobe .45s var(--curva) .04s both; }
.entrar__form .campo, .entrar__form .botao { animation: sobe .45s var(--curva) .08s both; }
.entrar__form .botao { animation-delay: .12s; }
.entrar__nota { animation: sobe .45s var(--curva) .16s both; }
.achar h2 { animation: sobe .45s var(--curva) .04s both; }
.tvd { animation: sobe .45s var(--curva) .08s both; }
.achar__passos > li { animation: sobe .45s var(--curva) .12s both; }
.achar__passos > li:nth-child(2) { animation-delay: .16s; }
.depois h2 { animation: sobe .45s var(--curva) .16s both; }
.depois .abre { animation: sobe .45s var(--curva) .18s both; }
.depois__lista figure { animation: sobe .45s var(--curva) .2s both; }
.depois__lista li { animation: sobe .45s var(--curva) .2s both; }
.depois__lista li:nth-child(2) { animation-delay: .24s; }
.depois__lista li:nth-child(3) { animation-delay: .28s; }

@media (min-width: 760px) {
  .entrar h1 { font-size: clamp(3rem, 4.6vw, 4.5rem); }
  .depois { margin-top: 112px; }
  .depois__lista { grid-template-columns: repeat(3, 1fr); grid-gap: 48px; margin-top: 48px; }
  .depois__lista figure { height: 340px; }
}

/* 23/11 (obra site_menu_2311): o título ficou mais longo ("Adicionar e ativar playlist"); no tablet a coluna única mantém em 2 linhas */
@media (min-width: 760px) and (max-width: 1099px) {
  .entrar { grid-template-columns: 1fr; grid-gap: 40px; }
  .entrar__form { max-width: 600px; }
}

/* ---------- tema claro v7 (26/11): só aparência; a marcação e o playlist.js não mudaram ---------- */
.pl { padding: 28px 0 72px; }
.entrar h1 { font-size: 2.6rem; font-size: clamp(2.6rem, 1rem + 3.4vw, 3.9rem); letter-spacing: -.05em; line-height: .96; margin-bottom: 22px; }
.pl h2 { letter-spacing: -.04em; }
.tvd { border-radius: 24px; }
.depois__lista figure { border-radius: 20px; }
/* bolinha do número: tinta escura (branco sobre laranja não dá leitura em letra pequena) */
.achar__passos > li::before, .pix__passos li::before { background: var(--creme); color: var(--superficie); }
.pl .cartao { border-radius: 24px; }
.qr-tile { border: 1px solid var(--linha); }
