/* Tchony — BIO PRIME
   Conceito: a camisa do Preferido.
   A página veste o uniforme do clipe Ruas de BH: amarelo canarinho com o letreiro verde nas costas.
   O nome é escrito como o nome da camisa; a coroa das capas é desenhada uma vez, por cima dele.
   Preto só para a noite (o lançamento e o rolê da GDM). */

:root {
  /* cor */
  --canarinho: #FFD21F;   /* fundo: a camisa */
  --tinta: #000000;       /* texto, botões, cenas de noite (14.5:1 sobre o amarelo) */
  --gramado: #004D2A;     /* o letreiro da camisa: nome, anos, apoio (6.9:1 sobre o amarelo) */
  --branco: #FFFFFF;      /* texto sobre preto e verde */
  --branco-apoio: rgb(255 255 255 / 0.74);

  /* tipo */
  --f-camisa: "Saira", "Arial Narrow", system-ui, sans-serif;
  --f-texto: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* motion */
  --m-instant: 80ms;
  --m-fast: 140ms;
  --m-standard: 220ms;
  --m-emphasis: 320ms;
  --m-scene: 450ms;
  --m-coroa: 760ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-traco: cubic-bezier(0.55, 0, 0.25, 1);   /* pincel: arranca firme e assenta */
  --shift: 14px;
  --press-scale: 0.97;

  --raio: 12px;
  --gutter: 20px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift: 0px;
    --press-scale: 1;
    --m-scene: 200ms;
  }
}

/* ---------- base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--canarinho);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--canarinho);
  color: var(--tinta);
  font: 400 17px/1.5 var(--f-texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video,
svg,
iframe { display: block; max-width: 100%; }

h1, h2, h3, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

a { color: inherit; }
button { font: inherit; color: inherit; }

a,
button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--tinta);
  outline-offset: 3px;
  border-radius: 4px;
}
.cena-noite :focus-visible,
.cena-gramado :focus-visible { outline-color: var(--canarinho); }

.pular {
  position: absolute;
  top: calc(8px + var(--safe-top));
  left: 8px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--tinta);
  color: var(--canarinho);
  font-weight: 600;
  translate: 0 -200%;
}
.pular:focus-visible { translate: none; }

.marco-scroll {
  position: absolute;
  top: 160px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.pagina {
  max-width: 560px;
  margin: 0 auto;
  overflow-x: clip;
  background: var(--canarinho);
}

/* títulos: letreiro de camisa */
h2 {
  font-family: var(--f-camisa);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(2.4rem, 11vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--gramado);
}
.cena-noite h2,
.cena-gramado h2 { color: var(--branco); }

.cena {
  padding: 64px var(--gutter);
}
.cena-noite { background: var(--tinta); color: var(--branco); }
.cena-gramado { background: var(--gramado); color: var(--branco); }

.cabeca {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.cabeca p { max-width: 36ch; }
.caminhada .cabeca p { color: var(--gramado); }
.cena-noite .cabeca p,
.cena-gramado .cabeca p { color: var(--branco-apoio); }

/* ---------- botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid transparent;
  border-radius: var(--raio);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--m-fast) var(--ease-standard),
    background-color var(--m-fast) var(--ease-standard),
    color var(--m-fast) var(--ease-standard);
}
.btn:active { transform: scale(var(--press-scale)); }
.btn .fa-spotify,
.btn .fa-instagram { font-size: 1.2em; }

.btn-tinta { background: var(--tinta); color: var(--canarinho); }
.btn-tinta:active { background: var(--gramado); color: var(--branco); }

.btn-amarelo { background: var(--canarinho); color: var(--tinta); }
.btn-amarelo:active { background: var(--branco); }

.btn-contorno { border-color: var(--tinta); color: var(--tinta); }
.btn-contorno:active { background: var(--tinta); color: var(--canarinho); }

.btn-contorno-claro { border-color: rgb(255 255 255 / 0.6); color: var(--branco); }
.btn-contorno-claro:active { background: var(--branco); color: var(--tinta); }

@media (hover: hover) and (pointer: fine) {
  .btn-contorno:hover { background: rgb(0 0 0 / 0.08); }
  .btn-contorno-claro:hover { border-color: var(--branco); }
}

/* ---------- CENA 1 · hero ---------- */

.hero {
  padding-bottom: 36px;
}

.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 62vh;
  max-height: 62svh;
  width: 100%;
  overflow: hidden;
  background: #1f6f9a;   /* o céu de BH, enquanto o poster chega */
}

