/* Little Fox series — design-taste adapted (Outfit, warm accent, asymmetric) */
.fox-series-page,
.fox-reader-page {
  --fox-ink: #1c1917;
  --fox-muted: #57534e;
  --fox-cream: #faf6f1;
  --fox-card: #ffffff;
  --fox-accent: #c45c26;
  --fox-accent-soft: rgba(196, 92, 38, 0.12);
  --fox-line: rgba(28, 25, 23, 0.08);
  --fox-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.fox-main {
  background:
    radial-gradient(ellipse at 0% 0%, #ffe8d6 0%, transparent 42%),
    radial-gradient(ellipse at 100% 20%, #e7f2f6 0%, transparent 40%),
    var(--fox-cream);
}

.fox-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 0 4rem;
}

.fox-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  min-height: min(72dvh, 640px);
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--fox-line);
}

.fox-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fox-accent);
  margin-bottom: 0.85rem;
  font-weight: 600;
}

.fox-hero h1 {
  font-family: Outfit, "PingFang SC", sans-serif;
  font-size: clamp(2.4rem, 6vw, 3.75rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--fox-ink);
  font-weight: 650;
  max-width: 12ch;
}

.fox-hero__zh {
  margin-top: 0.75rem;
  font-size: 1.15rem;
  color: var(--fox-muted);
}

.fox-hero__lead {
  margin-top: 1.25rem;
  max-width: 38ch;
  color: var(--fox-muted);
  line-height: 1.65;
  font-size: 1rem;
}

.fox-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fox-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.25s var(--fox-ease), background 0.25s var(--fox-ease), color 0.25s var(--fox-ease);
}

.fox-btn:active {
  transform: scale(0.98);
}

.fox-btn--primary {
  background: var(--fox-ink);
  color: #fafaf9;
}

.fox-btn--primary:hover {
  background: var(--fox-accent);
}

.fox-btn--ghost {
  background: transparent;
  color: var(--fox-ink);
  box-shadow: inset 0 0 0 1px var(--fox-line);
}

.fox-btn--ghost:hover {
  background: var(--fox-card);
}

.fox-hero__art {
  justify-self: end;
  width: min(100%, 380px);
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(28, 25, 23, 0.35);
  background: #e7e5e4;
  animation: fox-float 6s ease-in-out infinite;
}

.fox-hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fox-hero__placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #fdba74, #fed7aa 40%, #e0f2fe);
}

@keyframes fox-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.fox-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 2.5rem 0 1.25rem;
}

.fox-sec-head h2 {
  font-family: Outfit, sans-serif;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--fox-ink);
}

.fox-sec-head p {
  color: var(--fox-muted);
  font-size: 0.9rem;
}

.fox-season-label {
  margin: 1.25rem 0 0.35rem;
  padding: 0.35rem 0;
  font-family: Outfit, sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fox-accent);
  border-bottom: 1px solid var(--fox-line);
}

.fox-ep-rail .fox-season-label:first-child {
  margin-top: 0;
}


.fox-ep {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
  background: var(--fox-card);
  border: 1px solid var(--fox-line);
  border-radius: 1rem;
  transition: transform 0.25s var(--fox-ease), border-color 0.25s var(--fox-ease);
}

.fox-ep:hover {
  transform: translateX(4px);
  border-color: rgba(196, 92, 38, 0.28);
}

.fox-ep__num {
  font-family: Outfit, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--fox-accent);
  min-width: 2.2ch;
}

.fox-ep__body h3 {
  font-size: 1.05rem;
  color: var(--fox-ink);
  letter-spacing: -0.02em;
}

.fox-ep__body p {
  margin-top: 0.2rem;
  font-size: 0.88rem;
  color: var(--fox-muted);
}

.fox-chip {
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--fox-accent-soft);
  color: var(--fox-accent);
  white-space: nowrap;
}

.fox-chip--go {
  text-decoration: none;
  background: var(--fox-ink);
  color: #fafaf9;
}

.fox-chip--pay {
  cursor: pointer;
  background: var(--fox-accent);
  color: #fff7ed;
}

.fox-chip--wait {
  background: rgba(28, 20, 16, 0.06);
  color: var(--fox-muted);
}

.fox-unlock-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(196, 92, 38, 0.1), rgba(196, 92, 38, 0.03));
  border: 1px solid rgba(196, 92, 38, 0.22);
}

.fox-unlock-bar__copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.fox-unlock-bar__copy strong {
  font-size: 1.05rem;
  color: var(--fox-ink);
}

.fox-unlock-bar__copy span {
  font-size: 0.88rem;
  color: var(--fox-muted);
}

@media (max-width: 640px) {
  .fox-unlock-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .fox-unlock-bar .fox-btn {
    width: 100%;
    text-align: center;
  }
}

.fox-ep.is-soon {
  opacity: 0.72;
}

.fox-ep.is-locked .fox-ep__num {
  color: var(--fox-muted);
}

.fox-lock {
  padding: 4rem 0 6rem;
  max-width: 36rem;
}

