@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/unbounded-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url(/fonts/unbounded-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #fff8ec;
  --card: #ffffff;
  --ink: #1b1712;
  --text: #1b1712;
  --muted: #6b6155;
  --line: #1b1712;
  --soft: #f4ead8;
  --dot: rgba(27, 23, 18, .07);
  --yellow: #ffd23f;
  --teal: #20b2bd;
  --teal-soft: #d4f2f4;
  --teal-ink: #0b6f78;
  --pink: #ff7b97;
  --pink-soft: #ffe2e9;
  --tan: #d6a874;
  --tan-soft: #f6e4cd;
  --sky: #e2f3fb;
  --radius: 16px;
  --radius-sm: 12px;
  --border: 2.5px solid var(--line);
  --shadow: 4px 4px 0 var(--line);
  --shadow-lg: 6px 6px 0 var(--line);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Unbounded", var(--font);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #16130f;
    --card: #221d17;
    --ink: #f4ead8;
    --text: #efe5d3;
    --muted: #b3a690;
    --line: #e9dcc4;
    --soft: #2b241c;
    --dot: rgba(244, 234, 216, .05);
    --teal-soft: #113c40;
    --teal-ink: #6fdbe3;
    --pink-soft: #43212a;
    --tan-soft: #3b2c1c;
    --sky: #182a33;
    --shadow: 4px 4px 0 #000;
    --shadow-lg: 6px 6px 0 #000;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (max-width: 600px) { html { scroll-padding-top: 12px; } }

body {
  margin: 0;
  font: 17px/1.6 var(--font);
  color: var(--text);
  background-color: var(--paper);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
  background-size: 16px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

main { flex: 1; }

img { max-width: 100%; height: auto; }

a { color: inherit; }

.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 24px; } }

.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 8px; z-index: 100; background: var(--card); padding: 8px 12px; border: var(--border); border-radius: 10px; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--border);
}
.header__inner { display: flex; align-items: center; gap: 12px; min-height: 66px; }

.logo { text-decoration: none; display: inline-flex; flex: none; }
.logo__bubble {
  position: relative;
  font: 800 17px/1 var(--font-display);
  letter-spacing: -.02em;
  background: var(--yellow);
  color: #1b1712;
  border: var(--border);
  border-radius: 999px;
  padding: 9px 15px 10px;
  box-shadow: 3px 3px 0 var(--line);
  white-space: nowrap;
}
.logo__bubble i { font-style: normal; font-weight: 500; opacity: .75; }
.logo__bubble::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -9px;
  width: 13px;
  height: 13px;
  background: var(--yellow);
  border-right: var(--border);
  border-bottom: var(--border);
  transform: skewY(40deg) rotate(10deg);
  border-bottom-right-radius: 3px;
}

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 2px solid transparent;
  white-space: nowrap;
}
.nav a:hover { background: var(--soft); }
.nav a.is-active { border-color: var(--line); background: var(--card); box-shadow: 2px 2px 0 var(--line); }

.header__socials { display: none; gap: 8px; }
@media (min-width: 900px) {
  .header__socials { display: flex; }
  .nav { margin-right: 8px; }
}
@media (max-width: 600px) {
  .header { position: relative; }
  .header__inner { flex-wrap: wrap; gap: 10px; padding-top: 12px; padding-bottom: 10px; }
  .logo__bubble { font-size: 15px; padding: 8px 12px 9px; }
  .logo__bubble::after { left: 14px; }
  .nav { order: 3; flex-basis: 100%; margin: 0; gap: 6px; }
  .nav a { flex: 1; text-align: center; font-size: 14px; padding: 7px 4px; border-color: var(--line); background: var(--card); }
  .nav a.is-active { background: var(--ink); color: var(--paper); box-shadow: none; }
  .header__socials { display: flex; margin-left: auto; }
}

