/* 黄果短剧 fb-theme — 短剧聚合风
   设计方向：暖黄/橙黄页底 + 深褐琥珀顶栏 + 短剧卡片 + 橙黄播放
   class 前缀：fb-* only */
:root {
  --fb-bg: #fdf7ed;
  --fb-paper: #fdf7ed;
  --fb-paper-2: #f7eedb;
  --fb-panel: #ffffff;
  --fb-panel-2: #fffaf2;
  --fb-ink: #2c1a06;
  --fb-ink-2: #4a2f10;
  --fb-muted: #8a6a3a;
  --fb-line: #e8d5b0;
  --fb-header: #2a1500;
  --fb-header-text: #ffecd0;
  --fb-on-dark: #ffecd0;
  --fb-on-dark-muted: rgba(255, 236, 208, 0.68);
  --fb-brand: #e8830a;
  --fb-brand-2: #f5a535;
  --fb-accent: #c85f00;
  --fb-accent-2: #a84d00;
  --fb-rank: #d44b1a;
  --fb-rank-2: #e86a3a;
  --fb-play: #f0900a;
  --fb-play-2: #f5a820;
  --fb-poster-bg: #e8d5b0;
  --fb-warm: var(--fb-brand);
  --fb-warm-2: var(--fb-brand-2);
  --fb-orange: var(--fb-accent);
  --fb-orange-2: var(--fb-accent-2);
  --fb-coral: var(--fb-rank);
  --fb-amber: var(--fb-play);
  --fb-dark: #180c00;
  --fb-dark-panel: #2a1500;
  --fb-radius: 10px;
  --fb-radius-lg: 14px;
  --fb-radius-card: 12px;
  --fb-max: 1180px;
  --fb-poster-w: 140px;
  --fb-poster-w-lg: 220px;
  --fb-font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --fb-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --fb-shadow: 0 8px 28px rgba(42, 21, 0, 0.08);
  --fb-shadow-deep: 0 14px 36px rgba(24, 12, 0, 0.16);
  --fb-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fb-stripe: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 6px,
    rgba(42, 21, 0, 0.10) 6px,
    rgba(42, 21, 0, 0.10) 10px
  );
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--fb-font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--fb-ink);
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(232, 131, 10, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 35% at 100% 8%, rgba(200, 95, 0, 0.05), transparent 50%),
    var(--fb-bg);
  min-height: 100vh;
  overflow-x: clip;
}

/* 海报硬规则：全站 2:3，绝对定位裁切 */
.fb-poster,
.fb-vitem__cover,
.fb-feature__poster,
.fb-detail__poster,
.fb-row__thumb,
.fb-feed__thumb {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--fb-poster-bg);
}
.fb-poster > img,
.fb-vitem__cover > img,
.fb-feature__poster > img,
.fb-detail__poster > img,
.fb-row__thumb > img,
.fb-feed__thumb > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
img { max-width: 100%; display: block; }
a {
  color: var(--fb-accent);
  text-decoration: none;
  transition: color 0.15s var(--fb-ease);
}
a:hover { color: var(--fb-brand); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 {
  margin: 0 0 0.45em;
  line-height: 1.25;
  font-weight: 700;
  font-family: var(--fb-display);
}
p { margin: 0 0 0.75em; }
button, input { font: inherit; }
.hide, .hidden { display: none !important; }

.fb-wrap {
  width: 100%;
  max-width: var(--fb-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ========== 顶栏：深褐琥珀 sticky ========== */
.fb-top {
  position: sticky;
  top: 0;
  z-index: 200;
  background:
    linear-gradient(180deg, rgba(232, 131, 10, 0.14) 0%, transparent 48%),
    var(--fb-header);
  border-bottom: 1px solid rgba(232, 131, 10, 0.25);
  box-shadow: 0 6px 22px rgba(24, 12, 0, 0.38);
}
.fb-top__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}
.fb-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fb-header-text);
  flex-shrink: 0;
}
.fb-brand:hover { color: #fff; }
.fb-brand__glyph {
  width: 36px;
  height: 36px;
  border-radius: 40% 60% 45% 55%;
  background: linear-gradient(155deg, var(--fb-brand-2), var(--fb-brand));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(232, 131, 10, 0.42);
  position: relative;
}
.fb-brand__glyph::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: inherit;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  pointer-events: none;
}
.fb-brand__name {
  font-family: var(--fb-display);
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.fb-menu {
  display: none;
  gap: 2px;
  flex: 1;
}
.fb-menu__link {
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 236, 208, 0.78);
}
.fb-menu__link:hover,
.fb-menu__link.is-active {
  color: #fff;
  background: rgba(232, 131, 10, 0.30);
}
.fb-top__tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.fb-find {
  position: relative;
  width: 100%;
  max-width: 240px;
}
.fb-find input {
  width: 100%;
  height: 38px;
  padding: 0 42px 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  outline: none;
  font-size: 13px;
}
.fb-find input::placeholder { color: rgba(255, 255, 255, 0.42); }
.fb-find input:focus {
  border-color: var(--fb-brand);
  background: rgba(255, 255, 255, 0.11);
}
.fb-find button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--fb-accent);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}
.fb-find button:hover { background: var(--fb-accent-2); }
.fb-find--lg { max-width: 100%; }
.fb-find--lg input {
  height: 48px;
  font-size: 15px;
  padding-right: 96px;
  border-radius: var(--fb-radius);
}
.fb-find--lg button {
  width: auto;
  padding: 0 18px;
  height: 40px;
  right: 4px;
  border-radius: var(--fb-radius);
}

.fb-log-btn,
.fb-menu-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--fb-header-text);
  padding: 7px 12px;
  border-radius: var(--fb-radius);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}
