/*
Theme Name: 寵短劇吧 桃色玻璃
Theme URI: https://example.invalid/
Author: SD Network
Description: 桃色玻璃風短劇主題：桃色漸層底配玻璃霧面卡片（backdrop-filter），三欄瀑布流、卡片微上浮陰影，詳情頁以磨砂大封面開場。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b14
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--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; }

.b14-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; }

/* ---------- 搜尋表單 ---------- */
.b14-sf { display: flex; gap: 8px; align-items: stretch; }
.b14-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;
}
.b14-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b14-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 綁定） ---------- */
.b14-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;
}
.b14-search.is-open { opacity: 1; visibility: visible; }
.b14-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);
}
.b14-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b14-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b14-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;
}
.b14-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b14-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b14-overlay.is-open { opacity: 1; }
.b14-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;
}
.b14-drawer.is-open { transform: none; visibility: visible; }
.b14-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b14-drawer__list { list-style: none; margin: 0; padding: 0; }
.b14-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b14-drawer__list [aria-current="page"], .b14-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 上下堆疊 ---------- */
.b14-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b14-dgrid__l, .b14-dgrid__r { min-width: 0; }
.b14-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b14-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b14-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.b14-pill { min-height: 44px; }
.b14-pill--accent { border-color: var(--accent); color: var(--accent); }
.b14-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b14-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;
}
.b14-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b14-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b14-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b14-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b14-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b14-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b14-prose { max-width: 70ch; }
.b14-prose img { height: auto; }
.b14-faq details { border-bottom: 1px solid var(--line); }
.b14-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b14-faq details p { color: var(--muted); }
.b14-empty, .b14-notfound { padding: 48px 0; }
.b14-notfound__search { max-width: 520px; margin: 22px 0; }
.b14-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b14-results { display: grid; gap: 0; }
.b14-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b14-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b14-result__body { display: grid; gap: 4px; min-width: 0; }
.b14-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b14-result__m, .b14-result__x { font-size: 13px; color: var(--muted); }
.b14-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b14-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b14-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b14-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b14-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b14-filter__list::-webkit-scrollbar { display: none; }
.b14-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; }

/* ---------- 共用預設（各主題在 theme.css 覆寫） ---------- */
.b14-block { margin-top: clamp(40px, 6vw, 72px); }
.b14-pagehead { padding: 26px 0 20px; }
.b14-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b14-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b14-dhead { padding: 8px 0 22px; }
.b14-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b14-syn { font-size: 16px; line-height: 1.9; }
.b14-h2 { font-size: 20px; margin: 0 0 14px; }
.b14-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b14-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b14-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b14-fact dt { font-size: 12.5px; color: var(--muted); }
.b14-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b14-fact--wide { grid-column: 1 / -1; }
.b14-article { max-width: 860px; }
.b14-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b14-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b14-notfound__desc { max-width: 34em; color: var(--muted); }
.b14-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b14-result:hover .b14-result__t { color: var(--accent); }
.b14-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b14-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b14-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b14-dgrid__l .sd-player, .b14-dgrid__l .b14-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b14-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; }
}


/* ==========================================================================
 * 「桃色玻璃」配色與版面
 * 桃色漸層底 + 玻璃霧面卡片（backdrop-filter），三欄瀑布流，卡片微上浮。
 * ======================================================================== */

:root {
    --bg: #ffe9f0;
    --surface: rgba(255, 255, 255, 0.55);
    --paper: rgba(255, 255, 255, 0.72);
    --ink: #3a2430;
    --muted: #7d6270;
    --line: rgba(226, 150, 175, 0.42);
    --accent: #e2648c;
    --accent-2: #f2a2b9;
    --accent-soft: rgba(226, 100, 140, 0.12);
    --on-accent: #ffffff;
    --radius: 18px;
    --wrap: 1160px;
    --gut: 20px;
    --glass: rgba(255, 255, 255, 0.52);
    --glass-strong: rgba(255, 255, 255, 0.7);
    --glass-line: rgba(255, 255, 255, 0.82);
    --glass-shadow: 0 8px 24px rgba(198, 92, 132, 0.14);
    --glass-shadow-hi: 0 16px 36px rgba(198, 92, 132, 0.24);
    --font: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
    --scrim: rgba(58, 36, 48, 0.42);
}

