
:root {
  color-scheme: dark;
  --bg: #101014;
  --surface: #18181e;
  --surface-2: #202027;
  --surface-3: #292931;
  --text: #f7f5f2;
  --muted: #9a99a4;
  --faint: #696873;
  --accent: #ff685f;
  --accent-2: #ff8b72;
  --line: rgba(255,255,255,.075);
  --good: #83d8a5;
  --telegram-bg: var(--tg-theme-bg-color, #101014);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body { margin: 0; min-height: 100dvh; background: var(--bg); color: var(--text); }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.app-shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; position: relative; background: var(--bg); overflow: clip; }
.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; position: sticky; top: 0; z-index: 10; background: rgba(16,16,20,.91); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(255,255,255,.035); }
.brand { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; text-align: left; cursor: pointer; }
.brand-mark { width: 31px; height: 31px; border: 1.5px solid var(--accent); border-radius: 11px 11px 11px 4px; position: relative; transform: rotate(-6deg); display: flex; justify-content: center; align-items: center; gap: 2px; }
.brand-mark i { display: block; height: 13px; width: 2px; border-radius: 2px; background: var(--accent); transform: rotate(17deg); }
.brand-mark i:nth-child(2) { height: 18px; }
.brand-copy { display: grid; gap: 0; line-height: 1.05; }
.brand-copy b { font-size: 14px; letter-spacing: .17em; font-weight: 800; }
.brand-copy small { color: var(--muted); font-size: 9px; letter-spacing: .035em; margin-top: 4px; }
.top-actions { display: flex; align-items: center; gap: 12px; }
.icon-button, .profile-button { border: 0; display: grid; place-items: center; cursor: pointer; }
.icon-button { width: 38px; height: 38px; border-radius: 50%; background: transparent; color: #d6d4d9; }
.icon-button svg { width: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.profile-button { width: 34px; height: 34px; border-radius: 12px; color: #251917; background: linear-gradient(145deg,#ffd6bc,#ff917d); font-size: 13px; font-weight: 800; }
.view-host { padding: 0 0 calc(94px + var(--safe-bottom)); min-height: calc(100dvh - 66px); }
.bottom-nav { position: fixed; z-index: 15; width: min(100%, 520px); bottom: 0; left: 50%; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4,1fr); padding: 9px 12px calc(8px + var(--safe-bottom)); background: rgba(20,20,25,.94); border-top: 1px solid var(--line); backdrop-filter: blur(20px); }
.nav-item { background: none; border: 0; padding: 4px 2px 2px; display: grid; justify-items: center; gap: 4px; color: var(--faint); font-size: 10px; font-weight: 600; cursor: pointer; }
.nav-item svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.active { color: var(--accent); }
.section { padding: 19px 20px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 0 0 13px; }
.section-head h2 { margin: 0; font-size: 18px; letter-spacing: -.035em; line-height: 1.2; }
.section-head .subheading { color: var(--muted); font-size: 11px; margin-top: 4px; }
.text-button { padding: 0; border: 0; color: var(--accent); background: none; font-size: 11px; font-weight: 700; cursor: pointer; }
.eyebrow { font-size: 10px; color: var(--accent-2); text-transform: uppercase; font-weight: 800; letter-spacing: .16em; }

/* Hero */
.hero { min-height: 270px; position: relative; display: flex; align-items: end; overflow: hidden; margin: 12px 14px 0; border-radius: 22px; isolation: isolate; background: #392c3a; }
.hero-art { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: linear-gradient(120deg,#52415b 0%,#171c31 52%,#d16357 120%); }
.hero-image { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.58; }
.hero-art::before { content:""; position:absolute; width:260px; height:260px; right:-44px; top:-63px; border-radius:50%; background:radial-gradient(circle at 38% 35%,#ffdbad 0 3%,#f49a7f 4% 8%,#7a526c 9% 24%,#222238 25% 45%,#181924 46%); box-shadow: 0 0 80px 35px rgba(255,145,111,.16); }
.hero-art::after { content:""; position:absolute; inset:30% -5% -5%; background:linear-gradient(145deg,transparent 10%,rgba(18,19,31,.42) 40%,#12131a 82%); clip-path:polygon(0 55%,18% 15%,31% 58%,52% 3%,73% 58%,90% 25%,100% 66%,100% 100%,0 100%); }
.hero-orbit { position:absolute; width:380px; height:120px; border:1px solid rgba(255,221,192,.25); border-radius:50%; right:-68px; top:46px; transform:rotate(-26deg); }
.hero-person { position:absolute; right:25%; bottom:-5px; width:87px; height:166px; background:linear-gradient(100deg,#14141d,#292333 55%,#100f18); clip-path:polygon(37% 0,63% 3%,75% 15%,69% 28%,83% 42%,100% 91%,77% 100%,60% 63%,60% 100%,16% 100%,27% 58%,0 93%,0 69%,26% 36%,22% 17%); filter:drop-shadow(0 0 12px rgba(0,0,0,.5)); }
.hero-copy { z-index: 1; width: 100%; padding: 22px 20px 18px; background:linear-gradient(0deg,rgba(11,12,18,.97),rgba(11,12,18,.72) 60%,transparent); }
.hero-kicker { display:flex; align-items:center; gap:7px; font-size:10px; color:#ffc2a4; font-weight:700; letter-spacing:.05em; }
.live-dot { width:6px; height:6px; background:var(--accent); border-radius:50%; box-shadow:0 0 12px var(--accent); }
.hero h1 { font-size:27px; line-height:1.08; letter-spacing:-.05em; margin:9px 0 7px; max-width:290px; }
.hero p { max-width:290px; color:#c3c0c6; font-size:11px; line-height:1.55; margin:0 0 14px; }
.hero-meta { display:flex; gap:7px; align-items:center; flex-wrap:wrap; }
.hero-meta .tag { background:rgba(255,255,255,.12); color:#eee9e8; }
.hero-actions { display:flex; gap:8px; margin-top:14px; }
.primary-button, .secondary-button { min-height:39px; border:0; padding:0 14px; border-radius:12px; display:inline-flex; gap:8px; justify-content:center; align-items:center; font-weight:800; font-size:11px; cursor:pointer; }
.primary-button { color:#251513; background:linear-gradient(110deg,#ffab84,#ff695f); box-shadow:0 6px 24px rgba(255,104,95,.18); }
.secondary-button { color:#f3f0f0; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.08); }
.primary-button svg,.secondary-button svg { width:15px; height:15px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* Cards */
.horizontal-scroll { display:flex; gap:12px; overflow-x:auto; margin:0 -20px; padding:0 20px 7px; scrollbar-width:none; scroll-snap-type:x proximity; }
.horizontal-scroll::-webkit-scrollbar { display:none; }
.title-card { min-width:122px; width:122px; scroll-snap-align:start; cursor:pointer; }
.cover { position:relative; aspect-ratio: .72; width:100%; overflow:hidden; border-radius:14px; background:#3a3040; isolation:isolate; box-shadow:0 8px 22px rgba(0,0,0,.22); }
.cover::before { content:""; position:absolute; inset:0; z-index:-1; background:var(--cover-bg,linear-gradient(145deg,#72617c,#22243d 55%,#191821)); }
.cover::after { content:""; position:absolute; inset:38% 0 0; z-index:-1; background:linear-gradient(0deg,rgba(9,9,14,.87),transparent); }
.cover-shape { position:absolute; width:58%; height:75%; left:22%; bottom:-9%; border-radius:47% 47% 12% 12%; background:linear-gradient(120deg,rgba(12,13,21,.18),rgba(12,13,21,.93)); clip-path:polygon(33% 0,66% 0,80% 18%,100% 43%,88% 57%,78% 38%,81% 100%,18% 100%,22% 38%,12% 58%,0 43%,20% 17%); }
.cover-orb { position:absolute; width:68%; aspect-ratio:1; border-radius:50%; top:9%; left:17%; background:radial-gradient(circle at 38% 35%,#fff4d5,#ffc58b 25%,#ec7969 53%,rgba(132,58,87,.1) 71%); box-shadow:0 0 35px rgba(255,166,116,.26); }
.cover-title { position:absolute; left:10px; right:8px; bottom:11px; color:#fff7ef; font-weight:800; font-size:13px; line-height:1.12; letter-spacing:-.035em; text-shadow:0 2px 8px rgba(0,0,0,.55); }
.cover-kana { position:absolute; top:10px; left:10px; color:rgba(255,255,255,.85); font-size:9px; letter-spacing:.2em; writing-mode:vertical-rl; font-weight:700; }
.cover-ribbon { position:absolute; top:9px; right:8px; border-radius:6px; padding:4px 6px; background:rgba(14,14,18,.48); backdrop-filter:blur(8px); color:#fff; font-size:8px; font-weight:800; }
.cover-spark { position:absolute; right:20%; top:27%; color:rgba(255,238,210,.78); font-size:22px; text-shadow:0 0 15px #ffc48b; }
.cover::before { z-index:-2; }
.cover::after { z-index:0; }
.cover-image { position:absolute; z-index:-1; inset:0; width:100%; height:100%; object-fit:cover; }
.cover > span,.cover > b { position:relative; z-index:1; }
.cover.tone-1 { --cover-bg:linear-gradient(145deg,#524766,#22273b 54%,#bb685e); }
.cover.tone-2 { --cover-bg:linear-gradient(145deg,#8e473e,#352538 53%,#171925); }
.cover.tone-2 .cover-orb { background:radial-gradient(circle at 40% 35%,#f3e2ce,#c99083 27%,#5a404c 60%,rgba(24,22,34,.3) 72%); }
.cover.tone-3 { --cover-bg:linear-gradient(145deg,#315b64,#253a4c 55%,#ad805b); }
.cover.tone-3 .cover-orb { background:radial-gradient(circle at 40% 36%,#e3f0d6,#96c5a2 27%,#49797d 59%,rgba(24,22,34,.2) 73%); }
.cover.tone-4 { --cover-bg:linear-gradient(145deg,#81595b,#332e47 58%,#252239); }
.cover.tone-4 .cover-orb { background:radial-gradient(circle at 40% 35%,#fff2ce,#f4ad87 25%,#a6647d 59%,rgba(24,22,34,.2) 73%); }
.cover.tone-5 { --cover-bg:linear-gradient(145deg,#4c647d,#253244 56%,#38364d); }
.cover.tone-5 .cover-orb { background:radial-gradient(circle at 40% 35%,#e0edfa,#84afc6 26%,#4e648f 59%,rgba(24,22,34,.2) 73%); }
.cover.tone-6 { --cover-bg:linear-gradient(145deg,#8c624b,#453345 54%,#171926); }
.cover.tone-6 .cover-orb { background:radial-gradient(circle at 40% 35%,#ffe7ba,#f5b365 25%,#cf6d4f 58%,rgba(24,22,34,.2) 73%); }
.card-title { margin:8px 0 4px; font-size:11px; line-height:1.35; font-weight:700; display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden; min-height:30px; }
.card-meta { display:flex; align-items:center; gap:5px; color:var(--muted); font-size:9px; line-height:1.2; }
.rating { color:#ffc879; font-weight:800; }
.rating::before { content:"★"; margin-right:3px; }
.tag-row { display:flex; gap:6px; flex-wrap:wrap; }
.tag { display:inline-flex; align-items:center; background:var(--surface-3); color:#c4c1c9; padding:5px 8px; border-radius:7px; font-size:9px; line-height:1; white-space:nowrap; font-weight:600; }
.tag.accent { color:#ffb7a2; background:rgba(255,104,95,.12); }
.tag.green { color:#9be4b3; background:rgba(102,208,145,.1); }
.update-row { display:grid; grid-template-columns:48px minmax(0,1fr) auto; gap:11px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); cursor:pointer; }
.mini-cover { width:48px; aspect-ratio:.72; border-radius:8px; overflow:hidden; position:relative; background:var(--cover-bg,linear-gradient(145deg,#5c526a,#1a1b25)); }
.mini-cover::after { content:""; position:absolute; width:60%; height:70%; left:20%; bottom:-10%; border-radius:50% 50% 0 0; background:rgba(15,15,22,.72); }
.mini-cover img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.update-title { font-size:11px; font-weight:700; line-height:1.32; }
.update-chapter { font-size:9px; color:var(--accent-2); margin-top:4px; font-weight:700; }
.update-time { color:var(--faint); font-size:9px; white-space:nowrap; align-self:start; padding-top:3px; }
.pill-tabs { display:flex; gap:7px; overflow:auto; scrollbar-width:none; padding-bottom:3px; }
.pill-tabs::-webkit-scrollbar { display:none; }
.pill-tab { border:1px solid var(--line); background:var(--surface); color:var(--muted); border-radius:10px; padding:8px 12px; font-size:10px; font-weight:700; white-space:nowrap; cursor:pointer; }
.pill-tab.active { border-color:rgba(255,104,95,.42); background:rgba(255,104,95,.12); color:#ffb7a2; }
.genre-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.genre-tile { min-height:70px; border:1px solid var(--line); border-radius:13px; padding:10px; display:flex; flex-direction:column; justify-content:space-between; background:linear-gradient(140deg,rgba(255,255,255,.055),rgba(255,255,255,.012)); text-align:left; cursor:pointer; }
.genre-tile b { font-size:11px; }
.genre-tile span { font-size:9px; color:var(--muted); }
.genre-tile:nth-child(2n) { background:linear-gradient(140deg,rgba(255,104,95,.13),rgba(255,255,255,.012)); }

/* Generic subviews */
.page-heading { padding:18px 20px 14px; }
.page-heading .eyebrow { margin-bottom:8px; display:block; }
.page-heading h1 { margin:0; font-size:26px; letter-spacing:-.05em; }
.page-heading p { margin:6px 0 0; color:var(--muted); font-size:11px; line-height:1.5; }
.search-box { margin:0 20px 13px; display:flex; align-items:center; gap:9px; padding:0 13px; height:44px; background:var(--surface); border:1px solid var(--line); border-radius:13px; }
.search-box svg { flex:none; width:18px; fill:none; stroke:var(--muted); stroke-width:1.8; }
.search-box input { width:100%; min-width:0; background:none; color:var(--text); border:0; outline:0; font-size:12px; }
.search-box input::placeholder { color:#777680; }
.filter-section { padding:0 20px 15px; }
.filter-title { margin:0 0 8px; color:var(--muted); font-size:10px; font-weight:700; }
.catalog-grid { padding:0 20px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px 10px; }
.catalog-grid .title-card { width:100%; min-width:0; }
.catalog-grid .card-title { font-size:10px; }
.empty-state { margin:14px 20px; padding:26px 18px; border:1px dashed rgba(255,255,255,.14); border-radius:16px; text-align:center; color:var(--muted); font-size:11px; line-height:1.55; }
.empty-state b { display:block; color:var(--text); font-size:13px; margin-bottom:5px; }
.profile-card { margin:0 20px; padding:16px; display:flex; align-items:center; gap:12px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(135deg,rgba(255,104,95,.1),rgba(255,255,255,.025)); }
.profile-avatar { width:46px;height:46px;border-radius:15px;display:grid;place-items:center;background:linear-gradient(135deg,#ffd2b5,#ff7b6d);color:#271a1c;font-weight:900; }
.profile-card b { font-size:13px; }
.profile-card small { display:block;color:var(--muted);font-size:10px;margin-top:4px; }

/* Title details */
.detail-hero { position:relative; padding:20px 20px 17px; display:grid; grid-template-columns:112px minmax(0,1fr); gap:15px; align-items:end; background:linear-gradient(180deg,#29232c,#17171c 85%); }
.detail-cover .cover { width:112px; border-radius:14px; }
.detail-copy h1 { font-size:21px; line-height:1.08; letter-spacing:-.05em; margin:0 0 7px; }
.detail-copy .alt-title { color:#b3b0b9; font-size:9px; line-height:1.4; margin-bottom:8px; }
.detail-stats { display:flex; gap:8px; flex-wrap:wrap; font-size:9px; color:var(--muted); }
.detail-stats span { display:inline-flex; align-items:center; gap:4px; }
.detail-stats .rating { color:#ffc879; }
.detail-actions { display:flex; gap:7px; margin-top:11px; flex-wrap:wrap; }
.detail-actions button { min-height:34px; padding:0 9px; border-radius:10px; font-size:9px; }
.detail-section { padding:16px 20px 0; }
.detail-section h3 { font-size:13px; margin:0 0 9px; letter-spacing:-.02em; }
.description { font-size:11px; color:#c8c5cc; line-height:1.65; margin:0; }
.metadata-grid { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.metadata-cell { padding:10px 11px; background:var(--surface); border:1px solid var(--line); border-radius:11px; }
.metadata-cell small { display:block; color:var(--muted); font-size:9px; margin-bottom:5px; }
.metadata-cell b { font-size:10px; }
.chapter-tools { display:flex; gap:8px; margin-bottom:8px; }
.chapter-tools .search-box { flex:1; margin:0; height:37px; }
.chapter-list { border-top:1px solid var(--line); }
.chapter-row { width:100%; border:0; border-bottom:1px solid var(--line); padding:11px 0; display:flex; justify-content:space-between; gap:10px; align-items:center; text-align:left; background:none; cursor:pointer; }
.chapter-row b { font-size:10px; }
.chapter-row small { display:block; color:var(--muted); font-size:9px; margin-top:4px; }
.chapter-row .chapter-arrow { color:var(--faint); font-size:16px; }
.comment-form { display:flex; gap:8px; align-items:flex-end; }
.comment-form textarea { resize:vertical; min-height:39px; max-height:90px; flex:1; border:1px solid var(--line); color:var(--text); background:var(--surface); border-radius:11px; padding:10px; font-size:10px; }
.comment-form button { height:39px; width:41px; display:grid; place-items:center; border:0; border-radius:11px; color:#261513; background:var(--accent); cursor:pointer; }
.comment-form svg { width:16px; fill:none; stroke:currentColor; stroke-width:2; }
.comment { display:grid; grid-template-columns:27px 1fr; gap:8px; padding:12px 0; border-bottom:1px solid var(--line); }
.comment-avatar { width:27px;height:27px;display:grid;place-items:center;border-radius:9px;background:#39313e;color:#f8b7a0;font-size:9px;font-weight:800; }
.comment b { font-size:9px; }
.comment time { color:var(--faint); font-size:8px; margin-left:6px; }
.comment p { font-size:10px; color:#c4c1c9; line-height:1.5; margin:4px 0 0; }

/* Reader */
body.reading { background:#0b0b0d; }
.reading .app-shell { width:100%; max-width:none; background:#0b0b0d; }
.reading .topbar,.reading .bottom-nav { display:none; }
.reader-toolbar { position:sticky; top:0; z-index:8; padding:calc(8px + env(safe-area-inset-top,0px)) 14px 10px; background:rgba(15,15,18,.96); border-bottom:1px solid var(--line); display:grid; grid-template-columns:38px minmax(0,1fr) 38px; align-items:center; gap:8px; }
.reader-tool { width:36px;height:36px;display:grid;place-items:center;border:1px solid var(--line);border-radius:11px;background:var(--surface);cursor:pointer; }
.reader-tool svg { width:17px; fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round; }
.reader-title { min-width:0; text-align:center; }
.reader-title b { display:block; overflow:hidden; white-space:nowrap;text-overflow:ellipsis;font-size:10px; }
.reader-title small { display:block;color:var(--muted);font-size:9px;margin-top:3px; }
.reader-page-wrap { max-width:600px; margin:0 auto; padding:12px 9px 18px; }
.reader-image { display:block; width:min(100%,560px); height:auto; margin:0 auto 4px; background:#151519; }
.reader-image.image-failed { min-height:90px; object-fit:contain; background:#26232b; }
.loading-state { margin:16px 20px; min-height:120px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:12px; color:var(--muted); font-size:11px; text-align:center; }
.spinner { width:24px; height:24px; border:2px solid rgba(255,255,255,.15); border-top-color:var(--accent); border-radius:50%; animation:yomi-spin .8s linear infinite; }
@keyframes yomi-spin { to { transform:rotate(360deg); } }
.load-more-wrap { display:flex; justify-content:center; padding:18px 20px 8px; }
.demo-page { width:min(100%,500px); min-height:660px; margin:0 auto 10px; background:#efeee9; color:#17171a; padding:11px; display:grid; grid-template-rows:1.1fr .72fr 1fr; gap:8px; box-shadow:0 10px 35px rgba(0,0,0,.3); }
.manga-panel { position:relative; overflow:hidden; border:2px solid #19191b; background:linear-gradient(145deg,#d2d1d2,#a9a8af); }
.manga-panel.scene-a { background:radial-gradient(ellipse at 71% 24%,#f3d6a3 0 7%,transparent 7.5%),linear-gradient(164deg,#a8acba 0 38%,#6b6b7c 39% 55%,#3c3d4a 56% 100%); }
.manga-panel.scene-b { background:linear-gradient(160deg,#eff0ed 0 44%,#b9c1c1 45% 49%,#3e4852 50% 100%); }
.manga-panel.scene-c { background:radial-gradient(circle at 74% 28%,#ddd0a9 0 9%,transparent 9.5%),linear-gradient(170deg,#333848 0 28%,#64747e 29% 55%,#222531 56% 100%); }
.manga-panel.scene-d { background:linear-gradient(135deg,#d5d5d2,#8e929a 48%,#454853 49%); }
.manga-person { position:absolute; bottom:-7%; left:43%; width:22%; height:70%; border-radius:48% 48% 8% 8%; background:linear-gradient(90deg,#1e2029,#3b3d48 52%,#13151c); clip-path:polygon(34% 0,67% 0,80% 16%,100% 40%,83% 54%,72% 37%,79% 100%,17% 100%,25% 37%,15% 55%,0 41%,21% 16%); }
.manga-person.second { left:68%; height:52%; width:17%; background:linear-gradient(90deg,#252631,#55515a 55%,#191a23); }
.manga-bubble { position:absolute; top:10%; left:7%; max-width:48%; padding:8px 10px; border:1.5px solid #26262a; border-radius:55% 48% 45% 52%; background:#f3f0e9; font-size:9px; line-height:1.3; color:#17171a; text-align:center; transform:rotate(-3deg); }
.manga-caption { position:absolute; left:9px; right:9px; bottom:8px; color:#f5f1ea; text-shadow:0 1px 4px #15151a; font-size:9px; line-height:1.35; font-weight:700; }
.reader-footer { position:sticky; bottom:0; z-index:7; padding:9px 14px calc(9px + var(--safe-bottom)); background:rgba(15,15,18,.96); border-top:1px solid var(--line); }
.reader-progress { width:100%; height:3px; appearance:none; border-radius:3px; background:#3a3941; display:block; margin:0 0 10px; accent-color:var(--accent); }
.reader-footer-controls { display:flex; justify-content:space-between; align-items:center; }
.reader-footer-controls button { border:0; background:none; color:#e8e5e9; padding:5px; font-size:10px; font-weight:700; cursor:pointer; }
.reader-footer-controls .reader-next { color:var(--accent); }
.reader-mode-note { font-size:8px;color:var(--faint);text-align:center;padding:3px 0 8px; }

.toast { position:fixed; z-index:30; left:50%; bottom:calc(82px + var(--safe-bottom)); transform:translate(-50%,12px); opacity:0; pointer-events:none; background:#f6efea;color:#1b1718;padding:10px 14px;border-radius:12px;font-size:10px;font-weight:800;box-shadow:0 8px 30px rgba(0,0,0,.35);transition:.2s ease;white-space:nowrap; }
.toast.show { opacity:1; transform:translate(-50%,0); }
.reading .toast { bottom:calc(82px + var(--safe-bottom)); }
.skeleton-note { margin:0 20px; color:var(--faint); font-size:9px; line-height:1.5; }

@media (min-width: 600px) {
  body { background:#0b0b0d; }
  .app-shell { border-left:1px solid rgba(255,255,255,.035); border-right:1px solid rgba(255,255,255,.035); }
  .hero { min-height:315px; }
  .hero h1 { font-size:31px; }
  .catalog-grid { grid-template-columns:repeat(4,minmax(0,1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  button, .title-card { transition:transform .15s ease,background-color .15s ease,opacity .15s ease; }
  button:active,.title-card:active { transform:scale(.975); }
}