.fb-log-btn:hover { border-color: var(--fb-brand); color: #fff; }
.fb-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  font-size: 0;
  line-height: 0;
  color: var(--fb-header-text);
}
.fb-menu-btn::before {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor;
}
.fb-drawer {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--fb-header);
}
.fb-drawer.is-open {
  display: flex;
  max-height: min(70vh, 420px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.fb-drawer a {
  padding: 11px 12px;
  border-radius: var(--fb-radius);
  font-weight: 600;
  color: var(--fb-on-dark-muted);
  border-left: 3px solid transparent;
}
.fb-drawer a:hover {
  background: rgba(232, 131, 10, 0.18);
  color: #fff;
  border-left-color: var(--fb-brand);
}

.fb-log { position: relative; }
.fb-log__panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: 286px;
  max-height: 360px;
  overflow: auto;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow-deep);
  padding: 12px;
  z-index: 300;
}
.fb-log__panel.is-open { display: block; }
.fb-log__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--fb-line);
}
.fb-log__clear {
  border: 0;
  background: none;
  color: var(--fb-accent);
  cursor: pointer;
  font-size: 12px;
}
.fb-log__list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px dashed var(--fb-line);
  font-size: 13px;
  color: var(--fb-ink-2);
}
.fb-log__list a:hover { color: var(--fb-accent); }
.fb-log__empty {
  font-size: 13px;
  color: var(--fb-muted);
  margin: 0;
  padding: 8px 0;
}

@media (min-width: 900px) {
  .fb-menu { display: flex; }
  .fb-menu-btn { display: none; }
  .fb-drawer { display: none !important; }
}

/* ========== 公告条 ========== */
.fb-notice {
  background: linear-gradient(90deg, var(--fb-accent), var(--fb-brand));
  color: #fff;
  font-size: 13px;
  padding: 10px 0;
  position: relative;
}
.fb-notice p {
  margin: 0;
  text-align: center;
  padding-right: 28px;
}
.fb-notice__x {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
}
.fb-notice__x:hover { background: rgba(255, 255, 255, 0.28); }
.fb-notice.is-hidden { display: none; }

/* ========== Hero：左文案 + 右频道入口 ========== */
.fb-hero {
  padding: 44px 0 34px;
  border-bottom: 1px solid var(--fb-line);
  background:
    linear-gradient(135deg, rgba(232, 131, 10, 0.08) 0%, transparent 42%),
    linear-gradient(225deg, rgba(200, 95, 0, 0.06) 0%, transparent 38%),
    var(--fb-paper);
  position: relative;
}
.fb-hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 6px;
  background: var(--fb-stripe);
  opacity: 0.55;
  pointer-events: none;
}
.fb-hero__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 900px) {
  .fb-hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 40px;
  }
}
.fb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fb-brand);
  margin-bottom: 12px;
}
.fb-kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 2px;
  background: var(--fb-play);
}
.fb-hero h1 {
  font-family: var(--fb-display);
  font-size: clamp(1.9rem, 4.2vw, 2.85rem);
  font-weight: 800;
  color: var(--fb-ink);
  margin-bottom: 14px;
  letter-spacing: 0.01em;
}
.fb-hero__lead {
  font-size: 15px;
  color: var(--fb-muted);
  max-width: 520px;
  margin-bottom: 22px;
  line-height: 1.7;
}
.fb-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.fb-tags a {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--fb-line);
  border-radius: 999px;
  color: var(--fb-ink-2);
  background: var(--fb-panel);
}
.fb-tags a:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
  background: rgba(200, 95, 0, 0.06);
}

/* 短剧频道入口：竖向堆叠 */
.fb-portals {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fb-portal {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px 14px;
  padding: 14px 16px 14px 18px;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-card);
  color: var(--fb-ink);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 0 rgba(42, 21, 0, 0.04);
  transition: transform 0.2s var(--fb-ease), box-shadow 0.2s, border-color 0.2s;
}
.fb-portal::before,
.fb-portal::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fb-bg);
  top: 50%;
  transform: translateY(-50%);
  box-shadow: inset 0 0 0 1px var(--fb-line);
}
.fb-portal::before { left: -7px; }
.fb-portal::after { right: -7px; }
.fb-portal:hover {
  transform: translateX(4px);
  box-shadow: var(--fb-shadow);
  border-color: var(--fb-brand);
  color: var(--fb-ink);
}
.fb-portal__num {
  font-family: var(--fb-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--fb-brand);
  line-height: 1;
  opacity: 0.45;
  min-width: 1.6em;
}
.fb-portal__label {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.fb-portal__hint {
  font-size: 11px;
  color: var(--fb-muted);
  grid-column: 2;
  margin-top: -6px;
}
.fb-portal--wide {
  padding-top: 18px;
  padding-bottom: 18px;
  border-style: dashed;
}
.fb-portal--hot {
  background: linear-gradient(115deg, var(--fb-brand) 0%, #c85f00 55%, var(--fb-accent) 100%);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 22px rgba(232, 131, 10, 0.32);
}
.fb-portal--hot::before,
.fb-portal--hot::after {
  background: var(--fb-paper);
  box-shadow: none;
}
.fb-portal--hot .fb-portal__num { color: rgba(255, 255, 255, 0.42); opacity: 1; }
.fb-portal--hot .fb-portal__hint { color: rgba(255, 255, 255, 0.78); }
.fb-portal--hot:hover {
  border-color: transparent;
  color: #fff;
  transform: translateX(4px) scale(1.01);
}

/* ========== 焦点大片：左橙色强调条 + 横卡 ========== */
.fb-feature {
  margin: 36px 0;
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  border: 1px solid var(--fb-line);
  background: var(--fb-panel);
  box-shadow: var(--fb-shadow);
  position: relative;
}
.fb-feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, var(--fb-play), var(--fb-play-2));
  z-index: 2;
}
@media (min-width: 768px) {
  .fb-feature { grid-template-columns: 280px 1fr; }
}
.fb-feature__poster {
  position: relative;
  aspect-ratio: 2 / 3;
  min-height: 280px;
  background: var(--fb-poster-bg);
}
.fb-feature__poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.fb-feature__body {
  padding: 24px 28px 24px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.fb-feature__body h2 {
  font-family: var(--fb-display);
  font-size: 1.5rem;
  margin-bottom: 8px;
}
.fb-feature__body h2 a { color: var(--fb-ink); }
.fb-feature__body h2 a:hover { color: var(--fb-accent); }
.fb-feature__meta {
  font-size: 13px;
  color: var(--fb-muted);
  margin-bottom: 10px;
}
.fb-feature__desc {
  font-size: 14px;
  color: var(--fb-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}
.fb-feature__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ========== 区块标题 ========== */
.fb-block { margin: 40px 0; }
.fb-block__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--fb-brand);
  position: relative;
}
.fb-block__head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 48px;
  height: 2px;
  background: var(--fb-play);
}
.fb-block__head h2,
.fb-block__head h3 {
  font-family: var(--fb-display);
  font-size: 1.25rem;
  margin: 0;
}
.fb-block__head h2 a,
.fb-block__head h3 a { color: var(--fb-ink); }
.fb-block__head h2 a:hover,
.fb-block__head h3 a:hover { color: var(--fb-accent); }
.fb-more {
  font-size: 13px;
  font-weight: 700;
  color: var(--fb-accent);
  white-space: nowrap;
}
.fb-more:hover { color: var(--fb-brand); }
.fb-subtags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.fb-subtags a {
  font-size: 12px;
  color: var(--fb-muted);
  padding: 2px 0;
  border-bottom: 1px solid transparent;
}
.fb-subtags a:hover {
  color: var(--fb-accent);
  border-bottom-color: var(--fb-accent);
}

