/* Fable 特效收集 · 版式（手写） */
:root {
  --fg-ink: #14141a;
  --fg-ink-2: #4b4b58;
  --fg-ink-3: #7c7c8a;
  --fg-line: #e4e4ea;
  --fg-bg: #f3f3f7;
  --fg-card: #fff;
  --fg-brand: #6d28d9;
  --fg-brand-2: #9333ea;
  --fg-warn-bg: #fff7ed;
  --fg-warn-line: #fdba74;
  --fg-radius: 16px;
  --fg-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}
.fg-page {
  background: var(--fg-bg);
  color: var(--fg-ink);
}
.fg-site-header {
  position: sticky;
  top: 0;
  z-index: 90;
}
.fg-main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 20px 28px 64px;
}
.fg-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--fg-ink-3);
}
.fg-crumbs a {
  color: inherit;
  text-decoration: none;
}
.fg-crumbs a:hover {
  color: var(--fg-brand);
}
.fg-kicker {
  margin: 0 0 8px;
  font-family: var(--fg-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--fg-brand);
  font-weight: 600;
}
.fg-hero__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.fg-lead {
  max-width: 46em;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--fg-ink-2);
}
.fg-note {
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--fg-line);
  background: var(--fg-card);
  font-size: 14px;
  color: var(--fg-ink-2);
  line-height: 1.65;
}
.fg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 16px;
}
.fg-chip {
  padding: 6px 14px;
  border: 1px solid var(--fg-line);
  border-radius: 999px;
  background: var(--fg-card);
  color: var(--fg-ink-2);
  font-size: 13px;
  text-decoration: none;
}
.fg-chip[aria-current="page"],
.fg-chip--filter[aria-pressed="true"] {
  background: var(--fg-ink);
  border-color: var(--fg-ink);
  color: #fff;
}
.fg-chips--models {
  margin-top: 0;
}
.fg-chip--filter {
  cursor: pointer;
  font: inherit;
}
.fg-card__model {
  padding: 2px 8px;
  border-radius: 6px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 11px;
  font-weight: 600;
}
.fg-search {
  margin: 0 0 28px;
}
.fg-search input {
  width: 100%;
  max-width: 420px;
  padding: 10px 14px;
  border: 1px solid var(--fg-line);
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  background: var(--fg-card);
}
.fg-section {
  margin: 0 0 40px;
}
.fg-section--spotlight {
  padding: 18px 18px 6px;
  border-radius: var(--fg-radius);
  border: 1px solid #ddd6fe;
  background: linear-gradient(165deg, #faf5ff 0%, #fff 55%);
}
.fg-section--spotlight .fg-section__head h2 {
  color: var(--fg-brand);
}
.fg-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.fg-section__head h2 {
  margin: 0;
  font-size: 20px;
}
.fg-section__head h2 a {
  color: inherit;
  text-decoration: none;
}
.fg-section__head span {
  font-size: 13px;
  color: var(--fg-ink-3);
}
.fg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.fg-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius);
  background: var(--fg-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
.fg-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -18px rgba(16, 17, 26, 0.35);
}
.fg-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--fg-line);
  background: #0d0d12;
}
.fg-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.fg-card__thumb {
  transition: opacity 0.28s ease, transform 0.35s ease;
}
.fg-card__preview {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.28s ease, transform 0.35s ease;
}
.fg-card__peek {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 8px;
  background: rgba(10, 10, 16, 0.72);
  color: #e9e4ff;
  font-size: 11px;
  letter-spacing: 0.02em;
  opacity: 0.85;
  transition: opacity 0.2s;
  pointer-events: none;
}
@media (hover: hover) {
  .fg-card__media--hover:hover .fg-card__thumb {
    opacity: 0;
  }
  .fg-card__media--hover:hover .fg-card__preview {
    opacity: 1;
    transform: scale(1.02);
  }
  .fg-card__media--hover:hover .fg-card__peek {
    opacity: 0;
  }
  .fg-card:hover .fg-card__media--hover .fg-card__thumb {
    transform: scale(1.03);
  }
}
@media (prefers-reduced-motion: reduce) {
  .fg-card__thumb,
  .fg-card__preview {
    transition: none;
  }
  .fg-card__media--hover .fg-card__preview {
    opacity: 1;
  }
  .fg-card__media--hover .fg-card__thumb {
    display: none;
  }
}
.fg-card__body {
  padding: 14px 16px 16px;
}
.fg-card__en {
  font-family: var(--fg-mono);
  font-size: 12px;
  color: var(--fg-brand);
}
.fg-card__name {
  display: block;
  margin-top: 4px;
  font-size: 16px;
}
.fg-card__sum {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-ink-2);
}
.fg-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--fg-ink-3);
}
.fg-card__stars {
  color: #b45309;
}
.fg-empty {
  text-align: center;
  color: var(--fg-ink-3);
  padding: 32px;
}
.fg-block {
  margin: 0 0 20px;
  padding: 22px 24px;
  border: 1px solid var(--fg-line);
  border-radius: var(--fg-radius);
  background: var(--fg-card);
}
.fg-block__title {
  margin: 0 0 12px;
  font-size: 17px;
}
.fg-block__subtitle {
  margin: 18px 0 8px;
  font-size: 15px;
}
.fg-list {
  margin: 0;
  padding-left: 1.2em;
  line-height: 1.75;
}
.fg-attr {
  margin: 0 0 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--fg-warn-line);
  background: var(--fg-warn-bg);
  font-size: 14px;
  line-height: 1.65;
}
.fg-attr__title {
  margin: 0 0 6px;
  font-weight: 700;
  color: #9a3412;
}
.fg-attr__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.fg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--fg-line);
  border-radius: 10px;
  background: var(--fg-card);
  color: var(--fg-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.fg-btn--primary {
  background: linear-gradient(135deg, var(--fg-brand), var(--fg-brand-2));
  border-color: transparent;
  color: #fff;
}
.fg-btn:hover {
  filter: brightness(1.05);
}
.fg-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--fg-line);
  background: #050508;
}
.fg-player__frame {
  display: block;
  width: 100%;
  height: min(72vh, 640px);
  border: 0;
}
.fg-player__fallback {
  margin: 0;
  padding: 12px 14px;
  font-size: 13px;
  background: #f4f4f7;
  color: var(--fg-ink-2);
}
.fg-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--fg-ink-3);
}
.fg-detail__head {
  margin-bottom: 20px;
}
.fg-detail__title {
  margin: 0;
  font-size: clamp(26px, 3.5vw, 36px);
  line-height: 1.2;
}
.fg-detail__en {
  display: block;
  margin-top: 6px;
  font-family: var(--fg-mono);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg-brand);
}
.fg-detail__lead {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg-ink-2);
}
.fg-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 14px;
  font-size: 13px;
  color: var(--fg-ink-3);
}
.fg-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.fg-tag {
  padding: 3px 10px;
  border-radius: 999px;
  background: #ede9fe;
  color: var(--fg-brand);
  font-size: 12px;
}
.fg-detail__cover {
  margin: 0 0 20px;
  border-radius: var(--fg-radius);
  overflow: hidden;
  border: 1px solid var(--fg-line);
}
.fg-detail__cover img {
  display: block;
  width: 100%;
  height: auto;
}
.fg-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.fg-pager__link {
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  border: 1px solid var(--fg-line);
  border-radius: 12px;
  background: var(--fg-card);
  color: inherit;
  text-decoration: none;
}
.fg-pager__link span {
  font-size: 12px;
  color: var(--fg-ink-3);
}
.fg-pager__link--next {
  text-align: right;
}
.fg-foot {
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--fg-line);
  font-size: 13px;
  color: var(--fg-ink-2);
  line-height: 1.7;
}
.fg-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--fg-ink);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 20px);
  transition: opacity 0.2s, transform 0.2s;
}
.fg-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 720px) {
  .fg-main {
    padding: 16px 16px 48px;
  }
  .fg-player__frame {
    height: min(56vh, 480px);
  }
}