.hero-poster,
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
}

.hero-video {
  opacity: 0;
  transition: opacity var(--m-scene) var(--ease-standard);
}
.hero-video.is-playing,
.hero-video.is-done { opacity: 1; }

.video-ctl {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.55);
  color: var(--branco);
  font-size: 16px;
  cursor: pointer;
  transition: transform var(--m-fast) var(--ease-standard), background-color var(--m-fast) var(--ease-standard);
}
.video-ctl:active { transform: scale(0.92); background: var(--tinta); }

.hero-texto {
  padding: 8px var(--gutter) 0;
}

.nome {
  position: relative;
  width: fit-content;
  margin-top: 0.4em;   /* espaço para a coroa não encostar no vídeo */
  font-family: var(--f-camisa);
  font-stretch: 75%;
  font-weight: 800;
  font-size: clamp(4.6rem, 29vw, 8.6rem);
  line-height: 0.82;
  letter-spacing: 0.005em;
  text-transform: uppercase;
  color: var(--gramado);
}

/* assinatura: a coroa das capas, desenhada a traço sobre o T */
.coroa {
  position: absolute;
  left: -0.04em;
  top: -0.42em;
  width: 0.62em;
  height: auto;
  overflow: visible;
  rotate: -9deg;
}
.coroa-traco {
  fill: none;
  stroke: var(--tinta);
  stroke-width: 4.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@keyframes coroa-desenha {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .coroa-traco {
    stroke-dasharray: 1;
    animation: coroa-desenha var(--m-coroa) var(--ease-traco) 420ms both;
  }
}

.hero-linha {
  margin-top: 16px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
}
.hero-apoio {
  margin-top: 4px;
  color: var(--gramado);
}

.hero-pe {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 22px;
}

.perfil {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
}
.perfil-foto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--tinta);
}

.ancora {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 600;
  color: var(--gramado);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.ancora:active { color: var(--tinta); }

/* ---------- CENA 2 · lançamento ---------- */

.lancamento { padding-top: 40px; }

.capa-grande {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.lancamento-texto {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}
.lancamento-texto h2 { font-size: clamp(2.8rem, 14vw, 3.6rem); }
.lancamento-texto p { color: var(--branco-apoio); max-width: 34ch; }

.player {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.player-frame {
  width: 100%;
  height: 152px;
  border: 0;
  border-radius: var(--raio);
  background: #1a1a1a;
  opacity: 0;
  transition: opacity var(--m-scene) var(--ease-standard);
}
.player-frame.is-loaded { opacity: 1; }

/* ---------- CENA 3 · de 2020 pra cá ---------- */

.anos {
  display: grid;
  gap: 26px;
}

.ano {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 4px;
}

.ano-num {
  padding-top: 18px;
  font-family: var(--f-camisa);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--gramado);
}

.faixas { display: grid; gap: 2px; }

.faixa {
  display: grid;
  grid-template-columns: 56px 1fr 22px;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  padding: 8px 10px 8px 8px;
  margin-left: -8px;
  border-radius: 10px;
  text-decoration: none;
  transition:
    transform var(--m-fast) var(--ease-standard),
    background-color var(--m-fast) var(--ease-standard);
}
.faixa:active {
  transform: scale(0.985);
  background: rgb(0 0 0 / 0.08);
}
.faixa img {
  width: 56px;
  height: 56px;
  border-radius: 4px;
  background: rgb(0 0 0 / 0.12);
}
.faixa-txt { display: grid; gap: 2px; min-width: 0; }
.faixa-txt strong { font-weight: 600; font-size: 17px; line-height: 1.25; }
.faixa-txt small { font-size: 14px; line-height: 1.35; color: var(--gramado); }
.faixa .fa-spotify { font-size: 20px; justify-self: end; }

@media (hover: hover) and (pointer: fine) {
  .faixa:hover { background: rgb(0 0 0 / 0.06); }
}

/* ---------- CENA 4 · clipe ---------- */

.clipe-quadro {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #003b20;
}

.clipe-fachada {
  position: absolute;
  inset: 0;
  display: block;
  text-decoration: none;
}
.clipe-fachada img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--m-emphasis) var(--ease-standard);
}
.clipe-fachada:active img { transform: scale(var(--press-scale)); }

