/*
Theme Name: sd-b6 薄荷圓角
Theme URI: https://example.invalid/
Author: SD Network
Description: 薄荷圓角風短劇主題：薄荷綠配白、超大圓角與柔和陰影、兩列大卡片，懸浮上移。
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.1
Text Domain: sd-b6
*/

/* ==========================================================================
   共用基礎層（結構 / 行為）— 顏色與造型一律走變數，各主題在下方覆寫
   需要的變數：--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; }

.b6-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; }

/* ---------- 搜尋表單 ---------- */
.b6-sf { display: flex; gap: 8px; align-items: stretch; }
.b6-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;
}
.b6-sf input[type="search"]::placeholder { color: var(--muted); opacity: .8; }
.b6-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 綁定） ---------- */
.b6-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;
}
.b6-search.is-open { opacity: 1; visibility: visible; }
.b6-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);
}
.b6-search__hint { margin: 18px 0 8px; font-size: 13px; color: var(--muted); }
.b6-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.b6-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;
}
.b6-tags a:hover { border-color: var(--accent); color: var(--accent); }

.b6-overlay { position: fixed; inset: 0; z-index: 150; background: var(--scrim, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .25s; }
.b6-overlay.is-open { opacity: 1; }
.b6-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;
}
.b6-drawer.is-open { transform: none; visibility: visible; }
.b6-drawer__close {
  position: absolute; top: 10px; right: 10px; width: 48px; height: 48px;
  display: grid; place-items: center; border: 0; background: transparent; font-size: 20px;
}
.b6-drawer__list { list-style: none; margin: 0; padding: 0; }
.b6-drawer__list a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--line); font-size: 17px; }
.b6-drawer__list [aria-current="page"], .b6-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 上下堆疊 ---------- */
.b6-dgrid { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: 32px; align-items: start; }
.b6-dgrid__l, .b6-dgrid__r { min-width: 0; }
.b6-dposter img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.b6-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.b6-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.b6-pill { min-height: 44px; }
.b6-pill--accent { border-color: var(--accent); color: var(--accent); }
.b6-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.b6-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;
}
.b6-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b6-note { padding: 14px 16px; border: 1px dashed var(--line); color: var(--muted); font-size: 14px; }
.b6-pn { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.b6-pn a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--surface); }
.b6-pn a.is-next { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.b6-side-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 16px; color: var(--accent); font-weight: 600; }
.b6-prose { max-width: 70ch; }
.b6-prose img { height: auto; }
.b6-faq details { border-bottom: 1px solid var(--line); }
.b6-faq summary { display: flex; align-items: center; min-height: 52px; cursor: pointer; font-weight: 600; }
.b6-faq details p { color: var(--muted); }
.b6-empty, .b6-notfound { padding: 48px 0; }
.b6-notfound__search { max-width: 520px; margin: 22px 0; }
.b6-notfound__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.b6-results { display: grid; gap: 0; }
.b6-result { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; min-width: 0; }
.b6-result__img { width: 72px; flex: 0 0 72px; aspect-ratio: 2 / 3; object-fit: cover; }
.b6-result__body { display: grid; gap: 4px; min-width: 0; }
.b6-result__t { font-weight: 700; overflow-wrap: anywhere; }
.b6-result__m, .b6-result__x { font-size: 13px; color: var(--muted); }
.b6-searchbar { max-width: 640px; margin: 4px 0 24px; }