body {
    color: var(--ink);
    font-family: var(--font);
    background-color: #ffe9f0;
    background-image:
        radial-gradient(1100px 560px at 8% -8%, #ffd7e5 0%, rgba(255, 215, 229, 0) 62%),
        radial-gradient(900px 520px at 94% 2%, #ffe3d0 0%, rgba(255, 227, 208, 0) 58%),
        linear-gradient(168deg, #fff0f6 0%, #ffe6ee 46%, #f8e9ff 100%);
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }

.b14-main { padding-top: 6px; }

/* ---------- 玻璃浮條 ---------- */
.b14-head {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 10px 0 4px;
}

.b14-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px 6px 16px;
    border-radius: 999px;
    background: var(--glass-strong);
    -webkit-backdrop-filter: blur(18px) saturate(170%);
    backdrop-filter: blur(18px) saturate(170%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
}

.b14-brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink);
    flex: 0 0 auto;
}

.b14-brand__dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px rgba(226, 100, 140, 0.16);
}

.b14-brand__tx { font-size: 16px; font-weight: 800; letter-spacing: 0.03em; }
.b14-brand img { max-height: 40px; width: auto; }

.b14-nav { margin-left: auto; min-width: 0; }

.b14-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.b14-nav__list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 13.5px;
    text-decoration: none;
    color: var(--ink);
    white-space: nowrap;
}

.b14-nav__list a:hover,
.b14-nav__list a[aria-current="page"] {
    background: var(--accent-soft);
    color: var(--accent);
}

.b14-tools { display: flex; gap: 6px; flex: 0 0 auto; }

.b14-tool {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--glass-line);
    background: var(--accent-soft);
    color: var(--accent);
    cursor: pointer;
}

.b14-tool:hover { background: rgba(226, 100, 140, 0.2); }

/* ---------- 主視覺 ---------- */
.b14-hero {
    position: relative;
    margin-top: 16px;
    padding: clamp(20px, 4vw, 42px);
    border-radius: 28px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    backdrop-filter: blur(20px) saturate(160%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.b14-hero__kick {
    margin: 0 0 10px;
    font-size: 11.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--accent);
}

.b14-hero__t { margin: 0 0 10px; }

.b14-hero__brand {
    display: block;
    font-size: clamp(30px, 5.4vw, 56px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.01em;
    background: linear-gradient(118deg, #c03f6b 0%, var(--accent) 46%, #f3a8bd 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.b14-hero__tag {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.b14-hero__deck {
    margin: 0;
    max-width: 60ch;
    font-size: 14px;
    line-height: 1.9;
    color: var(--muted);
}

.b14-hero__search { max-width: 540px; margin: 18px 0 0; }

.b14-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.b14-hero__stats li {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--glass-line);
}

.b14-hero__stats b { font-size: 18px; color: var(--accent); }
.b14-hero__stats span { font-size: 12px; color: var(--muted); }

.b14-hero__picks {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.b14-hero__picks a {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--glass-line);
    text-decoration: none;
    color: inherit;
}

.b14-hero__thumb {
    flex: 0 0 auto;
    width: 46px;
    height: 69px;
    object-fit: cover;
    border-radius: 9px;
}

.b14-hero__pick-t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
}

.b14-hero__pick-m { display: none; }

/* ---------- 區塊標題 ---------- */
.b14-block { margin-top: clamp(30px, 4.6vw, 52px); }

.b14-sec {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
}

.b14-sec__t {
    margin: 0;
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 800;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.b14-sec__t::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.b14-sec__more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 13px;
    text-decoration: none;
    color: var(--accent);
    white-space: nowrap;
}

/* ---------- 三欄瀑布 ---------- */
.b14-grid {
    column-count: 3;
    column-gap: 18px;
}

.b14-card {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 18px;
    border-radius: var(--radius);
    background: var(--glass);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
    overflow: hidden;
    transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.b14-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glass-shadow-hi);
}

.b14-card__link { display: block; text-decoration: none; color: inherit; }

.b14-card__fig { position: relative; display: block; }

.b14-card__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.b14-card__badge {
    position: absolute;
    left: 9px;
    top: 9px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10.5px;
    letter-spacing: 0.04em;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.84);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.b14-card__body { display: block; padding: 10px 12px 12px; }

.b14-card__t {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
    margin-bottom: 4px;
}