/* ========== 横滑轨 + 影片卡 ========== */
.fb-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fb-rail::-webkit-scrollbar { height: 4px; }
.fb-rail::-webkit-scrollbar-thumb {
  background: var(--fb-line);
  border-radius: 4px;
}

.fb-vitem {
  flex: 0 0 var(--fb-poster-w);
  width: var(--fb-poster-w);
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .fb-vitem {
    flex-basis: 156px;
    width: 156px;
  }
}
.fb-vitem__cover {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: var(--fb-poster-bg);
  box-shadow: 0 4px 14px rgba(42, 21, 0, 0.08);
}
.fb-vitem__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s var(--fb-ease);
}
.fb-vitem__cover:hover img { transform: scale(1.045); }
.fb-vitem__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(24, 12, 0, 0.88) 0%, transparent 58%);
  pointer-events: none;
}
.fb-vitem__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--fb-brand);
  color: #fff;
  letter-spacing: 0.02em;
  z-index: 1;
}
.fb-vitem__title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  z-index: 1;
}
.fb-vitem__sub {
  margin-top: 6px;
  font-size: 12px;
  color: var(--fb-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
  min-height: 2.8em;
}

/* 标题在海报下方（墙/网格） */
.fb-vitem--stack .fb-vitem__shade,
.fb-vitem--stack .fb-vitem__title { display: none; }
.fb-vitem--stack .fb-vitem__cap {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.fb-vitem--stack .fb-vitem__cap a { color: var(--fb-ink); }
.fb-vitem--stack .fb-vitem__cap a:hover { color: var(--fb-accent); }
.fb-vitem--stack .fb-vitem__sub {
  -webkit-line-clamp: 1;
  min-height: auto;
  margin-top: 4px;
}

/* ========== 编号榜单 ========== */
.fb-picks {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .fb-picks { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .fb-picks { grid-template-columns: repeat(4, 1fr); }
}
.fb-pick-col {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 14px 14px 10px;
  box-shadow: 0 2px 10px rgba(42, 21, 0, 0.04);
}
.fb-pick-col h3 {
  font-size: 14px;
  font-weight: 800;
  margin-bottom: 10px;
  padding-left: 10px;
  border-left: 3px solid var(--fb-rank);
}
.fb-pick-col h3 a { color: var(--fb-ink); }
.fb-pick-col li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 7px 0;
  border-bottom: 1px dashed var(--fb-line);
  font-size: 13px;
}
.fb-pick-col li:last-child { border-bottom: 0; }
.fb-pick-col li .n {
  font-family: var(--fb-display);
  font-weight: 800;
  color: var(--fb-muted);
}
.fb-pick-col li .n.is-hot { color: var(--fb-rank); }
.fb-pick-col li a { color: var(--fb-ink-2); }
.fb-pick-col li a:hover { color: var(--fb-accent); }

/* ========== 内页顶栏 ========== */
.fb-pagehead {
  padding: 28px 0 20px;
  border-bottom: 1px solid var(--fb-line);
  margin-bottom: 28px;
}
.fb-crumb {
  font-size: 12px;
  color: var(--fb-muted);
  margin-bottom: 10px;
}
.fb-crumb a { color: var(--fb-accent); }
.fb-crumb em {
  font-style: normal;
  color: var(--fb-ink);
  font-weight: 600;
}
.fb-pagehead h1 {
  font-family: var(--fb-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin-bottom: 8px;
}
.fb-pagehead__sub {
  font-size: 14px;
  color: var(--fb-muted);
  max-width: 720px;
}
.fb-detail-page .fb-pagehead {
  padding: 24px 0 20px;
  border-bottom: none;
  margin-bottom: 0;
}
.fb-detail-page--v02 main,
.fb-detail-page--v03 main {
  padding-top: 24px;
}
.fb-detail-page .fb-wrap > .fb-sheet,
.fb-detail-page .fb-wrap > .fb-desc-fold,
.fb-detail-page .fb-wrap > .fb-read-first,
.fb-detail-page .fb-wrap > .fb-block {
  margin-top: 0;
  margin-bottom: 20px;
}

/* ========== 详情：左海报右信息 ========== */
.fb-detail {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  padding: 20px;
  margin: 16px 0 0;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  box-shadow: var(--fb-shadow);
  position: relative;
  z-index: 1;
}
.fb-detail::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 4px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--fb-play), var(--fb-brand));
}
.fb-detail-page .fb-sheet--episodes {
  margin-top: 20px;
  position: relative;
  z-index: 2;
}
.fb-detail-page--v02 .fb-wrap + .fb-wrap > :first-child,
.fb-detail-page--v03 .fb-wrap + .fb-wrap > :first-child {
  margin-top: 20px;
}
.fb-detail .fb-tags { margin-bottom: 16px; }
@media (min-width: 768px) {
  .fb-detail {
    grid-template-columns: var(--fb-poster-w-lg) 1fr;
    align-items: start;
    padding: 24px 28px;
  }
}
.fb-detail__side { min-width: 0; }
.fb-detail__poster {
  width: 100%;
  max-width: var(--fb-poster-w-lg);
  margin: 0 auto;
  border-radius: var(--fb-radius);
  box-shadow: 0 10px 28px rgba(42, 21, 0, 0.16);
  aspect-ratio: 2 / 3;
}
.fb-detail__play {
  display: block;
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.fb-detail__main { min-width: 0; }
.fb-detail__main h1 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  margin-bottom: 14px;
  line-height: 1.35;
}
.fb-detail__score {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--fb-rank);
  background: rgba(212, 75, 26, 0.12);
  border-radius: 6px;
  vertical-align: middle;
}
.fb-meta {
  margin: 0 0 14px;
  list-style: none;
}
.fb-meta li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--fb-line);
  font-size: 14px;
  line-height: 1.5;
}
.fb-meta li:last-child { border-bottom: 0; }
.fb-meta li em {
  font-style: normal;
  color: var(--fb-muted);
  font-weight: 600;
  flex-shrink: 0;
}
.fb-detail__intro {
  font-size: 14px;
  color: var(--fb-ink-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.fb-detail__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* ========== Sheet / 选集 / Dock ========== */
.fb-sheet {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.fb-sheet > h2,
.fb-sheet > h3 {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--fb-line);
}
.fb-sheet--episodes {
  border-top: 3px solid var(--fb-brand);
}
.fb-ep-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.fb-ep-tabs a {
  padding: 6px 14px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-ink-2);
  background: var(--fb-panel-2);
}
.fb-ep-tabs a.active,
.fb-ep-tabs a:hover {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: #fff;
}
.fb-ep-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-ep-grid a {
  min-width: 48px;
  padding: 8px 12px;
  text-align: center;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  font-size: 13px;
  color: var(--fb-ink-2);
  background: var(--fb-paper);
}
.fb-ep-grid a:hover,
.fb-ep-grid a.is-current {
  background: var(--fb-play);
  border-color: var(--fb-play);
  color: #fff;
}
.fb-ep-note {
  font-size: 12px;
  color: var(--fb-muted);
  margin: -6px 0 12px;
}
.fb-hub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fb-hub-nav a {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  color: var(--fb-ink-2);
  background: var(--fb-paper);
}
.fb-hub-nav a:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
}
.fb-tips-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--fb-ink-2);
  list-style: disc;
}
.fb-tips-list li { margin-bottom: 8px; }
.fb-tags--wide { gap: 10px; }
.fb-tags--wide a {
  font-size: 13px;
  padding: 6px 14px;
}
.fb-article {
  font-size: 14px;
  color: var(--fb-ink-2);
  line-height: 1.75;
}
.fb-article p + p { margin-top: 0.85em; }
.fb-faq { margin-top: 8px; }
.fb-faq-item { margin-bottom: 14px; }
.fb-faq-item h4 {
  font-size: 14px;
  margin-bottom: 4px;
  color: var(--fb-ink);
}
.fb-faq-item p {
  font-size: 13px;
  color: var(--fb-muted);
  margin: 0;
}
.fb-highlights { margin-top: 16px; }
.fb-highlights h4 {
  font-size: 15px;
  margin-bottom: 8px;
  padding-left: 10px;
  border-left: 3px solid var(--fb-play);
}
.fb-highlights ul {
  margin: 0;
  padding-left: 18px;
  list-style: disc;
}
.fb-highlights li {
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--fb-ink-2);
}

