@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@300;400;500;700;900&family=Noto+Serif+SC:wght@400;600;700&display=swap');

/* ============================================================
   悟空短剧 — fd04-theme v1.0 — movie_fd04 / 悟空短剧 — mobile-first PC/mobile splits
   Dark cinema streaming theme (layout / visual polish)
   ============================================================ */

:root {
  /* Colors */
  --fd04-bg: #0a0a0f;
  --fd04-card: #13131a;
  --fd04-primary: #e63946;
  --fd04-primary-hover: #ff4d5a;
  --fd04-primary-dim: rgba(230, 57, 70, 0.18);
  --fd04-accent: #f4a261;
  --fd04-accent-dim: rgba(244, 162, 97, 0.16);
  --fd04-text: #e8e8f0;
  --fd04-muted: #7070a0;
  --fd04-muted-soft: #a0a0b8;
  --fd04-border: #1e1e2a;
  --fd04-border-strong: #2a2a3a;
  --fd04-topbar: #06060a;
  --fd04-topbar-glass: rgba(6, 6, 10, 0.88);
  --fd04-overlay: rgba(0, 0, 0, 0.55);
  --fd04-shade: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.88) 100%);
  --fd04-hero-overlay: linear-gradient(90deg, rgba(10, 10, 15, 0.96) 0%, rgba(10, 10, 15, 0.72) 42%, rgba(10, 10, 15, 0.28) 70%, transparent 100%);

  /* Shape / type / depth */
  --fd04-radius: 12px;
  --fd04-radius-sm: 6px;
  --fd04-radius-pill: 999px;
  --fd04-max: 1260px;
  --fd04-font: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --fd04-font-heading: 'Noto Serif SC', 'Noto Sans SC', serif;
  --fd04-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
  --fd04-shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.35);
  --fd04-transition: 0.22s ease;
  --fd04-z-top: 1000;
  --fd04-z-drawer: 1100;
  --fd04-z-log: 1200;
  --fd04-z-topbtn: 900;
  --fd04-cover-ratio: 2 / 3;

  /* Spacing scale (mobile-first) */
  --fd04-space-1: 4px;
  --fd04-space-2: 8px;
  --fd04-space-3: 12px;
  --fd04-space-4: 16px;
  --fd04-space-5: 20px;
  --fd04-space-6: 24px;
  --fd04-space-7: 32px;
  --fd04-space-8: 48px;
  --fd04-gutter: 20px;
  --fd04-section: 32px;
  --fd04-stack: 14px;
  --fd04-card-pad: 16px;
  --fd04-grid-gap: 14px;
  --fd04-title-gap: 12px;
}

/* ---------- Reset / Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--fd04-bg); color: var(--fd04-text);
  font-family: var(--fd04-font); font-size: 14px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
body.is-drawer-open { overflow: hidden; }
a { color: inherit; text-decoration: none; transition: color var(--fd04-transition); }
a:hover { color: var(--fd04-primary); }
img { max-width: 100%; height: auto; display: block; border: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--fd04-font-heading); font-weight: 700; line-height: 1.3;
  margin: 0; color: var(--fd04-text);
}
p { margin: 0; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--fd04-bg); }
::-webkit-scrollbar-thumb { background: var(--fd04-border-strong); border-radius: var(--fd04-radius-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--fd04-muted); }
* { scrollbar-width: thin; scrollbar-color: var(--fd04-border-strong) var(--fd04-bg); }

/* ---------- Layout shell ---------- */
.fd04-wrap { width: 100%; max-width: var(--fd04-max); margin: 0 auto; padding: 0 var(--fd04-gutter); }

.fd04-top {
  position: sticky; top: 0; z-index: var(--fd04-z-top);
  background: var(--fd04-topbar-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--fd04-border);
}
.fd04-top__inner {
  display: flex; align-items: center; gap: 10px;
  max-width: var(--fd04-max); margin: 0 auto;
  padding: 8px var(--fd04-gutter) 0; min-height: 48px;
  flex-wrap: wrap;
}
.fd04-top__tools { display: flex; align-items: center; gap: var(--fd04-space-2); margin-left: auto; flex-shrink: 0; }

.fd04-brand {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
  color: var(--fd04-text); max-width: calc(100vw - 120px);
}
.fd04-brand:hover { color: var(--fd04-text); }
.fd04-brand__glyph {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--fd04-radius-sm); flex-shrink: 0;
  background: linear-gradient(145deg, #ff4d5a 0%, #e63946 45%, #b91c28 100%);
  color: #fff; font-family: var(--fd04-font-heading); font-weight: 700; font-size: 15px;
  box-shadow: 0 2px 10px rgba(230, 57, 70, 0.4);
}
.fd04-brand__name {
  font-family: var(--fd04-font-heading); font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/* Always-visible nav strip (no hamburger) */
.fd04-top__inner > .fd04-menu {
  display: flex; align-items: center; gap: 6px;
  order: 3; flex: 1 1 100%; width: 100%;
  margin: 0 calc(var(--fd04-gutter) * -1); padding: 6px var(--fd04-gutter) 10px;
  overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  scrollbar-width: none; border-top: 1px solid var(--fd04-border);
}
.fd04-top__inner > .fd04-menu::-webkit-scrollbar { display: none; }
.fd04-menu {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: nowrap; min-width: 0;
}
.fd04-menu__link {
  display: inline-flex; align-items: center; padding: 6px 12px;
  border-radius: var(--fd04-radius-pill); color: var(--fd04-muted-soft);
  font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
  transition: background var(--fd04-transition), color var(--fd04-transition);
}
.fd04-menu__link:hover { color: var(--fd04-text); background: rgba(255, 255, 255, 0.04); }
.fd04-menu__link.is-active,
.fd04-menu__link.active,
.fd04-menu__link.is-current { background: var(--fd04-primary); color: #fff; }
.fd04-menu__link.is-active:hover,
.fd04-menu__link.active:hover,
.fd04-menu__link.is-current:hover { background: var(--fd04-primary-hover); color: #fff; }

/* Hamburger + drawer retired — keep rules inert for old markup */
.fd04-menu-btn,
.fd04-drawer { display: none !important; }

.fd04-find {
  display: none; align-items: center; background: var(--fd04-card);
  border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius-pill);
  overflow: hidden; width: 160px; max-width: 200px; flex-shrink: 1; min-width: 0;
  transition: border-color var(--fd04-transition);
}
.fd04-find:focus-within { border-color: var(--fd04-primary); }
.fd04-find input {
  flex: 1; min-width: 0; padding: 8px 14px; background: transparent;
  border: none; outline: none; color: var(--fd04-text); font-size: 13px;
}
.fd04-find input::placeholder { color: var(--fd04-muted); }
.fd04-find button,
.fd04-find [type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 38px; height: 34px; margin: 2px; padding: 0 12px;
  border-radius: var(--fd04-radius-pill);
  background: var(--fd04-primary); color: #fff; font-size: 13px; flex-shrink: 0;
  white-space: nowrap; transition: background var(--fd04-transition);
}
.fd04-find button:hover,
.fd04-find [type="submit"]:hover { background: var(--fd04-primary-hover); }
.fd04-find--lg {
  display: flex; width: 100%; max-width: 480px; min-height: 48px; border-radius: var(--fd04-radius-pill);
}
.fd04-find--lg input { padding: 12px 18px; font-size: 15px; }
.fd04-find--lg button { height: 40px; padding: 0 18px; font-size: 14px; }

.fd04-log { position: relative; }
.fd04-log-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; min-width: 38px; height: 38px; padding: 0 10px;
  border-radius: var(--fd04-radius); border: 1px solid var(--fd04-border); background: var(--fd04-card);
  color: var(--fd04-muted-soft); font-size: 13px; white-space: nowrap;
  transition: border-color var(--fd04-transition), color var(--fd04-transition);
}
.fd04-log-btn:hover,
.fd04-log-btn.is-active { border-color: var(--fd04-primary); color: var(--fd04-primary); }
.fd04-log__panel {
  display: none; position: absolute; top: calc(100% + 8px); right: -8px;
  width: min(300px, calc(100vw - 28px)); max-height: 380px; background: var(--fd04-card);
  border: 1px solid var(--fd04-border-strong); border-radius: var(--fd04-radius);
  box-shadow: var(--fd04-shadow); z-index: var(--fd04-z-log); overflow: hidden;
}
.fd04-log__panel.is-open,
.fd04-log.is-open .fd04-log__panel { display: flex; flex-direction: column; }
.fd04-log__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--fd04-space-3) 14px; border-bottom: 1px solid var(--fd04-border);
  font-weight: 600; font-size: 14px;
}
.fd04-log__clear { color: var(--fd04-muted); font-size: 12px; font-weight: 400; }
.fd04-log__clear:hover { color: var(--fd04-primary); }
.fd04-log__list { overflow-y: auto; max-height: 300px; padding: var(--fd04-space-2); }
.fd04-log__list a,
.fd04-log__list li {
  display: block; padding: 8px 10px; border-radius: var(--fd04-radius-sm);
  font-size: 13px; color: var(--fd04-muted-soft);
}
.fd04-log__list a:hover,
.fd04-log__list li:hover { background: rgba(255, 255, 255, 0.04); color: var(--fd04-text); }
.fd04-log__empty { padding: 28px var(--fd04-space-4); text-align: center; color: var(--fd04-muted); font-size: 13px; }

