:root,
[data-theme="ink"] {
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Consolas, "Roboto Mono", monospace;
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #f92779;
  color-scheme: dark;
  --bg: #0d0d0f;
  --panel: #161619;
  --chip: #232327;
  --surface-1: #141417;
  --surface-2: #1c1c21;
  --surface-3: #232329;
  --surface-4: #2a2a31;
  --line: #26262b;
  --line-2: #33333a;
  --line-3: #4a4a52;
  --text: #f2f1ec;
  --text-hi: #fff;
  --text-2: #d8d8de;
  --text-3: #c4c3cc;
  --muted: #9d9ca6;
  --text-4: #76767f;
  --inverse: #f2f1ec;
  --inverse-hi: #fff;
  --on-inverse: #0d0d0f;
  --tint-1: rgba(255, 255, 255, 0.07);
  --tint-2: rgba(255, 255, 255, 0.13);
  --accent: #f92779;
  --accent-hi: #ff4b8f;
  --blue: #ff79ad;
  --ok: #3ecf8e;
  --warn: #f0b429;
  --danger: #ff6b6b;
  --score: #ffd60a;
  --r-md: 12px;
  --r-lg: 14px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  --dc-bg: #2b2d31;
  --dc-embed: #1e1f22;
  --dc-text: #dbdee1;
  --dc-muted: #949ba4;
}
[data-theme="paper"] {
  --logo: url("/icons/hideout-word-dark.png");
  --mark: url("/icons/hideout-mark-dark.png");
  --brand: #f92779;
  color-scheme: light;
  --bg: #f6f5f2;
  --panel: #fff;
  --chip: #ecebe6;
  --surface-1: #fff;
  --surface-2: #f0efeb;
  --surface-3: #e8e7e2;
  --surface-4: #dddcd6;
  --line: #e4e3de;
  --line-2: #d6d5cf;
  --line-3: #b9b8b1;
  --text: #16161a;
  --text-hi: #0d0d0f;
  --text-2: #2a2a30;
  --text-3: #46464e;
  --muted: #66666f;
  --text-4: #8a8a93;
  --inverse: #16161a;
  --inverse-hi: #000;
  --on-inverse: #f6f5f2;
  --tint-1: rgba(0, 0, 0, 0.05);
  --tint-2: rgba(0, 0, 0, 0.09);
  --accent: #d6175f;
  --accent-hi: #e8336f;
  --blue: #c8125c;
  --ok: #138a52;
  --warn: #a96800;
  --danger: #d33a3a;
  --score: #a96800;
  --shadow: 0 16px 40px rgba(20, 20, 30, 0.16);
}
[data-theme="midnight"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #6d93ff;
  color-scheme: dark;
  --bg: #0b0e17;
  --panel: #121829;
  --chip: #1c2338;
  --surface-1: #111626;
  --surface-2: #161c2e;
  --surface-3: #1c2338;
  --surface-4: #232b43;
  --line: #1e2538;
  --line-2: #2a3350;
  --line-3: #3b4668;
  --text: #eef1f8;
  --text-hi: #fff;
  --text-2: #cfd6e6;
  --text-3: #b3bcd1;
  --muted: #8b95ad;
  --text-4: #6a7490;
  --inverse: #eef1f8;
  --inverse-hi: #fff;
  --on-inverse: #0b0e17;
  --tint-1: rgba(160, 180, 255, 0.07);
  --tint-2: rgba(160, 180, 255, 0.13);
  --accent: #4f7cff;
  --accent-hi: #6d93ff;
  --blue: #6bb6ff;
  --score: #ffd60a;
}
[data-theme="sakura"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #f25d91;
  color-scheme: dark;
  --bg: #120d11;
  --panel: #1c1419;
  --chip: #2a1f27;
  --surface-1: #1a1318;
  --surface-2: #22191f;
  --surface-3: #2a1f27;
  --surface-4: #33262f;
  --line: #2a1f27;
  --line-2: #3a2b35;
  --line-3: #55404d;
  --text: #f8eef3;
  --text-hi: #fff;
  --text-2: #e4d3dc;
  --text-3: #ccb6c2;
  --muted: #a68f9b;
  --text-4: #7f6a75;
  --inverse: #f8eef3;
  --inverse-hi: #fff;
  --on-inverse: #120d11;
  --tint-1: rgba(255, 200, 225, 0.07);
  --tint-2: rgba(255, 200, 225, 0.13);
  --accent: #e0457b;
  --accent-hi: #f25d91;
  --blue: #ff8fb5;
  --score: #ffd60a;
}
[data-theme="matcha"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #4bc06b;
  color-scheme: dark;
  --bg: #0c100d;
  --panel: #141a15;
  --chip: #1e2820;
  --surface-1: #121813;
  --surface-2: #182019;
  --surface-3: #1e2820;
  --surface-4: #253027;
  --line: #1e2820;
  --line-2: #2b382d;
  --line-3: #40523f;
  --text: #eef4ee;
  --text-hi: #fff;
  --text-2: #d2ddd2;
  --text-3: #b6c4b6;
  --muted: #8fa08f;
  --text-4: #6b7c6b;
  --inverse: #eef4ee;
  --inverse-hi: #fff;
  --on-inverse: #0c100d;
  --tint-1: rgba(200, 255, 210, 0.06);
  --tint-2: rgba(200, 255, 210, 0.12);
  --accent: #36a654;
  --accent-hi: #4bc06b;
  --blue: #6fd38a;
  --score: #ffd60a;
}
[data-theme="oled"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #f92779;
  color-scheme: dark;
  --bg: #000;
  --panel: #0c0c0e;
  --chip: #1a1a1e;
  --surface-1: #0a0a0c;
  --surface-2: #121215;
  --surface-3: #1a1a1e;
  --surface-4: #222227;
  --line: #1a1a1e;
  --line-2: #26262b;
  --line-3: #3d3d44;
  --text: #f2f1ec;
  --text-hi: #fff;
  --text-2: #d8d8de;
  --text-3: #c4c3cc;
  --muted: #9d9ca6;
  --text-4: #76767f;
  --inverse: #f2f1ec;
  --inverse-hi: #fff;
  --on-inverse: #000;
  --tint-1: rgba(255, 255, 255, 0.07);
  --tint-2: rgba(255, 255, 255, 0.13);
  --accent: #f92779;
  --accent-hi: #ff4b8f;
  --blue: #ff79ad;
  --score: #ffd60a;
}
[data-theme="maroon"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #d0475f;
  color-scheme: dark;
  --bg: #0e0a0b;
  --panel: #1a1214;
  --chip: #271a1d;
  --surface-1: #161012;
  --surface-2: #1e1518;
  --surface-3: #271a1d;
  --surface-4: #312126;
  --line: #261a1d;
  --line-2: #36252a;
  --line-3: #523840;
  --text: #f5ecee;
  --text-hi: #fff;
  --text-2: #e2d2d5;
  --text-3: #c9b3b8;
  --muted: #a28d92;
  --text-4: #7c676c;
  --inverse: #f5ecee;
  --inverse-hi: #fff;
  --on-inverse: #0e0a0b;
  --tint-1: rgba(255, 200, 210, 0.07);
  --tint-2: rgba(255, 200, 210, 0.13);
  --accent: #b0304a;
  --accent-hi: #d0475f;
  --blue: #e8798d;
  --score: #ffd60a;
}
[data-theme="latte"] {
  --logo: url("/icons/hideout-word-dark.png");
  --mark: url("/icons/hideout-mark-dark.png");
  --brand: #d39463;
  color-scheme: dark;
  --bg: #14100d;
  --panel: #1f1813;
  --chip: #2c221b;
  --surface-1: #1b1511;
  --surface-2: #231b15;
  --surface-3: #2c221b;
  --surface-4: #362a21;
  --line: #2a2019;
  --line-2: #3b2e24;
  --line-3: #574536;
  --text: #f4ebe1;
  --text-hi: #fffaf4;
  --text-2: #e3d5c6;
  --text-3: #cbb9a6;
  --muted: #a8957f;
  --text-4: #7f6d5b;
  --inverse: #f4ebe1;
  --inverse-hi: #fffaf4;
  --on-inverse: #14100d;
  --tint-1: rgba(255, 225, 190, 0.07);
  --tint-2: rgba(255, 225, 190, 0.13);
  --accent: #b06f3c;
  --accent-hi: #d39463;
  --blue: #e0a878;
  --score: #ffd60a;
}
[data-theme="lavender"] {
  --logo: url("/icons/hideout-word.png");
  --mark: url("/icons/hideout-mark.png");
  --brand: #a58bff;
  color-scheme: dark;
  --bg: #0f0d16;
  --panel: #1a1724;
  --chip: #262236;
  --surface-1: #16131f;
  --surface-2: #1d1a29;
  --surface-3: #262236;
  --surface-4: #2e2a40;
  --line: #242033;
  --line-2: #332d47;
  --line-3: #4b4466;
  --text: #f1eefa;
  --text-hi: #fff;
  --text-2: #d9d3ec;
  --text-3: #bfb7d6;
  --muted: #9890b0;
  --text-4: #716a8a;
  --inverse: #f1eefa;
  --inverse-hi: #fff;
  --on-inverse: #0f0d16;
  --tint-1: rgba(200, 185, 255, 0.07);
  --tint-2: rgba(200, 185, 255, 0.13);
  --accent: #7c5ce8;
  --accent-hi: #a58bff;
  --blue: #b8a4ff;
  --score: #ffd60a;
}
html {
  background: var(--bg);
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.25s;
  animation-timing-function: ease;
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 0.001ms;
  }
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scrollbar-color: var(--line-2) transparent;
  scrollbar-gutter: stable;
  scrollbar-gutter: stable;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
a,
button {
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
:focus-visible {
  outline: 2px solid var(--line-3);
  outline-offset: 2px;
}
a {
  -webkit-tap-highlight-color: transparent;
}
.card-link {
  border-radius: 12px;
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}
.card-link:focus-visible {
  outline: none;
}
::selection {
  background: color-mix(in srgb, var(--brand) 35%, transparent);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--surface-4);
  border-radius: 8px;
}
@media (hover: hover) {
  ::-webkit-scrollbar-thumb:hover {
    background: var(--line-2);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto;
    transition: none;
    animation: none;
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.content,
.anime-body,
.page-wrap,
.browse,
.watch-layout {
  animation: fade 0.25s ease;
}
.rv {
  opacity: 0;
  transform: translateY(16px);
}
.rel-row .rv,
.ep-grid .rv {
  transform: none;
}
.rv.rv-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-d, 0ms),
    transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rv-d, 0ms);
}
#tab-home,
#tab-episodes,
#tab-characters {
  animation: fade 0.25s ease;
}
.ep-cell,
.poster-card,
.trend-row,
.sched-card,
.wl-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    background-color 0.15s ease;
}
.poster-img,
.rel-thumb {
  transition: outline-color 0.18s ease;
}
.poster-img span {
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .poster-card:hover .poster-img span {
    transform: scale(1.05);
  }
}
.btn-sub,
.btn-play,
.btn-pill,
.btn-circle,
.w-pill,
.chip,
.pg-skip,
.seg-btn,
.day-btn {
  transition:
    transform 0.1s ease,
    background-color 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.btn-sub:active,
.btn-play:active,
.btn-pill:active,
.w-pill:active,
.chip:active {
  transform: scale(0.97);
}
.notif-dd,
.dd,
.f-drop {
  animation: pop 0.16s ease;
  transform-origin: top right;
}
.f-drop {
  transform-origin: top center;
}
.tab {
  transition:
    color 0.15s ease,
    border-color 0.2s ease;
}
.poster {
  transition: transform 0.25s ease;
}
@media (hover: hover) {
  .poster:hover {
    transform: scale(1.015);
  }
}
.side-ep,
.nav-item {
  transition: background-color 0.15s ease;
}
.lm-back {
  animation: fade 0.18s ease;
}
.lm-modal {
  animation: pop 0.2s ease;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  height: var(--topbar-h);
  position: sticky;
  top: 0;
  z-index: 260;
  box-shadow: inset 0 -1px 0 var(--line);
}
.topbar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 -1px 0 var(--line);
  pointer-events: none;
}
.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.logo-img {
  display: block;
  width: 133px;
  height: 24px;
  background: var(--logo) left center/contain no-repeat;
}
.poster-img span,
.rel-thumb span,
.sched-thumb,
.hist-thumb span,
.side-thumb,
.poster-sm {
  font-kerning: normal;
}
.icon-btn {
  background: none;
  border: 0;
  color: var(--text-2);
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
}
@media (hover: hover) {
  .icon-btn:hover {
    background: var(--chip);
  }
}
.icon-btn svg {
  display: block;
}
.badge {
  position: absolute;
  top: 1px;
  right: -2px;
  background: var(--accent);
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 10px;
  border: 2px solid var(--bg);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--line-2);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
}
@media (hover: hover) {
  .avatar:hover {
    background: var(--line-3);
  }
}
.bell-wrap {
  position: relative;
}
.notif-dd {
  position: absolute;
  top: 44px;
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  min-width: 260px;
  z-index: 50;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 16px;
}
.topbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}
.search-wrap {
  display: flex;
  width: 44%;
  min-width: 280px;
  height: 42px;
}
.search-wrap > input,
.search-wrap > .search-btn {
  height: 100%;
}
@media (min-width: 701px) {
  .topbar-left,
  .topbar-right {
    flex: 1 1 0;
    min-width: max-content;
  }
  .topbar-right {
    justify-content: flex-end;
  }
  .topbar-center {
    flex: 2 1 0;
  }
  .search-wrap {
    width: 70%;
  }
}
.search-wrap input {
  flex: 1;
  min-width: 0;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  color: var(--text);
  padding: 9px 18px;
  border-radius: 20px 0 0 20px;
  outline: none;
  font-size: 15px;
}
.search-wrap input:focus {
  border-color: var(--line-3);
}
.search-btn {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-left: 0;
  color: var(--text-hi);
  padding: 0 22px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
}
@media (hover: hover) {
  .search-btn:hover {
    background: var(--surface-4);
  }
}
.filter-shell {
  margin-left: 236px;
  position: sticky;
  top: var(--topbar-h);
  background: var(--bg);
  z-index: 9;
}
.filter-bar {
  display: flex;
  gap: 10px;
  padding: 12px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  align-items: center;
}
.filter-bar::-webkit-scrollbar {
  display: none;
}
.chip {
  background: var(--chip);
  border: 0;
  color: var(--text-hi);
  padding: 8px 15px;
  border-radius: 9px;
  white-space: nowrap;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 600;
}
.chip-sep {
  flex-shrink: 0;
  width: 1px;
  height: 22px;
  margin: 0 4px;
  background: var(--line-2);
}
.chip.active {
  background: var(--inverse);
  color: var(--on-inverse);
}
@media (hover: hover) {
  .chip:not(.active):hover {
    background: var(--surface-4);
  }
}
.layout {
  display: flex;
  align-items: flex-start;
}
.sidebar {
  width: 236px;
  min-width: 236px;
  padding: 12px 10px;
  height: calc(100vh - var(--topbar-h));
  height: calc(100dvh - var(--topbar-h));
  overflow-y: scroll;
  position: fixed;
  left: 0;
  top: var(--topbar-h);
  bottom: 0;
  background: var(--bg);
  z-index: 5;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
@media (hover: hover) {
  .sidebar:hover {
    scrollbar-color: var(--line-3) transparent;
  }
}
.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
  background: transparent;
  border-radius: 8px;
}
@media (hover: hover) {
  .sidebar:hover::-webkit-scrollbar-thumb {
    background: var(--line-3);
  }
}
@media (hover: hover) {
  .sidebar:hover::-webkit-scrollbar-thumb:hover {
    background: var(--line-3);
  }
}
.nav-section h4 {
  padding: 8px 12px;
  font-size: 14.5px;
  font-weight: 600;
  display: flex;
  gap: 4px;
  align-items: center;
}
.chev {
  color: var(--muted);
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
}
.nav-item svg {
  flex-shrink: 0;
  color: var(--text-2);
}
@media (hover: hover) {
  .nav-item:hover {
    background: var(--chip);
  }
}
.nav-item.active {
  background: var(--chip);
}
.nav-item.active svg {
  color: var(--text-hi);
}
.mini-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
  color: #fff;
}
.show-more {
  color: var(--muted);
}
.show-more svg {
  transition: transform var(--nav-dur, 0.28s) var(--nav-ease, ease);
}
.show-more.open svg {
  transform: rotate(180deg);
}
.nav-item[hidden] {
  display: none;
}
hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 10px 6px;
}
.content {
  flex: 1;
  min-width: 0;
  padding: 18px 20px;
  margin-left: 236px;
  min-height: calc(100vh - var(--topbar-h));
  min-height: calc(100dvh - var(--topbar-h));
}
.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
@media (max-width: 900px) {
  .sidebar {
    border-right: 1px solid var(--line);
  }
  .content {
    margin-left: 0;
  }
  .filter-shell {
    margin-left: 0;
  }
  .filter-bar {
    padding-left: 16px;
  }
  .search-wrap {
    width: 82%;
  }
}
.anime-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  filter: blur(2px);
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg) 25%, transparent) 0%,
    color-mix(in srgb, var(--bg) 72%, transparent) 60%,
    var(--bg) 100%
  );
}
.hero-inner {
  position: relative;
  display: flex;
  gap: 28px;
  padding: 40px 48px 28px;
  width: 100%;
}
.poster {
  width: 180px;
  min-width: 180px;
  aspect-ratio: 3/4;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  outline: 1px solid var(--line-2);
}
.hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.hero-info h1 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero-native {
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}
.hero-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stat-pill {
  font-size: 12px;
  font-weight: 700;
  background: var(--tint-1);
  border: 1px solid var(--line-2);
  padding: 5px 11px;
  border-radius: 8px;
  color: var(--text-2);
}
.stat-pill.gold {
  color: var(--score);
}
.facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.fact-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
}
.fact-box span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 700;
}
.fact-box strong {
  font-size: 13px;
  margin-top: 4px;
  display: block;
  line-height: 1.5;
}
.hero-meta {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 8px;
}
.tag-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.tag {
  font-size: 12px;
  font-weight: 700;
  background: var(--chip);
  padding: 5px 12px;
  border-radius: 20px;
  color: var(--text-2);
}
.btn-row {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-sub {
  background: var(--inverse);
  color: var(--on-inverse);
  border: 0;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
}
.btn-sub.on {
  background: var(--line-2);
  color: var(--text-hi);
}
.btn-play {
  background: var(--accent);
  color: #fff;
  border: 0;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 168px;
}
.anime-hero.loading .hero-meta {
  min-height: 20px;
}
.anime-hero.loading .hero-stats {
  min-height: 30px;
}
.anime-hero.loading .tag-row {
  min-height: 28px;
}
.anime-hero.loading .btn-row {
  visibility: hidden;
}
@media (hover: hover) {
  .btn-play:hover {
    background: var(--accent-hi);
  }
}
.btn-pill {
  background: var(--chip);
  color: var(--text-hi);
  border: 0;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-pill.on {
  background: var(--line-2);
  color: var(--blue);
}
.btn-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--chip);
  color: var(--text-hi);
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .btn-circle:hover {
    background: var(--surface-4);
  }
}
.ext-link[hidden] {
  display: none;
}
#alLink {
  color: #02a9ff;
}
#malLink {
  color: #4a74d8;
}
.anime-tabs {
  display: flex;
  gap: 26px;
  padding: 0 48px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: var(--topbar-h);
  background: var(--bg);
  z-index: 8;
  max-width: none;
}
.tab {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 2px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab.active {
  color: var(--text-hi);
  border-bottom-color: var(--text-hi);
}
.anime-body {
  padding: 24px 48px 60px;
  width: 100%;
}
.section-block {
  margin-bottom: 38px;
  max-width: none;
}
.section-block h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.desc {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.7;
  max-width: 900px;
}
.ep-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 320px);
  gap: 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.ep-grid .ep-card {
  min-width: 0;
  scroll-snap-align: start;
}
@media (max-width: 700px) {
  .ep-grid {
    grid-auto-columns: minmax(240px, 280px);
  }
}
.ep-card {
  cursor: pointer;
}
.ep-thumb {
  position: relative;
  aspect-ratio: 16/9;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
}
.ep-thumb .time {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.85);
  font-size: 12px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
}
.ep-title {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 8px;
}
.ep-sub {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.wo-block {
  min-width: 0;
  margin-top: 18px;
}
.rel-row.wo-row {
  grid-auto-columns: 116px;
  gap: 12px;
}
@media (max-width: 520px) {
  .rel-row.wo-row {
    grid-auto-columns: 100px;
    gap: 10px;
  }
}
.rel-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 160px;
  gap: 14px;
  padding-left: 2px;
  padding-right: 2px;
  scroll-padding-left: 2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.rel-row > .rel-card {
  scroll-snap-align: start;
}
.shelf {
  scrollbar-width: none;
  padding-top: 4px;
  padding-bottom: 4px;
}
.ep-grid.shelf {
  padding-bottom: 20px;
  margin-bottom: -16px;
}
.shelf::-webkit-scrollbar {
  display: none;
}
.shelf.can-scroll,
.edge-fade.can-scroll {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--fade-l, 0px), #000 calc(100% - var(--fade-r, 0px)), transparent);
}
.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.shelf-head h2 {
  margin-bottom: 0;
}
.shelf-nav {
  display: flex;
  gap: 8px;
}
.shelf-nav[hidden] {
  display: none;
}
.shelf-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: var(--tint-1);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease,
    transform 0.1s ease;
}
@media (hover: hover) {
  .shelf-btn:hover:not(:disabled) {
    background: var(--tint-2);
    color: var(--text-hi);
  }
}
.shelf-btn:active:not(:disabled) {
  transform: scale(0.94);
}
.shelf-btn:disabled {
  opacity: 0.3;
  cursor: default;
}
.rel-card {
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.rel-thumb {
  position: relative;
  aspect-ratio: 3/4.2;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
@media (hover: hover) {
  .rel-card:hover .rel-thumb {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }
}
@media (hover: hover) {
  .up-panel .rel-card:hover .rel-thumb {
    transform: translate3d(0, -3px, 0);
    box-shadow:
      0 0 0 1px var(--line-2),
      0 10px 22px rgba(0, 0, 0, 0.35);
  }
}
.up-panel .rel-thumb {
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
  box-shadow: 0 0 0 1px transparent;
}
.rel-tag {
  position: absolute;
  left: 6px;
  bottom: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: #fff;
  background: rgba(0, 0, 0, 0.78);
  padding: 3px 7px;
  border-radius: 5px;
}
.rel-card.here .rel-thumb {
  box-shadow: 0 0 0 2px var(--accent);
}
.rel-card.here .rel-tag {
  background: var(--accent);
}
.rel-title {
  font-size: 13px;
  font-weight: 600;
  margin-top: 8px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rel-sub {
  font-size: 12px;
  color: var(--muted);
  margin-top: 3px;
}
.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr));
  gap: 12px;
}
.ep-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.ep-head h2 {
  margin-bottom: 0;
}
.ep-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 8px 15px;
  min-width: 250px;
  color: var(--muted);
}
.ep-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13.5px;
}
.ep-count {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12.5px;
  margin: 14px 0;
}
.ep-total {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-2);
}
.pg-skip {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.pg-skip:disabled {
  opacity: 0.3;
  cursor: default;
}
@media (hover: hover) {
  .pg-skip:not(:disabled):hover {
    background: var(--surface-4);
  }
}
.pg-range {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 8px;
  font-weight: 600;
  color: var(--text-hi);
  font-size: 12.5px;
}
.ep-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px 12px;
}
.ep-cell {
  cursor: pointer;
  min-width: 0;
}
.ep-cell-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.ep-cell-thumb {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ep-num {
  position: absolute;
  bottom: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.8);
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 5px;
  color: #fff;
}
.ep-thumb,
.ep-cell-thumb {
  overflow: hidden;
  background: var(--surface-2);
}
.ep-fallback {
  position: absolute;
  inset: -12px;
  background: var(--surface-2) center/cover;
  filter: blur(8px) brightness(0.4) saturate(0.85);
}
.ep-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ep-cell-thumb,
.ep-thumb {
  isolation: isolate;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.22s ease;
}
.ep-cell-thumb::before,
.ep-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(8, 8, 10, 0.42);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.ep-cell-thumb::after,
.ep-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: rgba(14, 14, 17, 0.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E")
    55% 50%/18px no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0;
  transform: scale(0.85);
  transition:
    opacity 0.2s ease,
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.ep-cell-link:focus-visible .ep-cell-thumb,
.card-link:focus-visible .ep-thumb {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
}
@media (hover: hover) {
  .ep-cell-link:hover .ep-cell-thumb,
  .card-link:hover .ep-thumb {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.5);
  }
}
.ep-cell-link:focus-visible .ep-cell-thumb::before,
.card-link:focus-visible .ep-thumb::before {
  opacity: 1;
}
@media (hover: hover) {
  .ep-cell-link:hover .ep-cell-thumb::before,
  .card-link:hover .ep-thumb::before {
    opacity: 1;
  }
}
.ep-cell-link:focus-visible .ep-cell-thumb::after,
.card-link:focus-visible .ep-thumb::after {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .ep-cell-link:hover .ep-cell-thumb::after,
  .card-link:hover .ep-thumb::after {
    opacity: 1;
    transform: none;
  }
}
.ep-cell-link:focus-visible,
.card-link:focus-visible {
  outline: none;
}
.ep-cell-title {
  transition: color 0.15s ease;
}
@media (hover: hover) {
  .ep-cell-link:hover .ep-cell-title {
    color: var(--text-hi);
  }
}
.ep-num,
.ep-thumb .time {
  z-index: 3;
}
.ep-cell-title {
  font-size: 12px;
  font-weight: 500;
  margin-top: 8px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--text-2);
}
.ep-empty {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: 13.5px;
  padding: 26px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 26px;
}
@media (max-width: 1100px) {
  .ep-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .ep-cell-title {
    font-size: 11.5px;
  }
}
@media (max-width: 700px) {
  .hero-inner {
    flex-direction: column;
    padding: 28px 20px;
  }
  .poster {
    width: 130px;
    min-width: 130px;
  }
  .anime-tabs,
  .anime-body {
    padding-left: 20px;
    padding-right: 20px;
  }
  .ep-search {
    min-width: 0;
    width: 100%;
  }
  .ep-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
.char-card {
  display: flex;
  align-items: stretch;
  height: 80px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
@media (hover: hover) {
  .char-card:hover {
    border-color: var(--line-2);
    background: var(--surface-2);
  }
}
.char-img {
  width: 62px;
  min-width: 62px;
  height: 100%;
  object-fit: cover;
  background: var(--surface-3);
}
.char-blank {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-4);
}
.char-side {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding: 0 14px;
}
.char-side.va {
  text-align: right;
  align-items: flex-end;
}
.char-name {
  max-width: 100%;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.char-role {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--muted);
}
.char-card.main .char-side:not(.va) .char-role {
  color: var(--accent-hi);
}
.page-wrap {
  padding: 28px 48px 60px;
  max-width: none;
  width: 100%;
}
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.page-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.page-sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.nf {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.nf img {
  border-radius: 16px;
  margin-bottom: 6px;
}
.nf h1 {
  font-size: 24px;
  font-weight: 800;
}
.nf p {
  color: var(--muted);
  margin-bottom: 8px;
}
.nf .btn-sub {
  text-decoration: none;
}
.anime-missing .btn-row,
.anime-missing .anime-tabs,
.anime-missing #tab-home > .section-block:not(:first-child) {
  display: none;
}
.trailer {
  position: relative;
  aspect-ratio: 16/9;
  max-width: 860px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-2);
}
.trailer iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.trailer-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.trailer-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.2s ease;
}
@media (hover: hover) {
  .trailer-cover:hover img {
    filter: brightness(0.8);
  }
}
.trailer-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 68px;
  height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  background: rgba(14, 14, 17, 0.72)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5.5v13l10.5-6.5z'/%3E%3C/svg%3E")
    56% 50%/28px no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: transform 0.2s ease;
}
@media (hover: hover) {
  .trailer-cover:hover .trailer-play {
    transform: scale(1.06);
  }
}
.btn-play:disabled {
  opacity: 0.6;
  cursor: default;
}
.doc {
  max-width: 760px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.75;
}
.doc-head {
  margin-bottom: 26px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.doc-head h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--text-hi);
}
.doc-updated {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-4);
}
.doc h2 {
  margin: 30px 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
}
.doc p + p,
.doc ul + p,
.doc ol + p,
.doc .doc-cards + p {
  margin-top: 12px;
}
.doc ul + p,
.doc ol + p {
  margin-top: 16px;
}
.doc ul,
.doc ol {
  margin: 10px 0 0 20px;
  display: grid;
  gap: 6px;
}
.doc a:not(.doc-card) {
  color: var(--blue);
  text-decoration: none;
}
@media (hover: hover) {
  .doc a:not(.doc-card):hover {
    text-decoration: underline;
  }
}
.doc strong {
  color: var(--text-hi);
}
.doc code {
  font-size: 13px;
  padding: 1px 6px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--text);
}
.doc-small {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  margin: 20px 0 6px;
}
.doc-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    transform 0.15s ease;
}
@media (hover: hover) {
  .doc-card:hover {
    border-color: var(--line-3);
    background: var(--surface-2);
  }
}
.doc-card-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--brand);
}
.doc-card strong {
  font-size: 15px;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.doc-card-sub {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.doc-links a {
  color: var(--muted) !important;
}
@media (hover: hover) {
  .doc-links a:hover {
    color: var(--text-hi) !important;
  }
}
.doc-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-4);
}
.nav-foot {
  padding: 14px 12px 18px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-4);
}
.nav-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin-bottom: 10px;
}
.nav-foot-links a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.nav-foot-links a.active {
  color: var(--text-hi);
}
@media (hover: hover) {
  .nav-foot-links a:hover {
    color: var(--text-hi);
  }
}
.nav-foot p + p {
  margin-top: 6px;
}
.donate-page {
  max-width: 880px;
  margin: 0 auto;
}
.dn-head h1 {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.dn-head .page-sub {
  max-width: 560px;
  font-size: 14px;
  line-height: 1.6;
}
.dn-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.dn-stats > div {
  flex: 1 1 150px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.dn-stats b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  color: var(--text-hi);
}
.dn-stats b small {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.dn-stats span {
  font-size: 12.5px;
  color: var(--muted);
}
.dn-stats .dn-goal {
  flex-basis: 260px;
}
.dn-stats .dn-goal .dn-extra {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-4);
}
.dn-bar {
  display: block;
  height: 6px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.dn-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dn-card {
  margin-top: 18px;
  padding: 20px 22px 22px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.dn-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
}
.dn-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 12.5px;
  font-weight: 800;
}
.dn-coins {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dn-coin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 8px;
  border-radius: 22px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .dn-coin:hover {
    border-color: var(--line-3);
    color: var(--text-hi);
  }
}
.dn-coin.on {
  border-color: var(--text-hi);
  background: var(--surface-3);
  color: var(--text-hi);
}
.dn-glyph {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-3);
}
.dn-networks {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}
.dn-networks > span {
  margin-right: 4px;
}
.dn-networks[hidden] {
  display: none;
}
.dn-pay {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 18px;
}
.dn-qr {
  flex-shrink: 0;
  width: 164px;
  height: 164px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
}
.dn-qr img {
  display: block;
  width: 100%;
  height: 100%;
}
.dn-addr {
  flex: 1;
  min-width: 0;
}
.dn-warn {
  font-size: 13px;
  color: var(--text-2);
}
.dn-warn b {
  color: var(--text-hi);
}
.dn-addr-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px 8px 8px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}
.dn-addr-box code {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.dn-addr-box .btn-pill {
  flex-shrink: 0;
  padding: 7px 16px;
  font-size: 13px;
}
.dn-note {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
}
.dn-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px 16px;
  align-items: end;
}
.dn-wide {
  grid-column: 1 / -1;
}
.dn-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.dn-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-4);
}
.dn-field input,
.dn-field textarea {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.dn-field input:focus,
.dn-field textarea:focus {
  border-color: var(--line-3);
}
#dnTx {
  font-family: var(--mono);
  font-size: 13px;
}
.dn-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  white-space: nowrap;
}
.dn-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}
.dn-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.dn-actions .btn-sub:disabled {
  opacity: 0.6;
  cursor: progress;
}
.dn-result {
  font-size: 13px;
}
.dn-result.good {
  color: var(--text-hi);
}
.dn-result.bad {
  color: var(--danger);
}
.dn-wall-wrap {
  margin-top: 34px;
}
.dn-wall-wrap h2 {
  margin-bottom: 14px;
  font-size: 18px;
  font-weight: 700;
}
.dn-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.dn-entry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.dn-entry header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dn-entry header strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-hi);
  font-size: 14px;
}
.dn-amount {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 14px;
  font-weight: 800;
  color: var(--text-hi);
  white-space: nowrap;
}
.dn-amount small {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}
.dn-entry p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.dn-entry footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-4);
}
.dn-hide {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
@media (hover: hover) {
  .dn-hide:hover {
    color: var(--danger);
    border-color: var(--danger);
  }
}
.dn-empty {
  grid-column: 1 / -1;
  padding: 26px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-md);
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.donate-page > .doc-disclaimer {
  margin-top: 28px;
}
@media (max-width: 600px) {
  .dn-stats > div {
    flex: 1 1 0;
    min-width: 0;
    padding: 10px 12px;
  }
  .dn-stats .dn-goal {
    flex: 1 1 100%;
  }
  .dn-stats b {
    font-size: 17px;
  }
  .dn-card {
    padding: 16px;
  }
  .dn-pay {
    flex-direction: column;
    align-items: stretch;
  }
  .dn-qr {
    align-self: center;
  }
  .dn-form {
    grid-template-columns: 1fr;
  }
  .dn-check {
    padding-bottom: 0;
  }
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.inline-link {
  color: var(--blue);
  text-decoration: none;
  font-weight: 600;
}
@media (hover: hover) {
  .inline-link:hover {
    text-decoration: underline;
  }
}
.link-btn {
  color: var(--blue);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  padding: 8px 16px;
  border-radius: 20px;
}
@media (hover: hover) {
  .link-btn:hover {
    background: color-mix(in srgb, var(--blue) 20%, transparent);
  }
}
.btn-ghost {
  background: none;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
}
@media (hover: hover) {
  .btn-ghost:hover {
    background: var(--chip);
  }
}
.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.row-head h2 {
  margin-bottom: 0;
}
#wlSeg {
  display: inline-flex;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
#wlSeg .seg-btn {
  flex: none;
  white-space: nowrap;
}
.wl-grid {
  margin-top: 20px;
}
.poster-grid > .empty-state,
.poster-grid > .ep-empty {
  grid-column: 1 / -1;
}
.wl-card {
  position: relative;
}
.wl-card .poster-title {
  display: -webkit-box;
  color: var(--text);
  text-decoration: none;
  min-height: 0;
  padding-right: 4px;
}
.wl-status {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.wl-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}
.wl-prog i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.wl-more {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    transform 0.18s ease;
}
.wl-more:focus-visible,
.wl-more[aria-expanded="true"] {
  opacity: 1;
}
@media (hover: hover) {
  .wl-card:hover .wl-more {
    opacity: 1;
    transform: translateY(-3px);
  }
}
@media (hover: none) {
  .wl-more {
    opacity: 0.9;
  }
}
.wl-score {
  font-weight: 700;
  color: #ffd60a;
}
.wl-fav {
  color: var(--brand);
}
.prog {
  height: 5px;
  background: var(--surface-4);
  border-radius: 4px;
  margin-top: 11px;
  overflow: hidden;
}
.hist-page {
  max-width: 1080px;
}
.hist-day + .hist-day {
  margin-top: 28px;
}
.hist-day h2 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 8px;
}
.hist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hist-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px;
  margin: 0 -8px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}