/* ---------- Buttons, chips, badges ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  font: 700 16px/1.2 var(--font);
  color: var(--ink);
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--line); }
.btn--primary { background: var(--yellow); color: #1b1712; }
.btn--teal { background: var(--teal); color: #10282a; }
.btn--big { padding: 15px 26px; font-size: 17px; }
.btn--small { padding: 8px 14px; font-size: 14px; box-shadow: 3px 3px 0 var(--line); }
.btn--ghost { background: transparent; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 4px 10px; margin: 0 -4px 8px; scrollbar-width: thin; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 7px 14px;
  font: 700 14px/1.2 var(--font);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
}
.chip:hover { background: var(--soft); }
.chip.is-active { background: var(--ink); color: var(--paper); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: 700 12px/1 var(--font);
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.badge--ink { background: var(--ink); color: var(--paper); }
.badge--teal { background: var(--teal-soft); color: var(--teal-ink); border: 2px solid currentColor; }

.mark { display: inline-block; padding: 0 .12em; border-radius: .18em; transform: rotate(-1.5deg); }
.mark--pink { background: var(--pink); color: #1b1712; }
.mark--tan { background: var(--tan); color: #1b1712; transform: rotate(1.5deg); }

.eyebrow {
  display: inline-block;
  font: 700 13px/1 var(--font);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--teal-ink);
  background: var(--teal-soft);
  padding: 7px 11px;
  border-radius: 999px;
  margin: 0 0 18px;
}

/* ---------- Socials ---------- */
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: #fff;
  background: #1b1712;
  border: var(--border);
  border-radius: 12px;
  box-shadow: 3px 3px 0 var(--line);
  transition: transform .12s ease, box-shadow .12s ease;
}
.social:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--line); }
.social--telegram { background: #2aa3df; }
.social--max { background: #6a4cf5; }
.social--youtube { background: #e62117; }
.social--rutube { background: #100943; }
.social--vk { background: #0077ff; }
.social--icon { padding: 8px; box-shadow: 2px 2px 0 var(--line); border-width: 2px; border-radius: 10px; }
.social--icon span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.socials--big .social { padding: 13px 20px; font-size: 17px; }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 28px; }
.hero__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 40px; }
  .hero__inner { grid-template-columns: 1.1fr .9fr; gap: 48px; }
}
.hero__title {
  font: 800 clamp(2.5rem, 8.5vw, 5rem)/1.08 var(--font-display);
  letter-spacing: -.035em;
  margin: 0 0 20px;
}
.hero__lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; margin: 0 0 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stat { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.hero__stat b { font: 800 18px var(--font-display); color: var(--text); }

.hero__art { position: relative; display: block; max-width: 460px; width: 86%; margin: 10px auto 24px; text-decoration: none; }
.hero__art img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 3px solid var(--line); border-radius: 18px; background: #fff; }
.hero__front { position: relative; z-index: 1; transform: rotate(2deg); box-shadow: var(--shadow-lg); transition: transform .25s ease; }
.hero__back { position: absolute; inset: 0; transform: rotate(-6deg) translate(-16px, 8px); box-shadow: var(--shadow); opacity: .95; }
.hero__art:hover .hero__front { transform: rotate(0deg) scale(1.01); }
.hero__bubble {
  position: absolute;
  z-index: 2;
  right: -8px;
  bottom: -18px;
  max-width: 78%;
  background: var(--card);
  color: var(--ink);
  border: var(--border);
  border-radius: 22px;
  padding: 10px 16px 11px;
  font: 800 16px/1.15 var(--font-display);
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
}
.hero__bubble small { display: block; font: 600 14px/1.3 var(--font); color: var(--muted); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero__bubble::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 26px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-left: var(--border);
  border-top: var(--border);
  transform: skewX(-25deg) rotate(20deg);
}

/* ---------- Continue reading ---------- */
.continue { margin-top: 8px; }
.continue__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: var(--teal-soft);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  max-width: 640px;
}
.continue__card img { width: 64px; height: 64px; border-radius: 10px; border: 2px solid var(--line); object-fit: cover; background: #fff; flex: none; }
.continue__card > span:nth-child(2) { min-width: 0; flex: 1; }
.continue__card small { display: block; color: var(--teal-ink); font-weight: 700; font-size: 13px; }
.continue__card b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; flex: none; }
@media (max-width: 420px) { .continue__go { font-size: 0; } .continue__go .icon { font-size: 18px; } }

/* ---------- Sections ---------- */
.section { padding-top: 28px; padding-bottom: 28px; }
@media (min-width: 720px) { .section { padding-top: 36px; padding-bottom: 36px; } }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section__title { font: 700 clamp(1.3rem, 3.4vw, 1.75rem)/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 18px; }
.section__head .section__title { margin: 0; }
.section__title small { display: block; font: 600 14px var(--font); color: var(--muted); letter-spacing: 0; margin-top: 6px; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--teal-ink); text-decoration: none; }
.link-more:hover { text-decoration: underline; }

.page { padding-top: 32px; padding-bottom: 24px; }
.page__head { margin-bottom: 24px; max-width: 760px; }
.page__title { font: 800 clamp(2rem, 6vw, 3.2rem)/1.08 var(--font-display); letter-spacing: -.03em; margin: 0 0 12px; overflow-wrap: anywhere; }
.page__title--md { font-size: clamp(1.6rem, 4.6vw, 2.4rem); }
.page__lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.empty { padding: 32px 0; color: var(--muted); }
.empty .btn { margin-top: 12px; }

.crumbs { margin: 0 0 10px; font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--teal-ink); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs a + a::before { content: "/"; color: var(--muted); margin-right: 6px; }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin: 8px 0 24px; }