.fd04-notice {
  position: relative; background: var(--fd04-primary-dim);
  border-bottom: 1px solid rgba(230, 57, 70, 0.25); color: var(--fd04-text);
  font-size: 12px; padding: 10px 36px 10px 14px; text-align: center;
}
.fd04-notice p {
  margin: 0 auto; max-width: var(--fd04-max);
  overflow: hidden; text-overflow: ellipsis;
  white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.fd04-notice__x {
  position: absolute; right: var(--fd04-space-4); top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; color: var(--fd04-muted-soft);
  font-size: 16px; line-height: 1;
}
.fd04-notice__x:hover { color: var(--fd04-text); background: rgba(255, 255, 255, 0.06); }

.fd04-foot {
  margin-top: 40px; background: var(--fd04-topbar); border-top: 1px solid var(--fd04-border);
  padding: var(--fd04-space-7) 0 var(--fd04-space-5); color: var(--fd04-muted); font-size: 13px;
}
.fd04-foot__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--fd04-space-5);
  max-width: var(--fd04-max); margin: 0 auto; padding: 0 var(--fd04-gutter) var(--fd04-space-5);
}
.fd04-foot__grid > div:first-child { grid-column: 1 / -1; }
.fd04-foot__brand {
  display: flex; align-items: center; gap: var(--fd04-space-2);
  font-family: var(--fd04-font-heading); font-size: 16px; font-weight: 700; color: var(--fd04-text);
}
.fd04-foot__brand + p,
.fd04-foot__brand ~ p { color: var(--fd04-muted); line-height: 1.7; max-width: 280px; margin-top: var(--fd04-space-3); }
.fd04-foot h4,
.fd04-foot__grid h4 {
  font-family: var(--fd04-font); font-size: 14px; font-weight: 600;
  color: var(--fd04-text); margin-bottom: 14px;
}
.fd04-foot__grid a { display: block; color: var(--fd04-muted); padding: var(--fd04-space-1) 0; font-size: 13px; }
.fd04-foot__grid a:hover { color: var(--fd04-primary); }
.fd04-foot__legal,
.fd04-foot__copy {
  max-width: var(--fd04-max); margin: 0 auto; padding: var(--fd04-space-4) var(--fd04-gutter) 0;
  border-top: 1px solid var(--fd04-border); text-align: center;
  color: var(--fd04-muted); font-size: 12px; line-height: 1.8;
}
.fd04-foot__copy { border-top: none; padding-top: var(--fd04-space-2); }

.fd04-top-btn {
  position: fixed; right: 14px; bottom: 18px; z-index: var(--fd04-z-topbtn);
  display: none; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--fd04-primary);
  color: #fff; font-size: 18px; box-shadow: 0 4px 20px rgba(230, 57, 70, 0.45);
  transition: background var(--fd04-transition), transform var(--fd04-transition);
}
.fd04-top-btn::before { content: '↑'; font-weight: 700; line-height: 1; }
.fd04-top-btn.is-visible,
.fd04-top-btn.is-active { display: inline-flex; }
.fd04-top-btn:hover { background: var(--fd04-primary-hover); transform: translateY(-2px); color: #fff; }

/* ---------- Home: Hero + Layout ---------- */
.fd04-hero {
  position: relative; width: 100%; min-height: 240px; margin-bottom: var(--fd04-section);
  overflow: hidden; background: var(--fd04-topbar); display: flex; align-items: center;
}
.fd04-hero__bg { position: absolute; inset: 0; }
.fd04-hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center top;
}
.fd04-hero__bg::after {
  content: ''; position: absolute; inset: 0; background: var(--fd04-hero-overlay);
}
.fd04-hero__body {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--fd04-stack);
  max-width: 100%; padding: 28px var(--fd04-gutter) 24px; min-width: 0;
}
.fd04-hero__body h1 {
  font-family: var(--fd04-font-heading); font-size: 20px;
  font-weight: 700; line-height: 1.15; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
  word-break: break-word;
}
.fd04-hero__meta {
  color: var(--fd04-muted); font-size: 13px;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-hero__desc {
  color: var(--fd04-muted-soft); font-size: 14px; line-height: 1.75; max-width: 440px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-hero__acts { display: flex; flex-wrap: wrap; gap: var(--fd04-space-3); margin-top: 6px; }
.fd04-hero__acts .fd04-btn { white-space: nowrap; flex: 0 1 auto; }
.fd04-hero__chips { margin-top: var(--fd04-space-2); }
.fd04-hero--brand {
  min-height: 240px;
  background:
    radial-gradient(ellipse 70% 80% at 80% 20%, rgba(230, 57, 70, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 80%, rgba(244, 162, 97, 0.12), transparent 50%),
    var(--fd04-bg);
}
.fd04-hero--brand .fd04-hero__body { max-width: 640px; }

.fd04-layout {
  display: grid; grid-template-columns: 1fr; gap: var(--fd04-section); align-items: start;
  margin-bottom: var(--fd04-section);
}
.fd04-main { min-width: 0; display: flex; flex-direction: column; gap: var(--fd04-space-3); }
.fd04-aside {
  position: static; display: flex; flex-direction: row; gap: var(--fd04-stack); min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; padding-bottom: var(--fd04-space-1); scrollbar-width: none;
}
.fd04-aside::-webkit-scrollbar { display: none; }
.fd04-aside > * { flex: 0 0 min(260px, 84vw); scroll-snap-align: start; }
.fd04-aside__card {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: var(--fd04-card-pad);
}
.fd04-aside__card h3 {
  font-family: var(--fd04-font-heading); font-size: 14px; margin-bottom: 14px;
  display: flex; align-items: center; gap: var(--fd04-space-2);
}
.fd04-aside__card h3::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--fd04-accent);
  flex-shrink: 0;
}
.fd04-aside__links {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.fd04-aside__links li { width: auto; }
.fd04-aside__links a {
  display: inline-flex; font-size: 12px; color: var(--fd04-muted-soft); padding: 5px 10px;
  border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius-pill);
}
.fd04-aside__links a:hover { color: var(--fd04-primary); }
.fd04-aside__card .fd04-chips { margin-bottom: 0; }

.fd04-rows {
  display: flex; flex-direction: column; border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); overflow: hidden; margin-bottom: var(--fd04-space-6);
}
.fd04-rows > a {
  display: flex; align-items: center; gap: 14px; padding: var(--fd04-space-3) var(--fd04-space-4);
  background: var(--fd04-card); border-bottom: 1px solid var(--fd04-border);
  transition: background var(--fd04-transition); min-width: 0;
}
.fd04-rows > a:last-child { border-bottom: none; }
.fd04-rows > a:nth-child(even) { background: #111118; }
.fd04-rows > a:hover { background: var(--fd04-primary-dim); color: var(--fd04-text); }
.fd04-rows img {
  width: 48px; height: 72px; object-fit: cover; border-radius: 4px; flex-shrink: 0;
  background: var(--fd04-bg);
}
.fd04-rows__meta { display: flex; flex-direction: column; gap: var(--fd04-space-1); min-width: 0; flex: 1; }
.fd04-rows__meta strong {
  font-size: 14px; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.fd04-rows__meta em { font-style: normal; font-size: 12px; color: var(--fd04-muted); }

/* Search result rows */
.fd04-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: start;
  padding: 10px; background: var(--fd04-card); border-bottom: 1px solid var(--fd04-border);
  min-width: 0;
}
.fd04-rows > .fd04-row:last-child { border-bottom: none; }
.fd04-row__thumb {
  display: block; aspect-ratio: var(--fd04-cover-ratio); border-radius: var(--fd04-radius-sm);
  overflow: hidden; background: var(--fd04-bg); border: 1px solid var(--fd04-border);
}
.fd04-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.fd04-row__body { min-width: 0; display: flex; flex-direction: column; gap: var(--fd04-space-2); }
.fd04-row__title {
  font-family: var(--fd04-font); font-size: 17px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-row__title a:hover { color: var(--fd04-primary); }
.fd04-row__meta {
  color: var(--fd04-muted); font-size: 13px; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-row__acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--fd04-space-3); margin-top: var(--fd04-space-1); }
.fd04-row__acts .fd04-btn,
.fd04-feed__acts .fd04-btn { white-space: nowrap; }

.fd04-intent {
  display: flex; gap: 10px; margin-bottom: var(--fd04-space-6);
  overflow-x: auto; scrollbar-width: none; scroll-snap-type: x mandatory;
}
.fd04-intent::-webkit-scrollbar { display: none; }
.fd04-intent__card {
  display: flex; flex-direction: column; gap: 6px; padding: var(--fd04-space-4);
  background: var(--fd04-card); border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
  min-width: 0; flex: 0 0 min(220px, 75vw); scroll-snap-align: start;
  transition: border-color var(--fd04-transition), transform var(--fd04-transition);
}
.fd04-intent__card:hover { border-color: var(--fd04-primary); transform: translateY(-2px); color: var(--fd04-text); }
.fd04-intent__idx { color: var(--fd04-accent); font-size: 12px; font-weight: 700; letter-spacing: 0.04em; }
.fd04-intent__card strong { font-size: 15px; color: var(--fd04-text); }
.fd04-intent__card > span:last-child { color: var(--fd04-muted); font-size: 12px; }

/* legacy aliases */
.fd04-stage {
  position: relative; width: 100%; min-height: 240px; margin-bottom: var(--fd04-section);
  overflow: hidden; background: var(--fd04-card);
}
.fd04-stage::before {
  content: ''; position: absolute; inset: 0; background: var(--fd04-hero-overlay);
  z-index: 1; pointer-events: none;
}
.fd04-stage__lead {
  position: relative; z-index: 2; display: flex; flex-direction: column; gap: var(--fd04-space-4);
  max-width: 560px; padding: 28px var(--fd04-gutter) 24px;
  margin-left: var(--fd04-gutter);
}
.fd04-stage__lead h1 {
  font-family: var(--fd04-font-heading); font-size: 20px;
  font-weight: 700; line-height: 1.25; text-shadow: 0 2px 24px rgba(0, 0, 0, 0.6);
}
.fd04-stage__lead p { color: var(--fd04-muted-soft); font-size: 15px; max-width: 440px; line-height: 1.7; }
.fd04-stage__chips { display: flex; flex-wrap: wrap; gap: var(--fd04-space-2); margin-top: var(--fd04-space-2); }
.fd04-kicker {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--fd04-font); font-size: 12px; font-weight: 700;
  letter-spacing: 0.04em; color: #fff; background: var(--fd04-primary);
  padding: 3px 10px; border-radius: 4px; width: fit-content;
}

