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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #1a1a1a;
  background: #fff;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 96px;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

header { margin-bottom: 56px; }
h1.site-title { font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.site-sub { display: block; font-size: 12px; color: #bbb; margin-top: 3px; }
.site-sub:hover { color: #888; text-decoration: none; }

/* Index */
.post-list { list-style: none; }
.post-list li { display: flex; align-items: baseline; gap: 20px; padding: 14px 0; border-bottom: 1px solid #f0f0f0; }
.post-list li:first-child { border-top: 1px solid #f0f0f0; }
.post-date { font-size: 13px; color: #999; white-space: nowrap; min-width: 90px; }
.post-title { font-size: 16px; color: #1a1a1a; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-title:hover { text-decoration: underline; }

/* Article */
article header { margin-bottom: 40px; }
article h1 { font-size: 24px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.article-date { font-size: 13px; color: #999; }
.article-body { line-height: 1.8; }
.article-body p { margin: 1em 0; }
.article-body h2, .article-body h3 { font-size: 18px; font-weight: 600; margin: 2em 0 .75em; }
.article-body ul, .article-body ol { margin: 1em 0 1em 1.5em; }
.article-body li { margin: .4em 0; }
.article-body blockquote { border-left: 3px solid #e0e0e0; padding-left: 16px; color: #666; margin: 1.5em 0; }
.article-body img { max-width: 100%; height: auto; display: block; margin: 1.5em 0; border-radius: 4px; }
.article-body video { max-width: 100%; height: auto; display: block; margin: 1.5em 0; border-radius: 4px; }
.article-body audio { width: 100%; display: block; margin: 1.5em 0; }
.article-body .video-embed { position: relative; width: 100%; padding-bottom: 56.25%; margin: 1.5em 0; }
.article-body .video-embed iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 6px; }
.article-body a { color: #2563eb; text-decoration: underline; }
.article-body a:hover { color: #1d4ed8; }
.article-body strong, .article-body b { font-weight: 600; }
.article-body em, .article-body i { font-style: italic; }
.post-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; }
.back { font-size: 14px; color: #999; }
.back:hover { color: #1a1a1a; text-decoration: none; }
.next-link { font-size: 14px; color: #999; white-space: nowrap; }
.next-link:hover { color: #1a1a1a; text-decoration: none; }

/* Fixed top-right icon bar (shared on every page) */
.topbar { position: fixed; top: 26px; right: 26px; z-index: 100;
  display: flex; align-items: center; gap: 20px; }
.topbar .tb-lang { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.tb-lang a { cursor: pointer; color: #bbb; }
.tb-lang a.on { color: #1a1a1a; font-weight: 600; }
.tb-lang a:hover { color: #777; text-decoration: none; }
.tb-lang i { color: #e0e0e0; font-style: normal; }
.topbar .tb-icon { display: flex; align-items: center; color: #ccc; cursor: pointer; transition: color .2s; }
.topbar .tb-icon:hover { color: #999; }
.topbar .tb-icon.on { color: #1a1a1a; }
.topbar .tb-dot { width: 9px; height: 9px; border-radius: 50%; background: #ccc; cursor: pointer; transition: background .2s; }
.topbar .tb-dot:hover { background: #999; }
.tb-pop { display: none; position: absolute; top: 30px; right: 0;
  background: #fff; border: 1px solid #e8e8e8; border-radius: 6px; padding: 14px;
  box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.tb-pop.open { display: block; }
.sub-label { font-size: 12px; color: #999; margin-bottom: 10px; letter-spacing: .03em; }
#subForm { display: flex; flex-direction: column; gap: 8px; }
#subEmail { font-size: 14px; border: 1px solid #e0e0e0; border-radius: 4px;
  padding: 7px 10px; outline: none; color: #1a1a1a; width: 100%; }
#subEmail:focus { border-color: #aaa; }
#subForm button { font-size: 13px; background: #1a1a1a; color: #fff; border: none;
  border-radius: 4px; padding: 7px 10px; cursor: pointer; transition: background .15s; }
#subForm button:hover { background: #333; }
#subForm button:disabled { background: #ccc; cursor: default; }
.sub-msg { font-size: 13px; margin-top: 8px; }
.sub-msg.ok { color: #4a9; }
.sub-msg.err { color: #c55; }

#searchInput { width:100%; box-sizing:border-box; font-size:14px; border:1px solid #e0e0e0;
  border-radius:4px; padding:7px 10px; outline:none; color:#1a1a1a; }
#searchInput:focus { border-color:#aaa; }
.search-results { list-style:none; margin:8px 0 0; padding:0; max-height:300px; overflow:auto; }
.search-results li { padding:6px 2px; border-bottom:1px solid #f3f3f3; }
.search-results li:last-child { border-bottom:none; }
.search-results a { font-size:14px; color:#1a1a1a; display:block; text-decoration:none; }
.search-results a:hover { color:#2563eb; }
.search-empty { font-size:13px; color:#bbb; padding:6px 2px; }
.search-hit .search-kind { display:inline-block; font-size:11px; color:#b45309; background:#fff3e6; border-radius:4px; padding:1px 6px; margin-right:7px; vertical-align:1px; }
.search-hit a:hover .search-kind { color:#b45309; }
.search-label { font-size:11px; color:#bbb; padding:9px 2px 3px; border-bottom:none; }

/* Pagination */
.pager { display: flex; justify-content: center; gap: 28px; margin-top: 48px; }
.pager-btn { font-size: 20px; line-height: 1; color: #bbb; background: none; border: none;
  cursor: pointer; padding: 6px 14px; border-radius: 6px; transition: color .2s, background .2s; }
.pager-btn:hover:not(:disabled) { color: #1a1a1a; background: #f5f5f5; }
.pager-btn:disabled { color: #e5e5e5; cursor: default; }

/* Title hover preview (full title + first image) */
#titlePreview { position: fixed; z-index: 300; pointer-events: none; background: #fff;
  border: 1px solid #e8e8e8; border-radius: 8px; box-shadow: 0 6px 24px rgba(0,0,0,.12);
  padding: 8px; max-width: 240px; }
#titlePreview img { display: block; max-width: 224px; max-height: 150px; width: auto; height: auto;
  border-radius: 4px; margin-bottom: 6px; }
#titlePreview #tpTitle { font-size: 13px; color: #1a1a1a; line-height: 1.45; }

/* Tweet embed (fallback look before/without widgets.js) */
.article-body blockquote.twitter-tweet { border: 1px solid #e8e8e8; border-radius: 12px;
  padding: 16px 20px; margin: 1.5em auto; max-width: 500px; color: #1a1a1a; }
.article-body .twitter-tweet-rendered { margin-left: auto !important; margin-right: auto !important; }
.article-body blockquote.twitter-tweet a { word-break: break-all; }

/* Related / You might also like */
.related { margin-top: 64px; padding-top: 8px; }
.related h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.related ul { list-style: none; }
.related li { border-top: 1px solid #eee; }
.related li:last-child { border-bottom: 1px solid #eee; }
.related a { display: flex; align-items: center; gap: 18px; padding: 18px 4px; color: #1a1a1a; }
.related a:hover { text-decoration: none; }
.related a:hover .rel-title { text-decoration: underline; }
.rel-date { font-size: 13px; color: #999; white-space: nowrap; min-width: 90px; }
.rel-title { font-size: 18px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel-read { font-size: 14px; color: #aaa; white-space: nowrap; }

/* Clickable hashtags in article title */
.tag-link { color: #2563eb; text-decoration: none; }
.tag-link:hover { text-decoration: underline; }

/* Tag filter bar on index */
#filterBar { font-size: 15px; color: #999; margin: -24px 0 28px; }
#filterBar .filter-tag { color: #2563eb; font-weight: 600; }
#filterBar a { color: #999; }
#filterBar a:hover { color: #1a1a1a; }


/* Topics / projects chips on the article page */
.post-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.topic-chip { font-size: 13px; color: #2563eb; border: 1px solid #dbe4ff; background: #f5f8ff; border-radius: 999px; padding: 3px 12px; }
.topic-chip:hover { background: #2563eb; color: #fff; border-color: #2563eb; text-decoration: none; }
.media-chip { display: inline-flex; align-items: center; gap: 5px; color: #b45309; border-color: #f0dcc0; background: #fff8f0; }
.media-chip:hover { background: #b45309; color: #fff; border-color: #b45309; }
.media-chip svg { flex: none; }

/* Projects index */
.pj-list { list-style: none; }
.pj-row { display: flex; align-items: center; gap: 18px; padding: 18px 4px; border-top: 1px solid #eee; color: #1a1a1a; }
.pj-list li:last-child .pj-row { border-bottom: 1px solid #eee; }
.pj-row:hover { text-decoration: none; }
.pj-main { flex: 1; min-width: 0; }
.pj-name { font-size: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pj-row:hover .pj-name { text-decoration: underline; }
.pj-intro { font-size: 14px; color: #666; line-height: 1.55; margin-top: 4px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pj-meta { font-size: 12px; color: #aaa; margin-top: 6px; }
.pj-side { flex: none; width: 130px; text-align: right; }
.pj-px { font-size: 16px; font-weight: 600; white-space: nowrap; }
.pj-px .ch-pct { font-size: 13px; font-weight: 600; }
.pj-spark { width: 130px; height: 40px; margin-left: auto; margin-top: 4px; }
.pj-thumb { width: 130px; height: 64px; object-fit: cover; border-radius: 6px; display: block; margin-left: auto; }
@media (max-width: 560px) { .pj-spark, .pj-thumb { display: none; } .pj-side { width: auto; } }

.pj-logo { width: 34px; height: 34px; object-fit: contain; flex: none; }

/* Project detail */
.pj-detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.pj-detail-head img { width: 46px; height: 46px; object-fit: contain; flex: none; }
.pj-detail-head h1 { font-size: 26px; font-weight: 700; }
.pj-detail-intro { font-size: 16px; color: #444; line-height: 1.75; margin: 8px 0 24px; }
.pj-dataref { margin: 28px 0 8px; }
.pj-dataref h2 { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.pj-dataref p { font-size: 15px; color: #555; line-height: 1.7; }
.pj-dataref a { color: #2563eb; text-decoration: none; word-break: break-all; }
.pj-dataref a:hover { text-decoration: underline; }
.pj-chart { height: 460px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; margin-bottom: 32px; }
.subproj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.subproj-item { display: flex; align-items: center; gap: 12px; border: 1px solid #eee; border-radius: 10px; padding: 12px 14px; color: #1a1a1a; }
.subproj-item:hover { text-decoration: none; border-color: #ddd; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.subproj-logo { width: 34px; height: 34px; flex: none; display: flex; align-items: center; justify-content: center; }
.subproj-logo img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.subproj-name { font-size: 15px; font-weight: 600; line-height: 1.25; }
.subproj-item:hover .subproj-name { text-decoration: underline; }
.subproj-org { font-size: 12px; color: #999; }
.logo-history { margin: 8px 0 32px; }
.logo-history h2 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
.lh-grid { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-end; }
.lh-item { text-align: center; }
.lh-item img { width: 64px; height: 64px; object-fit: contain; display: block; margin: 0 auto 7px; }
.lh-item span { font-size: 12px; color: #999; }

/* Markets / charts page */
.ch-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.ch-title { font-size: 24px; font-weight: 700; }
.ch-range button, .tk-range button { font-size: 13px; border: 1px solid #e0e0e0; background: #fafafa; color: #555;
  border-radius: 5px; padding: 5px 12px; cursor: pointer; margin-left: 6px; }
.ch-range button.active, .tk-range button.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.ch-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px){ .ch-grid { grid-template-columns: 1fr; } }
.ch-card { display: block; border: 1px solid #eee; border-radius: 10px; padding: 16px; color: #1a1a1a; }
.ch-card:hover { text-decoration: none; border-color: #ddd; box-shadow: 0 4px 16px rgba(0,0,0,.05); }
.ch-card-top { display: flex; align-items: baseline; gap: 8px; }
.ch-refresh { margin: -6px -8px -6px auto; color: #bbb; cursor: pointer; font-size: 17px; line-height: 1; padding: 6px 9px; border-radius: 6px; }
.ch-refresh:hover { color: #555; background: #f0f0f0; }
.ch-refresh:active { background: #e6e6e6; }
.ch-refresh.spinning { display: inline-block; color: #999; animation: chSpin .8s linear infinite; }
.ch-sym { font-size: 16px; font-weight: 700; }
.ch-name { font-size: 13px; color: #999; }
.ch-price { font-size: 20px; font-weight: 600; margin: 6px 0 10px; }
.ch-pct { font-size: 14px; font-weight: 600; }
.ch-pct.up { color: #16a34a; }
.ch-pct.down { color: #dc2626; }
.ch-spark { height: 90px; }
@keyframes chSpin { to { transform: rotate(360deg); } }
.spin { width: 18px; height: 18px; border: 2px solid #eee; border-top-color: #bbb; border-radius: 50%; animation: chSpin .8s linear infinite; }
.ch-spark .spin { margin: 36px auto; }
.ch-price .spin { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.ch-note { font-size: 12px; color: #bbb; margin-top: 24px; text-align: center; }

/* Token detail page */
.tk-head { margin-bottom: 20px; }
.tk-top { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tk-sym { font-size: 28px; font-weight: 700; }
.tk-name { font-size: 15px; color: #999; }
.tk-price { font-size: 22px; font-weight: 600; margin-left: auto; }
.tk-range { margin: 16px 0; }
.tk-range button { margin-left: 0; margin-right: 6px; }
.tk-chart { height: 460px; border: 1px solid #eee; border-radius: 10px; overflow: hidden; }
.tk-rel-h { font-size: 20px; font-weight: 700; margin: 40px 0 4px; }

/* Admin token manager */
.tk-admin { margin-top: 56px; padding-top: 24px; border-top: 1px solid #eee; }
.tk-admin-h { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tk-admin-hint { font-size: 12px; color: #999; margin-bottom: 14px; line-height: 1.5; }
.tk-list { list-style: none; margin-bottom: 14px; }
.tk-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #f3f3f3; font-size: 14px; }
.tk-li-sym { font-weight: 700; min-width: 54px; }
.tk-li-id { color: #888; min-width: 130px; }
.tk-li-name { flex: 1; color: #555; }
.tk-li-del { color: #c55; cursor: pointer; font-size: 13px; }
.tk-li-del:hover { text-decoration: underline; }
.tk-add { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tk-add input { font-size: 13px; border: 1px solid #e0e0e0; border-radius: 5px; padding: 7px 9px; outline: none; flex: 1; min-width: 120px; }
.tk-add button { font-size: 13px; background: #1a1a1a; color: #fff; border: none; border-radius: 5px; padding: 7px 16px; cursor: pointer; }
.tk-save-row { display: flex; align-items: center; gap: 12px; }
.tk-save { font-size: 14px; background: #1a1a1a; color: #fff; border: none; border-radius: 5px; padding: 9px 20px; cursor: pointer; }

/* Live markets indicators */
.live-dot { display:inline-block; width:7px; height:7px; border-radius:50%; background:#16a34a;
  margin-right:6px; vertical-align:middle; animation: livePulse 1.6s ease-in-out infinite; }
@keyframes livePulse { 0%,100%{opacity:1;} 50%{opacity:.25;} }
.ch-price.flash-up { animation: flashUp 0.7s ease-out; }
.ch-price.flash-down { animation: flashDown 0.7s ease-out; }
@keyframes flashUp { 0%{background:rgba(22,163,74,.18);} 100%{background:transparent;} }
@keyframes flashDown { 0%{background:rgba(220,38,38,.18);} 100%{background:transparent;} }

/* ── project social links (right-aligned, hover-zoom) ── */
.pj-nameline { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pj-nameline .pj-name { min-width: 0; flex: 0 1 auto; }
.pj-social { display: inline-flex; align-items: center; gap: 13px; flex: none; margin-left: auto; padding-left: 16px; }
.soc-btn { display: inline-flex; align-items: center; color: #1a1a1a; opacity: 0.7; transition: transform .15s ease, opacity .15s ease; transform-origin: center; }
.soc-btn:hover { opacity: 1; transform: scale(1.5); text-decoration: none; }
.soc-btn svg { width: 15px; height: 15px; display: block; }
.pj-row { cursor: pointer; }
.pj-detail-head .pj-social { gap: 15px; }
.pj-detail-head .soc-btn svg { width: 17px; height: 17px; }

/* project detail: representative image (shown when there's no price chart) */
.pj-rep { text-align: center; margin: 4px 0 20px; }
.pj-rep img { display: inline-block; width: auto; max-width: 100%; max-height: 240px; border-radius: 10px; }

/* projects index: Selected / Archived tabs */
.pj-tab { font-size: 24px; font-weight: 700; color: #cdcdcd; cursor: pointer; line-height: 1.2; }
.pj-tab:hover { color: #888; text-decoration: none; }
.pj-tab.on { color: #1a1a1a; cursor: default; }
.pj-tab.on:hover { color: #1a1a1a; }
@media (max-width: 560px) { .pj-tab { font-size: 19px; } }

/* ── Books & Movies (media.html) ── */
.media-h1 { font-size: 30px; font-weight: 700; margin: 6px 0 2px; }
.media-sec { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 34px 0 14px; }
.media-carousel { position: relative; }
.media-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 24px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -ms-overflow-style: none; padding: 4px 0 8px; }
.media-track::-webkit-scrollbar { display: none; }
.media-track .media-tile { scroll-snap-align: start; }
.mc-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 68px; border: none; border-radius: 10px; background: rgba(255,255,255,.35); color: rgba(0,0,0,.4); font-size: 36px; line-height: 1; cursor: pointer; padding: 0; transition: background .2s, color .2s, opacity .2s; }
.mc-arrow:hover { background: rgba(255,255,255,.8); color: #1a1a1a; }
.mc-left { left: -10px; }
.mc-right { right: -10px; }
.mc-arrow.off { opacity: 0; pointer-events: none; }
.media-tile { cursor: pointer; }
.media-poster { border-radius: 8px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.12); background: #f4f4f4; aspect-ratio: 2 / 3; transition: transform .25s, box-shadow .25s; }
.media-poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.media-tile:hover .media-poster { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(0,0,0,.2); }
.media-title { font-size: 14px; font-weight: 600; margin-top: 10px; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-issuer { font-size: 12px; color: #888; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media-date { font-size: 12px; color: #b5b5b5; margin-top: 2px; font-variant-numeric: tabular-nums; }

/* law entries without a poster: a rendered “document card” */
.law-doc { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: #fbf9f5; border: 1px solid #ece5d8; padding: 14px; text-align: center; }
.law-glyph { font-size: 40px; color: #b45309; font-family: Georgia, "Times New Roman", serif; line-height: 1; }
.law-name { font-size: 13px; font-weight: 600; color: #444; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.law-date { font-size: 11px; color: #b3a58e; font-variant-numeric: tabular-nums; }
.law-doc-big { width: 100%; height: 100%; min-height: 360px; aspect-ratio: auto; border: none; }
.law-doc-big .law-glyph { font-size: 64px; }
.law-doc-big .law-name { font-size: 15px; }
.book-src { margin-top: 16px; }
.book-src a { font-size: 14px; color: #2563eb; text-decoration: none; }
.book-src a:hover { text-decoration: underline; }

/* book-open overlay */
.book-overlay { position: fixed; inset: 0; background: rgba(20,18,16,.72); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 28px; }
.book-spread { position: relative; display: flex; align-items: stretch; perspective: 2400px; width: 100%; max-width: 660px; }
.book-cover { flex: 0 0 auto; width: 240px; max-width: 44%; border-radius: 6px 2px 2px 6px; overflow: hidden; box-shadow: 0 22px 50px rgba(0,0,0,.55); position: relative; z-index: 2; }
.book-cover img { width: 100%; display: block; }
.book-cover::after { content: ""; position: absolute; top: 0; right: 0; width: 22px; height: 100%; background: linear-gradient(to right, rgba(0,0,0,0), rgba(0,0,0,.28)); }
.book-page { flex: 1 1 auto; min-width: 0; background: #fbf9f5; border-radius: 2px 8px 8px 2px; box-shadow: 0 22px 50px rgba(0,0,0,.4); transform-origin: left center; transform: rotateY(-96deg); opacity: 0; transition: transform .8s cubic-bezier(.2,.7,.2,1), opacity .5s ease; }
.book-spread.open .book-page { transform: rotateY(0deg); opacity: 1; }
.book-page-inner { padding: 28px 28px 30px; max-height: 74vh; overflow: auto; }
.book-page-inner h3 { font-size: 22px; font-weight: 700; line-height: 1.3; }
.book-meta { color: #999; font-size: 13px; margin: 5px 0 16px; }
.book-intro { font-size: 15px; color: #333; line-height: 1.75; }
.book-intro p { margin: 0; }
.book-related-wrap { margin-top: 22px; border-top: 1px solid #ece8e0; padding-top: 12px; }
.book-related-h { font-size: 12px; color: #999; font-weight: 600; letter-spacing: .02em; margin-bottom: 4px; }
.book-related { list-style: none; }
.book-related li { border-top: 1px solid #f0ece4; }
.book-related li:first-child { border-top: none; }
.book-related a { display: flex; gap: 12px; align-items: baseline; padding: 9px 2px; color: #1a1a1a; }
.book-related a:hover .rel-title { text-decoration: underline; }
.book-related .rel-date { color: #bbb; font-size: 12px; flex: none; font-variant-numeric: tabular-nums; }
.book-related .rel-title { font-size: 14px; }
.book-close { position: absolute; top: -16px; right: -16px; width: 34px; height: 34px; border-radius: 50%; border: none; background: #fff; color: #333; font-size: 20px; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); z-index: 5; }
.book-close:hover { background: #f2f2f2; }
@media (max-width: 640px) {
  .book-cover { width: 40%; }
  .book-page-inner { padding: 18px; max-height: 68vh; }
  .media-track { gap: 18px 14px; grid-auto-columns: calc((100% - 28px) / 3); }
  .mc-arrow { width: 32px; height: 52px; font-size: 28px; }
}