@media (hover: hover) {
  .hist-row:hover {
    background: var(--tint-1);
  }
}
.hist-thumb {
  position: relative;
  width: 168px;
  flex-shrink: 0;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
  isolation: isolate;
  background: var(--surface-2);
}
.hist-thumb .time {
  position: absolute;
  bottom: 9px;
  right: 6px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.85);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  color: #fff;
}
.hist-thumb .cw-prog {
  z-index: 3;
}
.hist-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.hist-title,
.hist-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-hi);
}
.hist-sub {
  font-size: 13px;
  color: var(--text-2);
}
.hist-when {
  font-size: 12px;
  color: var(--muted);
}
.hist-x {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--muted);
  cursor: pointer;
  opacity: 0;
  transition:
    opacity 0.15s ease,
    background-color 0.15s ease;
}
.hist-x:focus-visible,
.hist-row:focus-visible .hist-x {
  opacity: 1;
}
@media (hover: hover) {
  .hist-row:hover .hist-x {
    opacity: 1;
  }
  .hist-x:hover {
    background: var(--chip);
    color: var(--text-hi);
  }
}
@media (hover: none) {
  .hist-x {
    opacity: 1;
  }
}
@media (max-width: 560px) {
  .hist-row {
    gap: 12px;
  }
  .hist-thumb {
    width: 128px;
  }
  .hist-title {
    font-size: 14px;
  }
  .hist-x {
    width: 30px;
    height: 30px;
    margin-left: -6px;
  }
}
.btn-ghost.confirm {
  border-color: var(--danger);
  color: var(--danger);
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 72px 20px;
  text-align: center;
}
.empty-state > svg {
  box-sizing: content-box;
  padding: 16px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-3);
}
.empty-state h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-hi);
}
.empty-state p {
  max-width: 340px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.empty-state .btn-pill {
  margin-top: 10px;
  text-decoration: none;
}
.mini-rail {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px 14px;
}
@media (max-width: 1100px) {
  .mini-rail {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .page-wrap {
    padding: 20px;
  }
  .mini-rail {
    grid-template-columns: repeat(3, 1fr);
  }
  .user-page.page-wrap {
    padding: 20px 20px 60px;
  }
}
.page-wrap.wide {
  max-width: none;
}
.seg {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 4px;
  gap: 4px;
}
.seg-btn {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 18px;
  cursor: pointer;
}
.seg-btn.on {
  background: var(--inverse);
  color: var(--on-inverse);
}
.seg-n {
  font-size: 11px;
  font-weight: 800;
  opacity: 0.55;
  margin-left: 3px;
  font-variant-numeric: tabular-nums;
}
.trend-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trend-row {
  position: relative;
  display: grid;
  grid-template-columns: 58px 58px minmax(0, 1fr) 170px;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 18px 10px 10px;
  text-decoration: none;
  color: var(--text);
  overflow: hidden;
  isolation: isolate;
}
@media (hover: hover) {
  .trend-row:hover {
    border-color: var(--line-2);
  }
}
.trend-row.podium {
  padding-top: 14px;
  padding-bottom: 14px;
}
.trend-row.podium::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--panel) 30%, color-mix(in srgb, var(--panel) 82%, transparent)),
    var(--bn, none) center/cover;
  opacity: 0.9;
}
.tr-rank {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.tr-rank b {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.podium .tr-rank b {
  color: var(--text);
  font-size: 28px;
}
.trend-row:first-child .tr-rank b {
  color: var(--accent);
}
.mv {
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.2px;
}
.mv.up {
  color: var(--ok);
  background: rgba(126, 226, 92, 0.1);
}
.mv.down {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 10%, transparent);
}
.mv.new {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}
.mv.flat {
  color: var(--muted);
}
.tr-cover {
  width: 58px;
  aspect-ratio: 3/4.2;
  border-radius: 7px;
  background: var(--surface-2) center/cover;
}
.tr-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.tr-title {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-meta {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tr-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.tr-tags i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--text-3);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  padding: 2px 7px;
  border-radius: 5px;
}
.tr-air {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--blue);
  border-left: 2px solid var(--blue);
  padding: 1px 7px;
  margin-left: 3px;
}
.tr-air.done {
  color: var(--muted);
  border-left-color: var(--line-2);
}
.tr-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.tr-score {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--score);
}
.tr-heat {
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
}
.tr-heat span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 40%, var(--bg)), var(--accent-hi));
}
.tr-heat-n {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .trend-row {
    grid-template-columns: 40px 48px minmax(0, 1fr);
    gap: 12px;
  }
  .tr-cover {
    width: 48px;
  }
  .tr-stats {
    display: none;
  }
}
.wk-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.wk-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
}
@media (hover: hover) {
  .wk-btn:hover {
    border-color: var(--line-2);
  }
}
.wk-label {
  min-width: 130px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wk-now {
  background: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
  margin-left: 4px;
}
.day-bar {
  display: grid;
  grid-template-columns: repeat(7, minmax(78px, 1fr));
  gap: 8px;
  margin-bottom: 22px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.day-bar::-webkit-scrollbar {
  display: none;
}
.day-btn {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 10px 8px;
  border-radius: 11px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}
.day-btn b {
  font-size: 22px;
  color: var(--text);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.day-btn span {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}
@media (hover: hover) {
  .day-btn:hover {
    border-color: var(--line-2);
  }
}
.day-btn.today::after {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.day-btn.on {
  background: var(--inverse);
  border-color: var(--inverse);
  color: var(--text-4);
}
.day-btn.on b {
  color: var(--on-inverse);
}
.sched-list {
  display: flex;
  flex-direction: column;
}
.sched-slot {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.sched-slot:first-child {
  border-top: 0;
}
.slot-time {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 4px;
}
.slot-time strong {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.slot-time span {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
}
.sched-slot.aired .slot-time strong {
  color: var(--muted);
}
.sched-slot.aired .slot-time span {
  color: var(--text-4);
}
.sched-slot.aired .sched-card {
  opacity: 0.6;
}
@media (hover: hover) {
  .sched-slot.aired .sched-card:hover {
    opacity: 1;
  }
}
.sched-slot.next .slot-time strong {
  color: var(--accent-hi);
}
.sched-slot.next .slot-time span {
  color: var(--accent-hi);
}
.slot-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
}
.sched-card {
  display: flex;
  align-items: center;
  gap: 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 9px;
  text-decoration: none;
  color: var(--text);
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease;
}
@media (hover: hover) {
  .sched-card:hover {
    border-color: var(--line-2);
  }
}
.sched-thumb {
  width: 48px;
  min-width: 48px;
  aspect-ratio: 3/4.2;
  border-radius: 6px;
  background: var(--surface-2) center/cover;
}
.sched-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.sched-title {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-ep {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
}
.sched-ep i {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}
.sched-ep em {
  margin-left: 7px;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
  padding: 1px 6px;
  border-radius: 4px;
}
.sched-sub {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sched-empty {
  color: var(--muted);
  font-size: 13px;
  padding: 40px 0;
  text-align: center;
}
.sched-empty a {
  color: var(--blue);
}
@media (max-width: 700px) {
  .sched-slot {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .slot-time {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
  }
  .wk-label {
    min-width: 0;
  }
}
.browse {
  padding: 20px 26px 60px;
}
.f-select {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 11px 13px;
  font-size: 13px;
  cursor: pointer;
  min-width: 0;
  user-select: none;
}
@media (hover: hover) {
  .f-select:hover {
    border-color: var(--line-2);
  }
}
.f-select.has-sel {
  border-color: var(--line-3);
}
.f-select [data-ph] {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-2);
}
.f-chev {
  color: var(--text-2);
  font-size: 15px;
  padding: 0 2px;
  cursor: pointer;
}
.f-drop {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  z-index: 40;
  max-height: 240px;
  overflow-y: auto;
  padding: 6px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
}
.f-drop[hidden] {
  display: none;
}
.f-opt {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 13px;
  padding: 9px 11px;
  border-radius: 8px;
  cursor: pointer;
}
@media (hover: hover) {
  .f-opt:hover {
    background: var(--surface-3);
    color: var(--text-hi);
  }
}
.f-opt.on {
  background: var(--surface-3);
  color: var(--text-hi);
  box-shadow: inset 2px 0 0 var(--accent);
}
@media (max-width: 700px) {
  .browse {
    padding: 14px;
  }
}
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 26px;
  padding: 24px 48px 60px;
  align-items: start;
}
.player {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  outline: 1px solid #2a2a31;
}
.watch-title {
  font-size: 19px;
  font-weight: 700;
  margin: 16px 0 12px;
  line-height: 1.4;
}
.watch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.w-anime {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text);
}
.w-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  color: var(--text-hi);
}
.w-name {
  font-size: 15px;
  font-weight: 700;
  display: block;
}
.btn-sub.light {
  background: var(--inverse);
  color: var(--on-inverse);
  border: 0;
  font-weight: 700;
  font-size: 13.5px;
  padding: 9px 18px;
  border-radius: 20px;
  cursor: pointer;
}
.btn-sub.light.on {
  background: var(--line-2);
  color: var(--text-hi);
}
.w-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-wrap: wrap;
}

.w-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--chip);
  color: var(--text-hi);
  border: 0;
  font-size: 13px;
  font-weight: 600;
  padding: 9px 15px;
  border-radius: 20px;
  cursor: pointer;
}
@media (hover: hover) {
  .w-pill:hover {
    background: var(--surface-4);
  }
}
.w-pill.sm {
  padding: 7px 13px;
  font-size: 12.5px;
}
.w-pill.on {
  color: var(--blue);
}
.dd-wrap {
  position: relative;
}
.dd {
  position: absolute;
  top: 46px;
  right: 0;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  min-width: 210px;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  padding: 8px;
}
.dd.wide {
  min-width: 220px;
}
.desc-box {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 15px 17px;
  margin-top: 16px;
}
.desc-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  flex-wrap: wrap;
}
.desc-line span + span::before {
  content: "·";
  margin-right: 8px;
  color: var(--line-3);
}
.desc-score {
  color: var(--score);
}
.desc-box p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--text-2);
  margin-top: 9px;
}
.facts {
  display: flex;
  gap: 16px;
  margin: 14px 0;
}
.poster-sm {
  width: 96px;
  min-width: 96px;
  aspect-ratio: 3/4;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.35);
}
.fact-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.fact span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}
.fact strong {
  font-size: 13.5px;
}
.desc-more.shut {
  display: none;
}
.desc-box:not(.open) .desc-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.desc-about {
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.desc-about[hidden] {
  display: none;
}
.desc-about h3 {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-hi);
}
.desc-about p {
  margin-top: 6px;
}
.desc-more .tag-row {
  margin-top: 14px;
}
.show-toggle {
  background: none;
  border: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: block;
  margin: 12px 0 0 auto;
}
.watch-side {
  align-self: stretch;
  contain: size;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  overflow: hidden;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  flex-shrink: 0;
}
.side-head h2 {
  font-size: 16px;
}
.side-search {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 8px 14px;
  color: var(--muted);
  margin-bottom: 10px;
  flex-shrink: 0;
}
.side-search input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  color: var(--text);
  font-size: 13px;
}
.side-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
@media (hover: hover) {
  .side-list:hover {
    scrollbar-color: var(--line-3) transparent;
  }
}
.side-next {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.side-next[hidden] {
  display: none;
}
.sn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--tint-1);
  color: var(--blue);
  flex-shrink: 0;
}
.sn-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.sn-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-hi);
}
.sn-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sn-sub b {
  color: var(--blue);
  font-weight: 700;
}
.side-ep {
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  gap: 14px;
  text-decoration: none;
  color: var(--text);
  padding: 10px;
  border-radius: 12px;
}
@media (hover: hover) {
  .side-ep:hover {
    background: var(--chip);
  }
}
.side-ep.cur {
  background: var(--chip);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.side-num {
  flex-shrink: 0;
  min-width: 34px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.side-thumb {
  position: relative;
  width: 176px;
  min-width: 176px;
  aspect-ratio: 16/9;
  border-radius: 8px;
  overflow: hidden;
}
.side-thumb.blank {
  background: color-mix(in srgb, var(--accent) 28%, var(--surface-2));
}
.side-thumb .side-num {
  position: absolute;
  left: 6px;
  bottom: 6px;
  min-width: 0;
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.74);
  color: #fff;
  font-size: 11.5px;
}
.side-ep.cur .side-thumb .side-num {
  background: var(--inverse);
  color: var(--on-inverse);
}
.side-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.side-t {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.side-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 8px;
}
.side-when {
  font-size: 11.5px;
  color: var(--muted);
}
.side-d {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  overflow-wrap: anywhere;
}
:root {
  --filler: var(--accent);
}
.side-tag {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.5;
}
.side-tag.filler {
  background: var(--filler);
  color: #fff;
}
.side-tag.mixed {
  color: var(--filler);
  box-shadow: inset 0 0 0 1.5px var(--filler);
}
.side-ep.is-filler {
  background: color-mix(in srgb, var(--filler) 7%, transparent);
}
.side-ep.is-filler .side-thumb .side-num {
  background: var(--filler);
  color: #fff;
}
.side-ep.cur.is-filler {
  background: var(--chip);
}
@media (hover: hover) {
  .side-ep.is-filler:hover {
    background: color-mix(in srgb, var(--filler) 14%, transparent);
  }
}
@media (max-width: 520px) {
  .side-thumb {
    width: 136px;
    min-width: 136px;
  }
}
.side-tools {
  display: flex;
  gap: 8px;
}
.side-tool {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 0;
  background: var(--tint-1);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease,
    transform 0.1s ease;
}
@media (hover: hover) {
  .side-tool:hover {
    background: var(--tint-2);
    color: var(--text-hi);
  }
}
.side-tool:active {
  transform: scale(0.94);
}
.side-tool svg {
  display: block;
}
.side-range {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px 0 12px;
  border: 0;
  border-radius: 8px;
  background: var(--tint-1);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
.side-range svg {
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.side-range[aria-expanded="true"] {
  background: var(--tint-2);
  color: var(--text-hi);
}
.side-range[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
@media (hover: hover) {
  .side-range:hover {
    background: var(--tint-2);
    color: var(--text-hi);
  }
}
@media (min-width: 701px) {
  .dd.side-range-dd {
    top: 40px;
    min-width: 150px;
  }
  .dd.side-range-dd.up {
    bottom: 40px;
  }
}
.side-range-dd .dd-item {
  padding: 8px 34px 8px 12px;
  font-variant-numeric: tabular-nums;
}
.side-list.compact {
  gap: 0;
  border-radius: 10px;
  overflow-y: auto;
}
.side-list.compact .side-ep {
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  min-height: 44px;
  border-radius: 0;
  font-size: 13px;
  color: var(--text-2);
}
.side-list.compact .side-ep:nth-child(even) {
  background: var(--tint-1);
}
@media (hover: hover) {
  .side-list.compact .side-ep:hover {
    background: var(--tint-2);
    color: var(--text-hi);
  }
}
.side-list.compact .side-ep.cur {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  outline: 0;
  box-shadow: inset 3px 0 0 var(--accent);
  color: var(--text-hi);
}
.side-list.compact .side-num {
  width: auto;
  min-width: 0;
  flex-shrink: 0;
  text-align: left;
  color: inherit;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.side-list.compact .side-t {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 500;
  font-size: 13px;
  color: inherit;
}
.side-list.compact .side-ep.is-filler .side-num {
  color: var(--filler);
}
:root {
  --topbar-base: 56px;
  --topbar-h: calc(var(--topbar-base) + env(safe-area-inset-top, 0px));
  --nav-dur: 0.28s;
  --nav-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
}
.sidebar {
  overscroll-behavior: contain;
  will-change: transform;
}
body.nav-overlay .sidebar {
  transform: translateX(-100%);
  visibility: hidden;
}
body.nav-overlay .sidebar,
body.nav-open .sidebar {
  z-index: 60;
  border-right: 1px solid var(--line);
}
body.nav-open .sidebar {
  transform: none;
  visibility: visible;
  box-shadow: 28px 0 60px rgba(0, 0, 0, 0.55);
}
body.nav-ready .sidebar {
  transition:
    transform var(--nav-dur) var(--nav-ease),
    box-shadow var(--nav-dur) ease,
    visibility 0s linear var(--nav-dur);
}
body.nav-ready.nav-open .sidebar {
  transition:
    transform var(--nav-dur) var(--nav-ease),
    box-shadow var(--nav-dur) ease,
    visibility 0s;
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    visibility: hidden;
    z-index: 60;
    border-right: 1px solid var(--line);
  }
  body.nav-open .sidebar {
    transform: none;
    visibility: visible;
  }
}
.nav-scrim {
  position: fixed;
  inset: var(--topbar-h) 0 0;
  z-index: 55;
  background: rgba(6, 6, 8, 0.55);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--nav-dur) ease,
    visibility 0s linear var(--nav-dur);
}
body.nav-open .nav-scrim {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--nav-dur) ease,
    visibility 0s;
}
.menu-btn svg line {
  transition:
    transform var(--nav-dur) var(--nav-ease),
    opacity 0.18s ease;
  transform-origin: center;
  transform-box: fill-box;
}
.menu-btn[aria-expanded="true"] svg line:nth-child(2) {
  transform: scaleX(0.6) translateX(-20%);
}
.menu-btn:active {
  transform: scale(0.92);
}
@media (prefers-reduced-motion: reduce) {
  .sidebar,
  .nav-scrim,
  .menu-btn svg line {
    transition: none !important;
  }
}
.poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 26px 16px;
}
.poster-card {
  text-decoration: none;
  color: var(--text);
  min-width: 0;
}
.poster-img {
  position: relative;
  aspect-ratio: 3/4.2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  background: var(--surface-2);
  transform: translateZ(0);
  backface-visibility: hidden;
  isolation: isolate;
  will-change: transform;
  box-shadow: 0 0 0 1px transparent;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
@media (hover: hover) {
  .poster-card:hover .poster-img {
    transform: translate3d(0, -3px, 0);
    box-shadow:
      0 0 0 1px var(--line-2),
      0 10px 22px rgba(0, 0, 0, 0.35);
  }
}
.poster-img {
  background-size: cover;
  background-position: center;
}
.poster-title {
  display: -webkit-box;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 10px;
  line-height: 1.4;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  min-height: 38px;
}
.pc-ep {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.3px;
  padding: 4px 9px 4px 8px;
  border-bottom-right-radius: 9px;
}
.pc-ep i {
  font-style: normal;
  font-weight: 600;
  opacity: 0.7;
}
.pc-score {
  position: absolute;
  top: 7px;
  right: 7px;
  background: rgba(10, 10, 12, 0.72);
  color: #ffd60a;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 6px;
  transition: opacity 0.15s ease;
}
.pc-line {
  display: block;
  font-size: 11.5px;
  color: var(--text-3);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-dim {
  color: var(--muted);
}
.pc-next {
  display: inline-block;
  max-width: 100%;
  margin-top: 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--blue);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
  border-left: 2px solid var(--blue);
  padding: 3px 7px;
  border-radius: 0 5px 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pc-next b {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.pc-soon {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
  border-left-color: var(--warn);
}
.pc-done {
  color: var(--muted);
  background: var(--surface-2);
  border-left-color: var(--line-2);
}
.home-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 26px 16px;
}
.home-more {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  padding: 26px;
}
@media (max-width: 1100px) {
  .watch-layout {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px 20px;
  }
  .watch-side {
    contain: none;
    min-height: 0;
  }
  .side-list {
    max-height: 60vh;
  }
}
.qs-wrap {
  position: relative;
}
.qs-wrap input {
  padding-right: 44px;
}
.qs-clear,
.qs-kbd {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}
.qs-clear {
  right: 74px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}
@media (hover: hover) {
  .qs-clear:hover {
    color: var(--text);
  }
}
.qs-kbd {
  right: 76px;
  font:
    600 11px/1 ui-monospace,
    Consolas,
    monospace;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 3px 6px;
  pointer-events: none;
}
.qs-clear:not([hidden]) + .qs-kbd,
.qs-wrap.open .qs-kbd {
  display: none;
}
.qs-wrap.open input {
  border-color: var(--line-3);
}
@media (max-width: 700px) {
  .topbar {
    padding: 0 10px;
    gap: 8px;
  }
  .topbar-center {
    min-width: 0;
    flex: 1;
  }
  .search-wrap {
    min-width: 0;
    width: 100%;
  }
  .search-btn {
    padding: 0 14px;
  }
  .qs-wrap input {
    padding-left: 14px;
  }
  .topbar-left {
    gap: 6px;
  }
  .logo-img {
    width: 111px;
    height: 20px;
  }
  .topbar-right {
    gap: 6px;
  }
}
.nav-logo {
  display: none;
}
@media (max-width: 480px) {
  .logo {
    display: none;
  }
  .nav-logo {
    display: block;
    padding: 6px 12px 14px;
    margin-bottom: 6px;
    border-bottom: 1px solid var(--line);
  }
  .nav-logo .logo-img {
    width: 133px;
    height: 24px;
  }
}
.qs-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 400px;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
  z-index: 120;
  overflow: hidden;
  animation: pop 0.14s ease;
  transform-origin: top center;
}
.qs-body {
  max-height: min(66vh, 560px);
  overflow-y: auto;
  padding: 6px;
}
.qs-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.qs-link {
  background: none;
  border: 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  text-decoration: none;
}
.qs-hint {
  padding: 16px 12px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.qs-row,
.qs-recent,
.qs-all {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
}
.qs-row[aria-selected="true"],
.qs-recent[aria-selected="true"],
.qs-all[aria-selected="true"],
.qs-jump a[aria-selected="true"] {
  background: var(--surface-3);
}
.qs-row[aria-selected="true"] {
  box-shadow: inset 2px 0 0 var(--accent);
}
.qs-cv {
  width: 40px;
  min-width: 40px;
  aspect-ratio: 3/4.2;
  border-radius: 6px;
  background: var(--c, var(--surface-2)) center/cover;
}
.qs-tx {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.qs-t {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-t mark {
  background: none;
  color: var(--accent-hi);
}
.qs-alt {
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-meta {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.qs-st {
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
}
.qs-st.live {
  color: var(--ok);
}
.qs-st.soon {
  color: var(--warn);
}
.qs-sc {
  font-size: 12px;
  font-weight: 800;
  color: var(--score);
  white-space: nowrap;
}
.qs-skel .qs-cv,
.qs-skel i {
  background: var(--surface-2);
  animation: skel 1.1s ease-in-out infinite alternate;
}
.qs-skel i {
  display: block;
  height: 10px;
  border-radius: 4px;
  width: 70%;
}
.qs-skel i + i {
  width: 40%;
  margin-top: 6px;
}
.qs-recent {
  font-size: 13px;
}
.qs-ico {
  color: var(--muted);
  width: 18px;
  text-align: center;
}
.qs-rt {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.qs-x {
  background: none;
  border: 0;
  color: var(--text-4);
  cursor: pointer;
  font-size: 11px;
  padding: 4px 6px;
  border-radius: 5px;
}
@media (hover: hover) {
  .qs-x:hover {
    color: var(--text);
    background: var(--surface-4);
  }
}
.qs-jump {
  display: flex;
  gap: 6px;
  padding: 8px 6px 4px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.qs-jump a {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.qs-all {
  position: sticky;
  bottom: -6px;
  background: var(--surface-1);
  justify-content: space-between;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue);
}
.qs-all span {
  color: var(--muted);
  font-weight: 600;
}
.qs-foot {
  display: flex;
  gap: 14px;
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
}
.qs-foot kbd,
.qs-kbd {
  font-family: var(--mono);
}
.qs-foot kbd {
  font-size: 10px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 1px 5px;
  margin-right: 3px;
  color: var(--text-3);
}
@keyframes skel {
  from {
    opacity: 0.45;
  }
  to {
    opacity: 1;
  }
}
@media (max-width: 700px) {
  .qs-panel {
    position: fixed;
    top: 58px;
    left: 8px;
    right: 8px;
    min-width: 0;
  }
  .qs-foot,
  .qs-kbd {
    display: none;
  }
}
.browse-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.browse-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.f-drop {
  max-height: 320px;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.f-find {
  margin: 6px 6px 0;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  color: var(--text);
  padding: 8px 10px;
  font-size: 12.5px;
  outline: none;
}
.f-find:focus {
  border-color: var(--line-3);
}
.f-list {
  overflow-y: auto;
  padding: 6px;
}
.f-group {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-4);
  padding: 10px 11px 4px;
}
.f-none {
  font-size: 12.5px;
  color: var(--muted);
  padding: 10px 11px;
}
.active-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 4px;
  min-height: 4px;
}
.a-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px 6px 12px;
  border-radius: 20px;
  cursor: pointer;
}
.a-chip span {
  color: var(--muted);
  font-size: 10px;
}
@media (hover: hover) {
  .a-chip:hover {
    border-color: var(--accent);
  }
}
@media (hover: hover) {
  .a-chip:hover span {
    color: var(--accent-hi);
  }
}
.a-reset {
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .a-reset:hover {
    color: var(--text);
  }
}
.browse .poster-grid {
  margin-top: 16px;
}
.poster-card.skel .poster-img {
  animation: skel 1.1s ease-in-out infinite alternate;
}
.sk-line {
  display: block;
  height: 11px;
  border-radius: 4px;
  background: var(--surface-2);
  margin-top: 10px;
  width: 85%;
  animation: skel 1.1s ease-in-out infinite alternate;
}
.sk-line.short {
  width: 50%;
  margin-top: 7px;
}
.browse-empty {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.browse-empty strong {
  color: var(--text);
  font-size: 15px;
}
.browse-empty a,
.browse-more a {
  color: var(--blue);
}
.browse-more {
  display: flex;
  justify-content: center;
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
  min-height: 20px;
}
.more-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
}
.more-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line-3);
  animation: skel 0.6s ease-in-out infinite alternate;
}
.more-dots i:nth-child(2) {
  animation-delay: 0.2s;
}
.more-dots i:nth-child(3) {
  animation-delay: 0.4s;
}
.badge[hidden] {
  display: none;
}
.badge {
  min-width: 18px;
  text-align: center;
  line-height: 13px;
  font-variant-numeric: tabular-nums;
}
.badge.bump {
  animation: bump 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes bump {
  0% {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.18);
  }
  100% {
    transform: none;
  }
}
.bell.on {
  background: var(--chip);
}
.notif-dd.nt-panel {
  width: 372px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: min(76vh, 600px);
  background: var(--surface-1);
  border-color: var(--line-2);
  border-radius: 16px;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--tint-1) inset;
  animation: ntIn 0.2s var(--nav-ease, ease);
  transform-origin: top right;
}
.notif-dd[hidden],
.notif-dd.nt-panel[hidden] {
  display: none;
}
@keyframes ntIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.nt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 4px 16px;
}
.nt-head strong {
  font-size: 15px;
  letter-spacing: -0.1px;
}
.nt-head-acts {
  display: flex;
  gap: 2px;
}
.nt-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .nt-icon:hover:not(:disabled) {
    background: var(--surface-3);
    color: var(--text);
  }
}
.nt-icon:disabled {
  color: var(--line-3);
  cursor: default;
}
.nt-icon.spin svg {
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.nt-tabs {
  display: flex;
  gap: 18px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}
.nt-tab {
  position: relative;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease;
}
@media (hover: hover) {
  .nt-tab:hover {
    color: var(--text-2);
  }
}
.nt-tab.on {
  color: var(--text);
}
.nt-tab.on::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}
.nt-tab b {
  font-size: 10.5px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 1px 6px;
  border-radius: 9px;
  line-height: 14px;
}
.nt-list {
  overflow-y: auto;
  padding: 4px 6px 8px;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.nt-group {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-4);
  padding: 12px 10px 6px;
}
.nt-item {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 12px;
  transition: background-color 0.15s ease;
}
@media (hover: hover) {
  .nt-item:hover {
    background: var(--surface-2);
  }
}
.nt-main {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px 4px 8px 10px;
  text-decoration: none;
  color: var(--text);
}
.nt-cv {
  position: relative;
  width: 44px;
  min-width: 44px;
  height: 60px;
  border-radius: 7px;
  background: var(--c) center/cover;
  overflow: hidden;
}
.nt-cv b {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  padding: 9px 0 3px;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
  letter-spacing: 0.2px;
}
.nt-tx {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.nt-t {
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nt-sub {
  font-size: 12.5px;
  color: var(--text-3);
}
.nt-time {
  font-size: 11.5px;
  color: var(--text-4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nt-time em {
  font-style: normal;
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--warn);
  border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent);
  padding: 0 5px;
  border-radius: 4px;
}
.nt-item:not(.unread) .nt-t {
  font-weight: 600;
  color: var(--text-3);
}
.nt-item:not(.unread) .nt-sub {
  color: var(--muted);
}
.nt-item:not(.unread) .nt-cv {
  filter: saturate(0.55) brightness(0.8);
}
.nt-side {
  position: relative;
  width: 60px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
}
.nt-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
  transition: opacity 0.15s ease;
}
.nt-item:not(.unread) .nt-dot {
  opacity: 0;
}
.nt-acts {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  gap: 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}
.nt-item:focus-within .nt-acts {
  opacity: 1;
  pointer-events: auto;
}
@media (hover: hover) {
  .nt-item:hover .nt-acts {
    opacity: 1;
    pointer-events: auto;
  }
}
.nt-item:focus-within .nt-dot {
  opacity: 0;
}
@media (hover: hover) {
  .nt-item:hover .nt-dot {
    opacity: 0;
  }
}
.nt-act {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: var(--surface-4);
  border: 0;
  color: var(--text-3);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (hover: hover) {
  .nt-act:hover {
    background: var(--line-2);
    color: var(--text-hi);
  }
}
.nt-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  padding: 36px 28px 32px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.55;
}
.nt-empty strong {
  color: var(--text);
  font-size: 14px;
  margin-top: 4px;
}
.nt-empty-ico {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-4);
  margin-bottom: 4px;
}
.nt-cta {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  padding: 7px 14px;
  border-radius: 18px;
  border: 1px solid var(--line-2);
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
@media (hover: hover) {
  .nt-cta:hover {
    border-color: var(--line-3);
    background: var(--surface-2);
  }
}
.nt-ask {
  display: flex;
  gap: 12px;
  margin: 8px 10px 4px;
  padding: 12px;
  border-radius: 12px;
  background: var(--tint-1);
}
.nt-ask-ico {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}
.nt-ask-ico svg {
  width: 17px;
  height: 17px;
}
.nt-ask b {
  display: block;
  font-size: 13.5px;
  color: var(--text-hi);
}
.nt-ask p {
  margin: 3px 0 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.nt-ios {
  margin: 8px 10px 4px;
  padding: 12px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}
.nt-ios-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.nt-ios-head b {
  font-size: 13.5px;
  color: var(--text-hi);
}
.nt-ios-ok {
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) {
  .nt-ios-ok:hover {
    color: var(--text-hi);
  }
}
.nt-steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.nt-steps li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--text-3);
  counter-increment: step;
}
.nt-steps li::before {
  content: counter(step);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--surface-4);
  color: var(--text-hi);
  font-size: 11px;
  font-weight: 700;
}
.nt-steps li > span {
  padding-top: 1px;
}
.nt-steps b {
  font-weight: 700;
  color: var(--text-hi);
}
.nt-share {
  display: inline-flex;
  margin: 0 2px;
  vertical-align: -3px;
  padding: 2px 4px;
  border-radius: 5px;
  background: var(--surface-4);
  color: var(--text-hi);
}
.nt-ask-acts {
  display: flex;
  gap: 8px;
}
.nt-ask-acts button {
  padding: 7px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.nt-ask-acts .nt-ask-yes {
  background: var(--inverse);
  color: var(--on-inverse);
}
.nt-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 10px 16px;
  border-top: 1px solid var(--line);
}
.nt-foot-acts {
  display: flex;
  gap: 2px;
}
.nt-link {
  background: none;
  border: 0;
  color: var(--text-3);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 9px;
  border-radius: 7px;
}
@media (hover: hover) {
  .nt-link:hover {
    background: var(--surface-3);
    color: var(--text-hi);
  }
}
.nt-link.dim {
  color: var(--muted);
}
.nt-switch {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--text-3);
  cursor: pointer;
  user-select: none;
}
.nt-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nt-switch span {
  position: relative;
  width: 30px;
  height: 17px;
  border-radius: 10px;
  background: var(--surface-4);
  transition: background-color 0.2s ease;
}
.nt-switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--muted);
  transition:
    transform 0.2s var(--nav-ease, ease),
    background-color 0.2s ease;
}
.nt-switch input:checked + span {
  background: var(--accent);
}
.nt-switch input:checked + span::after {
  transform: translateX(13px);
  background: var(--inverse-hi);
}
.nt-switch input:focus-visible + span {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
:root {
  --discord: #5865f2;
  --discord-hover: #4752c4;
}
.dc-card {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 220;
  width: 340px;
  box-sizing: border-box;
  padding: 18px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
  color: var(--text);
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transform-origin: 100% 100%;
  transition:
    opacity 0.3s ease,
    transform 0.42s cubic-bezier(0.2, 0.9, 0.25, 1);
}
.dc-card.on {
  opacity: 1;
  transform: none;
}
.dc-card.calm {
  transform: none;
  transition: opacity 0.15s ease;
}
[data-theme="paper"] .dc-card {
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}
.bk-wrap {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.66);
  animation: bkFade 0.18s ease-out;
}
.bk-card {
  width: 100%;
  max-width: 400px;
  filter: drop-shadow(0 26px 44px rgba(0, 0, 0, 0.5));
  animation: bkIn 0.28s var(--ease-out) both;
}
.bk-box {
  box-sizing: border-box;
  overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  color: var(--text);
  text-align: left;
}
.bk-main {
  padding: 26px 24px 22px;
}
.bk-main > * {
  animation: bkRise 0.34s var(--ease-out) both;
}
.bk-main > :nth-child(2) { animation-delay: 50ms; }
.bk-main > :nth-child(3) { animation-delay: 90ms; }
.bk-main > :nth-child(4) { animation-delay: 130ms; }
.bk-tag {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.bk-h {
  margin: 0 0 10px;
  font-size: 23px;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.bk-t {
  margin: 0 0 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.bk-go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 50px;
  padding: 0 18px;
  box-sizing: border-box;
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease-out, background-color 0.16s ease-out;
}
.bk-go:active {
  transform: scale(0.98);
}
.bk-go:focus-visible {
  outline: 2px solid var(--text-hi);
  outline-offset: 3px;
}
.bk-go svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: bkNudge 1.7s ease-in-out infinite;
}
.bk-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 46px;
  padding: 0 24px;
  box-sizing: border-box;
  border-top: 1px solid var(--line-2);
  font-size: 12px;
  color: var(--text-3);
}
@media (hover: hover) {
  .bk-go:hover {
    background: var(--accent-hi);
  }
}
@keyframes bkFade {
  from { opacity: 0; }
}
@keyframes bkIn {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
}
@keyframes bkRise {
  from { opacity: 0; transform: translateY(6px); }
}
@keyframes bkNudge {
  50% { transform: translateX(4px); }
}
@media (max-width: 520px) {
  .bk-main {
    padding: 22px 20px 20px;
  }
  .bk-foot {
    padding: 0 20px;
  }
  .bk-h {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .bk-card,
  .bk-main > *,
  .bk-go svg {
    animation: none;
  }
}
.dc-top {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-right: 30px;
}
.dc-ico {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--discord);
  color: #fff;
}
.dc-t {
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-hi);
}
.dc-p {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-3);
}
.dc-join {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  margin-top: 16px;
  border-radius: 10px;
  background: var(--discord);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.dc-never {
  display: block;
  margin: 12px auto 0;
  padding: 2px 4px;
  border: 0;
  background: none;
  color: var(--text-4);
  font-size: 12px;
  cursor: pointer;
}
.dc-x {
  position: absolute;
  top: 14px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-4);
  cursor: pointer;
}
@media (hover: hover) {
  .dc-join:hover {
    background: var(--discord-hover);
  }
  .dc-x:hover {
    background: var(--chip);
    color: var(--text-hi);
  }
  .dc-never:hover {
    color: var(--text-2);
    text-decoration: underline;
  }
}
.dc-join:focus-visible,
.dc-never:focus-visible,
.dc-x:focus-visible {
  outline: 2px solid var(--discord);
  outline-offset: 2px;
}
@media (pointer: coarse) {
  .dc-x {
    top: 10px;
    right: 8px;
    width: 40px;
    height: 40px;
  }
  .dc-never {
    padding: 8px 6px 2px;
  }
}
@media (max-width: 520px) {
  .dc-card {
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    padding: 16px;
  }
}
.al-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 290;
  max-width: min(520px, calc(100vw - 32px));
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
  padding: 11px 16px;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s var(--nav-ease, ease);
}
.al-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.al-toast[data-kind="error"] {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
}
.al-toast b {
  font-weight: 700;
}
.al-toast.has-act {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 8px;
}
.al-toast.has-act.show {
  pointer-events: auto;
}
.al-toast-act {
  flex-shrink: 0;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--tint-1);
  color: var(--text-hi);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
  .al-toast-act:hover {
    background: var(--tint-2);
  }
}
.st-sync-bad {
  color: var(--danger) !important;
}
.al-toast code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--surface-4);
  padding: 1px 5px;
  border-radius: 4px;
}
.subs-section[hidden] {
  display: none;
}
.subs-section {
  animation: fade 0.25s ease;
}
.sub-cv {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}
.sub-name {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sub-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
  animation: dotIn 0.35s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.sub-item.has-new .sub-name {
  font-weight: 700;
}
@keyframes dotIn {
  from {
    transform: scale(0);
  }
  to {
    transform: none;
  }
}
.btn-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.btn-sub:disabled {
  cursor: progress;
}
.btn-sub.pop svg {
  animation: ring 0.6s ease;
}
@keyframes ring {
  0%,
  100% {
    transform: none;
  }
  20% {
    transform: rotate(16deg);
  }
  40% {
    transform: rotate(-14deg);
  }
  60% {
    transform: rotate(9deg);
  }
  80% {
    transform: rotate(-5deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .badge.bump,
  .btn-sub.pop svg,
  .sub-dot,
  .nt-icon.spin {
    animation: none;
  }
}
.w-pill {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 8px 14px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
@media (hover: hover) {
  .w-pill:hover {
    background: var(--surface-3);
    border-color: var(--line-2);
  }
}
.w-pill[aria-expanded="true"] {
  background: var(--surface-3);
  border-color: var(--line-3);
}
.w-pill svg {
  opacity: 0.85;
}
.w-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px 7px 8px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.w-switch[hidden] {
  display: none;
}
.w-switch i {
  position: relative;
  flex: none;
  width: 28px;
  height: 16px;
  border-radius: 8px;
  background: var(--line-3);
  transition: background-color 0.15s ease;
}
.w-switch i::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-hi);
  transition: transform 0.15s ease;
}
.w-switch[aria-checked="true"] {
  color: var(--text-hi);
}
.w-switch[aria-checked="true"] i {
  background: var(--accent);
}
.w-switch[aria-checked="true"] i::after {
  transform: translateX(12px);
}
.w-switch:disabled {
  opacity: 0.45;
  cursor: default;
}
@media (hover: hover) {
  .w-switch:not(:disabled):hover {
    background: var(--surface-3);
    border-color: var(--line-2);
  }
}
.w-seg {
  display: inline-flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
}
.w-seg button {
  border: 0;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 16px;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .w-seg button:not(.on):not(:disabled):hover {
    color: var(--text-hi);
  }
}
.w-seg button.on {
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  color: var(--accent-hi);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent);
}
.w-seg button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.dd {
  top: 44px;
  border-color: var(--line-2);
  border-radius: 14px;
  padding: 6px;
  animation: ntIn 0.18s cubic-bezier(0.22, 0.8, 0.24, 1);
  transform-origin: top right;
}
.w-sub {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.w-sub.on {
  background: var(--surface-4);
  color: var(--text-hi);
}
.w-sub.on svg {
  color: var(--accent-hi);
}
.w-sub:disabled {
  cursor: progress;
}
#saveBtn.on {
  background: var(--surface-4);
  color: var(--text-hi);
}
#saveBtn.on svg {
  color: var(--accent-hi);
}
.w-save {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  font-size: 14px;
}
.dd-head {
  padding: 8px 10px 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--text-4);
}
.dd-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 9px 34px 9px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-3);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
@media (hover: hover) {
  .dd-item:hover {
    background: var(--surface-3);
    color: var(--text-hi);
  }
}
.dd-item.on {
  color: var(--text-hi);
}
.dd-item.on::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 10px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(-45deg);
}
.dd-item:disabled,
.dd-item.off {
  opacity: 0.35;
  cursor: default;
}
@media (hover: hover) {
  .dd-item:disabled:hover,
  .dd-item.off:hover {
    background: none;
    color: var(--text-3);
  }
}
html.is-fs {
  scrollbar-gutter: auto;
}
.src-empty {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0a0a0d;
  color: var(--text-3);
  font-size: 13.5px;
  text-align: center;
  padding: 20px;
}
.src-empty[hidden] {
  display: none;
}
.src-empty h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
}
.src-empty p {
  max-width: 420px;
  line-height: 1.55;
}
.ap {
  outline: none;
  user-select: none;
  -webkit-user-select: none;
  color: #fff;
}
.ap:focus-visible {
  box-shadow: 0 0 0 2px #4a4a52;
}
.ap-video,
.ap-freeze,
.ap-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ap-video {
  object-fit: contain;
  background: #000;
}
.ap-freeze {
  object-fit: contain;
  z-index: 1;
}
.ap-poster {
  z-index: 1;
  background: #0a0a0d center/cover;
  transition: opacity 0.35s ease;
}
.ap-poster.gone {
  opacity: 0;
  pointer-events: none;
}
.ap-spin {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
}
.ap-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  animation: fade 0.2s ease;
}
.ap-loading[hidden] {
  display: none;
}
.ap-loading.out {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
}
.ap.loading .ap-spin,
.ap.loading .ap-big {
  display: none;
}
.ap-ld-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  padding: 0 20px;
  box-sizing: border-box;
}
.ap-ld-logo {
  position: relative;
  width: 64%;
  max-width: 420px;
}
.ap-ld-logo::before {
  content: "";
  display: block;
  padding-top: 31.25%;
  padding-top: var(--ld-r, 31.25%);
}
.ap-ld-title {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ap-ld-word {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 236px;
  max-width: 100%;
  height: 43px;
  transform: translate(-50%, -50%);
  background: var(--logo) center / contain no-repeat;
  transition: opacity 0.25s ease;
}
.ap-ld-logo.has-title .ap-ld-title {
  opacity: 1;
}
.ap-ld-logo.has-title .ap-ld-word,
.ap-ld-logo.wait .ap-ld-word {
  opacity: 0;
}
.ap-ld-line {
  width: 64%;
  max-width: 236px;
  height: 2px;
  border-radius: 1px;
  background: var(--line-2);
  overflow: hidden;
}
.ap-ld-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
}
.ap-loading.calm .ap-ld-line {
  display: none;
}
[data-theme="paper"] .ap-loading {
  background: #0d0d0f;
}
[data-theme="paper"] .ap-ld-word {
  background-image: url("/icons/hideout-word.png");
}
[data-theme="paper"] .ap-ld-line {
  background: rgba(255, 255, 255, 0.16);
}
@media (max-width: 480px) {
  .ap-ld-stage {
    gap: 16px;
  }
  .ap-ld-word {
    width: 190px;
    height: 35px;
  }
}
.ap-resume {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  animation: fade 0.2s ease;
}
.ap-resume[hidden] {
  display: none;
}
.ap.asking .ap-big,
.ap.asking.paused .ap-big,
.ap.asking.ui-on .ap-big {
  display: none;
}
.ap.touch.asking.paused:not(.busy) .ap-center,
.ap.touch.asking.ui-on:not(.busy) .ap-center {
  visibility: hidden;
  pointer-events: none;
}
.ap-rs-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 0 20px;
  text-align: center;
}
.ap-rs-t {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}
.ap-rs-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}
.ap-rs-go,
.ap-rs-over {
  height: 38px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ap-rs-go {
  background: #fff;
  color: #0d0d0f;
}
.ap-rs-over {
  padding: 0 12px;
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 600;
}
@media (hover: hover) {
  .ap-rs-go:hover {
    background: #e6e6ea;
  }
  .ap-rs-over:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}
.ap-rs-go:focus-visible,
.ap-rs-over:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .ap-rs-t {
    font-size: 15px;
  }
  .ap-rs-box {
    gap: 10px;
    padding: 0 10px;
  }
  .ap-rs-acts {
    gap: 4px;
  }
  .ap-rs-go,
  .ap-rs-over {
    height: 34px;
    font-size: 12.5px;
  }
  .ap-rs-go {
    padding: 0 14px;
  }
  .ap-rs-over {
    padding: 0 8px;
  }
}
.ap-big {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  width: 72px;
  height: 72px;
  margin: -36px 0 0 -36px;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 14, 17, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.ap .ap-big {
  transition:
    opacity 0.9s ease 0.2s,
    visibility 0s linear 1.1s,
    transform 0.9s ease 0.2s,
    background-color 0.9s ease 0.2s,
    box-shadow 0.9s ease 0.2s;
}
.ap-big svg {
  width: 30px;
  height: 30px;
}
.ap-big .ap-ico {
  transition:
    opacity 0.4s ease,
    transform 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.25);
}
.ap.paused:not(.busy) .ap-big {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.25s ease,
    transform 0.15s ease,
    background-color 0.15s ease,
    box-shadow 0.15s ease;
}
.ap.paused:not(.busy) .ap-big:active {
  transform: scale(0.94);
}
@media (hover: hover) {
  .ap.paused:not(.busy) .ap-big:hover {
    transform: scale(1.07);
    background: var(--accent);
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent);
  }
}
.ap-big-label {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}
.ap-tog {
  position: relative;
}
.ap-ico {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.5) rotate(-35deg);
  transition:
    opacity 0.16s ease,
    transform 0.26s cubic-bezier(0.2, 0.9, 0.3, 1.25);
  pointer-events: none;
}
.ap-tog[data-state="play"] .ap-i-play,
.ap-tog[data-state="pause"] .ap-i-pause,
.ap-tog[data-state="replay"] .ap-i-replay {
  opacity: 1;
  transform: none;
}
.ap-tog[data-state="replay"] .ap-big-label {
  letter-spacing: 0.06em;
}
@media (prefers-reduced-motion: reduce) {
  .ap-big,
  .ap.paused:not(.busy) .ap-big,
  .ap-ico,
  .ap-big .ap-ico {
    transition: none;
  }
}
.ap-msg {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  transform: translate(-50%, -50%);
  background: rgba(14, 14, 17, 0.85);
  border: 1px solid #2c2c33;
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: #d8d8de;
  text-align: center;
}
.ap-ui {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 28px 14px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  pointer-events: none;
}
.ap.ui-on .ap-ui,
.ap.paused .ap-ui {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ap:has(.ap-ui :focus-visible) .ap-ui {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ap:not(.ui-on):not(.paused) .ap-video {
  cursor: none;
}
.ap-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ap-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: #e8e8ec;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
@media (hover: hover) {
  .ap-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
}
.ap-btn.on {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.ap-time {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.ap-time i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}
.ap-gap {
  flex: 1;
}
.ap-vol {
  display: flex;
  align-items: center;
}
.ap-volume {
  width: 0;
  opacity: 0;
  transition:
    width 0.2s ease,
    opacity 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fff var(--v, 100%), rgba(255, 255, 255, 0.25) var(--v, 100%));
  cursor: pointer;
}
.ap-volume:focus {
  width: 76px;
  opacity: 1;
  margin: 0 8px 0 2px;
}
@media (hover: hover) {
  .ap-vol:hover .ap-volume {
    width: 76px;
    opacity: 1;
    margin: 0 8px 0 2px;
  }
}
.ap-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
}
.ap-volume::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}
.ap-seek {
  position: relative;
  height: 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 4px;
  touch-action: none;
}
.ap-track {
  position: relative;
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
  transition: height 0.15s ease;
}
.ap.seeking .ap-track {
  height: 6px;
}
@media (hover: hover) {
  .ap-seek:hover .ap-track {
    height: 6px;
  }
}
.ap-buf,
.ap-played {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}
.ap-buf {
  right: 0;
  background: rgba(255, 255, 255, 0.32);
  transform-origin: left;
  transform: scaleX(0);
}
.ap-played {
  right: 0;
  background: var(--accent);
  transform-origin: left;
  transform: scaleX(0);
}
.ap-marks span {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.28);
}
.ap-thumb {
  position: absolute;
  top: 50%;
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  border-radius: 50%;
  background: var(--accent-hi);
  transform: scale(0);
  transition: transform 0.12s ease;
}
.ap.seeking .ap-thumb,
.ap-seek:focus-visible .ap-thumb {
  transform: scale(1);
}
@media (hover: hover) {
  .ap-seek:hover .ap-thumb {
    transform: scale(1);
  }
}
.ap-tip {
  position: absolute;
  bottom: 20px;
  transform: translateX(-50%);
  background: rgba(14, 14, 17, 0.9);
  border: 1px solid #2c2c33;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.ap-tip-img {
  display: none;
}
.ap-tip.pic {
  bottom: 22px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}
