/*
Theme Name: 123微劇 手帳便籤
Theme URI: https://example.com/
Author: SD Network
Description: 米白與棕的手帳風：卡片像貼紙便籤（微旋轉 + 膠帶條），兩欄錯位排列。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b11
*/

/* ==========================================================================
   sd-b11 手帳便籤 · 米白 + 棕 / 貼紙便籤（微旋轉 + 膠帶）/ 兩欄錯位
   tokens → base → binder header → hero → note wall → detail → footer
   ========================================================================== */

:root {
  --bg: #f6eddb;
  --card: #fffaf0;
  --line: #d9c4a1;
  --ink: #4a3622;
  --muted: #7b6446;
  --accent: #9a5b25;
  --accent-2: #d9a066;
  --accent-soft: rgba(154, 91, 37, .14);
  --accent-ink: #7a4318;
  --on-accent: #fff8ec;
  --radius: 6px;
  --r-card: max(var(--radius), 4px);
  --btn-r: 5px;
  --wrap: 1080px;
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Kaiti TC", "BiauKai", "DFKai-SB", "STKaiti", "KaiTi", "Noto Serif TC", "Songti TC", serif;
  --tape: rgba(217, 160, 102, .62);
  --tape-clip: polygon(3% 0, 97% 0, 100% 15%, 96% 30%, 100% 45%, 96% 60%, 100% 75%, 96% 90%, 97% 100%, 3% 100%, 0 85%, 4% 70%, 0 55%, 4% 40%, 0 25%, 4% 10%);
  --paper-shadow: 0 1px 1px rgba(74, 54, 34, .18), 0 8px 18px rgba(74, 54, 34, .14);
}

/* ---------- shared base (variables driven; each theme overrides below) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.75 var(--font); overflow-x: clip;
  overflow-wrap: anywhere; word-break: normal; line-break: strict;
  -webkit-font-smoothing: antialiased;
}
body.sd-no-scroll { overflow: hidden; }
img, video, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sr-only, .screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 10px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }
.b11-wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }
[hidden] { display: none !important; }

/* ---------- breadcrumbs ---------- */
.sd-crumbs { padding: 22px 0 6px; font-size: 14px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; gap: 4px 0; }
.sd-crumbs li + li::before { content: "›"; margin: 0 9px; opacity: .6; }
.sd-crumbs a:hover { color: var(--accent-ink); }
.sd-crumbs [aria-current="page"] { color: var(--ink); font-weight: 600; }

/* ---------- buttons / pills / notes ---------- */
.b11-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: var(--btn-r, 999px); background: var(--card); color: var(--ink);
  font-weight: 700; font-size: 15px; line-height: 1.2; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.b11-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.b11-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b11-btn--primary:hover { color: var(--on-accent); filter: brightness(1.06); }
