html.wfx {
  --wfx-accent: 244, 197, 104;
  --wfx-accent-2: 255, 226, 160;
  --wfx-watching: 244, 197, 104;
  --wfx-completed: 156, 200, 122;
  --wfx-planned: 226, 150, 110;
}
html.wfx.night-mode {
  --wfx-accent: 178, 198, 250;
  --wfx-accent-2: 226, 234, 255;
  --wfx-watching: 196, 172, 250;
  --wfx-completed: 140, 214, 178;
  --wfx-planned: 118, 196, 240;
}

html.wfx.night-mode .watchlist-page {
  --list-panel: #131a29;
  --list-panel-soft: #18213a;
  --list-border: #2c3a58;
  --list-muted: #9eabc6;
  --list-track: #24304a;
}
html.wfx.night-mode .watchlist-page { background: #070b12; }

html.wfx .list-intro h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #e4a94a 10%, #f4c568 35%, #fff0c4 50%, #f4c568 65%, #e4a94a 90%);
  background-size: 230% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: wfx-shimmer 7s ease-in-out 1s infinite;
}
html.wfx.night-mode .list-intro h1 em { background-image: linear-gradient(100deg, #8ea6e8 10%, #c3d2ff 35%, #ffffff 50%, #c3d2ff 65%, #8ea6e8 90%); }
@keyframes wfx-shimmer { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
html.wfx .list-intro-copy > * { animation: wfx-rise .8s cubic-bezier(.2, .7, .2, 1) both; }
html.wfx .list-intro-copy > :nth-child(2) { animation-delay: .08s; }
html.wfx .list-intro-copy > :nth-child(3) { animation-delay: .16s; }
@keyframes wfx-rise { from { opacity: 0; transform: translateY(14px); filter: blur(5px); } }

html.wfx .list-intro-card {
  position: relative; isolation: isolate; overflow: hidden; padding-top: 30px;
  background: radial-gradient(ellipse 70% 60% at 50% 100%, rgba(var(--wfx-accent), .1), transparent 70%), var(--list-panel);
  animation: wfx-rise .9s cubic-bezier(.2, .7, .2, 1) .1s both;
}
html.wfx .list-intro-card::before {
  content: ""; position: absolute; inset: -10% 0 30%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 18% 85% at 50% 0%, rgba(var(--wfx-accent-2), .22), transparent 75%),
    radial-gradient(ellipse 14% 75% at 20% 0%, rgba(var(--wfx-accent), .12), transparent 75%),
    radial-gradient(ellipse 14% 75% at 80% 0%, rgba(var(--wfx-accent), .12), transparent 75%);
  filter: blur(4px); animation: wfx-spot 6s ease-in-out infinite alternate;
}
@keyframes wfx-spot { from { opacity: .75; } to { opacity: 1; } }
html.wfx .list-mini-covers { align-items: end; gap: 14px; max-width: 420px; margin-top: 30px; }
html.wfx .list-top-card { position: relative; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
html.wfx .list-top-card[data-top-slot="0"] { order: 2; transform: translateY(-16px) scale(1.07); z-index: 1; }
html.wfx .list-top-card[data-top-slot="1"] { order: 1; }
html.wfx .list-top-card[data-top-slot="2"] { order: 3; }
html.wfx .list-top-card:hover { transform: translateY(-6px); }
html.wfx .list-top-card[data-top-slot="0"]:hover { transform: translateY(-22px) scale(1.09); }
html.wfx .list-top-card .list-card-poster { animation: wfx-bob 6s ease-in-out infinite alternate; border-radius: 12px; }
html.wfx .list-top-card[data-top-slot="1"] .list-card-poster { animation-delay: -2s; }
html.wfx .list-top-card[data-top-slot="2"] .list-card-poster { animation-delay: -4s; }
@keyframes wfx-bob { from { transform: translateY(0); } to { transform: translateY(-5px); } }
html.wfx .list-top-card[data-top-slot="0"] .list-card-poster { border-color: rgba(var(--wfx-accent), .8); box-shadow: 0 0 0 1px rgba(var(--wfx-accent), .3), 0 14px 34px -10px rgba(var(--wfx-accent), .45); }
html.wfx .list-top-card[data-top-slot="0"]::before {
  content: "♛"; position: absolute; left: 50%; top: -24px; z-index: 2; transform: translateX(-50%);
  color: rgb(var(--wfx-accent)); font-size: 20px; line-height: 1; text-shadow: 0 0 12px rgba(var(--wfx-accent), .8);
  animation: wfx-crown 3s ease-in-out infinite alternate;
}
@keyframes wfx-crown { from { transform: translateX(-50%) translateY(0) rotate(-6deg); } to { transform: translateX(-50%) translateY(-3px) rotate(6deg); } }
html.wfx .list-top-rank { border: 0; color: #2a2010; font-weight: 800; box-shadow: 0 3px 10px rgba(0, 0, 0, .4); }
html.wfx .list-top-card[data-top-slot="0"] .list-top-rank { background: linear-gradient(140deg, #ffe7a6, #e0a83f); }
html.wfx .list-top-card[data-top-slot="1"] .list-top-rank { background: linear-gradient(140deg, #f4f6fa, #a9b2c2); }
html.wfx .list-top-card[data-top-slot="2"] .list-top-rank { background: linear-gradient(140deg, #f2c49b, #b6713c); }

html.wfx .list-mini-covers { position: relative; padding-bottom: 6px; }
html.wfx .list-mini-covers::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: -6px; height: 10px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(var(--wfx-accent), .35), transparent 70%); filter: blur(3px);
}

html.wfx .list-stats > div { position: relative; padding-right: 86px; }
.wfx-ring { position: absolute; right: 20px; top: 50%; width: 52px; height: 52px; margin-top: -26px; transform: rotate(-90deg); overflow: visible; }
.wfx-ring circle { fill: none; stroke-width: 5; }
.wfx-ring .bg { stroke: var(--list-track); }
.wfx-ring .fg, .wfx-ring .gl { stroke-linecap: round; stroke-dasharray: 138.2; stroke-dashoffset: 138.2; transition: stroke-dashoffset 1.1s cubic-bezier(.2, .7, .2, 1); }
.wfx-ring .fg { stroke: rgb(var(--c)); }
.wfx-ring .gl { stroke: rgba(var(--c), .22); stroke-width: 10; }
.wfx-ring + .wfx-pct { position: absolute; right: 20px; top: 50%; width: 52px; margin-top: -8px; text-align: center; font-size: 11px; font-weight: 700; color: rgb(var(--c)); font-variant-numeric: tabular-nums; }
html.wfx .list-stats > div:nth-child(1) { --c: var(--wfx-accent); }
html.wfx .list-stats > div:nth-child(2) { --c: var(--wfx-watching); }
html.wfx .list-stats > div:nth-child(3) { --c: var(--wfx-completed); }
html.wfx .list-stats > div:nth-child(4) { --c: var(--wfx-planned); }
html.wfx .list-stats strong { color: rgb(var(--c)); }
html.wfx .list-stats strong.wfx-bump { animation: wfx-bump .5s ease; }
@keyframes wfx-bump { 40% { transform: scale(1.25); text-shadow: 0 0 16px rgba(var(--c), .8); } }

html.wfx .list-filters, html.wfx .list-add-tabs { position: relative; isolation: isolate; }
.wfx-thumb {
  position: absolute; z-index: -1; border-radius: 9px; pointer-events: none;
  background: linear-gradient(140deg, #f6d58c, #e5b45c); box-shadow: 0 4px 16px -4px rgba(var(--wfx-accent), .6);
  transition: left .45s cubic-bezier(.3, 1.3, .5, 1), top .45s cubic-bezier(.3, 1.3, .5, 1), width .45s cubic-bezier(.3, 1.3, .5, 1), height .45s;
}
html.wfx .list-filters button.active, html.wfx .list-add-tabs button.active,
html.wfx .list-filters button.active:hover, html.wfx .list-add-tabs button.active:hover { background: transparent; box-shadow: none; }

html.wfx .watchlist-card {
  --st: var(--wfx-accent);
  position: relative; isolation: isolate; overflow: hidden; border-radius: 22px;
  background: radial-gradient(ellipse 80% 60% at 0% 0%, rgba(var(--st), .08), transparent 60%), linear-gradient(145deg, var(--list-panel-soft), var(--list-panel));
  transition: border-color .3s, box-shadow .35s, transform .35s cubic-bezier(.2, .7, .2, 1);
}
html.wfx .watchlist-card[data-status="watching"] { --st: var(--wfx-watching); }
html.wfx .watchlist-card[data-status="completed"] { --st: var(--wfx-completed); }
html.wfx .watchlist-card[data-status="planned"] { --st: var(--wfx-planned); }
html.wfx .watchlist-card::before {
  content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; border-radius: 0 3px 3px 0;
  background: rgb(var(--st)); box-shadow: 0 0 14px 1px rgba(var(--st), .6);
}
html.wfx .watchlist-card:hover { transform: translateY(-4px); border-color: rgba(var(--st), .6); box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(var(--st), .12); }
html.wfx .watchlist-card .list-card-poster { box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .8); transition: transform .4s cubic-bezier(.2, .7, .2, 1); }
html.wfx .watchlist-card:hover .list-card-top > .list-card-poster { transform: scale(1.05) rotate(-1.5deg); }
.wfx-status {
  display: flex; width: fit-content; align-items: center; gap: 6px; margin-bottom: 7px; padding: 3px 10px; border-radius: 999px;
  border: 1px solid rgba(var(--st), .4); background: rgba(var(--st), .1); color: rgb(var(--st)); font-size: 10px; font-weight: 650; letter-spacing: .3px;
}
.wfx-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.watchlist-card[data-status="watching"] .wfx-status::before { animation: wfx-blink 1.6s ease-in-out infinite; }
@keyframes wfx-blink { 50% { opacity: .3; } }
html.wfx .watchlist-card.wfx-new { animation: wfx-card-in .6s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes wfx-card-in { from { opacity: 0; transform: translateY(18px) scale(.97); filter: blur(5px); } }

html.wfx .list-watch-track { height: 6px; background: var(--list-track); }
html.wfx .list-watch-track span { position: relative; overflow: hidden; background: linear-gradient(90deg, rgba(var(--st), .55), rgb(var(--st))); box-shadow: 0 0 10px rgba(var(--st), .55); }
html.wfx .watchlist-card[data-status="watching"] .list-watch-track span::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: translateX(-100%); animation: wfx-sheen 2.6s ease-in-out infinite;
}
@keyframes wfx-sheen { 60%, 100% { transform: translateX(100%); } }
html.wfx .list-card-progress strong { color: rgb(var(--st)); }
html.wfx .list-rating-star.is-filled { filter: drop-shadow(0 0 6px rgba(var(--wfx-accent), .5)); }
html.wfx .list-rating-star:hover svg { transform: scale(1.18) rotate(-8deg); }
html.wfx .list-rating-star svg { transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.wfx-stars-pop .list-rating-star.is-filled svg { animation: wfx-star .5s cubic-bezier(.3, 1.4, .5, 1) both; animation-delay: calc(var(--k) * 45ms); }
@keyframes wfx-star { from { transform: scale(.3) rotate(-40deg); } }

.wfx-float { position: absolute; z-index: 5; pointer-events: none; font-weight: 800; font-size: 15px; color: rgb(var(--st)); text-shadow: 0 0 10px rgba(var(--st), .7); animation: wfx-float .9s ease-out forwards; }
@keyframes wfx-float { from { opacity: 0; transform: translateY(6px) scale(.7); } 25% { opacity: 1; transform: translateY(-6px) scale(1.15); } to { opacity: 0; transform: translateY(-34px) scale(1); } }
.wfx-confetti-layer { position: fixed; inset: 0; z-index: 80; pointer-events: none; overflow: hidden; }
.wfx-confetti { position: absolute; width: 7px; height: 11px; border-radius: 2px; }

html.wfx .list-empty-icon { position: relative; border-radius: 50%; animation: wfx-bob 3s ease-in-out infinite alternate; }
html.wfx .list-empty-icon::before, html.wfx .list-empty-icon::after {
  content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px dashed rgba(var(--wfx-accent), .35); animation: wfx-spin 14s linear infinite;
}
html.wfx .list-empty-icon::after { inset: -22px; border-style: dotted; animation-direction: reverse; animation-duration: 22s; }
@keyframes wfx-spin { to { transform: rotate(360deg); } }

html.wfx .list-dialog[open] { animation: wfx-pop .4s cubic-bezier(.2, .9, .3, 1.1) both; border-color: rgba(var(--wfx-accent), .3); }
html.wfx .list-dialog[open]::backdrop { animation: wfx-fade .3s ease both; }
@keyframes wfx-pop { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes wfx-fade { from { opacity: 0; } }
html.wfx .list-discovery-card { transition: border-color .2s, background .2s, transform .25s cubic-bezier(.2, .7, .2, 1); }
html.wfx .list-discovery-card:not(:disabled):hover { transform: translateY(-2px); }

html.wfx .list-transfer { position: relative; isolation: isolate; overflow: hidden; }
html.wfx .list-transfer::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; z-index: -1; border-radius: 50%;
  background: repeating-radial-gradient(circle, rgba(var(--wfx-accent), .1) 0 1px, transparent 1px 18px);
  animation: wfx-spin 60s linear infinite;
}

@media (max-width: 600px) {
  html.wfx .list-stats > div { padding-right: 10px; padding-bottom: 66px; }
  .wfx-ring { top: auto; bottom: 12px; right: auto; left: 10px; margin-top: 0; width: 42px; height: 42px; }
  .wfx-ring + .wfx-pct { top: auto; bottom: 25px; right: auto; left: 10px; width: 42px; margin-top: 0; font-size: 10px; }
  html.wfx .list-mini-covers { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html.wfx .list-intro h1 em, html.wfx .list-intro-copy > *, html.wfx .list-intro-card, html.wfx .list-intro-card::before,
  html.wfx .list-top-card .list-card-poster, html.wfx .list-top-card[data-top-slot="0"]::before, .wfx-status::before,
  html.wfx .watchlist-card.wfx-new, html.wfx .list-watch-track span::after, .wfx-stars-pop .list-rating-star.is-filled svg,
  html.wfx .list-empty-icon, html.wfx .list-empty-icon::before, html.wfx .list-empty-icon::after,
  html.wfx .list-dialog[open], html.wfx .list-transfer::before { animation: none !important; }
  .wfx-thumb, .wfx-ring .fg, .wfx-ring .gl { transition: none; }
}
