/* howtos.video public styles. Fonts are self-hosted in assets/fonts. */
/* Self-hosted fonts: no visitor data goes to Google Fonts. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('../fonts/bricolage-grotesque.woff2') format('woff2'); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Atkinson Hyperlegible'; src: url('../fonts/atkinson-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --paper: #F5F7FA;
  --surface: #FFFFFF;
  --ink: #14213D;
  --ink-2: #4A5672;
  --ink-3: #5B6680;       /* 5.6:1 on paper, passes WCAG AA */
  --line: #DCE1EA;
  --control-line: #69758C;
  --focus: #14213D;
  --on-teal: #FFFFFF;
  --mark: #FFC53D;       /* highlighter yellow, the one loud colour */
  --mark-soft: #FFF1C7;
  --teal: #0E7C7B;       /* links and success */
  --teal-soft: #DDF1EF;
  --shadow: 0 1px 2px rgba(20, 33, 61, .06), 0 8px 24px -12px rgba(20, 33, 61, .18);
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --wrap: 1180px;
  /* thumbnail placeholder hues per category */
  --c-tech: #2F5BEA;  --c-home: #C2410C;  --c-cook: #B45309;
  --c-garden: #15803D; --c-car: #475569; --c-craft: #BE185D;
  --c-app: #7C3AED;   --c-fit: #0E7C7B;  --c-art: #DB2777;
  --c-money: #1D4ED8; --c-pet: #A16207;  --c-out: #0F766E;
  --c-beauty: #9D174D; --c-school: #4338CA;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1526; --surface: #16203A; --ink: #EEF2F8; --ink-2: #B5BED1; --ink-3: #8590A8;
    --line: #26324F; --mark-soft: #3A3115; --teal: #4FD1C5; --teal-soft: #12302F;
    --control-line: #7181A3; --focus: #FFC53D; --on-teal: #14213D;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1526; --surface: #16203A; --ink: #EEF2F8; --ink-2: #B5BED1; --ink-3: #8590A8;
  --line: #26324F; --mark-soft: #3A3115; --teal: #4FD1C5; --teal-soft: #12302F;
  --control-line: #7181A3; --focus: #FFC53D; --on-teal: #14213D;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px -12px rgba(0,0,0,.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body);
}
a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 8px; padding: 10px 16px; background: var(--ink); color: var(--paper); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; text-decoration: none; flex: none; }
.logo img { display: block; height: 34px; width: auto; }
.logo .on-dark { display: none; }
:root[data-theme="dark"] .logo .on-light { display: none; }
:root[data-theme="dark"] .logo .on-dark { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo .on-light { display: none; } :root:not([data-theme="light"]) .logo .on-dark { display: block; } }
@media (max-width: 420px) { .top .logo img { height: 24px; } .top .wrap { padding: 0 12px; gap: 8px; } }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 15px; color: var(--ink-2); }
.byline a { color: var(--ink); font-weight: 700; text-decoration: none; }
.byline a:hover { text-decoration: underline; }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--mark); color: #14213D; display: grid; place-items: center; font: 800 15px/1 var(--display); flex: none; }
.av.big { width: 112px; height: 112px; font-size: 40px; }
.author-head { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; padding: 40px 0 10px; max-width: 860px; }
.author-head h1 { font-size: clamp(32px, 4.6vw, 50px); font-weight: 800; letter-spacing: -.02em; }
.author-head .role { color: var(--ink-2); font-size: 18px; margin: 6px 0 14px; }
.author-links { display: flex; flex-wrap: wrap; gap: 8px; }
.author-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 44px; margin-top: 18px; }
.author-body .box ul { margin: 0; padding-left: 18px; color: var(--ink-2); }
.author-body .box li { margin: 4px 0; }
.prose address { font-style: normal; color: var(--ink-2); line-height: 1.7; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 22px 0 8px; }
.contact-cards .box h2 { margin: 0 0 6px; font-size: 18px; }
.contact-cards .box p { margin: 0; font-size: 15px; }
.foot .about p { margin: 12px 0 0; }
.foot address { font-style: normal; margin-top: 10px; line-height: 1.6; }
@media (max-width: 760px) { .author-head { grid-template-columns: 1fr; gap: 16px; } .av.big { width: 84px; height: 84px; font-size: 30px; } .author-body { grid-template-columns: 1fr; } }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; padding: 8px 12px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 15px; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.top-search { display: none; }
.menu-btn { display: none; }
.icon-btn svg path { transition: transform .18s, opacity .18s; transform-origin: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; border: 0; cursor: pointer; font: 700 15px/1.3 var(--body); padding: 11px 18px; border-radius: 10px; text-decoration: none; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--control-line); }

