/* Páginas de curtas: índice (/audiovisual/) e página de cada filme */

main { max-width: 960px; margin: 0 auto; padding: 8rem 2rem 5rem; }

h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 0.4rem; }

.titulo-original { font-family: var(--mono); font-size: 13px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 1.25rem; }

.lead { color: var(--muted); font-size: 1.05rem; max-width: 62ch; margin-bottom: 1.5rem; }

main h2 { font-size: 1.3rem; font-weight: 400; margin: 3rem 0 1rem; }
main p { margin-bottom: 1rem; }
main a { color: var(--accent); text-decoration: none; }
main a:hover { text-decoration: underline; }

.meta { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 1.25rem; }

/* PRÊMIOS */
.premios { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.premios li {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text);
  border: 1px solid rgba(255, 107, 43, 0.4);
  background: rgba(255, 107, 43, 0.08);
  border-radius: 3px;
  padding: 0.35rem 0.65rem;
}
.premios li span { color: var(--accent); }

/* VÍDEO: só carrega o YouTube quando a pessoa clica */
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg2);
  cursor: pointer;
  padding: 0;
  color: var(--text);
  font: inherit;
}
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.65);
  border: 1px solid rgba(255, 107, 43, 0.6);
  transition: background 0.2s, transform 0.2s;
}
.video .play::after {
  content: '';
  position: absolute;
  left: 34px; top: 26px;
  border-style: solid;
  border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--accent);
}
.video:hover .play, .video:focus-visible .play { background: rgba(10, 10, 10, 0.85); transform: scale(1.05); }
.video:focus-visible { outline: 1px solid var(--accent); outline-offset: 2px; }
.video .rotulo {
  position: absolute; left: 1rem; bottom: 0.9rem;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em;
  background: rgba(10, 10, 10, 0.7); padding: 0.25rem 0.5rem; border-radius: 3px;
}
.video-nota { font-family: var(--mono); font-size: 10px; color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.04em; }

/* SINOPSE COM PÔSTER */
.sobre-filme { display: grid; grid-template-columns: 240px 1fr; gap: 2.5rem; align-items: start; margin-top: 3rem; }
.sobre-filme img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); }
.sobre-filme h2:first-child { margin-top: 0; }

/* FICHA TÉCNICA */
.ficha { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.ficha th { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; text-align: left; vertical-align: top; width: 34%; }
.ficha th, .ficha td { padding: 0.55rem 1rem 0.55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }

/* DECLARAÇÃO DE USO DE IA */
.declaracao {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 2px solid var(--accent);
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
}
.declaracao ul { margin: 0 0 0 1.1rem; }
.declaracao li { margin-bottom: 0.35rem; }
.declaracao p:last-child { margin-bottom: 0; }

/* FOTOGRAMAS */
.fotogramas { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.fotogramas img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--border); display: block; }

.links-filme { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.5rem; }

/* ÍNDICE DE CURTAS */
.filme-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  transition: border-color 0.2s;
}
.filme-card:hover { border-color: var(--border-hover); }
.filme-card img { width: 100%; height: auto; border-radius: 3px; }
.filme-card .titulo { font-size: 1.6rem; font-weight: 300; line-height: 1.15; }
.filme-card .original { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 0.75rem; }
.filme-card p { color: var(--muted); font-size: 0.95rem; margin: 0.75rem 0 1rem; }
.filme-card .premios { margin-bottom: 0; }

@media (max-width: 600px) {
  main { padding: 7rem 1.25rem 4rem; }
  .sobre-filme, .filme-card { grid-template-columns: 1fr; }
  .sobre-filme img { max-width: 260px; }
  .filme-card img { max-width: 220px; }
  .fotogramas { grid-template-columns: 1fr; }
  .ficha th { width: 40%; }
}

/* PÁGINA "COMO FOI FEITO" */
.processo main { max-width: 860px; }
.processo main h2 { font-size: 1.45rem; margin-top: 3.5rem; }
.processo main h3 { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase; margin: 2rem 0 0.75rem; }
.processo main ul, .processo main ol { margin: 0 0 1.25rem 1.25rem; }
.processo main li { margin-bottom: 0.4rem; }

