:root {
  --amarelo: #f3b42c;
  --vermelho: #b3121f;
  --preto: #111;
  --fonte: "Permanent Marker", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--amarelo) url("assets/textura.jpg") repeat;
  background-size: 520px;
  color: var(--preto);
  font-family: var(--fonte);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- seletor de idioma ---------- */
.idiomas {
  display: flex;
  justify-content: center;
  gap: .5rem;
  padding: 1rem 1rem 0;
  flex-wrap: wrap;
}
.idiomas a {
  font: inherit;
  font-size: 1rem;
  color: var(--preto);
  text-decoration: none;
  padding: .35rem 1rem;
  border: 3px solid var(--preto);
  border-radius: 999px;
  background: transparent;
  transition: background .15s, color .15s;
}
.idiomas a:hover { background: rgba(0,0,0,.08); }
.idiomas a[aria-current="page"] { background: var(--preto); color: var(--amarelo); }

/* ---------- cartaz ---------- */
.cartaz {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
  flex: 1;
}

.topo { text-align: center; }
.topo h1 { margin: 1rem 0 0; }
.topo h1 img { width: 100%; max-width: 760px; height: auto; display: block; margin: 0 auto; }
.topo h1 img.fino { max-width: 700px; padding: .6rem 0; }

.subtitulo {
  color: var(--vermelho);
  font-size: clamp(1.3rem, 4.4vw, 2.4rem);
  margin: .6rem 0 0;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.subtitulo:empty { display: none; }

.vermelho {
  color: var(--vermelho);
  text-transform: uppercase;
  line-height: 1.25;
  margin: 0;
}

.curadores { text-align: center; margin-top: 2rem; }
.curadores .tela { width: min(400px, 78%); margin: 0 auto 2rem; }
.curadores .vermelho { font-size: clamp(1rem, 3.3vw, 1.65rem); }

.rotulo {
  text-align: center;
  font-weight: normal;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-transform: uppercase;
  margin: 2.5rem 0 1.5rem;
}
.rotulo.pequeno { font-size: 1.5rem; margin: 3rem 0 1rem; }

/* ---------- artistas ---------- */
.artistas {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
}
.artistas li {
  display: grid;
  grid-template-columns: 1.15fr minmax(0, 340px);
  align-items: center;
  gap: 1.5rem;
}
/* intercalado: texto-vídeo, vídeo-texto, ... */
.artistas li:nth-child(even) { grid-template-columns: minmax(0, 340px) 1.15fr; }
.artistas li:nth-child(even) > :first-child { order: 2; text-align: right; }
.artistas .vermelho { font-size: clamp(1.15rem, 3.4vw, 1.8rem); }
.artistas .aldeia { display: block; }

@media (max-width: 560px) {
  .artistas li, .artistas li:nth-child(even) { grid-template-columns: 1fr; gap: .8rem; text-align: center; }
  .artistas li:nth-child(even) > :first-child { order: 0; text-align: center; }
  .artistas .tela { width: 85%; margin: 0 auto; }
}

/* ---------- ícone de vídeo (igual ao do cartaz) ---------- */
.tela {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 120 / 84;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  transition: transform .15s;
}
.tela:hover:not(:disabled), .tela:focus-visible { transform: scale(1.03); }
.tela:focus-visible { outline: 4px dashed var(--preto); outline-offset: 6px; }
.tela-icone { position: absolute; inset: 0; width: 100%; height: 100%; }
/* frame do vídeo dentro da "tela" (área acima da barra preta) */
.tela-img {
  position: absolute;
  left: 3.5%; right: 3.5%; top: 4.5%; bottom: 30%;
  width: 93%; height: 65.5%;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 9% 9% 0 0 / 18% 18% 0 0;
  transition: filter .2s;
}
.tela.com-img .play {
  fill: var(--amarelo);
  stroke: var(--preto);
  stroke-width: 3;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,.5));
  transform-origin: 61px 32px;
  transform: scale(.85);
  transition: transform .2s;
}
.tela.com-img:hover .play, .tela.com-img:focus-visible .play { transform: scale(1); }
.tela.com-img:hover .tela-img, .tela.com-img:focus-visible .tela-img { filter: brightness(1.08) saturate(1.1); }
.em-breve {
  display: none;
  position: absolute;
  left: 0; right: 0; bottom: -1.6rem;
  font-size: .9rem;
  text-align: center;
}
.tela:disabled { cursor: default; }
.tela:disabled .em-breve { display: block; }