/* ---------- 篩選條：行內捲動，不撐破版面 ---------- */
.b6-filter { display: grid; gap: 4px; margin: 0 0 24px; }
.b6-filter__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.b6-filter__label { flex: 0 0 auto; font-size: 13px; color: var(--muted); }
.b6-filter__list { display: flex; flex: 1 1 auto; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.b6-filter__list::-webkit-scrollbar { display: none; }
.b6-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 覆寫） ---------- */
.b6-block { margin-top: clamp(40px, 6vw, 72px); }
.b6-pagehead { padding: 26px 0 20px; }
.b6-pagehead h1 { font-size: clamp(28px, 4vw, 44px); overflow-wrap: anywhere; }
.b6-pagehead p { margin: 10px 0 0; color: var(--muted); }
.b6-dhead { padding: 8px 0 22px; }
.b6-dhead h1 { font-size: clamp(26px, 3.6vw, 40px); overflow-wrap: anywhere; }
.b6-syn { font-size: 16px; line-height: 1.9; }
.b6-h2 { font-size: 20px; margin: 0 0 14px; }
.b6-h2 small { margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--muted); }
.b6-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); column-gap: 28px; margin: 0; }
.b6-fact { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.b6-fact dt { font-size: 12.5px; color: var(--muted); }
.b6-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.b6-fact--wide { grid-column: 1 / -1; }
.b6-article { max-width: 860px; }
.b6-notfound__code { margin: 0; font-size: clamp(72px, 16vw, 150px); font-weight: 900; line-height: 1; color: var(--accent); }
.b6-notfound h1 { font-size: clamp(26px, 4vw, 40px); margin: 6px 0 10px; }
.b6-notfound__desc { max-width: 34em; color: var(--muted); }
.b6-empty__title { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.b6-result:hover .b6-result__t { color: var(--accent); }
.b6-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.b6-sec__more { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 600; white-space: nowrap; }

@media (max-width: 900px) {
  .b6-dgrid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .b6-dgrid__l .sd-player, .b6-dgrid__l .b6-dposter { max-width: 420px; margin-inline: auto; }
}
@media (max-width: 560px) {
  :root { --gut: 16px; }
  .b6-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; }
}

/* ==========================================================================
   sd-b6 薄荷圓角：薄荷綠 + 白 / 超大圓角 / 柔和陰影 / 懸浮膠囊導覽列 / 兩列大卡（懸浮上移）/ 圓形選集
   ========================================================================== */

:root {
  --bg: #f1fbf7;
  --surface: #ffffff;
  --ink: #15322b;
  --muted: #5a7a70;
  --line: #d3eee4;
  --accent: #18a387;
  --accent-2: #7fe3c6;
  --accent-soft: rgba(24, 163, 135, .13);
  --on-accent: #ffffff;
  --mint-dk: #11775f;
  --mint-bg: #dcf6ec;
  --radius: 28px;
  --r-xl: 44px;
  --shadow: 0 18px 40px -22px rgba(17, 119, 95, .45);
  --shadow-lg: 0 30px 50px -22px rgba(17, 119, 95, .55);
  --wrap: 1200px;
  --gut: 24px;
  --scrim: rgba(21, 50, 43, .5);
  --sans: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--sans);
}

body { background: radial-gradient(900px 500px at 100% -5%, rgba(127, 227, 198, .35), transparent 65%), radial-gradient(700px 500px at -10% 30%, rgba(127, 227, 198, .2), transparent 65%), var(--bg); }
h1, h2, h3 { font-weight: 800; letter-spacing: .01em; }
a:hover { color: var(--accent); }
.b6-main { overflow-x: clip; }