.b14-card__m {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- 題材藥丸／排行 ---------- */
.b14-duo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
    margin-top: clamp(30px, 4.6vw, 52px);
}

.b14-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.b14-chips a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    box-shadow: 0 4px 12px rgba(198, 92, 132, 0.1);
    color: var(--ink);
    text-decoration: none;
    font-size: 13px;
}

.b14-chips a:hover { background: var(--glass-strong); color: var(--accent); }
.b14-chips em { font-style: normal; font-size: 11.5px; color: var(--accent); }

.b14-top { list-style: none; margin: 0; padding: 0; }

.b14-top__i + .b14-top__i { margin-top: 6px; }

.b14-top a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 4px 12px;
    border-radius: 14px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    text-decoration: none;
    color: inherit;
    font-size: 13.5px;
}

.b14-top a:hover { background: var(--glass-strong); }

.b14-top__no { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.b14-top__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b14-top__b { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ---------- 劇集頁：磨砂大封面 ---------- */
.b14-cover {
    position: relative;
    margin: 14px 0 18px;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.42);
    box-shadow: var(--glass-shadow);
}

.b14-cover__bg {
    position: absolute;
    inset: -48px;
    overflow: hidden;
    opacity: 0.62;
    filter: blur(28px) saturate(160%);
    pointer-events: none;
}

.b14-cover__blur {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.b14-cover__in {
    position: relative;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: clamp(14px, 2.6vw, 30px);
    padding: clamp(16px, 3vw, 32px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.62));
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.b14-cover__poster { display: block; }

.b14-cover__poster img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(120, 24, 62, 0.28);
}

.b14-cover__genres { margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 6px; }

.b14-gal {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(226, 100, 140, 0.14);
    color: var(--accent);
    font-size: 12.5px;
    text-decoration: none;
}

.b14-gal:hover { background: rgba(226, 100, 140, 0.24); }

.b14-cover__t {
    margin: 0 0 8px;
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.005em;
    overflow-wrap: anywhere;
}

.b14-cover__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    margin: 0 0 10px;
    font-size: 12.5px;
    color: var(--muted);
}

.b14-cover__label { color: var(--accent); font-weight: 700; }
.b14-cover__dot { color: rgba(226, 150, 175, 0.7); }

.b14-cover__syn {
    margin: 0 0 6px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #4b3341;
    max-width: 62ch;
}

.b14-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }

.b14-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid rgba(226, 100, 140, 0.5);
    background: rgba(255, 255, 255, 0.68);
    color: var(--accent);
    font: inherit;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.b14-btn:hover { background: #ffffff; }

.b14-btn--primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: var(--on-accent);
    box-shadow: 0 8px 20px rgba(198, 92, 132, 0.3);
}

.b14-btn--primary:hover { filter: brightness(1.04); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }

/* ---------- 玻璃面板 ---------- */
.b14-panel {
    margin: 16px 0;
    padding: clamp(14px, 2.4vw, 22px);
    border-radius: 20px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
}

.b14-h2 {
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 800;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.b14-h2 small { font-size: 12px; font-weight: 500; color: var(--muted); }

.b14-playerbox {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
}

.b14-note {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.55);
    border: 1px dashed var(--line);
    font-size: 13px;
    color: var(--muted);
}