.fd04-lanes {
  display: flex; flex-wrap: nowrap; gap: 10px; margin-bottom: var(--fd04-section);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.fd04-lanes::-webkit-scrollbar { display: none; }
.fd04-lanes__item {
  display: inline-flex; align-items: center; padding: 8px var(--fd04-space-4);
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius-pill); color: var(--fd04-muted-soft);
  font-size: 13px; font-weight: 500; flex-shrink: 0;
  transition: border-color var(--fd04-transition), color var(--fd04-transition), background var(--fd04-transition);
}
.fd04-lanes__item:hover,
.fd04-lanes__item.is-active,
.fd04-lanes__item.active {
  border-color: var(--fd04-primary); color: #fff; background: var(--fd04-primary-dim);
}

.fd04-bento {
  display: grid; grid-template-columns: 1fr; gap: var(--fd04-grid-gap); margin-bottom: var(--fd04-section);
}
.fd04-bento__hero {
  position: relative; border-radius: var(--fd04-radius);
  overflow: hidden; min-height: 220px; background: var(--fd04-card);
}
.fd04-bento__cell {
  position: relative; border-radius: var(--fd04-radius); overflow: hidden;
  background: var(--fd04-card); border: 1px solid var(--fd04-border); min-height: 140px;
}

.fd04-feature {
  display: grid; grid-template-columns: 100px 1fr; gap: var(--fd04-space-3); align-items: start;
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: var(--fd04-space-3); margin-bottom: var(--fd04-section);
}
.fd04-feature__poster {
  position: relative; aspect-ratio: var(--fd04-cover-ratio); border-radius: var(--fd04-radius);
  overflow: hidden; background: var(--fd04-bg); max-width: none; margin: 0;
}
.fd04-feature__poster img { width: 100%; height: 100%; object-fit: cover; }
.fd04-feature__body { display: flex; flex-direction: column; gap: var(--fd04-space-3); min-width: 0; }
.fd04-feature__body h2 { font-size: 16px; text-align: left; }
.fd04-feature__meta {
  display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--fd04-muted-soft); font-size: 13px;
}
.fd04-feature__meta .score,
.fd04-feature__meta [class*="score"] { color: var(--fd04-accent); font-weight: 700; }
.fd04-feature__desc {
  color: var(--fd04-muted-soft); font-size: 14px; line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-feature__acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--fd04-space-2); justify-content: flex-start; }
.fd04-feature__acts .fd04-btn { white-space: nowrap; flex: 0 1 auto; }

.fd04-block { margin-bottom: var(--fd04-section); }
.fd04-block__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px 10px; margin-bottom: var(--fd04-title-gap); padding: 0 0 10px;
  width: 100%; max-width: 100%;
  border-bottom: 1px solid var(--fd04-border);
  flex-wrap: wrap;
}
.fd04-block__head > div {
  min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: var(--fd04-space-2);
}
.fd04-block__head h2,
.fd04-block__head h3 {
  position: relative; padding-left: 12px; font-size: 16px;
  font-weight: 700; line-height: 1.3; max-width: 100%;
}
.fd04-block__head h2::before,
.fd04-block__head h3::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 4px; border-radius: 2px; background: var(--fd04-primary);
}
.fd04-block__head .fd04-more,
.fd04-block__head .fd04-band__tools {
  flex: 0 0 auto; margin-left: auto; align-self: center;
}
.fd04-block__head .fd04-more { font-size: 12px; }
.fd04-block__head .fd04-band__tools .fd04-rail-btn { width: 30px; height: 30px; }
.fd04-block__head .fd04-subtags {
  margin: 0; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%;
}
.fd04-block__head .fd04-subtags::-webkit-scrollbar { display: none; }

.fd04-mosaic {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px;
}

.fd04-chips {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px; margin-bottom: 14px;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  padding-bottom: 2px;
}
.fd04-chips::-webkit-scrollbar { display: none; }
.fd04-chips__label { color: var(--fd04-muted); font-size: 13px; margin-right: var(--fd04-space-1); flex-shrink: 0; }
.fd04-chips a,
.fd04-chips span,
.fd04-chips button {
  display: inline-flex; align-items: center; gap: var(--fd04-space-1); padding: 5px 12px;
  border-radius: var(--fd04-radius-pill); background: var(--fd04-card);
  border: 1px solid var(--fd04-border); color: var(--fd04-muted-soft); font-size: 12px;
  flex-shrink: 0; max-width: 100%;
  transition: all var(--fd04-transition);
}
.fd04-chips a .n {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 16px; color: var(--fd04-accent); font-weight: 700; font-size: 11px;
}
.fd04-chips a:hover,
.fd04-chips a.is-active,
.fd04-chips a.active,
.fd04-chips .is-active,
.fd04-chips .active {
  background: var(--fd04-primary); border-color: var(--fd04-primary); color: #fff;
}

.fd04-picks {
  display: flex; gap: var(--fd04-space-3); overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; padding-bottom: var(--fd04-space-1); scrollbar-width: none;
}
.fd04-picks::-webkit-scrollbar { display: none; }
.fd04-pick-col {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: var(--fd04-space-3); min-width: 0;
  flex: 0 0 min(260px, 82vw); scroll-snap-align: start;
}
.fd04-pick-col h3 { font-size: 15px; margin-bottom: var(--fd04-space-3); padding-left: 12px; position: relative; }
.fd04-pick-col h3::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 3px; border-radius: 2px; background: var(--fd04-primary);
}
.fd04-pick-col ol,
.fd04-pick-col ul,
.fd04-rank-list {
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.fd04-pick-col li,
.fd04-rank-list li {
  display: flex; align-items: center; gap: 10px; font-size: 13px;
  color: var(--fd04-muted-soft); padding: var(--fd04-space-1) 0; min-width: 0;
  list-style: none;
}
.fd04-pick-col li::marker,
.fd04-rank-list li::marker { content: ''; font-size: 0; }
.fd04-pick-col ol:not(.fd04-rank-list) > li::before { content: none !important; display: none !important; }
.fd04-pick-col li a,
.fd04-rank-list li a {
  flex: 1; min-width: 0; padding: 0; display: block;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  color: var(--fd04-muted-soft);
}
.fd04-pick-col li:hover a,
.fd04-rank-list li:hover a { color: var(--fd04-text); }
.fd04-pick-col .fd04-rank-list > li:nth-child(n+6) { display: none; }

/* Single number source via CSS counter */
.fd04-rank-list { counter-reset: fd04-rank; list-style: none; }
.fd04-rank-list > li { counter-increment: fd04-rank; list-style: none; }
.fd04-rank-list > li::before {
  content: counter(fd04-rank) !important;
  display: inline-flex !important;
  align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px; background: var(--fd04-border-strong);
  color: var(--fd04-muted-soft); font-size: 12px; font-weight: 700; font-family: var(--fd04-font);
  flex-shrink: 0; line-height: 1;
}
.fd04-rank-list > li:nth-child(-n+3)::before {
  background: var(--fd04-primary) !important; color: #fff !important;
}

/* Legacy .n badge (chips etc.) */
.fd04-pick-col .n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 4px; background: var(--fd04-border-strong);
  color: var(--fd04-muted-soft); font-size: 12px; font-weight: 700; font-family: var(--fd04-font);
  flex-shrink: 0;
}
.fd04-pick-col .n.is-hot { background: var(--fd04-primary); color: #fff; }

/* Latest strip: mobile = horizontal scroll; desktop = 2-col */
.fd04-rows--rail {
  display: flex; flex-direction: row; gap: 10px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; border: none; background: transparent;
  padding-bottom: var(--fd04-space-1); scrollbar-width: none; margin-bottom: 0;
}
.fd04-rows--rail::-webkit-scrollbar { display: none; }
.fd04-rows--rail > a {
  flex: 0 0 140px; scroll-snap-align: start;
  flex-direction: column; align-items: stretch; gap: var(--fd04-space-2);
  padding: 10px; border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
  background: var(--fd04-card); border-bottom: 1px solid var(--fd04-border); border-right: none;
}
.fd04-rows--rail > a:nth-child(even) { background: var(--fd04-card); }
.fd04-rows--rail > a:nth-child(2n) { border-right: none; }
.fd04-rows--rail > a:nth-last-child(-n+2) { border-bottom: 1px solid var(--fd04-border); }
.fd04-rows--rail img {
  width: 100%; height: auto; aspect-ratio: 2 / 3; border-radius: var(--fd04-radius-sm);
}
.fd04-rows--rail .fd04-rows__meta strong {
  white-space: normal;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.fd04-band { margin-bottom: var(--fd04-section); }
.fd04-band__tools { display: flex; align-items: center; gap: var(--fd04-space-2); flex-shrink: 0; }
.fd04-band__tools .fd04-more { display: none; }
.fd04-rail {
  display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--fd04-space-2); -webkit-overflow-scrolling: touch;
  width: 100%;
}
.fd04-rail > *,
.fd04-rail > .fd04-vitem {
  flex: 0 0 88px;
  width: 88px;
  min-width: 88px;
  max-width: 88px;
  scroll-snap-align: start;
}
.fd04-rail .fd04-vitem { box-sizing: border-box; }
.fd04-rail .fd04-vitem__title,
.fd04-rail h3.fd04-vitem__title { font-size: 11px; }
.fd04-rail .fd04-vitem__sub { font-size: 10px; }
.fd04-rail-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--fd04-border-strong); background: var(--fd04-card);
  color: var(--fd04-muted-soft); font-size: 14px; transition: all var(--fd04-transition);
}
.fd04-rail-btn:hover { border-color: var(--fd04-primary); color: var(--fd04-primary); }