.fb-dock {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 20px 22px;
  margin-bottom: 18px;
  box-shadow: var(--fb-shadow);
}
.fb-dock h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--fb-ink);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--fb-brand);
}

/* ========== 播放器黑屏区 ========== */
.fb-screen {
  position: relative;
  background: var(--fb-dark);
  margin: 0 0 20px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  box-shadow: var(--fb-shadow-deep);
}
.fb-screen .m3u8_type,
.fb-screen #dplayer {
  width: 100%;
  aspect-ratio: 16 / 9;
}
.fb-play-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.fb-play-acts a {
  font-size: 13px;
  padding: 6px 14px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  color: var(--fb-ink-2);
  background: var(--fb-panel-2);
}
.fb-play-acts a:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
  background: var(--fb-panel);
}
.fb-play-acts a.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}
.fb-screen .url_type {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 20px;
  text-align: center;
  background: rgba(24, 12, 0, 0.9);
  z-index: 2;
}
.fb-screen .url_type.is-on { display: flex; }

/* ========== 列表墙 / 马赛克 ========== */
.fb-wall {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 640px) {
  .fb-wall { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .fb-wall { grid-template-columns: repeat(6, 1fr); }
}
.fb-wall .fb-vitem {
  flex: none;
  width: 100%;
  min-width: 0;
}

.fb-mosaic {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 16px;
}
@media (min-width: 700px) {
  .fb-mosaic { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .fb-mosaic { grid-template-columns: repeat(6, 1fr); }
}
.fb-mosaic .fb-vitem {
  width: 100%;
  flex: none;
}

.fb-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--fb-panel);
  border-radius: var(--fb-radius-lg);
  border: 1px solid var(--fb-line);
}
.fb-chips__label {
  width: 100%;
  font-size: 12px;
  font-weight: 800;
  color: var(--fb-accent);
}
.fb-chips a {
  font-size: 12px;
  padding: 5px 12px;
  background: var(--fb-paper);
  border-radius: 999px;
  color: var(--fb-ink-2);
  border: 1px solid var(--fb-line);
}
.fb-chips a:hover {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: #fff;
}
.fb-chips a .n {
  font-weight: 800;
  margin-right: 4px;
  color: var(--fb-rank);
}
.fb-chips a:hover .n { color: #fff; }

/* ========== 筛选侧栏 ========== */
.fb-filter {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .fb-filter {
    grid-template-columns: 220px 1fr;
    align-items: start;
  }
}
.fb-filter__side {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 16px;
}
@media (min-width: 900px) {
  .fb-filter__side {
    position: sticky;
    top: 80px;
    z-index: 2;
  }
}
@media (max-width: 899px) {
  .fb-filter__side {
    position: static;
    margin-bottom: 20px;
  }
  .fb-filter__main {
    position: relative;
    z-index: 1;
  }
}
.fb-filter .fb-wall {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}
@media (min-width: 640px) {
  .fb-filter .fb-wall {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .fb-filter .fb-wall {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.fb-filter .fb-wall .fb-vitem {
  width: 100%;
  min-width: 0;
}
.fb-filter .fb-wall .fb-vitem__cover {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
}
.fb-filter__side dl { margin: 0 0 14px; }
.fb-filter__side dt {
  font-size: 12px;
  font-weight: 800;
  color: var(--fb-accent);
  margin-bottom: 8px;
}
.fb-filter__side dd {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}
.fb-filter__side dd a {
  font-size: 12px;
  padding: 4px 10px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  color: var(--fb-muted);
}
.fb-filter__side dd a.active,
.fb-filter__side dd a:hover {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: #fff;
}

/* ========== 搜索/上新列表行 ========== */
.fb-rows {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 72px 1fr;
  padding: 14px;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  align-items: start;
  border-left: 4px solid transparent;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.fb-row:hover {
  border-left-color: var(--fb-play);
  box-shadow: var(--fb-shadow);
}
@media (min-width: 640px) {
  .fb-row { grid-template-columns: 100px 1fr; }
}
.fb-row__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: var(--fb-poster-bg);
}
.fb-row__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.fb-row__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 4px;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.fb-row__title a { color: var(--fb-ink); }
.fb-row__title a:hover { color: var(--fb-accent); }
.fb-row__meta {
  font-size: 12px;
  color: var(--fb-muted);
  margin-bottom: 4px;
  word-break: break-word;
}
.fb-row__desc {
  font-size: 13px;
  color: var(--fb-ink-2);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.fb-row > div:last-child {
  min-width: 0;
  overflow: hidden;
}
.fb-row__acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.fb-feed { margin-top: 8px; }
.fb-feed__item {
  padding: 16px 0;
  border-bottom: 1px solid var(--fb-line);
}
.fb-feed__date {
  display: block;
  font-family: var(--fb-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--fb-rank);
  line-height: 1.4;
  margin-bottom: 10px;
}
.fb-feed__body {
  display: grid;
  gap: 12px;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
}
.fb-feed__thumb {
  position: relative;
  display: block;
  aspect-ratio: 2 / 3;
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: var(--fb-poster-bg);
}
.fb-feed__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.fb-feed__main {
  min-width: 0;
  overflow: hidden;
}
.fb-feed__title {
  font-size: 15px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.fb-feed__title a { color: var(--fb-ink); }
.fb-feed__title a:hover { color: var(--fb-accent); }
.fb-feed__meta {
  font-size: 12px;
  color: var(--fb-muted);
  margin: 0 0 6px;
  line-height: 1.5;
  word-break: break-word;
}
.fb-feed__desc {
  font-size: 13px;
  color: var(--fb-ink-2);
  margin: 0 0 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.fb-feed__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (min-width: 640px) {
  .fb-feed__item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    padding: 18px 0;
  }
  .fb-feed__date { margin-bottom: 0; }
  .fb-feed__body {
    grid-template-columns: 100px minmax(0, 1fr);
    gap: 14px;
  }
  .fb-feed__title { font-size: 16px; }
}

/* ========== 按钮 ========== */
.fb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: var(--fb-radius);
  font-size: 14px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: var(--fb-play);
  color: #fff;
  transition: background 0.15s, transform 0.15s;
  box-shadow: 0 4px 12px rgba(240, 144, 10, 0.32);
}
.fb-btn:hover {
  background: var(--fb-play-2);
  color: #fff;
  transform: translateY(-1px);
}
.fb-btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: none;
}
.fb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.fb-btn--sm {
  padding: 6px 14px;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(240, 144, 10, 0.22);
}
.fb-btn--line {
  background: transparent;
  border: 1px solid var(--fb-line);
  color: var(--fb-ink-2);
  box-shadow: none;
}
.fb-btn--line:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
  background: transparent;
}
.fb-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-accent);
}
.fb-link:hover { color: var(--fb-brand); }

/* ========== 分页 ========== */
.fb-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.fb-pager a {
  padding: 8px 16px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-ink-2);
  background: var(--fb-panel);
}
.fb-pager a:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
}
.fb-pager a.is-current,
.fb-pager a.active {
  background: var(--fb-accent);
  border-color: var(--fb-accent);
  color: #fff;
}
.fb-count {
  font-size: 13px;
  color: var(--fb-muted);
  margin-bottom: 16px;
}

