/* Schizoid Relics — circa-2010 video site skin: white page, 960px column, Arial, blue links, gradient buttons. */

:root {
  --bg: #fff;
  --ink: #000;
  --ink-2: #333;
  --muted: #666;
  --faint: #999;
  --link: #0033cc;
  --line: #ccc;
  --line-soft: #e2e2e2;
  --panel: #f3f3f3;
  --red: #c00;
  --note: #fffce0;
  --note-line: #e6db55;
  --sans: Arial, Helvetica, sans-serif;
  --bar: linear-gradient(#fafafa, #e6e6e6);
}

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font: 13px/1.4 var(--sans);
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-family: var(--sans); font-weight: bold; line-height: 1.2; }
p { margin: 0; }
img, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #4d90fe; outline-offset: 1px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 4px; z-index: 20; padding: 4px 10px; background: #ff9; border: 1px solid #cc0; color: #000; }
.skip:focus { left: 4px; }

.mark { width: 1.300em; height: 1.300em; flex: none; color: var(--red); }

/* ------------------------------------------------------------ header */

.top { border-bottom: 1px solid var(--line); background: #fff; }
.top-inner {
  max-width: 970px;
  margin: 0 auto;
  padding: 10px 5px 9px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font: bold 23px/1 "Arial Narrow", Arial, sans-serif;
  letter-spacing: -0.500px;
  color: #000;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--red); }

.sections { display: flex; gap: 12px; font-size: 13px; font-weight: bold; }
.sections a { padding: 2px 0; }
.sections a.is-on { color: #000; }

.search { flex: 1; max-width: 420px; margin: 0 auto; display: flex; }
.search input {
  flex: 1;
  min-width: 0;
  height: 27px;
  padding: 2px 6px;
  border: 1px solid #999;
  border-right: 0;
  border-top-color: #777;
  background: #fff;
  box-shadow: inset 0 1px 2px #ddd;
  font-size: 14px;
  outline: 0;
}
.search input:focus { border-color: #4d90fe; }
.search button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 27px;
  border: 1px solid #999;
  background: var(--bar);
  color: #444;
  cursor: pointer;
}
.search button:hover { background: linear-gradient(#fff, #dcdcdc); }
.search svg { width: 15px; height: 15px; }

.account { display: flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 12px; }
.account form { margin: 0; }
.who { font-weight: bold; }

/* ------------------------------------------------------------ buttons */

.btn {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid #b6b6b6;
  border-bottom-color: #999;
  border-radius: 3px;
  background: var(--bar);
  color: #000;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  text-shadow: 0 1px 0 #fff;
}
.btn:hover { background: linear-gradient(#fff, #dcdcdc); border-color: #999; text-decoration: none; }
.btn:active { background: #ddd; }
.btn-lg { padding: 6px 14px; font-size: 13px; }
.btn-primary { background: linear-gradient(#fff9c1, #f8d94c); border-color: #d6b13a; border-bottom-color: #b9952a; }
.btn-primary:hover { background: linear-gradient(#fffbd4, #f5cf2c); border-color: #b9952a; }
.btn-danger { color: var(--red); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.link-btn { padding: 0; background: none; border: 0; color: var(--link); font-size: 11px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }

/* ------------------------------------------------------------ shared */

.wrap { width: 100%; max-width: 970px; margin: 0 auto; padding: 14px 5px 40px; flex: 1; }

.eyebrow { font-size: 11px; font-weight: bold; color: var(--muted); text-transform: uppercase; margin-bottom: 4px; }
.file-no { display: block; font-size: 11px; color: var(--faint); }
.stamp { display: inline-block; font-size: 11px; font-weight: bold; color: var(--red); text-transform: uppercase; margin-bottom: 4px; }
.meta { font-size: 11px; color: var(--muted); }
.lede { font-size: 13px; color: var(--ink-2); max-width: 70ch; }

.alert { margin: 0 0 12px; padding: 7px 10px; background: #fff0f0; border: 1px solid #e8a0a0; color: #900; font-weight: bold; }

/* ------------------------------------------------------------ home banner */

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: var(--note);
  border: 1px solid var(--note-line);
}
.hero h1 { font-size: 19px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero .lede { margin-top: 5px; font-size: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.tally { margin: 0; min-width: 170px; font-size: 11px; }
.tally div { display: flex; justify-content: space-between; gap: 16px; padding: 2px 0; border-bottom: 1px dotted #d6cc66; }
.tally div:last-child { border-bottom: 0; }
.tally dt { color: var(--muted); }
.tally dd { margin: 0; font-weight: bold; }

/* ------------------------------------------------------------ featured */

.feature {
  display: grid;
  grid-template-columns: 400px minmax(0, 1fr);
  gap: 14px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  background: #fff;
}
.feature h2 { font-size: 17px; margin: 3px 0 6px; overflow-wrap: anywhere; }
.feature-desc { color: var(--ink-2); font-size: 12px; margin-bottom: 8px; overflow-wrap: anywhere; }

/* ------------------------------------------------------------ category bar + module heads */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.chip { padding: 5px 9px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; }
.chip.is-on { color: #000; font-weight: bold; background: #fff; border-color: var(--line); border-radius: 3px 3px 0 0; }
.chip.is-on:hover { text-decoration: none; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 5px 9px;
  margin-bottom: 12px;
  background: var(--bar);
  border: 1px solid var(--line);
}
.section-head h2 { font-size: 14px; overflow-wrap: anywhere; }
.sort { display: flex; gap: 10px; font-size: 11px; }
.sort a.is-on { color: #000; font-weight: bold; }

/* ------------------------------------------------------------ cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px 14px; }
.more-status { margin-top: 14px; padding: 10px; text-align: center; }
.kind { display: inline-block; padding: 0 4px; border: 1px solid #bbb; background: #f1f1f1; color: #444; font-size: 10px; text-transform: uppercase; letter-spacing: .03em; }
.kind-doc { border-color: #c9b458; background: #fff8cc; }

.thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid #666;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
a:hover .thumb { border-color: var(--link); }
.thumb-blank { position: absolute; inset: 0; display: grid; place-items: center; font-size: 26px; background: #222; }
.dur {
  position: absolute;
  right: 2px;
  bottom: 2px;
  padding: 0 3px;
  background: #000;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  line-height: 14px;
  opacity: 0.85;
}

.card-link { display: block; }
.card-link:hover { text-decoration: none; }
.card .file-no { margin-top: 4px; font-size: 10px; }
.card h3 {
  margin: 1px 0 2px;
  font-size: 12px;
  line-height: 1.25;
  color: var(--link);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.card-link:hover h3 { text-decoration: underline; }

.paper {
  position: absolute;
  inset: 0;
  padding: 7px 9px;
  background: #fffef2;
  color: #333;
  font: 9px/1.4 Georgia, "Times New Roman", serif;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden;
}

.band { margin-top: 22px; }

.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 21px; margin-bottom: 3px; }

.tabs { display: flex; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 5px 14px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; font-weight: bold; }
.tabs a.is-on { color: #000; background: #fff; border-color: var(--line); border-radius: 3px 3px 0 0; }
.form-note { margin: -4px 0 10px; }

/* ------------------------------------------------------------ empty + pager */

.empty { display: grid; justify-items: center; gap: 6px; padding: 36px 16px; border: 1px solid var(--line-soft); background: #fafafa; text-align: center; color: var(--ink-2); }
/* Empty and error pages are fronted by the mascot in her tuxedo, in place of the logo mark. */
.empty .mark { display: none; }
.empty::before { content: ''; display: block; width: 104px; height: 144px; background: url(chibi-full.png?v=2) center / contain no-repeat; }
.empty-page::before { width: 160px; height: 222px; }
.empty h3, .empty h1 { font-size: 16px; }
.empty .btn { margin-top: 6px; }
.empty-page { margin-top: 30px; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 20px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.pager > :first-child { justify-self: start; }
.pager > :last-child { justify-self: end; }
.pager-pos { font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------ watch */

.watch { display: grid; grid-template-columns: 640px minmax(0, 1fr); gap: 20px; align-items: start; }
.watch-main { min-width: 0; }
.watch-title { font-size: 19px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.player { background: #000; margin-bottom: 8px; }
.player video { width: 100%; aspect-ratio: 16 / 9; max-height: 80vh; background: #000; }
.watch-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 9px;
  background: var(--bar);
  border: 1px solid var(--line);
}
.watch-bar .meta { font-size: 12px; color: var(--ink-2); }
.watch-bar .meta a { font-weight: bold; }
.watch-bar form { margin: 0; }
.quality { font-size: 12px; color: var(--ink-2); margin: 0 0 8px; }
.quality a { margin-left: 6px; }
.quality a[aria-current] { font-weight: bold; color: inherit; text-decoration: none; cursor: default; }
.desc {
  padding: 9px;
  border: 1px solid var(--line);
  border-top: 0;
  background: var(--panel);
  font-size: 12px;
  color: var(--ink-2);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 420px;
  overflow-y: auto;
}

.comments { margin-top: 18px; }
.comments h2 { font-size: 13px; padding-bottom: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.comments ul { list-style: none; margin: 10px 0 0; padding: 0; }
.comment { padding: 7px 0; border-bottom: 1px solid var(--line-soft); }
.comment .meta a { font-weight: bold; font-size: 12px; }
.comment form { margin: 2px 0 0; }
.comment-body { margin-top: 2px; font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-none { color: var(--muted); border-bottom: 0; }
.comment:target > .comment-body, .comment.is-fresh > .comment-body { background: #fffbcc; }
.comment-tools { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 2px 12px; margin-top: 2px; font-size: 11px; }
.comment-tools form { margin: 0; }
.reply-box summary, .replies > summary { cursor: pointer; color: var(--link); list-style: none; }
.reply-box summary::-webkit-details-marker, .replies > summary::-webkit-details-marker { display: none; }
.reply-box summary:hover, .replies > summary:hover { text-decoration: underline; }
.reply-box[open] { flex: 1 1 100%; }
.reply-box[open] summary { color: var(--muted); }
.reply-box .comment-form { margin-top: 4px; }
.replies { margin: 6px 0 0 22px; padding-left: 10px; border-left: 2px solid var(--line); }
.replies > summary { font-size: 11px; font-weight: bold; }
.replies > summary::before { content: '▸ '; }
.replies[open] > summary::before { content: '▾ '; }
.replies .when-open, .replies[open] .when-closed { display: none; }
.replies[open] .when-open { display: inline; }
.comments .replies ul { margin: 2px 0 0; }
.comment-reply { padding: 5px 0; }
.comment-reply:last-child { border-bottom: 0; }
.bot-tag { display: inline-block; margin-left: 3px; padding: 0 4px; border: 1px solid #999; border-radius: 2px; background: #666; color: #fff; font: bold 9px/13px Arial, sans-serif; letter-spacing: .06em; vertical-align: 1px; }
h1 .bot-tag { font-size: 11px; line-height: 16px; vertical-align: 3px; }
.comment-form { display: grid; gap: 6px; justify-items: end; }
.comment-form textarea { width: 100%; }
.signin-note { padding: 7px 9px; background: var(--note); border: 1px solid var(--note-line); font-size: 12px; }

.watch-side { display: grid; gap: 8px; }
.watch-side h2 { font-size: 13px; padding: 5px 9px; background: var(--bar); border: 1px solid var(--line); }
.mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 7px; align-items: start; padding: 2px; }
.mini:hover { background: #eef3fb; text-decoration: none; }
.mini-copy { display: grid; gap: 1px; }
.mini .file-no { font-size: 10px; }
.mini strong { font-size: 12px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.mini:hover strong { text-decoration: underline; }

/* ------------------------------------------------------------ document */

.doc { max-width: 760px; }
.doc-body { margin-top: 12px; font-size: 14px; line-height: 1.6; color: #111; white-space: pre-wrap; overflow-wrap: anywhere; }
.desc a, .doc-body a { overflow-wrap: anywhere; }
.book { margin: 14px 0 18px; border: 1px solid var(--line); background: var(--panel); }
.book-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #e9e9e9; font-size: 12px; }
.book:not(.book-on) .book-bar { display: none; }
.book-count { min-width: 84px; text-align: center; }
.book-jump { display: flex; flex-wrap: wrap; gap: 2px; margin-left: 6px; }
.book-jump button { min-width: 22px; padding: 2px 4px; border: 1px solid #bbb; background: #fff; color: var(--link); font: inherit; cursor: pointer; }
.book-jump button:hover { border-color: var(--link); }
.book-jump button.is-current { background: #555; border-color: #555; color: #fff; font-weight: bold; }
.book-full { margin-left: auto; }
.book-pages { padding: 10px; background: #5a5a5a; }
.book figure { margin: 0 auto 10px; max-width: 760px; }
.book figure:last-child { margin-bottom: 0; }
.book img { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.book figcaption { margin-top: 4px; font-size: 11px; color: #ddd; text-align: center; }
.book-on figure { display: none; margin-bottom: 0; }
.book-on figure.is-current { display: block; }
.book-on figcaption { display: none; }
.book-on img { cursor: pointer; max-height: 88vh; width: auto; max-width: 100%; margin: 0 auto; }
.book-bar .btn:disabled { opacity: .45; cursor: default; }
/* Full size: the same reader, filling the window, with the page at its real width. */
.book-full-on { position: fixed; inset: 0; z-index: 1000; margin: 0; border: 0; display: flex; flex-direction: column; background: #3c3c3c; }
.book-full-on .book-bar { flex: none; }
.book-full-on .book-pages { flex: 1; overflow: auto; padding: 12px; background: #3c3c3c; }
.book-full-on figure { max-width: 1000px; }
.book-full-on img { max-height: none; width: 100%; }
html.book-lock { overflow: hidden; }

/* ------------------------------------------------------------ channel */

.channel { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px; margin-bottom: 14px; background: var(--panel); border: 1px solid var(--line); }
.channel > div { flex: 1; min-width: 180px; }
.channel h1 { font-size: 19px; overflow-wrap: anywhere; }
.channel .eyebrow { margin-bottom: 1px; }
.avatar { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #666; background: #fff; color: var(--red); font: bold 30px/1 var(--sans); }

/* ------------------------------------------------------------ forms */

.form-page { max-width: 640px; }
.form-page h1, .prose h1 { font-size: 21px; margin-bottom: 8px; }
.form-page .lede { margin-bottom: 12px; }
.form-narrow { max-width: 340px; margin: 16px auto 0; padding: 14px; border: 1px solid var(--line); background: #fafafa; }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 3px; }
.field label { font-size: 12px; font-weight: bold; }
.optional { font-weight: normal; color: var(--muted); margin-left: 4px; }
.hint, .fineprint { font-size: 11px; color: var(--muted); }
.switch { margin-top: 12px; font-size: 12px; }

input[type="text"], input[type="password"], select, textarea {
  width: 100%;
  padding: 4px 6px;
  background: #fff;
  border: 1px solid #999;
  border-top-color: #777;
  box-shadow: inset 0 1px 2px #e2e2e2;
}
textarea { resize: vertical; min-height: 60px; }
input[type="text"]:focus, input[type="password"]:focus, select:focus, textarea:focus { outline: 0; border-color: #4d90fe; }

.drop {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 24px 16px;
  border: 2px dashed #bbb;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
}
.drop:hover, .drop.is-over, .drop:focus-within { border-color: var(--link); background: #eef3fb; }
.drop.has-file { border-style: solid; border-color: #6a6; background: #f2fbf2; }
.drop svg { width: 28px; height: 28px; color: var(--muted); }
.drop strong { overflow-wrap: anywhere; }
.drop span { font-size: 11px; color: var(--muted); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }

.progress { display: grid; gap: 4px; }
.progress-track { height: 14px; border: 1px solid #999; background: #fff; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(#e64a4a, #b00); transition: width 0.200s linear; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------ prose */

.prose { max-width: 700px; }
.prose h2 { font-size: 15px; margin: 18px 0 6px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.prose p + p { margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 5px; }

/* ------------------------------------------------------------ footer */

.foot { border-top: 1px solid var(--line); background: var(--panel); }
.foot-inner { max-width: 970px; margin: 0 auto; padding: 12px 5px; display: flex; align-items: center; gap: 8px 20px; flex-wrap: wrap; font-size: 11px; color: var(--muted); }
.foot-brand { display: inline-flex; align-items: center; gap: 4px; font-weight: bold; color: #000; }
.foot p { flex: 1; min-width: 240px; }
.foot nav { display: flex; gap: 12px; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 980px) {
  .watch { grid-template-columns: minmax(0, 1fr); }
  .watch-side { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
  .watch-side h2 { grid-column: 1 / -1; }
  .feature { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 700px) {
  body { font-size: 14px; }
  .top-inner { flex-wrap: wrap; gap: 8px 12px; padding: 8px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .search input, .search button { height: 32px; }
  .account { margin-left: auto; }
  .who { display: none; }
  .wrap { padding: 10px 8px 32px; }
  .foot-inner { padding: 12px 8px; }
  .hero { flex-direction: column; align-items: stretch; gap: 10px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 10px; }
  .card h3 { font-size: 13px; }
  .btn { padding: 6px 12px; }
}

@media (max-width: 420px) {
  .account .opt-sm { display: none; }
}

.badge { padding: 1px 5px; background: var(--red); color: #fff; font-size: 10px; font-weight: bold; text-transform: uppercase; border-radius: 2px; }

/* ------------------------------------------------------------ 2010 front page, search and subscriptions */

.top-inner { gap: 14px; }
.search { max-width: 380px; margin: 0; }
.search button { width: auto; padding: 0 12px; font-size: 12px; font-weight: bold; color: #000; text-shadow: 0 1px 0 #fff; }
.sections { gap: 0; font-size: 12px; }
.sections a { padding: 2px 9px; border-left: 1px solid var(--line); }
.sections a:first-child { border-left: 0; }
.account { margin-left: auto; gap: 6px; }
.pipe { color: var(--line); }
.account .link-btn { font-size: 12px; }

.hero { align-items: center; }
.hero-actions { margin-top: 0; flex: none; }

.cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cols-main, .cols-side { min-width: 0; }

.module { margin-bottom: 16px; }
.module-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 9px; background: var(--bar); border: 1px solid var(--line); }
.module-head h2 { font-size: 13px; }
.module-more { font-size: 11px; }
.module-body { padding: 10px 0 0; }
.cols-side .module-body { padding: 8px; border: 1px solid var(--line); border-top: 0; }
.module-note { padding: 8px 10px; background: var(--note); border: 1px solid var(--note-line); font-size: 12px; }

.cols-main .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 12px; }
.card .meta { line-height: 1.35; }
.list-total { margin-top: 14px; }

.page-head { align-items: center; }
.page-head h1 { margin-bottom: 0; font-size: 19px; }
.page-head .sort { font-size: 12px; }
.query { font-style: normal; color: var(--red); }

.row { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
.row h3 { font-size: 14px; margin-bottom: 3px; overflow-wrap: anywhere; }
.row-desc { font-size: 12px; color: var(--ink-2); margin-bottom: 4px; overflow-wrap: anywhere; }

.channel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.channel-list li { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 7px; align-items: center; }
.channel-list-copy { display: grid; min-width: 0; }
.channel-list-copy a { font-weight: bold; overflow: hidden; text-overflow: ellipsis; }
.channel-list .btn { padding: 2px 7px; font-size: 11px; }
.avatar-sm { width: 32px; height: 32px; font-size: 16px; }

.sub-form { display: inline; margin: 0; }
.sub-count { margin-left: 6px; font-size: 11px; color: var(--muted); }

.watch-title { margin: 0 0 4px; }
.watch-owner { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.owner-name { font-weight: bold; font-size: 12px; }
.view-count { font-size: 12px; color: var(--muted); }
.view-count strong { font-size: 19px; color: #000; }
.owner-tools { margin: 8px 0 0; }
.watch-side h2 { margin-bottom: 2px; }
.mini .meta { display: block; }
.cols-side .mini { margin-bottom: 6px; grid-template-columns: 100px minmax(0, 1fr); }

.channel { justify-content: space-between; }
.channel-sub { display: flex; align-items: center; gap: 8px; flex: none !important; min-width: 0 !important; }
.doc .watch-bar { margin-bottom: 4px; }

@media (max-width: 860px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .cols-main .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
@media (max-width: 700px) {
  .sections { order: 2; }
  .search { order: 4; flex-basis: 100%; max-width: none; }
  .account { order: 3; }
  .row { grid-template-columns: 120px minmax(0, 1fr); }
}

/* ------------------------------------------------------------ search engine */

.search { position: relative; }
.suggestions { position: absolute; top: 100%; left: 0; right: 0; z-index: 30; margin: -1px 0 0; padding: 0; list-style: none; background: #fff; border: 1px solid #999; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); font-size: 13px; }
.suggestions li { padding: 3px 6px; cursor: default; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.suggestions li.is-on, .suggestions li:hover { background: #e4ecf9; }

.search-tools { display: flex; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; padding: 5px 9px; margin-bottom: 10px; background: var(--bar); border: 1px solid var(--line); }
.search-tools .sort { font-size: 12px; align-items: center; }
.search-note { padding: 6px 0 8px; font-size: 14px; }
.search-note a b { color: var(--red); }
.row h3 b, .row-desc b { background: #fff6a8; font-weight: bold; }
.row h3 a b { color: inherit; }
.kind { padding: 0 4px; border: 1px solid var(--line); background: var(--panel); color: var(--muted); font-size: 10px; font-weight: normal; text-transform: uppercase; vertical-align: middle; }
.tips { margin: 0; padding-left: 16px; display: grid; gap: 5px; font-size: 12px; color: var(--ink-2); }

/* ------------------------------------------------------------ likes, dislikes, reports */

.actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid var(--line); border-top: 0; background: #fff; }
.vote { display: inline-flex; gap: 4px; margin: 0; }
.actions .btn { display: inline-flex; align-items: center; gap: 4px; }
.actions .btn svg { width: 13px; height: 13px; color: #555; }
.btn.is-liked { background: linear-gradient(#e9f7e4, #c5e8b9); border-color: #7fb56e; }
.btn.is-liked svg { color: #090; }
.btn.is-disliked { background: linear-gradient(#fbe9e9, #f0c2c2); border-color: #cf8484; }
.btn.is-disliked svg { color: var(--red); }
.ratio { display: grid; gap: 3px; min-width: 150px; }
.ratio svg { display: block; width: 100%; height: 4px; }
.flag { margin-left: auto; font-weight: normal; }
.alerting { color: var(--red); font-weight: bold; }

.reasons { border: 1px solid var(--line); padding: 8px 10px; margin: 0; }
.reasons legend { padding: 0 4px; font-size: 12px; font-weight: bold; }
.reasons label { display: block; padding: 2px 0; font-weight: normal; font-size: 13px; }

.reports { width: 100%; border-collapse: collapse; font-size: 12px; }
.reports th { padding: 5px 8px; background: var(--bar); border: 1px solid var(--line); text-align: left; }
.reports td { padding: 8px; border: 1px solid var(--line-soft); vertical-align: top; overflow-wrap: anywhere; }
.report-details { margin-top: 4px; color: var(--ink-2); white-space: pre-wrap; }
.report-tools { white-space: nowrap; }
.report-tools form { display: inline-block; margin: 0 0 4px; }

.algo td, .algo th { padding: 4px 6px; white-space: nowrap; }
.algo td:nth-child(2) { white-space: normal; min-width: 220px; }
.cols-main .module .grid { row-gap: 14px; }

/* ------------------------------------------------------------ library bar, favorites, share, contact */

.subnav { background: var(--panel); border-bottom: 1px solid var(--line); font-size: 12px; }
.subnav-inner { max-width: 970px; margin: 0 auto; padding: 0 5px; display: flex; flex-wrap: wrap; }
.subnav a { padding: 5px 10px; border-right: 1px solid var(--line-soft); }
.subnav a:first-child { padding-left: 0; }
.subnav a.is-on { color: #000; font-weight: bold; }
.subnav-admin { margin-left: auto; display: flex; }
.subnav-admin a:last-child { border-right: 0; padding-right: 0; }

.btn.is-fav { background: linear-gradient(#fff9c1, #f8d94c); border-color: #d6b13a; }
.btn.is-fav svg { color: #b8860b; }

.share { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 7px 9px; border: 1px solid var(--line); border-top: 0; background: #fafafa; font-size: 12px; }
.share label { display: flex; align-items: center; gap: 6px; }
.share input { padding: 2px 5px; font-size: 12px; width: 230px; }
.share-links { display: inline-flex; gap: 10px; }
.share-embed { color: var(--muted); }
.share-embed input { width: 190px; }
.card form { margin: 2px 0 0; }
.row-copy form { margin: 3px 0 0; }
.takedown-note { margin-bottom: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-heading { font-size: 15px; margin: 20px 0 8px; padding-bottom: 3px; border-bottom: 1px solid var(--line); }
.form-note-ok { margin-bottom: 12px; background: #f2fbf2; border-color: #9c9; }

/* ------------------------------------------------------------ notifications bell, comment likes */

.bell { position: relative; }
.bell > summary { display: flex; align-items: center; position: relative; padding: 3px 5px; border: 1px solid transparent; border-radius: 3px; color: #555; cursor: pointer; list-style: none; }
.bell > summary::-webkit-details-marker { display: none; }
.bell > summary:hover, .bell[open] > summary { border-color: #b6b6b6; background: var(--bar); color: #000; }
.bell > summary svg { width: 17px; height: 17px; }
.bell-count { position: absolute; top: -5px; right: -6px; min-width: 15px; padding: 0 3px; border-radius: 8px; background: var(--red); color: #fff; font: bold 10px/15px Arial, sans-serif; text-align: center; }
.bell-panel { position: absolute; z-index: 60; top: calc(100% + 5px); right: 0; width: min(350px, 92vw); border: 1px solid #999; background: #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, .25); white-space: normal; }
.bell-panel h2 { margin: 0; padding: 6px 9px; border-bottom: 1px solid var(--line); background: var(--bar); font-size: 12px; }
.bell-panel .notes { max-height: min(420px, 70vh); overflow-y: auto; }
.bell-all { display: block; padding: 6px 9px; border-top: 1px solid var(--line); background: var(--panel); font-size: 11px; text-align: center; }
.notes { list-style: none; margin: 0; padding: 0; }
.notes-none { margin: 0; padding: 14px 9px; color: var(--muted); font-size: 12px; }
.note { border-bottom: 1px solid var(--line-soft); }
.note:last-child { border-bottom: 0; }
.note a { display: block; padding: 7px 9px; color: var(--ink); text-decoration: none; font-size: 12px; }
.note a:hover { background: #eef3ff; }
.note.is-new a { background: var(--note); border-left: 3px solid var(--red); padding-left: 6px; }
.note.is-new a:hover { background: #fff7b8; }
.note-line i { color: var(--link); font-style: normal; }
.note-quote { display: block; margin-top: 2px; color: var(--muted); overflow-wrap: anywhere; }
.note-when { display: block; margin-top: 2px; color: var(--faint); font-size: 11px; }
.notes-page { border: 1px solid var(--line); max-width: 700px; }

.clike .link-btn, .clike-off { display: inline-flex; align-items: center; gap: 3px; color: var(--muted); }
.clike svg, .clike-off svg { width: 11px; height: 11px; }
.clike .link-btn:hover, .clike-off:hover { color: var(--link); text-decoration: none; }
.clike .link-btn.is-liked { color: #090; font-weight: bold; }

.book-goto { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; }
.book-goto input { width: 62px; padding: 2px 4px; font: inherit; }

/* ------------------------------------------------------------ Chibi Bot: peeks up from the corner, says a line, fades */

.chibi-peek { position: fixed; z-index: 900; right: 12px; bottom: 8px; width: 96px; height: 96px; opacity: 0; transform: translateY(120%); pointer-events: none; transition: transform .7s cubic-bezier(.2, 1.3, .4, 1), opacity 1.1s ease; }
.chibi-peek.is-up { opacity: 1; transform: translateY(0); pointer-events: auto; }
.chibi-peek.is-calm { transition: opacity .6s ease; transform: none; }
.chibi-peek img { display: block; width: 96px; height: 96px; cursor: pointer; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 1.5px #fff) drop-shadow(0 2px 5px rgba(0, 0, 0, .45)); }
.chibi-says { position: absolute; right: 100px; bottom: 44px; width: max-content; max-width: min(250px, calc(100vw - 120px)); margin: 0; padding: 8px 10px; border: 1px solid #333; border-radius: 10px 10px 2px 10px; background: #fff; color: #111; font: 12px/1.4 Arial, sans-serif; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); cursor: pointer; }
.chibi-off { position: absolute; right: -6px; top: -8px; z-index: 1; width: 18px; height: 18px; padding: 0; border: 1px solid #666; border-radius: 50%; background: #fff; color: #444; font: bold 12px/14px Arial, sans-serif; cursor: pointer; }
.chibi-off:hover { background: #eee; color: #000; }
html.book-lock .chibi-peek { display: none; }
@media print { .chibi-peek { display: none; } }

.comment-held { margin: 2px 0; padding: 3px 6px; border: 1px solid var(--note-line); background: var(--note); color: #555; font-size: 11px; }

.hero-note { font-size: 12px; color: var(--ink-2); margin: 6px 0 0; }

/* Tablets and narrow windows: the header no longer fits on one line, so the search box takes its own row. */
@media (max-width: 920px) {
  .top-inner { flex-wrap: wrap; gap: 8px 12px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .account { margin-left: auto; }
}