/* Dense related rail / grid: show more titles at once */
.fd04-rail--dense {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  overflow: visible;
  scroll-snap-type: none;
  padding-bottom: 0;
}
.fd04-rail--dense > * {
  width: auto; min-width: 0; flex: none;
}
.fd04-rail--dense .fd04-vitem__sub { display: none; }
.fd04-rail--dense .fd04-vitem__title,
.fd04-rail--dense h3.fd04-vitem__title,
.fd04-rail--dense h4.fd04-vitem__title { font-size: 11px; -webkit-line-clamp: 2; }
.fd04-rail--dense .fd04-vitem__tag { display: none; }

.fd04-portals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fd04-space-2); margin-bottom: var(--fd04-section);
}
.fd04-portal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--fd04-space-1); padding: var(--fd04-space-3) 6px; background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); color: var(--fd04-muted-soft); font-size: 14px; font-weight: 500;
  text-align: center; min-width: 0;
  transition: border-color var(--fd04-transition), color var(--fd04-transition), transform var(--fd04-transition);
}
.fd04-portal:hover { border-color: var(--fd04-primary); color: var(--fd04-text); transform: translateY(-2px); }
.fd04-portal--hot { border-color: rgba(230, 57, 70, 0.45); background: var(--fd04-primary-dim); }
.fd04-portal__num { color: var(--fd04-accent); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; }
.fd04-portal__label { color: var(--fd04-text); font-size: 13px; font-weight: 600; }
.fd04-portal__hint { display: none; color: var(--fd04-muted); font-size: 12px; font-weight: 400; }

.fd04-sitemap {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: var(--fd04-space-4); margin-bottom: var(--fd04-section);
}
.fd04-sitemap h2,
.fd04-sitemap h3 { font-size: 16px; margin-bottom: 14px; padding-left: 12px; position: relative; }
.fd04-sitemap h2::before,
.fd04-sitemap h3::before {
  content: ''; position: absolute; left: 0; top: 0.15em; bottom: 0.15em;
  width: 3px; border-radius: 2px; background: var(--fd04-primary);
}
.fd04-sitemap__links { display: flex; flex-wrap: wrap; gap: 8px 12px; }
.fd04-sitemap__links a { color: var(--fd04-muted); font-size: 13px; }
.fd04-sitemap__links a:hover { color: var(--fd04-primary); }

.fd04-subtags {
  display: flex; flex-wrap: nowrap; gap: var(--fd04-space-2); margin: var(--fd04-space-3) 0 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.fd04-subtags::-webkit-scrollbar { display: none; }
.fd04-subtags a {
  padding: var(--fd04-space-1) 12px; border-radius: var(--fd04-radius-sm); background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--fd04-border); color: var(--fd04-muted-soft); font-size: 12px; flex-shrink: 0;
}
.fd04-subtags a:hover,
.fd04-subtags a.is-active { border-color: var(--fd04-primary); color: var(--fd04-primary); }

.fd04-more {
  display: inline-flex; align-items: center; gap: var(--fd04-space-1); color: var(--fd04-muted-soft);
  font-size: 13px; font-weight: 500; white-space: nowrap; flex-shrink: 0;
}
.fd04-more:hover { color: var(--fd04-primary); }

/* ---------- Cards ---------- */
.fd04-vitem { position: relative; display: block; color: var(--fd04-text); min-width: 0; }
.fd04-vitem:hover { color: var(--fd04-text); }
.fd04-vitem--stack { display: flex; flex-direction: column; gap: 6px; }

.fd04-vitem__cover {
  position: relative; display: block; width: 100%;
  aspect-ratio: var(--fd04-cover-ratio);
  border-radius: var(--fd04-radius); overflow: hidden;
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
}
.fd04-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 ease;
}
.fd04-vitem:hover .fd04-vitem__cover img { transform: scale(1.06); }
.fd04-vitem__cover::after {
  content: ''; position: absolute; inset: 0; background: var(--fd04-shade);
  opacity: 0.75; pointer-events: none; transition: opacity var(--fd04-transition); z-index: 1;
}
.fd04-vitem:hover .fd04-vitem__cover::after { opacity: 0.95; }
.fd04-vitem__cover::before {
  content: '▶'; position: absolute; top: 50%; left: 50%; z-index: 4;
  transform: translate(-50%, -50%) scale(0.7); width: 44px; height: 44px;
  border-radius: 50%; background: var(--fd04-primary); color: #fff; font-size: 14px;
  display: flex; align-items: center; justify-content: center; opacity: 0;
  pointer-events: none; box-shadow: 0 4px 20px rgba(230, 57, 70, 0.5);
  transition: opacity var(--fd04-transition), transform var(--fd04-transition); padding-left: 3px;
}
.fd04-vitem:hover .fd04-vitem__cover::before {
  opacity: 1; transform: translate(-50%, -50%) scale(1);
}