/* ---------- Search ---------- */
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 0 14px;
  background: var(--card);
  border: var(--border);
  border-radius: 14px;
  box-shadow: 3px 3px 0 var(--line);
}
.search .icon { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: 16px var(--font); color: var(--text); padding: 13px 0; outline: none; }

/* ---------- Comic tiles ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 22px; } }
@media (max-width: 380px) { .grid { gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
  min-width: 0;
}
.tile:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.tile__media { position: relative; display: block; aspect-ratio: 1; background: var(--soft); border-bottom: var(--border); }
.tile__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile__read {
  position: absolute;
  left: 8px;
  top: 8px;
  display: none;
  font: 700 12px/1 var(--font);
  background: var(--teal);
  color: #10282a;
  border: 2px solid #1b1712;
  border-radius: 999px;
  padding: 4px 8px;
}
.tile.is-read .tile__read { display: block; }
.tile.is-read .tile__media img { opacity: .78; }
.tile__body { display: block; padding: 10px 12px 13px; min-width: 0; }
.tile__num { display: block; font: 700 12px/1.2 var(--font); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 4px; }
.tile__title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- Seasons ---------- */
.seasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.season-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform .15s ease;
}
.season-card:nth-child(3n+1) { background: var(--teal-soft); }
.season-card:nth-child(3n+2) { background: var(--pink-soft); }
.season-card:nth-child(3n) { background: var(--tan-soft); }
.season-card:hover { transform: translate(-2px, -2px); }
.season-card b { font: 700 18px/1.2 var(--font-display); }
.season-card span { color: var(--muted); font-size: 14px; font-weight: 600; }

/* ---------- Subscribe ---------- */
.subscribe {
  display: grid;
  gap: 20px;
  align-items: center;
  padding: 26px 22px;
  background: var(--sky);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
@media (min-width: 820px) { .subscribe { grid-template-columns: 1fr auto; padding: 34px 40px; } }
.subscribe .section__title { margin-bottom: 8px; }
.subscribe p { margin: 0; color: var(--muted); }

/* ---------- Reader ---------- */
.reader-head { max-width: 768px; padding-top: 28px; padding-bottom: 18px; }
.reader-head__title { font: 800 clamp(1.7rem, 5.4vw, 2.6rem)/1.12 var(--font-display); letter-spacing: -.03em; margin: 0 0 12px; overflow-wrap: anywhere; }
.reader-head__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 15px; font-weight: 600; }

.reader { max-width: 720px; margin: 0 auto; padding: 0 16px; display: grid; gap: 16px; }
@media (max-width: 560px) { .reader { padding: 0 10px; gap: 12px; } }
.reader__panel { margin: 0; }
.reader__panel img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
  border: 3px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 560px) { .reader__panel img { border-width: 2px; border-radius: 10px; box-shadow: 3px 3px 0 var(--line); } }

