/* Ajustes para celular: ficha y legibilidad. */

/* ---------- ficha en celular ----------
   ocupa la pantalla completa: asi siempre tiene scroll propio, el boton de cerrar
   queda siempre visible, y no depende de calcular alturas contra el viewport */
@media (max-width: 899px) {
  .sheet-overlay { align-items: stretch; }
  .sheet {
    max-width: none; max-height: none; height: 100%; border-radius: 0;
    padding: calc(56px + env(safe-area-inset-top)) 18px calc(30px + env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
  }
  .sheet-handle { display: none; }
  /* fijo a la pantalla para que siga visible mientras se hace scroll */
  .sheet-close {
    position: fixed; top: calc(12px + env(safe-area-inset-top)); right: 16px;
    width: 40px; height: 40px; font-size: 17px;
    background: var(--surface-2); box-shadow: 0 2px 12px var(--shadow-color);
  }
}

/* ---------- legibilidad en celular ----------
   los tamaños pensados para PC (13px) quedan chicos en un telefono
   sostenido a 30cm, asi que se suben solo en pantallas angostas */
@media (max-width: 899px) {
  .sheet-synopsis { font-size: 15px; line-height: 1.6; }
  .name-row { font-size: 14.5px; padding: 10px 0; }
  .name-lang { font-size: 12px; min-width: 40px; }
  .tech-row { font-size: 14.5px; }
  .tech-label { min-width: 94px; }
  .sheet-title { font-size: 24px; }
  .sheet-title.is-mid { font-size: 21px; }
  .sheet-title.is-long { font-size: 19px; }
  .sheet-section-label { font-size: 16px; }
  .poster-title { font-size: 14px; }
  .status-chip { font-size: 11px; padding: 4px 10px; }
  .progress-text { font-size: 12px; }
  .stars i, .stars { font-size: 13px; }
  .seg-btn { font-size: 14px; padding: 14px 4px; }
  .step-label { font-size: 16px; }
  .step-hint { font-size: 12px; }
  .rating-value { font-size: 14px; }
  .btn-primary { font-size: 15px; padding: 15px; }
  .btn-danger { font-size: 14px; padding: 13px; }
  .finished-note { font-size: 13px; }
  .chip { font-size: 13px; padding: 8px 16px; }
  .lib-search, .lib-sort { font-size: 15px; }
  .search-result-title { font-size: 15px; }
  .opt-row { font-size: 15px; }
  .opt-row span.hint, .opt-block .hint { font-size: 13px; }
}