/* ---------- sem vídeo ---------- */
.sem-video ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem 1.5rem;
  text-align: center;
}
.sem-video li { color: var(--vermelho); text-transform: uppercase; font-size: 1.05rem; }
.sem-video li small { display: block; font-size: .85rem; color: var(--preto); }

/* ---------- rodapé ---------- */
.realizacao {
  background: #fff;
  border-top: 6px solid var(--preto);
  padding: 1.5rem 1.25rem 2rem;
}
.realizacao h2 {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 1.6rem;
  max-width: 1100px;
  margin: 0 auto 1.2rem;
}
.logos {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 1100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.6rem 2.6rem;
}
.logos img { display: block; height: 78px; width: auto; max-width: 190px; object-fit: contain; }
@media (max-width: 560px) {
  .logos { gap: 1.2rem 1.6rem; }
  .logos img { height: 56px; max-width: 140px; }
}

/* ---------- ilustrações ---------- */
.deco { pointer-events: none; user-select: none; display: block; }
.cartaz { position: relative; }
.topo { position: relative; }
.flor-topo { position: absolute; width: 96px; top: 50%; translate: 0 -50%; }
.flor-topo.esq { left: -7.5rem; rotate: -12deg; }
.flor-topo.dir { right: -7.5rem; rotate: 18deg; }
@media (max-width: 1060px) { .flor-topo { display: none; } }
.topo h1, .topo .subtitulo { position: relative; }

.curadores { position: relative; }
.lado { position: absolute; top: 0; width: 170px; height: auto; }
.lado.esq { left: -1rem; width: 190px; top: 1.5rem; }
.lado.dir { right: -1.5rem; transform: rotate(8deg); }
@media (max-width: 760px) { .lado { display: none; } }

/* ilustrações espalhadas pelas laterais, ao longo da lista de artistas */
html, body { overflow-x: hidden; }
.corpo { position: relative; }
.corpo > :not(.espalhadas) { position: relative; z-index: 1; }
.espalhadas {
  position: absolute;
  top: 0; bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  z-index: 0;
  pointer-events: none;
}
.espalhadas img {
  position: absolute;
  width: auto;
  height: auto;
  max-width: var(--t);
  max-height: calc(var(--t) * 1.5);
  rotate: var(--r);
  filter: drop-shadow(0 3px 4px rgba(90, 50, 0, .18));
}
/* telas menores: as ilustrações ficam "espiando" pela borda, atrás do conteúdo */
@media (max-width: 1180px) {
  .espalhadas img { max-width: calc(var(--t) * .8); max-height: calc(var(--t) * 1.2); }
  .espalhadas img.e { translate: -45% 0; }
  .espalhadas img.d { translate: 45% 0; }
}
@media (max-width: 560px) {
  .espalhadas img { max-width: calc(var(--t) * .55); max-height: calc(var(--t) * .85); }
  .espalhadas img.e { translate: -55% 0; }
  .espalhadas img.d { translate: 55% 0; }
}

.maos { width: min(260px, 60%); height: auto; margin: 3rem auto -1.5rem; }

/* ---------- player ---------- */
.player {
  width: min(960px, 94vw);
  border: 5px solid var(--preto);
  border-radius: 18px;
  background: var(--amarelo) url("assets/textura.jpg");
  background-size: 520px;
  padding: 1rem 1rem 1.2rem;
  font-family: var(--fonte);
}
.player::backdrop { background: rgba(0,0,0,.75); }
.player-nome { font-size: 1.3rem; padding-right: 2.5rem; margin-bottom: .7rem; }
.player-tela { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.player-tela iframe, .player-tela video { width: 100%; height: 100%; border: 0; display: block; }
.fechar {
  position: absolute; top: .5rem; right: .7rem;
  width: 2.4rem; height: 2.4rem;
  border: 3px solid var(--preto); border-radius: 50%;
  background: transparent; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.fechar:hover { background: var(--preto); color: var(--amarelo); }
