/* V2 detail opt-in only. No hero/sticky/link-color/runtime or lightbox selectors. */
body.detail-v2 .cinema-body > .prose {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
}
body.detail-v2 .prose > section,
body.detail-v2 .prose > #story-analysis {
  width: 100%;
  min-width: 0;
  grid-column: auto;
  grid-row: auto;
  margin: 0 0 28px;
  padding: 0 0 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  border-radius: 0;
  scroll-margin-top: 24px;
}
body.detail-v2 .prose > #drama-details {
  grid-column: auto;
  grid-row: auto;
  padding-left: 0;
  border-left: 0;
  border-bottom: 1px solid var(--line);
}
body.detail-v2 .prose h2 { font-size: 24px; line-height: 1.45; margin: 0 0 18px; }
body.detail-v2 .prose h3 { font-size: 18px; line-height: 1.6; margin: 20px 0 8px; }
body.detail-v2 .prose p { font-size: 16px; line-height: 1.85; margin: 0 0 16px; max-width: 84ch; }
body.detail-v2 #drama-details .facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 100%;
  gap: 20px 28px;
  margin: 0;
  padding: 0;
  border: 0;
}
body.detail-v2 .facts > div { min-width: 0; overflow-wrap: anywhere; }
body.detail-v2 #drama-details dt { font-size: 14px; line-height: 1.6; }
body.detail-v2 #drama-details dd { font-size: 17px; line-height: 1.75; margin: 5px 0 0; }
body.detail-v2 #drama-details .drama-cast { width: 100%; max-width: none; margin-top: 24px; }
body.detail-v2 #drama-details .official-language-table { width: 100%; max-width: 100%; margin-top: 16px; }
body.detail-v2 #drama-details .official-language-table table { width: 100%; table-layout: fixed; }
body.detail-v2 #drama-details .official-language-table th,
body.detail-v2 #drama-details .official-language-table td { overflow-wrap: anywhere; }
body.detail-v2 .cinema-sections { display: flex; flex-wrap: wrap; gap: 0 22px; margin-bottom: 26px; }
body.detail-v2 .cinema-sections a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; max-width: 100%; overflow-wrap: anywhere; }
/* Already source-accepted small-still dimensions: desktop4 / mobile2. */
body.detail-v2 #episode-images .v1-stills,
body.detail-v2 #episode-images .v1-stills[data-v1-image-count] {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 634px;
  justify-content: start;
}
body.detail-v2 #episode-images .v1-stills figure,
body.detail-v2 #episode-images .v1-stills figure:last-child { margin: 0; min-width: 0; max-width: none; grid-column: auto; }
body.detail-v2 #episode-images .v1-frame { display: block; width: 100%; height: 196px; aspect-ratio: auto; overflow: hidden; background: transparent; }
body.detail-v2 #episode-images .v1-frame img { display: block; position: static; width: 100%; height: 100%; max-width: 100%; max-height: 196px; object-fit: contain; margin: 0; }
body.detail-v2 #episode-images figcaption { font-size: 12px; line-height: 1.6; padding-top: 8px; overflow-wrap: anywhere; }
body.detail-v2 #episode-images figcaption span { font-size: 11px; }
body.detail-v2 #detail-faq h3 { margin-top: 22px; }
body.detail-v2 #detail-faq p { margin-bottom: 20px; }
@media (max-width: 700px) {
  body.detail-v2 .prose h2 { font-size: 21px; }
  body.detail-v2 .prose h3 { font-size: 17px; }
  body.detail-v2 .prose p { font-size: 15px; }
  body.detail-v2 #drama-details dd { font-size: 16px; }
  body.detail-v2 #drama-details .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  body.detail-v2 .cinema-sections { gap: 0 16px; }
  body.detail-v2 .cinema-sections a { font-size: 13px; }
  body.detail-v2 #episode-images .v1-stills,
  body.detail-v2 #episode-images .v1-stills[data-v1-image-count] { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 308px; }
  body.detail-v2 #episode-images .v1-frame { height: 166px; }
  body.detail-v2 #episode-images .v1-frame img { max-height: 166px; }
}

@media (max-width: 350px) {
  body.detail-v2 #drama-details .facts { grid-template-columns: minmax(0, 1fr); }
}