/* thumbnails (placeholder blocks; real build uses YouTube thumbnails) */
.thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-md); overflow: hidden; background: var(--c, var(--c-tech)); color: #fff; }
.thumb::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.22), transparent 55%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.thumb .glyph { position: absolute; left: 14px; bottom: 12px; width: 24%; max-width: 64px; opacity: .85; }
.thumb .dur { position: absolute; right: 8px; bottom: 8px; background: rgba(10,14,26,.82); color: #fff; font: 700 12.5px/1 var(--body); padding: 5px 7px; border-radius: 5px; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 52px; height: 52px; border-radius: 50%; background: var(--mark); display: grid; place-items: center; opacity: 0; transform: scale(.9); transition: .18s; }
.thumb .play svg { width: 18px; height: 18px; fill: var(--ink); margin-left: 3px; }

/* guide card */
.card { text-decoration: none; display: flex; flex-direction: column; gap: 10px; }
.card:hover .play, .card:focus-visible .play { opacity: 1; transform: scale(1); }
.card .card-title { font: 700 17.5px/1.3 var(--display); letter-spacing: 0; }
.card:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.card .meta { font-size: 14px; color: var(--ink-3); display: flex; gap: 10px; flex-wrap: wrap; }
.card .meta b { color: var(--ink-2); font-weight: 400; }
.grid { display: grid; gap: 28px 22px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

/* chips */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--control-line); background: var(--surface); text-decoration: none; font-size: 14.5px; color: var(--ink-2); }
.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.dot { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }

/* section head */
.sec { padding: 56px 0 8px; }
.sec-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 30px); }
.sec-head a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal); font-weight: 700; font-size: 15px; text-decoration: none; }
.sec-head a:hover { text-decoration: underline; }