.fd04-vitem__tag {
  position: absolute; top: 8px; left: 8px; z-index: 3; padding: 1px 6px;
  border-radius: 4px; background: var(--fd04-primary); color: #fff;
  font-size: 10px; font-weight: 600; line-height: 1.5;
  max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd04-vitem__tag.is-hot { background: var(--fd04-accent); color: #1a1208; }

.fd04-vitem__shade {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  height: 45%; pointer-events: none;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
}

/* Title overlaid on cover (rail / compact cards) */
.fd04-vitem__cover .fd04-vitem__title {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  margin: 0; padding: 22px 8px 8px;
  font-family: var(--fd04-font); font-size: 12px; font-weight: 500; line-height: 1.35;
  color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.85);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Title below cover (stack cards) — MUST NOT be absolute */
.fd04-vitem__title,
.fd04-vitem--stack > .fd04-vitem__title,
.fd04-vitem--stack > h3.fd04-vitem__title,
.fd04-vitem--stack > h4.fd04-vitem__title,
h3.fd04-vitem__title,
h4.fd04-vitem__title {
  position: static; z-index: auto;
  font-family: var(--fd04-font); font-size: 12px; font-weight: 500; line-height: 1.4;
  color: var(--fd04-text); text-shadow: none; padding: 0; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  word-break: break-word;
}
.fd04-vitem--stack > .fd04-vitem__title a,
.fd04-vitem--stack > h3.fd04-vitem__title a,
.fd04-vitem--stack > h4.fd04-vitem__title a,
h3.fd04-vitem__title a,
h4.fd04-vitem__title a { color: inherit; }
.fd04-vitem:hover .fd04-vitem__title,
.fd04-vitem:hover .fd04-vitem__title a { color: var(--fd04-primary); }
.fd04-vitem:hover .fd04-vitem__cover .fd04-vitem__title { color: #fff; }

/* Score badge only (not used as title) */
.fd04-vitem__cap {
  position: absolute; right: 8px; bottom: 8px; z-index: 3; color: var(--fd04-accent);
  font-size: 13px; font-weight: 700; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.fd04-vitem--stack > .fd04-vitem__cap,
.fd04-vitem--stack > h3.fd04-vitem__cap,
.fd04-vitem--stack > h4.fd04-vitem__cap {
  position: static; pointer-events: auto; color: var(--fd04-text); text-shadow: none;
  font-family: var(--fd04-font); font-size: 14px; font-weight: 500; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.fd04-vitem__sub {
  color: var(--fd04-muted); font-size: 11px; margin-top: 0; line-height: 1.4;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* ---------- Buttons ---------- */
.fd04-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px; border-radius: var(--fd04-radius-pill); background: var(--fd04-primary);
  color: #fff; font-size: 14px; font-weight: 600; border: 1px solid transparent;
  white-space: nowrap; box-sizing: border-box; max-width: 100%;
  transition: background var(--fd04-transition), transform var(--fd04-transition), box-shadow var(--fd04-transition);
  box-shadow: 0 2px 12px rgba(230, 57, 70, 0.3);
}
.fd04-btn:hover { background: var(--fd04-primary-hover); color: #fff; transform: translateY(-1px); }
.fd04-btn--sm { padding: 7px 16px; font-size: 13px; box-shadow: none; }
.fd04-btn--line {
  background: transparent; border-color: var(--fd04-border-strong); color: var(--fd04-text); box-shadow: none;
}
.fd04-btn--line:hover {
  border-color: var(--fd04-primary); color: var(--fd04-primary); background: var(--fd04-primary-dim);
}
.fd04-link { color: var(--fd04-primary); font-weight: 500; font-size: 14px; }
.fd04-link:hover { color: var(--fd04-primary-hover); text-decoration: underline; }

/* ---------- Pages ---------- */
.fd04-pagehead { padding: 16px 0 12px; margin-bottom: var(--fd04-space-2); }
.fd04-pagehead h1 { font-size: 18px; margin-bottom: var(--fd04-space-2); word-break: break-word; }
.fd04-pagehead p,
.fd04-pagehead__sub {
  color: var(--fd04-muted); font-size: 13px; line-height: 1.7; max-width: 760px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-pagehead__sub a { color: var(--fd04-primary); }

.fd04-crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: var(--fd04-space-3); font-size: 13px; color: var(--fd04-muted);
}
.fd04-crumb a { color: var(--fd04-muted-soft); }
.fd04-crumb a:hover { color: var(--fd04-primary); }
.fd04-crumb span,
.fd04-crumb em,
.fd04-crumb .is-current { color: var(--fd04-text); font-style: normal; }

.fd04-wall {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 8px; margin-bottom: var(--fd04-section);
}

.fd04-pager {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px; margin: var(--fd04-space-7) 0 var(--fd04-space-8);
}
.fd04-pager a,
.fd04-pager span,
.fd04-pager button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 36px; height: 36px; padding: 0 10px; border-radius: var(--fd04-radius-sm);
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  color: var(--fd04-muted-soft); font-size: 13px; transition: all var(--fd04-transition);
}
.fd04-pager a:hover,
.fd04-pager button:hover { border-color: var(--fd04-primary); color: var(--fd04-primary); }
.fd04-pager .is-current,
.fd04-pager .is-active,
.fd04-pager .active,
.fd04-pager span.is-current {
  background: var(--fd04-primary); border-color: var(--fd04-primary); color: #fff;
}

/* Rank / update feed */
.fd04-feed { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--fd04-section); }
.fd04-feed article,
.fd04-feed .fd04-vitem--stack,
.fd04-feed__item {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px; padding: 10px;
  background: var(--fd04-card); border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
  align-items: start; min-width: 0;
}
.fd04-feed__item {
  grid-template-columns: 1fr; gap: var(--fd04-space-2); padding: var(--fd04-space-3);
}
.fd04-feed__date {
  display: flex; align-items: flex-start; justify-content: flex-start;
  padding: 0; color: var(--fd04-accent); font-size: 11px; font-weight: 600;
  line-height: 1.35; text-align: left; word-break: break-all;
}
.fd04-feed__body {
  display: grid; grid-template-columns: 72px 1fr; gap: 10px; min-width: 0;
}
.fd04-feed__thumb {
  display: block; aspect-ratio: var(--fd04-cover-ratio); border-radius: var(--fd04-radius-sm);
  overflow: hidden; background: var(--fd04-bg); border: 1px solid var(--fd04-border);
}
.fd04-feed__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fd04-feed__main { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.fd04-feed__title {
  font-family: var(--fd04-font); font-size: 16px; font-weight: 600; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-feed__title a:hover { color: var(--fd04-primary); }
.fd04-feed__meta { color: var(--fd04-muted); font-size: 13px; }
.fd04-feed__desc {
  color: var(--fd04-muted-soft); font-size: 13px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.fd04-feed__acts { margin-top: var(--fd04-space-1); }

.fd04-filter {
  display: flex; flex-direction: column; gap: var(--fd04-space-3);
  padding: var(--fd04-space-3); margin-bottom: var(--fd04-space-6);
  background: var(--fd04-card); border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
}
.fd04-filter--facets-only {
  gap: 0;
  padding: 0; background: transparent; border: none; border-radius: 0;
  margin-bottom: var(--fd04-space-5);
}
.fd04-filter__facets {
  display: flex; flex-direction: column; gap: 0;
  padding: var(--fd04-space-2) var(--fd04-space-3);
  background: var(--fd04-card); border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
}
.fd04-filter__facets > dl,
.fd04-filter > dl,
.fd04-filter .row {
  display: flex; flex-wrap: nowrap; align-items: center;
  gap: var(--fd04-space-2); width: 100%; min-width: 0;
  margin: 0; padding: 10px 0;
  border-bottom: 1px solid var(--fd04-border);
  overflow: visible;
}
.fd04-filter__facets > dl:last-child,
.fd04-filter > dl:last-child { border-bottom: none; }
.fd04-filter__facets > dl > dt,
.fd04-filter > dl > dt,
.fd04-filter .row > label,
.fd04-filter dt,
.fd04-filter label {
  flex: 0 0 44px; width: 44px; min-width: 44px;
  margin: 0; padding: 0;
  color: var(--fd04-muted); font-size: 13px; font-weight: 500;
  line-height: 28px; text-align: left;
}
.fd04-filter__facets > dl > dd,
.fd04-filter > dl > dd,
.fd04-filter .row > div,
.fd04-filter dd {
  display: flex; flex-wrap: nowrap; align-items: center; gap: 6px;
  flex: 1 1 auto; min-width: 0; width: auto; margin: 0; padding: 0;
  overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab; overscroll-behavior-x: contain;
}
.fd04-filter__facets > dl > dd::-webkit-scrollbar,
.fd04-filter > dl > dd::-webkit-scrollbar,
.fd04-filter .row > div::-webkit-scrollbar,
.fd04-filter dd::-webkit-scrollbar { display: none; }
.fd04-filter__facets > dl > dd.is-dragging,
.fd04-filter > .fd04-filter__facets > dl > dd.is-dragging,
.fd04-filter__chips.is-dragging { cursor: grabbing; user-select: none; }
.fd04-filter__chips a,
.fd04-filter__facets a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 28px; padding: 0 12px; border-radius: var(--fd04-radius-pill);
  border: 1px solid transparent; background: transparent;
  color: var(--fd04-muted-soft); font-size: 13px; line-height: 1;
  flex-shrink: 0; white-space: nowrap;
  transition: background var(--fd04-transition), color var(--fd04-transition), border-color var(--fd04-transition);
}
.fd04-filter__chips a:hover,
.fd04-filter__facets a:hover {
  color: var(--fd04-text); background: rgba(255, 255, 255, 0.04);
  border-color: var(--fd04-border);
}
.fd04-filter__chips a.is-active,
.fd04-filter__chips a.active,
.fd04-filter__chips .is-current,
.fd04-filter__facets a.is-active,
.fd04-filter__facets a.active,
.fd04-filter__facets .is-current {
  background: var(--fd04-primary-dim); color: var(--fd04-primary);
  border-color: rgba(230, 57, 70, 0.35); font-weight: 600;
}
.fd04-filter__main { min-width: 0; width: 100%; }
.fd04-filter__main .fd04-count {
  margin: 0 0 var(--fd04-space-3); color: var(--fd04-muted); font-size: 13px;
}

/* Wall posters on filter page — restore portrait covers */
.fd04-filter__main .fd04-wall .fd04-vitem__cover {
  display: block; width: 100%; height: auto;
  aspect-ratio: var(--fd04-cover-ratio);
  border-radius: var(--fd04-radius);
  overflow: hidden;
}
.fd04-filter__main .fd04-wall .fd04-vitem__cover img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  max-width: none; object-fit: cover; object-position: center top;
}

.fd04-lost { text-align: center; padding: 80px var(--fd04-space-5); }
.fd04-lost h1,
.fd04-lost h2 { font-size: 72px; color: var(--fd04-border-strong); margin-bottom: var(--fd04-space-3); }
.fd04-lost p { color: var(--fd04-muted); margin-bottom: var(--fd04-space-6); }

.fd04-tags { display: flex; flex-wrap: wrap; gap: var(--fd04-space-2); }
.fd04-tags a,
.fd04-tags span {
  display: inline-flex; padding: 6px 12px; border-radius: var(--fd04-radius-pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--fd04-border);
  color: var(--fd04-muted-soft); font-size: 13px;
}
.fd04-tags a:hover { border-color: var(--fd04-primary); color: var(--fd04-primary); }
.fd04-tags--wide { gap: 10px; }
.fd04-tips-list { display: flex; flex-direction: column; gap: 10px; }
.fd04-tips-list li {
  position: relative; padding-left: 14px; color: var(--fd04-muted-soft); font-size: 14px; line-height: 1.7;
}
.fd04-tips-list li::before {
  content: ''; position: absolute; left: 0; top: 0.65em; width: 5px; height: 5px;
  border-radius: 50%; background: var(--fd04-primary);
}

/* ---------- Detail / Player ---------- */
.fd04-detail-page { padding-bottom: var(--fd04-space-8); }

.fd04-cinema { position: relative; margin: 0 0 var(--fd04-section); overflow: hidden; min-height: 0; }
.fd04-cinema__bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  filter: blur(20px) brightness(0.35); transform: scale(1.1);
}
.fd04-cinema__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.4) 0%, var(--fd04-bg) 100%);
}
.fd04-cinema__body {
  position: relative; z-index: 2; display: grid; grid-template-columns: 100px 1fr;
  gap: var(--fd04-space-3); max-width: var(--fd04-max); margin: 0 auto;
  padding: 16px var(--fd04-gutter) 20px; align-items: start; justify-items: stretch; text-align: left;
}
.fd04-cinema__poster,
.fd04-poster {
  position: relative; aspect-ratio: var(--fd04-cover-ratio); border-radius: var(--fd04-radius); overflow: hidden;
  box-shadow: var(--fd04-shadow); border: 1px solid var(--fd04-border-strong); background: var(--fd04-card);
  width: 100px;
}
.fd04-cinema__poster img,
.fd04-poster img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.fd04-cinema__poster .fd04-vitem__tag,
.fd04-poster .fd04-vitem__tag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
}

/* Score on poster only */
.fd04-cinema__poster .fd04-cinema__score,
.fd04-poster .fd04-cinema__score {
  position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 4px 10px;
  border-radius: var(--fd04-radius-sm); background: rgba(0, 0, 0, 0.75);
  color: var(--fd04-accent); font-weight: 700; font-size: 16px;
}
/* Score inline in title/meta — never absolute (prevents overlap) */
.fd04-cinema__meta .fd04-cinema__score,
h1 .fd04-cinema__score {
  position: static; display: inline-flex; align-items: center; vertical-align: middle;
  margin: 0; padding: 2px 8px; border-radius: var(--fd04-radius-sm);
  background: rgba(0, 0, 0, 0.45); color: var(--fd04-accent);
  font-family: var(--fd04-font); font-size: 13px; font-weight: 700;
  white-space: nowrap; flex-shrink: 0;
}

.fd04-cinema__meta {
  display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px;
  padding-bottom: 0; min-width: 0; width: 100%;
}
.fd04-cinema__meta h1,
.fd04-cinema__body > div > h1 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
  font-size: 18px; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
  word-break: break-word; line-height: 1.25; color: var(--fd04-text);
}
.fd04-cinema__meta .tags,
.fd04-cinema__meta .info {
  display: flex; flex-wrap: wrap; gap: var(--fd04-space-2);
  color: var(--fd04-muted-soft); font-size: 13px;
}