.ap-tip.pic .ap-tip-img {
  display: block;
  background-repeat: no-repeat;
}
.ap-tip.pic .ap-tip-time {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 1px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  line-height: 1.5;
}
.ap-skip {
  position: absolute;
  right: 18px;
  bottom: 84px;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(14, 14, 17, 0.82);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  animation: ntIn 0.2s ease;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
@media (hover: hover) {
  .ap-skip:hover {
    background: #fff;
    color: #0d0d0f;
    border-color: #fff;
  }
}
.ap-next {
  position: absolute;
  right: 18px;
  bottom: 84px;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(14, 14, 17, 0.9);
  border: 1px solid #2c2c33;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #d8d8de;
  animation: ntIn 0.2s ease;
}
.ap-next b {
  color: #fff;
}
.ap-next-acts {
  display: flex;
  gap: 8px;
}
.ap-next-go,
.ap-next-cancel {
  border: 0;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
}
.ap-next-go {
  background: #f2f1ec;
  color: #0d0d0f;
}
.ap-next-cancel {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.ap {
  container-type: inline-size;
}
.ap-subs {
  position: absolute;
  bottom: var(--cue-y, 4%);
  left: calc(50% + var(--cue-x, 0%));
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: max-content;
  max-width: 88%;
  transform: translate(calc(-50% + var(--cue-nx, 0px)), var(--cue-ny, 0px));
  text-align: center;
  pointer-events: none;
  transition: bottom 0.22s ease;
}
.ap-subs.ap-subs-top {
  top: var(--cue-sy, 6%);
  bottom: auto;
  left: calc(50% + var(--cue-sx, 0%));
}
.ap-sub-line {
  padding: 1px 8px;
  border-radius: 4px;
  background: var(--cue-bg, rgba(0, 0, 0, 0.45));
  color: var(--cue-color, #fff);
  font-family: var(--cue-font, var(--font));
  font-size: max(13px, var(--cue-size, 2.4cqw));
  line-height: 1.35;
  white-space: pre-line;
  text-shadow: var(--cue-edge, 0 1px 2px rgba(0, 0, 0, 0.8));
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ap-video::-webkit-media-text-track-display {
  background: transparent !important;
  padding: 0 !important;
}
.ap-video::-webkit-media-text-track-display-backdrop {
  background: transparent !important;
}
.ap-video::cue {
  background: var(--cue-bg, rgba(0, 0, 0, 0.5));
  color: var(--cue-color, #fff);
  font-family: var(--cue-font, var(--font));
  font-size: var(--cue-size, 1.05em);
  line-height: 1.35;
  text-shadow: var(--cue-edge, 0 1px 2px rgba(0, 0, 0, 0.8));
}
.ap.full {
  border-radius: 0;
  outline: 0;
}
@media (max-width: 700px) {
  .ap-skip,
  .ap-next {
    bottom: 70px;
    right: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ap-ui,
  .ap-poster,
  .ap-track {
    transition: none;
  }
}
.ap-btn:disabled {
  opacity: 0.35;
  cursor: default;
  background: none;
}
.ap-btn svg {
  transition: transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ap-btn:active:not(:disabled) svg {
  transform: scale(0.9);
}
.ap-play svg {
  width: 26px;
  height: 26px;
}
.ap-cc.on {
  box-shadow: none;
  color: #fff;
}
.ap-cc.on::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-hi);
}
.ap-cc {
  position: relative;
}
.ap-gear svg {
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ap-gear.spin-on svg {
  transform: rotate(60deg);
}
.ap-bubble {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 56px;
  min-width: 56px;
  margin-top: -28px;
  padding: 0 16px;
  border-radius: 28px;
  background: rgba(14, 14, 17, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50%) scale(0.85);
  pointer-events: none;
}
.ap-bubble svg {
  width: 26px;
  height: 26px;
}
.ap-bubble.show {
  animation: apBubble 0.6s ease forwards;
}
@keyframes apBubble {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.85);
  }
  18% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) scale(1.06);
  }
}
.ap.paused:not(.busy) .ap-bubble {
  display: none;
}
.ap-settings {
  position: absolute;
  right: 12px;
  bottom: 66px;
  z-index: 7;
  width: 290px;
  max-height: calc(100% - 90px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(18, 18, 21, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55);
  animation: ntIn 0.18s cubic-bezier(0.22, 0.8, 0.24, 1);
  transform-origin: bottom right;
  scrollbar-width: thin;
}
.ap-settings[hidden] {
  display: none;
}
.ap-spage {
  animation: apPage 0.18s ease;
}
.ap-spage.main {
  animation: none;
}
@keyframes apPage {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ap-srow,
.ap-opt,
.ap-shead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 9px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #e8e8ec;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
@media (hover: hover) {
  .ap-srow:hover,
  .ap-opt:hover,
  .ap-shead:hover {
    background: rgba(255, 255, 255, 0.07);
  }
}
.ap-sval {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9d9ca6;
  font-weight: 500;
  font-size: 13px;
}
.ap-sval svg {
  width: 16px;
  height: 16px;
  opacity: 0.7;
}
.ap-shead {
  justify-content: flex-start;
  gap: 6px;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 9px 9px 0 0;
  margin-bottom: 4px;
}
.ap-shead svg {
  width: 18px;
  height: 18px;
}
.ap-opt {
  position: relative;
  padding-left: 34px;
  justify-content: flex-start;
  font-weight: 500;
  color: #c4c3cc;
}
.ap-opt.on {
  color: #fff;
  font-weight: 600;
}
.ap-opt.on::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 50%;
  width: 10px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}
.ap-upload {
  color: #9d9ca6;
}
.ap-found {
  align-items: flex-start;
}
.ap-ftext {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}
.ap-ftext > span:first-child {
  overflow-wrap: anywhere;
  line-height: 1.3;
}
.ap-fmeta {
  font-size: 11.5px;
  font-weight: 500;
  color: #9d9ca6;
}
.ap-trow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 12px 4px 34px;
  font-size: 13.5px;
  font-weight: 500;
  color: #c4c3cc;
}
.ap-tstep {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-tstep b {
  min-width: 46px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.ap-tstep button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
@media (hover: hover) {
  .ap-tstep button:hover {
    background: rgba(255, 255, 255, 0.18);
  }
}
.ap-opt small {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  color: #9d9ca6;
}
.ap-switch {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: #3a3a42;
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.ap-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #c4c3cc;
  transition:
    transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1),
    background-color 0.2s ease;
}
.ap-switch.on {
  background: var(--accent);
}
.ap-switch.on::after {
  transform: translateX(15px);
  background: #fff;
}
.ap-ssep {
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 4px 6px;
}
.ap-slabel {
  padding: 8px 12px 2px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #76767f;
}
.ap-snote {
  padding: 6px 12px 8px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #76767f;
}
.ap.menu-open .ap-ui {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.ap-ambient {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  aspect-ratio: 16/9;
  z-index: 0;
  filter: blur(70px) saturate(1.6);
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.8s ease;
  pointer-events: none;
}
.ap-ambient.on {
  opacity: 0.55;
}
.ap {
  z-index: 1;
}
.ap.full ~ .ap-ambient,
.ap.full + .ap-ambient {
  display: none;
}
@media (max-width: 700px) {
  .ap-settings {
    right: 8px;
    left: 8px;
    width: auto;
  }
  .ap-prev,
  .ap-nextep {
    display: none;
  }
}
.ap-next[hidden],
.ap-msg[hidden],
.ap-spin[hidden],
.ap-skip[hidden],
.ap-tip[hidden] {
  display: none;
}
.ap-video::-webkit-media-text-track-container {
  transform: translate(var(--cue-x, 0%), calc(-1 * var(--cue-y, 4%)));
  transition: transform 0.22s ease;
}
.spoil-recent #epGrid .ep-img,
.spoil-recent #epGrid .ep-fallback,
.spoil-infoEps #epList .ep-img,
.spoil-infoEps #epList .ep-fallback,
.spoil-watchList #sideList .side-thumb {
  filter: blur(16px) brightness(0.7);
  transition: filter 0.25s ease;
}
.spoil-recent #epGrid .ep-title,
.spoil-recent #epGrid .ep-sub,
.spoil-infoEps #epList .ep-cell-title,
.spoil-watchList #sideList .side-t,
.spoil-watchList #sideList .side-d,
.spoil-watchDesc #descShort,
.spoil-watchDesc #descLong {
  filter: blur(5px);
  transition: filter 0.25s ease;
}
.cards-large .home-grid,
.cards-large .poster-grid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}
.reduce-motion *,
.reduce-motion *::before,
.reduce-motion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
  scroll-behavior: auto !important;
}
.pm-wrap {
  position: relative;
}
.pm {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 130;
  width: 300px;
  max-height: calc(100vh - 70px);
  max-height: calc(100dvh - 70px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 6px;
  box-shadow: var(--shadow);
  animation: ntIn 0.18s cubic-bezier(0.22, 0.8, 0.24, 1);
  transform-origin: top right;
}
.pm[hidden] {
  display: none;
}
.pm-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 10px;
}
.pm-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--surface-3);
}
.pm-av-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}
.pm-who {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.pm-who b {
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-who span {
  font-size: 12.5px;
  color: var(--muted);
}
.pm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 2px 6px 6px;
  padding: 8px 4px;
  border-radius: 10px;
  background: var(--surface-2);
}
.pm-stats span {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
}
.pm-stats b {
  font-size: 14px;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.pm-cta {
  display: block;
  margin: 0 10px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}

.pm-cta {
  margin: 2px 8px 8px;
  text-align: center;
  padding: 9px;
  border-radius: 10px;
  background: var(--inverse);
  color: var(--on-inverse);
}
@media (hover: hover) {
  .pm-cta:hover {
    background: var(--inverse-hi);
  }
}
.pm-sep {
  height: 1px;
  background: var(--line);
  margin: 5px 4px;
}
.pm-item,
.pm-opt,
.pm-back {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.12s ease;
}
@media (hover: hover) {
  .pm-item:hover,
  .pm-opt:hover,
  .pm-back:hover {
    background: var(--tint-1);
  }
}
a.pm-item {
  text-decoration: none;
}
.pm-item > span:first-of-type {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pm-item svg,
.pm-back svg {
  flex-shrink: 0;
  color: var(--text-3);
}
.pm-item > svg:last-child {
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.pm-item kbd {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  padding: 1px 6px;
}
.pm-back {
  font-weight: 700;
  color: var(--text-hi);
  border-bottom: 1px solid var(--line);
  border-radius: 10px 10px 0 0;
  margin-bottom: 4px;
}
.pm-note {
  padding: 8px 12px 4px;
  font-size: 11.5px;
  color: var(--muted);
}
.pm-opt {
  position: relative;
  padding-left: 38px;
}
.pm-opt > span:last-child {
  display: flex;
  flex-direction: column;
}
.pm-opt small {
  font-size: 11.5px;
  color: var(--muted);
}
.pm-opt.on {
  color: var(--text-hi);
  font-weight: 600;
}
.pm-opt.on::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 50%;
  width: 10px;
  height: 5px;
  margin-top: -4px;
  border-left: 2px solid var(--text-hi);
  border-bottom: 2px solid var(--text-hi);
  transform: rotate(-45deg);
}
.pm-sw {
  display: flex;
  margin-left: -2px;
}
.pm-sw i {
  width: 14px;
  height: 22px;
  border: 1px solid var(--line-2);
}
.pm-sw i:first-child {
  border-radius: 5px 0 0 5px;
}
.pm-sw i:last-child {
  border-radius: 0 5px 5px 0;
}
.pm-switch {
  position: relative;
  width: 34px;
  height: 19px;
  border-radius: 10px;
  background: var(--line-3);
  flex-shrink: 0;
  transition: background-color 0.2s ease;
}
.pm-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--inverse);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pm-switch.on {
  background: var(--accent);
}
.pm-switch.on::after {
  transform: translateX(15px);
  background: #fff;
}
.kb-back {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fade 0.18s ease;
}
.kb-back[hidden] {
  display: none;
}
.kb {
  width: 520px;
  max-width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 8px 20px 18px;
  box-shadow: var(--shadow);
  animation: pop 0.2s ease;
}
.kb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0 6px;
}
.kb-head strong {
  font-size: 17px;
}
.kb-x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
}
@media (hover: hover) {
  .kb-x:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
.kb-group {
  margin: 14px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.kb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--text-2);
}
.kb-keys {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.kb-keys i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin: 0 3px;
}
.kb kbd,
.st-kbd {
  display: inline-block;
  min-width: 24px;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-hi);
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 2px 7px;
}
.kb-more {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.st-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 32px 80px;
  animation: fade 0.25s ease;
}
.st-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.st-head h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.st-head p {
  color: var(--muted);
  font-size: 13.5px;
  margin-top: 4px;
}
.st-find {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding: 8px 14px;
  color: var(--muted);
  min-width: 240px;
}
.st-find:focus-within {
  border-color: var(--line-3);
}
.st-find input {
  flex: 1;
  min-width: 0;
  background: none;
  border: 0;
  outline: none;
  font-size: 13.5px;
  color: var(--text);
}
.st-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}
.st-nav {
  position: sticky;
  top: calc(var(--topbar-h) + 20px);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.st-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-3);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition:
    background-color 0.12s ease,
    color 0.12s ease;
}
@media (hover: hover) {
  .st-nav a:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
.st-nav a.on {
  background: var(--surface-3);
  color: var(--text-hi);
  font-weight: 600;
}
.st-nav a.on svg {
  color: var(--accent-hi);
}
.st-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.st-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px 20px 8px;
  scroll-margin-top: calc(var(--topbar-h) + 20px);
}
.st-card[hidden] {
  display: none;
}
.st-card header {
  padding: 16px 0 10px;
  border-bottom: 1px solid var(--line);
}
.st-card h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16.5px;
  font-weight: 700;
}
.st-card h2 svg {
  color: var(--accent-hi);
}
.st-card header p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}
.st-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.st-row:last-child {
  border-bottom: 0;
}
.st-row[hidden] {
  display: none;
}
.st-block {
  display: block;
}
.st-text {
  min-width: 0;
  flex: 1;
}
.st-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-hi);
}
.st-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}
.st-ctrl {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.st-switch {
  position: relative;
  width: 42px;
  height: 24px;
  border-radius: 12px;
  border: 0;
  background: var(--line-3);
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.st-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--inverse);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.st-switch.on {
  background: var(--accent);
}
.st-switch.on::after {
  transform: translateX(18px);
  background: #fff;
}
.st-switch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.st-seg {
  display: flex;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.st-seg button {
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .st-seg button:hover {
    color: var(--text-hi);
  }
}
.st-seg button.on {
  background: var(--surface-4);
  color: var(--text-hi);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.st-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.st-slider input {
  width: 160px;
  accent-color: var(--accent);
}
.st-slider output {
  min-width: 42px;
  text-align: right;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-hi);
  font-variant-numeric: tabular-nums;
}
.st-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .st-btn:hover:not(:disabled) {
    background: var(--surface-3);
    border-color: var(--line-3);
  }
}
.st-btn:disabled {
  opacity: 0.55;
  cursor: default;
}
.st-btn.primary {
  background: var(--inverse);
  color: var(--on-inverse);
  border-color: transparent;
}
@media (hover: hover) {
  .st-btn.primary:hover {
    background: var(--inverse-hi);
  }
}
.st-btn.danger {
  color: #ff6b81;
  border-color: color-mix(in srgb, #ff6b81 35%, transparent);
}
.st-btn.confirm {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
@media (hover: hover) {
  .st-btn.danger:hover:not(:disabled) {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
  }
}
.st-themes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}
.st-theme {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  background: none;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    transform 0.15s ease;
}
@media (hover: hover) {
  .st-theme:hover {
    border-color: var(--line-3);
  }
}
.st-theme.on {
  border-color: var(--accent);
}
.st-tprev {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 6px;
  box-shadow: inset 0 0 0 1px rgba(128, 128, 128, 0.25);
}
.st-tprev span {
  position: absolute;
  left: 8%;
  right: 8%;
  height: 18%;
  border-radius: 4px;
}
.st-tprev span:first-child {
  top: 12%;
  right: 40%;
}
.st-tprev span:nth-child(2) {
  top: 40%;
  height: 40%;
}
.st-tprev i {
  position: absolute;
  left: 8%;
  bottom: 12%;
  width: 24%;
  height: 10%;
  border-radius: 4px;
}
.st-tprev b {
  position: absolute;
  right: 8%;
  top: 15%;
  width: 16%;
  height: 6%;
  border-radius: 3px;
  opacity: 0.85;
}
.st-tname {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-hi);
  padding: 0 2px;
}
.st-tnote {
  font-size: 11.5px;
  color: var(--muted);
  padding: 0 2px 2px;
}
.st-ccprev {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  container-type: inline-size;
}
.st-ccguide {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1px dashed rgba(255, 255, 255, 0.18);
}
.st-ccprev.ap .ap-ui,
.st-ccprev.ap.ui-on .ap-ui,
.st-ccprev .ap-poster {
  pointer-events: none;
}
.st-ccprev .ap-poster {
  background-image: linear-gradient(135deg, #2b3a55, #5c3b4d 60%, #7a5a3a);
}
.st-ccprev .ap-ui {
  z-index: 1;
}
.st-ccline {
  position: absolute;
  z-index: 3;
  transform: translateX(-50%);
  white-space: nowrap;
  cursor: grab;
  outline: 1px dashed transparent;
  outline-offset: 3px;
  transition: outline-color 0.15s ease;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.st-ccline:focus-visible {
  outline-color: rgba(255, 255, 255, 0.7);
}
@media (hover: hover) {
  .st-ccline:hover,
  .st-ccline.dragging {
    outline-color: rgba(255, 255, 255, 0.7);
  }
}
.st-ccline.dragging {
  cursor: grabbing;
}
.st-ccfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 560px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.st-color {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 14px 0 7px;
  border-radius: 10px;
  border: 1px solid var(--line-3);
  background: var(--surface-2);
  color: var(--text-hi);
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
.st-color:hover,
.st-color[aria-expanded="true"] {
  border-color: var(--accent);
}
.st-color-dot {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.st-picker {
  position: fixed;
  z-index: 160;
  width: 252px;
  padding: 12px;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--line-3);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.5);
  animation: fade 0.14s ease;
}
.st-picker[hidden] {
  display: none;
}
.st-pk-sv {
  position: relative;
  height: 132px;
  border-radius: 9px;
  cursor: crosshair;
  touch-action: none;
  outline-offset: 2px;
}
.st-pk-hue {
  position: relative;
  height: 12px;
  margin-top: 12px;
  border-radius: 6px;
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
  cursor: pointer;
  touch-action: none;
  outline-offset: 3px;
}
.st-pk-knob {
  position: absolute;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.5),
    0 2px 6px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.st-pk-hue .st-pk-knob {
  top: 50%;
}
.st-pk-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.st-pk-cur {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.35);
}
.st-pk-hex {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 10px;
  border-radius: 9px;
  border: 1px solid var(--line-3);
  background: var(--surface-2);
  color: var(--text-hi);
  font-family: var(--mono);
  font-size: 12.5px;
  text-transform: uppercase;
}
.st-pk-hex:focus {
  outline: none;
  border-color: var(--accent);
}
.st-pk-done {
  height: 32px;
  padding: 0 12px;
}
.st-pk-sw {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  margin-top: 12px;
}
.st-pk-sw button {
  aspect-ratio: 1;
  min-width: 0;
  padding: 0;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.3);
  transition: transform 0.12s ease;
}
.st-pk-sw button:hover {
  transform: scale(1.12);
}
.st-pk-sw button.on {
  box-shadow:
    0 0 0 2px var(--panel),
    0 0 0 4px var(--accent);
}
.st-hint-inline {
  margin-left: 6px;
  font-weight: 500;
  color: var(--text-4);
}
.st-kgroup {
  margin: 6px 0 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--muted);
}
.st-krow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 7px 0;
  font-size: 13.5px;
  color: var(--text-2);
}
.st-krow i {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  margin: 0 4px;
}
.st-saved {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 150;
  transform: translate(-50%, 14px);
  opacity: 0;
  pointer-events: none;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: 20px;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.st-saved.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.st-nav a > span {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.st-nav a b {
  font-weight: inherit;
}
.st-nav small,
.st-chev,
.st-crumb {
  display: none;
}
@media (max-width: 860px) {
  .st-page {
    padding: 20px 16px 60px;
  }
  .st-layout {
    display: block;
  }
  .st-find {
    min-width: 0;
    width: 100%;
  }
  .st-page:not(.st-home) .st-nav,
  .st-page.st-home .st-body,
  .st-page.st-open .st-head {
    display: none;
  }
  .st-nav {
    position: static;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface-1);
  }
  .st-nav a {
    gap: 14px;
    padding: 13px 14px 13px 16px;
    border-radius: 0;
    color: var(--text-hi);
    font-size: 15px;
  }
  .st-nav a + a {
    box-shadow: inset 0 1px 0 var(--line);
  }
  .st-nav a svg {
    flex-shrink: 0;
    color: var(--accent-hi);
  }
  .st-nav a > span {
    flex: 1;
  }
  .st-nav small {
    display: block;
    margin-top: 1px;
    overflow: hidden;
    font-size: 12.5px;
    font-weight: 400;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .st-chev {
    display: block;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-top: 2px solid var(--text-4);
    border-right: 2px solid var(--text-4);
    transform: rotate(45deg);
  }
  .st-nav a.on {
    background: none;
    font-weight: 500;
  }
  .st-nav a:active {
    background: var(--tint-1);
  }
  .st-page.st-open .st-crumb {
    position: sticky;
    top: var(--topbar-h);
    z-index: 5;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin: -20px -16px 14px;
    padding: 0 8px;
    height: 50px;
    background: var(--bg);
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .st-crumb a {
    display: flex;
    align-items: center;
    gap: 2px;
    justify-self: start;
    padding: 8px 6px;
    color: var(--text-2);
    font-size: 14.5px;
    font-weight: 500;
    text-decoration: none;
  }
  .st-crumb b {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--text-hi);
  }
  .st-page.st-open .st-card header {
    display: none;
  }
  .st-row {
    flex-wrap: wrap;
  }
  .st-ctrl {
    width: 100%;
    justify-content: flex-start;
  }
  .st-themes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
.st-fsel {
  min-width: 200px;
  padding: 9px 13px;
}
.st-fsel:focus-visible {
  outline: none;
  border-color: var(--line-3);
}
.st-fsel .f-drop {
  left: auto;
  min-width: 100%;
}
.st-areas.off .st-checks {
  opacity: 0.5;
}
.st-checks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.st-check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
}
@media (hover: hover) {
  .st-check:hover {
    border-color: var(--line-3);
  }
}
.st-check.on {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
}
.st-check b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
}
.st-check small {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}
.st-box {
  position: relative;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 5px;
  border: 2px solid var(--line-3);
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.st-check.on .st-box {
  background: var(--accent);
  border-color: var(--accent);
}
.st-check.on .st-box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 5px;
  height: 9px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(45deg);
}
body.nav-overlay .content,
body.nav-overlay .filter-shell {
  margin-left: 0;
}
a,
button,
[role="button"],
input,
select,
label {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.shelf.dragging,
.filter-bar.dragging,
.day-bar.dragging,
.tag-row.dragging,
.hero-stats.dragging,
.st-nav.dragging,
.seg.dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.shelf.dragging * {
  pointer-events: none;
}
@media (hover: none) {
  .shelf-nav {
    display: none;
  }
}
@media (pointer: coarse) {
  .icon-btn {
    width: 42px;
    height: 42px;
  }
  .topbar .avatar {
    position: relative;
  }
  .topbar .avatar::after {
    content: "";
    position: absolute;
    inset: -5px;
    border-radius: 50%;
  }
  .ap-btn {
    width: 42px;
    height: 42px;
  }
  .nav-item {
    padding: 11px 12px;
  }
}
.topbar {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(18px, env(safe-area-inset-left));
  padding-right: max(18px, env(safe-area-inset-right));
}
body {
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.al-toast,
.st-saved {
  bottom: max(24px, calc(env(safe-area-inset-bottom) + 12px));
}
@media (max-width: 700px) {
  input[type="text"],
  input[type="search"],
  input[type="email"],
  input[type="password"],
  input[type="number"],
  input[type="url"],
  input[type="tel"],
  input:not([type]),
  textarea,
  .st-find input,
  .side-search input,
  .f-find {
    font-size: 16px !important;
  }
  :root {
    --topbar-base: 54px;
  }
  .topbar {
    gap: 6px;
  }
  .search-wrap input {
    padding: 8px 12px;
  }
  .qs-kbd {
    display: none;
  }
  .content {
    padding: 12px 12px 32px;
  }
  .filter-bar {
    padding: 10px 12px;
    gap: 8px;
  }
  .chip {
    padding: 7px 13px;
    font-size: 13px;
  }
  .page-wrap,
  .browse {
    padding: 16px 12px 40px;
  }
  .home-grid,
  .poster-grid,
  .cards-large .home-grid,
  .cards-large .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 10px;
  }
  .poster-img {
    border-radius: 9px;
  }
  .poster-title {
    font-size: 13px;
    min-height: 36px;
    margin-top: 8px;
  }
  .pc-line {
    font-size: 11px;
  }
  .pc-next {
    font-size: 10px;
    padding: 3px 6px;
    margin-top: 6px;
  }
  .pc-ep {
    font-size: 10px;
    padding: 3px 8px 3px 7px;
  }
  .pc-score {
    top: 6px;
    right: 6px;
    font-size: 10.5px;
    padding: 2px 6px;
  }
  .hero-inner {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 4px 14px;
    padding: 18px 14px 16px;
    align-items: start;
  }
  .hero-inner .poster {
    width: 104px;
    min-width: 0;
    grid-row: 1 / span 4;
    border-radius: 10px;
  }
  .hero-info {
    display: contents;
  }
  .hero-info h1 {
    font-size: 21px;
    line-height: 1.2;
    grid-column: 2;
    align-self: end;
  }
  .hero-native,
  .hero-meta {
    grid-column: 2;
    font-size: 12px;
  }
  .hero-meta {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .hero-stats,
  .tag-row {
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-top: 10px;
    padding-bottom: 2px;
  }
  .hero-stats::-webkit-scrollbar,
  .tag-row::-webkit-scrollbar {
    display: none;
  }
  .hero-stats > *,
  .tag-row > * {
    flex-shrink: 0;
  }
  .btn-row {
    grid-column: 1 / -1;
    gap: 8px;
    row-gap: 0;
    margin-top: 14px;
  }
  .btn-row::after {
    content: "";
    order: -1;
    flex-basis: 100%;
  }
  .btn-row #playBtn {
    order: -2;
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 12px;
  }
  .btn-row .btn-sub,
  .btn-row .btn-pill {
    flex: 1 1 0;
    margin-top: 8px;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13.5px;
    min-width: 0;
  }
  .btn-row .btn-pill span,
  .btn-row .btn-sub span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .btn-row .btn-circle {
    order: -1;
    flex: none;
    width: 44px;
    height: 44px;
  }
  .anime-tabs {
    padding: 0 14px;
    gap: 22px;
    top: var(--topbar-h);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .anime-body {
    padding: 18px 14px 48px;
  }
  .section-block {
    margin-bottom: 28px;
  }
  .section-block h2 {
    font-size: 16.5px;
  }
  .ep-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .ep-head {
    gap: 10px;
  }
  .rel-row {
    grid-auto-columns: 128px;
    gap: 10px;
  }
  .ep-grid {
    grid-auto-columns: minmax(220px, 78vw);
  }
  .fact-box {
    padding: 10px 12px;
  }
  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .watch-layout {
    padding: 0 0 40px;
    gap: 0;
  }
  .watch-main > .player {
    border-radius: 0;
    outline: 0;
    margin: 0;
  }
  .watch-main > .ap-ambient {
    display: none;
  }
  .watch-main > :not(.player):not(.ap-ambient) {
    margin-left: 14px;
    margin-right: 14px;
  }
  .watch-title {
    font-size: 16px;
    margin: 12px 14px 10px;
  }
  .watch-row {
    flex-wrap: wrap;
    gap: 10px;
  }
  .w-actions {
    width: 100%;
    margin-left: 0;
  }
  .w-actions > * {
    flex-shrink: 0;
  }
  #shareBtn2 span {
    display: none;
  }
  #shareBtn2 {
    justify-content: center;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
  }
  .watch-side {
    margin: 18px 14px 0;
  }
  .dd {
    position: fixed;
    left: 12px;
    right: 12px;
    top: auto;
    bottom: max(12px, env(safe-area-inset-bottom));
    min-width: 0;
    transform-origin: bottom center;
  }
  .ap-row {
    gap: 2px;
  }
  .ap-time {
    font-size: 12px;
    margin-left: 4px;
  }
  .ap-skip,
  .ap-next {
    bottom: 64px;
    right: 10px;
  }
  .ap:not(.full) .ap-settings {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: auto;
    max-height: 68vh;
    max-height: 68dvh;
    border-radius: 18px 18px 0 0;
    padding: 8px 8px max(10px, env(safe-area-inset-bottom));
    z-index: 150;
    animation: apSheet 0.24s cubic-bezier(0.22, 0.8, 0.24, 1);
  }
  .ap:not(.full) .ap-settings::before {
    content: "";
    display: block;
    width: 38px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    margin: 2px auto 8px;
  }
  @keyframes apSheet {
    from {
      transform: translateY(100%);
    }
    to {
      transform: none;
    }
  }
  .trend-row {
    padding: 10px 12px 10px 8px;
    gap: 10px;
  }
  .slot-items {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 520px) and (max-width: 700px) {
  .home-grid,
  .poster-grid,
  .cards-large .home-grid,
  .cards-large .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .ep-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 701px) and (max-width: 1100px) {
  .home-grid,
  .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 22px 14px;
  }
  .cards-large .home-grid,
  .cards-large .poster-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  }
}
@media (max-width: 360px) {
  .home-grid,
  .poster-grid {
    gap: 16px 8px;
  }
  .poster-title {
    font-size: 12.5px;
  }
  .hero-inner {
    grid-template-columns: 88px minmax(0, 1fr);
  }
  .hero-inner .poster {
    width: 88px;
  }
  .btn-row {
    grid-template-columns: 1fr 1fr 42px;
  }
}
.ap-center {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  display: none;
  align-items: center;
  gap: 30px;
  transform: translate(-50%, -50%);
}
.ap-cbtn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(14, 14, 17, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform 0.15s ease;
}
.ap-cbtn:active:not(:disabled) {
  transform: scale(0.92);
}
.ap-cbtn svg {
  width: 24px;
  height: 24px;
}
.ap-cplay {
  width: 64px;
  height: 64px;
}
.ap-cplay svg {
  width: 30px;
  height: 30px;
}
.ap-cbtn:disabled {
  opacity: 0.3;
}
.ap.touch .ap-big {
  display: none !important;
}
.ap.touch .ap-center {
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.7s ease 0.15s,
    visibility 0s linear 0.85s;
}
.ap.touch.ui-on:not(.busy) .ap-center,
.ap.touch.paused:not(.busy) .ap-center {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.2s ease;
}
@media (prefers-reduced-motion: reduce) {
  .ap.touch .ap-center,
  .ap.touch.ui-on:not(.busy) .ap-center,
  .ap.touch.paused:not(.busy) .ap-center {
    transition: none;
  }
}
.ap.touch .ap-ui {
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}
.ap.touch.ui-on::before,
.ap.touch.paused::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
}
@media (max-width: 700px) {
  #animeDesc {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    cursor: pointer;
    position: relative;
  }
  #animeDesc.open {
    display: block;
    -webkit-line-clamp: unset;
  }
  #animeDesc:not(.open)::after {
    content: "more";
    position: absolute;
    right: 0;
    bottom: 0;
    padding-left: 28px;
    background: linear-gradient(90deg, transparent, var(--bg) 40%);
    color: var(--text-hi);
    font-weight: 700;
  }
}
.watch-main,
.watch-side {
  min-width: 0;
}
@media (max-width: 700px) {
  .sched-slot {
    grid-template-columns: minmax(0, 1fr);
  }
  .slot-items {
    grid-template-columns: minmax(0, 1fr);
  }
}
.sched-card,
.sched-info {
  min-width: 0;
}
.topbar {
  z-index: 70;
}
@media (max-width: 700px) {
  .pm,
  .notif-dd.nt-panel {
    position: fixed;
    top: 58px;
    left: auto;
    right: max(8px, env(safe-area-inset-right));
    width: min(320px, calc(100vw - 16px));
    max-height: calc(100dvh - 72px);
  }
}