/* ========== 404 ========== */
.fb-lost {
  text-align: center;
  padding: 60px 20px 80px;
  max-width: 520px;
  margin: 0 auto;
}
.fb-lost__code {
  font-family: var(--fb-display);
  font-size: 6rem;
  font-weight: 800;
  line-height: 1;
  color: var(--fb-line);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.fb-lost h1 {
  font-family: var(--fb-display);
  font-size: 1.5rem;
}
.fb-lost p {
  color: var(--fb-muted);
  font-size: 14px;
}
.fb-lost__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}
.fb-lost__nav a {
  padding: 8px 16px;
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius);
  font-size: 13px;
  font-weight: 600;
  color: var(--fb-ink-2);
  background: var(--fb-panel);
}
.fb-lost__nav a:hover {
  border-color: var(--fb-brand);
  color: var(--fb-brand);
}

/* ========== 友链 / 站点地图 ========== */
.fb-sitemap {
  margin: 40px 0;
  padding: 24px;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  position: relative;
  overflow: hidden;
}
.fb-sitemap::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--fb-brand), var(--fb-play), var(--fb-accent));
}
.fb-sitemap h3 {
  font-family: var(--fb-display);
  margin-bottom: 8px;
}
.fb-sitemap__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}
.fb-sitemap__links a {
  font-size: 13px;
  font-weight: 600;
}