/* Meta chips / bubbles: 年代 : 2024 */
.fd04-cinema__meta > div,
.fd04-cinema__meta > span,
.fd04-cinema__meta > dt,
.fd04-cinema__meta > dd {
  display: inline-flex; align-items: center; gap: 2px;
  max-width: 100%; padding: 4px 10px;
  border-radius: var(--fd04-radius-pill);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--fd04-muted-soft); font-size: 11px; line-height: 1.4;
  white-space: nowrap;
}
.fd04-cinema__meta > div em,
.fd04-cinema__meta > span em,
.fd04-cinema__meta > dt {
  flex-shrink: 0; font-style: normal; color: var(--fd04-muted); font-weight: 500; display: inline;
}
.fd04-cinema__meta > div em::after,
.fd04-cinema__meta > span em::after,
.fd04-cinema__meta > dt::after {
  content: ' :'; color: var(--fd04-muted);
}
.fd04-cinema__meta > div span,
.fd04-cinema__meta > div a,
.fd04-cinema__meta > span a,
.fd04-cinema__meta > dd {
  color: var(--fd04-text); font-weight: 500;
  overflow: hidden; text-overflow: ellipsis; max-width: min(9em, 42vw);
}
.fd04-cinema__meta > div:last-child,
.fd04-cinema__meta > span:nth-child(n+5) {
  white-space: normal;
}
.fd04-cinema__meta > div:last-child span,
.fd04-cinema__meta > span:nth-child(n+5) a {
  max-width: none; white-space: normal;
}
.fd04-cinema__meta > div a:hover,
.fd04-cinema__meta > span a:hover { color: var(--fd04-primary); }
.fd04-cinema__meta > div:hover,
.fd04-cinema__meta > span:hover {
  border-color: rgba(230, 57, 70, 0.35); background: var(--fd04-primary-dim);
}
.fd04-cinema__intro {
  color: var(--fd04-muted-soft); font-size: 13px; line-height: 1.75; max-width: 100%;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-align: left;
}
.fd04-cinema__acts {
  display: flex; flex-wrap: wrap; gap: var(--fd04-space-2);
  margin-top: var(--fd04-space-1); justify-content: flex-start;
}
.fd04-cinema__acts .fd04-btn {
  padding: 8px 14px; font-size: 13px; white-space: nowrap; flex: 0 1 auto;
}
.fd04-cinema__acts .fd04-link { display: none; }

/*
 * Poster-column CTA:
 * Mobile — hide (acts row is primary); ignore leftover inline display styles.
 * Tablet+ — full-width under poster, compact padding so text does not wrap.
 */
.fd04-cinema__body > div:first-child > .fd04-btn,
.fd04-cinema__body > div:first-child > .fd04-cinema__play {
  display: none !important;
}
.fd04-cinema__play {
  align-items: center; justify-content: center; gap: var(--fd04-space-2);
  border-radius: var(--fd04-radius-pill); background: var(--fd04-primary); color: #fff;
  font-weight: 700; box-shadow: 0 4px 20px rgba(230, 57, 70, 0.4);
  transition: background var(--fd04-transition), transform var(--fd04-transition);
  box-sizing: border-box; white-space: nowrap; max-width: 100%;
}
.fd04-cinema__play:hover { background: var(--fd04-primary-hover); color: #fff; transform: translateY(-1px); }

.fd04-toc {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: 14px; margin-bottom: var(--fd04-space-6);
  display: flex; flex-wrap: nowrap; gap: var(--fd04-space-1) 0;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.fd04-toc::-webkit-scrollbar { display: none; }
.fd04-toc a {
  display: inline-flex; padding: 8px 12px; border-radius: var(--fd04-radius-sm);
  color: var(--fd04-muted-soft); font-size: 14px; flex-shrink: 0; white-space: nowrap;
}
.fd04-toc a:hover,
.fd04-toc a.is-active { background: var(--fd04-primary-dim); color: var(--fd04-primary); }

.fd04-sheet {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); padding: 14px; margin-bottom: 16px;
}
.fd04-sheet h2,
.fd04-sheet h3 { font-size: 18px; margin-bottom: var(--fd04-space-4); padding-left: 12px; position: relative; }
.fd04-sheet h2::before,
.fd04-sheet h3::before {
  content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em;
  width: 3px; border-radius: 2px; background: var(--fd04-primary);
}
.fd04-sheet--episodes { padding-bottom: var(--fd04-space-6); }

.fd04-ep-note { color: var(--fd04-muted); font-size: 13px; margin-bottom: 14px; }
.fd04-ep-tabs {
  display: flex; flex-wrap: nowrap; gap: var(--fd04-space-2); margin-bottom: var(--fd04-space-4);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.fd04-ep-tabs::-webkit-scrollbar { display: none; }
.fd04-ep-tabs a,
.fd04-ep-tabs button {
  padding: 6px 14px; border-radius: var(--fd04-radius-pill); border: 1px solid var(--fd04-border);
  background: transparent; color: var(--fd04-muted-soft); font-size: 13px; flex-shrink: 0;
}
.fd04-ep-tabs a:hover,
.fd04-ep-tabs a.is-active,
.fd04-ep-tabs a.active,
.fd04-ep-tabs button.is-active,
.fd04-ep-tabs .is-current {
  background: var(--fd04-primary); border-color: var(--fd04-primary); color: #fff;
}

.fd04-hub-nav {
  display: flex; flex-wrap: nowrap; gap: var(--fd04-space-2); margin-bottom: var(--fd04-space-6);
  overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px;
}
.fd04-hub-nav::-webkit-scrollbar { display: none; }
.fd04-hub-nav a {
  padding: 8px var(--fd04-space-4); border-radius: var(--fd04-radius-pill); background: var(--fd04-card);
  border: 1px solid var(--fd04-border); color: var(--fd04-muted-soft); font-size: 13px; flex-shrink: 0;
}
.fd04-hub-nav a:hover,
.fd04-hub-nav a.is-active,
.fd04-hub-nav a.active {
  background: var(--fd04-primary); border-color: var(--fd04-primary); color: #fff;
}

.fd04-article {
  background: var(--fd04-card); border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius);
  padding: var(--fd04-space-4) 14px; margin-bottom: var(--fd04-section); line-height: 1.8; color: var(--fd04-muted-soft);
  overflow-wrap: anywhere;
}
.fd04-article h1, .fd04-article h2, .fd04-article h3 { color: var(--fd04-text); margin: 1.4em 0 0.6em; }
.fd04-article h1:first-child, .fd04-article h2:first-child { margin-top: 0; }
.fd04-article p { margin-bottom: 1em; }
.fd04-article a { color: var(--fd04-primary); }

.fd04-faq-item {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); margin-bottom: 10px; overflow: hidden;
}
.fd04-faq-item summary,
.fd04-faq-item .q,
.fd04-faq-item h3 {
  padding: var(--fd04-space-3) 14px; font-size: 14px; font-weight: 600; color: var(--fd04-text);
  cursor: pointer; list-style: none;
}
.fd04-faq-item summary::-webkit-details-marker { display: none; }
.fd04-faq-item .a,
.fd04-faq-item p,
.fd04-faq-item > div { padding: 0 14px var(--fd04-space-4); color: var(--fd04-muted-soft); font-size: 14px; }
.fd04-faq-item.is-open,
.fd04-faq-item[open] { border-color: var(--fd04-border-strong); }

.fd04-screen {
  position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000;
  border-radius: var(--fd04-radius); overflow: hidden; margin-bottom: var(--fd04-space-5);
  border: 1px solid var(--fd04-border);
}
.fd04-screen video,
.fd04-screen iframe,
.fd04-screen .player,
.fd04-screen #dplayer { width: 100%; height: 100%; border: 0; display: block; }

.fd04-dock {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--fd04-space-3);
  padding: var(--fd04-space-3) 0; margin-bottom: var(--fd04-space-5);
  width: 100%;
}
.fd04-dock > h3 {
  margin: 0; font-size: 16px; padding-left: 12px; position: relative;
}
.fd04-dock > h3::before {
  content: ''; position: absolute; left: 0; top: 0.2em; bottom: 0.2em;
  width: 3px; border-radius: 2px; background: var(--fd04-primary);
}
.fd04-play-acts {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--fd04-space-2);
}
.fd04-play-acts a {
  display: inline-flex; align-items: center; padding: 7px 12px;
  border-radius: var(--fd04-radius-pill); background: var(--fd04-card);
  border: 1px solid var(--fd04-border); color: var(--fd04-muted-soft); font-size: 13px;
}
.fd04-play-acts a:hover { border-color: var(--fd04-primary); color: var(--fd04-primary); }
.fd04-play-acts a.is-disabled { opacity: 0.45; pointer-events: none; }
.fd04-dock [data-source-pane] {
  display: block; width: 100%; min-width: 0;
}
.fd04-dock [data-source-pane][style*="display:none"],
.fd04-dock [data-source-pane][style*="display: none"] { display: none !important; }

