/* =========================================================
   Irmãos Mandarim · Conteúdo Gratuito — "três portas para fora"
   Só o que é desta página. Tokens, tipos, cabeçalho, rodapé, botão e cartão de saída (.sai) vêm de base.css.
   ========================================================= */

/* ===== Ramos da linha da margem (os traçados são calculados pelo pagina.js) ===== */
.ramos { position: absolute; z-index: 3; left: 0; top: 0; max-width: none; overflow: visible; pointer-events: none; }
.ramos path { fill: none; stroke: var(--tinta); stroke-width: 2; }
.ramos--p { z-index: 0; }
.ramos--p path { stroke: var(--papel); }
html.anim .ramos path { stroke-dasharray: 1; }

/* ===== Abertura + 1 · Playlists ===== */
.ap-peca { position: relative; z-index: 2; }
.playlists { position: relative; z-index: 1; padding-bottom: 44px; }
.pl-cont b { color: var(--tinta); }
.pl { display: grid; gap: 10px; max-width: 443px; margin-top: 32px; } /* 443 = 413 da capa 1 + 2×8 do cartão + 2×6 da moldura + 2×1 da borda: nunca passa da largura natural */
.pl > li { display: flex; min-width: 0; }
/* cartão de saída com capa: o cartão inteiro é o link */
.pl-c { flex: 1; display: grid; grid-template: "cab" auto "capa" auto "tx" 1fr / minmax(0, 1fr); gap: 0; min-height: 0; padding: 8px; border-radius: 20px; }
.pl-cab { grid-area: cab; display: flex; align-items: center; justify-content: space-between; padding: 4px 4px 12px 10px; }
.pl-cab > .ic { width: 24px; height: 24px; }
.pl-s { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--tinta); color: var(--papel); transition: background-color .3s, transform .45s var(--ease); }
.pl-s .ic { width: 18px; height: 18px; stroke-width: 2; }
/* capa do cliente em moldura papel */
.pl-capa { grid-area: capa; padding: 6px; border-radius: 14px; background: var(--papel-3); border: 1px solid var(--fio); }
.pl-jan { overflow: hidden; border-radius: 9px; background: var(--papel-2); }
.pl-jan img { width: 100%; transition: transform .8s var(--ease); }
.pl-tx { grid-area: tx; padding: 18px 10px 14px; }
.pl-tx h3 { font: 800 23px/1.08 var(--ff-t); font-stretch: 108%; letter-spacing: -.02em; }
.pl-tx p { margin-top: 8px; font-size: 15px; line-height: 1.4; color: var(--suave); }
/* a primeira porta, a de quem está começando, em tinta */
.pl-c--1 { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.pl-c--1 .pl-cab > .ic { color: var(--areia); }
.pl-c--1 .pl-s { background: var(--selo); }
.pl-c--1 .pl-capa { border-color: transparent; }
.pl-c--1 .pl-tx p { color: rgba(243, 238, 228, .82); }
@media (hover: hover) {
  .pl-c:hover .pl-jan img { transform: scale(1.04); }
  .pl-c:hover .pl-s { background: var(--selo); transform: rotate(45deg); }
  .pl-c--1:hover .pl-s { background: var(--papel); color: var(--tinta); }
}
.pl-c:active .pl-jan img { transform: scale(1.04); }
.pl-c:active .pl-s { transform: rotate(45deg); }

/* ===== 2 · Redes: painel tinta, "Milhares" em letra grande, duas saídas ===== */
.redes-s .painel { padding: 72px 0 32px; }
.rd-sol { position: absolute; z-index: -1; left: 50%; top: 40px; width: min(120vw, 720px); aspect-ratio: 1; margin-left: calc(min(120vw, 720px) / -2); }
.rd-sol i { display: block; width: 100%; height: 100%; border-radius: 50%; background: #1F1C17; box-shadow: 0 0 0 1px rgba(243, 238, 228, .1); }
.rd-g { position: relative; z-index: 1; }
.rd-m { display: block; margin-bottom: .04em; font-size: clamp(50px, 15.4vw, 66px); line-height: .95; letter-spacing: -.04em; white-space: nowrap; }
.rd-bts { display: flex; flex-direction: column; gap: 10px; margin-top: 40px; }
.rd-b { width: 100%; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.rd-b .btn-t { display: inline-flex; align-items: center; gap: 6px; }
.rd-s { width: 16px; height: 16px; stroke-width: 2; opacity: .7; }
.rd-b .btn-d .ic { width: 22px; height: 22px; stroke-width: 1.6; }
.rd-b--linha { background: transparent; color: var(--papel); box-shadow: inset 0 0 0 1.5px var(--papel); }
.rd-b--linha .btn-d { background: var(--papel); color: var(--tinta); }
@media (hover: hover) { .rd-b:hover .btn-d .ic { animation-name: toque; } }
.rd-b:active .btn-d .ic { animation-name: toque; }
.rod-col a[aria-current="page"] { text-decoration-color: var(--selo); }

/* ===== Celular: 1 destaque grande + 2 cartões compactos (capa de 136 px à esquerda) ===== */
@media (max-width: 899px) {
  .pl-c--p { grid-template: "capa tx" auto "cab tx" 1fr / 136px minmax(0, 1fr); column-gap: 12px; }
  .pl-c--p .pl-capa { padding: 5px; border-radius: 12px; }
  .pl-c--p .pl-jan { border-radius: 7px; }
  .pl-c--p .pl-cab { align-self: start; padding: 10px 2px 2px 6px; }
  .pl-c--p .pl-cab > .ic { width: 22px; height: 22px; color: var(--suave); }
  .pl-c--p .pl-s { width: 32px; height: 32px; }
  .pl-c--p .pl-s .ic { width: 16px; height: 16px; }
  .pl-c--p .pl-tx { padding: 6px 8px 8px 0; }
  .pl-c--p .pl-tx h3 { font-size: 19px; }
  .pl-c--p .pl-tx p { font-size: 14px; }
}

/* =========================================================
   DESKTOP (≥ 900 px)
   ========================================================= */
@media (min-width: 900px) {
  /* o H1 divide a primeira dobra com o H2 do cliente (7 + 5 colunas); as playlists já aparecem logo abaixo */
  main {
    --h1: clamp(60px, min(7.2vw, 13svh), 104px);
    --ap-h: calc(243px + var(--h1) * 1.92);
  }
  .abre-pag { display: flex; flex-direction: column; justify-content: flex-end; height: var(--ap-h); padding: 0 0 32px; }
  .ap-t { font-size: var(--h1); }
  .ap-peca { position: static; }
  .pl-topo { position: absolute; z-index: 2; right: max(80px, calc(50% - 640px)); bottom: calc(100% + 38px); width: calc((min(1280px, 100% - 160px) - 264px) / 12 * 5 + 96px); }
  .pl-topo .abre { margin-bottom: 28px; }
  .pl-topo .abre::before, .pl-cont { display: none; }
  .pl-topo .h2 { font-size: clamp(34px, min(3.5vw, 7svh), 50px); }
  .pl-topo .cont { margin-top: 12px; }

  .playlists { padding-bottom: 76px; }
  .pl { position: relative; z-index: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: none; margin-top: 44px; }
  .pl > li:first-child { margin-top: -24px; } /* a 1ª porta é 24 px mais alta */
  .pl-c { padding: 10px; border-radius: 24px; }
  .pl-cab { padding: 6px 4px 14px 12px; }
  .pl-s { width: 44px; height: 44px; }
  .pl-s .ic { width: 20px; height: 20px; }
  .pl-capa { padding: 7px; border-radius: 16px; }
  .pl-jan { border-radius: 10px; }
  .pl-tx { padding: 24px 14px 20px; }
  .pl-tx h3 { font-size: clamp(24px, 2.1vw, 29px); }
  .pl-tx p { margin-top: 10px; font-size: 17px; line-height: 1.45; }

  .redes-s .painel { padding: 128px 0 72px; }
  .rd-sol { left: 30%; top: 70px; width: min(64vw, 900px); margin-left: calc(min(64vw, 900px) / -2); }
  .rd-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: end; }
  .rd-t { grid-column: 1 / 8; }
  .rd-t { font-size: clamp(30px, 3.5vw, 52px); white-space: nowrap; }
  .rd-m { font-size: clamp(92px, min(10vw, 20svh), 152px); line-height: .9; }
  .rd-bts { grid-column: 8 / 13; flex-direction: row; gap: 12px; margin: 0 0 10px; }
  .rd-b { flex: 1; min-width: 0; font-size: 17px; }
}
