.manga-detail-content {
  width: 100%;
  min-width: 0;
  max-width: 1660px;
  margin: 0 auto;
  padding: 22px 28px 72px 18px;
}

.back-link {
  display: inline-flex;
  margin-bottom: 18px;
  color: #68636d;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.back-link:hover { color: #1d1b22; }

.manga-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
  gap: 34px;
  align-items: start;
}
.manga-detail-layout--single {
  grid-template-columns: minmax(0, 1fr);
}
.manga-detail-main { min-width: 0; }
.manga-work-hero {
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.manga-detail-cover-shell {
  width: 100%;
}

.manga-detail-cover {
  display: flex;
  width: 100%;
  aspect-ratio: 2 / 3;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  background: #f2f2f2;
  box-shadow: 0 16px 34px rgba(25, 43, 56, .13);
}
.manga-detail-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.manga-detail-cover-link { color: inherit; text-decoration: none; }
.manga-detail-cover-link:hover img,
.manga-detail-cover-link:focus-visible img { transform: scale(1.012); }
.manga-detail-cover img { transition: transform 180ms ease; }
.manga-detail-cover-placeholder { color: #777; font-size: 13px; font-weight: 700; }

.manga-work-intro {
  display: flex;
  min-width: 0;
  height: 100%;
  padding: 4px 0 0;
  align-self: stretch;
  flex-direction: column;
}
.manga-work-intro h1 {
  width: 100%;
  max-width: none;
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.13;
  letter-spacing: -.035em;
  text-wrap: wrap;
  line-break: strict;`n  word-break: normal;
}
.manga-work-intro h1.manga-detail-title--medium { font-size: clamp(28px, 3.5vw, 44px); }
.manga-work-intro h1.manga-detail-title--long { font-size: clamp(26px, 3vw, 38px); }
.manga-work-intro h1.manga-detail-title--very-long { font-size: clamp(23px, 2.6vw, 34px); }

.manga-rating-actions { display: flex; gap: 8px; margin-top: 18px; }
.manga-rating-action {
  display: grid;
  width: 42px;
  height: 42px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f2f2f2;
  color: #222;
  cursor: pointer;
}
.manga-rating-action:hover,
.manga-rating-action[aria-pressed="true"] { background: #e6e6e6; }
.manga-rating-action svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.manga-rating-action[aria-pressed="true"] svg { fill: currentColor; }
.manga-rating-action:disabled { cursor: wait; opacity: .55; }

.manga-hero-overview { margin-top: 24px; }
.manga-hero-overview p { margin: 0; color: #494949; font-size: 15px; line-height: 1.9; }
.manga-hero-facts-panel {
  margin-top: auto;
  padding: 16px 18px;
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: rgba(247, 247, 247, .9);
}
.manga-hero-facts-title { margin: 0; font-size: 17px; line-height: 1.4; }

.manga-purchase-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 470px);
  margin-top: 12px;
  padding-top: 0;
}
.manga-purchase-link {
  display: inline-flex;
  width: 100%;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  background: #fff;
  color: #2c2c2c;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
}
.manga-purchase-link:hover { background: #f5f5f5; }
.manga-purchase-link--primary { border-color: #2d766c; background: #2d766c; color: #fff; }
.manga-purchase-link--primary:hover { background: #245f57; }
.manga-purchase-link--amazon { border-color: #e58a00; background: #ff9900; color: #1d1b22; }
.manga-purchase-link--amazon:hover { background: #e88b00; }
.manga-purchase-link:only-child { grid-column: 1 / -1; }

.icon-heading { display: flex; align-items: center; gap: 8px; }
.heading-icon { display: inline-flex; width: 19px; height: 19px; flex: 0 0 19px; color: #3c7481; }
.heading-icon svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.manga-detail-heading,
.manga-detail-section h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -.015em;
}
.manga-judgement-grid h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
  letter-spacing: -.015em;
}
.manga-fit-panel,
.manga-detail-section { border-radius: 18px; background: #f7f7f7; }
.manga-fit-panel { margin-top: 18px; padding: 24px; }
.manga-fit-lead { margin: 13px 0 0; color: #3f3f3f; font-size: 16px; line-height: 1.85; }
.manga-judgement-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 0; }
.manga-fit-lead + .manga-judgement-grid { margin-top: 18px; }
.manga-judgement-grid > div { padding: 17px 18px; border: 1px solid #e7e7e7; border-radius: 14px; background: #fff; }
.manga-judgement-good h2 { color: #137363; }
.manga-judgement-good .heading-icon { color: #137363; }
.manga-judgement-caution h2 { color: #a15a37; }
.manga-judgement-caution .heading-icon { color: #a15a37; }
.manga-judgement-grid ul { margin: 10px 0 0; padding-left: 1.25em; color: #4d4d4d; font-size: 14px; line-height: 1.8; }

.manga-detail-section { margin-top: 18px; padding: 22px 24px; }
.manga-detail-section > p { margin: 13px 0 0; color: #494949; font-size: 14px; line-height: 1.9; }
.manga-facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; }
.manga-facts-grid div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid #e2e2e2; }
.manga-facts-grid dt { color: #68636d; font-size: 12px; font-weight: 700; }
.manga-facts-grid dd { min-width: 0; margin: 0; font-size: 13px; font-weight: 700; line-height: 1.55; line-break: strict;`n  word-break: normal; }

.manga-related { align-self: start; position: sticky; top: 82px; }
.manga-related-heading { margin: 0 0 14px; color: #2f2f2f; font-size: 17px; line-height: 1.4; }
.manga-related-list { display: grid; gap: 14px; }
.manga-related-card { display: grid; grid-template-columns: 86px minmax(0, 1fr); gap: 11px; align-items: start; color: inherit; text-decoration: none; }
.manga-related-card:hover h3 { color: #286e80; }
.manga-related-thumb { aspect-ratio: 2 / 3; overflow: hidden; border-radius: 9px; background: #eee; box-shadow: inset 0 0 0 1px rgba(0,0,0,.05); }
.manga-related-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.manga-related-placeholder { display: block; width: 100%; height: 100%; }
.manga-related-card h3 { margin: 2px 0 0; font-size: 13px; line-height: 1.55; }

@media (prefers-reduced-motion: reduce) {
  .manga-detail-cover img { transition: none; }
  .manga-detail-cover-link:hover img,
  .manga-detail-cover-link:focus-visible img { transform: none; }
}
@media (max-width: 1240px) {
  .manga-detail-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; }
  .manga-work-hero { grid-template-columns: 250px minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 1040px) {
  .manga-detail-layout { grid-template-columns: 1fr; }
  .manga-detail-layout--single { grid-template-columns: 1fr; }
  .manga-related { position: static; }
  .manga-related-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .manga-related-card { grid-template-columns: 72px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .manga-detail-content { padding: 18px 16px 60px; }
  .manga-work-hero { grid-template-columns: 150px minmax(0, 1fr); gap: 18px; }
  .manga-work-intro h1 { font-size: clamp(23px, 6.4vw, 34px); }
  .manga-work-intro h1.manga-detail-title--medium { font-size: clamp(22px, 5.9vw, 32px); }
  .manga-work-intro h1.manga-detail-title--long { font-size: clamp(21px, 5.4vw, 29px); }
  .manga-work-intro h1.manga-detail-title--very-long { font-size: clamp(20px, 5vw, 27px); }
  .manga-judgement-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .manga-work-hero { grid-template-columns: 1fr; }
  .manga-detail-cover { width: min(72vw, 300px); }
  .manga-work-intro { height: auto; }
  .manga-hero-facts-panel { margin-top: 22px; }
  .manga-facts-grid { grid-template-columns: 1fr; }
  .manga-purchase-links { grid-template-columns: 1fr; margin-top: 20px; padding-top: 0; }
  .manga-purchase-link:only-child { grid-column: auto; }
  .manga-related-list { grid-template-columns: 1fr; }
  .manga-related-card { grid-template-columns: 74px minmax(0, 1fr); }
}