.fd04-ep-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}
@media (min-width: 400px) {
  .fd04-ep-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.fd04-ep-grid a,
.fd04-ep-grid button {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-width: 0; min-height: 40px; padding: 8px 4px;
  border-radius: var(--fd04-radius-sm);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--fd04-border);
  color: var(--fd04-muted-soft); font-size: 12px; transition: all var(--fd04-transition);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fd04-ep-grid a:hover,
.fd04-ep-grid button:hover {
  border-color: var(--fd04-primary); color: var(--fd04-primary); background: var(--fd04-primary-dim);
}
.fd04-ep-grid a.is-active,
.fd04-ep-grid a.active,
.fd04-ep-grid a.is-current,
.fd04-ep-grid .is-active {
  background: var(--fd04-primary); border-color: var(--fd04-primary); color: #fff;
}

.fd04-detail-page--v02 .fd04-cinema__body { grid-template-columns: 100px 1fr; align-items: start; }
.fd04-detail-page--v02 .fd04-cinema { min-height: 0; }
.fd04-detail-page--v03 .fd04-cinema {
  background: var(--fd04-card); border: 1px solid var(--fd04-border);
  border-radius: var(--fd04-radius); margin: var(--fd04-space-5) auto; max-width: var(--fd04-max);
}
.fd04-detail-page--v03 .fd04-cinema__bg { filter: blur(12px) brightness(0.28); }
.fd04-detail-page--v03 .fd04-cinema__body { padding: 16px var(--fd04-gutter) 20px; grid-template-columns: 100px 1fr; }

/* ---------- Utilities ---------- */
.hide,
.is-hidden { display: none !important; }
.is-visible { display: block; }
.is-hot { color: var(--fd04-accent); }
.is-loaded { opacity: 1; transition: opacity 0.3s ease; }
img.lazyload:not(.is-loaded) { background: var(--fd04-card); }

/* ============================================================
   Tablet enhancements — min-width: 768px
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 15px; }
  --fd04-gutter: 20px;

  .fd04-brand { max-width: none; }
  .fd04-brand__glyph { width: 36px; height: 36px; font-size: 18px; }
  .fd04-brand__name { font-size: 17px; }
  .fd04-find { display: flex; width: 180px; max-width: 220px; }
  .fd04-top__inner {
    flex-wrap: nowrap;
    padding: 10px var(--fd04-gutter);
    min-height: 56px;
    gap: var(--fd04-space-3);
  }
  .fd04-top__inner > .fd04-menu {
    order: 0;
    flex: 1 1 auto;
    width: auto;
    margin: 0;
    padding: 0;
    border: none;
    overflow-x: auto;
    justify-content: flex-start;
  }
  .fd04-menu__link { padding: 7px 14px; font-size: 14px; }
  .fd04-top__tools { gap: var(--fd04-space-3); }
  .fd04-log__panel { width: 300px; right: 0; }
  .fd04-notice { padding: 10px 40px 10px var(--fd04-space-5); font-size: 13px; }
  .fd04-notice p { white-space: nowrap; display: block; -webkit-line-clamp: unset; }
  .fd04-top-btn { right: 24px; bottom: 28px; width: 44px; height: 44px; }

  .fd04-hero { min-height: 360px; }
  .fd04-hero__body { padding: 48px var(--fd04-gutter) 40px; max-width: 560px; }
  .fd04-hero__body h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
  .fd04-hero__meta { -webkit-line-clamp: 2; }
  .fd04-hero--brand { min-height: 320px; }

  .fd04-stage { min-height: 340px; }
  .fd04-stage__lead {
    padding: 48px var(--fd04-gutter) 40px;
    margin-left: max(20px, calc((100% - var(--fd04-max)) / 2 + 20px));
  }
  .fd04-stage__lead h1 { font-size: clamp(28px, 4vw, 36px); }

  .fd04-bento {
    grid-template-columns: 1fr 1fr; gap: 14px;
  }
  .fd04-bento__hero { grid-column: 1 / -1; min-height: 280px; }
  .fd04-bento__cell { min-height: 170px; }

  .fd04-mosaic,
  .fd04-wall { grid-template-columns: repeat(4, 1fr); gap: var(--fd04-grid-gap) 10px; }

  .fd04-feature {
    grid-template-columns: 180px 1fr; gap: var(--fd04-space-5); padding: var(--fd04-space-5);
    align-items: center;
  }
  .fd04-feature__body h2 { font-size: 22px; }
  .fd04-feature__desc { -webkit-line-clamp: 3; }

  .fd04-block__head h2,
  .fd04-block__head h3 { font-size: clamp(18px, 1.6vw, 20px); padding-left: 14px; }
  .fd04-block__head { flex-wrap: nowrap; }
  .fd04-block__head .fd04-more { font-size: 13px; }
  .fd04-block__head .fd04-band__tools .fd04-rail-btn { width: 34px; height: 34px; }
  .fd04-band__tools .fd04-more { display: inline-flex; }

  .fd04-rail { gap: 14px; }
  .fd04-rail > *,
  .fd04-rail > .fd04-vitem {
    flex: 0 0 120px; width: 120px; min-width: 120px; max-width: 120px;
  }
  .fd04-rail .fd04-vitem__title,
  .fd04-rail h3.fd04-vitem__title { font-size: 13px; }
  .fd04-rail--dense {
    grid-template-columns: repeat(6, 1fr); gap: 10px 8px;
  }
  .fd04-rail--dense .fd04-vitem__title,
  .fd04-rail--dense h3.fd04-vitem__title,
  .fd04-rail--dense h4.fd04-vitem__title { font-size: 13px; }
  .fd04-rail--dense .fd04-vitem__tag { display: block; font-size: 10px; padding: 1px 6px; }

  .fd04-portals { gap: 14px; }
  .fd04-portal { padding: var(--fd04-space-5) var(--fd04-space-3); gap: 6px; }
  .fd04-portal__num { font-size: 12px; }
  .fd04-portal__label { font-size: 15px; }
  .fd04-portal__hint { display: block; }

  .fd04-chips,
  .fd04-lanes,
  .fd04-subtags,
  .fd04-hub-nav,
  .fd04-ep-tabs { flex-wrap: wrap; overflow-x: visible; padding-bottom: 0; }
  .fd04-chips { gap: var(--fd04-space-2); margin-bottom: var(--fd04-space-5); }

  .fd04-picks { gap: var(--fd04-space-3); }
  .fd04-pick-col { padding: var(--fd04-space-4); }
  .fd04-pick-col .fd04-rank-list > li:nth-child(n+6) { display: flex; }
  .fd04-pick-col .fd04-rank-list > li:nth-child(n+7) { display: none; }

  .fd04-rows--rail > a { flex-basis: 200px; }

  .fd04-vitem--stack { gap: var(--fd04-space-2); }
  .fd04-vitem__cover .fd04-vitem__title { font-size: 13px; padding: 28px 10px 10px; }
  .fd04-vitem__title,
  .fd04-vitem--stack > .fd04-vitem__title,
  h3.fd04-vitem__title,
  h4.fd04-vitem__title { font-size: 14px; }
  .fd04-vitem__sub { font-size: 12px; }
  .fd04-vitem__tag { font-size: 11px; padding: 2px 8px; }

  .fd04-pagehead { padding: 24px 0 16px; }
  .fd04-pagehead h1 { font-size: 24px; }
  .fd04-pagehead p,
  .fd04-pagehead__sub {
    font-size: 14px;
    display: block; -webkit-line-clamp: unset; overflow: visible;
  }

  .fd04-row { grid-template-columns: 100px 1fr; gap: var(--fd04-space-4); padding: var(--fd04-space-4); }
  .fd04-feed { gap: 14px; }
  .fd04-feed article,
  .fd04-feed .fd04-vitem--stack { grid-template-columns: 88px 1fr; gap: 14px; padding: 14px; }
  .fd04-feed__item { grid-template-columns: 64px 1fr; align-items: start; padding: 14px; }
  .fd04-feed__date {
    justify-content: flex-start; text-align: left; padding-top: 6px;
    color: var(--fd04-muted); font-size: 12px;
  }
  .fd04-feed__body { grid-template-columns: 100px 1fr; gap: 14px; }

  .fd04-filter {
    gap: var(--fd04-space-3);
    padding: var(--fd04-space-3) 18px;
  }
  .fd04-filter--facets-only {
    flex-direction: column; flex-wrap: nowrap;
    gap: var(--fd04-space-5); padding: 0;
  }
  .fd04-filter__facets {
    padding: var(--fd04-space-2) var(--fd04-space-4);
  }
  .fd04-filter__facets > dl,
  .fd04-filter > dl,
  .fd04-filter .row {
    flex-wrap: nowrap; overflow: visible; padding: 12px 0;
  }
  .fd04-filter__facets > dl > dt,
  .fd04-filter > dl > dt,
  .fd04-filter dt,
  .fd04-filter label { flex-basis: 48px; width: 48px; min-width: 48px; font-size: 14px; }
  .fd04-filter__facets > dl > dd,
  .fd04-filter > dl > dd,
  .fd04-filter dd {
    flex-wrap: nowrap; overflow-x: auto;
  }
  .fd04-filter__chips a,
  .fd04-filter__facets a { height: 30px; padding: 0 14px; font-size: 14px; }

  .fd04-cinema { min-height: 320px; }
  .fd04-cinema__body {
    grid-template-columns: 140px 1fr; gap: var(--fd04-space-4);
    padding: 36px var(--fd04-gutter) 32px; align-items: center;
  }
  .fd04-cinema__poster,
  .fd04-poster { width: 100%; }
  .fd04-cinema__meta { align-items: center; gap: var(--fd04-space-2); padding-bottom: var(--fd04-space-1); }
  .fd04-cinema__meta h1,
  .fd04-cinema__body > div > h1 { font-size: clamp(22px, 3.5vw, 30px); }
  .fd04-cinema__meta > div,
  .fd04-cinema__meta > span,
  .fd04-cinema__meta > dt,
  .fd04-cinema__meta > dd { padding: 5px 12px; font-size: 12px; }
  .fd04-cinema__meta > div span,
  .fd04-cinema__meta > div a,
  .fd04-cinema__meta > span a,
  .fd04-cinema__meta > dd { max-width: 14em; }
  .fd04-cinema__meta .fd04-cinema__score,
  h1 .fd04-cinema__score { font-size: 16px; padding: 2px 10px; }
  .fd04-cinema__intro { -webkit-line-clamp: 4; max-width: 640px; font-size: 14px; }
  .fd04-cinema__acts { gap: 10px; }
  .fd04-cinema__acts .fd04-btn { padding: 10px 22px; font-size: 14px; }
  .fd04-cinema__acts .fd04-link { display: inline; }
  .fd04-cinema__body > div:first-child > .fd04-btn,
  .fd04-cinema__body > div:first-child > .fd04-cinema__play {
    display: inline-flex !important;
    width: 100%;
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    white-space: nowrap;
  }
  .fd04-detail-page--v02 .fd04-cinema__body { grid-template-columns: 160px 1fr; align-items: center; }
  .fd04-detail-page--v02 .fd04-cinema { min-height: 320px; }
  .fd04-detail-page--v03 .fd04-cinema__body { padding: 28px 24px; grid-template-columns: 140px 1fr; }

  .fd04-toc { flex-wrap: wrap; overflow-x: visible; padding: 18px; }
  .fd04-sheet { padding: var(--fd04-space-5); margin-bottom: var(--fd04-space-6); }
  .fd04-ep-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: var(--fd04-space-2);
  }
  .fd04-ep-grid a,
  .fd04-ep-grid button { font-size: 13px; }
  .fd04-article { padding: 24px 28px; }
  .fd04-faq-item summary,
  .fd04-faq-item .q,
  .fd04-faq-item h3 { padding: 14px 18px; font-size: 15px; }
  .fd04-faq-item .a,
  .fd04-faq-item p,
  .fd04-faq-item > div { padding: 0 18px 16px; }
  .fd04-sitemap { padding: var(--fd04-space-6); }
  .fd04-sitemap__links { gap: 8px 16px; }
  .fd04-foot { margin-top: 56px; padding: 40px 0 24px; }
  .fd04-foot__grid { gap: var(--fd04-space-6); padding-bottom: var(--fd04-space-7); }
}

/* ============================================================
   Desktop — min-width: 1100px
   ============================================================ */
@media (min-width: 1100px) {
  --fd04-gutter: 20px;
  --fd04-section: 32px;

  .fd04-top__inner {
    flex-wrap: nowrap;
    align-items: center;
    gap: var(--fd04-space-5);
    min-height: 64px;
    padding: 12px var(--fd04-gutter);
  }
  .fd04-brand__glyph { width: 38px; height: 38px; font-size: 18px; }
  .fd04-brand__name { font-size: 18px; }
  .fd04-top__inner > .fd04-menu {
    order: 0;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0 12px;
    border: none;
    overflow: visible;
    gap: 8px;
    justify-content: center;
  }
  .fd04-menu__link {
    padding: 8px 16px;
    font-size: 15px;
    font-weight: 500;
  }
  .fd04-menu__link:hover {
    color: var(--fd04-text);
    background: rgba(255, 255, 255, 0.06);
  }
  .fd04-top__tools { gap: var(--fd04-space-3); margin-left: 0; }
  .fd04-find {
    display: flex;
    width: 240px;
    max-width: 280px;
    flex-shrink: 0;
  }
  .fd04-find input { padding: 9px 14px; font-size: 14px; }
  .fd04-find button,
  .fd04-find [type="submit"] { height: 36px; padding: 0 14px; font-size: 14px; }
  .fd04-log-btn { height: 40px; min-width: 44px; padding: 0 14px; font-size: 14px; }

  .fd04-hero { min-height: 480px; }
  .fd04-hero__body { padding: 64px var(--fd04-gutter) 56px; max-width: 560px; gap: 14px; }
  .fd04-hero__body h1 { font-size: clamp(1.8rem, 4vw, 3rem); }
  .fd04-hero--brand { min-height: 360px; }

  .fd04-stage { min-height: 420px; margin-bottom: 36px; }
  .fd04-stage__lead { padding: 72px var(--fd04-gutter) 56px; gap: var(--fd04-space-4); }
  .fd04-stage__lead h1 { font-size: clamp(28px, 4vw, 42px); }

  .fd04-layout {
    grid-template-columns: 1fr 280px; gap: var(--fd04-section);
    margin-bottom: 40px;
  }
  .fd04-main { gap: var(--fd04-space-2); }
  .fd04-aside {
    position: sticky; top: 76px; display: flex; flex-direction: column;
    gap: var(--fd04-space-4); overflow-x: visible; scroll-snap-type: none; padding-bottom: 0;
  }
  .fd04-aside > * { flex: none; width: auto; }
  .fd04-aside__card { padding: var(--fd04-space-4); }
  .fd04-aside__links {
    display: flex; flex-direction: column; gap: var(--fd04-space-2);
  }
  .fd04-aside__links a {
    display: block; font-size: 13px; padding: 6px 0;
    border: none; border-radius: 0; border-bottom: 1px solid var(--fd04-border);
  }
  .fd04-aside__links li:last-child a { border-bottom: none; }

  .fd04-bento {
    grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: auto auto; gap: 14px;
    margin-bottom: 40px;
  }
  .fd04-bento__hero {
    grid-column: auto; grid-row: 1 / 3; min-height: 360px;
  }

  .fd04-mosaic { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .fd04-wall { grid-template-columns: repeat(6, 1fr); gap: 14px 12px; }

  .fd04-feature {
    grid-template-columns: 240px 1fr; gap: 28px; padding: var(--fd04-space-6);
    margin-bottom: 36px;
  }
  .fd04-feature__body h2 { font-size: 26px; }

  .fd04-block { margin-bottom: 40px; }
  .fd04-block__head {
    gap: 12px 20px; margin-bottom: var(--fd04-space-4); padding-bottom: var(--fd04-space-3);
  }
  .fd04-block__head h2,
  .fd04-block__head h3 { font-size: clamp(18px, 1.6vw, 22px); }
  .fd04-block__head .fd04-subtags { flex-wrap: wrap; overflow-x: visible; }

  .fd04-picks {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
    overflow-x: visible; scroll-snap-type: none; padding-bottom: 0;
  }
  .fd04-pick-col { flex: none; }
  .fd04-pick-col .fd04-rank-list > li:nth-child(n+7) { display: flex; }

  .fd04-intent {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--fd04-space-3);
    overflow-x: visible; scroll-snap-type: none;
  }
  .fd04-intent__card { flex: none; }

  .fd04-rows--rail {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    overflow-x: visible; scroll-snap-type: none; padding-bottom: 0;
    border: 1px solid var(--fd04-border); border-radius: var(--fd04-radius); background: transparent;
  }
  .fd04-rows--rail > a {
    flex: none; flex-direction: row; align-items: center; gap: 14px;
    padding: var(--fd04-space-3) var(--fd04-space-4);
    border: none; border-radius: 0; border-bottom: 1px solid var(--fd04-border);
    border-right: 1px solid var(--fd04-border); background: var(--fd04-card);
  }
  .fd04-rows--rail > a:nth-child(even) { background: #111118; }
  .fd04-rows--rail > a:nth-child(2n) { border-right: none; }
  .fd04-rows--rail > a:nth-last-child(-n+2) { border-bottom: none; }
  .fd04-rows--rail img {
    width: 48px; height: 72px; aspect-ratio: auto; border-radius: 4px;
  }
  .fd04-rows--rail .fd04-rows__meta strong {
    white-space: nowrap; display: block; -webkit-line-clamp: unset;
  }

  .fd04-rail > *,
  .fd04-rail > .fd04-vitem {
    flex: 0 0 140px; width: 140px; min-width: 140px; max-width: 140px;
  }
  .fd04-ep-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: var(--fd04-space-2);
  }
  .fd04-ep-grid a,
  .fd04-ep-grid button { font-size: 13px; padding: 8px 6px; }
  .fd04-rail--dense {
    grid-template-columns: repeat(8, 1fr); gap: 12px 10px;
  }

  .fd04-portals { grid-template-columns: repeat(6, 1fr); margin-bottom: 36px; }

  .fd04-pagehead { padding: 28px 0 20px; }
  .fd04-pagehead h1 { font-size: 28px; }

  .fd04-cinema { min-height: 380px; margin-bottom: 28px; }
  .fd04-cinema__body {
    grid-template-columns: 200px 1fr; gap: 28px;
    padding: 48px var(--fd04-gutter) 40px; align-items: end;
  }
  .fd04-cinema__body > div:first-child > .fd04-btn,
  .fd04-cinema__body > div:first-child > .fd04-cinema__play {
    padding: 10px 14px;
    font-size: 14px;
  }
  .fd04-detail-page--v02 .fd04-cinema__body { grid-template-columns: 180px 1fr; align-items: center; }
  .fd04-detail-page--v03 .fd04-cinema__body { padding: 32px 24px; grid-template-columns: 180px 1fr; }

  .fd04-article { padding: 28px 32px; margin-bottom: 28px; }
  .fd04-foot {
    margin-top: 64px; padding: 48px 0 28px;
  }
  .fd04-foot__grid {
    grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--fd04-space-7);
    padding: 0 var(--fd04-gutter) var(--fd04-space-7);
  }
  .fd04-foot__grid > div:first-child { grid-column: auto; }
}

