/* Shared editorial detail language: campaign routes and character/story details. */

/* Villains campaign now follows the same quiet editorial structure as WORLDLINE ZERO. */
.villains-editorial-page { --editorial-red: #ef446b; --villains-rose: #ef446b; background: #090909 !important; }
.villains-editorial-page main { background: #090909 !important; }
.villains-editorial-page .villains-editorial-hero .editorial-cover img { object-position: center 26%; }
.villains-editorial-page .villains-editorial-status span { background: #ef6685; box-shadow: 0 0 0 4px rgba(239,68,107,.1); }
.villains-editorial-page .editorial-summary h1 em { color: #f48aaa; font-weight: 720; }
.villains-editorial-page .editorial-cover-label { border-color: rgba(255,178,203,.4); color: #ffd5e2; }
.villains-editorial-page .editorial-cast-grid img { object-position: center 18%; }
.villains-editorial-page .villains-grid { margin-top: 0; }
.villains-editorial-page .villains-webtoon { width: min(720px,100%); margin-inline: 0; border: 1px solid #262626; border-radius: 5px; background: #050505; box-shadow: none; }
.villains-editorial-page .villains-webtoon .webtoon-episode-card { border-bottom-color: #252525; background: #0f0f0f; }
.villains-editorial-page .villains-cast-grid { gap: 10px; }
.villains-editorial-page .villain-card { border-color: #292929; border-radius: 6px; background: #111; box-shadow: none; }
.villains-editorial-page .ending-card { border-color: #292929; background: #111; }
.villains-editorial-page .sticky-play a { background: #ef446b; }

/* Full-page editorial detail, replacing the former compact pop-up. */
.story-preview {
  --detail-section-space: 20px;
  --detail-column-gap: 28px;
  z-index: 7000 !important;
  inset: 0 !important;
  align-items: flex-start !important;
  justify-content: stretch !important;
  padding: 0 !important;
  background: #090909 !important;
}

.story-preview-brand img.nox-symbol-img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
  filter: none !important;
}
.story-preview-brand img.nox-wordmark-img {
  width: 66px !important;
  height: 30px !important;
  object-fit: contain;
  filter: none !important;
}

/* Character detail: editorial hero carousel and a more readable type scale. */
.character-detail-track {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  touch-action: pan-x pan-y pinch-zoom;
  cursor: grab;
  overscroll-behavior-inline: contain;
}
.character-detail-track::-webkit-scrollbar { display: none; }
.character-detail-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
.character-detail-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  margin: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background-position: center;
  background-size: cover;
}
.character-detail-slide::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: inherit;
  filter: blur(18px);
  transform: scale(1.06);
}
.character-detail-slide img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}
.character-detail-title-slide img { object-fit: contain; object-position: center !important; }
.character-detail-scene-slide img { object-fit: contain; object-position: center !important; }
.character-detail-track[data-slider-enabled="false"] { overflow: hidden; cursor: default; }
.character-detail-track[data-slider-enabled="false"] .character-detail-slide:not(:first-child) { display: none; }
.character-detail-nav,
.character-detail-dots { display: none; }
.story-preview.open .character-detail-nav {
  position: absolute;
  z-index: 4;
  top: 50%;
  width: 38px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 7px;
  color: #fff;
  background: rgba(8,8,8,.62);
  box-shadow: 0 7px 22px rgba(0,0,0,.24);
  backdrop-filter: blur(10px);
  transform: translateY(-50%);
  cursor: pointer;
}
.story-preview.open .character-detail-nav:hover { border-color: rgba(255,255,255,.42); background: rgba(8,8,8,.82); }
.story-preview.open .character-detail-prev { left: 14px; }
.story-preview.open .character-detail-next { right: 14px; }
.story-preview.open .character-detail-dots {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 999px;
  background: rgba(8,8,8,.6);
  backdrop-filter: blur(10px);
  transform: translateX(-50%);
}
.character-detail-track[data-slider-enabled="false"] ~ .character-detail-nav,
.character-detail-track[data-slider-enabled="false"] ~ .character-detail-dots { display: none !important; }
.character-detail-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.42);
  transition: width .18s ease,background .18s ease;
  cursor: pointer;
}
.character-detail-dots button.active { width: 18px; border-radius: 999px; background: #fff; }
.story-preview.character-detail-mode .story-preview-visual { aspect-ratio: 3/2 !important; }
.story-preview.character-detail-mode .story-preview-visual::after { z-index: 2; inset: 60% 0 0; }
.story-preview.character-detail-mode .story-preview-online { display: none !important; }
.story-preview.character-detail-mode .story-preview-like-count { z-index: 4; top: 14px !important; right: 14px !important; bottom: auto !important; }

.story-preview.character-detail-mode .story-preview-kicker { font-size: 11.5px; }
.story-preview.character-detail-mode .story-title-line h2 { font-size: 22px !important; }
.story-preview.character-detail-mode .story-creator-line strong,
.story-preview.character-detail-mode .character-creator-line strong { font-size: 14px; }
.story-preview.character-detail-mode .story-creator-line small,
.story-preview.character-detail-mode .character-creator-line small { font-size: 13px; line-height: 1.55; }
.story-preview.character-detail-mode .character-attribute-row { gap: 7px; }
.story-preview.character-detail-mode .character-attribute-row span { padding: 8px 10px; font-size: 13px; line-height: 1.35; }
.story-preview.character-detail-mode .story-preview-tags :is(span, a),
.story-preview.character-detail-mode .character-hashtags span { font-size: 13px; }
.story-preview.character-detail-mode .story-preview-hook { font-size: 14px !important; line-height: 1.8 !important; }
.story-preview.character-detail-mode .story-preview-byline { font-size: 13.5px; }
.story-preview.character-detail-mode .story-section-head span { font-size: 10.5px; }
.story-preview.character-detail-mode .story-section-head h3 { font-size: 16px !important; }
.story-preview.character-detail-mode .character-description-copy,
.story-preview.character-detail-mode .story-immersion-lead { font-size: 14px; line-height: 1.9; }
.story-preview.character-detail-mode .character-webtoon-lead { font-size: 14px; line-height: 1.75; }
.story-preview.character-detail-mode .story-feature-grid strong,
.story-preview.character-detail-mode .story-world-rule-grid h4,
.story-preview.character-detail-mode .story-route-grid h4 { font-size: 14px; }
.story-preview.character-detail-mode .story-feature-grid small,
.story-preview.character-detail-mode .story-world-rule-grid p,
.story-preview.character-detail-mode .story-route-grid p,
.story-preview.character-detail-mode .story-ending-note p { font-size: 13.5px; line-height: 1.75; }
.story-preview.character-detail-mode .story-user-role h4 { font-size: 19px; }
.story-preview.character-detail-mode .story-user-role p { font-size: 14px; }
.story-preview.character-detail-mode .story-route-heading strong { font-size: 14px; }
.story-preview.character-detail-mode .story-setting-select b { font-size: 14px; }
.story-preview.character-detail-mode .story-setting-select small { font-size: 13px; }
.story-preview.character-detail-mode .story-scene-meta { font-size: 12.5px; }
.story-preview.character-detail-mode .story-prologue blockquote { font-size: 14px; line-height: 1.85; }
.story-preview.character-detail-mode .character-intro-message strong { font-size: 13.5px; }
.story-preview.character-detail-mode .character-intro-message span { font-size: 13.5px; line-height: 1.7; }
.story-preview.character-detail-mode .story-state-card span,
.story-preview.character-detail-mode .story-state-card p,
.story-preview.character-detail-mode .story-update-row small,
.story-preview.character-detail-mode .character-ranking-list small,
.story-preview.character-detail-mode .character-related-grid small { font-size: 13.5px; }
.story-preview.character-detail-mode .story-state-card strong,
.story-preview.character-detail-mode .story-update-row strong,
.story-preview.character-detail-mode .character-ranking-list strong,
.story-preview.character-detail-mode .character-related-grid strong { font-size: 14px; }

@media (max-width: 767px) {
  .story-preview.character-detail-mode .story-preview-visual { aspect-ratio: 3/2 !important; }
  .story-preview.open .character-detail-nav { width: 32px; height: 44px; }
  .story-preview.open .character-detail-prev { left: 9px; }
  .story-preview.open .character-detail-next { right: 9px; }
  .story-preview.open .character-detail-dots { bottom: 9px; }
  .story-preview.character-detail-mode .story-title-line h2 { font-size: 22px !important; }
  .story-preview.character-detail-mode .story-preview-hook { font-size: 14.5px !important; }
  .story-preview.character-detail-mode .story-section-head h3 { font-size: 16px !important; }
  .story-preview.character-detail-mode .character-description-copy,
  .story-preview.character-detail-mode .story-immersion-lead { font-size: 14.5px; }
}
.story-preview-backdrop { display: none !important; }
.story-preview-sheet,
.story-preview.character-detail-mode .story-preview-sheet {
  width: 100% !important;
  max-width: none !important;
  height: 100dvh !important;
  max-height: none !important;
  display: grid !important;
  grid-template-rows: 58px minmax(0,1fr) 78px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #090909 !important;
  box-shadow: none !important;
  transform: translateY(14px) !important;
}
.story-preview.open .story-preview-sheet,
.story-preview.open.character-detail-mode .story-preview-sheet { transform: translateY(0) !important; }
.story-preview-topbar,
.story-preview.character-detail-mode .story-preview-topbar {
  position: relative !important;
  z-index: 4;
  width: 100%;
  min-height: 58px !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 20px !important;
  border-bottom: 1px solid #202020 !important;
  background: rgba(9,9,9,.96) !important;
  backdrop-filter: blur(18px);
}
.story-preview-back {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  color: #9a9a9a;
  background: transparent;
  font: 700 11px/1 var(--nox-font-sans,var(--c-sans));
  cursor: pointer;
}
.story-preview-back:hover { color: #fff; }
.story-preview-back i { font-size: 14px; }
.story-preview-brand { 
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #f6f6f6;
  text-decoration: none;
}
.story-preview-brand img { width: 26px; height: 29px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(219,38,54,.12)); }
.story-preview-brand strong { display: inline-flex; align-items: center; font: 830 18.5px/1 var(--nox-font-sans,var(--c-sans)); letter-spacing: -.055em; }
.story-preview-brand strong span { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; margin-left: 6px; padding: 3px 4px 2px; border: 1px solid rgba(255,89,100,.38); border-radius: 4px; color: #ff6974; background: rgba(240,50,63,.09); font-size: 7.5px; font-weight: 900; line-height: 1; letter-spacing: .12em; transform: translateY(-1px); }
.story-preview-close,
.story-preview.character-detail-mode .story-preview-close {
  justify-self: end;
  width: 36px !important;
  height: 36px !important;
  display: grid;
  place-items: center;
  border: 1px solid #2b2b2b !important;
  border-radius: 8px !important;
  background: #111 !important;
  color: #9d9d9d !important;
}
.story-preview-close:hover { color: #fff !important; background: #191919 !important; }
.story-preview-scroll,
.story-preview.character-detail-mode .story-preview-scroll {
  min-height: 0;
  overflow-y: auto !important;
  scrollbar-color: #333 transparent;
  scrollbar-width: thin !important;
}
.story-preview-summary,
.story-preview.character-detail-mode .story-preview-summary {
  width: min(980px,calc(100% - 40px));
  margin: 0 auto;
  display: grid !important;
  grid-template-columns: minmax(0,44%) minmax(0,1fr) !important;
  align-items: start;
  gap: var(--detail-column-gap) !important;
  padding: 24px 0 !important;
  border-bottom: 1px solid #222;
}
.story-preview-visual,
.story-preview.character-detail-mode .story-preview-visual {
  position: relative;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3/2;
  overflow: hidden;
  border: 1px solid #242424 !important;
  border-radius: 14px !important;
  background: #111;
}
.story-preview-blur,
.story-preview.character-detail-mode .story-preview-blur { display: none !important; }
.story-preview-cover,
.story-preview.character-detail-mode .story-preview-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center 20% !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.story-preview-visual::after { content: none; }
.story-preview-online,
.story-preview.character-detail-mode .story-preview-online { display: none !important; }
.story-preview-like-count,
.story-preview.character-detail-mode .story-preview-like-count { display: none !important; }
.story-preview-content,
.story-preview.character-detail-mode .story-preview-content { min-width: 0; padding: 0 !important; }
.story-preview-kicker,
.story-preview.character-detail-mode .story-preview-kicker { display: block !important; margin: 0 0 10px; color: #ee7c87; font-size: 13px; font-weight: 650; letter-spacing: .025em; }
.story-title-line { align-items: flex-start !important; }
.story-title-line h2,
.story-preview.character-detail-mode .story-title-line h2 { margin: 0; color: #f2f2f2; font-size: 22px !important; line-height: 1.35 !important; letter-spacing: -.04em; }
.story-title-line > button { margin-top: 2px; }
.story-creator-line,
.story-preview.character-detail-mode .character-creator-line { margin-top: 14px !important; padding-top: 0; border-top: 0; }
.story-preview.character-detail-mode .character-attribute-row { margin-top: 14px; }
.story-preview.character-detail-mode .character-attribute-row span { border: 1px solid #292929; border-radius: 3px; background: #111; }
.story-preview .story-preview-content .story-preview-tags { margin-top: 12px; gap: 6px; }
.story-preview .story-preview-tags :is(span, a) { font-size: 13px; padding: 6px 10px; border: 1px solid #303033; border-radius: 999px; background: #171719; color: #c5c5cc; }
.story-preview-hook,
.story-preview.character-detail-mode .story-preview-hook { margin-top: 14px !important; color: #c4c4c4 !important; font-size: 14px !important; font-weight: 500 !important; line-height: 1.7 !important; }
.story-preview .story-preview-content .story-preview-byline { margin-top: 12px; padding-top: 0; border-top: 0; font-size: 13px; }
.story-summary-actions { display: grid; grid-template-columns: 46px minmax(0,1fr); gap: 8px; margin-top: 18px; }
.story-summary-actions > button { border: 1px solid #383838; border-radius: 8px; background: #1a1a1a; color: #ddd; font-size: 19px; cursor: pointer; }
.story-summary-actions .story-preview-play { height: 48px; border: 1px solid #f35867; border-radius: 12px; background: #e73549; color: #fff; box-shadow: none; font-size: 14px; }
.story-summary-actions > :focus-visible { outline: 2px solid #ef3347; outline-offset: 3px; }
.story-mobile-actions { display: none !important; }
.story-preview-detail,
.story-preview.character-detail-mode .story-preview-detail {
  width: min(980px,calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 0 0 28px !important;
}
.story-preview-detail > section,
.story-preview.character-detail-mode .story-preview-detail > section {
  margin: 0 !important;
  padding: var(--detail-section-space) 0 !important;
  border-top: 0 !important;
  border-bottom: 1px solid #222;
}
.story-section-head { margin-bottom: 12px; }
.story-preview-detail > section[hidden] { display: none !important; }
.story-visual-guide-art {
  display: block;
  width: min(100%, 724px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #303034;
  border-radius: 8px;
  background: #111;
  text-decoration: none;
  cursor: zoom-in;
}
.story-visual-guide-art img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
}
.story-visual-guide-art:focus-visible { outline: 2px solid #ef334b; outline-offset: 3px; }
.story-guide-copy { box-sizing: border-box; width: min(100%,724px); margin: 20px auto 0; padding: 24px; border: 1px solid #2a2a30; border-radius: 16px; background: #111113; font-family: var(--c-sans); text-align: left; word-break: keep-all; overflow-wrap: anywhere; }
.story-guide-copy p { margin: 0; white-space: pre-line; }
.story-guide-copy .story-guide-kicker { margin-bottom: 10px; color: #ee8c99; font-size: 0.875rem; font-weight: 650; line-height: 1.6; }
.story-guide-title { margin: 0 0 14px; color: #fafafa; font-size: clamp(1rem,2.82vw,1rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.35; text-wrap: balance; }
.story-guide-hook { color: #e8e8ed; font-size: 1rem; font-weight: 550; letter-spacing: -.02em; line-height: 1.75; }
.story-guide-profile { margin-top: 26px; padding-top: 24px; border-top: 1px solid #303034; }
.story-guide-subtitle { margin: 0 0 10px; color: #f1f1f5; font-size: 1rem; font-weight: 750; line-height: 1.5; letter-spacing: -.025em; }
.story-guide-body { color: #c6c6cf; font-size: 0.9375rem; font-weight: 450; line-height: 1.85; }
.story-guide-copy .story-guide-traits { margin-top: 12px; color: #e88b98; font-size: 0.875rem; font-weight: 550; line-height: 1.8; }
.story-guide-dialogue { margin: 24px 0; padding: 18px; border-left: 2px solid #e83c53; border-radius: 0 12px 12px 0; background: #1b1518; }
.story-guide-dialogue > p { color: #f4edef; font-size: 1rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.8; }
.story-guide-dialogue > p + p { margin-top: 6px; }
.story-guide-context { margin-top: 12px; color: #a9a9b4; font-size: 0.9375rem; line-height: 1.7; white-space: pre-line; }
.story-guide-choices ul { list-style: none; margin: 14px 0 0; padding: 0; }
.story-guide-choices li { padding: 14px 0; border-bottom: 1px solid #29292f; }
.story-guide-choices li:first-child { padding-top: 0; }
.story-guide-choices li strong { display: block; color: #eeeef3; font-size: 0.9375rem; font-weight: 650; line-height: 1.6; }
.story-guide-choices li p { margin-top: 4px; color: #b5b5c0; font-size: 0.9375rem; line-height: 1.75; }
.story-guide-outro { margin-top: 26px; }
.story-guide-icon-heading { display: flex; align-items: center; gap: 10px; }
.story-guide-heading-label { min-width: 0; }
.nox-editorial-icon {
  box-sizing: border-box;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid #64303a;
  border-radius: 10px;
  background: #291a20;
  color: #ff8292;
  font-size: 18px;
  line-height: 1;
}
.nox-editorial-icon i { display: block; font-style: normal; line-height: 1; }
.story-guide-kicker .nox-editorial-icon { width: 28px; height: 28px; border-radius: 8px; font-size: 16px; }
.story-guide-outro .nox-editorial-icon { color: #fff0f3; background: #42212b; border-color: #7d3647; }
@media (max-width: 767px) {
  .story-guide-copy { margin-top: 18px; padding: 20px 16px; }
  .story-guide-dialogue { padding-left: 14px; }
}
.story-preview .story-section-head > span,
.story-preview .story-section-head > div > span { display: none; }
.story-section-head h3 { color: #f0f0f0; font-size: 16px !important; letter-spacing: -.035em; }
.character-description-copy { max-width: 760px; color: #bcbcbc; font-size: 14px; line-height: 1.75; }
.character-expand-button { margin-top: 16px; border-color: #2a2a2a; background: #111; }
.character-webtoon-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 10px !important; }
.character-webtoon-panel-button { aspect-ratio: 4/5; border: 1px solid #292929 !important; border-radius: 5px !important; background: #111; }
.story-feature-grid,
.story-preview.character-detail-mode .story-feature-grid { grid-template-columns: repeat(3,minmax(0,1fr)) !important; gap: 10px; }
.story-feature-grid > div { min-height: 0; align-items: start; border: 1px solid #292929; border-radius: 8px; background: #111; }
.story-preview .story-feature-grid strong { font-size: 14px; line-height: 1.5; }
.story-preview .story-feature-grid small { font-size: 13.5px; line-height: 1.65; color: #aaa; }
.character-intro-preview { max-width: 720px; }
.character-intro-image { max-height: 620px; object-fit: cover; }
.story-immersion-section[hidden] { display: none !important; }
.story-immersion-section { color: #d8d8d8; }
.story-immersion-lead { max-width: 760px; margin: 0 0 16px; color: #bcbcbc; font-size: 14px; line-height: 1.75; }
.story-user-role { position: relative; max-width: 100%; padding: 16px 18px; border: 1px solid #343434; border-radius: 8px; background: #141414; }
.story-user-role > span,.story-route-heading span { color: #ed7c87; font-size: 13px; font-weight: 650; letter-spacing: 0; }
.story-user-role h4 { margin: 6px 0; color: #f1f1f1; font-size: 16px; letter-spacing: -.025em; }
.story-user-role p { margin: 0; color: #bcbcbc; font-size: 14px; line-height: 1.7; }
.story-world-rule-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin-top: 16px; }
.story-world-rule-grid article { position: relative; min-height: 0; padding: 14px 0 14px 36px; border-bottom: 1px solid #252525; background: transparent; }
.story-world-rule-grid article > span { position: absolute; left: 0; top: 18px; color: #888; font: 600 13px/1 ui-monospace,SFMono-Regular,Consolas,monospace; }
.story-world-rule-grid h4,.story-route-grid h4 { margin: 0 0 5px; color: #ebebeb; font-size: 14px; letter-spacing: -.02em; }
.story-world-rule-grid p,.story-route-grid p { margin: 0; color: #aaa; font-size: 14px; line-height: 1.7; }
.story-route-heading { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.story-route-heading > span { display: none; }
.story-route-heading strong { color: #e5e5e5; font-size: 14px; }
.story-route-grid { display: grid; gap: 0; }
.story-route-grid article { position: relative; padding: 13px 0 13px 144px; border-bottom: 1px solid #252525; background: transparent; }
.story-route-grid article > span { position: absolute; left: 0; top: 16px; max-width: 126px; color: #df7883; font-size: 13px; font-weight: 650; line-height: 1.5; }
.story-ending-note { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 14px 16px; border: 1px solid #3d3033; border-radius: 8px; background: #171315; }
.story-ending-note span { flex: 0 0 auto; color: #fff; font-size: 14px; font-weight: 800; }
.story-ending-note p { margin: 0; color: #bbb; font-size: 14px; line-height: 1.7; }
.story-preview .story-setting-select { margin-top: 0; min-height: 56px; border-radius: 8px; }
.story-preview .story-setting-select b { font-size: 14px; }
.story-preview .story-setting-select small { font-size: 13.5px; line-height: 1.5; }
.story-preview .story-prologue blockquote { font-size: 14px; line-height: 1.75; background: #141414; border-radius: 0 8px 8px 0; }
.story-preview .story-scene-meta { margin-top: 0; font-size: 13px; line-height: 1.5; }
.story-preview .story-state-card { margin-top: 0; }
.story-preview .story-state-card > div { font-size: 13.5px; line-height: 1.5; }
.story-preview .story-state-card > div strong { font-size: 13.5px; }
.story-preview .story-state-card p, .story-preview .story-update-row small { font-size: 13.5px; line-height: 1.6; }
.story-preview .story-update-row { margin-top: 0; grid-template-columns: 52px minmax(0,1fr); }
.story-preview .story-update-row time { font-size: 13px; }
.story-preview .story-update-row strong { font-size: 14px; }
.character-ranking-list,
.character-related-grid { max-width: 760px; }
.story-preview-actions,
.story-preview.character-detail-mode .story-preview-actions {
  position: relative !important;
  height: 78px !important;
  display: grid !important;
  grid-template-columns: 48px 48px minmax(320px,440px) !important;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
  padding: 12px 20px !important;
  border-top: 1px solid #252525;
  background: rgba(12,12,12,.96) !important;
}
.story-preview.character-detail-mode .story-preview-actions { grid-template-columns: 48px minmax(320px,440px) !important; }
.story-preview-actions > button,
.story-preview-actions .story-preview-play { border-radius: 12px !important; }
.story-preview .story-play-composite,
.story-preview .story-mobile-play-wrap { grid-template-columns: minmax(82px,auto) minmax(0,1fr); gap: 8px; }
.story-preview .story-play-mode,
.story-preview .story-mobile-mode { height: 50px; padding-inline: 12px; border: 1px solid #343438; border-radius: 12px; background: #1b1b1e; color: #c9c9d0; font-size: 13px; font-weight: 600; }
.story-preview .story-play-composite .story-preview-play,
.story-preview .story-mobile-play-wrap .story-preview-play { height: 50px; border: 1px solid #f35867; border-radius: 12px; background: #e73549; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; box-shadow: none; }
.story-preview .story-mobile-play-menu { top: auto; bottom: calc(100% + 12px); }
.story-preview .story-mobile-actions > .story-preview-like { display: none; }
.story-preview-actions .story-preview-play { background: #ef3347 !important; color: #fff !important; }
.story-preview.character-detail-mode .story-preview-actions .story-preview-play { background: #e73549 !important; color: #fff !important; }

@media (max-width: 767px) {
  .story-preview-sheet,
  .story-preview.character-detail-mode .story-preview-sheet { grid-template-rows: 54px minmax(0,1fr) !important; }
  .story-preview-topbar,
  .story-preview.character-detail-mode .story-preview-topbar { min-height: 54px !important; padding: 0 14px !important; }
  .story-preview-back span { display: none; }
  .story-preview-brand img { width: 21px; height: 24px; }
  .story-preview-brand strong { font-size: 17px; }
  .story-preview-close,
  .story-preview.character-detail-mode .story-preview-close { width: 34px !important; height: 34px !important; }
  .story-preview-summary,
  .story-preview.character-detail-mode .story-preview-summary { width: 100%; display: block !important; padding: 12px 0 20px !important; }
  .story-preview-visual,
  .story-preview.character-detail-mode .story-preview-visual { width: calc(100% - 32px) !important; margin-inline: auto; aspect-ratio: 3/2; border-radius: 12px !important; }
  .story-preview-content,
  .story-preview.character-detail-mode .story-preview-content { padding: 18px 20px 0 !important; }
  .story-title-line h2,
  .story-preview.character-detail-mode .story-title-line h2 { font-size: 22px !important; }
  .story-preview-hook,
  .story-preview.character-detail-mode .story-preview-hook { font-size: 14px !important; }
  .story-preview-detail,
  .story-preview.character-detail-mode .story-preview-detail { width: 100%; padding: 0 20px 96px !important; }
  .story-preview-detail > section,
  .story-preview.character-detail-mode .story-preview-detail > section { padding: 20px 0 !important; }
  .story-section-head h3 { font-size: 16px !important; }
  .character-webtoon-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .character-webtoon-panel-button { aspect-ratio: 16/11; }
  .story-feature-grid,
  .story-preview.character-detail-mode .story-feature-grid { grid-template-columns: 1fr !important; }
  .story-world-rule-grid { grid-template-columns: 1fr; }
  .story-world-rule-grid article { min-height: 0; }
  .story-route-grid article { padding: 12px 0; }
  .story-route-grid article > span { position: static; display: block; max-width: none; margin-bottom: 5px; }
  .story-ending-note { display: block; }
  .story-ending-note span { display: block; margin-bottom: 8px; }
  .story-preview-actions,
  .story-preview.character-detail-mode .story-preview-actions { display: none !important; }
  .story-mobile-actions,
  .story-preview.character-detail-mode .story-mobile-actions {
    position: fixed;
    z-index: 7100;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid !important;
    grid-template-columns: 48px minmax(0,1fr);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom,0px));
    border-top: 1px solid #242424;
    background: rgba(10,10,10,.96);
    backdrop-filter: blur(16px);
  }
  .villains-editorial-page .villains-editorial-hero .editorial-cover img { object-position: center 24%; }
  .villains-editorial-page .villains-webtoon { width: calc(100% + 28px); margin-left: -14px; border-inline: 0; border-radius: 0; }
}

/* Keep character-detail overrides after the shared responsive rules. */
.story-preview.character-detail-mode .story-preview-visual { aspect-ratio: 3/2 !important; }
.story-preview.character-detail-mode .character-detail-title-slide .story-preview-cover { object-fit: contain !important; object-position: center !important; }
.story-preview.character-detail-mode .story-title-line h2 { font-size: 22px !important; }
.story-preview.character-detail-mode .story-preview-hook { font-size: 14px !important; line-height: 1.8 !important; }

@media (max-width: 767px) {
  .story-preview.character-detail-mode .story-preview-visual { aspect-ratio: 3/2 !important; }
  .story-preview.character-detail-mode .story-title-line h2 { font-size: 22px !important; }
  .story-preview.character-detail-mode .story-preview-hook { font-size: 14.5px !important; }
  .story-preview.character-detail-mode .story-section-head h3 { font-size: 16px !important; }
}

/* The gallery owns its bounds; portrait artwork remains uncropped inside it. */
@media (min-width: 768px) {
  .story-preview.is-portrait-story .story-preview-summary {
    grid-template-columns: minmax(0,44%) minmax(0,1fr) !important;
    gap: var(--detail-column-gap) !important;
    padding-block: 24px !important;
  }

  .story-preview.is-portrait-story .story-preview-visual {
    width: 100% !important;
    max-width: none;
    aspect-ratio: 6/5 !important;
    justify-self: center;
  }

  .story-preview.is-portrait-story .character-detail-title-slide img,
  .story-preview.is-portrait-story .character-detail-scene-slide img {
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 767px) {
  .story-preview.is-portrait-story .story-preview-visual {
    width: calc(100% - 32px) !important;
    aspect-ratio: 6/5 !important;
    max-height: 360px;
  }

  .story-preview.is-portrait-story .character-detail-title-slide img,
  .story-preview.is-portrait-story .character-detail-scene-slide img {
    object-fit: contain !important;
    object-position: center !important;
  }
}

.character-detail-slide[hidden], #characterDetailDots button[hidden] { display: none !important; }
.story-preview .character-webtoon-section.has-original-webtoon:not([hidden]) { display: block !important; }
.story-cast-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 16px 0; }
.story-cast-grid[hidden], .story-cast-grid:empty { display: none; }
.story-cast-grid article { border: 1px solid #333; border-radius: 8px; padding: 16px; background: #141414; }
.story-cast-grid article > span { color: #ed777e; font-size: 13px; }
.story-cast-grid h4 { margin: 6px 0; font-size: 16px; color: #fafafa; }
.story-cast-grid p { margin: 0; font-size: 14px; line-height: 1.8; color: #bbb; }
.character-webtoon-grid.has-baked-webtoon { grid-template-columns: minmax(0,1fr) !important; max-width: 640px; margin-inline: auto; }
.has-baked-webtoon .character-webtoon-panel-button { aspect-ratio: auto !important; }
.has-baked-webtoon .character-webtoon-panel-button img { display: block; position: static; width: 100%; height: auto; object-fit: contain; }
@media (max-width: 767px) {
  .story-cast-grid { grid-template-columns: 1fr; gap: 10px; }
  .story-cast-grid article { padding: 16px; }
}

/* Match the home page's centered tablet canvas on desktop. */
@media (min-width: 768px) {
  .story-preview-sheet,
  .story-preview.character-detail-mode .story-preview-sheet {
    box-sizing: border-box;
    width: min(100%,960px) !important;
    max-width: 960px !important;
    margin-inline: auto !important;
  }
}

@media (min-width: 1024px) {
  .story-preview-sheet,
  .story-preview.character-detail-mode .story-preview-sheet {
    border-left: 1px solid rgba(255,255,255,.14) !important;
    border-right: 1px solid rgba(255,255,255,.14) !important;
    box-shadow: -14px 0 46px rgba(0,0,0,.28),14px 0 46px rgba(0,0,0,.28) !important;
  }
}

/* One persistent start control; secondary information stays out of the reading flow. */
.story-preview .story-summary-actions,
.story-preview .story-setting-section { display: none; }
.story-preview .story-creator-award,
.story-preview .character-creator-line small,
.story-preview .character-attribute-row { display: none; }
.story-preview .story-title-line { min-height: 0; }
.story-preview .story-creator-line { margin-top: 10px !important; }
.story-preview .story-preview-detail > section:has(> .detail-disclosure) { padding-block: 0 !important; }
.story-preview .detail-disclosure > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; cursor: pointer; list-style: none; color: #ededf1; font-size: 14px; font-weight: 600; }
.story-preview .detail-disclosure > summary::-webkit-details-marker { display: none; }
.story-preview .detail-disclosure > summary::after { content: '+'; margin-left: auto; color: #90909b; font-size: 18px; font-weight: 400; }
.story-preview .detail-disclosure[open] > summary::after { content: '−'; }
.story-preview .detail-disclosure > summary:focus-visible { outline: 2px solid #ec6275; outline-offset: 2px; }
.story-preview .detail-disclosure > summary .story-section-head { margin: 0; }
.story-preview .detail-disclosure > summary h3 { font-size: 14px !important; }
.story-preview .detail-disclosure[open] { padding-bottom: 18px; }
.story-preview .nox-comments-head { margin-bottom: 16px; }
.story-preview .nox-comments-head h2 { font-size: 16px; }
.story-preview .nox-comments-head > div:first-child > span { display: none; }

/* Story palette: the sheet chrome takes the tokens derived from each story thumbnail (public/css/story-palettes.css). */
.story-preview[data-story-palette],
.story-preview[data-story-palette] .story-preview-sheet,
.story-preview[data-story-palette].character-detail-mode .story-preview-sheet { background: var(--story-bg) !important; }
.story-preview[data-story-palette] .story-preview-topbar,
.story-preview[data-story-palette].character-detail-mode .story-preview-topbar { background: color-mix(in srgb, var(--story-bg) 94%, transparent) !important; border-bottom-color: var(--story-line) !important; }
.story-preview[data-story-palette] .story-preview-actions,
.story-preview[data-story-palette].character-detail-mode .story-preview-actions { background: color-mix(in srgb, var(--story-bg) 96%, transparent) !important; border-top-color: var(--story-line); }
.story-preview[data-story-palette] .story-preview-summary { border-bottom-color: var(--story-line); }
.story-preview[data-story-palette] .story-preview-visual,
.story-preview[data-story-palette].character-detail-mode .story-preview-visual { border-color: var(--story-line) !important; }
.story-preview[data-story-palette] .story-preview-close,
.story-preview[data-story-palette].character-detail-mode .story-preview-close { background: var(--story-surface) !important; border-color: var(--story-line) !important; }
.story-preview[data-story-palette] .story-preview-kicker,
.story-preview[data-story-palette] .story-section-head span,
.story-preview[data-story-palette] .story-route-heading span { color: var(--story-accent); }
.story-preview[data-story-palette] .story-play-mode,
.story-preview[data-story-palette] .story-mobile-mode { background: var(--story-surface); border-color: var(--story-line); }
.story-preview[data-story-palette] .story-preview-tags :is(span, a),
.story-preview[data-story-palette] .character-attribute-row span { background: var(--story-surface); border-color: var(--story-line); }
.story-preview[data-story-palette] .story-section-head h3 { border-bottom-color: var(--story-line); }
.story-preview[data-story-palette] .story-preview-detail section { border-color: var(--story-line); }
.story-preview[data-story-palette] .nox-story-dossier { border-color: var(--story-line); }

/* Desktop: the whole detail scrolls as one page, so the scrollbar sits at the viewport edge instead of inside the sheet. */
@media (min-width: 768px) {
  .story-preview { overflow-y: auto !important; overflow-x: hidden !important; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #444 transparent; align-items: start !important; }
  .story-preview-sheet,
  .story-preview.character-detail-mode .story-preview-sheet { height: auto !important; min-height: 100dvh; grid-template-rows: 58px auto 78px !important; overflow: visible !important; }
  .story-preview-topbar,
  .story-preview.character-detail-mode .story-preview-topbar { position: sticky !important; top: 0; }
  .story-preview-scroll,
  .story-preview.character-detail-mode .story-preview-scroll { overflow: visible !important; min-height: auto; }
  .story-preview-actions,
  .story-preview.character-detail-mode .story-preview-actions { position: sticky !important; bottom: 0; z-index: 4; }
}

/* The story booklet keeps its own inner gutter; the generic detail section padding must not zero it. */
.story-preview .story-preview-detail > .nox-story-dossier,
.story-preview.character-detail-mode .story-preview-detail > .nox-story-dossier { padding: 20px clamp(14px, 3vw, 28px) 26px !important; }
.story-preview .story-preview-detail > .nox-story-dossier .dossier-disclosure > summary { gap: 14px; padding: 12px 0; }
.story-preview .story-preview-detail > .nox-story-dossier .dossier-disclosure-hint { margin-right: 6px; }

/* Creator links inside the detail header keep the surrounding text color and only underline on hover. */
.story-preview .story-creator-link { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.story-preview .story-creator-link:hover, .story-preview .story-creator-link:focus-visible { border-bottom-color: currentColor; }
.story-preview .story-creator-award[hidden] { display: none !important; }

.story-preview-tags a { text-decoration: none; min-height: 36px; display: inline-flex; align-items: center; }
.story-preview-tags a:hover, .story-preview-tags a:focus-visible { color: white; border-color: #f0323f; }