/* ========== 页脚四列 ========== */
.fb-foot {
  margin-top: 60px;
  background:
    linear-gradient(180deg, rgba(232, 131, 10, 0.12) 0%, transparent 30%),
    var(--fb-header);
  color: rgba(255, 236, 208, 0.72);
  padding: 48px 0 32px;
  font-size: 13px;
}
.fb-foot a { color: rgba(255, 236, 208, 0.88); }
.fb-foot a:hover { color: var(--fb-brand-2); }
.fb-foot__grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-bottom: 28px;
}
.fb-foot__grid > div:first-child > p {
  margin: 0;
  max-width: 28em;
  line-height: 1.55;
}
.fb-foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fb-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.fb-foot h4 {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fb-rank);
  margin: 0 0 12px;
}
.fb-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.fb-foot li { margin-bottom: 8px; }
.fb-foot__legal {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 1.7;
  font-size: 12px;
  color: rgba(255, 236, 208, 0.48);
}
.fb-foot__legal p { margin: 0 0 10px; }
.fb-foot__copy {
  margin-top: 16px;
  font-size: 12px;
  color: rgba(255, 236, 208, 0.38);
}

@media (max-width: 767px) {
  .fb-foot {
    margin-top: 40px;
    padding: 28px 0 24px;
    font-size: 12px;
  }
  .fb-foot__grid {
    gap: 16px 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
  }
  .fb-foot__grid > div:first-child {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .fb-foot__grid > div:first-child > p {
    flex: 1 1 100%;
    font-size: 11px;
    line-height: 1.45;
    color: rgba(255, 236, 208, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .fb-foot__brand {
    margin-bottom: 0;
    font-size: 1rem;
  }
  .fb-foot h4 {
    font-size: 11px;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
  .fb-foot li {
    margin-bottom: 5px;
    line-height: 1.35;
  }
  .fb-foot li a {
    font-size: 11px;
    word-break: break-all;
  }
  .fb-foot__legal {
    padding-top: 14px;
    font-size: 11px;
    line-height: 1.55;
  }
  .fb-foot__copy {
    margin-top: 10px;
    font-size: 11px;
  }
}

@media (min-width: 768px) {
  .fb-foot__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr);
  }
}

/* ========== 回到顶部 ========== */
.fb-top-btn {
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--fb-brand);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--fb-shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 150;
}
.fb-top-btn.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.fb-top-btn:hover {
  background: var(--fb-brand-2);
  transform: translateY(-2px);
}
.fb-top-btn::before {
  content: "↑";
  font-size: 18px;
  line-height: 1;
}

/* ========== 空状态 / Tab ========== */
.empty-state {
  text-align: center;
  padding: 40px;
  color: var(--fb-muted);
  background: var(--fb-panel);
  border: 1px dashed var(--fb-line);
  border-radius: var(--fb-radius-lg);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ========== 移动端响应式 ========== */
@media (max-width: 767px) {
  :root {
    --fb-poster-w: 108px;
    --fb-poster-w-lg: 140px;
  }
  .fb-wrap { padding: 0 14px; }
  .fb-hero { padding: 28px 0 24px; }
  .fb-hero h1 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .fb-portals { gap: 8px; }
  .fb-portal {
    padding: 12px 14px 12px 16px;
    gap: 8px 10px;
  }
  .fb-portal__num { font-size: 1.15rem; }
  .fb-feature::before { width: 4px; }
  .fb-feature__body {
    padding: 18px 16px 18px 20px;
  }
  .fb-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 8px;
  }
  .fb-mosaic {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .fb-rail { gap: 10px; }
  .fb-detail {
    padding: 16px;
    margin-top: 12px;
  }
  .fb-detail::before {
    top: 12px;
    bottom: 12px;
    width: 3px;
  }
  .fb-detail-page .fb-sheet--episodes { margin-top: 16px; }
  .fb-detail-page--v02 .fb-wrap + .fb-wrap > :first-child,
  .fb-detail-page--v03 .fb-wrap + .fb-wrap > :first-child {
    margin-top: 16px;
  }
  @media (min-width: 480px) {
    .fb-detail {
      grid-template-columns: var(--fb-poster-w-lg) 1fr;
      align-items: start;
    }
    .fb-detail__poster {
      max-width: var(--fb-poster-w-lg);
    }
  }
  .fb-vitem__cap {
    font-size: 12px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
  }
  .fb-row { grid-template-columns: 72px 1fr; }
  .fb-sheet,
  .fb-dock {
    padding: 16px;
  }
  .fb-pagehead { padding: 20px 0 16px; }
  .fb-top-btn {
    right: 14px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 479px) {
  .fb-find { max-width: 140px; }
  .fb-find--bar { max-width: none; height: 48px; }
  .fb-find--bar input { padding: 0 96px 0 18px; font-size: 14px; }
  .fb-find--bar button { min-width: 68px; height: 36px; padding: 0 14px; font-size: 13px; }
  .fb-brand__name { font-size: 1rem; }
  .fb-top__inner { gap: 10px; min-height: 56px; }
  .fb-ep-grid a {
    min-width: 42px;
    padding: 7px 10px;
    font-size: 12px;
  }
}

/* ========== 短剧 App 风：首页搜索条 / 今日大卡 / 横滑 / 题材卡 ========== */
.fb-home main { padding-bottom: 8px; }
.fb-searchbar {
  background:
    linear-gradient(180deg, rgba(42, 21, 0, 0.92) 0%, #2a1500 100%);
  color: var(--fb-on-dark);
  padding: 24px 0 22px;
  margin-bottom: 22px;
}
.fb-searchbar__inner { display: flex; flex-direction: column; gap: 14px; }
.fb-searchbar__title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.04em;
}
.fb-find--bar {
  position: relative;
  width: 100%;
  max-width: none;
  height: 52px;
  background: #fff;
  border-radius: 999px;
  border: 2px solid rgba(240, 144, 10, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.fb-find--bar input {
  width: 100%;
  height: 100%;
  color: var(--fb-ink);
  font-size: 15px;
  line-height: 1.3;
  padding: 0 108px 0 22px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  outline: none;
  box-sizing: border-box;
}
.fb-find--bar input::placeholder {
  color: var(--fb-muted);
  opacity: 1;
}
.fb-find--bar input:focus {
  border: 0;
  background: transparent;
  box-shadow: none;
}
.fb-find--bar:focus-within {
  border-color: var(--fb-play);
  box-shadow: 0 0 0 3px rgba(240, 144, 10, 0.22), 0 8px 24px rgba(0, 0, 0, 0.18);
}
.fb-find--bar button {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: auto;
  min-width: 76px;
  height: 40px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--fb-play), var(--fb-brand));
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(240, 144, 10, 0.35);
}
.fb-find--bar button:hover {
  background: linear-gradient(135deg, var(--fb-play-2), var(--fb-brand-2));
  color: #fff;
}
.fb-genre-chips,
.fb-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fb-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #ffecd0;
  background: rgba(255, 236, 208, 0.12);
  border: 1px solid rgba(255, 236, 208, 0.22);
}
.fb-chip:hover { color: #fff; background: rgba(232, 131, 10, 0.42); }
.fb-chip--hot {
  background: var(--fb-play);
  border-color: transparent;
  color: #fff;
}
.fb-chip--outline {
  background: transparent;
  border-style: dashed;
}

.fb-today-feat {
  position: relative;
  margin: 0 0 28px;
  border-radius: var(--fb-radius-lg);
  overflow: hidden;
  background: var(--fb-header);
  box-shadow: var(--fb-shadow-deep);
}
.fb-today-feat__badge {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: var(--fb-play);
}
.fb-today-feat__cover {
  display: block;
  position: relative;
  min-height: 240px;
  color: #fff;
}
.fb-today-feat__cover img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center top;
}
@media (min-width: 768px) {
  .fb-today-feat__cover { display: grid; grid-template-columns: 260px 1fr; min-height: 320px; }
  .fb-today-feat__cover img { height: 100%; min-height: 320px; }
}
.fb-today-feat__overlay {
  padding: 22px 22px 26px;
  background: linear-gradient(180deg, rgba(24, 12, 0, 0.35), rgba(24, 12, 0, 0.88));
}
@media (min-width: 768px) {
  .fb-today-feat__overlay {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(90deg, rgba(24, 12, 0, 0.15), rgba(24, 12, 0, 0.92));
  }
}
.fb-today-feat__overlay h2 {
  color: #fff;
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  margin: 0 0 8px;
}
.fb-today-feat__meta,
.fb-today-feat__desc {
  color: rgba(255, 236, 208, 0.82);
  font-size: 13px;
  margin: 0 0 8px;
}
.fb-today-feat__desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fb-today-feat .fb-btn { align-self: flex-start; margin-top: 8px; }

.fb-strip { margin: 0 0 32px; }
.fb-strip__head,
.fb-section-head,
.fb-channel-slim__head,
.fb-channel-mini__head,
.fb-dock__head,
.fb-ep-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fb-ep-header h2,
.fb-ep-header h3 {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 15px;
  font-weight: 800;
}
.fb-section-head { margin: 8px 0 16px; padding-bottom: 10px; border-bottom: 2px solid var(--fb-brand); }
.fb-section-head h2,
.fb-strip__title,
.fb-channel-slim__head h3,
.fb-channel-mini__head h4 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--fb-ink);
}
.fb-section-head h2 a,
.fb-strip__title,
.fb-channel-slim__head h3 a,
.fb-channel-mini__head h4 a { color: var(--fb-ink); }
.fb-strip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--fb-play);
  box-shadow: 0 0 0 4px rgba(240, 144, 10, 0.18);
}
.fb-strip__head { justify-content: flex-start; }
.fb-strip__title { flex: 1; font-weight: 800; }