/* fd04 skin — 悟空短剧 warm orange, compact PC */
:root {
  --fd04-bg: #101114;
  --fd04-card: #181b22;
  --fd04-primary: #ff6b2c;
  --fd04-primary-hover: #ff8a4c;
  --fd04-primary-dim: rgba(255, 107, 44, 0.2);
  --fd04-accent: #ffd166;
  --fd04-accent-dim: rgba(255, 209, 102, 0.16);
  --fd04-topbar: #0c0d11;
  --fd04-topbar-glass: rgba(12, 13, 17, 0.92);
  --fd04-border: #2a241c;
  --fd04-border-strong: #3a3024;
  --fd04-radius: 6px;
  --fd04-radius-sm: 4px;
  --fd04-max: 1180px;
  --fd04-gutter: 14px;
  --fd04-section: 24px;
  --fd04-stack: 12px;
  --fd04-grid-gap: 10px;
}
.fd04-brand__glyph { background: #ff6b2c; }
.fd04-filter__chips a,
.fd04-filter__facets a { border-radius: 999px; }
@media (min-width: 1100px) {
  .fd04-top__inner > .fd04-menu { justify-content: flex-start; gap: 4px; }
  .fd04-wall { grid-template-columns: repeat(4, 1fr); gap: 16px 14px; }
  .fd04-layout { grid-template-columns: 1fr 260px; }
  .fd04-cinema__body { grid-template-columns: 120px 1fr; }
  .fd04-hero { min-height: 420px; }
}