.av-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: hsl(var(--av-h, 340) 45% 32%);
  color: hsl(var(--av-h, 340) 70% 90%);
  font-weight: 700;
  line-height: 1;
  user-select: none;
}
.avatar .avatar-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 14px;
}
.pm-av.av-letter {
  font-size: 18px;
}
.pm-head-link {
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-md);
}
@media (hover: hover) {
  .pm-head-link:hover {
    background: var(--tint-1);
  }
}

.auth-shell {
  display: flex;
  justify-content: center;
  padding: 40px 16px 64px;
}
@media (max-width: 560px) {
  .auth-shell {
    padding: 14px 12px 32px;
  }
  .auth-card {
    padding: 22px 18px 18px;
  }
  .auth-mark {
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
  }
}
.auth-card {
  position: relative;
  width: 100%;
  max-width: 400px;
  align-self: flex-start;
  padding: 30px 28px 24px;
  border-radius: 18px;
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.auth-mark {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  background: var(--mark) center / contain no-repeat;
}
.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.01em;
}
.auth-lead {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.auth-lead[hidden] {
  display: none;
}
.auth-card > .btn-sub {
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
}
.auth-providers {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 22px;
}
.auth-anilist,
.auth-google[hidden] + .auth-discord {
  grid-column: 1 / -1;
}
.auth-google,
.auth-discord {
  justify-content: center;
}
.auth-google:has(+ .auth-discord[hidden]) {
  grid-column: 1 / -1;
}
.auth-providers[hidden] {
  display: none;
}
.auth-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: filter 0.15s ease;
}
@media (hover: hover) {
  .auth-btn:hover {
    filter: brightness(1.08);
  }
}
.auth-btn[hidden] {
  display: none;
}
.auth-btn small {
  margin-left: auto;
  white-space: nowrap;
  font-size: 11.5px;
  font-weight: 500;
  opacity: 0.8;
}
.auth-anilist {
  background: #1f2631;
  box-shadow: inset 0 0 0 1px #2f3a4a;
}
.auth-anilist svg {
  color: #3db4f2;
}
.auth-discord {
  background: #5865f2;
}
.auth-back {
  display: grid;
  margin: -6px 0 16px -6px;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: var(--tint-1);
  color: var(--text-hi);
  cursor: pointer;
  transition: background 0.15s ease;
}
.auth-back[hidden] {
  display: none;
}
.auth-back:not([hidden]) + .auth-mark {
  display: none;
}
@media (hover: hover) {
  .auth-back:hover {
    background: var(--tint-2);
  }
}
.auth-in-fwd > :not(.auth-back) {
  animation: authInFwd 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-in-back > :not(.auth-back) {
  animation: authInBack 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.auth-in-fwd > .auth-back {
  animation: authFade 0.32s ease;
}
@keyframes authInFwd {
  from { opacity: 0; transform: translateX(28px); }
}
@keyframes authInBack {
  from { opacity: 0; transform: translateX(-28px); }
}
@keyframes authFade {
  from { opacity: 0; }
}
.auth-email {
  border: 0;
  width: 100%;
  justify-content: center;
  background: var(--tint-1, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 0 0 1px var(--line, rgba(255, 255, 255, 0.1));
  color: var(--text-hi, #fff);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.auth-google {
  background: #fff;
  color: #1f1f1f;
}
.auth-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 6px;
  font-size: 12px;
  color: var(--text-4);
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or[hidden] {
  display: none;
}
.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}
.auth-form[hidden] {
  display: none;
}
.auth-field,
.ac-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.auth-field > span:first-child,
.ac-field > span:first-child {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.auth-field em,
.ac-field em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-4);
}
.auth-field a {
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
}
.auth-field input,
.ac-field input,
.ac-field textarea,
.ac-confirm {
  width: 100%;
  padding: 10px 13px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 400;
  outline: none;
  resize: vertical;
  transition: border-color 0.15s ease;
}
.auth-field input:focus,
.ac-field input:focus,
.ac-field textarea:focus,
.ac-confirm:focus {
  border-color: var(--line-3);
}
.auth-handle,
.ac-handle {
  display: flex;
  align-items: center;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
}
.auth-handle:focus-within,
.ac-handle:focus-within {
  border-color: var(--line-3);
}
.auth-handle i,
.ac-handle i {
  padding-left: 13px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-4);
}
.auth-field .auth-handle input,
.ac-field .ac-handle input {
  border: 0;
  background: none;
  padding-left: 2px;
}
.auth-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text-2);
  cursor: pointer;
}
.auth-check input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--brand);
}
.auth-check a,
.auth-fine a,
.auth-switch a {
  color: var(--blue);
  text-decoration: none;
}
.auth-turnstile:empty {
  display: none;
}
.auth-submit {
  margin-top: 4px;
  padding: 11px 16px;
  border: 0;
  border-radius: 12px;
  background: var(--inverse);
  color: var(--on-inverse);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.auth-submit:disabled {
  opacity: 0.6;
  cursor: progress;
}
.auth-ghost {
  justify-self: start;
  padding: 9px 16px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: none;
  color: var(--text-hi);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
.auth-ghost:disabled {
  opacity: 0.5;
  cursor: default;
}
.auth-sent p:first-child {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-2);
}
.auth-switch {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-msg {
  margin-top: 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--danger);
}
.auth-msg:empty {
  display: none;
}
.auth-msg.ok {
  color: var(--ok);
}
.auth-fine {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-4);
}
.auth-fine[hidden] {
  display: none;
}