.numeros { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin: 2rem 0 !important; }
.numeros li { border: 1px solid var(--border); border-radius: 4px; padding: 0.9rem 1rem; margin: 0 !important; }
.numeros strong { display: block; font-family: var(--mono); font-size: 1.6rem; font-weight: 400; color: var(--accent); line-height: 1.1; }
.numeros span { font-size: 0.85rem; color: var(--muted); }

figure { margin: 1.5rem 0; }
figure img { width: 100%; height: auto; display: block; border-radius: 4px; border: 1px solid var(--border); }
figcaption { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 0.03em; margin-top: 0.5rem; line-height: 1.5; }
.galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; margin: 1.5rem 0; }
.galeria.tres { grid-template-columns: repeat(3, 1fr); }
.galeria figure { margin: 0; }

.tabela { overflow-x: auto; margin-bottom: 1.25rem; }
.tabela table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.tabela th { font-family: var(--mono); font-size: 10px; font-weight: 400; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.tabela th, .tabela td { padding: 0.55rem 0.9rem 0.55rem 0; border-bottom: 1px solid var(--border); vertical-align: top; }

details.prompt { border: 1px solid var(--border); border-radius: 4px; margin: 1rem 0; background: var(--bg2); }
details.prompt summary { cursor: pointer; padding: 0.8rem 1rem; font-family: var(--mono); font-size: 12px; color: var(--text); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
details.prompt summary::-webkit-details-marker { display: none; }
details.prompt summary::after { content: '+'; color: var(--accent); }
details.prompt[open] summary::after { content: '−'; }
details.prompt summary:focus-visible { outline: 1px solid var(--accent); outline-offset: -1px; }
details.prompt .corpo { padding: 0 1rem 1rem; position: relative; }
details.prompt pre { margin: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; padding: 1rem; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--text); }
details.prompt .nota { font-size: 0.88rem; color: var(--muted); margin: 0.75rem 0 0; }
.copiar { position: absolute; top: 0.5rem; right: 1.5rem; font-family: var(--mono); font-size: 10px; letter-spacing: 0.04em; color: var(--muted); background: var(--bg2); border: 1px solid var(--border); border-radius: 3px; padding: 0.2rem 0.5rem; cursor: pointer; }
.copiar:hover { color: var(--text); border-color: var(--border-hover); }

.licao { background: var(--bg2); border: 1px solid var(--border); border-left: 2px solid var(--accent); border-radius: 4px; padding: 1.1rem 1.4rem; margin: 1.5rem 0; }
.licao p:last-child { margin-bottom: 0; }

@media (max-width: 600px) {
  .galeria, .galeria.tres { grid-template-columns: 1fr; }
}

.rodape-curtas { margin-top: 2.5rem; color: var(--muted); }

/* Bastidores na própria página do filme */
.bastidores { margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.processo main h2.titulo-bastidores { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 300; margin: 0 0 0.75rem; line-height: 1.15; }

/* SELOS DE FESTIVAIS */
.festivais { display: flex; flex-wrap: wrap; gap: 1rem; margin: 0.5rem 0 2.25rem; }
.festivais a {
  display: flex; align-items: center; gap: 1rem;
  flex: 1 1 300px;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border); border-radius: 4px;
  color: var(--muted); font-size: 0.88rem; line-height: 1.45;
  transition: border-color 0.2s;
}
.festivais a:hover { border-color: var(--accent); text-decoration: none; }
.festivais img { height: 96px; width: auto; flex-shrink: 0; }
.festivais strong { color: var(--text); font-weight: 400; }
.filme-card .titulo { display: block; color: var(--text); }
.filme-card a:hover { text-decoration: none; }
.filme-card .titulo:hover { color: var(--accent); }
.festivais.compacto { margin: 0 0 1rem; gap: 0.6rem; }
.festivais.compacto a { flex: 1 1 180px; padding: 0.6rem 0.8rem; font-size: 0.82rem; }
.festivais.compacto img { height: 56px; }
.ver-filme { font-family: var(--mono); font-size: 12px; }