.reader-after { max-width: 768px; padding-top: 26px; padding-bottom: 32px; }
.reader-after__text { margin-bottom: 20px; }
.share { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.voice { margin: 8px 0 32px; }

.episode-nav { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .episode-nav { grid-template-columns: 1fr 1.4fr; } }
.episode-nav__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 16px 18px;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  min-width: 0;
  transition: transform .15s ease;
}
.episode-nav__item:hover { transform: translate(-2px, -2px); }
.episode-nav__item small { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; font-size: 14px; }
.episode-nav__item b { overflow-wrap: anywhere; }
.episode-nav__item--next { flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; background: var(--yellow); color: #1b1712; }
.episode-nav__item--next small { color: #4a3f2f; }
.episode-nav__item--next img { width: 72px; height: 72px; border-radius: 10px; border: 2px solid #1b1712; object-fit: cover; flex: none; background: #fff; }
.episode-nav__item--next span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.episode-nav__item--next b { font: 700 18px/1.25 var(--font-display); }
.episode-nav__end { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: var(--sky); border: var(--border); border-radius: var(--radius); }
.episode-nav__end > span { color: var(--muted); }
.reader-hint { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
@media (hover: none) { .reader-hint { display: none; } }

.reader-bar { display: none; }
@media (max-width: 720px) {
  body.is-reader { padding-bottom: 76px; }
  .reader-bar {
    position: fixed;
    z-index: 25;
    left: 10px;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    display: flex;
    align-items: stretch;
    gap: 8px;
    padding: 6px;
    background: var(--card);
    border: var(--border);
    border-radius: 18px;
    box-shadow: var(--shadow);
    transition: transform .25s ease;
  }
  .reader-bar.is-hidden { transform: translateY(calc(100% + 24px)); }
  .reader-bar__btn, .reader-bar__mid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 44px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
  }
  .reader-bar__btn { width: 52px; flex: none; background: var(--yellow); color: #1b1712; border: 2px solid #1b1712; }
  .reader-bar__btn .icon { width: 22px; height: 22px; }
  .reader-bar__btn[aria-disabled="true"] { opacity: .3; pointer-events: none; background: var(--soft); }
  .reader-bar__mid { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
}

/* ---------- Prose ---------- */
.prose { max-width: 680px; }
.prose--wide { max-width: 760px; }
.prose p { margin: 0 0 1em; }
.prose a { color: var(--teal-ink); }
.prose > :last-child { margin-bottom: 0; }

/* ---------- Video ---------- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (max-width: 380px) { .vgrid { grid-template-columns: 1fr; } }
.vcard {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.vcard:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.vcard__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--teal-soft), var(--pink-soft)); border-bottom: var(--border); }
.vcard__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.vcard__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #1b1712;
  border: 2.5px solid #1b1712;
  border-radius: 50%;
  box-shadow: 3px 3px 0 #1b1712;
}
.vcard__play .icon { width: 24px; height: 24px; margin-left: 3px; }
.vcard__body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; }
.vcard__title { font-weight: 700; line-height: 1.3; }
.vcard__meta { display: flex; flex-wrap: wrap; gap: 6px; }

.player { max-width: 960px; }
.player--vertical { max-width: 400px; }
.player--square { max-width: 640px; }
.player__screen {
  position: relative;
  width: 100%;
  background: #0d0b09;
  border: 3px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.player__cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.player__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player__play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 84px;
  height: 84px;
  margin: -42px 0 0 -42px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: #1b1712;
  border: 3px solid #1b1712;
  border-radius: 50%;
  box-shadow: 4px 4px 0 #1b1712;
  cursor: pointer;
  transition: transform .15s ease;
}
.player__play:hover { transform: scale(1.06); }
.player__play .icon { width: 36px; height: 36px; margin-left: 5px; }
.player__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.player__hint { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.player__hint a { color: var(--teal-ink); }

.video-page__after { max-width: 760px; margin-top: 26px; display: grid; gap: 22px; }
.comic-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px 10px 10px;
  background: var(--yellow);
  color: #1b1712;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.comic-links { display: grid; gap: 14px; }
.comic-links .section__title { margin: 0 0 4px; }
.comic-link img { width: 72px; height: 72px; border-radius: 10px; border: 2px solid #1b1712; object-fit: cover; flex: none; background: #fff; }
.comic-link span { flex: 1; min-width: 0; }
.comic-link small { display: block; font-weight: 700; color: #4a3f2f; font-size: 13px; }
.comic-link b { display: block; overflow-wrap: anywhere; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 32px 0 8px; }
.pager__item {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  font-weight: 700;
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 10px;
}
.pager__item.is-active { background: var(--ink); color: var(--paper); }
.pager__item.is-disabled { opacity: .35; }

/* ---------- About ---------- */
.people { display: grid; gap: 22px; margin-bottom: 36px; }
@media (min-width: 820px) { .people { grid-template-columns: 1fr 1.2fr; align-items: start; } }
.person {
  position: relative;
  padding: 24px 22px;
  background: var(--card);
  border: var(--border);
  border-radius: 22px;
  box-shadow: var(--shadow-lg);
}
.person--accent { background: var(--pink-soft); }
.person p { margin: 0 0 12px; }
.person__photo { float: right; width: 96px; height: 96px; margin: 0 0 12px 16px; border-radius: 50%; border: var(--border); object-fit: cover; background: #fff; }
.person__role { display: inline-block; font: 700 12px/1 var(--font); text-transform: uppercase; letter-spacing: .08em; padding: 6px 10px; background: var(--ink); color: var(--paper); border-radius: 999px; margin-bottom: 14px; }
.person__name { font: 800 clamp(1.5rem, 4vw, 2rem)/1.15 var(--font-display); letter-spacing: -.02em; margin: 0 0 4px; }
.person__sub { color: var(--muted); font-weight: 600; }
.facts { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 10px; clear: both; }
.facts li { padding: 12px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; font-weight: 600; line-height: 1.4; }
.about-text { font-size: 18px; margin-bottom: 28px; }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.stats a { padding: 14px 18px; background: var(--card); border: var(--border); border-radius: 14px; box-shadow: var(--shadow); text-decoration: none; font-weight: 600; }
.stats b { font: 800 22px var(--font-display); margin-right: 4px; }

/* ---------- Error ---------- */
.error-page { text-align: center; padding-top: 72px; padding-bottom: 72px; }
.error-page .hero__actions { justify-content: center; }
.bubble-big {
  position: relative;
  display: inline-block;
  font: 800 clamp(1.5rem, 5vw, 2.4rem)/1.2 var(--font-display);
  padding: 22px 30px;
  background: var(--card);
  border: 3px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
}
.bubble-big::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 30%;
  width: 24px;
  height: 24px;
  background: var(--card);
  border-right: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  transform: skewY(35deg) rotate(15deg);
}

/* ---------- Footer ---------- */
.footer { margin-top: 32px; border-top: var(--border); background: var(--card); }
.footer__inner { display: grid; gap: 26px; padding-top: 34px; padding-bottom: 24px; }
@media (min-width: 860px) { .footer__inner { grid-template-columns: 1.4fr .6fr 1.2fr; } }
.footer__brand p { margin: 16px 0 0; color: var(--muted); font-size: 15px; }
.footer__nav { display: flex; flex-direction: column; gap: 8px; font-weight: 700; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--teal-ink); }
.footer__label { margin: 0 0 12px; font-weight: 700; }
.footer__bottom { padding-top: 16px; padding-bottom: 24px; color: var(--muted); font-size: 13px; border-top: 1px dashed color-mix(in srgb, var(--line) 30%, transparent); }
body.is-reader .footer { margin-top: 0; }

/* ---------- Cookie ---------- */
.cookie {
  position: fixed;
  z-index: 40;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--card);
  border: var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow);
  font-size: 14px;
}
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }
body.is-reader .cookie { bottom: calc(86px + env(safe-area-inset-bottom)); }

.toast {
  position: fixed;
  z-index: 50;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