.user-page.page-wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}
@media (min-width: 1400px) {
  .user-page.page-wrap {
    padding: 28px 48px 60px;
  }
}

.up-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 16px 0 16px;
}
.up-tabs {
  display: flex;
  gap: 26px;
}
.up-tab {
  padding: 12px 2px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.up-tab:hover {
  color: var(--text-2);
}
.up-tab.on {
  color: var(--text-hi);
  border-bottom-color: var(--text-hi);
}
.up-head .link-btn {
  flex-shrink: 0;
  margin-bottom: 8px;
}

.up-status-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.up-status-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--chip);
  color: var(--text-hi);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .up-status-btn:not(.on):hover {
    background: var(--surface-4);
  }
}
.up-status-btn.on {
  background: var(--inverse);
  color: var(--on-inverse);
}
.up-count {
  font-size: 11px;
  opacity: 0.65;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 700px) {
  .up-status-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-top: 2px;
    padding-bottom: 6px;
  }
  .up-status-filter::-webkit-scrollbar {
    display: none;
  }
  .up-status-filter .up-status-btn {
    flex-shrink: 0;
  }
}
@media (max-width: 700px) and (min-width: 561px) {
  .up-status-filter {
    margin-left: -24px;
    margin-right: -24px;
    padding-left: 24px;
    padding-right: 24px;
  }
}
@media (max-width: 560px) {
  .up-status-filter {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }
}

.up-private {
  margin-top: 8px;
}
.up-cms {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-width: 760px;
}
.up-cm {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
@media (hover: hover) {
  .up-cm:hover {
    background: var(--surface-2);
  }
}
.up-cm-for {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
}
.up-cm-for time {
  flex-shrink: 0;
  font-weight: 500;
}
.up-cm-body {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}
.up-cm-body i {
  color: var(--muted);
}

.up-panel {
  display: none;
}
.up-panel.on {
  display: block;
}
.up-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 0 10px;
}
.up-av {
  flex-shrink: 0;
  width: 104px;
  height: 104px;
}
.up-av-img {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 44px;
  border: 3px solid var(--surface-2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.up-who {
  min-width: 0;
  flex: 1;
}
.up-who h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.up-handle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
}
.up-handle span::before {
  content: "·";
  margin: 0 8px;
}
.up-bio {
  margin-top: 10px;
  max-width: 560px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.up-missing h1 {
  font-size: 24px;
  color: var(--text-hi);
}
.up-missing p {
  margin: 8px 0 18px;
  color: var(--muted);
  font-size: 14.5px;
}
.up-missing .btn-pill {
  display: inline-flex;
  text-decoration: none;
}
@media (max-width: 560px) {
  .up-hero {
    flex-wrap: wrap;
    gap: 16px;
  }
  .up-av,
  .up-av-img {
    width: 76px;
    height: 76px;
    font-size: 32px;
  }
}

.ac-panel {
  padding-top: 6px;
}
.ac-guest p,
.ac-sub > p,
.ac-inline > p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
}
.ac-guest b,
.ac-inline b {
  color: var(--text-hi);
}
.ac-welcome {
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--tint-1);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
}
.ac-welcome b {
  color: var(--brand);
}
.ac-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.ac-note {
  font-size: 13px;
  color: var(--ok);
}
.ac-note.bad {
  color: var(--danger);
}
.ac-profile {
  display: grid;
  gap: 16px;
}
.ac-profile .ac-actions {
  margin-top: 0;
}
.ac-pics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ac-pic {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 10px 6px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  background: none;
  color: var(--muted);
  font-size: 11.5px;
  cursor: pointer;
}
@media (hover: hover) {
  .ac-pic:hover {
    background: var(--tint-1);
  }
}
.ac-pic.on {
  border-color: var(--line-3);
  color: var(--text-hi);
}
.ac-pic-img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 24px;
}
.ac-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.ac-wide {
  grid-column: 1 / -1;
}
@media (max-width: 560px) {
  .ac-grid {
    grid-template-columns: 1fr;
  }
}
.ac-sub {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.ac-sub h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hi);
  margin-bottom: 4px;
}
.ac-method {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}
.ac-method + .ac-method {
  border-top: 1px dashed var(--line);
}
.ac-mlabel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
  color: var(--text-hi);
}
.ac-mlabel small {
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.ac-mctrl {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.ac-inline {
  margin: 4px 0 8px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: grid;
  gap: 14px;
}
.ac-inline .ac-actions {
  margin-top: 0;
}
.ac-danger {
  box-shadow: inset 3px 0 0 var(--accent);
}
.ac-confirm {
  width: auto;
  flex: 1;
  min-width: 160px;
}

.up-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.up-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
@media (hover: hover) {
  .up-link:hover {
    background: var(--surface-3);
    color: var(--text-hi);
  }
}
.up-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.up-link-anilist svg {
  color: #3db4f2;
}
.up-link-discord svg {
  color: #7c87f5;
}
.up-link-mal svg {
  color: #4a74d8;
}
.ac-mlabel b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ac-show {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 6px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.fr-head h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-hi);
}
.fr-tabs {
  display: flex;
  gap: 4px;
  margin: 22px 0 18px;
  border-bottom: 1px solid var(--line);
}
.fr-tab {
  padding: 10px 14px;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) {
  .fr-tab:hover {
    color: var(--text-hi);
  }
}
.fr-tab[aria-selected="true"] {
  color: var(--text-hi);
  border-bottom-color: var(--brand);
}
.fr-panel[hidden] {
  display: none;
}
.fr-search {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 520px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text-4);
}
.fr-search:focus-within {
  border-color: var(--line-3);
}
.fr-search input {
  flex: 1;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.fr-results {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.fr-person {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .fr-person:hover {
    border-color: var(--line-3);
  }
}
.fr-av {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  font-size: 20px;
}
.fr-who {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.fr-who b,
.fr-who small,
.fr-who em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fr-who b {
  font-size: 14.5px;
  color: var(--text-hi);
}
.fr-who small {
  font-size: 12.5px;
  color: var(--muted);
}
.fr-who em {
  margin-top: 3px;
  font-style: normal;
  font-size: 12.5px;
  color: var(--text-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  line-height: 1.35;
}
.fr-who .sx-watch {
  display: inline;
  white-space: normal;
}
.fr-results > .empty-state,
.fr-hint {
  grid-column: 1 / -1;
  font-size: 14px;
  color: var(--muted);
}
.sx-role {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  vertical-align: 1px;
}
.sx-admin {
  background: var(--brand);
  color: #fff;
}
.sx-og {
  background: color-mix(in srgb, #e0a83c 18%, transparent);
  color: #e8b54e;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e0a83c 45%, transparent);
}
.sx-sup {
  background: color-mix(in srgb, #e05a8a 16%, transparent);
  color: #f07aa3;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, #e05a8a 42%, transparent);
}
.nt-badgerow .nt-said .sx-role {
  margin-left: 4px;
  vertical-align: 1px;
}
.nt-badgerow .nt-tip u {
  color: var(--text-hi);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.dn-badge {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.dn-badge .sx-role {
  margin: 0 4px 0 0;
}
.sx-mod {
  background: var(--tint-2);
  color: var(--text-hi);
}
.sx-menu {
  position: fixed;
  z-index: 300;
  min-width: 170px;
  max-height: calc(100vh - 16px);
  overflow-y: auto;
  padding: 6px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
}
.sx-menu button {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-hi);
  font-size: 13.5px;
  text-align: left;
  cursor: pointer;
}
.sx-menu button:focus-visible {
  background: var(--tint-1);
  outline: none;
}
@media (hover: hover) {
  .sx-menu button:hover {
    background: var(--tint-1);
    outline: none;
  }
}
.sx-menu button.danger {
  color: var(--danger);
}
.sx-dialog {
  overflow: visible;
  width: min(420px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--surface-1);
  color: var(--text);
  box-shadow: var(--shadow);
}
.sx-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.sx-report {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.sx-report h2 {
  font-size: 18px;
  color: var(--text-hi);
}
.sx-lead {
  margin-top: -8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.sx-reasons {
  display: grid;
  gap: 2px;
}
.sx-reason {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 14px;
  cursor: pointer;
}
@media (hover: hover) {
  .sx-reason:hover {
    background: var(--tint-1);
  }
}
.sx-reason input {
  accent-color: var(--brand);
}
.sx-note {
  display: grid;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-2);
}
.sx-note em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-4);
}
.sx-note textarea {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  resize: vertical;
  outline: none;
}
.sx-msg {
  font-size: 13px;
  color: var(--danger);
}
.sx-msg:empty {
  display: none;
}
.sx-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.msg-btn {
  text-decoration: none;
}
.msg-btn[hidden] {
  display: none;
}
.msg-btn .badge {
  color: #fff;
}
.nt-av {
  width: 44px;
  min-width: 44px;
  display: flex;
  justify-content: center;
}
.nt-av-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 17px;
}
.nt-said {
  font-weight: 500;
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}
.nt-said b {
  font-weight: 700;
}
.nt-who {
  font-weight: 700;
  color: var(--text-hi);
  text-decoration: none;
}
@media (hover: hover) {
  .nt-who:hover {
    text-decoration: underline;
  }
}
.nt-req {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.nt-req-btn {
  padding: 6px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-4);
  color: var(--text-hi);
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.nt-req-btn.yes {
  background: var(--accent);
  color: #fff;
}
@media (hover: hover) {
  .nt-req-btn:hover {
    background: var(--line-3);
  }
  .nt-req-btn.yes:hover {
    background: var(--accent-hi);
  }
}
.nt-req-btn:disabled {
  opacity: 0.5;
  cursor: progress;
}

.cm {
  margin-top: 26px;
}
.cm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.cm-head h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-hi);
}
.cm-count {
  margin-left: 4px;
  font-weight: 500;
  color: var(--muted);
}
.cm-sort {
  display: flex;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
}
.cm-sort button {
  padding: 5px 12px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.cm-sort button[aria-selected="true"] {
  background: var(--surface-4);
  color: var(--text-hi);
}
.cm-signin {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  font-size: 14px;
  color: var(--muted);
}
.cm-signin a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}
.cm-compose {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
}
.cm-compose-reply {
  margin: 12px 0 4px;
}
.cm-field {
  flex: 1;
  min-width: 0;
}
.cm-field textarea {
  width: 100%;
  padding: 7px 0;
  border: 0;
  border-bottom: 1px solid var(--line-2);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.45;
  resize: none;
  outline: none;
  overflow-y: hidden;
}
.cm-field textarea:focus {
  border-bottom-color: var(--text-3);
}
.cm-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 10px;
}
.cm-tools[hidden] {
  display: none;
}
.cm-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
}
.cm-flag input {
  accent-color: var(--brand);
}
.cm-hint {
  font-size: 12px;
  color: var(--text-4);
}
.cm-hint a {
  color: inherit;
}
.cm-btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.cm-btn {
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--text-hi);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) {
  .cm-btn:hover {
    background: var(--tint-1);
  }
}
.cm-btn.primary {
  background: var(--inverse);
  color: var(--on-inverse);
}
.cm-btn:disabled {
  opacity: 0.55;
  cursor: progress;
}
.cm-foot .cm-btn {
  margin: 6px 0 0 50px;
  background: var(--surface-2);
}
.cm-empty {
  padding: 18px 0;
  font-size: 14px;
  color: var(--muted);
}
.cm-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
}
.cm-item.cm-flash .cm-main {
  animation: cm-flash 2.4s ease;
}
@keyframes cm-flash {
  0%,
  40% {
    background: var(--tint-2);
  }
  100% {
    background: transparent;
  }
}
.cm-av {
  flex-shrink: 0;
  width: 38px;
}
.cm-av-img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 16px;
}
.cm-replies .cm-av,
.cm-compose-reply .cm-av {
  width: 28px;
}
.cm-replies .cm-av-img,
.cm-compose-reply .cm-av-img {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.cm-main {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
}
.cm-meta {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 8px;
  font-size: 13px;
}
.cm-name {
  font-weight: 700;
  color: var(--text-hi);
  text-decoration: none;
}
@media (hover: hover) {
  .cm-name:hover {
    text-decoration: underline;
  }
}
.cm-meta .sx-role {
  margin-left: -2px;
}
.cm-when {
  font-size: 12px;
  color: var(--text-4);
}
.cm-text {
  margin-top: 3px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
}
.cm-gone .cm-text {
  font-style: italic;
  color: var(--text-4);
}
.cm-spoil {
  padding: 0 3px;
  border-radius: 4px;
  background: var(--text-4);
  color: transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  user-select: none;
}
.cm-spoil.shown {
  background: var(--tint-2);
  color: inherit;
  cursor: text;
  user-select: auto;
}
.cm-whole-spoil:not(.shown) {
  position: relative;
  cursor: pointer;
  filter: blur(6px);
  user-select: none;
}
.cm-whole-spoil:not(.shown)::after {
  content: "";
  position: absolute;
  inset: 0;
}
.cm-whole-spoil:not(.shown) + .cm-acts::before {
  content: "Spoiler · tap to show";
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand);
}
.cm-acts {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 4px 0 0 -8px;
}
.cm-act {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
@media (hover: hover) {
  .cm-act:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
.cm-like.on {
  color: var(--brand);
}
.cm-more {
  font-size: 15px;
  line-height: 1;
  opacity: 0;
}
.cm-more:focus-visible,
.cm-more[aria-expanded="true"] {
  opacity: 1;
}
@media (hover: hover) {
  .cm-item:hover > .cm-main > .cm-acts .cm-more {
    opacity: 1;
  }
}
@media (hover: none) {
  .cm-more {
    opacity: 1;
  }
}
.cm-toggle {
  margin: 2px 0 0 -8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
  .cm-toggle:hover {
    background: var(--tint-1);
  }
}
.cm-reply-list .cm-item {
  padding: 8px 0;
}

.up-acts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  align-self: flex-start;
  margin-top: 10px;
}
.up-acts a {
  text-decoration: none;
}
.up-cog {
  transition: background-color 0.18s ease, color 0.15s ease;
}
@media (hover: hover) {
  .up-cog:hover {
    color: var(--text-hi);
  }
}

.pe-dialog {
  width: min(540px, calc(100vw - 32px));
  overflow-y: auto;
}
.pe-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 14px 4px 22px;
}
.pe-head h2 {
  font-size: 18px;
  color: var(--text-hi);
}
.pe-body {
  padding: 10px 22px 18px;
}
.pe-more {
  display: block;
  padding: 13px 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}