.clipe-play {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: var(--raio);
  background: var(--canarinho);
  color: var(--tinta);
  font-weight: 600;
}

.clipe-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.link-seta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 18px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.link-seta .fa-solid { font-size: 14px; }

/* ---------- CENA 5 · com a GDM ---------- */

.aovivo-media { position: relative; }

.aovivo-video {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #151515;
}
.aovivo-media .video-ctl { bottom: 44px; }

.aovivo-media figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--branco-apoio);
}

.aovivo-links {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.sub {
  margin: 52px 0 14px;
  font-family: var(--f-camisa);
  font-stretch: 75%;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
  color: var(--canarinho);
}

.feats { display: grid; gap: 2px; }
.faixa-noite .faixa-txt small { color: var(--branco-apoio); }
.faixa-noite:active { background: rgb(255 255 255 / 0.1); }
.faixa-noite img { background: #222; }
@media (hover: hover) and (pointer: fine) {
  .faixa-noite:hover { background: rgb(255 255 255 / 0.07); }
}

/* ---------- CENA 6 · final ---------- */

.final {
  padding-top: 72px;
}

.final-foto {
  width: min(78%, 340px);
  height: auto;
  border-radius: 6px;
  margin-bottom: 28px;
}

.final h2 { font-size: clamp(2.6rem, 13vw, 3.4rem); }

.final-acoes {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.redes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
}
.redes a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  font-weight: 600;
  text-decoration: none;
}
.redes a .fa-brands { font-size: 20px; color: var(--gramado); }
.redes a:active { color: var(--gramado); }

/* ---------- rodapé ---------- */

.rodape {
  padding: 8px var(--gutter) calc(28px + var(--safe-bottom));
  text-align: center;
  font-size: 14px;
  color: var(--tinta);
}

.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  color: var(--tinta);
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: var(--gramado);
  --seal-ring: 1.6 1.3;            /* pesponto, como a costura da camisa */
  --seal-font: var(--f-texto);
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate 320ms cubic-bezier(0.22, 1, 0.36, 1);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

.credito:active .selo-b2 { rotate: -10deg; }

.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ---------- CTA flutuante (Regra do CTA) ---------- */

.cta-flutuante {
  position: fixed;
  left: 50%;
  bottom: calc(16px + var(--safe-bottom));
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--canarinho);
  font-weight: 600;
  font-size: 17px;
  white-space: nowrap;
  text-decoration: none;
  box-shadow: 0 0 0 2px var(--canarinho), 0 10px 26px rgb(0 0 0 / 0.28);
  translate: -50% var(--shift);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--m-standard) var(--ease-exit),
    translate var(--m-standard) var(--ease-exit),
    scale var(--m-fast) var(--ease-standard),
    visibility 0s linear var(--m-standard);
}
.cta-flutuante .fa-spotify { font-size: 1.25em; }
.cta-flutuante.is-visivel {
  translate: -50% 0;
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--m-emphasis) var(--ease-enter),
    translate var(--m-emphasis) var(--ease-enter),
    scale var(--m-fast) var(--ease-standard),
    visibility 0s;
}
.cta-flutuante:active { scale: var(--press-scale); }

/* espaço para o flutuante não cobrir o fim da lista de parcerias */
.js .aovivo { padding-bottom: 96px; }

/* ---------- telas maiores ---------- */

@media (min-width: 600px) {
  html,
  body { background: var(--tinta); }
  .pagina { box-shadow: 0 0 0 1px rgb(255 255 255 / 0.06); }
}
