/* Partes de la ficha: sinopsis y trailer, reparto, ficha de persona, donde verla. */

/* ---------- ficha: sinopsis arriba + trailer ---------- */
/* zona 2 de la plantilla: la sinopsis vive al costado del poster */
.sheet-lead { font-size: 14px; line-height: 1.65; color: var(--text-dim); margin: 12px 0 0; }
.trailer-btn {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 12px;
  padding: 9px 16px; border-radius: 11px; text-decoration: none;
  background: var(--surface); border: 1.5px solid var(--border-strong);
  color: var(--text); font-size: 13px; font-weight: 600;
}
.trailer-btn i { color: var(--youtube); font-size: 16px; }
.trailer-btn:hover { filter: brightness(1.2); }

/* ---------- ficha: reparto ---------- */
/* GRILLA y no carrusel: en celular un scroll horizontal lleno de botones que
   abren fichas es una trampa para el dedo. align-items:start ancla todas las
   fotos a la MISMA altura aunque los nombres ocupen 1 o 2 lineas */
.cast-row {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 16px 10px; padding: 4px 0 6px; align-items: start;
}
.cast-card {
  border: none; background: none; padding: 0;
  font-family: inherit; text-align: center; cursor: pointer;
}
.cast-card:hover .cast-name { color: var(--accent); }
.cast-photo {
  width: 82px; height: 82px; border-radius: 50%; overflow: hidden; margin: 0 auto 7px;
  background: var(--surface); border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
}
.cast-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cast-noface { color: var(--text-faint); font-size: 26px; }
.cast-name { font-size: 12.5px; font-weight: 600; color: var(--text); line-height: 1.25; }
.cast-char { font-size: 11.5px; color: var(--text-faint); line-height: 1.25; margin-top: 2px; }
/* la foto en resultados del buscador es cuadrada como los posters */
.search-result .cast-photo { width: 50px; height: 50px; border-radius: 10px; margin: 0; flex-shrink: 0; }
.known-for { font-size: 12px; color: var(--text-dim); margin: 2px 0 4px; }

/* ---------- ficha de persona ---------- */
/* ancho completo y una sola columna: nada de media ficha vacia */
.person-sheet { display: block; }
.person-top { display: flex; gap: 26px; align-items: flex-start; margin-bottom: 18px; }
.person-top .person-poster { width: 200px; flex-shrink: 0; }
.person-head { flex: 1; min-width: 0; }
.person-poster { border-radius: 16px; }
.person-poster img { object-fit: cover; }
/* los datos en dos columnas cuando hay espacio */
.person-tech { display: grid; grid-template-columns: 1fr; gap: 0 28px; }
@media (min-width: 700px) {
  .person-tech { grid-template-columns: 1fr 1fr; }
}
.filmo-count { font-size: 12px; color: var(--text-faint); letter-spacing: 0; }
.person-bio { font-size: 14px; line-height: 1.75; color: var(--text-dim); margin: 4px 0 20px; }
.person-link {
  border: none; background: none; padding: 0; font-family: inherit;
  font-size: inherit; color: var(--text); cursor: pointer; text-decoration: none;
}
.person-link i { color: var(--accent); font-size: 12px; margin-left: 2px; }
.person-link:hover { color: var(--accent); }
@media (max-width: 560px) {
  .person-top { flex-direction: column; align-items: center; text-align: center; }
  .person-top .person-poster { width: 170px; }
  .person-tech { text-align: left; }
}

/* ---------- ficha: donde verla ---------- */
.providers { display: flex; flex-wrap: wrap; gap: 8px; }
.provider-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 6px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--border-soft);
  font-size: 12.5px; color: var(--text);
}
.provider-chip img { width: 22px; height: 22px; border-radius: 6px; display: block; }
.justwatch-note { font-size: 11px; color: var(--text-faint); margin: 6px 0 0; }