@media (hover: hover) {
  .pe-more:hover {
    color: var(--text-hi);
  }
}
.up-note {
  font-size: 13px;
  color: var(--muted);
}
.up-online {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-left: 10px;
  border-radius: 50%;
  background: var(--ok);
  vertical-align: middle;
}
.up-who h1 .sx-role {
  font-size: 11px;
  vertical-align: middle;
}
@media (max-width: 560px) {
  .user-page.page-wrap {
    padding: 16px 16px 60px;
  }
  .up-acts {
    order: 3;
    width: 100%;
  }
}
@media (min-width: 561px) and (max-width: 900px) {
  .user-page.page-wrap {
    padding: 24px 24px 60px;
  }
}

.fr-n {
  display: inline-block;
  min-width: 18px;
  margin-left: 4px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.fr-n[hidden] {
  display: none;
}
.fr-group {
  grid-column: 1 / -1;
  margin: 8px 0 2px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}
#frRequests .fr-group {
  margin-top: 4px;
}
#frRequests .fr-results {
  margin: 10px 0 22px;
}
.fr-person {
  justify-content: space-between;
}
.fr-link {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.fr-avwrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
}
.fr-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ok);
  border: 2px solid var(--surface-1);
}
.fr-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.fr-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--text-hi);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) {
  .fr-btn:hover {
    background: var(--tint-1);
  }
}
.fr-btn.fr-icon {
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
}
.fr-btn.primary {
  background: var(--inverse);
  border-color: transparent;
  color: var(--on-inverse);
}
.fr-btn.danger {
  color: var(--danger);
}
.fr-btn:disabled {
  opacity: 0.5;
}
.fr-tabs {
  overflow-x: auto;
  scrollbar-width: none;
}
.fr-tab {
  white-space: nowrap;
}

.dm-page {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  height: calc(100dvh - var(--topbar-h, 56px));
  border-top: 1px solid var(--line);
}
.dm-list {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  border-right: 1px solid var(--line);
}
.dm-list-head {
  padding: 18px 16px 10px;
}
.dm-list-head h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-hi);
}
.dm-tabs {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}
.dm-tabs button {
  padding: 6px 12px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.dm-tabs button[aria-selected="true"] {
  background: var(--inverse);
  color: var(--on-inverse);
}
.dm-convs {
  flex: 1;
  overflow-y: auto;
  padding: 4px 8px 16px;
}
.dm-conv {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: var(--r-md);
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .dm-conv:hover {
    background: var(--tint-1);
  }
}
.dm-conv.on {
  background: var(--tint-2);
}
.dm-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 18px;
}
.dm-conv-tx {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.dm-conv-tx b {
  font-size: 14px;
  color: var(--text-hi);
}
.dm-conv-tx span,
.dm-conv-tx b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dm-conv-tx span {
  font-size: 13px;
  color: var(--muted);
}
.dm-conv.unread .dm-conv-tx span {
  color: var(--text-hi);
  font-weight: 600;
}
.dm-conv-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11.5px;
  color: var(--text-4);
}
.dm-unread {
  min-width: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand);
  color: #fff;
  font-style: normal;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.dm-none {
  padding: 14px 8px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.dm-thread {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}
.dm-pick {
  margin: auto;
}
.dm-solo {
  display: none;
  padding: 56px 16px;
}
.dm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.dm-back {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-hi);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.dm-who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.dm-who .dm-av {
  width: 38px;
  height: 38px;
  font-size: 16px;
}
.dm-who > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dm-who b {
  font-size: 15px;
  color: var(--text-hi);
}
.dm-who small {
  font-size: 12px;
  color: var(--muted);
}
.dm-icon {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2);
  font-size: 18px;
  cursor: pointer;
}
@media (hover: hover) {
  .dm-icon:hover,
  .dm-back:hover {
    background: var(--tint-1);
  }
}
.dm-banner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text-2);
}
.dm-banner p {
  flex: 1;
  min-width: 220px;
}
.dm-banner div {
  display: flex;
  gap: 6px;
}
.dm-banner-soft {
  background: none;
  color: var(--muted);
}
.dm-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 16px 16px 8px;
}
.dm-older {
  display: block;
  margin: 0 auto 12px;
  background: var(--surface-2);
}
.dm-start {
  margin-top: 30px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.dm-day {
  margin: 14px 0 8px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-4);
}
.dm-msg {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}
.dm-msg.tail {
  margin-bottom: 8px;
}
.dm-msg.mine {
  flex-direction: row-reverse;
}
.dm-bubble {
  max-width: min(520px, 78%);
  padding: 8px 12px;
  border-radius: 16px;
  background: var(--surface-3);
  color: var(--text);
  font-size: 14.5px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.dm-msg.tail:not(.mine) .dm-bubble {
  border-bottom-left-radius: 5px;
}
.dm-msg.mine .dm-bubble {
  background: var(--brand);
  color: #fff;
}
.dm-msg.mine.tail .dm-bubble {
  border-bottom-right-radius: 5px;
}
.dm-bubble a {
  color: inherit;
  text-decoration: underline;
}
.dm-msg-more {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-4);
  cursor: pointer;
  opacity: 0;
}
.dm-msg-more:focus-visible,
.dm-msg-more[aria-expanded="true"] {
  opacity: 1;
}
@media (hover: hover) {
  .dm-msg:hover .dm-msg-more {
    opacity: 1;
  }
}
@media (hover: none) {
  .dm-msg-more {
    opacity: 0.6;
  }
}
.dm-seen {
  margin: 2px 4px 6px;
  font-size: 11.5px;
  color: var(--text-4);
  text-align: right;
}
.dm-seen[hidden] {
  display: none;
}
.dm-cant {
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  text-align: center;
  color: var(--muted);
}
.dm-compose {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}
.dm-compose textarea {
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 14.5px;
  line-height: 1.4;
  resize: none;
  outline: none;
  overflow-y: hidden;
}
.dm-compose textarea:focus {
  border-color: var(--line-3);
}
.dm-send {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 760px) {
  .dm-page {
    grid-template-columns: minmax(0, 1fr);
  }
  .dm-wide {
    display: none;
  }
  .dm-solo {
    display: flex;
  }
  .dm-list {
    border-right: 0;
  }
  .dm-page .dm-thread {
    display: none;
  }
  .dm-page.dm-reading .dm-list {
    display: none;
  }
  .dm-page.dm-reading .dm-thread {
    display: flex;
  }
  .dm-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.adm-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.adm-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-hi);
}
.adm-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.adm-stats span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 104px;
  padding: 10px 14px 11px;
  border-radius: var(--r-md);
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-top: 2px solid var(--line-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.adm-stats b {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}
.adm-page .fr-tabs {
  gap: 2px;
  margin: 20px 0 20px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.adm-page .fr-tab {
  margin-bottom: 0;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--r-md);
  transition: background-color 0.15s ease-out, color 0.15s ease-out;
}
.adm-page .fr-tab[aria-selected="true"] {
  background: var(--surface-3);
  box-shadow: inset 0 -2px 0 var(--accent);
}
@media (hover: hover) {
  .adm-page .fr-tab:hover {
    background: var(--surface-2);
  }
}
.adm-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 640px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.adm-card-text {
  min-width: 0;
}
.adm-card h2 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-hi);
}
.adm-card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
}
.adm-card .adm-card-state {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.adm-card .fr-btn {
  flex: none;
}
.adm-sub {
  margin: 0 0 14px;
}
.wc-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
}
.wc-switch-row b {
  display: block;
  font-size: 14px;
  color: var(--text-hi);
}
.wc-switch-row span {
  font-size: 12.5px;
  color: var(--muted);
}
.wc-mins-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.an-field .wc-mins-row input {
  width: 110px;
}
.wc-mins-row span {
  font-size: 13.5px;
  color: var(--text-2);
}
.wc-rules {
  margin: 0;
}
.an-live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 6px 1px 2px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent);
  vertical-align: middle;
}
.an-live-dot[hidden] {
  display: none;
}
.an-preview {
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-1);
  overflow: hidden;
}
.an-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.an-state {
  font-weight: 600;
}
.an-preview-page {
  padding-bottom: 40px;
  background: var(--bg);
  box-shadow: inset 0 1px 0 var(--line);
}
.an-preview .ann {
  position: relative;
  top: auto;
}
.an-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 680px;
}
.an-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
}
.an-field > span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-2);
}
.an-field em {
  margin-left: 4px;
  font-style: normal;
  font-weight: 500;
  color: var(--text-4);
}
.an-field input,
.an-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--surface-1);
  color: var(--text-hi);
  font: inherit;
  font-size: 14px;
}
.an-field textarea {
  resize: vertical;
  line-height: 1.45;
}
.an-field input:focus,
.an-field textarea:focus {
  outline: none;
  border-color: var(--line-3);
}
.an-field small {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.an-field small code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-3);
  font-size: 11.5px;
}
.an-field small b {
  font-weight: 600;
  color: var(--text-4);
  font-variant-numeric: tabular-nums;
}
.an-tones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.an-tones button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.an-tones i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}
.an-tones [data-tone="new"] i {
  background: var(--ok);
}
.an-tones [data-tone="warning"] i {
  background: var(--warn);
}
.an-tones [aria-checked="true"] {
  border-color: var(--text-3);
  background: var(--surface-3);
  color: var(--text-hi);
}
.an-row {
  display: flex;
  gap: 12px;
}
.an-row .an-field:first-child {
  flex: 0 0 200px;
}
.an-grow {
  flex: 1;
}
.an-until {
  max-width: 260px;
}
.an-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-2);
  cursor: pointer;
}
.an-check em {
  display: block;
  font-style: normal;
  font-size: 12px;
  color: var(--text-4);
}
.an-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.an-acts {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 4px;
}
.an-spacer {
  flex: 1;
}
.an-acts [hidden] {
  display: none;
}
.an-publish {
  padding: 10px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
  .an-publish:hover {
    background: var(--accent-hi);
  }
}
.an-publish:disabled {
  opacity: 0.5;
  cursor: progress;
}
@media (max-width: 640px) {
  .an-row {
    flex-direction: column;
  }
  .an-row .an-field:first-child {
    flex: none;
  }
}
.adm-hint {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.adm-hint code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface-2);
  font-size: 12.5px;
}
.adm-report {
  max-width: 820px;
  margin-bottom: 12px;
  padding: 16px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.adm-report:target {
  border-color: var(--brand);
}
.adm-report header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-hi);
}
.adm-report time {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-4);
}
.adm-kind,
.adm-more,
.adm-tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}
.adm-more,
.adm-tag.ban {
  background: color-mix(in srgb, var(--danger) 16%, transparent);
  color: var(--danger);
}
.adm-tag + .adm-tag {
  margin-left: 4px;
}
.adm-ok {
  color: var(--text-4);
}
.adm-people-line {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}
.adm-people-line a,
.adm-where a,
.adm-table a {
  color: var(--blue);
  text-decoration: none;
}
.adm-snap {
  margin: 10px 0 0;
  padding: 10px 12px;
  max-height: 220px;
  overflow: auto;
  border-radius: 10px;
  background: var(--surface-2);
  font: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--text);
}
.adm-note {
  margin-top: 8px;
  font-size: 13px;
  font-style: italic;
  color: var(--text-2);
}
.adm-where {
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--text-4);
}
.adm-where:empty {
  display: none;
}
.adm-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.adm-outcome {
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
}
.adm-people {
  margin-top: 16px;
  overflow-x: auto;
}
.adm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.adm-table th {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  font-size: 11.5px;
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.adm-table td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  color: var(--text-2);
}
.adm-table tr[data-user] {
  cursor: pointer;
}
@media (hover: hover) {
  .adm-table tr[data-user]:hover td {
    background: var(--tint-1);
  }
}
.adm-detail {
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.adm-acct {
  display: flex;
  align-items: center;
  gap: 10px;
}
.adm-acct > span:not(.av-letter) {
  display: flex;
  flex-direction: column;
}
.adm-acct b {
  color: var(--text-hi);
}
.adm-acct small {
  font-size: 12px;
  color: var(--muted);
}
.adm-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 14px;
}
.adm-user {
  width: min(560px, calc(100vw - 32px));
}
.adm-u {
  padding: 20px;
  max-height: calc(100dvh - 80px);
  overflow-y: auto;
}
.adm-u header {
  display: flex;
  align-items: center;
  gap: 12px;
}
.adm-u header > span:not(.av-letter) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.adm-u header b {
  font-size: 16px;
  color: var(--text-hi);
}
.adm-u header small a {
  color: var(--blue);
  text-decoration: none;
}
.adm-u h3 {
  margin: 20px 0 8px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.adm-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  margin-top: 16px;
  font-size: 13.5px;
}
.adm-facts dt {
  color: var(--muted);
}
.adm-facts dd {
  margin: 0;
  color: var(--text);
}
.adm-c {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}
.adm-c p {
  overflow-wrap: anywhere;
}
.adm-c small {
  font-size: 12px;
  color: var(--text-4);
}
.adm-c a {
  color: var(--blue);
  text-decoration: none;
}
.adm-c.gone p {
  color: var(--text-4);
}
.adm-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--danger);
  font-size: 12px;
  cursor: pointer;
}
.adm-loglist {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}
.up-seen::before {
  content: "·";
  margin: 0 8px;
}
.up-seen.on {
  color: var(--ok);
}

@keyframes sx-drop {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
}
@keyframes sx-pop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}
@keyframes sx-fade {
  from {
    opacity: 0;
  }
}
@keyframes sx-rise {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.sx-menu {
  transform-origin: top right;
  animation: sx-drop 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sx-menu.up {
  transform-origin: bottom right;
  animation-name: sx-rise;
}
.sx-dialog[open] {
  animation: sx-pop 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sx-dialog[open]::backdrop {
  animation: sx-fade 0.2s ease;
}
.cm-item.cm-new,
.dm-msg.dm-new {
  animation: sx-rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dm-msg.mine.dm-new {
  transform-origin: bottom right;
}
.fr-panel:not([hidden]) {
  animation: sx-fade 0.18s ease;
}
.cm-reply-list > .cm-item {
  animation: sx-fade 0.18s ease;
}
@media (max-width: 480px) {
  .topbar-right {
    gap: 2px;
  }
  .topbar-right .icon-btn {
    width: 34px;
    height: 34px;
  }
}
.adm-reason {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  animation: sx-fade 0.15s ease;
}
.adm-reason b {
  font-size: 13.5px;
  color: var(--text-hi);
}
.adm-reason input {
  padding: 9px 12px;
  border-radius: 9px;
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
  font-size: 13.5px;
  outline: none;
}
.adm-reason span {
  display: flex;
  gap: 6px;
}
.sx-confirm form {
  display: grid;
  gap: 14px;
  padding: 22px;
}
.sx-confirm h2 {
  font-size: 17px;
  color: var(--text-hi);
}
.sx-confirm p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}

.pv-card {
  position: fixed;
  z-index: 250;
  width: 300px;
  padding: 16px;
  border-radius: 16px;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  animation: sx-drop 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.pv-card.pv-sheet {
  top: auto !important;
  left: 0 !important;
  right: 0;
  bottom: 0;
  width: auto;
  padding-bottom: calc(18px + env(safe-area-inset-bottom));
  border-radius: 18px 18px 0 0;
  animation: sx-sheet 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes sx-sheet {
  from {
    transform: translateY(40%);
    opacity: 0;
  }
}
.pv-loading {
  padding: 8px 2px;
  font-size: 13.5px;
  color: var(--muted);
}
.pv-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pv-av {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 24px;
}
.pv-who {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.pv-who b {
  font-size: 15.5px;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.pv-who small {
  font-size: 12.5px;
  color: var(--muted);
}
.pv-who em {
  margin-top: 2px;
  font-size: 12px;
  font-style: normal;
  color: var(--text-4);
}
.pv-who em.on {
  color: var(--ok);
}
.pv-x {
  align-self: flex-start;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-4);
  cursor: pointer;
}
@media (hover: hover) {
  .pv-x:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
.pv-bio {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  overflow-wrap: anywhere;
}
.pv-card .up-links {
  margin-top: 10px;
}
.pv-joined {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-4);
}
.pv-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.pv-acts .btn-sub,
.pv-acts .btn-pill {
  padding: 8px 14px;
  font-size: 13px;
  text-decoration: none;
}
.pv-full {
  display: block;
  margin-top: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.sx-more {
  padding-left: 13px;
  padding-right: 13px;
}

.mp-panel {
  position: fixed;
  z-index: 240;
  width: min(380px, calc(100vw - 16px));
  max-height: min(560px, calc(100dvh - 80px));
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform-origin: top right;
  animation: sx-drop 0.16s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 6px;
}
.mp-head strong {
  font-size: 16px;
  color: var(--text-hi);
}
.mp-full {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
}
.mp-tabs {
  margin: 6px 16px 6px;
}
.mp-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 8px 10px;
}

.dk {
  --dk-w: min(640px, calc(100vw - 48px));
  --dk-chat: calc(var(--dk-w) - 256px);
  position: fixed;
  right: 24px;
  bottom: 0;
  z-index: 230;
  display: flex;
  justify-content: flex-end;
  width: var(--dk-w);
  height: min(500px, calc(100dvh - 120px));
  height: round(down, min(500px, calc(100dvh - 120px)), 1px);
  border-radius: 14px 14px 0 0;
  background: var(--surface-1);
  border: 1px solid var(--line-2);
  border-bottom: 0;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: sx-sheet 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dk.still {
  animation: none;
}
.dk {
  transition: transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dk.min {
  transform: translateY(calc(100% - 57px));
}
.dk.closing {
  pointer-events: none;
  animation: dk-out 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}
@keyframes dk-out {
  to {
    translate: 0 40%;
    opacity: 0;
  }
}
.dk.nolist {
  width: var(--dk-chat);
}
.dk.sliding {
  transition:
    width 0.26s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dk.sliding .dk-side {
  transition:
    opacity 0.2s ease,
    visibility 0s linear 0.26s;
}
.dk-side {
  display: flex;
  flex-direction: column;
  width: 256px;
  flex-shrink: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
}
.dk.nolist .dk-side {
  visibility: hidden;
  opacity: 0;
}
.dk.sliding:not(.nolist) .dk-side {
  transition: opacity 0.2s ease 0.06s;
}
.dk-shead,
.dk .dk-head {
  flex-shrink: 0;
  height: 56px;
  min-height: 0;
  border-bottom: 1px solid var(--line);
}
.dk-shead {
  display: flex;
  align-items: center;
  padding: 0 16px;
}
.dk .dk-head {
  padding: 0 8px 0 10px;
}
.dk .dk-head .mc-who b {
  line-height: 18px;
}
.dk .dk-head .mc-who small {
  line-height: 16px;
}
.dk-shead strong {
  font-size: 15px;
  color: var(--text-hi);
}
.dk-tabs {
  margin: 10px 12px 6px;
}
.dk-list {
  flex: 1;
  overflow-y: auto;
  padding: 2px 6px 10px;
}
.dk-list .dm-conv {
  gap: 10px;
  padding: 7px 8px;
}
.dk-list .dm-av {
  width: 34px;
  height: 34px;
}
.dk-list .dm-conv-tx b {
  font-size: 13px;
}
.dk-list .dm-conv-tx span {
  font-size: 12px;
}
.dk-list .dm-conv-side {
  font-size: 10.5px;
}
.dk .mc-av {
  width: 30px;
  height: 30px;
}
.dk-main {
  display: flex;
  flex-direction: column;
  flex: none;
  width: calc(var(--dk-chat) - 2px);
  min-width: 0;
}
.dk-head {
  cursor: default;
}
.dk-listbtn[aria-pressed="true"] {
  color: var(--text-hi);
  background: var(--tint-1);
}
.dk-title b {
  font-size: 14px;
}
.dk-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 4px;
  padding: 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
}
.dk-empty b {
  font-size: 15px;
  color: var(--text-hi);
}
.dk.min .dk-listbtn {
  display: none;
}
.dk.min .dk-head,
.dk.min .dk-shead {
  cursor: pointer;
}
.dk-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
}
@media (max-width: 699px) {
  .dk {
    display: none;
  }
}
.mc-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px 8px 8px 12px;
  border-bottom: 1px solid var(--line);
}
.mc-who {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: 1;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.mc-who > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.mc-who b {
  font-size: 14px;
  color: var(--text-hi);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mc-who small {
  font-size: 11.5px;
  color: var(--muted);
}
.mc-av {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 14px;
}
.mc-btns {
  display: flex;
  flex-shrink: 0;
}
.mc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
@media (hover: hover) {
  .mc-icon:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
.mc-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.mc-banner {
  padding: 10px 12px;
  font-size: 12.5px;
}
.mc-banner p {
  min-width: 0;
}
.mc-scroll {
  padding: 10px 10px 4px;
}
.mc-scroll .dm-bubble {
  max-width: 82%;
  font-size: 13.5px;
}
.mc-compose {
  padding: 8px;
}
.mc-compose textarea {
  padding: 8px 12px;
  font-size: 13.5px;
}
.mc-compose .dm-send {
  width: 36px;
  height: 36px;
}

.ac-upload {
  border: 1px dashed var(--line-3);
}
.ac-plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 26px;
  font-weight: 300;
}
.ac-pic-del {
  align-self: center;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
@media (hover: hover) {
  .ac-pic-del:hover {
    color: var(--danger);
  }
}
.ac-crop {
  width: min(360px, calc(100vw - 32px));
}
.ac-crop form {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 22px;
}
.ac-crop h2 {
  justify-self: start;
  font-size: 17px;
  color: var(--text-hi);
}
.ac-crop-view {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--surface-3);
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.ac-crop-view:active {
  cursor: grabbing;
}
.ac-crop-view img {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  max-width: none;
  pointer-events: none;
}
.ac-crop-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(0, 0, 0, 0.55);
  outline: 2px solid rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.ac-zoom {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  color: var(--muted);
}
.ac-zoom input {
  flex: 1;
  accent-color: var(--brand);
}
.ac-crop .sx-actions {
  justify-self: stretch;
}
.adm-pic {
  display: block;
  width: 72px;
  height: 72px;
  margin-top: 10px;
  border-radius: 50%;
  object-fit: cover;
}

.pw-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.pw-wrap input {
  width: 100%;
  padding-right: 44px !important;
}
.pw-eye {
  position: absolute;
  top: 50%;
  right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--text-4);
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.15s ease, background 0.15s ease;
}
.pw-eye[aria-pressed="true"] {
  color: var(--text-hi);
}
@media (hover: hover) {
  .pw-eye:hover {
    color: var(--text-hi);
  }
}
@media (hover: hover) {
  .pw-eye:hover {
    background: var(--tint-1);
  }
}
.pw-eye:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}
.pw-wrap input::-ms-reveal {
  display: none;
}

.cm-teaser,
.cm-backdrop,
.cm-grab,
.cm-close {
  display: none;
}
.cm-panel {
  display: flex;
  flex-direction: column;
}
@media (max-width: 1100px) {
  .cm {
    margin: 14px 0 6px;
  }
  .cm-teaser {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 10px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    border-radius: var(--r-lg);
    background: var(--surface-1);
    color: var(--text);
    text-align: left;
    cursor: pointer;
  }
  .cm-teaser:active {
    background: var(--surface-2);
  }
  .cm-teaser-head {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 14.5px;
    color: var(--text-hi);
  }
  .cm-teaser-head span {
    font-size: 13px;
    color: var(--muted);
  }
  .cm-teaser-chev {
    grid-row: 1 / 3;
    grid-column: 2;
    align-self: center;
    color: var(--muted);
  }
  .cm-teaser-body {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    font-size: 13px;
    color: var(--text-2);
  }
  .cm-teaser-av .cm-av-img {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }
  .cm-teaser-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .cm-teaser-text i {
    color: var(--brand);
    font-style: normal;
    font-weight: 600;
  }
  .cm-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 270;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .cm-panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 275;
    height: min(82dvh, 760px);
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
    border-radius: 18px 18px 0 0;
    background: var(--surface-1);
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.45);
    transform: translateY(105%);
    visibility: hidden;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0.3s;
  }
  .cm-panel.dragging {
    transition: none;
  }
  .cm-open .cm-backdrop {
    opacity: 1;
    visibility: visible;
  }
  .cm-open .cm-panel {
    transform: translateY(0);
    visibility: visible;
  }
  .cm-grab {
    display: flex;
    justify-content: center;
    padding: 10px 0 4px;
    touch-action: none;
    cursor: grab;
  }
  .cm-grab i {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--line-3);
  }
  .cm-panel > .cm-head {
    margin: 0;
    padding: 4px 0 12px;
    border-bottom: 1px solid var(--line);
    touch-action: none;
  }
  .cm-panel > .cm-head h2 {
    font-size: 16px;
  }
  .cm-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: none;
    color: var(--text-2);
    font-size: 16px;
    cursor: pointer;
  }
  @media (hover: hover) {
    .cm-close:hover {
      background: var(--tint-1);
    }
  }
  .cm-scrollarea {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 6px 0 10px;
  }
  .cm-panel #cmComposer {
    order: 3;
    padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
  }
  .cm-panel #cmComposer .cm-compose {
    margin-bottom: 0;
  }
  .cm-panel #cmComposer .cm-field textarea {
    max-height: 120px;
  }
  .cm-foot .cm-btn {
    margin-left: 0;
  }
  html.cm-locked,
  html.cm-locked body {
    overflow: hidden;
  }
}