/* footer */
.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 14.5px; }
.foot .wrap { display: grid; gap: 24px; grid-template-columns: 1.4fr repeat(2, 1fr); }
.foot h2 { margin: 0 0 10px; color: var(--ink); font: 700 15px/1.2 var(--display); }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); text-decoration: underline; }
.foot li a, .foot address a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 900px) {
  .top .wrap { gap: 10px; position: relative; }
  .top-search { display: grid; margin-left: auto; }
  .menu-btn { display: grid; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; margin: 0; padding: 10px 16px 16px; flex-direction: column; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .top.open .nav { display: flex; }
  .nav a { padding: 12px 10px; font-size: 16.5px; color: var(--ink); border-radius: var(--r-md); }
  .top.open .menu-btn .m1 { transform: translateY(5px) rotate(45deg); }
  .top.open .menu-btn .m2 { opacity: 0; }
  .top.open .menu-btn .m3 { transform: translateY(-5px) rotate(-45deg); }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .foot .about { grid-column: 1 / -1; }
  .grid { grid-template-columns: 1fr 1fr; gap: 22px 14px; }
  .card .card-title { font-size: 15.5px; }
  .card .meta .ch { display: none; }
}
@media (max-width: 340px) { .grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- home ---------- */
  .hero { padding: 64px 0 24px; }
  .hero .wrap { display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: start; }
  .hero .wrap > * { min-width: 0; }
  .hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -.025em; max-width: 13ch; }
  .hero p.lede { font-size: 19px; color: var(--ink-2); max-width: 46ch; margin: 18px 0 30px; }

  .ask { display: flex; align-items: center; background: var(--surface); border: 2px solid var(--ink); border-radius: 16px; padding: 6px 6px 6px 20px; box-shadow: 6px 6px 0 var(--mark); max-width: 620px; }
  .ask label { font: 800 22px/1 var(--display); white-space: nowrap; padding-right: 10px; }
  .ask input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink); font: 400 20px/1.2 var(--body); padding: 14px 0; }
  .ask input::placeholder { color: var(--ink-3); }
  .ask button { background: var(--ink); color: var(--paper); border: 0; border-radius: 11px; padding: 15px 20px; font: 700 16px/1 var(--body); cursor: pointer; }
  .ask:focus-within { box-shadow: 6px 6px 0 var(--teal); }
  .try { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14.5px; color: var(--ink-3); }

  .feed { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow); }
  .feed-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
  .feed-h h2 { font-size: 19px; }
  .live { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--teal); font-weight: 700; }
  .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
  .feed ol { list-style: none; margin: 0; padding: 0; }
  .feed li a { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; padding: 10px 0; text-decoration: none; border-top: 1px solid var(--line); }
  .feed li:first-child a { border-top: 0; }
  .feed .thumb { border-radius: 8px; }
  .feed .thumb .glyph { width: 34px; left: 9px; bottom: 7px; }
  .feed .thumb .dur { font-size: 11px; padding: 3px 5px; right: 5px; bottom: 5px; }
  .feed strong { display: block; font: 700 15.5px/1.3 var(--display); }
  .feed li a:hover strong { text-decoration: underline; }
  .feed small { color: var(--ink-3); font-size: 13.5px; }
  .feed-f { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
  .feed-f b { font-family: var(--display); font-size: 17px; color: var(--ink); }

  .cats { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
  @media (max-width: 1180px) { .cats { grid-template-columns: repeat(4, 1fr); } }
  @media (max-width: 760px) { .cats { grid-template-columns: 1fr 1fr; gap: 8px; } .cat { padding: 12px; gap: 8px; } .cat .ic { width: 34px; height: 34px; border-radius: 9px; } .cat .ic svg { width: 18px; height: 18px; } .cat strong { font-size: 14.5px; } }
  .cat { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
  .cat:hover { border-color: var(--c); }
  .cat .ic { width: 42px; height: 42px; border-radius: 11px; background: var(--c); display: grid; place-items: center; flex: none; }
  .cat .ic svg { width: 22px; height: 22px; stroke: #fff; }
  .cat strong { display: block; font: 700 16px/1.25 var(--display); }
  .cat small { color: var(--ink-3); font-size: 13.5px; }

  .tabs { display: flex; gap: 6px; flex-wrap: wrap; }
  .tabs button { min-height: 44px; min-width: 44px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 14px; font: 400 14.5px/1 var(--body); cursor: pointer; }
  .tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

  .quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
  .quick a { display: grid; grid-template-columns: 120px 1fr; gap: 14px; align-items: center; text-decoration: none; padding: 10px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
  .quick a:hover { border-color: var(--ink-3); }
  .quick .thumb { border-radius: 8px; }
  .quick .thumb .glyph { width: 40px; left: 10px; bottom: 8px; }
  .quick strong { font: 700 15.5px/1.3 var(--display); display: block; }
  .quick small { color: var(--ink-3); font-size: 13.5px; }

  .pop { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: start; }
  .pop .card .card-title { font-size: 22px; }
  .rank { list-style: none; margin: 0; padding: 0; counter-reset: r 1; }
  .rank li { counter-increment: r; border-top: 1px solid var(--line); }
  .rank li:first-child { border-top: 0; }
  .rank a { display: grid; grid-template-columns: 36px 112px 1fr; gap: 14px; align-items: center; padding: 12px 0; text-decoration: none; }
  .rank a::before { content: counter(r); font: 800 26px/1 var(--display); color: var(--ink-3); text-align: center; }
  .rank a:hover strong { text-decoration: underline; }
  .rank .thumb { border-radius: 8px; }
  .rank .thumb .glyph { width: 30px; left: 9px; bottom: 7px; }
  .rank .thumb .dur { font-size: 11px; padding: 3px 5px; right: 5px; bottom: 5px; }
  .rank strong { display: block; font: 700 16px/1.3 var(--display); }
  .rank small { color: var(--ink-3); font-size: 13.5px; }
  .more { display: flex; justify-content: center; margin-top: 28px; }
  .empty { grid-column: 1 / -1; padding: 30px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line); border-radius: var(--r-md); }
  @media (max-width: 900px) { .pop { grid-template-columns: 1fr; } }
  @media (max-width: 520px) { .rank a { grid-template-columns: 26px 92px 1fr; gap: 10px; } .rank a::before { font-size: 20px; } }
  .how { margin-top: 72px; background: #14213D; color: #F5F7FA; --hp: #F5F7FA; border-radius: var(--r-lg); padding: 44px; display: grid; grid-template-columns: 1fr 2fr; gap: 40px; }
  .how h2 { font-size: 30px; }
  .how p { color: color-mix(in srgb, var(--hp) 75%, transparent); margin: 12px 0 0; }
  .how ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
  .how li { counter-increment: s; border-top: 2px solid var(--mark); padding-top: 14px; }
  .how li::before { content: counter(s); font: 800 15px/1 var(--display); color: var(--mark); }
  .how li strong { display: block; font: 700 18px/1.25 var(--display); margin: 8px 0 6px; }
  .how li span { font-size: 15px; color: color-mix(in srgb, var(--hp) 72%, transparent); }
  :root[data-theme="dark"] .how { background: #1C2949; }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .how { background: #1C2949; } }

  @media (max-width: 900px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
    .how { grid-template-columns: 1fr; padding: 30px 22px; }
    .how ol { grid-template-columns: 1fr; }
  }
  @media (max-width: 520px) {
    .hero { padding-top: 36px; }
    .ask { padding-left: 14px; box-shadow: 4px 4px 0 var(--mark); }
    .ask label { font-size: 18px; }
    .ask input { font-size: 17px; }
    .ask button { padding: 13px 14px; }
    .ask button span { display: none; }
    .quick a { grid-template-columns: 100px 1fr; }
  }

/* ---------- guide ---------- */
  .crumbs { padding: 22px 0 0; font-size: 14.5px; color: var(--ink-3); }
  .crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
  .crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
  .crumbs a { text-decoration: none; color: var(--ink-2); }
  .crumbs a:hover { text-decoration: underline; }

  .head { padding: 14px 0 26px; max-width: 860px; }
  .head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.022em; }
  .head .summary { font-size: 19px; color: var(--ink-2); margin: 16px 0 0; max-width: 62ch; }

  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }

  /* player */
  .player { position: relative; aspect-ratio: 16/9; border-radius: var(--r-lg); overflow: hidden; background: #1a2238; color: #fff; }
  .player .thumb { position: absolute; inset: 0; border-radius: 0; aspect-ratio: auto; }
  .player .thumb .glyph { width: 22%; max-width: 160px; left: 6%; bottom: 10%; opacity: .55; }
  .player .vt { position: absolute; left: 22px; top: 18px; right: 22px; font: 700 18px/1.3 var(--display); text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .player .vt small { display: block; font: 400 14px/1.4 var(--body); opacity: .85; }
  .player button.big { position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--mark); cursor: pointer; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
  .player button.big svg { width: 28px; height: 28px; fill: var(--ink); margin-left: 5px; }
  .player .note { position: absolute; left: 22px; bottom: 16px; font-size: 13px; opacity: .8; }
  .player.on button.big { display: none; }
  .player .playing { display: none; position: absolute; inset: 0; place-items: center; text-align: center; background: rgba(10,14,26,.55); font-size: 15px; }
  .player.on .playing { display: grid; }

  /* chapter track: the page's signature element */
  .track { margin-top: 14px; }
  .bar { display: flex; gap: 3px; min-height: 56px; padding: 6px; overflow-x: auto; }
  .bar button { min-width: 44px; height: 44px; flex-shrink: 0; border: 0; padding: 0; cursor: pointer; background: transparent; border-radius: 3px; position: relative; }
  .bar button::before { content: ""; position: absolute; inset: 16px 0; background: var(--control-line); border-radius: 3px; }
  .bar button:hover::before { background: var(--ink-3); }
  .bar button.done::before { background: var(--ink); }
  .bar button.now::before { background: var(--focus); }
  .now-line { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 14.5px; color: var(--ink-2); }
  .now-line b { color: var(--ink); }

  .facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
  .facts div { padding: 14px 16px; border-left: 1px solid var(--line); }
  .facts div:first-child { border-left: 0; }
  .facts dt { font-size: 13.5px; color: var(--ink-3); }
  .facts dd { margin: 2px 0 0; font: 700 17px/1.3 var(--display); }

  .body { max-width: 720px; }
  .body h2 { font-size: 26px; margin: 46px 0 16px; }

  .steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
  .steps li { counter-increment: st; display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
  .steps li::before { content: counter(st); width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 2px solid var(--ink); display: grid; place-items: center; font: 800 18px/1 var(--display); }
  .steps li.active::before { background: var(--mark); border-color: var(--mark); color: #14213D; }
  .steps h3 { font-size: 19px; margin: 6px 0 6px; }
  .steps p { margin: 0; color: var(--ink-2); }
  .ts { margin-top: 10px; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; min-width: 44px; border: 1px solid var(--control-line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 6px 12px 6px 9px; font: 700 13.5px/1.3 var(--body); cursor: pointer; }
  .ts svg { width: 12px; height: 12px; fill: currentColor; }
  .ts:hover { border-color: var(--ink); }

  .tips { display: grid; gap: 12px; }
  .tip { background: var(--mark-soft); border-radius: var(--r-md); padding: 16px 18px; }
  .tip strong { font-family: var(--display); display: block; margin-bottom: 3px; }
  .tip p { margin: 0; color: var(--ink-2); }

  details { border-top: 1px solid var(--line); padding: 4px 0; }
  details:last-of-type { border-bottom: 1px solid var(--line); }
  summary { cursor: pointer; list-style: none; padding: 14px 0; font: 700 18px/1.3 var(--display); display: flex; justify-content: space-between; gap: 16px; }
  summary::-webkit-details-marker { display: none; }
  summary::after { content: "+"; font-size: 24px; line-height: 1; color: var(--ink-3); }
  details[open] summary::after { content: "\2212"; }
  details p { margin: 0 0 16px; color: var(--ink-2); }

  .basis { margin-top: 34px; font-size: 14px; color: var(--ink-3); border-left: 3px solid var(--line); padding-left: 14px; }

  /* sidebar */
  .side { position: sticky; top: 84px; display: grid; gap: 16px; }
  .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 20px; }
  .box h2 { font-size: 18px; margin-bottom: 12px; }
  .need { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
  .need label { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; cursor: pointer; }
  .need input { width: 18px; height: 18px; accent-color: var(--teal); margin-top: 3px; }
  .need input:checked + span { color: var(--ink-3); text-decoration: line-through; }
  .actions { display: flex; gap: 8px; }
  .actions .btn { flex: 1; justify-content: center; }
  .btn.saved { background: var(--teal); color: var(--on-teal); }
  .creator { display: flex; gap: 12px; align-items: center; }
  .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--c-home); color: #fff; display: grid; place-items: center; font: 800 18px/1 var(--display); flex: none; }
  .creator > div { min-width: 0; }
  .creator strong { display: block; font-family: var(--display); overflow-wrap: anywhere; }
  .creator small { color: var(--ink-3); }
  .box p.small { font-size: 14px; color: var(--ink-2); margin: 12px 0 0; }
  .box a.link { color: var(--teal); font-weight: 700; font-size: 14.5px; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; max-width: 100%; overflow-wrap: anywhere; margin-top: 10px; }
  .box a.link:hover { text-decoration: underline; }
  .tags { display: flex; flex-wrap: wrap; gap: 6px; }

  @media (max-width: 980px) {
    .layout { grid-template-columns: 1fr; gap: 10px; }
    .side { position: static; grid-template-columns: 1fr 1fr; margin-top: 30px; }
  }
  @media (max-width: 640px) {
    .head .summary { font-size: 17.5px; }
    .player { border-radius: var(--r-md); margin: 0 -20px; border-radius: 0; }
    .facts { grid-template-columns: 1fr 1fr; }
    .facts div:nth-child(3) { border-left: 0; }
    .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .side { grid-template-columns: 1fr; }
    .steps li { grid-template-columns: 40px 1fr; gap: 12px; }
    .steps li::before { width: 36px; height: 36px; font-size: 16px; }
    .now-line span:last-child { display: none; }
  }

/* ---------- V2 additions ---------- */
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb img + .glyph { display: none; }
.player .poster:not([src]) { display: none; }
.feed small, .rank small, .quick small { display: block; }
.page-head { padding: 34px 0 6px; max-width: 760px; }
.page-head h1 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.02em; }
.page-head p { color: var(--ink-2); font-size: 18px; margin: 12px 0 0; }
.page-head .count { color: var(--ink-3); font-size: 15px; margin-top: 8px; }
.list-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 24px 0 22px; }
.pager { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--control-line); background: var(--surface); text-decoration: none; font-weight: 700; font-size: 15px; }
.pager span.cur { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pager span.gap { border: 0; background: none; }
.search-big { margin: 18px 0 0; }
.no-results { padding: 28px; border: 1px dashed var(--line); border-radius: var(--r-md); color: var(--ink-2); margin-bottom: 30px; }
.err { padding: 70px 0 20px; max-width: 640px; }
.err .code { font: 800 64px/1 var(--display); color: var(--mark); }
.err h1 { font-size: 36px; margin: 10px 0 12px; }
.err p { color: var(--ink-2); font-size: 18px; }
.prose { max-width: 700px; padding: 10px 0 20px; }
.prose h2 { font-size: 24px; margin: 34px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose a { color: var(--teal); }
.ranked-grid .card { position: relative; }
.empty-site { padding: 40px; border: 1px dashed var(--line); border-radius: var(--r-lg); text-align: center; color: var(--ink-2); }
.player iframe, .player .yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.player .shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,14,26,.55), transparent 35%, transparent 70%, rgba(10,14,26,.45)); }
.imported-note { margin-top: 24px; color: var(--ink-2); }
.steps p.st { color: var(--ink); margin: 7px 0 0; }
.steps li.active p.st { font-weight: 700; }
.player.on .vt, .player.on .note, .player.on .shade, .player.on .poster { display: none; }
.card[hidden] { display: none; }
.muted { color: var(--ink-3); }

/* 2.0.5 */
.vcap { margin: 10px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.vcap a { color: var(--ink); }
.body .need { margin: 0 0 8px; }
/* Long words, titles and chips never push the page wider than the phone. */
.grid > *, .hero .wrap > *, .layout > *, .feed li a > *, .quick a > *, .rank a > * { min-width: 0; }
h1, h2, h3, .card .card-title, .chip, .summary, .crumbs li { overflow-wrap: anywhere; }
.chip { max-width: 100%; }
.saved-status, #guide-action-status { color: var(--ink-2); font-size: 15px; }
#guide-action-status:empty { margin: 0; }
#share-fallback { margin-top: 14px; display: grid; gap: 8px; }
#share-fallback label { font-size: 14px; font-weight: 700; }
#share-link { width: 100%; min-width: 0; min-height: 44px; padding: 8px; border: 1px solid var(--control-line); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font: inherit; }