.fb-scroll-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.fb-scroll-row::-webkit-scrollbar { height: 4px; }
.fb-scroll-row::-webkit-scrollbar-thumb { background: var(--fb-line); border-radius: 4px; }
.fb-scard {
  flex: 0 0 112px;
  width: 112px;
  scroll-snap-align: start;
}
@media (min-width: 640px) {
  .fb-scard { flex-basis: 132px; width: 132px; }
}
.fb-scard a { color: var(--fb-ink); display: block; }
.fb-scard__cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: var(--fb-radius);
  overflow: hidden;
  background: var(--fb-poster-bg);
}
.fb-scard__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.fb-scard__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--fb-play);
  color: #fff;
}
.fb-scard__name {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fb-genre-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
@media (min-width: 768px) {
  .fb-genre-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fb-genre-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 14px 16px;
  border-radius: var(--fb-radius-card);
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  color: var(--fb-ink);
  box-shadow: 0 2px 10px rgba(42, 21, 0, 0.04);
}
.fb-genre-card:hover {
  border-color: var(--fb-brand);
  color: var(--fb-ink);
  transform: translateY(-2px);
}
.fb-genre-card--hot {
  background: linear-gradient(160deg, #fff6e4, #ffe8c2);
  border-color: rgba(232, 131, 10, 0.35);
}
.fb-genre-card__icon { font-size: 22px; line-height: 1; }
.fb-genre-card__name { font-weight: 800; font-size: 15px; }
.fb-genre-card__hint { font-size: 12px; color: var(--fb-muted); }

.fb-wall--lg { margin-bottom: 28px; }
.fb-wall--sm { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .fb-wall--sm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .fb-wall--sm { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.fb-rank-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}
@media (min-width: 700px) {
  .fb-rank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .fb-rank-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fb-rank-col {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 14px;
}
.fb-rank-col h3 { font-size: 14px; margin: 0 0 10px; padding-left: 8px; border-left: 3px solid var(--fb-rank); }
.fb-rank-col h3 a { color: var(--fb-ink); }
.fb-rank-col li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--fb-line);
  font-size: 13px;
}
.fb-rank-col li:last-child { border-bottom: 0; }
.fb-rank-n { font-weight: 800; color: var(--fb-muted); }
.fb-rank-n.is-top { color: var(--fb-rank); }
.fb-rank-col li a { color: var(--fb-ink-2); }

.fb-other-channels { display: grid; gap: 28px; margin-bottom: 28px; }
.fb-channel-slim__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.fb-channel-slim__tags a { font-size: 12px; color: var(--fb-muted); }
.fb-channel-row {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .fb-channel-row { grid-template-columns: 1fr 1fr; }
}
.fb-channel-mini {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 14px 16px;
}
.fb-channel-mini__list li { padding: 7px 0; border-bottom: 1px dashed var(--fb-line); font-size: 13px; }
.fb-channel-mini__list li:last-child { border-bottom: 0; }
.fb-channel-mini__list a { color: var(--fb-ink-2); }

.fb-menu__link--hot {
  color: #fff !important;
  background: rgba(240, 144, 10, 0.38);
}

/* ========== 详情 App 横幅 + 折叠简介 ========== */
.fb-drama-banner {
  position: relative;
  min-height: 280px;
  margin-bottom: 20px;
  overflow: hidden;
  background: var(--fb-header);
}
.fb-drama-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.08);
}
.fb-drama-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(24, 12, 0, 0.25) 0%, rgba(24, 12, 0, 0.82) 100%);
}
.fb-drama-banner__body {
  position: relative;
  z-index: 2;
  padding: 28px 20px 32px;
}
.fb-crumb--light,
.fb-crumb--light a,
.fb-crumb--light em { color: rgba(255, 236, 208, 0.78); }
.fb-drama-banner__info h1 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.fb-drama-banner__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 12px;
}
.fb-drama-banner__tags span,
.fb-drama-banner__tags a {
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffecd0;
}
.fb-drama-banner__cast { color: rgba(255, 236, 208, 0.78); font-size: 13px; }
.fb-drama-banner__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.fb-btn--play {
  background: linear-gradient(135deg, var(--fb-play), var(--fb-brand));
  color: #fff;
  border: 0;
  border-radius: 999px;
  min-height: 42px;
  padding: 0 22px;
}
.fb-btn--ghost {
  background: transparent;
  color: #ffecd0;
  border: 1px solid rgba(255, 236, 208, 0.4);
}
.fb-btn--ghost:hover { color: #fff; border-color: #fff; }
.fb-detail-body { padding-bottom: 24px; }
.fb-detail-body > .fb-sheet,
.fb-detail-body > .fb-desc-fold,
.fb-detail-body > .fb-block {
  width: 100%;
  max-width: 100%;
}
.fb-desc-fold {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 20px 22px;
  margin: 0 0 18px;
}
.fb-desc-fold summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--fb-ink);
}
.fb-desc-fold[open] summary { margin-bottom: 10px; }
.fb-desc-fold__more { margin-top: 10px; }
.fb-pagehead--compact { border-bottom: 0; margin-bottom: 0; }
.fb-pagehead__lead { color: var(--fb-muted); font-size: 14px; margin: 0; }
.fb-pagehead__acts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}
.fb-tag-row {
  margin: 12px 0;
}
.fb-tag-row > a,
.fb-tag-row > span {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  color: var(--fb-ink-2);
}
.fb-tag-row > a:hover {
  border-color: var(--fb-accent);
  color: var(--fb-accent);
}
.fb-read-first {
  background: var(--fb-panel);
  border: 1px solid var(--fb-line);
  border-radius: var(--fb-radius-lg);
  padding: 20px 22px;
  margin: 0;
}
.fb-read-first__head {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  margin-bottom: 16px;
}
@media (min-width: 640px) {
  .fb-read-first__head { grid-template-columns: 120px 1fr; }
}
.fb-read-first__poster {
  width: 120px;
  border-radius: var(--fb-radius);
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: var(--fb-poster-bg);
}
.fb-read-first__poster img { width: 100%; height: 100%; object-fit: cover; }
.fb-meta--sm { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 10px 0 14px; }
.fb-meta--sm em { color: var(--fb-muted); margin-right: 6px; font-style: normal; font-size: 12px; }
.fb-tags--wide {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-tags--wide a {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--fb-paper-2);
  border: 1px solid var(--fb-line);
  color: var(--fb-ink-2);
  font-size: 13px;
}
.fb-tips-list li { padding: 8px 0; border-bottom: 1px dashed var(--fb-line); font-size: 14px; color: var(--fb-ink-2); }

