/*
Theme Name: 最短劇吧 卡片瀑布
Theme URI: https://example.invalid/
Author: SD Network
Description: 卡片瀑布風短劇主題：錯落多欄 masonry、柔和陰影、圓角卡片、粉橘漸層強調、懸停輕微上浮。適用於爆劇網。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-ju
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--bg --surface --ink --muted --line --accent --accent-2 --accent-soft
              --on-accent --radius --wrap --gut --font --scrim
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.7 var(--font); overflow-x: clip;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.sd-no-scroll { overflow: hidden; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.jj-wrap { width: 100%; max-width: var(--wrap, 1240px); margin: 0 auto; padding: 0 var(--gut, 20px); }
.sr-only, .screen-reader-text {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip { position: absolute; left: 12px; top: -80px; z-index: 999; padding: 12px 18px; background: var(--ink); color: var(--bg); }
.skip:focus { top: 12px; }

/* ---------- 搜尋表單 ---------- */
.jj-sf { display: flex; gap: 8px; align-items: stretch; }
.jj-sf input[type="search"] {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius);
  -webkit-appearance: none; appearance: none;
}
.jj-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.jj-sf button {
  flex: 0 0 auto; min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius);
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- 搜尋面板 / 遮罩 / 手機抽屜（app.js 以 id 綁定） ---------- */
.jj-search {
  position: fixed; inset: 0; z-index: 200; display: grid; align-items: start; justify-items: center;
  padding: 12vh 16px 16px; background: var(--scrim, rgba(0, 0, 0, .55));
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.jj-search.is-open { opacity: 1; visibility: visible; }
.jj-search__box {
  width: min(640px, 100%); max-height: 80vh; overflow: auto; padding: 20px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius);
}
.jj-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.jj-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.jj-tags a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px;
}
.jj-tags a:hover { border-color: var(--accent); color: var(--accent); }

.jj-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.jj-overlay.is-open { opacity: 1; }
.jj-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 160; width: min(320px, 86vw);
  padding: 68px 22px 28px; overflow: auto; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line);
  transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility .25s;
}
.jj-drawer.is-open { transform: none; visibility: visible; }
.jj-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.jj-drawer__list { list-style: none; margin: 0; padding: 0; }
.jj-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.jj-drawer__list [aria-current="page"], .jj-drawer__list .current-menu-item > a { color: var(--accent); font-weight: 700; }

/* ---------- 麵包屑 ---------- */
.sd-crumbs { padding: 14px 0 4px; font-size: 13px; color: var(--muted); }
.sd-crumbs__list { display: flex; flex-wrap: wrap; align-items: center; list-style: none; margin: 0; padding: 0; }
.sd-crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.sd-crumbs li + li::before { content: "/"; margin: 0 8px; opacity: .5; }
.sd-crumbs a { display: inline-flex; align-items: center; min-height: 44px; }
.sd-crumbs a:hover { color: var(--accent); }
.sd-crumbs [aria-current="page"] { color: var(--ink); max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- 分頁 ---------- */
.sd-pagination { margin: 36px 0 8px; }
.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 14px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 600;
}
.sd-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.sd-pagination .current { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.sd-pagination .dots { background: none; border-color: transparent; }

/* ---------- 播放器 / 提示框 ---------- */
.sd-player { background: #000; overflow: hidden; }
.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: 18px; color: #e5e7eb; font-size: 14px; }
.sd-player__fallback a { text-decoration: underline; }
.sd-callout { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 20px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.sd-callout__body { flex: 1 1 200px; }
.sd-callout__title { font-weight: 800; margin-bottom: 4px; }
.sd-callout__desc { color: var(--muted); font-size: 14px; }
.sd-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 0; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); font-weight: 700;
}

/* ---------- 版面骨架（詳情 / 分集）：左播放器、右選集；≤900px 上下堆疊 ---------- */
.jj-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.jj-dgrid__l, .jj-dgrid__r { min-width: 0; }
.jj-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.jj-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jj-pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; font-size: 13px; border: 1px solid var(--line); border-radius: 999px; }
a.jj-pill { min-height: 44px; }
.jj-pill--accent { border-color: var(--accent); color: var(--accent); }
.jj-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.jj-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius); font-weight: 600;
}
.jj-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jj-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.jj-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.jj-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.jj-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.jj-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.jj-prose { max-width: 70ch; }
.jj-prose img { height: auto; }
.jj-faq details { border-bottom: 1px solid var(--line); }
.jj-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.jj-faq details p { color: var(--muted); }
.jj-empty, .jj-notfound { padding: 48px 0; }
.jj-notfound__search { max-width: 520px; margin: 22px 0; }
.jj-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.jj-results { display: grid; gap: 0; }
.jj-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.jj-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.jj-result__body { display: grid; gap: 4px; min-width: 0; }
.jj-result__t { font-weight: 700; overflow-wrap: anywhere; }
.jj-result__m, .jj-result__x { font-size: 13px; color: var(--muted); }
.jj-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.jj-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.jj-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.jj-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.jj-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.jj-filter__list::-webkit-scrollbar { display: none; }
.jj-filter__list a { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; white-space: nowrap; }