.fox-lock h1 {
  font-family: Outfit, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
}

/* pay dialog — centered */
.fox-pay {
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  border-radius: 1.35rem;
  padding: 0;
  max-width: 22rem;
  width: calc(100% - 2rem);
  height: fit-content;
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  background: #fffdf9;
  color: var(--fox-ink);
  box-shadow:
    0 0 0 1px rgba(28, 20, 16, 0.06),
    0 28px 64px -18px rgba(28, 25, 23, 0.45);
}

.fox-pay::backdrop {
  background: rgba(20, 14, 10, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.fox-pay__panel {
  padding: 1.6rem 1.45rem 1.35rem;
  text-align: center;
}

.fox-pay__eyebrow {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fox-accent);
}

.fox-pay__panel h3 {
  margin: 0;
  font-family: Outfit, "PingFang SC", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.fox-pay__price {
  margin: 0.55rem 0 0;
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: var(--fox-accent);
  line-height: 1;
}

.fox-pay__desc {
  margin: 0.7rem 0 1.1rem;
  color: var(--fox-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.fox-pay__stage {
  min-height: 7.5rem;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  background:
    radial-gradient(circle at 30% 20%, rgba(196, 92, 38, 0.12), transparent 55%),
    var(--fox-cream, #f5efe6);
  border: 1px dashed rgba(196, 92, 38, 0.28);
  border-radius: 1rem;
  padding: 1.15rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fox-ink);
  text-align: center;
  word-break: break-all;
}

.fox-pay__stage[data-state="login"] {
  color: var(--fox-muted);
  font-weight: 500;
}

.fox-pay__stage[data-state="login"]::before {
  content: "";
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 28%, transparent 29%),
    linear-gradient(145deg, #c45c26, #9a3f16);
  box-shadow: inset 0 -0.55rem 0 0 rgba(255, 255, 255, 0.12);
  margin-bottom: 0.35rem;
}

.fox-pay__stage[data-state="mock"]::before,
.fox-pay__stage[data-state="pay"]::before {
  content: "";
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 2px solid rgba(196, 92, 38, 0.35);
  border-top-color: var(--fox-accent);
  margin-bottom: 0.35rem;
}

.fox-pay__stage[data-state="mock"]::before {
  border-style: dashed;
}

.fox-pay__actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 1.15rem;
}

.fox-pay__cta {
  width: 100%;
  justify-content: center;
}

.fox-pay__close {
  width: 100%;
  justify-content: center;
}

.fox-pay__cta[hidden],
#foxMockPay[hidden],
#foxGoLogin[hidden] {
  display: none !important;
}

/* reader */
.fox-reader {
  min-height: 100dvh;
  background: #14110f;
  color: #fafaf9;
  display: flex;
  flex-direction: column;
}

.fox-reader__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: calc(var(--navbar-offset, 64px) + 0.75rem) 1rem 0.75rem;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.fox-reader__back {
  color: #e7e5e4;
  text-decoration: none;
  font-size: 0.9rem;
}

.fox-reader__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.fox-reader__titles strong {
  font-family: Outfit, sans-serif;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fox-reader__titles span {
  font-size: 0.8rem;
  color: #a8a29e;
}

.fox-reader__prog {
  font-variant-numeric: tabular-nums;
  color: #a8a29e;
  font-size: 0.85rem;
}

.fox-reader__stage {
  flex: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 520px) auto;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.5rem 1.25rem;
}

.fox-frame {
  margin: 0;
  background: #1c1917;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

.fox-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #292524;
  transition: opacity 0.35s var(--fox-ease);
}

.fox-frame figcaption {
  padding: 1.1rem 1.2rem 1.35rem;
  background: #1c1917;
}

.fox-line-en {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  line-height: 1.35;
}

.fox-line-zh {
  margin-top: 0.45rem;
  color: #a8a29e;
  font-size: 0.95rem;
}

.fox-nav {
  appearance: none;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: rgba(250, 250, 249, 0.08);
  color: #fafaf9;
  font-size: 1.6rem;
  cursor: pointer;
  transition: background 0.2s var(--fox-ease), transform 0.2s var(--fox-ease);
}

.fox-nav:hover {
  background: rgba(250, 250, 249, 0.16);
}

.fox-nav:active {
  transform: scale(0.96);
}

.fox-reader__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
}

.fox-reader__dots button {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: #57534e;
  cursor: pointer;
}

.fox-reader__dots button.is-on {
  background: #fdba74;
  width: 18px;
}

@media (max-width: 768px) {
  .fox-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 1.5rem;
  }

  .fox-hero__art {
    justify-self: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    order: -1;
  }

  .fox-hero h1 {
    max-width: none;
  }

  .fox-sec-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .fox-ep {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
  }

  .fox-ep__meta {
    grid-column: 2;
  }

  .fox-reader__stage {
    grid-template-columns: 1fr;
    padding-inline: 0.75rem;
  }

  .fox-nav {
    display: none;
  }
}
