:root {
  --paper: #f7f2e7;
  --paper-2: #efe7d6;
  --card: #fffdf8;
  --ink: #2a2723;
  --ink-2: #5b554c;
  --ink-3: #8a8378;
  --line: #d9cfbd;
  --red: #d8432f;
  --yellow: #f2cf45;
  --pink: #ef9fbd;
  --blue: #3d6fb6;
  --tape: rgba(242, 207, 69, .55);
  --radius: 14px;
  --shadow: 2px 3px 0 rgba(42, 39, 35, .12);
  --hand: 'Caveat', 'ZCOOL XiaoWei', cursive;
  --head: 'ZCOOL XiaoWei', 'Noto Sans SC', serif;
  --body: 'Noto Sans SC', system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font: 16px/1.65 var(--body);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(42,39,35,.09) 1px, transparent 1.2px);
  background-size: 22px 22px;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }

/* ── header ── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(247, 242, 231, .94); backdrop-filter: blur(6px); border-bottom: 2px solid var(--ink); }
.top-in { max-width: 1240px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { width: 34px; height: auto; }
.brand-name { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name b { font: 22px/1.1 var(--head); }
.brand-name small { font: 700 16px/1 var(--hand); color: var(--red); }
.top-search { flex: 1; display: flex; max-width: 520px; margin-left: auto; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); overflow: hidden; }
.top-search input { flex: 1; min-width: 0; border: 0; background: none; padding: 7px 14px; outline: none; }
.top-search button { border: 0; background: var(--yellow); padding: 0 14px; cursor: pointer; border-left: 2px solid var(--ink); }
.top-nav { display: flex; align-items: center; gap: 14px; flex: none; }
.top-nav > a { text-decoration: none; font-weight: 500; }
.top-nav > a:hover, .top-nav > a[aria-current] { text-decoration: underline wavy var(--red) 2px; text-underline-offset: 5px; }
.lang { display: flex; border: 2px solid var(--ink); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: var(--card); padding: 3px 11px; cursor: pointer; font-size: 14px; font-weight: 700; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (max-width: 760px) {
  .top-in { flex-wrap: wrap; gap: 8px 12px; padding: 8px 12px; }
  .brand-name b { font-size: 19px; }
  .top-nav { margin-left: auto; gap: 10px; font-size: 15px; }
  .top-search { order: 3; flex-basis: 100%; max-width: none; }
}

main { max-width: 1240px; margin: 0 auto; padding: 22px 16px 60px; min-height: 70vh; outline: none; }
.loading { padding: 80px 0; text-align: center; color: var(--ink-3); font: 700 28px var(--hand); }

/* ── shared bits ── */
.sec { margin: 38px 0; }
.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font: 28px/1.2 var(--head); position: relative; }
.sec-head h2::after { content: ''; position: absolute; left: -4px; right: -6px; bottom: 1px; height: 10px; background: var(--tape); z-index: -1; transform: rotate(-1deg); border-radius: 3px; }
.sec-head .more { margin-left: auto; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.sec-head .more:hover { color: var(--red); }
.hand { font-family: var(--hand); font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 2px solid var(--ink); border-radius: 999px; background: var(--card); text-decoration: none; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); transition: transform .12s; }
.btn:hover { transform: translate(-1px, -1px) rotate(-.5deg); }
.btn.red { background: var(--red); color: #fff; }
.btn.yellow { background: var(--yellow); }
.chip { display: inline-block; padding: 2px 11px; border: 1.5px solid var(--ink-2); border-radius: 999px; font-size: 14px; text-decoration: none; background: var(--card); margin: 0 6px 6px 0; }
.chip:hover { border-color: var(--red); color: var(--red); }
.badge { position: absolute; top: 8px; left: 8px; background: var(--ink); color: var(--paper); font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.muted { color: var(--ink-3); }
.paper { background: var(--card); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ── hero ── */
.hero { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 26px 30px; margin-top: 4px; }
.hero h1 { font: 40px/1.2 var(--head); margin: 0 0 6px; }
.hero h1 em { font-style: normal; color: var(--red); }
.hero p { margin: 0 0 18px; color: var(--ink-2); max-width: 560px; }
.hero-search { display: flex; max-width: 560px; border: 2.5px solid var(--ink); border-radius: 16px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 13px 16px; font-size: 18px; outline: none; background: none; }
.hero-search button { border: 0; border-left: 2.5px solid var(--ink); background: var(--red); color: #fff; padding: 0 22px; font-weight: 700; cursor: pointer; }
.hero-hot { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.hero-hot .chip { font-size: 13px; }
.hero-art { display: flex; align-items: flex-end; gap: 4px; }
.hero-art img:first-child { width: 150px; }
.hero-art img:last-child { width: 108px; }
.bubble { position: absolute; top: 18px; right: 150px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 6px 12px; font: 700 20px var(--hand); transform: rotate(-3deg); }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; padding: 20px 18px; }
  .hero h1 { font-size: 30px; }
  .hero-art { display: none; }
  .bubble { display: none; }
}

/* ── cards ── */
.grid-long { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px 18px; }
.grid-short { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 20px 14px; }
.row-short { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 172px); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.row-short > * { scroll-snap-align: start; }
.card { position: relative; display: block; text-decoration: none; }
.card .thumb { position: relative; border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper-2); box-shadow: var(--shadow); transition: transform .15s; }
.card:hover .thumb { transform: rotate(-1deg) translateY(-2px); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card.long .thumb { aspect-ratio: 16 / 9; }
.card.short .thumb { aspect-ratio: 9 / 16; }
.card h3 { margin: 9px 2px 0; font-size: 15px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.short h3 { font-size: 14px; }
.card .meta { margin: 2px 2px 0; font-size: 13px; color: var(--ink-3); }
.card .q { margin: 3px 2px 0; font-size: 13px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* playlists */
.grid-pl { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.pl { position: relative; display: block; padding: 14px; text-decoration: none; transition: transform .15s; }
.pl:nth-child(3n+1) { transform: rotate(-.6deg); }
.pl:nth-child(3n+2) { transform: rotate(.5deg); }
.pl:hover { transform: rotate(0) translateY(-3px); }
.pl::before { content: ''; position: absolute; top: -10px; left: 50%; width: 80px; height: 20px; margin-left: -40px; background: var(--tape); transform: rotate(-3deg); }
.pl-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pl-thumbs img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--paper-2); }
.pl-thumbs img.long { object-fit: contain; }
.pl h3 { margin: 10px 0 0; font: 22px/1.25 var(--head); }
.pl .meta { font-size: 13px; color: var(--ink-3); }

/* CTA */
.cta { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 20px 26px; background: #fff7d6; }
.cta img { width: 90px; }
.cta h2 { margin: 0; font: 26px var(--head); }
.cta p { margin: 4px 0 0; color: var(--ink-2); }
@media (max-width: 640px) { .cta { grid-template-columns: 1fr; text-align: center; } .cta img { margin: 0 auto; } }

.subs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sub { display: flex; align-items: center; gap: 14px; padding: 14px 18px; text-decoration: none; }
.sub .yt { flex: none; width: 46px; height: 32px; border-radius: 9px; background: var(--red); display: grid; place-items: center; }
.sub .yt::after { content: ''; border-left: 13px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.sub b { display: block; font-size: 17px; }
.sub span { font-size: 13px; color: var(--ink-3); }
@media (max-width: 640px) { .subs { grid-template-columns: 1fr; } }

/* ── video page ── */
.vp { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 30px; align-items: start; }
.vp.is-short .player-wrap { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 26px; align-items: start; }
@media (max-width: 980px) { .vp { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .vp.is-short .player-wrap { grid-template-columns: 1fr; } .vp.is-short .player { max-width: 360px; margin: 0 auto; width: 100%; } }
.crumbs { font-size: 14px; color: var(--ink-3); margin-bottom: 10px; }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { color: var(--red); }
.vp h1 { font: 30px/1.3 var(--head); margin: 0 0 14px; }
.player { position: relative; border: 2.5px solid var(--ink); border-radius: 14px; overflow: hidden; background: #000; box-shadow: 3px 4px 0 rgba(42,39,35,.18); aspect-ratio: 16 / 9; }
.is-short .player { aspect-ratio: 9 / 16; }
.player iframe, .player .poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { cursor: pointer; background: none; padding: 0; }
.player .poster img { width: 100%; height: 100%; object-fit: cover; }
.player .play { position: absolute; left: 50%; top: 50%; width: 76px; height: 54px; margin: -27px 0 0 -38px; border-radius: 16px; background: var(--red); border: 2.5px solid #fff; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
.player .play::after { content: ''; position: absolute; left: 30px; top: 14px; border-left: 22px solid #fff; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.lang-note { font-size: 14px; color: var(--ink-2); background: #fff7d6; border: 1.5px dashed var(--ink-3); border-radius: 10px; padding: 6px 12px; margin-top: 10px; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.ask { position: relative; display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 18px; }
.ask img { width: 58px; flex: none; }
.ask p { margin: 0; background: #fff; border: 2px solid var(--ink); border-radius: 4px 16px 16px 16px; padding: 10px 14px; font-weight: 500; }
.ask small { display: block; font: 700 17px var(--hand); color: #c0507a; }
.block { padding: 18px 20px; margin: 18px 0; }
.block h2 { font: 22px var(--head); margin: 0 0 8px; }
.desc p { margin: 0 0 10px; white-space: pre-line; }
.chapters { list-style: none; margin: 0; padding: 0; columns: 2 220px; column-gap: 20px; }
.chapters li { break-inside: avoid; }
.chapters button { border: 0; background: none; padding: 4px 0; cursor: pointer; text-align: left; display: flex; gap: 10px; }
.chapters button:hover span { text-decoration: underline; }
.chapters time { font-variant-numeric: tabular-nums; color: var(--blue); font-weight: 700; min-width: 42px; }
.notes { margin: 0; padding-left: 0; list-style: none; }
.notes li { margin-bottom: 6px; }
details.script summary { cursor: pointer; font: 22px var(--head); list-style: none; }
details.script summary::-webkit-details-marker { display: none; }
details.script summary::after { content: ' ＋'; color: var(--red); }
details.script[open] summary::after { content: ' －'; }
.lines { margin: 12px 0 0; padding: 0; list-style: none; }
.lines li { padding: 3px 0; }
.lines b { display: inline-block; min-width: 3.4em; }
.lines .zz b { color: #c0507a; }
.lines .jj b { color: #a57e00; }
.refs { font-size: 13px; color: var(--ink-2); word-break: break-word; padding-left: 20px; margin: 0; }
.refs li { margin-bottom: 5px; }
.side { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 980px) { .side { position: static; } }
.side h2 { font: 21px var(--head); margin: 0 0 10px; }
.mini { display: grid; grid-template-columns: 112px 1fr; gap: 10px; text-decoration: none; margin-bottom: 12px; align-items: start; }
.mini img { width: 112px; aspect-ratio: 16/9; object-fit: cover; border: 1.5px solid var(--ink); border-radius: 8px; }
/* shorts are vertical: show the whole cover in an upright frame instead of cropping it to 16:9 */
.mini.short { grid-template-columns: 64px 1fr; align-items: center; }
.mini.short img { width: 64px; aspect-ratio: 9/16; }
.mini b { font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini:hover b { color: var(--red); }

/* products (Shopee) */
.shop { padding: 16px; background: #fff; }
.shop h2 { display: flex; align-items: center; gap: 8px; }
.shop h2 img { width: 34px; }
.prod { display: grid; grid-template-columns: 72px 1fr; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 10px; text-decoration: none; }
.prod:hover { background: var(--paper); }
.prod img, .prod .ph { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 1.5px solid var(--line); background: var(--paper-2); }
.prod b { font-size: 14px; display: block; line-height: 1.35; }
.prod span { color: #ee4d2d; font-weight: 700; font-size: 14px; }
.shop .fine { font-size: 11.5px; color: var(--ink-3); margin: 8px 0 0; }
.ad { min-height: 120px; }
.ad-ph { display: grid; place-items: center; min-height: 250px; border: 2px dashed var(--ink-3); border-radius: 12px; color: var(--ink-3); font: 700 22px var(--hand); text-align: center; padding: 10px; }
.ad-ph.wide { min-height: 100px; }

/* ── search ── */
.search-page h1 { font: 30px var(--head); margin: 0 0 14px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 22px; }
.filters button { border: 2px solid var(--ink); background: var(--card); border-radius: 999px; padding: 3px 14px; cursor: pointer; font-weight: 500; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.results { display: flex; flex-direction: column; gap: 16px; }
.res { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 12px; text-decoration: none; align-items: start; }
.res .thumb { border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; aspect-ratio: 16/9; background: var(--paper-2); }
.res .thumb img { width: 100%; height: 100%; object-fit: cover; }
.res.short { grid-template-columns: 110px 1fr; }
.res.short .thumb { aspect-ratio: 9/16; }
.res h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.35; }
.res p { margin: 0; font-size: 14px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.res mark { background: var(--tape); color: inherit; border-radius: 3px; padding: 0 1px; }
.res .meta { font-size: 13px; color: var(--ink-3); margin-top: 6px; }
.res:hover h3 { color: var(--red); }
@media (max-width: 640px) { .res { grid-template-columns: 120px 1fr; gap: 12px; padding: 10px; } .res.short { grid-template-columns: 72px 1fr; } .res h3 { font-size: 15px; } .res p { -webkit-line-clamp: 2; font-size: 13px; } }
.empty { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding: 22px; }
.empty img { width: 100px; }
.empty h2 { margin: 0 0 6px; font: 24px var(--head); }

/* ── request ── */
.req { display: grid; grid-template-columns: 1fr 260px; gap: 30px; align-items: start; max-width: 920px; margin: 0 auto; }
.req h1 { font: 32px var(--head); margin: 0 0 6px; }
.req form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.req label { font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.req label small { font-weight: 400; color: var(--ink-3); }
.req textarea, .req input, .req select { border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; background: #fff; font-weight: 400; }
.req textarea { min-height: 120px; resize: vertical; }
.req .hp { position: absolute; left: -9999px; }
.req .ok { padding: 20px; background: #eaf6e4; }
.req-art { text-align: center; }
.req-art img { margin: 0 auto; width: 170px; }
@media (max-width: 760px) { .req { grid-template-columns: 1fr; } .req-art { display: none; } }

/* ── about ── */
.about-hero { display: flex; align-items: flex-end; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.about-hero h1 { margin: 0 0 10px 16px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 10px 0 20px; }
.stats > div { padding: 12px; text-align: center; }
.stats b { display: block; font: 700 32px/1.1 var(--body); color: var(--red); }
.stats span { font-size: 14px; color: var(--ink-2); }
.about .block p { margin: 0; }
.about .subs { margin-top: 22px; }
@media (max-width: 640px) { .about-hero img { width: 90px; } .about-hero img + img { width: 66px; } .about-hero h1 { margin-left: 0; font-size: 26px; } }

/* ── page / footer ── */
.page { max-width: 760px; margin: 0 auto; }
.page h1 { font: 32px var(--head); }
.foot { border-top: 2px solid var(--ink); background: var(--paper-2); }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 24px 16px 30px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; font-size: 14px; color: var(--ink-2); }
.foot-in p { margin: 0 0 6px; }
.foot-sisters { display: flex; align-items: flex-end; }
.foot-links a { margin-right: 14px; font-weight: 700; }
.fine { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 640px) { .foot-in { grid-template-columns: 1fr; } .foot-sisters { display: none; } }