.dd {
  overflow-y: auto;
  overscroll-behavior: contain;
}
.dd.up {
  top: auto;
  bottom: 46px;
  transform-origin: bottom right;
}

.browse .browse-head {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.browse .browse-head h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
}
.bx-bar {
  display: flex;
  align-items: center;
  gap: 10px 22px;
  flex-wrap: wrap;
}
.bx-search {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 1 340px;
  min-width: 220px;
  height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid transparent;
  color: var(--text-4);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.bx-search:focus-within {
  border-color: var(--line-3);
  background: var(--surface-1);
}
.bx-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  outline: none;
}
.bx-search input::-webkit-search-cancel-button {
  filter: grayscale(1);
}
.bx-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.bx-filters .f-select {
  position: static;
  gap: 6px;
  padding: 8px 12px 8px 15px;
  border: 0;
  border-radius: 9px;
  background: var(--chip);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-hi);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.bx-filters .f-select:not(.has-sel)[aria-expanded="true"] {
  background: var(--surface-4);
}
@media (hover: hover) {
  .bx-filters .f-select:not(.has-sel):hover {
    background: var(--surface-4);
  }
}
.bx-filters .f-select [data-ph] {
  flex: none;
  color: inherit;
}
.bx-filters .f-select.has-sel {
  background: var(--inverse);
  color: var(--on-inverse);
}
.bx-filters .f-chev {
  padding: 0;
  color: inherit;
  opacity: 0.7;
  transition: transform 0.18s ease;
}
.bx-filters .f-select[aria-expanded="true"] .f-chev {
  transform: rotate(180deg);
}
.bx-filters .f-select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.bx-filters .f-drop {
  position: fixed;
  right: auto;
  z-index: 120;
  max-height: 360px;
  font-weight: 500;
  border-radius: 14px;
  box-shadow: var(--shadow);
  animation: sx-drop 0.14s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.browse .active-chips {
  align-items: center;
  margin: 18px 0 0;
}
.browse .active-chips:empty {
  margin: 0;
}
.browse .a-chip {
  padding: 6px 10px 6px 13px;
  border: 0;
  background: var(--inverse);
  color: var(--on-inverse);
  font-weight: 700;
}
.browse .a-chip span {
  color: var(--on-inverse);
  opacity: 0.6;
  font-size: 10px;
}
@media (hover: hover) {
  .browse .a-chip:hover span {
    opacity: 1;
    color: var(--on-inverse);
  }
}
.browse .a-reset {
  margin-left: 6px;
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
@media (hover: hover) {
  .browse .a-reset:hover {
    text-decoration: underline;
  }
}
.browse .poster-grid {
  margin-top: 22px;
}
@media (max-width: 700px) {
  .bx-search {
    flex: 1 1 100%;
  }
  .bx-filters {
    width: 100%;
  }
}

.copied {
  color: var(--ok) !important;
}

.watch-title:empty {
  min-height: 1.4em;
}
.watch-title:empty::before,
.w-name:empty::before {
  content: "";
  display: block;
  border-radius: 6px;
  background: var(--surface-2);
  animation: skel 1.1s ease-in-out infinite alternate;
}
.watch-title:empty::before {
  width: min(420px, 70%);
  height: 18px;
  margin-top: 4px;
}
.w-name:empty::before {
  width: 96px;
  height: 14px;
}
.desc-line:empty {
  min-height: 18.75px;
}
.desc-text:empty {
  min-height: 2.86em;
  background:
    linear-gradient(var(--surface-2), var(--surface-2)) 0 4px / 92% 12px no-repeat,
    linear-gradient(var(--surface-2), var(--surface-2)) 0 25px / 60% 12px no-repeat;
  border-radius: 4px;
  animation: skel 1.1s ease-in-out infinite alternate;
}
.desc-line:empty::before {
  content: "";
  width: 180px;
  height: 11px;
  border-radius: 4px;
  background: var(--surface-2);
  animation: skel 1.1s ease-in-out infinite alternate;
}
@media (max-width: 1100px) {
  .cm:empty {
    min-height: 71px;
  }
}
.w-name:empty::before {
  width: 80px;
}
.topbar .msg-btn[hidden] {
  display: flex;
}
.filter-bar:empty::before {
  content: "";
  display: block;
  height: 36.25px;
}
@media (max-width: 700px) {
  .filter-bar:empty::before {
    height: 33.5px;
  }
}
@media (max-width: 700px) {
  .watch-title:empty {
    min-height: 2.8em;
  }
}
@media (max-width: 700px) {
  .anime-hero.loading .hero-stats {
    min-height: 32px;
  }
  .anime-hero.loading .tag-row {
    min-height: 30px;
  }
  .watch-title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}
@media (max-width: 700px) {
  .desc-text:empty {
    min-height: 4.29em;
    background:
      linear-gradient(var(--surface-2), var(--surface-2)) 0 4px / 94% 12px no-repeat,
      linear-gradient(var(--surface-2), var(--surface-2)) 0 25px / 88% 12px no-repeat,
      linear-gradient(var(--surface-2), var(--surface-2)) 0 47px / 56% 12px no-repeat;
  }
}

.topbar-right .pm-wrap {
  height: 38px;
  display: flex;
  align-items: center;
  margin-left: 8px;
}
@media (pointer: coarse) {
  .topbar-right .pm-wrap {
    height: 42px;
    margin-left: 10px;
  }
}
@media (max-width: 480px) {
  .topbar-right .pm-wrap {
    height: 34px;
    margin-left: 6px;
  }
}
.topbar-right .pm,
.topbar-right .notif-dd {
  top: calc(100% + 10px);
}
@media (max-width: 700px) {
  .topbar-right .pm,
  .topbar-right .notif-dd {
    top: calc(var(--topbar-base) + env(safe-area-inset-top, 0px) + 8px);
  }
}

@media (hover: hover) {
  :where(a, button, [role="tab"], [role="menuitem"], [role="option"]):hover {
    transition-duration: 0s;
  }
}
@media (hover: none) {
  .nt-acts {
    opacity: 1;
    pointer-events: auto;
  }
  .nt-dot {
    opacity: 0;
  }
  .nt-item.unread {
    background: var(--tint-1);
  }
}

.topbar .icon-btn[aria-expanded="true"] {
  background: var(--chip);
}
.topbar .avatar[aria-expanded="true"] {
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--line-3);
}

.cw {
  margin: -8px 0 24px;
}
.cw .shelf-head {
  margin-bottom: 9px;
}
.cw[hidden] {
  display: none;
}
.cw h2 {
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--text-hi);
}
.ep-grid.cw-grid {
  grid-auto-columns: 216px;
  gap: 12px;
}
.cw-grid .ep-title,
.cw-grid .ep-sub {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cw-grid .ep-sub {
  display: block;
  margin-top: 2px;
}
.cw-prog {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
}
.cw-prog i {
  display: block;
  height: 100%;
  background: var(--brand);
}
.cw-grid .ep-thumb .time {
  bottom: 9px;
}
.cw-soon .ep-fallback,
.cw-soon .ep-img {
  filter: brightness(0.72);
}
.cw-x {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 11px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.cw-card:focus-visible .cw-x,
.cw-x:focus-visible {
  opacity: 1;
}
@media (hover: hover) {
  .cw-card:hover .cw-x {
    opacity: 1;
  }
}
@media (hover: none) {
  .cw-x {
    opacity: 0.85;
  }
}
.cw-skel .ep-thumb {
  background: var(--surface-2);
  animation: skel 1.1s ease-in-out infinite alternate;
}
.cw-skel::after {
  content: "";
  display: block;
  width: 70%;
  height: 12px;
  margin-top: 10px;
  border-radius: 4px;
  background: var(--surface-2);
  box-shadow: 0 20px 0 -2px var(--surface-2);
}
@media (max-width: 700px) {
  .ep-grid.cw-grid {
    grid-auto-columns: 230px;
  }
}

.topbar::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 200px;
  background: var(--bg);
  pointer-events: none;
}
.sidebar {
  height: auto;
  bottom: -160px;
  padding-bottom: calc(12px + 160px + 80px + env(safe-area-inset-bottom));
}
.nav-scrim {
  bottom: -160px;
}
.topbar .tb-back {
  display: none;
  width: 30px;
  margin-right: -6px;
}
@media (max-width: 700px) {
  .topbar .tb-back {
    display: flex;
  }
}
.ios-app .topbar .tb-back {
  display: flex;
}

.dm-conv {
  position: relative;
}
.dm-conv-more {
  position: absolute;
  top: 50%;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 0;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 15px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}
.dm-conv-more:focus-visible,
.dm-conv-more[aria-expanded="true"] {
  opacity: 1;
}
@media (hover: hover) {
  .dm-conv:hover .dm-conv-more {
    opacity: 1;
  }
  .dm-conv:hover .dm-conv-side,
  .dm-conv:has(.dm-conv-more[aria-expanded="true"]) .dm-conv-side {
    visibility: hidden;
  }
}
@media (hover: none) {
  .dm-conv {
    padding-right: 38px;
  }
  .dm-conv-more {
    opacity: 0.7;
    background: none;
  }
}
.dm-edited {
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.65;
}
.dm-bubble.dm-gone {
  background: none;
  border: 1px dashed var(--line-2);
  color: var(--text-4);
  font-style: italic;
}
.dm-msg.mine .dm-bubble.dm-gone {
  background: none;
  color: var(--text-4);
}
.dm-editing .dm-bubble {
  width: min(520px, 78%);
}
.dm-edit {
  display: block;
  width: 100%;
  min-width: 180px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  line-height: inherit;
  resize: none;
  outline: none;
}
.dm-edit-hint {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  opacity: 0.75;
}
.dm-editing .dm-msg-more {
  visibility: hidden;
}

.rnd {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  overflow: hidden;
}
dialog.sx-dialog.rnd {
  position: fixed;
  inset: 0;
  margin: auto;
  height: fit-content;
}
.rnd-x {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
}
.rnd-top {
  position: relative;
  height: 128px;
  background: var(--surface-2) center/cover;
}
.rnd-top::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: -2px;
  left: 0;
  background: linear-gradient(transparent 20%, var(--surface-1) 94%);
}
.rnd-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  min-height: 150px;
  margin-top: -64px;
  padding: 0 22px 20px;
}
.rnd-poster {
  display: block;
  aspect-ratio: 3/4.2;
  border-radius: 10px;
  background: var(--surface-2) center/cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.rnd-info {
  min-width: 0;
  padding-top: 60px;
}
.rnd-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand);
}
.rnd-info h2 {
  margin: 4px 0 6px;
  font-size: 20px;
  line-height: 1.25;
}
.rnd-info h2 a {
  color: var(--text-hi);
  text-decoration: none;
}
.rnd-meta {
  font-size: 12.5px;
  color: var(--muted);
}
.rnd-meta b {
  color: #ffd60a;
}
.rnd-desc {
  display: -webkit-box;
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-2);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rnd-card.loading .rnd-top,
.rnd-card.loading .rnd-poster {
  animation: skel 1.1s ease-in-out infinite alternate;
}
.rnd-msg {
  padding: 56px 28px 40px;
  text-align: center;
}
.rnd-msg b {
  font-size: 16px;
  color: var(--text-hi);
}
.rnd-msg p {
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}
.rnd-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 22px 18px;
  border-top: 1px solid var(--line);
}
.rnd-from {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 18px;
  background: var(--surface-2);
}
.rnd-from button {
  padding: 6px 12px;
  border: 0;
  border-radius: 14px;
  background: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}
.rnd-from button.on {
  background: var(--inverse);
  color: var(--on-inverse);
}
.rnd-acts {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.rnd-acts .btn-pill,
.rnd-acts .btn-play {
  min-width: 0;
  padding: 9px 16px;
  font-size: 13.5px;
  white-space: nowrap;
  text-decoration: none;
}
.rnd-acts [hidden] {
  display: none;
}
@media (max-width: 480px) {
  .rnd-body {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 14px;
    padding: 0 16px 16px;
  }
  .rnd-info {
    padding-top: 56px;
  }
  .rnd-info h2 {
    font-size: 17px;
  }
  .rnd-foot {
    padding: 12px 16px 16px;
  }
  .rnd-acts {
    width: 100%;
  }
  .rnd-acts > * {
    flex: 1;
  }
}

.sx-watch {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
}
.sx-watch .sx-on {
  font: inherit;
  font-style: normal;
  color: var(--ok);
}

.filter-bar,
.ep-grid,
.rel-row,
#wlSeg,
.day-bar,
.fr-tabs,
.adm-people {
  overflow-y: hidden;
}

.dd {
  scrollbar-width: thin;
  scrollbar-color: var(--line-3) transparent;
}
.dd::-webkit-scrollbar {
  width: 6px;
}
.dd::-webkit-scrollbar-track {
  background: transparent;
  margin: 12px 0;
}
.dd::-webkit-scrollbar-thumb {
  background: var(--line-3);
  border-radius: 6px;
}
.dd::-webkit-scrollbar-button {
  display: none;
  height: 0;
}

html.has-ann {
  --topbar-h: calc(var(--topbar-base) + env(safe-area-inset-top, 0px) + var(--ann-h, 0px));
}
html.has-ann .topbar {
  height: calc(var(--topbar-base) + env(safe-area-inset-top, 0px));
}
.ann {
  --ann-c: var(--blue);
  position: sticky;
  top: calc(var(--topbar-base) + env(safe-area-inset-top, 0px));
  z-index: 9;
  background: var(--surface-1);
  box-shadow: inset 0 -1px 0 var(--line);
}
.ann::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--bg);
  pointer-events: none;
}
.ann-body {
  display: contents;
}
.ann-new {
  --ann-c: var(--ok);
}
.ann-warning {
  --ann-c: var(--warn);
}
.ann-in {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 52px;
}
.ann-enter .ann-in {
  animation: ann-in 0.3s ease;
}
@keyframes ann-in {
  from {
    opacity: 0;
  }
}
.ann-text {
  flex: 0 1 auto;
  max-width: 760px;
  margin: 0;
  min-width: 0;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-2);
}
.ann-tag {
  flex-shrink: 0;
  align-self: center;
  padding: 2px 7px;
  border-left: 2px solid var(--ann-c);
  border-radius: 0 5px 5px 0;
  background: color-mix(in srgb, var(--ann-c) 10%, transparent);
  color: var(--ann-c);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  white-space: nowrap;
}
.ann-text a {
  color: var(--text-hi);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--line-3);
  text-underline-offset: 3px;
}
@media (hover: hover) {
  .ann-text a:hover {
    text-decoration-color: var(--text-hi);
  }
}
.ann-cta {
  flex-shrink: 0;
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--chip);
  color: var(--text-hi);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease;
}
.ann-cta span {
  color: var(--muted);
  transition: transform 0.15s ease;
}
@media (hover: hover) {
  .ann-cta:hover {
    background: var(--surface-4);
  }
  .ann-cta:hover span {
    transform: translateX(2px);
  }
}
.ann-x {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-4);
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}
@media (hover: hover) {
  .ann-x:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
@media (max-width: 640px) {
  .ann-in {
    justify-content: flex-start;
    gap: 10px;
    padding: 9px 44px 10px 14px;
  }
  .ann-body {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .ann-cta {
    margin-left: 0;
  }
  .ann-x {
    top: 6px;
    right: 6px;
    margin-top: 0;
  }
}

.nt-sound.off {
  color: var(--text-4);
}
.nt-foot-acts {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nt-logo {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  background: var(--mark) center/cover;
}
.nt-tip {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
.nt-welcome .nt-said,
.nt-item.unread.nt-welcome .nt-said {
  -webkit-line-clamp: 4;
  font-weight: 500;
  color: var(--text-2);
}
.nt-welcome .nt-said b {
  font-weight: 700;
  color: var(--text-hi);
}
.st-ctrl-pair {
  display: flex;
  gap: 8px;
}
.mpop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 240;
  display: flex;
  align-items: center;
  width: min(340px, calc(100vw - 32px));
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--surface-1);
  box-shadow: var(--shadow);
  animation: mpop-in 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dk ~ .mpop {
  bottom: 88px;
}
.mpop.out {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.mpop.bump {
  animation: mpop-bump 0.3s ease;
}
@keyframes mpop-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes mpop-bump {
  40% {
    transform: scale(1.02);
  }
}
.mpop-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 6px 12px 14px;
  border: 0;
  border-radius: 14px 0 0 14px;
  background: none;
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mpop-av {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 16px;
}
.mpop-tx {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.mpop-tx b {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-hi);
}
.mpop-tx span {
  overflow: hidden;
  font-size: 13px;
  color: var(--text-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mpop-x {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-right: 8px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--text-4);
  cursor: pointer;
}
@media (hover: hover) {
  .mpop-main:hover .mpop-tx b {
    text-decoration: underline;
  }
  .mpop-x:hover {
    background: var(--tint-1);
    color: var(--text-hi);
  }
}
@media (max-width: 699px) {
  .mpop,
  .dk ~ .mpop {
    top: calc(var(--topbar-h) + 8px);
    right: 10px;
    bottom: auto;
    left: 10px;
    width: auto;
  }
  @keyframes mpop-in {
    from {
      opacity: 0;
      transform: translateY(-12px);
    }
  }
  .mpop.out {
    transform: translateY(-8px);
  }
}
.reduce-motion .mpop,
.reduce-motion .mpop.bump {
  animation: none;
}

html.nsfw-blur .nsfw {
  overflow: hidden;
  isolation: isolate;
}
html.nsfw-blur .nsfw:not(.ep-thumb):not(.hist-thumb):not(.trailer):not(.sub-cv-wrap)::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  bottom: -24px;
  left: -24px;
  z-index: 8;
  background: inherit;
  background-size: cover;
  background-position: center;
  filter: blur(20px) brightness(0.8) saturate(0.85);
  transform: none;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
html.nsfw-blur .nsfw img,
html.nsfw-blur .nsfw .ep-fallback {
  filter: blur(20px) brightness(0.8) saturate(0.85);
  transform: scale(1.15);
  transition:
    filter 0.25s ease,
    transform 0.25s ease;
}
html.nsfw-blur .nsfw.nsfw-label::after {
  content: "Sensitive";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 9;
  width: auto;
  height: auto;
  margin: 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  box-shadow: none;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}
html.nsfw-blur .nsfw > .pc-ep,
html.nsfw-blur .nsfw > .pc-score,
html.nsfw-blur .nsfw > .time,
html.nsfw-blur .nsfw > .ep-num,
html.nsfw-blur .nsfw > .cw-prog,
html.nsfw-blur .nsfw > .cw-x,
html.nsfw-blur .nsfw > b {
  z-index: 10;
}
@media (hover: hover) {
  html.nsfw-blur .nsfw:not(.ep-thumb):not(.hist-thumb):not(.trailer):not(.sub-cv-wrap):hover::before,
  html.nsfw-blur a:hover .nsfw:not(.ep-thumb):not(.hist-thumb):not(.trailer):not(.sub-cv-wrap)::before,
  html.nsfw-blur .nsfw:hover::before,
  html.nsfw-blur a:hover .nsfw::before,
  html.nsfw-blur .nsfw.nsfw-label:hover::after,
  html.nsfw-blur a:hover .nsfw.nsfw-label::after {
    opacity: 0;
  }
  html.nsfw-blur .nsfw:hover img,
  html.nsfw-blur a:hover .nsfw img,
  html.nsfw-blur .nsfw:hover .ep-fallback,
  html.nsfw-blur a:hover .nsfw .ep-fallback {
    filter: none;
    transform: none;
  }
}
html.nsfw-blur .nsfw.nsfw-shown:not(.ep-thumb):not(.hist-thumb):not(.trailer):not(.sub-cv-wrap)::before,
html.nsfw-blur .nsfw.nsfw-shown.nsfw-label::after {
  opacity: 0;
}
html.nsfw-blur .nsfw.nsfw-shown img,
html.nsfw-blur .nsfw.nsfw-shown .ep-fallback {
  filter: none;
  transform: none;
}
html.nsfw-blur .trailer.nsfw .trailer-play {
  opacity: 0;
  transition: opacity 0.25s ease;
}
@media (hover: hover) {
  html.nsfw-blur .trailer.nsfw:hover .trailer-play {
    opacity: 1;
  }
}
html.nsfw-blur .trailer.nsfw.nsfw-shown .trailer-play {
  opacity: 1;
}
html.nsfw-blur .nsfw:not(.ap-poster):not(#heroBg) {
  position: relative;
}
.sub-cv-wrap {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 6px;
}
html.nsfw-hide .nsfw-card {
  display: none !important;
}

html.lite .topbar::after {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
}
html.lite .hero-bg {
  filter: brightness(0.55);
}
html.lite .ep-fallback {
  filter: brightness(0.4) saturate(0.85);
}
html.lite .ap-big,
html.lite .ap-bubble,
html.lite .ap-settings,
html.lite .ap-cbtn {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(10, 10, 12, 0.85);
}
html.lite .ap-ambient {
  display: none;
}
html.lite.nsfw-blur .nsfw:not(.ep-thumb):not(.hist-thumb):not(.trailer):not(.sub-cv-wrap)::before,
html.lite.nsfw-blur .nsfw img,
html.lite.nsfw-blur .nsfw .ep-fallback {
  filter: blur(12px) brightness(0.6) saturate(0.8);
  transition: none;
}


.nt-welcome .nt-said,
.nt-badgerow .nt-said,
.nt-item.unread.nt-welcome .nt-said {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
@media (hover: none) {
  .nt-welcome .nt-acts,
  .nt-badgerow .nt-acts {
    top: 12px;
    transform: none;
    flex-direction: column;
  }
  .nt-welcome .nt-side,
  .nt-badgerow .nt-side {
    width: 34px;
    min-width: 34px;
    flex-basis: 34px;
  }
  .nt-welcome .nt-acts,
  .nt-badgerow .nt-acts {
    right: 4px;
  }
}

.adm-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 12px 0;
  font-size: 13px;
  color: var(--muted);
}
.adm-pager-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.adm-pager-nav span {
  font-variant-numeric: tabular-nums;
}
.adm-pager-per select {
  margin-left: 6px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface-1);
  color: var(--text);
  font: inherit;
}

.pc-add {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 9;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 10, 12, 0.72);
  color: #fff;
  opacity: 0;
  transform: scale(0.9);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    background-color 0.15s ease;
  cursor: pointer;
}
.poster-card:hover .pc-add,
.poster-card:focus-within .pc-add,
.pc-add:focus-visible {
  opacity: 1;
  transform: none;
}
@media (hover: hover) {
  .poster-card:hover .pc-score,
  .poster-card:focus-within .pc-score {
    opacity: 0;
  }
}
@media (hover: hover) {
  .pc-add:hover {
    background: var(--accent);
  }
}
@media (hover: none) {
  .pc-add {
    display: none;
  }
}

.wl-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wl-find {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 12px;
  border-radius: 19px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.wl-find:focus-within {
  border-color: var(--line-3);
}
.wl-find input {
  width: 170px;
  border: 0;
  background: none;
  color: var(--text-hi);
  font: inherit;
  font-size: 14px;
  outline: 0;
}
.wl-sort {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  border-radius: 19px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-hi);
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}
@media (hover: hover) {
  .wl-sort:hover {
    background: var(--surface-3);
  }
}
@media (max-width: 600px) {
  .wl-tools {
    width: 100%;
  }
  .wl-find {
    flex: 1;
  }
  .wl-find input {
    width: 100%;
  }
}

@media (min-width: 1101px) {
  .watch-layout.theater {
    --tw: min(calc(100% - 96px), calc((100vh - var(--topbar-h) - 48px) * 16 / 9));
    position: relative;
    padding-top: calc(24px + var(--tw) * 9 / 16 + 26px);
    overflow-x: clip;
  }
  .watch-layout.theater .watch-main {
    position: static !important;
  }
  .watch-layout.theater .player {
    position: absolute;
    top: 24px;
    left: 50%;
    width: var(--tw);
    transform: translateX(-50%);
  }
}
.player {
  view-transition-name: watch-player;
}
.watch-side {
  view-transition-name: watch-side;
}
::view-transition-group(watch-player),
::view-transition-group(watch-side),
::view-transition-group(root) {
  animation-duration: 0.38s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
}
.ap-theater.on,
.ap-lights.on {
  color: var(--accent-hi);
}
.ap-lights.on svg path {
  fill: currentColor;
  fill-opacity: 0.22;
}
.ap-dim {
  position: fixed;
  inset: 0;
  z-index: 262;
  background: rgba(0, 0, 0, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.ap-dim.on {
  opacity: 1;
  pointer-events: auto;
  cursor: pointer;
}
html.lights-off .player {
  z-index: 263;
}
@media (prefers-reduced-motion: reduce) {
  .ap-dim {
    transition: none;
  }
}
.ap.full .ap-skip,
.ap.full .ap-next {
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(96px + env(safe-area-inset-bottom));
}
.ap.full .ap-theater,
.ap.full .ap-lights,
.ap-mini[hidden] {
  display: none;
}
@media (max-width: 1100px) {
  .ap-theater {
    display: none;
  }
}
@media (max-width: 480px) {
  .ap-mini {
    display: none;
  }
}
.ap-subs {
  z-index: 5;
}

@media (max-width: 480px) {
  .topbar .search-wrap {
    position: relative;
  }
  .topbar .search-wrap .search-btn {
    position: absolute;
    left: 1px;
    top: 1px;
    bottom: 1px;
    z-index: 1;
    width: 34px;
    height: auto;
    padding: 0 0 0 4px;
    justify-content: center;
    border: 0;
    border-radius: 20px 0 0 20px;
    background: none;
    color: var(--muted);
  }
  .topbar .search-wrap .search-btn svg {
    width: 17px;
    height: 17px;
  }
  .topbar .search-wrap input,
  .topbar .qs-wrap input {
    padding-left: 36px;
    padding-right: 30px;
    border-radius: 20px;
  }
  .topbar .qs-clear {
    right: 8px;
  }
}

.adm-onow {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 4px 0 14px;
}
.adm-onow .an-live-dot {
  align-self: center;
}
.adm-onow b {
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text-hi);
}
.adm-onow span {
  font-size: 15px;
  color: var(--muted);
}
.adm-osplit {
  margin-bottom: 18px;
}
.adm-osplit b {
  font-variant-numeric: tabular-nums;
}
.adm-chart {
  position: relative;
  padding: 14px 16px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface-1);
}
.adm-chart h3 {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.adm-chart svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: pan-y;
}
.adm-chart text {
  font-size: 11px;
  fill: var(--text-4);
}
.adm-chart .g {
  stroke: var(--line);
  stroke-width: 1;
}
.adm-chart .l {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.adm-chart .a {
  fill: color-mix(in srgb, var(--accent) 12%, transparent);
}
.adm-chart .cross {
  stroke: var(--line-3);
  stroke-width: 1;
}
.adm-chart .dot {
  fill: var(--accent);
  stroke: var(--surface-1);
  stroke-width: 2;
}
.adm-tip {
  position: absolute;
  top: 36px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  transform: translateX(-50%);
  pointer-events: none;
}
.adm-tip b {
  color: var(--text-hi);
}
.adm-tip small {
  color: var(--muted);
}
.adm-tip[hidden] {
  display: none;
}

.adm-cbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
}
.adm-cbar .fr-search {
  flex: 1 1 260px;
}
#admComments,
#admLog {
  margin-top: 16px;
  overflow-x: auto;
}
.adm-ctable td {
  vertical-align: top;
}
.adm-cbody {
  min-width: 240px;
  max-width: 460px;
}
.adm-cbody p {
  color: var(--text);
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.adm-cbody small {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}
.adm-cbody small .adm-tag + .adm-tag {
  margin-left: 0;
}
.adm-ctable tr.gone .adm-cbody p {
  color: var(--text-4);
}
.adm-ctable td:last-child {
  text-align: right;
  white-space: nowrap;
}
.fr-btn.adm-sm {
  padding: 5px 10px;
  font-size: 12px;
}
.adm-online + .adm-hint {
  margin-top: 12px;
}

.bx-modes {
  display: flex;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-1);
  border: 1px solid var(--line);
}
.bx-modes button {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--text-3);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  .bx-modes button:hover {
    color: var(--text-hi);
  }
}
.bx-modes button[aria-selected="true"] {
  background: var(--surface-3);
  color: var(--text-hi);
}
.bx-modes button[aria-selected="true"] svg {
  color: var(--accent-hi);
}
.bx-filters[hidden] {
  display: none;
}
@media (max-width: 560px) {
  .browse-head {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .bx-modes {
    width: 100%;
  }
  .bx-modes button {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    padding: 7px 2px;
    font-size: 11.5px;
  }
}

.pp-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
@media (max-width: 1280px) {
  .pp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .pp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .pp-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
}
.pp-grid > .browse-empty {
  grid-column: 1 / -1;
}
.pp-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-1);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
@media (hover: hover) {
  .pp-card:hover {
    border-color: var(--line-3);
    background: var(--surface-2);
  }
}
.pp-card:active {
  transform: scale(0.99);
}
.pp-img {
  position: relative;
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--surface-3);
}
.pp-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
  font-size: 22px;
  font-weight: 800;
}
.pp-stack {
  background: none;
}
.pp-stack i {
  position: absolute;
  top: 4px;
  width: 38px;
  height: 56px;
  border-radius: 6px;
  background: var(--surface-3) center / cover;
  box-shadow: 0 0 0 2px var(--surface-1);
}
.pp-stack i:nth-child(1) {
  left: 0;
  z-index: 3;
}
.pp-stack i:nth-child(2) {
  left: 13px;
  z-index: 2;
  transform: scale(0.92);
  filter: brightness(0.75);
}
.pp-stack i:nth-child(3) {
  left: 26px;
  z-index: 1;
  transform: scale(0.84);
  filter: brightness(0.55);
}
.pp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.pp-info b {
  overflow: hidden;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-hi);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-info small {
  overflow: hidden;
  font-size: 12.5px;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}