/* ---------- 選集容器（app.js 會把目前集捲到可視範圍） ---------- */
[data-eps] { position: relative; }

@media (max-width: 900px) {
  .jj-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .jj-dgrid__l .sd-player, .jj-dgrid__l .jj-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .jj-filter__row { gap: 8px; }
  .sd-crumbs [aria-current="page"] { max-width: 48vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   爆劇網 · 「卡片瀑布」：錯落 masonry / 柔和陰影 / 圓角卡片 / 粉橘漸層 / 懸停輕微上浮
   ========================================================================== */

:root {
  --bg: #fff7f4;
  --surface: #ffffff;
  --ink: #2b1d24;
  --muted: #8b7480;
  --line: #f6e1e5;
  --accent: #ff5c8a;
  --accent-2: #ff9a3c;
  --accent-soft: rgba(255, 92, 138, .14);
  --on-accent: #ffffff;
  --radius: 20px;
  --wrap: 1280px;
  --gut: 22px;
  --scrim: rgba(43, 29, 36, .5);
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --shadow: 0 10px 30px -14px rgba(255, 92, 138, .35), 0 2px 8px rgba(43, 29, 36, .06);
  --shadow-up: 0 22px 44px -16px rgba(255, 92, 138, .5), 0 6px 16px rgba(43, 29, 36, .08);
  --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", "Heiti TC", system-ui, -apple-system, "Segoe UI", sans-serif;
}

body { background: var(--bg); background-image: radial-gradient(700px 360px at 0 0, rgba(255, 154, 60, .12), transparent 70%), radial-gradient(700px 400px at 100% 0, var(--accent-soft), transparent 70%); background-repeat: no-repeat; }
h1, h2, h3 { font-weight: 800; }
a:hover { color: var(--accent); }
.jj-grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }

/* ---------- 頁首：懸浮膠囊 ---------- */
.jj-head { position: sticky; top: 0; z-index: 60; padding-top: 12px; }
.jj-bar { display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 0 12px 0 18px; border-radius: 999px; background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); transition: box-shadow .25s; }
.jj-head.is-stuck .jj-bar { box-shadow: var(--shadow-up); }
.jj-logo { display: inline-flex; align-items: center; min-height: 44px; gap: 10px; font-weight: 800; font-size: 19px; white-space: nowrap; }
.jj-logo:hover { color: var(--ink); }
.jj-logo__img { max-height: 38px; width: auto; }
.jj-logo__mark { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 14px; background: var(--grad); color: #fff; font-size: 19px; font-weight: 800; box-shadow: 0 6px 14px -4px rgba(255, 92, 138, .6); transform: rotate(-6deg); }
.jj-nav { flex: 1 1 auto; min-width: 0; }
.jj-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.jj-nav__list::-webkit-scrollbar { display: none; }
.jj-nav__list a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--muted); }
.jj-nav__list a:hover { background: var(--accent-soft); color: var(--accent); }
.jj-nav__list [aria-current="page"], .jj-nav__list .current-menu-item > a { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(255, 92, 138, .7); }
.jj-headsearch { flex: 0 1 270px; }
.jj-headsearch input[type="search"] { border-radius: 999px; border-color: transparent; background: #fdeef0; padding: 0 18px; }
.jj-headsearch button { border-radius: 999px; background: var(--grad); }
.jj-tools { display: none; gap: 6px; margin-left: auto; }
.jj-icon-btn { display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fdeef0; }
.jj-icon-btn:hover { color: var(--accent); }

/* ---------- 通用元件 ---------- */
.jj-btn { min-height: 48px; padding: 0 26px; border-radius: 999px; border: 0; background: var(--surface); box-shadow: var(--shadow); font-weight: 800; transition: transform .2s, box-shadow .2s; }
.jj-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); }
.jj-btn--primary, .sd-btn { background: var(--grad); color: #fff; }
.jj-btn--primary:hover { color: #fff; }
.sd-btn { border-radius: 999px; }
.jj-pill { border: 0; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(43, 29, 36, .08); font-weight: 600; }
.jj-pill--accent { background: var(--grad); color: #fff; }
.jj-pill--link:hover { color: var(--accent); box-shadow: var(--shadow); }
.jj-search__box { border: 0; border-radius: 28px; box-shadow: var(--shadow-up); }
.jj-sf input[type="search"] { border-radius: 999px; border-color: transparent; background: #fdeef0; padding: 0 20px; }
.jj-sf button { border-radius: 999px; background: var(--grad); }
.jj-tags a { border: 0; background: #fdeef0; font-weight: 600; }
.jj-drawer { border: 0; border-radius: 28px 0 0 28px; }
.jj-drawer__list a { border-bottom-color: var(--line); font-weight: 700; }

.jj-sec { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 22px; }
.jj-sec h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(22px, 2.6vw, 30px); }
.jj-sec h2::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px var(--accent-soft); }
.jj-sec__more { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; background: #fff; box-shadow: 0 2px 8px rgba(43, 29, 36, .08); font-size: 14px; font-weight: 700; color: var(--muted); }
.jj-sec__more:hover { color: var(--accent); box-shadow: var(--shadow); }
.jj-block { margin-top: 56px; }

/* ---------- 主推拼貼 ---------- */
.jj-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 22px; padding: clamp(28px, 4vw, 56px); border-radius: 36px; background: linear-gradient(135deg, #ffe0ea 0%, #ffeede 100%); box-shadow: var(--shadow); overflow: hidden; }
.jj-eyebrow { display: inline-flex; align-items: center; min-height: 34px; margin-bottom: 18px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .75); font-size: 13px; font-weight: 700; color: var(--accent); }
.jj-hero h1 { display: grid; gap: 10px; font-size: clamp(40px, 6.4vw, 80px); line-height: 1.06; }
.jj-h1__tag { font-size: clamp(19px, 2.4vw, 30px); font-weight: 700; line-height: 1.4; }
.jj-hero__lead { max-width: 30em; margin: 18px 0 24px; color: #6d5560; }
.jj-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.jj-hero__stack { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; padding: 8px 0; }
.jj-hero__stack .jj-card:nth-child(1) { transform: rotate(-3deg) translateY(10px); }
.jj-hero__stack .jj-card:nth-child(3) { transform: rotate(3deg) translateY(16px); }
.jj-hero__stack .jj-card:nth-child(2) { z-index: 1; }
.jj-hero__stack .jj-card:hover { transform: translateY(-6px) rotate(0); }

/* ---------- 瀑布卡片 ---------- */
.jj-masonry { column-count: 5; column-gap: 20px; }
.jj-card { display: block; min-width: 0; break-inside: avoid; margin: 0 0 20px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), box-shadow .28s; }
.jj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-up); color: var(--ink); }
.jj-card__media { position: relative; display: block; overflow: hidden; background: #fde4ea; }
.jj-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.jj-card:hover .jj-card__media img { transform: scale(1.05); }
.jj-card--v0 .jj-card__media { aspect-ratio: 2 / 3; }
.jj-card--v1 .jj-card__media { aspect-ratio: 4 / 5; }
.jj-card--v2 .jj-card__media { aspect-ratio: 3 / 4.4; }
.jj-card--v3 .jj-card__media { aspect-ratio: 1 / 1.12; }
.jj-tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; min-height: 26px; padding: 0 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; font-weight: 800; box-shadow: 0 6px 12px -6px rgba(255, 92, 138, .8); }
.jj-tag--new { left: auto; right: 10px; background: #fff; color: var(--accent); box-shadow: 0 4px 10px rgba(43, 29, 36, .18); }
.jj-card__b { display: grid; gap: 3px; padding: 12px 14px 14px; }
.jj-card__t { font-weight: 800; font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.jj-card__m { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 分類氣泡 ---------- */
.jj-bubbles { display: flex; flex-wrap: wrap; gap: 14px; }
.jj-bubble { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-weight: 800; transition: transform .22s, box-shadow .22s; }
.jj-bubble em { font-style: normal; font-size: 12px; padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.jj-bubble:nth-child(3n+1) { background: var(--grad); color: #fff; }
.jj-bubble:nth-child(3n+1) em { background: rgba(255, 255, 255, .28); color: #fff; }
.jj-bubble:nth-child(3n+2) { background: #fff0e0; }
.jj-bubble:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: var(--shadow-up); color: var(--ink); }
.jj-bubble:nth-child(3n+1):hover { color: #fff; }

/* ---------- 爆款榜 ---------- */
.jj-top { list-style: none; margin: 0; padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; border-radius: 30px; background: #fff; box-shadow: var(--shadow); }
.jj-top a { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 10px; border-radius: 22px; transition: background .2s, transform .2s; }
.jj-top a:hover { background: #fff3f5; transform: translateY(-2px); color: var(--ink); }
.jj-top__no { flex: 0 0 34px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fde4ea; color: var(--accent); font-weight: 800; }
.jj-top li:nth-child(-n+3) .jj-top__no { background: var(--grad); color: #fff; }
.jj-top__img img { width: 56px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; }
.jj-top__b { display: grid; gap: 3px; min-width: 0; }
.jj-top__t { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jj-top__m { font-size: 12.5px; color: var(--muted); }

/* ---------- 內頁抬頭 / 篩選條 ---------- */
.jj-pagehead { padding: 40px 0 16px; }
.jj-pagehead h1 { font-size: clamp(32px, 5vw, 56px); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.jj-pagehead p { margin: 8px 0 0; color: var(--muted); }
.jj-filter { padding: 14px 16px; margin-bottom: 26px; border-radius: 26px; background: #fff; box-shadow: var(--shadow); }
.jj-filter__label { font-size: 13px; font-weight: 800; color: var(--accent); }
.jj-filter__list { gap: 6px; }
.jj-filter__list a { border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.jj-filter__list a:hover { background: var(--accent-soft); color: var(--accent); }
.jj-filter__list [aria-current="page"] { background: var(--grad); color: #fff; font-weight: 800; }

/* ---------- 詳情 / 分集 ---------- */
.jj-detail { margin-top: 10px; padding: clamp(18px, 3vw, 36px); border-radius: 32px; background: #fff; box-shadow: var(--shadow); }
.jj-dhead { padding-bottom: 22px; }
.jj-dhead h1 { font-size: clamp(28px, 4.4vw, 50px); line-height: 1.15; overflow-wrap: anywhere; }
.jj-player { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-up); }
.jj-dposter img { border-radius: 26px; box-shadow: var(--shadow-up); }
.jj-syn { color: #5d4650; }
.jj-h2 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 22px; }
.jj-h2 small { padding: 2px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 800; }
.jj-eps-sec { margin-top: 24px; }
.jj-eps { display: flex; flex-wrap: wrap; gap: 10px; max-height: 360px; overflow-y: auto; padding: 4px; }
.jj-ep { display: inline-flex; align-items: center; justify-content: center; min-width: 48px; min-height: 48px; padding: 0 8px; border-radius: 16px; background: #fdeef0; font-weight: 800; font-variant-numeric: tabular-nums; transition: transform .2s, box-shadow .2s; }
a.jj-ep:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--accent); }
.jj-ep.is-current { background: var(--grad); color: #fff; box-shadow: 0 8px 16px -8px rgba(255, 92, 138, .8); }
.jj-ep.is-off { opacity: .4; }
.jj-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0; }
.jj-fact { padding: 16px 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.jj-fact--wide { grid-column: 1 / -1; }
.jj-fact dt { font-size: 12.5px; font-weight: 700; color: var(--accent); }
.jj-fact dd { margin: 4px 0 0; font-weight: 800; overflow-wrap: anywhere; }
.jj-faq details { margin-bottom: 12px; padding: 0 20px; border: 0; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.jj-faq summary { min-height: 58px; font-weight: 800; }
.jj-pn a { border: 0; border-radius: 999px; box-shadow: var(--shadow); font-weight: 800; }
.jj-pn a.is-next { background: var(--grad); color: #fff; }
.jj-note { border: 0; border-radius: 20px; background: #fff3f5; }
.jj-prose { color: #5d4650; }
.jj-side-link { font-weight: 800; }
.jj-block .jj-masonry { margin-top: 0; }

/* ---------- 搜尋 / 404 ---------- */
.jj-result { padding: 14px; margin-bottom: 14px; border: 0; border-radius: 24px; background: #fff; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s; }
.jj-result:hover { transform: translateY(-3px); box-shadow: var(--shadow-up); color: var(--ink); }
.jj-result__img { border-radius: 16px; }
.jj-empty { text-align: center; }
.jj-empty__title { font-size: 26px; font-weight: 800; }
.jj-notfound { text-align: center; }
.jj-notfound__code { margin: 0; font: 900 clamp(100px, 20vw, 230px)/1 var(--font); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.jj-notfound h1 { font-size: clamp(28px, 4vw, 44px); }
.jj-notfound__desc { margin: 10px auto 0; max-width: 32em; color: var(--muted); }
.jj-notfound__search { margin-inline: auto; }
.jj-notfound__actions { justify-content: center; }
.jj-article { padding: clamp(20px, 3vw, 40px); border-radius: 30px; background: #fff; box-shadow: var(--shadow); margin-top: 8px; }

/* ---------- 分頁 ---------- */
.sd-pagination .page-numbers { border: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); color: var(--muted); font-weight: 800; }
.sd-pagination a.page-numbers:hover { color: var(--accent); }
.sd-pagination .current { background: var(--grad); color: #fff; }
.sd-pagination .dots { box-shadow: none; background: none; }

/* ---------- 頁尾 ---------- */
.jj-foot { margin-top: 80px; padding-bottom: 28px; }
.jj-foot__panel { padding: clamp(24px, 4vw, 48px); border-radius: 36px; background: linear-gradient(135deg, #ffe0ea 0%, #ffeede 100%); box-shadow: var(--shadow); }
.jj-foot__grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.2fr) minmax(0, 1.2fr); gap: 36px; }
.jj-foot__name { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 22px; font-weight: 800; }
.jj-foot__note { font-size: 13px; color: #6d5560; }
.jj-foot h2 { margin-bottom: 12px; font-size: 15px; color: var(--accent); }
.jj-foot__chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.jj-foot__chips a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, .8); font-size: 14px; font-weight: 600; }
.jj-foot__chips a:hover { background: #fff; color: var(--accent); box-shadow: var(--shadow); }
.jj-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(43, 29, 36, .12); font-size: 12.5px; color: #6d5560; }

/* ---------- 響應式 ---------- */
@media (max-width: 1180px) { .jj-masonry { column-count: 4; } }
@media (max-width: 960px) {
  .jj-nav, .jj-headsearch { display: none; }
  .jj-tools { display: flex; }
  .jj-bar { min-height: 60px; }
  .jj-masonry { column-count: 3; column-gap: 16px; }
  .jj-card { margin-bottom: 16px; }
  .jj-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .jj-hero__stack { max-width: 520px; }
  .jj-top { grid-template-columns: minmax(0, 1fr); }
  .jj-foot__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .jj-foot__brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --gut: 14px; --radius: 18px; }
  .jj-masonry { column-count: 2; column-gap: 12px; }
  .jj-card { margin-bottom: 12px; }
  .jj-card__b { padding: 10px 11px 12px; }
  .jj-hero { border-radius: 28px; }
  .jj-block { margin-top: 44px; }
  .jj-top { padding: 12px; border-radius: 24px; }
  .jj-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .jj-detail { border-radius: 26px; }
  .jj-hero__cta .jj-btn { flex: 1 1 calc(50% - 6px); padding: 0 12px; }
}

/* ==== batch4 variant: sd-c18 card-waterfall #54eb13/#73fbdb ==== */
:root{--accent:#54eb13;--accent-2:#73fbdb;--accent-soft:#54eb1322;--radius:12px;--wrap:1180px;--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:1180px}