/* ---------- 懸浮膠囊導覽列 ---------- */
.b6-head { position: sticky; top: 0; z-index: 100; padding: 14px 0 0; pointer-events: none; }
.b6-pillbar { pointer-events: auto; display: flex; align-items: center; gap: 18px; min-height: 64px; padding: 6px 10px 6px 12px; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.b6-brand { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: 18px; font-weight: 800; color: var(--ink); }
.b6-brand__mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-size: 20px; font-weight: 900; box-shadow: 0 6px 12px -4px rgba(24, 163, 135, .6); }
.b6-brand__img { max-height: 36px; width: auto; }
.b6-nav { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; }
.b6-nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.b6-nav__list a { display: flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--muted); }
.b6-nav__list a:hover { background: var(--mint-bg); color: var(--mint-dk); }
.b6-nav__list [aria-current="page"], .b6-nav__list .current-menu-item > a { background: var(--accent); color: #fff; }
.b6-tools { display: flex; gap: 4px; margin-left: auto; }
.b6-tool { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--mint-bg); color: var(--mint-dk); }
.b6-tool:hover { background: var(--accent); color: #fff; }
.b6-tool--menu { display: none; }

/* ---------- 區塊標題 / 按鈕 ---------- */
.b6-sec { margin: 0 0 24px; align-items: center; }
.b6-sec h2 { font-size: clamp(24px, 3vw, 34px); }
.b6-sec h2::before { content: ""; display: inline-block; width: 14px; height: 14px; margin-right: 12px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 0 5px var(--accent-soft); vertical-align: .1em; }
.b6-sec__more { min-height: 44px; padding: 0 18px; border-radius: 999px; background: var(--mint-bg); color: var(--mint-dk); font-weight: 700; font-size: 14px; }
.b6-sec__more:hover { background: var(--accent); color: #fff; }
.b6-block { margin-top: clamp(44px, 6vw, 84px); }
.b6-btn { min-height: 52px; padding: 0 30px; border: 2px solid transparent; border-radius: 999px; background: #fff; color: var(--mint-dk); font-weight: 800; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.b6-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--mint-dk); }
.b6-btn--primary { background: var(--accent); color: #fff; }
.b6-btn--primary:hover { color: #fff; background: var(--mint-dk); }
.b6-pill { background: #fff; border-color: var(--line); color: var(--mint-dk); font-weight: 600; }
a.b6-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.b6-pill--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.b6-kicker { margin: 0 0 14px; display: inline-block; padding: 6px 16px; border-radius: 999px; background: #fff; color: var(--mint-dk); font-size: 13px; font-weight: 800; letter-spacing: .06em; box-shadow: 0 4px 10px -4px rgba(17, 119, 95, .3); }

/* ---------- 首頁主視覺 ---------- */
.b6-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 28px; padding: clamp(28px, 5vw, 60px); border-radius: var(--r-xl); background: linear-gradient(135deg, #c9f3e3 0%, #e9fbf4 55%, #ffffff 100%); box-shadow: var(--shadow); overflow: hidden; position: relative; }
.b6-hero::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(127, 227, 198, .45); }
.b6-hero__txt, .b6-hero__art { position: relative; z-index: 1; min-width: 0; }
.b6-hero h1 { display: grid; gap: 12px; }
.b6-h1__brand { font-size: clamp(38px, 5.6vw, 72px); line-height: 1.08; color: var(--mint-dk); }
.b6-h1__tag { font-size: clamp(17px, 2vw, 24px); line-height: 1.5; font-weight: 600; }
.b6-hero__p { max-width: 28em; margin: 18px 0 24px; font-size: 16px; line-height: 1.9; color: var(--muted); }
.b6-hero__p b { color: var(--accent); font-size: 1.2em; }
.b6-hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.b6-hero__art { min-height: 420px; }
.b6-hero__p1, .b6-hero__p2 { position: absolute; display: block; overflow: hidden; border-radius: 36px; box-shadow: var(--shadow-lg); border: 6px solid #fff; }
.b6-hero__p1 { right: 6%; top: 0; width: 58%; transform: rotate(3deg); transition: transform .3s; }
.b6-hero__p1:hover { transform: rotate(0) translateY(-6px); }
.b6-hero__p2 { left: 2%; top: 56px; width: 44%; transform: rotate(-7deg); opacity: .96; }
.b6-hero__p1 img, .b6-hero__p2 img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.b6-hero__cap { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 16px 14px; background: linear-gradient(0deg, rgba(17, 119, 95, .92), transparent); color: #fff; }
.b6-hero__capk { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--accent-2); }
.b6-hero__capt { font-size: 17px; font-weight: 800; line-height: 1.3; }

/* ---------- 兩列大卡 ---------- */
.b6-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.b6-card { display: grid; grid-template-columns: 44% minmax(0, 1fr); gap: 20px; min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.b6-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: inherit; }
.b6-card__fig { position: relative; display: block; overflow: hidden; border-radius: 22px; }
.b6-card__fig img { width: 100%; height: 100%; min-height: 240px; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .5s; }
.b6-card:hover .b6-card__fig img { transform: scale(1.05); }
.b6-card__badge { position: absolute; left: 10px; top: 10px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--mint-dk); font-size: 12px; font-weight: 800; box-shadow: 0 4px 8px -2px rgba(0, 0, 0, .2); }
.b6-card__body { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 6px 6px 4px 0; }
.b6-card__t { font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.b6-card:hover .b6-card__t { color: var(--accent); }
.b6-card__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.b6-card__chips span { padding: 3px 12px; border-radius: 999px; background: var(--mint-bg); color: var(--mint-dk); font-size: 12.5px; font-weight: 700; }
.b6-card__syn { font-size: 14px; line-height: 1.8; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.b6-card__go { margin-top: auto; display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; align-self: flex-start; min-height: 44px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--accent); color: #fff; font-weight: 800; font-size: 14px; }
.b6-card__go i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--accent); font-style: normal; transition: transform .25s; }
.b6-card:hover .b6-card__go i { transform: translateX(4px); }

/* ---------- 分類 / 排行 ---------- */
.b6-duo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; }
.b6-bubbles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.b6-bubbles a { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-weight: 700; transition: transform .2s, background .2s; }
.b6-bubbles a:hover { transform: translateY(-4px); background: var(--accent); color: #fff; }
.b6-bubbles em { font-style: normal; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--mint-bg); color: var(--mint-dk); }
.b6-bubbles a:hover em { background: rgba(255, 255, 255, .25); color: #fff; }
.b6-rank { list-style: none; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.b6-rank a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px 0 8px; border-radius: 999px; }
.b6-rank a:hover { background: var(--mint-bg); }
.b6-rank__no { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint-bg); color: var(--mint-dk); font-weight: 900; }
.b6-rank li:nth-child(-n+3) .b6-rank__no { background: var(--accent); color: #fff; }
.b6-rank__t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.b6-rank__m { font-size: 12.5px; color: var(--muted); white-space: nowrap; }

/* ---------- 列表頁 ---------- */
.b6-pagehead { margin-top: 28px; padding: 34px clamp(24px, 4vw, 44px); border-radius: var(--r-xl); background: linear-gradient(135deg, #c9f3e3, #f0fcf7); box-shadow: var(--shadow); }
.b6-pagehead h1 { font-size: clamp(28px, 4vw, 46px); color: var(--mint-dk); }
.b6-filter { margin: 22px 0 30px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.b6-filter__label { min-width: 2.8em; font-weight: 800; color: var(--mint-dk); font-size: 14px; }
.b6-filter__list a { border-radius: 999px; font-size: 14px; color: var(--muted); }
.b6-filter__list a:hover { background: var(--mint-bg); color: var(--mint-dk); }
.b6-filter__list a[aria-current="page"] { background: var(--accent); color: #fff; font-weight: 800; }
.sd-pagination .page-numbers { background: #fff; border-color: var(--line); border-radius: 50%; padding: 0; min-width: 48px; min-height: 48px; box-shadow: 0 6px 12px -8px rgba(17, 119, 95, .5); }
.sd-pagination .page-numbers.prev, .sd-pagination .page-numbers.next { border-radius: 999px; padding: 0 20px; }
.sd-pagination a.page-numbers:hover { background: var(--mint-bg); color: var(--mint-dk); }
.sd-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.sd-pagination .page-numbers.dots { background: none; border-color: transparent; box-shadow: none; }

/* ---------- 詳情 / 分集 ---------- */
.b6-dhead h1 { font-size: clamp(28px, 4.2vw, 48px); line-height: 1.2; color: var(--mint-dk); }
.b6-dgrid { gap: 32px; }
.b6-player, .b6-dposter { border-radius: 36px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); background: #000; }
.b6-dposter { background: #fff; }
.b6-dposter img { border-radius: 26px; }
.b6-dgrid__r { padding: clamp(20px, 3vw, 32px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.b6-syn { font-size: 16px; line-height: 2; color: #2c4b43; }
.b6-note { border-radius: 20px; border-color: var(--accent-2); background: var(--mint-bg); color: var(--mint-dk); }
.b6-eps-sec .b6-h2 { font-size: 20px; color: var(--mint-dk); }
.b6-eps { list-style: none; margin: 12px 0 0; padding: 4px; display: flex; flex-wrap: wrap; gap: 10px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.b6-eps a, .b6-eps .is-off { display: grid; place-items: center; align-content: center; min-width: 56px; min-height: 56px; padding: 4px 12px; border-radius: 28px; background: var(--mint-bg); color: var(--mint-dk); line-height: 1.1; transition: transform .15s, background .15s; }
.b6-eps b { font-size: 17px; font-weight: 900; }
.b6-eps small { font-size: 10.5px; opacity: .75; }
.b6-eps a:hover { background: var(--accent-2); transform: translateY(-3px); }
.b6-eps .is-current { background: var(--accent); color: #fff; box-shadow: 0 8px 14px -6px rgba(24, 163, 135, .7); }
.b6-eps .is-off { opacity: .45; }
.b6-facts-sec { padding: clamp(20px, 3vw, 30px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow); }
.b6-facts-sec .b6-sec { margin-bottom: 10px; }
.b6-fact { border-bottom: 1px dashed var(--line); }
.b6-fact dt { font-weight: 700; color: var(--muted); }
.b6-pn a { border-radius: 999px; background: #fff; border-color: var(--line); font-weight: 800; box-shadow: var(--shadow); }
.b6-pn a.is-next { background: var(--accent); border-color: var(--accent); color: #fff; }
.b6-faq details { margin-bottom: 10px; padding: 0 22px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.b6-faq summary { font-weight: 700; }
.b6-result { margin-bottom: 12px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); }
.b6-result__img { border-radius: 14px; }
.b6-sf input[type="search"] { padding: 0 22px; border-radius: 999px; background: #fff; border-color: var(--line); }
.b6-sf button { border-radius: 999px; }
.b6-search__box { border-radius: 36px; background: #fff; }
.b6-drawer { background: #fff; border-radius: 36px 0 0 36px; }
.b6-tags a { background: var(--mint-bg); border: 0; color: var(--mint-dk); font-weight: 700; }
.b6-tags a:hover { background: var(--accent); color: #fff; }
.b6-empty, .b6-notfound { text-align: center; padding: 56px 0; }
.b6-notfound__search { margin-inline: auto; }
.b6-notfound__actions { justify-content: center; }

/* ---------- 頁尾 ---------- */
.b6-foot { margin-top: 96px; }
.b6-foot__panel { padding: clamp(28px, 4vw, 48px) clamp(24px, 4vw, 48px) 8px; border-radius: var(--r-xl) var(--r-xl) 0 0; background: linear-gradient(160deg, var(--accent), var(--mint-dk)); color: #eafff7; }
.b6-foot__grid { display: grid; grid-template-columns: 1.4fr 1.2fr 1fr; gap: 36px; }
.b6-foot h2 { margin-bottom: 10px; font-size: 16px; color: var(--accent-2); }
.b6-foot ul { list-style: none; margin: 0; padding: 0; }
.b6-foot li a { display: inline-flex; align-items: center; min-height: 44px; opacity: .92; }
.b6-foot li a:hover { color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.b6-foot__tags { display: flex; flex-wrap: wrap; gap: 0 18px; }
.b6-foot__name { font-size: 26px; font-weight: 900; color: #fff; margin-bottom: 8px; }
.b6-foot__grid p { font-size: 14px; max-width: 32em; opacity: .92; }
.b6-foot__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 28px 0 0; padding: 18px 0 26px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 12.5px; opacity: .85; }

/* ---------- 響應式 ---------- */
@media (max-width: 1000px) {
  .b6-hero { grid-template-columns: minmax(0, 1fr); }
  .b6-hero__art { min-height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
}
@media (max-width: 960px) {
  .b6-nav { display: none; }
  .b6-tool--menu { display: grid; }
  .b6-duo { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .b6-foot__grid { grid-template-columns: 1fr 1fr; }
  .b6-foot__grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .b6-cards { gap: 14px; }
  .b6-card { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px; border-radius: 24px; }
  .b6-card__fig { border-radius: 18px; }
  .b6-card__fig img { min-height: 0; height: auto; }
  .b6-card__body { padding: 2px 4px 4px; gap: 8px; }
  .b6-card__t { font-size: 16px; }
  .b6-card__syn { display: none; }
  .b6-card__go { align-self: stretch; padding: 0 6px 0 14px; font-size: 13px; }
  .b6-card__chips span { padding: 2px 9px; font-size: 11.5px; }
  .b6-hero__art { min-height: 340px; }
}
@media (max-width: 560px) {
  :root { --r-xl: 32px; --radius: 22px; }
  .b6-pillbar { gap: 8px; }
  .b6-brand__txt { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
  .b6-hero { padding: 24px 18px 28px; }
  .b6-hero__art { min-height: 300px; }
  .b6-foot__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .b6-sec__more { padding: 0 14px; }
  .b6-player, .b6-dposter { border-width: 5px; border-radius: 26px; }
}