/* ========== 播放页：播放器顶格 ========== */
.fb-player-stage {
  background: #000;
}
.fb-player-stage .fb-wrap {
  padding-top: 0;
  padding-bottom: 0;
}
.fb-player-stage .fb-screen {
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: 0;
  box-shadow: none;
}
.fb-player-bar {
  background: var(--fb-header);
  color: var(--fb-on-dark);
  padding: 10px 0;
}
.fb-player-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fb-player-bar__title a { color: #fff; font-weight: 800; }
.fb-player-bar__ep { margin-left: 8px; color: rgba(255, 236, 208, 0.72); font-size: 13px; }
.fb-player-bar__acts { display: flex; gap: 8px; }
.fb-player-bar__btn {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffecd0;
  font-size: 13px;
}
.fb-player-bar__btn--next { background: var(--fb-play); color: #fff; }
.fb-player-bar__btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
  cursor: default;
}
.fb-dock__detail { font-size: 13px; font-weight: 700; }

@media (max-width: 639px) {
  .fb-today-feat__cover img { height: 220px; }
  .fb-scard { flex-basis: 96px; width: 96px; }
  .fb-channel-slim__head { flex-wrap: wrap; }
  .fb-channel-slim__tags { margin-left: 0; width: 100%; }
}

/* 打印友好 */
@media print {
  .fb-top,
  .fb-drawer,
  .fb-notice,
  .fb-top-btn,
  .fb-foot { display: none !important; }
  body { background: #fff; color: #000; }
  .fb-screen { break-inside: avoid; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
