/* SoraKai — страница произведения v1. Все классы md-* локальны для страницы. */
.manga-detail { padding-top: 23px; padding-bottom: 64px; }
.md-breadcrumbs { display: flex; align-items: center; gap: 10px; color: #8694b5; font-size: 11px; margin-bottom: 21px; min-width: 0; }
.md-breadcrumbs a { flex: 0 0 auto; transition: color .2s; }
.md-breadcrumbs a:hover { color: #bd92ff; }
.md-breadcrumb-current { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: #b6bfd9; }
.md-hero { display: grid; grid-template-columns: minmax(215px, 260px) minmax(0,1fr); gap: clamp(24px, 3vw, 52px); position: relative; isolation: isolate; overflow: hidden; border: 1px solid #33314d; border-radius: 19px; padding: clamp(20px, 2.5vw, 35px); background: linear-gradient(120deg,#17182b 0%,#121729 48%,#0e1421 100%); box-shadow: inset 0 1px #ffffff09; }
.md-hero-glow { position: absolute; z-index: -1; pointer-events: none; right: -10%; top: -60%; width: 75%; height: 150%; background: radial-gradient(ellipse at center,#52257c4d 0%,#2c267b17 45%,transparent 73%); }
.md-cover-column { width: 100%; max-width: 260px; }
.md-cover { aspect-ratio: 2/3; overflow: hidden; position: relative; border: 1px solid #51446e; border-radius: 14px; background: #15172b; box-shadow: 0 19px 43px #01030f8c,0 0 18px #7544cc15; }
.md-cover:after { content: ''; position: absolute; inset: auto 0 0; height: 30%; pointer-events: none; background: linear-gradient(transparent,#070918a3); }
.md-cover>img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.md-cover-tags { position: absolute; z-index: 2; top: 11px; left: 11px; display: flex; align-items: flex-start; flex-direction: column; gap: 6px; }
.md-cover-type,.md-cover-year { color: #fff; border-radius: 6px; padding: 5px 10px; line-height: 1.3; font-size: 11px; font-weight: 800; box-shadow: 0 4px 12px #04071466; }
.md-cover-type--manhwa { background: linear-gradient(110deg,#7e46f4,#5662e7); }
.md-cover-type--manga { background: linear-gradient(110deg,#ed507a,#ee7958); }
.md-cover-type--manhua { background: linear-gradient(110deg,#109aba,#2786d9); }
.md-cover-type--other { background: #393654; }
.md-cover-year { background: #0b0e1bd9; border: 1px solid #ffffff28; }
.md-cover-rating { position: absolute; z-index: 2; bottom: 11px; left: 11px; border: 1px solid #ffffff24; border-radius: 8px; padding: 5px 9px; background: #101321df; font-size: 13px; font-weight: 800; }
.md-star,.md-cover-rating span { color: #ffbf39; }
.md-hero-info { min-width: 0; align-self: center; padding-block: 8px; }
.md-eyebrow { display: flex; align-items: center; gap: 9px; color: #bca1ff; font-size: 10px; letter-spacing: 1.3px; font-weight: 800; text-transform: uppercase; }
.md-eyebrow-dot { height: 7px; width: 7px; border-radius: 50%; background: #a56bff; box-shadow: 0 0 12px #a56bffb8; }
.manga-detail .md-hero h1 { font-size: clamp(27px, 2.9vw, 42px); font-weight: 800; letter-spacing: -1.1px; line-height: 1.2; margin: 16px 0 16px; overflow-wrap: anywhere; }
.md-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.md-badges>span { border: 1px solid #343650; border-radius: 8px; padding: 6px 10px; font-size: 11px; font-weight: 700; }
.md-badges .md-badge-muted { background: #1d2435; color: #a8b6d3; }
.md-status { display: inline-flex; align-items: center; gap: 8px; background: #1b2832; }
.md-status--ongoing { color: #87bbb5; border-color: #365452 !important; }
.md-status--completed { color: #b6a6d1; border-color: #554265 !important; background: #251d32; }
.md-status--paused { color: #ccb28f; border-color: #65523d !important; background: #2c251e; }
.md-status-dot { height: 6px; width: 6px; border-radius: 50%; background: currentColor; }
.md-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 0; padding: 18px 0; margin-top: 19px; border-top: 1px solid #31354c; border-bottom: 1px solid #31354c; }
.md-stats>div { display: flex; flex-direction: column; gap: 4px; padding: 0 27px; border-right: 1px solid #31354c; }
.md-stats>div:first-child { padding-left: 0; }
.md-stats>div:last-child { border-right: 0; }
.md-stat-label { color: #8b9ab9; font-size: 10px; }
.md-stats strong { font-size: 19px; font-weight: 800; color: #f9f8ff; }
.md-genre-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 19px; }
.md-genre-chip { color: #bfc7e0; border: 1px solid #343b56; background: #1a2132; border-radius: 7px; padding: 7px 11px; font-size: 11px; }
.md-hero-actions { display: flex; align-items: stretch; flex-wrap: wrap; gap: 11px; margin-top: 27px; }
.manga-detail .md-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 10px; min-height: 44px; padding: 10px 18px; text-decoration: none; color: #fff; font-size: 12px; font-weight: 800; transition: filter .18s, border-color .18s, transform .18s; }
.manga-detail .md-button:hover { filter: brightness(1.14); transform: translateY(-1px); }
.manga-detail .md-button svg { width: 19px; height: 19px; }
.manga-detail .md-button-primary { background: linear-gradient(110deg,#8650f6,#6234e6); border: 1px solid #9a6bff; box-shadow: 0 7px 22px #6e35e535; }
.manga-detail .md-button-outline { background: #101727; border: 1px solid #424266; }
.manga-detail .md-bookmark.bookmark-toggle { position: static; width: auto; height: auto; min-width: 0; background: #101727; color: #e9e5ff; border-radius: 10px; box-shadow: none; }
.manga-detail .md-bookmark.bookmark-toggle[aria-pressed="true"] { color: #d8bdff; border-color: #8a5cf9; background: #2c1e46; }
.manga-detail .md-bookmark.bookmark-toggle[aria-pressed="true"] svg { fill: #8855ed; }
.md-content-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(255px, 320px); gap: 20px; margin-top: 21px; align-items: start; }
.md-content-main,.md-content-side { min-width: 0; display: grid; gap: 20px; }
.md-panel { min-width: 0; background: linear-gradient(140deg,#121928,#101624); border: 1px solid #29334d; border-radius: 14px; padding: 23px 25px; }
.md-panel h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.3px; }
.md-heading-accent { display: inline-block; flex: 0 0 4px; height: 21px; border-radius: 5px; background: linear-gradient(#ba80ff,#7250f4); box-shadow: 0 0 10px #9d58f64d; }
.md-description-text { color: #b7c2d9; line-height: 1.85; font-size: 13px; }
.md-description-text p { margin: 17px 0 0; white-space: normal; overflow-wrap: anywhere; }
.md-description-text.is-collapsed { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
.md-expand { color: #b88cff; border: 0; background: transparent; padding: 8px 0 0; margin-top: 8px; font-size: 11px; font-weight: 800; }
.md-expand:hover { color: #d7c1ff; }
.md-section-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.md-section-header p { color: #8e9bb9; font-size: 11px; margin: 8px 0 0 14px; }
.md-chapter-count { display: inline-grid; place-items: center; min-width: 21px; height: 21px; padding-inline: 6px; color: #cbb6fa; font-size: 11px; border-radius: 6px; background: #33274b; }
.md-chapter-sort { display: flex; flex: 0 0 auto; gap: 3px; border-radius: 8px; background: #0c1320; border: 1px solid #2d3550; padding: 3px; }
.md-chapter-sort a { padding: 6px 10px; border-radius: 6px; color: #a4b0cc; font-size: 11px; }
.md-chapter-sort a.is-active { color: #fff; background: #5735a3; }
.md-chapter-list { display: grid; gap: 8px; }
.md-chapter-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid #25314a; background: #111b2b; border-radius: 9px; min-height: 65px; padding: 11px 15px; }
.md-chapter-row-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-chapter-number { color: #f0efff; font-size: 12px; font-weight: 800; }
.md-chapter-date { color: #8492b1; font-size: 10px; }
.md-chapter-wait { display: inline-flex; flex: 0 0 auto; gap: 6px; align-items: center; color: #8690ae; font-size: 10px; }
.md-chapter-wait svg { width: 14px; height: 14px; }
.md-chapters-empty { color: #98a4c2; padding: 19px 0; font-size: 12px; }
.md-reader-note { color: #858faf; font-size: 11px; line-height: 1.7; margin: 15px 0 0; }
.md-pages { display: flex; justify-content: center; gap: 6px; padding-top: 17px; }
.md-pages a { border-radius: 7px; border: 1px solid #313b57; background: #172033; color: #b9c3df; min-width: 32px; height: 32px; display: grid; place-items: center; font-size: 12px; }
.md-pages a.is-current { background: #6f45d1; border-color: #885bea; color: #fff; }
.md-facts dl { margin: 17px 0 0; }
.md-facts dl>div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid #28334a; }
.md-facts dl>div:last-child { border-bottom: 0; }
.md-facts dt { color: #8796b8; font-size: 11px; }
.md-facts dd { color: #e4e7f5; font-size: 11px; font-weight: 700; text-align: right; margin: 0; }
.md-fact-status--ongoing { color: #80b4ad !important; }
.md-fact-status--completed { color: #ad9acb !important; }
.md-fact-status--paused { color: #c2a382 !important; }
.md-side-hint { background: linear-gradient(135deg,#261b3a,#171a2c); border: 1px solid #382d55; border-radius: 13px; padding: 17px 19px; color: #aeb1d0; font-size: 11px; line-height: 1.7; }
.md-side-hint span { color: #b984ff; margin-right: 7px; }
.md-similar { margin-top: 34px; }
.md-similar-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 13px; margin-bottom: 17px; }
.md-similar-title h2 { margin: 0; font-size: 20px; letter-spacing: -.4px; }
.md-similar-title a { color: #b786ff; font-size: 12px; font-weight: 800; }
.md-similar-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(11px,1.6vw,23px); }
.md-similar-item { min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.md-similar-cover { display: block; position: relative; width: 100%; aspect-ratio: 2/3; overflow: hidden; border-radius: 11px; border: 1px solid #34405b; background: #1c1830; transition: border-color .2s, transform .2s; }
.md-similar-item:hover .md-similar-cover { border-color: #966bff; transform: translateY(-2px); }
.md-similar-cover img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .25s; }
.md-similar-item:hover img { transform: scale(1.04); }
.md-similar-rating { position: absolute; bottom: 7px; left: 7px; border-radius: 6px; padding: 4px 7px; background: #101625df; font-size: 11px; color: #fff; font-weight: 800; }
.md-similar-rating span { color: #ffbc36; }
.md-similar-name { font-size: 12px; font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.md-similar-type { font-size: 10px; color: #8b9cc2; }
.md-not-found { text-align: center; border: 1px solid #333454; border-radius: 16px; background: #141a2b; padding: 70px 20px; }
.md-not-found h1 { margin: 9px 0; }
.md-not-found p { margin: 0 0 25px; color: #9babc8; }
.md-not-found-symbol { font-size: 50px; color: #9f6fff; }
.md-back { color: #b89bf6; display: inline-block; margin-bottom: 20px; }
@media (max-width: 1020px) {
  .md-hero { grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
  .md-content-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
  .md-panel { padding: 18px; }
  .md-stats>div { padding: 0 14px; }
  .md-similar-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 720px) {
  .md-hero { grid-template-columns: 150px minmax(0,1fr); gap: 17px; }
  .md-hero-info { padding-block: 0; }
  .manga-detail .md-hero h1 { font-size: 24px; }
  .md-eyebrow { font-size: 8px; letter-spacing: .7px; }
  .md-stats { gap: 12px; }
  .md-stats>div { padding: 0 12px 0 0; }
  .md-stats strong { font-size: 15px; }
  .md-content-layout { grid-template-columns: 1fr; }
  .md-content-side { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .md-similar-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 560px) {
  .manga-detail { padding-top: 15px; }
  .md-breadcrumbs { margin-bottom: 15px; gap: 6px; font-size: 10px; }
  .md-hero { grid-template-columns: 112px minmax(0,1fr); gap: 14px; padding: 14px; border-radius: 13px; }
  .md-cover { border-radius: 9px; }
  .md-cover-tags { top: 5px; left: 5px; gap: 4px; }
  .md-cover-type,.md-cover-year { padding: 3px 5px; font-size: 9px; }
  .md-cover-rating { left: 5px; bottom: 5px; padding: 3px 5px; font-size: 10px; }
  .md-eyebrow { display: none; }
  .manga-detail .md-hero h1 { font-size: 18px; margin: 0 0 11px; letter-spacing: -.5px; }
  .md-badges { gap: 4px; }
  .md-badges>span { font-size: 9px; padding: 4px 6px; }
  .md-stats { border: none; margin: 10px 0 0; padding: 0; gap: 9px; }
  .md-stats>div { border: 0; padding: 0; }
  .md-stat-label { font-size: 8px; }
  .md-stats strong { font-size: 12px; }
  .md-genre-list { gap: 4px; margin-top: 9px; }
  .md-genre-chip { font-size: 9px; padding: 4px 6px; }
  .md-hero-actions { margin-top: 13px; gap: 7px; }
  .manga-detail .md-button { padding: 8px 10px; min-height: 37px; font-size: 10px; }
  .manga-detail .md-button svg { width: 14px; height: 14px; }
  .md-cover-column { max-width: 112px; }
  .md-panel { padding: 18px 15px; }
  .md-panel h2 { font-size: 16px; }
  .md-content-side { grid-template-columns: 1fr; }
  .md-similar-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .md-similar-title h2 { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  .manga-detail *, .manga-detail *::before, .manga-detail *::after { transition: none !important; scroll-behavior: auto !important; }
}