/* 藥丸選集 */
.b14-eps {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.b14-ep {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid var(--glass-line);
    color: var(--ink);
    font-size: 13px;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.b14-ep b { font-weight: 700; }
.b14-ep i { font-style: normal; font-size: 10.5px; color: var(--muted); }

.b14-ep:hover { background: #ffffff; color: var(--accent); }

.b14-ep.is-current {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: var(--on-accent);
    box-shadow: 0 6px 16px rgba(198, 92, 132, 0.28);
}

.b14-ep.is-current i { color: rgba(255, 255, 255, 0.82); }
.b14-ep.is-off { opacity: 0.45; }

/* 資料 */
.b14-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0 22px;
    margin: 0;
}

.b14-fact { padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b14-fact dt { font-size: 12px; color: var(--muted); }
.b14-fact dd { margin: 3px 0 0; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.b14-fact--wide { grid-column: 1 / -1; }

/* 正文／FAQ */
.b14-prose { max-width: 72ch; font-size: 15px; line-height: 1.95; color: #4b3341; }
.b14-prose p { margin: 0 0 1em; }

.b14-faq details { border-bottom: 1px solid var(--line); }

.b14-faq summary {
    display: flex;
    align-items: center;
    min-height: 52px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.b14-faq summary::-webkit-details-marker { display: none; }
.b14-faq summary::before { content: "？"; color: var(--accent); margin-right: 8px; font-weight: 800; }
.b14-faq details p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.9; color: var(--muted); }

/* 分頁 */
.b14-pagination { margin-top: 26px; }
.b14-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 7px; justify-content: center; }

.b14-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    background: var(--glass);
    border: 1px solid var(--glass-line);
    text-decoration: none;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.b14-pagination .page-numbers.current {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-color: transparent;
    color: var(--on-accent);
}

.b14-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* 搜尋表單 */
.b14-sf input[type="search"] {
    border-radius: 999px;
    border: 1px solid var(--glass-line);
    background: rgba(255, 255, 255, 0.78);
}

.b14-sf button {
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: var(--on-accent);
    border: 0;
}

/* 搜尋面板／抽屜 */
.b14-search__box,
.b14-drawer {
    background: rgba(255, 248, 251, 0.94);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-line);
    border-radius: 20px;
}

.b14-drawer__list a { min-height: 46px; border-bottom: 1px solid var(--line); }

.b14-crumbs { margin: 10px 0 4px; font-size: 12px; }

/* ---------- 頁尾 ---------- */
.b14-foot { margin-top: clamp(34px, 5vw, 56px); padding-bottom: 28px; }

.b14-foot__panel {
    padding: clamp(18px, 3vw, 30px);
    border-radius: 26px;
    background: var(--glass);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-line);
    box-shadow: var(--glass-shadow);
}

.b14-foot__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 3vw, 36px);
}

.b14-foot__brand { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.b14-foot__desc { margin: 0 0 8px; font-size: 12.5px; line-height: 1.9; color: var(--muted); }
.b14-foot__stat { margin: 0; font-size: 11.5px; color: var(--accent); }

.b14-foot__h {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 800;
    color: var(--ink);
}

.b14-foot__list { list-style: none; margin: 0; padding: 0; }

.b14-foot__list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    font-size: 13px;
    text-decoration: none;
    color: var(--ink);
    border-bottom: 1px solid rgba(226, 150, 175, 0.28);
}

.b14-foot__list a:hover { color: var(--accent); }
.b14-foot__list em { font-style: normal; font-size: 11.5px; color: var(--muted); }

.b14-foot__menu { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 16px; font-size: 12.5px; }
.b14-foot__menu a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }

.b14-foot__bar {
    margin: 18px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(226, 150, 175, 0.32);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    font-size: 11.5px;
    color: var(--muted);
}

/* ---------- 回應式 ---------- */
@media (max-width: 960px) {
    .b14-grid { column-count: 2; }
    .b14-nav { display: none; }
    .b14-tools { margin-left: auto; }
}

@media (max-width: 820px) {
    .b14-hero__picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .b14-cover__in { grid-template-columns: 140px minmax(0, 1fr); }
    .b14-foot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .b14-hero__picks { grid-template-columns: minmax(0, 1fr); }
    .b14-cover__in { grid-template-columns: minmax(0, 1fr); }
    .b14-cover__poster { max-width: 168px; }
    .b14-duo { grid-template-columns: minmax(0, 1fr); }
    .b14-foot__grid { grid-template-columns: minmax(0, 1fr); }
    .b14-cover__t { font-size: clamp(24px, 8vw, 34px); }
}

@media (prefers-reduced-motion: reduce) {
    .b14-card { transition: none; }
    .b14-card:hover { transform: none; }
}

/* ==== batch4 variant: sd-c45 glass-waterfall #2316b5/#f249d9 ==== */
:root{--accent:#2316b5;--accent-2:#f249d9;--accent-soft:#2316b522;--radius:0;--wrap:1080px;--font:"Noto Serif TC","Songti TC","PingFang TC",serif;--font-head:"Noto Serif TC","Songti TC","PingFang TC",serif}
body{font-family:"Noto Serif TC","Songti TC","PingFang TC",serif}
h1,h2,h3,.site-title,.brand,.entry-title{font-family:"Noto Serif TC","Songti TC","PingFang TC",serif}
.wrap,.container,.site-inner{max-width:1080px}
