/* Film3 only: compact content, with the shared navigation and footer unchanged. */
@media (max-width: 680px) {
  body.film-detail-page > main,
  body.film-detail-page > main * { box-sizing: border-box; }
  body.film-detail-page > main { min-width: 0; width: 100%; }
  body.film-detail-page .container {
    /* Reduce the film content only; keep the shared header/footer at 100%. */
    zoom: .75;
    width: calc((100vw - 24px) / .75);
    max-width: none;
    padding: 12px 0 24px;
  }
  body.film-detail-page .hero-wrap { margin: 0 0 16px; border-radius: 10px; }
  body.film-detail-page .film-hero {
    grid-template-columns: minmax(0, 105px) minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }
  body.film-detail-page .poster { align-self: start; grid-column: 1; grid-row: 1 / span 3; }
  body.film-detail-page .film-hero.no-logo .poster { grid-row: 1 / span 2; }
  body.film-detail-page .poster img { width: 100%; height: auto; max-height: none; border-radius: 6px; }
  body.film-detail-page .head { display: contents; }
  body.film-detail-page .head > .crumbs,
  body.film-detail-page .head > .film-logo-wrap,
  body.film-detail-page .head > .film-title { grid-column: 2; min-width: 0; }
  body.film-detail-page .head > .film-submeta { grid-column: 1 / -1; }
  body.film-detail-page .crumbs { font-size: 11px; gap: 4px; overflow-wrap: anywhere; }
  body.film-detail-page .film-logo { max-height: 60px; width: auto; }
  body.film-detail-page .film-title { font-size: clamp(20px, 5.3vw, 28px); line-height: 1.12; }
  body.film-detail-page .eyebrow { font-size: 10px; }
  body.film-detail-page .film-submeta,
  body.film-detail-page .tags { gap: 5px; }
  body.film-detail-page .meta-pill,
  body.film-detail-page .tag { min-height: 26px; padding: 5px 7px; font-size: 11px; line-height: 1.4; max-width: 100%; flex-wrap: wrap; overflow-wrap: anywhere; }
  body.film-detail-page .section { margin: 14px 0; padding: 14px; border-radius: 10px; }
  body.film-detail-page .section-title { font-size: 18px; line-height: 1.3; margin-bottom: 12px; flex-wrap: wrap; }
  body.film-detail-page .synopsis { font-size: 14px; line-height: 1.65; }
  body.film-detail-page .synopsis p { font-weight: 400; }
  body.film-detail-page .section .crew-block,
  body.film-detail-page .cast-roles-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  body.film-detail-page .section .crew-block .person-card { grid-template-rows: 130px minmax(76px, auto) !important; min-height: 206px !important; }
  body.film-detail-page .section .crew-block .person-avatar { height: 130px !important; }
  body.film-detail-page .section .crew-block .person-info { padding: 10px !important; }
  body.film-detail-page .section .crew-block .person-info h4 { font-size: 13px !important; }
  body.film-detail-page .section .crew-block .person-role { font-size: 11px !important; }
  body.film-detail-page .cast-role-card,
  body.film-detail-page .cast-role-card-linkwrap,
  body.film-detail-page .role-playing-card,
  body.film-detail-page .role-playing-card .pc-3d { height: 300px !important; min-width: 0; }
  body.film-detail-page .role-playing-card .pc-face { height: 300px !important; grid-template-rows: 150px 80px 70px !important; }
  body.film-detail-page .role-playing-card .pc-front .pc-photo {
    position: relative !important; inset: auto !important;
    width: 100% !important; height: 150px !important; min-height: 0 !important; margin: 0 !important;
    grid-row: 1; overflow: hidden;
  }
  body.film-detail-page .role-playing-card .pc-front .pc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
  body.film-detail-page .role-playing-card .pc-front .pc-photo::after { display: none !important; }
  body.film-detail-page .role-playing-card .pc-front .pc-topbar,
  body.film-detail-page .role-playing-card .pc-front .pc-actorname {
    position: static !important; inset: auto !important; transform: none !important;
    display: block !important; width: 100% !important; min-height: 0 !important;
    margin: 0 !important; padding: 8px !important; border: 0 !important; border-radius: 0 !important;
    background: #f0f7fa !important; color: #153f52 !important;
    box-shadow: none !important; backdrop-filter: none !important; text-shadow: none !important;
    font-size: 14px !important; line-height: 1.3 !important;
    overflow-wrap: anywhere; white-space: normal !important;
  }
  body.film-detail-page .role-playing-card .pc-front .pc-topbar { grid-row: 2; }
  body.film-detail-page .role-playing-card .pc-front .pc-actorname { grid-row: 3; background: #fff !important; font-weight: 500 !important; }
  body.film-detail-page .role-playing-card .pc-front .role-name {
    display: block !important; padding: 0 !important; margin: 0 !important;
    min-height: 0 !important; max-height: none !important; -webkit-line-clamp: unset !important;
    background: transparent !important; color: inherit !important; border: 0 !important;
    font-size: 14px !important; line-height: 1.3 !important; white-space: normal !important;
    overflow: visible !important; text-overflow: clip !important; box-shadow: none !important;
  }
  body.film-detail-page .role-playing-card .pc-info { padding: 8px !important; }
  body.film-detail-page .pc-meta h4 { font-size: 13px; }
  body.film-detail-page .critique-grid { grid-template-columns: minmax(0, 1fr); }
  body.film-detail-page .film-sources__grid { grid-template-columns: minmax(0, 1fr); }
  body.film-detail-page .section.film-media-section:has(.media-embed) {
    /* Embedded players need an unscaled viewport on iOS Safari. Cancel the
       container zoom here; percentage sizing keeps the available width. */
    zoom: calc(1 / .75);
    width: 100% !important; max-width: none !important;
    margin: 11px 0 !important; padding: 9px !important;
    border-radius: 10px !important; box-shadow: none !important;
  }
  body.film-detail-page .section.film-media-section:has(.media-embed) .section-title {
    margin: 0 0 8px !important; font-size: 14px !important;
    line-height: 1.35 !important; letter-spacing: 0 !important; text-transform: none !important;
  }
  body.film-detail-page .section.film-media-section:has(.media-embed) .section-title span { gap: 8px !important; }
  body.film-detail-page .section.film-media-section:has(.media-embed) .brand-icon { width: 18px !important; height: 18px !important; flex-shrink: 0; }
  body.film-detail-page .section.film-media-section:has(.media-embed) .media-embed { box-shadow: none !important; }
  body.film-detail-page .section.film-media-section--audio:has(.media-embed) .media-embed,
  body.film-detail-page .section.film-media-section--audio:has(.media-embed) .ratio,
  body.film-detail-page .section.film-media-section--audio:has(.media-embed) .ratio iframe {
    height: 270px !important; min-height: 270px !important; max-height: 270px !important;
    aspect-ratio: auto !important; padding: 0 !important;
  }
  body.film-detail-page .section.film-media-section--video:has(.media-embed) .ratio {
    position: relative !important; aspect-ratio: 16 / 9 !important;
    height: auto !important; min-height: 0 !important; padding: 0 !important;
  }
  body.film-detail-page .section.film-media-section--video:has(.media-embed) .ratio iframe {
    position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; min-height: 0 !important;
  }
  body.film-detail-page .section.film-media-section:has(.media-embed) .kv-tip {
    margin: 10px 0 0 !important; padding: 0 !important;
    font-size: 10px !important; line-height: 1.45 !important; text-align: left !important;
    justify-content: flex-start !important; flex-wrap: wrap;
  }
}
