/* Shared phone layout for the public website and EIGAKAN TV. */
@media (max-width:650px) {
  .official-header { position:relative; }
  .official-header nav { width:100%; justify-content:center; flex-wrap:wrap; gap:4px 8px; font-size:14px; }
  .official-header nav>a,.official-header summary { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 10px; white-space:nowrap; }
  .official-header .more { position:static; }
  .official-header .more>div { left:5%; right:5%; top:calc(100% - 10px); min-width:0; width:auto; padding:12px; z-index:30; }
  .official-header .more>div a { display:flex; align-items:center; min-height:44px; padding:10px 12px; font-size:15px; white-space:normal; }
  main,main h1,main h2,main h3,.source-copy,.project-copy,.contact-page form { min-width:0; overflow-wrap:anywhere; }
  .official-footer a { min-height:44px; display:inline-flex; align-items:center; overflow-wrap:anywhere; }
  .official-footer .social a { justify-content:center; min-width:44px; }
  .official-footer .social { gap:8px; }
  .outline,.info-link,.video-external,.back,.team-email,.section-title>a,.cinema-integration-button { min-height:44px; display:inline-flex; align-items:center; max-width:100%; }
  .film-card p { font-size:13px; line-height:1.55; }
  .film-card-actions { gap:8px; }
  .film-card-actions a { justify-content:center; }
  .team-email { font-size:14px; }
  .contact-page input,.contact-page textarea,.contact-page select { font-size:16px; min-height:48px; }
  .contact-page label { font-size:15px; }
  .contact-page .form-note { font-size:13px; line-height:1.6; }
  .contact-page .form-note a { text-underline-offset:3px; }
  .cinema-subnav nav { flex-wrap:wrap; gap:4px 8px; font-size:14px; }
  .cinema-subnav nav a { display:inline-flex; align-items:center; min-height:44px; padding:6px 8px; }
  .cinema-subnav #account { max-width:100%; white-space:normal; overflow-wrap:anywhere; text-align:left; }
  button,.button,.quiet { min-height:44px; }
  .form input,.form textarea,.form select { font-size:16px; }
  .rating-options label span { min-width:44px; min-height:44px; }
  dialog { width:min(610px,calc(100vw - 32px)); max-height:calc(100svh - 32px); padding:24px 20px; }
  dialog h2 { max-width:calc(100% - 24px); overflow-wrap:anywhere; }
  dialog .close { width:44px; height:44px; line-height:1; }
  #cookie-dialog { max-height:calc(100svh - 32px); }
  #cookie-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
  #cookie-dialog .cookie-information { overflow:auto; min-height:0; overscroll-behavior:contain; padding-right:4px; }
  #cookie-dialog .cookie-actions { flex-shrink:0; margin-top:14px; padding-top:14px; border-top:1px solid #444; }
  #toast:not(:empty) { left:16px; right:16px; bottom:16px; width:auto; max-width:none; overflow-wrap:anywhere; }
  .table-scroll { overflow:visible; max-width:100%; }
  .table-scroll table,.table-scroll tbody,.table-scroll tr,.table-scroll td { display:block; width:100%; }
  .table-scroll thead { display:none; }
  .table-scroll tbody { display:grid; gap:16px; }
  .table-scroll tr { border:1px solid #444; padding:14px; background:#111; }
  .table-scroll td { padding:8px 0; border:0; font-size:14px; white-space:normal; overflow-wrap:anywhere; }
  .table-scroll td[data-label]::before { content:attr(data-label); display:block; color:#aaa; font-size:12px; margin-bottom:4px; }
  .table-scroll td .quiet { font-size:13px; white-space:normal; }
}
@media (max-width:480px) { .contact-page .name-row { grid-template-columns:1fr; gap:0; } }
@media (max-width:380px) { .catalogue-grid { grid-template-columns:minmax(0,1fr); } }
@media (max-height:500px) {
  #cookie-dialog { max-height:calc(100svh - 32px); }
  #cookie-dialog[open] { display:flex; flex-direction:column; overflow:hidden; }
  #cookie-dialog .cookie-information { overflow:auto; min-height:0; overscroll-behavior:contain; }
  #cookie-dialog .cookie-actions { flex-shrink:0; margin-top:12px; padding-top:12px; border-top:1px solid #444; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } .film-cover img { transition:none; } }