.b11-pill {
  display: inline-flex; align-items: center; min-height: 32px; padding: 2px 14px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; font-weight: 600; line-height: 1.4;
}
a.b11-pill:hover { background: var(--accent); color: var(--on-accent); }
.b11-note { padding: 14px 18px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.sd-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; border-radius: var(--btn-r, 999px);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- player (shared contract) ---------- */
.sd-player { background: #000; }
.sd-player video { display: block; width: 100%; aspect-ratio: 9 / 16; max-height: 78vh; object-fit: contain; background: #000; }
.sd-embed { aspect-ratio: 9 / 16; max-height: 78vh; background: #000; }
.sd-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.sd-player__fallback { padding: 20px; color: #cbd5e1; font-size: 14px; }
.sd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 22px; background: var(--card); color: var(--ink); }
.sd-callout__body { flex: 1 1 220px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }

/* ---------- pagination ---------- */
.sd-pagination { margin: 38px 0 6px; }
.sd-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.sd-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 16px;
  border-radius: var(--btn-r, 999px); background: var(--card); border: 1px solid var(--line); color: var(--muted); font-weight: 700;
}
.sd-pagination a.page-numbers:hover { background: var(--accent-soft); color: var(--accent-ink); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* ---------- page head / filters / chips / empty ---------- */
.b11-pagehead { padding: 22px 0 18px; }
.b11-pagehead h1 { font: 800 clamp(28px, 4.4vw, 44px)/1.2 var(--font-display, var(--font)); letter-spacing: .01em; }
.b11-pagehead p { margin-top: 8px; color: var(--muted); }
.b11-filter { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 4px 0 26px; }
.b11-filter__row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.b11-filter__label { flex: none; min-width: 3em; color: var(--muted); font-size: 14px; font-weight: 700; }
.b11-filter__list { display: flex; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.b11-filter__list::-webkit-scrollbar { display: none; }
.b11-filter__list a {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--btn-r, 999px);
  font-size: 14px; color: var(--muted); border: 1px solid transparent; white-space: nowrap;
}
.b11-filter__list a:hover { color: var(--accent-ink); border-color: var(--line); }
.b11-filter__list a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
.b11-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.b11-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: var(--btn-r, 999px); background: var(--card); font-size: 14px; font-weight: 600;
}
.b11-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.b11-empty { padding: 56px 0; text-align: center; color: var(--muted); }
.b11-empty__title { margin-bottom: 8px; color: var(--ink); font-size: 20px; font-weight: 800; }
.b11-empty .b11-chips { justify-content: center; margin-top: 18px; }

/* ---------- search results / forms ---------- */
.b11-sf { display: flex; align-items: stretch; gap: 8px; width: 100%; }
.b11-sf input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 18px; border: 1px solid var(--line);
  border-radius: var(--btn-r, 999px); background: var(--card); outline: none;
}
.b11-sf input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.b11-sf button {
  flex: none; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--btn-r, 999px);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.b11-searchbar { max-width: 640px; margin: 4px 0 26px; }
.b11-results { display: grid; gap: 12px; }
.b11-result {
  display: flex; gap: 16px; align-items: flex-start; padding: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-card, 14px); transition: border-color .2s, transform .2s;
}
.b11-result:hover { border-color: var(--accent); }
.b11-result__img { flex: none; width: 76px; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.b11-result__body { display: grid; gap: 4px; min-width: 0; }
.b11-result__t { font-weight: 800; font-size: 17px; line-height: 1.4; }
.b11-result__m { color: var(--muted); font-size: 13px; }
.b11-result__x { color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- article / prose / 404 ---------- */
.b11-article { max-width: 780px; }
.b11-prose { font-size: 17px; line-height: 1.95; }
.b11-prose > * + * { margin-top: 1.1em; }
.b11-prose h2, .b11-prose h3 { margin-top: 1.8em; font-weight: 800; line-height: 1.35; }
.b11-prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.b11-prose ul { list-style: disc; padding-left: 1.4em; }
.b11-prose ol { list-style: decimal; padding-left: 1.4em; }
.b11-prose img { height: auto; border-radius: 10px; }
.b11-pages { margin-top: 20px; color: var(--muted); }
.b11-notfound { padding: 56px 0 30px; text-align: center; }
.b11-notfound__code { font: 900 clamp(72px, 16vw, 150px)/1 var(--font-display, var(--font)); color: var(--accent); }
.b11-notfound h1 { margin-top: 6px; font-size: clamp(24px, 4vw, 34px); font-weight: 800; }
.b11-notfound__desc { max-width: 520px; margin: 12px auto 22px; color: var(--muted); }
.b11-notfound__search { max-width: 520px; margin: 0 auto 20px; }
.b11-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- blocks / facts / faq ---------- */
.b11-block { margin-top: 44px; }
.b11-block > h2, .b11-sec h2 { font: 800 clamp(21px, 3vw, 28px)/1.3 var(--font-display, var(--font)); }
.b11-block > h2 small, .b11-sec h2 small { margin-left: 8px; color: var(--muted); font-size: 14px; font-weight: 500; }
.b11-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.b11-fact { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b11-fact dt { color: var(--muted); font-size: 13px; }
.b11-fact dd { margin-top: 2px; font-weight: 700; }
.b11-fact--wide { grid-column: 1 / -1; }
.b11-faq details { margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card, 14px); }
.b11-faq summary { min-height: 48px; padding: 12px 18px; font-weight: 700; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.b11-faq summary::-webkit-details-marker { display: none; }
.b11-faq summary::after { content: "+"; flex: none; color: var(--accent-ink); font-size: 22px; line-height: 1; }
.b11-faq details[open] summary::after { content: "−"; }
.b11-faq details p { padding: 0 18px 16px; color: var(--muted); }

/* ---------- watch (episode page) ---------- */
.b11-watch { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 10px; }
.b11-watch__main, .b11-watch__eps { min-width: 0; }
.b11-watch__head h1 { font: 800 clamp(22px, 3.4vw, 34px)/1.3 var(--font-display, var(--font)); }
.b11-watch__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.b11-player { max-width: 420px; width: 100%; margin: 0 auto; overflow: hidden; border-radius: var(--r-card, 14px); background: #000; }
.b11-pn { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.b11-block__link { margin-top: 14px; font-weight: 700; color: var(--accent-ink); }

/* ---------- search panel / overlay / drawer (ids bound by app.js) ---------- */
.b11-search {
  position: fixed; inset: 0; z-index: 90; display: flex; align-items: flex-start; justify-content: center;
  padding: 12vh 16px 16px; background: rgba(10, 10, 20, .55); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.b11-search.is-open { opacity: 1; visibility: visible; }
.b11-search__box { width: min(640px, 100%); padding: 22px; background: var(--card); color: var(--ink); border-radius: var(--r-card, 14px); }
.b11-search__hint { margin: 16px 0 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
.b11-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b11-tags a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--btn-r, 999px); background: var(--accent-soft); color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.b11-overlay { position: fixed; inset: 0; z-index: 94; background: rgba(10, 10, 20, .55); opacity: 0; transition: opacity .25s; }
.b11-overlay.is-open { opacity: 1; }
.b11-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(86vw, 340px); padding: 64px 22px 28px; overflow-y: auto;
  background: var(--card); color: var(--ink); transform: translateX(104%); visibility: hidden; transition: transform .28s, visibility .28s;
}
.b11-drawer.is-open { transform: none; visibility: visible; }
.b11-drawer__close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; font-size: 20px; }
.b11-drawer__list a { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--line); font-weight: 700; }
.b11-drawer__list a[aria-current="page"] { color: var(--accent-ink); }

@media (max-width: 760px) {
  .b11-wrap { padding: 0 16px; }
  .b11-filter__row { align-items: stretch; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .skip, .b11-search, .b11-overlay, .b11-drawer { display: none !important; }
}

body {
  background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(154, 91, 37, .07) 35px 36px);
  background-attachment: local;
}
.b11-main { min-height: 62vh; }

/* ---------- header: binder rings + index tabs ---------- */
.b11-head { position: relative; background: #e9d8b4; border-bottom: 3px solid var(--accent); }
.b11-rings { height: 24px; background: radial-gradient(circle at 17px 12px, #3b2a1a 0 4.5px, #fffaf0 4.5px 7.5px, transparent 7.5px) 0 0 / 34px 24px repeat-x; }
.b11-head__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 8px; }
.b11-logo { display: inline-flex; align-items: center; min-height: 48px; margin-bottom: 8px; padding: 0 18px; background: var(--tape); clip-path: var(--tape-clip); transform: rotate(-1.5deg); font: 900 clamp(20px, 3vw, 26px)/1.2 var(--font-display); color: var(--accent-ink); }
.b11-logo__img { height: 36px; width: auto; }
.b11-nav { display: none; flex: 1 1 auto; min-width: 0; }
.b11-nav__list { display: flex; justify-content: flex-end; gap: 6px; }
.b11-nav__list a { display: inline-flex; align-items: center; min-height: 46px; padding: 0 18px; border-radius: 12px 12px 0 0; background: #f2c9a0; color: var(--ink); font-weight: 700; font-size: 15px; transition: transform .2s, min-height .2s; }
.b11-nav__list li:nth-child(5n+2) a { background: #f0b8b8; }
.b11-nav__list li:nth-child(5n+3) a { background: #bfd8b0; }
.b11-nav__list li:nth-child(5n+4) a { background: #b9cfe3; }
.b11-nav__list li:nth-child(5n) a { background: #f3e0a0; }
.b11-nav__list a:hover { transform: translateY(-3px); }
.b11-nav__list a[aria-current="page"] { min-height: 52px; background: var(--card); color: var(--accent-ink); box-shadow: 0 -2px 0 var(--accent) inset; }
.b11-tools { display: flex; gap: 8px; margin-bottom: 8px; }
.b11-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--accent); border-radius: 50%; background: var(--card); color: var(--accent-ink); box-shadow: 2px 2px 0 var(--accent); }
.b11-icon:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 var(--accent); }
@media (min-width: 961px) { .b11-nav { display: block; } .b11-menu-btn { display: none; } }

/* ---------- section title: marker highlight ---------- */
.b11-block { margin-top: clamp(40px, 6vw, 72px); }
.b11-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.b11-sec h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; font: 900 clamp(22px, 3.4vw, 32px)/1.3 var(--font-display); }
.b11-sec__mark { padding: 0 6px; background: linear-gradient(transparent 58%, rgba(255, 214, 102, .8) 58%); }
.b11-sec h2 small { font-family: var(--font); }
.b11-sec__more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; }
.b11-sec__more:hover { text-decoration: underline wavy; text-underline-offset: 4px; }

/* ---------- hero: lined paper note + stacked polaroids ---------- */
.b11-hero { padding: clamp(28px, 5vw, 60px) 0 6px; }
.b11-hero__in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; align-items: center; }
@media (min-width: 860px) { .b11-hero__in { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 40px; } }
.b11-hero__paper, .b11-detail { position: relative; background: var(--card); box-shadow: var(--paper-shadow); }
.b11-hero__paper { padding: clamp(22px, 4vw, 40px); transform: rotate(-.9deg); background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(154, 91, 37, .13) 35px 36px); }
.b11-hero__paper::before, .b11-detail::before, .b11-foot__note::before, .b11-note::before {
  content: ""; position: absolute; top: -12px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  background: var(--tape); clip-path: var(--tape-clip); transform: rotate(-3deg); pointer-events: none;
}
.b11-hero__date { color: var(--muted); font-size: 14px; font-weight: 700; letter-spacing: .08em; }
.b11-hero h1 { display: grid; gap: 10px; margin-top: 10px; }
.b11-hero__brand { font: 900 clamp(38px, 7vw, 74px)/1.1 var(--font-display); color: var(--accent-ink); }
.b11-hero__tag { justify-self: start; padding: 0 6px; font: 700 clamp(17px, 2.4vw, 24px)/1.5 var(--font-display); background: linear-gradient(transparent 55%, rgba(255, 214, 102, .75) 55%); }
.b11-hero__lead { max-width: 52ch; margin-top: 14px; color: var(--muted); }
.b11-herosearch { max-width: 520px; margin-top: 20px; }
.b11-herosearch input { border: 2px solid var(--accent); background: #fff; }

.b11-polas { display: flex; justify-content: center; padding: 14px 0; }
.b11-pola { position: relative; flex: 0 1 clamp(108px, 20vw, 176px); min-width: 0; padding: 7px 7px 10px; background: #fff; box-shadow: var(--paper-shadow); transition: transform .25s; }
.b11-pola + .b11-pola { margin-left: -22px; }
.b11-pola img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b11-pola span { display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 13px/1.4 var(--font-display); text-align: center; }
.b11-pola--1 { transform: rotate(-7deg); z-index: 1; }
.b11-pola--2 { transform: rotate(2deg) translateY(-14px); z-index: 2; }
.b11-pola--3 { transform: rotate(8deg); z-index: 1; }
.b11-pola:hover { transform: rotate(0) translateY(-8px) scale(1.05); z-index: 5; }

/* ---------- note wall: two staggered columns ---------- */
.b11-wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 30px 16px; padding-bottom: 36px; }
.b11-wall > :nth-child(even) { margin-top: 38px; }
.b11-note { position: relative; display: block; padding: 12px 12px 16px; background: var(--card); box-shadow: var(--paper-shadow); transform: rotate(-1.2deg); transition: transform .25s, box-shadow .25s; }
.b11-wall > :nth-child(even) { transform: rotate(1.3deg); }
.b11-wall > :nth-child(3n) { transform: rotate(.6deg); }
.b11-wall > :nth-child(3n+2) { background: #fff3d2; }
.b11-wall > :nth-child(5n) { background: #ffeceb; }
.b11-wall > :nth-child(3n+2)::before { background: rgba(236, 164, 164, .65); transform: rotate(4deg); }
.b11-wall > :nth-child(3n)::before { background: rgba(160, 200, 150, .7); transform: rotate(-6deg); }
.b11-note:hover { transform: rotate(0) translateY(-5px); box-shadow: 0 2px 2px rgba(74, 54, 34, .2), 0 16px 28px rgba(74, 54, 34, .2); }
.b11-note__pic { position: relative; display: block; }
.b11-note__pic img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border: 1px solid var(--line); }
.b11-note__stamp { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; min-width: 56px; min-height: 56px; padding: 4px 8px; border: 2px dashed var(--accent); border-radius: 50%; background: rgba(255, 250, 240, .92); color: var(--accent-ink); font: 900 12px/1.25 var(--font-display); text-align: center; transform: rotate(-12deg); }
.b11-note__body { display: grid; gap: 4px; margin-top: 12px; min-width: 0; }
.b11-note__t { font: 900 18px/1.4 var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b11-note__m { color: var(--muted); font-size: 13px; }
.b11-note__x { display: none; color: var(--muted); font-size: 14px; line-height: 1.8; }
@media (min-width: 720px) {
  .b11-wall { gap: 40px 34px; }
  .b11-wall > :nth-child(even) { margin-top: 56px; }
  .b11-note { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: start; padding: 16px; }
  .b11-note__body { margin-top: 2px; }
  .b11-note__x { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
}

/* tags & to-do list */
.b11-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.b11-tag { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 18px; border: 1px dashed var(--accent); background: #fff3d2; font: 700 16px/1 var(--font-display); transform: rotate(-1.5deg); transition: transform .2s; }
.b11-tag:nth-child(even) { background: #ffeceb; transform: rotate(1.6deg); }
.b11-tag:nth-child(3n) { background: #e6f0dc; }
.b11-tag:hover { transform: rotate(0) translateY(-3px); }
.b11-tag em { color: var(--muted); font: 700 12px/1 var(--font); }
.b11-todos { padding: 6px 22px; background: var(--card); box-shadow: var(--paper-shadow); background-image: repeating-linear-gradient(to bottom, transparent 0 51px, rgba(154, 91, 37, .12) 51px 52px); }
.b11-todo { display: flex; align-items: center; gap: 14px; min-height: 52px; }
.b11-todo__box { position: relative; flex: none; width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 3px; }
.b11-todo:hover .b11-todo__box::after { content: "✓"; position: absolute; left: 1px; top: -8px; color: var(--accent); font-size: 20px; font-weight: 900; }
.b11-todo__t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 19px/1.4 var(--font-display); }
.b11-todo__m { flex: none; color: var(--muted); font-size: 13px; }
.b11-todo:hover .b11-todo__t { text-decoration: line-through wavy var(--accent-2); text-underline-offset: 3px; }

/* ---------- list pages ---------- */
.b11-pagehead h1 { font-family: var(--font-display); font-weight: 900; color: var(--accent-ink); }
.b11-result, .b11-fact, .b11-faq details { background: var(--card); box-shadow: var(--paper-shadow); border: 0; }
.b11-result:nth-child(even) { transform: rotate(.5deg); }
.b11-result:nth-child(odd) { transform: rotate(-.4deg); }
.b11-filter__list a[aria-current="page"] { background: var(--accent); }
.b11-sf input { border: 2px solid var(--accent); background: #fff; }
.b11-notfound__code, .b11-notfound h1 { font-family: var(--font-display); }
.b11-notfound__code { color: var(--accent); text-shadow: 4px 4px 0 var(--tape); }
.b11-btn { border: 2px solid var(--accent); border-radius: var(--btn-r); background: var(--card); box-shadow: 3px 3px 0 var(--accent); color: var(--accent-ink); }
.b11-btn:hover { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--accent); }
.b11-btn--primary { background: var(--accent); color: var(--on-accent); }
.b11-btn--primary:hover { color: var(--on-accent); }
.sd-pagination .page-numbers { border-width: 2px; border-color: var(--accent); background: var(--card); }
.sd-pagination .current { background: var(--accent); color: var(--on-accent); }

/* ---------- detail: one big taped note ---------- */
.b11-detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 22px; padding: clamp(22px, 4vw, 40px); transform: rotate(-.3deg); }
@media (min-width: 820px) { .b11-detail { grid-template-columns: 290px minmax(0, 1fr); gap: 44px; } }
.b11-detail__pola { justify-self: center; width: min(290px, 78vw); padding: 12px 12px 46px; background: #fff; box-shadow: var(--paper-shadow); transform: rotate(2deg); }
.b11-detail__pola img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b11-detail h1 { font: 900 clamp(28px, 4.4vw, 46px)/1.25 var(--font-display); color: var(--accent-ink); }
.b11-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b11-pill { display: inline-flex; align-items: center; min-height: 34px; padding: 2px 14px; background: var(--tape); clip-path: var(--tape-clip); color: var(--ink); font-size: 13px; font-weight: 700; }
a.b11-pill { min-height: 44px; }
a.b11-pill:hover { background: var(--accent); color: var(--on-accent); }
.b11-pill--hot { background: rgba(236, 164, 164, .75); }
.b11-syn { margin-top: 18px; padding: 0 4px; font-size: 16px; line-height: 36px; background-image: repeating-linear-gradient(to bottom, transparent 0 35px, rgba(154, 91, 37, .2) 35px 36px); }
.b11-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.b11-note-hint, .b11-detail .b11-note { margin-top: 16px; }
.b11-player { width: min(100%, 380px); margin: 6px auto 0; padding: 12px 12px 46px; background: #fff; box-shadow: var(--paper-shadow); transform: rotate(-1deg); border-radius: 0; }
.b11-player .sd-player { border-radius: 0; }
.b11-eps { display: flex; flex-wrap: wrap; gap: 12px; max-height: 320px; overflow-y: auto; padding: 8px 6px 12px; }
.b11-eps a, .b11-eps span { display: inline-grid; place-items: center; width: 54px; height: 54px; border: 2px dashed var(--accent); border-radius: 6px; background: var(--card); font: 900 20px/1 var(--font-display); color: var(--accent-ink); transition: transform .2s, background .2s; }
.b11-eps > :nth-child(odd) { transform: rotate(-3deg); }
.b11-eps > :nth-child(even) { transform: rotate(2.5deg); }
.b11-eps a:hover { transform: rotate(0) scale(1.1); background: #fff3d2; }
.b11-eps .is-current { border-style: solid; background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--accent); }
.b11-eps .is-off { opacity: .45; }
.b11-facts { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.b11-fact { padding: 16px; background: #fff3d2; transform: rotate(-1.4deg); }
.b11-fact:nth-child(even) { background: #ffeceb; transform: rotate(1.2deg); }
.b11-fact:nth-child(3n) { background: #e6f0dc; transform: rotate(.5deg); }
.b11-fact dd { font: 900 18px/1.4 var(--font-display); }
.b11-faq details { margin-top: 12px; }
.b11-block > .b11-sec { margin-bottom: 16px; }
.b11-watch__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.b11-watch__head h1 { font-family: var(--font-display); color: var(--accent-ink); }

/* ---------- search / drawer skin ---------- */
.b11-search { background: rgba(74, 54, 34, .5); }
.b11-search__box { border: 2px dashed var(--accent); box-shadow: var(--paper-shadow); }
.b11-drawer { border-left: 3px solid var(--accent); }
.b11-drawer__list a { font-family: var(--font-display); font-size: 19px; border-bottom: 1px dashed var(--accent-2); }
.b11-overlay { background: rgba(74, 54, 34, .5); }

/* ---------- footer: kraft paper with torn top ---------- */
.b11-foot { position: relative; margin-top: clamp(64px, 9vw, 110px); padding: 46px 0 34px; background: #e9d8b4; }
.b11-foot::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; background: linear-gradient(135deg, transparent 75%, #e9d8b4 75%) 0 0 / 16px 16px, linear-gradient(45deg, transparent 75%, #e9d8b4 75%) 0 0 / 16px 16px; }
.b11-foot__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 30px; }
@media (min-width: 820px) { .b11-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; } }
.b11-foot__note { position: relative; padding: 22px 20px 18px; background: var(--card); box-shadow: var(--paper-shadow); font-size: 14px; color: var(--muted); }
.b11-foot__note:nth-child(1) { transform: rotate(-.8deg); }
.b11-foot__note:nth-child(2) { transform: rotate(.9deg); background: #fff3d2; }
.b11-foot__note:nth-child(3) { transform: rotate(-.5deg); background: #ffeceb; }
.b11-foot__note p + p { margin-top: 8px; }
.b11-foot h2 { margin-bottom: 6px; color: var(--accent-ink); font: 900 20px/1.4 var(--font-display); }
.b11-foot li a { display: inline-flex; align-items: center; min-height: 40px; }
.b11-foot li a:hover { text-decoration: underline wavy; text-underline-offset: 4px; }
.b11-foot__copy { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }

/* ==== batch4 variant: sd-c59 note-grid #c12c92/#e98a75 ==== */
:root{--accent:#c12c92;--accent-2:#e98a75;--accent-soft:#c12c9222;--radius:0;--wrap:1240px;--font:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif;--font-head:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
body{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
h1,h2,h3,.site-title,.brand,.entry-title{font-family:"PingFang TC","Noto Sans TC","Microsoft JhengHei",sans-serif}
.wrap,.container,.site-inner{max-width:1240px}