.pp-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-3);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-3);
  white-space: nowrap;
}
.pp-card.skel .pp-img {
  animation: skel 1.1s ease-in-out infinite alternate;
}
.pp-card.skel .pp-info {
  flex: 1;
}
.pp-card.skel .sk-line {
  margin-top: 0;
}

.pr-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 32px 70px;
}
.pr-hero {
  display: flex;
  align-items: flex-end;
  gap: 26px;
}
.pr-pic {
  position: relative;
  flex-shrink: 0;
  width: 168px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 54px;
  font-weight: 800;
  color: var(--text-3);
}
.pr-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pr-pic.skel-box {
  animation: skel 1.1s ease-in-out infinite alternate;
}
.pr-pic.pr-studio {
  overflow: visible;
  background: none;
}
.pr-studio i {
  position: absolute;
  top: 0;
  width: 70%;
  height: 100%;
  border-radius: 12px;
  background: var(--surface-2) center / cover;
  box-shadow: 0 0 0 3px var(--bg), 0 8px 24px rgba(0, 0, 0, 0.35);
}
.pr-studio i:nth-child(1) {
  left: 0;
  z-index: 3;
}
.pr-studio i:nth-child(2) {
  left: 15%;
  z-index: 2;
  transform: scale(0.92);
  filter: brightness(0.7);
}
.pr-studio i:nth-child(3) {
  left: 30%;
  z-index: 1;
  transform: scale(0.84);
  filter: brightness(0.5);
}
.pr-who {
  min-width: 0;
  padding-bottom: 4px;
}
.pr-kind {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-hi);
}
.pr-kind:empty,
.pr-native:empty,
.pr-facts:empty {
  display: none;
}
.pr-who h1 {
  margin-top: 6px;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-hi);
  overflow-wrap: anywhere;
}
.pr-hero[aria-busy] .pr-who h1:empty::before {
  content: "";
  display: block;
  width: min(320px, 70vw);
  height: 30px;
  border-radius: 8px;
  background: var(--surface-2);
  animation: skel 1.1s ease-in-out infinite alternate;
}
.pr-native {
  margin-top: 4px;
  font-size: 15px;
  color: var(--muted);
}
.pr-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.pr-facts span {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-1);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-hi);
}
.pr-facts small {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}
.pr-about {
  max-width: 860px;
  margin-top: 24px;
}
.pr-desc {
  display: -webkit-box;
  -webkit-line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
}
.pr-desc.open {
  display: block;
}
.pr-desc p + p {
  margin-top: 10px;
}
.pr-desc b {
  color: var(--text-hi);
}
.pr-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-hi);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
@media (hover: hover) {
  .pr-more:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}
.pr-spoil {
  border-radius: 4px;
  background: var(--surface-3);
  color: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.pr-spoil.shown {
  background: none;
  color: inherit;
  cursor: auto;
}
.pr-list {
  margin-top: 30px;
}
.pr-count {
  margin-left: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.pr-face {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 38%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--bg), 0 4px 12px rgba(0, 0, 0, 0.45);
}
.pr-role > a {
  display: block;
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .pr-role:hover .rel-thumb {
    transform: translateY(-3px);
  }
}
.pr-sublink {
  color: var(--text-2);
  text-decoration: none;
  padding: 6px 4px;
  margin: -6px -4px;
}
@media (hover: hover) {
  .pr-sublink:hover {
    color: var(--text-hi);
    text-decoration: underline;
  }
}
.pr-people {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
}
@media (max-width: 900px) {
  .pr-page {
    padding: 20px 20px 60px;
  }
}
@media (max-width: 560px) {
  .pr-page {
    padding: 16px 16px 60px;
  }
  .pr-hero {
    align-items: flex-start;
    gap: 16px;
  }
  .pr-pic {
    width: 104px;
    font-size: 36px;
  }
  .pr-who h1 {
    font-size: 23px;
  }
  .pr-native {
    font-size: 13.5px;
  }
  .pr-facts {
    margin-top: 10px;
    gap: 6px;
  }
  .pr-facts span {
    padding: 5px 9px;
    font-size: 12.5px;
  }
  .pr-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px 10px;
  }
  .pr-people {
    grid-template-columns: minmax(0, 1fr);
  }
}

a.tag {
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
@media (hover: hover) {
  a.tag:hover {
    background: var(--surface-4);
    color: var(--text-hi);
  }
}
.fact-link,
a.char-name {
  color: inherit;
  text-decoration: none;
}
@media (hover: hover) {
  .fact-link:hover,
  a.char-name:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
  }
}
.char-pic {
  display: block;
  flex-shrink: 0;
  height: 100%;
}
@media (max-width: 560px) {
  .browse .browse-head {
    align-items: stretch;
  }
}

.dm-stage {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.dm-stage > .dm-scroll {
  flex: 1;
  min-height: 0;
}
.dm-jump {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--text-hi);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.dm-jump.on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (hover: hover) {
  .dm-jump.on:hover {
    background: var(--surface-3);
  }
}
.dm-jump-n {
  position: absolute;
  top: -7px;
  right: -5px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 10px;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--surface-1);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 19px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.dm-jump-n[hidden] {
  display: none;
}
.mc-body .dm-jump {
  right: 10px;
  bottom: 8px;
  width: 34px;
  height: 34px;
}
.dm-typing {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  height: 22px;
  margin: 0;
  padding: 0 16px;
  font-size: 12px;
  color: var(--muted);
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.dm-typing.on {
  opacity: 1;
  transform: none;
}
.mc-body .dm-typing {
  height: 20px;
  padding: 0 12px;
  font-size: 11.5px;
}
.dm-dots {
  display: inline-flex;
  gap: 3px;
}
.dm-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  animation: dm-bounce 1s ease-in-out infinite;
}
.dm-dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.dm-dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dm-bounce {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

.pip-body {
  margin: 0;
  overflow: hidden;
  background: #000;
}
.pip-box {
  position: fixed;
  inset: 0;
  background: #000;
}
.pip-box .ap-ui {
  padding: 22px 10px 6px;
}
.pip-box .ap-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.ap-pipnote {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: #0a0a0d;
  color: var(--text-2);
  font-size: 14px;
}
.ap-pipnote b {
  font-weight: 600;
  color: var(--text-hi);
}
.ap.in-pip .ap-big,
.ap.in-pip .ap-center {
  display: none;
}
.ap.in-pip .ap-subs,
.ap.in-pip .ap-subs-top {
  visibility: hidden;
}

.ap-btn[hidden] {
  display: none;
}
.ap-cast.on {
  color: var(--accent-hi);
}
.ap-castbox {
  position: absolute;
  inset: 0;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #0a0a0d;
  text-align: center;
}
.ap-castbox[hidden] {
  display: none;
}
.ap-castwho {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
}
.ap-castwho b {
  color: #fff;
}
.ap-castctl {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ap-castb {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.2s ease;
}
.ap-castb.ap-castplay {
  width: 62px;
  height: 62px;
  background: var(--accent);
}
.ap-castb svg {
  width: 26px;
  height: 26px;
}
@media (hover: hover) {
  .ap-castb:hover {
    background: rgba(255, 255, 255, 0.2);
  }
  .ap-castb.ap-castplay:hover {
    background: var(--accent-hi);
  }
}
.ap-castbox.wait .ap-castplay {
  opacity: 0.6;
}
.ap-castbar {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(420px, 90%);
}
.ap-casttime {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.ap-casttime i {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}
.ap-castseek {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  height: 16px;
  cursor: pointer;
  touch-action: none;
}
.ap-castplayed {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.ap.casting .ap-ui,
.ap.casting .ap-big,
.ap.casting .ap-center,
.ap.casting .ap-subs,
.ap.casting .ap-skip,
.ap.casting .ap-next,
.ap.casting .ap-spin {
  display: none;
}
@container (max-width: 520px) {
  .ap-castbox {
    gap: 10px;
    padding: 12px;
  }
  .ap-castb {
    width: 40px;
    height: 40px;
  }
  .ap-castb.ap-castplay {
    width: 52px;
    height: 52px;
  }
}
.ap-castcc {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}
.ap-castcc[hidden] {
  display: none;
}
.ap-castsel {
  max-width: 220px;
  padding: 6px 28px 6px 10px;
  font: inherit;
  font-size: 13px;
  color: #fff;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}
.ap-castsel option {
  color: #111;
}
.dp-stage {
  background: var(--dc-bg);
  border-radius: var(--r-lg);
  padding: 14px 14px 12px;
  margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}
.dp-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.dp-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--dc-muted);
}
.dp-state b {
  font-weight: 600;
  color: var(--dc-text);
}
.dp-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: var(--dc-embed);
}
.dp-tabs button {
  padding: 5px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--dc-muted);
  font: inherit;
  font-size: 12.5px;
  cursor: pointer;
}
.dp-tabs button.on {
  background: var(--dc-bg);
  color: var(--dc-text);
}
.dp-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}
.dp-line {
  margin-top: 4px;
  font-size: 13px;
  color: var(--dc-text);
}
.dp-track {
  position: relative;
  flex: 1;
  height: 8px;
  min-width: 80px;
  background: rgba(255, 255, 255, 0.12);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px);
  mask: repeating-linear-gradient(90deg, #000 0 9px, transparent 9px 12px);
}
.dp-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: var(--brand);
}
.dp-fill.live {
  animation: dp-live 2.4s ease-in-out infinite;
}
@keyframes dp-live {
  50% {
    opacity: 0.7;
  }
}
.reduce-motion .dp-fill.live {
  animation: none;
}
.dp-note {
  margin: 10px 0 0;
  max-width: 520px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--dc-muted);
}
.dp-intro p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.dp-prof {
  max-width: 360px;
  padding: 12px 14px 14px;
  border-radius: 10px;
  background: var(--dc-embed);
  color: var(--dc-text);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.dp-phead {
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dc-muted);
}
.dp-pmain {
  display: flex;
  gap: 12px;
}
.dp-part {
  position: relative;
  flex: none;
}
.dp-pcover {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--dc-bg);
}
.dp-plogo {
  object-fit: contain;
  background: #000;
}
.dp-pmark {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--dc-embed);
  box-shadow: 0 0 0 3px var(--dc-embed);
}
.dp-ptext {
  flex: 1;
  min-width: 0;
}
.dp-pmeter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--dc-muted);
}
.dp-pmeter .dp-track {
  height: 4px;
  -webkit-mask: none;
  mask: none;
  border-radius: 2px;
  overflow: hidden;
}
.dp-pmeter .dp-fill {
  border-radius: 2px;
}
.dp-pclock {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ok);
}

:root {
  --tabbar-h: 0px;
}
.tabbar {
  display: none;
}
@media (max-width: 820px) {
  :root {
    --tabbar-h: calc(58px + env(safe-area-inset-bottom, 0px));
  }
  body {
    padding-bottom: var(--tabbar-h);
  }
  .menu-btn,
  .topbar-center,
  .topbar .avatar {
    display: none;
  }
  .logo {
    display: flex;
  }
  .tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 250;
    display: flex;
    height: var(--tabbar-h);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    box-shadow: inset 0 1px 0 var(--line);
  }
  body.kb-open .tabbar,
  body.no-tabs .tabbar {
    display: none;
  }
  body.no-tabs {
    --tabbar-h: 0px;
  }
  .tb-item {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    color: var(--muted);
    -webkit-tap-highlight-color: transparent;
  }
  .tb-item {
    position: relative;
  }
  .tb-dot {
    position: absolute;
    top: 8px;
    left: calc(50% + 6px);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 2px var(--bg);
  }
  .tb-dot[hidden] {
    display: none;
  }
  .tb-item svg {
    transition: transform 0.15s ease;
  }
  .tb-item:active svg {
    transform: scale(0.9);
  }
  .tb-item.active,
  .tb-item[aria-expanded="true"] {
    color: var(--text-hi);
  }
  .tb-item.active svg,
  .tb-item[aria-expanded="true"] svg {
    color: var(--accent);
  }
  .tb-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -4px;
    border-radius: 10px;
  }
  html.pm-open {
    overflow: hidden;
    scrollbar-gutter: auto;
  }
  .topbar-right .pm {
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  .topbar-right .pm::-webkit-scrollbar {
    display: none;
  }
  body.pm-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 69;
    background: rgba(0, 0, 0, 0.55);
  }
  .topbar-right .pm {
    position: fixed;
    top: auto;
    right: 0;
    bottom: var(--tabbar-h);
    left: 0;
    width: auto;
    max-height: min(84dvh, calc(100dvh - var(--topbar-h) - var(--tabbar-h)));
    padding: 8px 14px 16px;
    border: 0;
    border-radius: 20px 20px 0 0;
    background: var(--surface-1);
    box-shadow: inset 0 1px 0 var(--line-2);
    animation: ps-up 0.24s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .ps-grab {
    width: 36px;
    height: 4px;
    margin: 0 auto 10px;
    border-radius: 2px;
    background: var(--line-3);
  }
  .ps-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 2px 12px;
    color: var(--text);
    text-decoration: none;
  }
  .ps-av {
    width: 48px;
    height: 48px;
    flex: none;
    border-radius: 50%;
    object-fit: cover;
  }
  .ps-av.av-letter {
    font-size: 20px;
  }
  img.ps-av,
  .ps-av-guest {
    background: var(--surface-3);
  }
  .ps-av-guest {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
  }
  .ps-who {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-width: 0;
  }
  .ps-who b {
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ps-who span {
    font-size: 13px;
    color: var(--muted);
  }
  .ps-head > svg {
    flex: none;
    color: var(--muted);
  }
  .ps-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
  }
  .ps-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 13px 2px 11px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-badge {
    position: absolute;
    top: 6px;
    right: 8px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 10.5px;
    font-style: normal;
    font-weight: 700;
    line-height: 16px;
    text-align: center;
  }
  .ps-group {
    margin-top: 8px;
    overflow: hidden;
    border-radius: 14px;
    background: var(--surface-2);
  }
  .ps-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    background: none;
    color: var(--text);
    font: inherit;
    font-size: 15px;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-row + .ps-row {
    box-shadow: inset 0 1px 0 var(--line);
  }
  .ps-row > svg:first-child {
    color: var(--muted);
  }
  .ps-row > span:first-of-type {
    flex: 1;
  }
  .ps-row > svg:last-child:not(:first-child) {
    color: var(--muted);
  }
  .ps-val {
    flex: none !important;
    font-size: 13.5px;
    color: var(--muted);
  }
  .ps-pair {
    display: flex;
    gap: 8px;
    margin-top: 8px;
  }
  .ps-btn {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 46px;
    border: 0;
    border-radius: 14px;
    background: var(--surface-2);
    color: var(--text);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }
  .ps-row[data-act="signout"] {
    color: var(--danger);
  }
  .ps-foot {
    padding: 10px 4px 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--muted);
  }
  .ps-foot nav {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
  }
  .ps-foot a {
    color: var(--muted);
    text-decoration: none;
  }
  .ps-foot p {
    margin: 8px 0 0;
    font-size: 11.5px;
  }
  .ps-tile:active,
  .ps-btn:active,
  .ps-row:active {
    background: var(--surface-3);
  }
  .al-toast,
  .st-saved,
  .dc-card {
    bottom: calc(var(--tabbar-h) + 12px);
  }
  .dk {
    bottom: var(--tabbar-h);
  }
}
@keyframes ps-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}
@media (max-width: 700px) {
  .dd,
  .dd.up {
    bottom: calc(var(--tabbar-h) + 12px);
  }
  .ap:not(.full) .ap-settings {
    bottom: var(--tabbar-h);
    max-height: min(68dvh, calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 12px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .tb-item svg {
    transition: none;
  }
  .pm {
    animation: none;
  }
}
.wl-hist {
  align-self: center;
  text-decoration: none;
}
.wl-new {
  background: var(--accent);
  color: #fff;
}
#wlSeg .sub-dot {
  display: inline-block;
  margin-left: 6px;
  vertical-align: middle;
}

.lg {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
  height: 100%;
}
.lg-scroll {
  padding: 8px 0 6px;
  overscroll-behavior: contain;
}
.lg-m {
  position: relative;
  display: flex;
  gap: 10px;
  padding: 2px 14px;
}
.lg-m:not(.cont) {
  margin-top: 10px;
}
.lg-m:first-child {
  margin-top: 0;
}
.lg-av {
  display: block;
  width: 32px;
  flex: none;
}
.lg-avimg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 14px;
}
.lg-mb {
  min-width: 0;
  flex: 1;
}
.lg-mh {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.lg-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-hi);
  text-decoration: none;
}
.lg-m.mine .lg-name {
  color: var(--accent-hi);
}
.lg-mh time {
  font-size: 11.5px;
  color: var(--muted);
}
.lg-mb p {
  margin: 1px 0 0;
  font-size: 14.5px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  color: var(--text);
}
.lg-more {
  width: 28px;
  height: 28px;
  flex: none;
  align-self: flex-start;
  border: 0;
  border-radius: 8px;
  background: none;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}
.lg-m:focus-within .lg-more {
  opacity: 1;
}
@media (hover: hover) {
  .lg-m:hover .lg-more {
    opacity: 1;
  }
}
@media (hover: none) {
  .lg-more {
    opacity: 0.55;
  }
}
.lg-empty {
  margin: 40px 20px;
  font-size: 13.5px;
  text-align: center;
  color: var(--muted);
}
.lg-err {
  margin: 0;
  padding: 0 16px 6px;
  font-size: 12.5px;
  color: var(--danger);
}
.lg-err:empty {
  display: none;
}
.lg-guest {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.lg-guest-solo {
  flex-direction: column;
  padding: 36px 20px;
  border-top: 0;
  text-align: center;
}
.lg-ico {
  display: grid;
  width: 40px;
  height: 40px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: var(--surface-3);
  color: var(--text-hi);
}
.dk-title small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.mp-head {
  justify-content: flex-start;
  padding: 6px 8px 0;
  box-shadow: inset 0 -1px 0 var(--line);
}
.mp-tabs2 {
  display: flex;
  flex: 1;
  gap: 2px;
}
.mp-tabs2 button {
  padding: 11px 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
}
.mp-tabs2 button[aria-selected="true"] {
  border-bottom-color: var(--accent);
  color: var(--text-hi);
}
.mp-online {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}
.mp-x {
  margin-left: auto;
}
.mp-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-height: 0;
}
.mp-panel:not(.mp-sheet) .mp-body {
  min-height: min(400px, calc(100dvh - 200px));
}
.mp-body > .mp-list {
  flex: 1;
}
.mp-tabs {
  display: flex;
  align-items: center;
}
.mp-tabs .mp-full {
  margin-left: auto;
  padding-left: 12px;
  white-space: nowrap;
}
html.mp-open {
  overflow: hidden;
  scrollbar-gutter: auto;
}
body.kb-open {
  --tabbar-h: 0px;
}
@media (max-width: 820px) {
  .mp-sheet {
    top: var(--topbar-h);
    right: 0;
    bottom: auto;
    left: 0;
    width: auto;
    height: calc(var(--vvh, 100dvh) - var(--topbar-h) - var(--tabbar-h));
    max-height: none;
    border: 0;
    border-radius: 0;
    background: var(--bg);
    animation: ps-up 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .mp-sheet .mp-head {
    padding-top: 2px;
  }
  body.kb-open .mp-sheet {
    top: var(--vvt, 0px);
    height: var(--vvh, 100dvh);
  }
}
.dk-pin {
  flex: none;
  padding: 2px 8px 4px;
}
.lg-guest .btn-pill {
  white-space: nowrap;
}
