@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700&family=Zen+Maru+Gothic:wght@500;700;900&display=swap');

[hidden] { display: none !important; }

:root {
  --bg-primary: #070016;
  --bg-secondary: #11022a;
  --bg-card: rgba(22, 8, 48, 0.82);
  --bg-elevated: #1c0a3c;
  --accent: #ff2bd6;
  --accent-2: #00e5ff;
  --accent-dim: rgba(255, 43, 214, 0.16);
  --accent-glow: rgba(255, 43, 214, 0.55);
  --gold: #ffd36a;
  --gold-dim: rgba(255, 211, 106, 0.16);
  --text-primary: #f6f3ff;
  --text-secondary: #b7a8d9;
  --text-muted: #6d5d8f;
  --border: rgba(255, 43, 214, 0.16);
  --border-hover: rgba(0, 229, 255, 0.45);
  --navbar-h: 4.25rem;
  --tab-h: 4.25rem;
  --radius: 0.85rem;
  --radius-lg: 1.35rem;
  --transition: 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: "Zen Maru Gothic", sans-serif;
  --font-body: "Sora", sans-serif;
  --font-jp: "Zen Maru Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(255, 43, 214, 0.28), transparent 55%),
    radial-gradient(700px 420px at 110% 8%, rgba(0, 229, 255, 0.2), transparent 50%),
    radial-gradient(600px 400px at 50% 110%, rgba(124, 92, 255, 0.18), transparent 55%),
    var(--bg-primary);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 78%);
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; font-family: var(--font-body); border: none; outline: none; }
input, select { font-family: var(--font-body); }
ul { list-style: none; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #3a1a66; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--navbar-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 1.5rem;
  background: rgba(7, 0, 22, 0.72);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.navbar.scrolled { background: rgba(7, 0, 22, 0.94); }
.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #fff;
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.navbar-logo em {
  font-style: normal;
  color: var(--accent);
  text-shadow: 0 0 18px var(--accent-glow);
}
.navbar-logo small {
  font-size: 0.7rem;
  color: var(--accent-2);
  letter-spacing: 0.28em;
  font-weight: 700;
}
.navbar-nav { display: flex; gap: 0.2rem; flex: 1; }
.navbar-nav a {
  padding: 0.45rem 0.9rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: 999px;
  transition: color var(--transition), background var(--transition), box-shadow var(--transition);
}
.navbar-nav a:hover,
.navbar-nav a.active {
  color: #fff;
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}
.search-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}
.search-trigger-jp {
  font-family: var(--font-jp);
  font-weight: 900;
  color: var(--accent-2);
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 12rem;
  padding: 0.28rem 0.75rem 0.28rem 0.28rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 229, 255, 0.45);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 0.82rem;
  overflow: hidden;
  white-space: nowrap;
}
.nav-user img {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #120024;
}
.nav-user span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-trigger kbd {
  font-family: var(--font-body);
  font-size: 0.68rem;
  padding: 0.05rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 0.35rem;
  color: var(--accent-2);
  margin-left: 0.35rem;
}
.nav-bell {
  position: relative;
  width: 2.65rem;
  height: 2.65rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  flex-shrink: 0;
}
.nav-bell svg { width: 1.2rem; height: 1.2rem; }
.nav-bell.has-unread { border-color: var(--accent); color: #fff; }
.nav-bell-count {
  position: absolute;
  top: -0.12rem;
  right: -0.12rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: #ff4f8b;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  line-height: 1;
}
.nav-account { position: relative; }
.nav-avatar {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
}
.nav-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.nav-avatar-letter {
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
}
.nav-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  width: 17.6rem;
  padding: 0.5rem;
  border-radius: 1.15rem;
  background: #eef1f4;
  color: #14181d;
  box-shadow: 0 22px 50px rgba(0,0,0,0.38);
  z-index: 140;
}
.nav-menu-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.8rem;
  margin-bottom: 0.35rem;
  border-radius: 0.95rem;
  background: #fff;
}
.nav-menu-face {
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 50%;
  overflow: hidden;
  background: #d7dde4;
  color: #6b7380;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-weight: 800;
}
.nav-menu-face img { width: 100%; height: 100%; object-fit: cover; }
.nav-menu-head strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1.2;
  color: #14181d;
}
.nav-menu-head em {
  display: block;
  margin-top: 0.18rem;
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7380;
}
.nav-menu a,
.nav-menu button {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.62rem 0.75rem;
  border-radius: 0.7rem;
  color: #1c2228;
  font-weight: 600;
  font-size: 0.9rem;
  background: transparent;
  text-align: left;
  font-family: inherit;
}
.nav-menu a:hover,
.nav-menu button:hover,
.nav-menu a.active {
  background: #2fdd7a;
  color: #083318;
}
.nav-menu svg {
  width: 1.18rem;
  height: 1.18rem;
  flex-shrink: 0;
}
.nav-menu-out { margin-top: 0.15rem; }
@media (max-width: 768px) {
  .search-trigger kbd,
  .search-trigger-label { display: none; }
  .search-trigger {
    width: 2.65rem;
    height: 2.65rem;
    padding: 0;
    justify-content: center;
    border-color: var(--accent);
    box-shadow: 0 0 16px var(--accent-glow);
  }
  .search-trigger-jp { color: #fff; font-size: 0.72rem; }
}

body.portal-open { overflow: hidden; }
.search-portal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 43, 214, 0.18), transparent 42%),
    rgba(4, 0, 14, 0.94);
  backdrop-filter: blur(16px);
}
.search-portal[hidden] { display: none !important; }
.search-portal-close {
  position: absolute;
  top: 1.1rem; right: 1.1rem;
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.1rem;
  z-index: 2;
}
.search-portal-rings {
  position: absolute;
  width: min(70vw, 520px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(255, 43, 214, 0.25);
  box-shadow:
    0 0 0 28px rgba(0, 229, 255, 0.05),
    0 0 0 56px rgba(255, 43, 214, 0.04);
  animation: portal-spin 18s linear infinite;
  pointer-events: none;
}
.search-portal-rings-2 {
  width: min(52vw, 380px);
  border: 1px dashed rgba(0, 229, 255, 0.35);
  box-shadow: none;
  animation-duration: 28s;
  animation-direction: reverse;
}
.search-portal-kanji {
  position: absolute;
  font-family: var(--font-jp);
  font-size: clamp(6rem, 22vw, 12rem);
  font-weight: 900;
  color: rgba(0, 229, 255, 0.07);
  pointer-events: none;
  letter-spacing: 0.1em;
}
@keyframes portal-spin { to { transform: rotate(360deg); } }
.search-portal-core {
  position: relative;
  z-index: 1;
  width: min(36rem, calc(100% - 2rem));
  text-align: center;
}
.search-portal-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}
.search-portal-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  margin-bottom: 1.2rem;
}
.search-portal-field {
  position: relative;
  display: flex;
  align-items: center;
}
.search-portal-orb {
  position: absolute;
  left: 1rem;
  width: 0.7rem; height: 0.7rem;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 16px var(--accent-2);
  animation: orb-pulse 1.6s ease infinite;
}
@keyframes orb-pulse {
  50% { transform: scale(1.25); opacity: 0.7; }
}
.search-portal-field input {
  width: 100%;
  padding: 1rem 1.2rem 1rem 2.6rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: rgba(18, 4, 40, 0.85);
  color: #fff;
  font-size: 1.05rem;
  outline: none;
  box-shadow: 0 0 32px rgba(255, 43, 214, 0.25);
}
.search-portal-hint {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.search-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}
.search-chips button {
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  border: 1px dashed rgba(0, 229, 255, 0.4);
  background: rgba(0, 229, 255, 0.06);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}
.search-chips button[aria-pressed="true"] {
  border-style: solid;
  border-color: var(--accent);
  background: var(--accent-dim);
  color: #fff;
}
.search-history-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 0.75rem;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
}
.search-history-row:hover { background: rgba(255,255,255,0.06); }
.search-history-clock {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.45;
}
.search-history-row img {
  width: 28px;
  height: 38px;
  object-fit: cover;
  border-radius: 0.28rem;
  flex-shrink: 0;
}
.search-history-row .search-hit-avatar,
.search-history-row img.search-hit-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.search-history-text {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-history-forget {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: inherit;
  opacity: 0.4;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
}
.search-history-forget:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.search-hit.is-user img,
.search-hit-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
.search-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.55rem;
}
.search-portal-results {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  text-align: left;
  max-height: 42vh;
  overflow: auto;
}
.search-portal-empty { color: var(--text-secondary); font-size: 0.88rem; text-align: center; }
.search-hit {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.5rem;
  border-radius: 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}
.search-hit img {
  width: 42px; height: 56px;
  object-fit: cover;
  border-radius: 0.4rem;
}
.search-hit strong { display: block; }
.search-hit span { font-size: 0.75rem; color: var(--text-secondary); }

.search-radar {
  position: relative;
  max-width: 40rem;
}
.search-radar-ring {
  position: absolute;
  inset: -10px;
  border-radius: 999px;
  border: 1px dashed rgba(0, 229, 255, 0.28);
  pointer-events: none;
  animation: portal-spin 22s linear infinite;
}
.search-radar .search-bar { border-radius: 999px; border-color: rgba(0, 229, 255, 0.35); }

.auth-shell {
  position: relative;
  min-height: 100vh;
}
.auth-stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #070016;
}
.auth-bloom {
  position: absolute;
  inset: -12%;
  z-index: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center 18%;
  filter: blur(52px) saturate(1.55);
  transform: scale(1.18);
  opacity: 0;
  transition: opacity 0.9s ease;
}
.auth-bloom.is-on { opacity: 0.55; }
.auth-vignette {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 32% 42%, transparent 8%, rgba(7, 0, 22, 0.28) 58%, rgba(7, 0, 22, 0.78) 100%),
    linear-gradient(90deg, rgba(7, 0, 22, 0.15) 0%, transparent 32%, rgba(7, 0, 22, 0.55) 72%, rgba(7, 0, 22, 0.92) 100%),
    linear-gradient(to top, rgba(7, 0, 22, 0.88) 0%, transparent 38%);
}
.auth-stage .kanji-watermark { z-index: 2; opacity: 0.9; }
.auth-deck {
  position: absolute;
  left: 0;
  right: min(27rem, 36vw);
  top: calc(var(--navbar-h) + 0.6rem);
  bottom: 38%;
  z-index: 4;
  perspective: 1600px;
}
.auth-deck::before {
  content: "";
  position: absolute;
  left: 22%;
  bottom: 2%;
  width: 42%;
  height: 22%;
  background: radial-gradient(ellipse, rgba(255, 43, 214, 0.38), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}
.auth-poster {
  appearance: none;
  position: absolute;
  top: 50%;
  left: 46%;
  width: min(21vw, 268px);
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  transform: translate(-50%, -50%) scale(0.55);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.55s ease,
    filter 0.55s ease;
}
.auth-poster-art {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: 1.15rem;
  background: #140024 center / cover no-repeat;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
  transition: box-shadow 0.55s ease, filter 0.55s ease;
}
.auth-poster.is-prev {
  transform: translate(-148%, -50%) rotateY(16deg) rotate(-16deg) scale(0.72);
  opacity: 0.38;
  z-index: 1;
  pointer-events: auto;
}
.auth-poster.is-prev .auth-poster-art { filter: brightness(0.55) saturate(0.8); }
.auth-poster.is-on {
  transform: translate(-50%, -50%) rotate(-3.5deg) scale(1);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}
.auth-poster.is-on .auth-poster-art {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 0 48px rgba(255, 43, 214, 0.32),
    0 40px 90px rgba(0, 0, 0, 0.62);
}
.auth-poster.is-on .auth-poster-art::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #ff7ae0);
  box-shadow: 0 0 14px var(--accent-glow);
}
.auth-poster.is-on .auth-poster-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.2) 50%, transparent 62%);
  background-size: 240% 100%;
  animation: authShine 5.4s ease-in-out;
  pointer-events: none;
}
.auth-poster.is-next {
  transform: translate(46%, -50%) rotate(8deg) scale(0.82);
  opacity: 0.82;
  z-index: 3;
  pointer-events: auto;
}
.auth-poster.is-next .auth-poster-art { filter: brightness(0.88); }
.auth-poster.is-far {
  transform: translate(122%, -48%) rotate(15deg) scale(0.66);
  opacity: 0.32;
  z-index: 0;
  pointer-events: auto;
}
.auth-poster.is-far .auth-poster-art { filter: brightness(0.5); }
.auth-poster.is-gone {
  transform: translate(-210%, -58%) rotate(-26deg) scale(0.5);
  opacity: 0;
  z-index: 0;
}
.auth-poster:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 4px;
}
@keyframes authShine {
  from { background-position: 120% 0; }
  to { background-position: -40% 0; }
}
.auth-stage-meta {
  position: absolute;
  left: 2.2rem;
  bottom: 2.1rem;
  z-index: 6;
  max-width: min(36rem, 56vw);
}
.auth-now {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 0.55rem;
}
.auth-now b { font-weight: 800; color: #fff; letter-spacing: 0.12em; }
.auth-stage-meta h1 {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.4vw, 4.6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 0.92;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}
.auth-slide-jp {
  font-family: var(--font-jp);
  letter-spacing: 0.2em;
  color: var(--gold);
  margin-top: 0.55rem;
  font-size: 1.12rem;
}
.auth-slide-genres {
  color: var(--text-secondary);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}
.auth-progress {
  margin-top: 1.15rem;
  max-width: 16rem;
  height: 3px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.14);
  overflow: hidden;
}
.auth-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.auth-progress i.is-run {
  animation: authFill 5.4s linear forwards;
}
@keyframes authFill {
  from { width: 0; }
  to { width: 100%; }
}
.auth-stage-meta.is-swap h1,
.auth-stage-meta.is-swap .auth-slide-jp {
  animation: authTitleIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes authTitleIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.auth-navbtn {
  position: absolute;
  top: 46%;
  z-index: 7;
  width: 2.7rem;
  height: 2.7rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(7, 0, 22, 0.42);
  color: #fff;
  backdrop-filter: blur(10px);
}
.auth-navbtn:hover { border-color: var(--accent-2); color: var(--accent-2); }
.auth-navbtn svg { width: 1.1rem; height: 1.1rem; }
.auth-navbtn-prev { left: 1.1rem; }
.auth-navbtn-next { right: calc(min(27rem, 36vw) + 0.35rem); }
.auth-panel {
  position: absolute;
  top: var(--navbar-h);
  right: 0;
  bottom: 0;
  width: min(27rem, 38vw);
  z-index: 8;
  display: flex;
  align-items: center;
  padding: 1.2rem 1.5rem 1.4rem 0.4rem;
}
.auth-card {
  position: relative;
  width: 100%;
  padding: 1.4rem 1.3rem 1.5rem;
  background: rgba(12, 4, 30, 0.62);
  border: 1px solid rgba(255, 43, 214, 0.28);
  border-radius: 1.4rem;
  backdrop-filter: blur(22px);
  box-shadow:
    0 0 40px rgba(255, 43, 214, 0.12),
    0 22px 50px rgba(0, 0, 0, 0.42);
}
@media (max-width: 960px) {
  .auth-stage { display: none; }
  .auth-panel {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    width: 100%;
    min-height: 100vh;
    padding: 5.4rem 1.15rem 5.8rem;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
  .auth-card {
    max-width: 26rem;
    margin: 0 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .auth-poster,
  .auth-bloom {
    transition: opacity 0.35s ease;
  }
  .auth-poster.is-on .auth-poster-art::after,
  .auth-progress i.is-run,
  .auth-stage-meta.is-swap h1 {
    animation: none;
  }
}
.auth-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.auth-heading {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.15;
}
.auth-lead {
  color: var(--text-secondary);
  margin-bottom: 1.15rem;
  line-height: 1.45;
  font-size: 0.92rem;
}
.auth-alt[hidden] { display: none !important; }
.auth-pass-wrap {
  position: relative;
}
.auth-pass-wrap input { padding-right: 3.1rem; }
.auth-peek {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-peek:hover { color: var(--accent-2); background: rgba(255, 255, 255, 0.06); }
.auth-peek svg { width: 1.15rem; height: 1.15rem; }
.auth-peek .icon-eye-off { display: none; }
.auth-peek[aria-pressed="true"] .icon-eye { display: none; }
.auth-peek[aria-pressed="true"] .icon-eye-off { display: block; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  margin: 0.15rem 0 0.15rem;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-submit {
  width: 100%;
  justify-content: center;
  min-height: 2.7rem;
}
.auth-oauth {
  width: 100%;
  justify-content: center;
  gap: 0.65rem;
  min-height: 2.55rem;
}
.auth-oauth svg { flex-shrink: 0; }
.auth-pin-copy { margin-bottom: 1rem; color: var(--text-secondary); }
.auth-tabs { display: flex; gap: 0.4rem; margin-bottom: 1.4rem; }
.auth-tab {
  flex: 1;
  padding: 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
}
.auth-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.auth-field { margin-bottom: 0.85rem; text-align: left; }
.auth-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 0.8rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #fff;
  outline: none;
}
.auth-field input:focus,
.auth-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.auth-error { color: var(--accent); font-size: 0.82rem; min-height: 1.2rem; margin-bottom: 0.6rem; }
.auth-alt { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
.pin-row { display: flex; gap: 0.45rem; justify-content: center; }
.pin-row input {
  width: 2.6rem; height: 3rem;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  border-radius: 0.7rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: #fff;
}

.profile-hero {
  padding: 0 0 1rem;
}
.profile-gate {
  position: relative;
  min-height: 52vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 32rem;
  padding: 1rem 0 2rem;
}
.profile-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}
.profile-id {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  align-items: center;
  padding: 1.2rem 1.2rem 1.5rem;
  background: linear-gradient(135deg, rgba(28,10,60,0.95), rgba(7,0,22,0.9));
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  margin-bottom: 1.5rem;
  overflow: hidden;
}
.profile-id-stripe {
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.profile-id-copy .detail-title-jp {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  color: var(--accent-2);
}
.profile-id-copy h1 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0;
}
.profile-id-copy p { color: var(--text-secondary); margin-top: 0.2rem; }
.profile-barcode {
  position: absolute;
  right: 1rem; bottom: 0.7rem;
  width: 72px; height: 18px;
  background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 5px);
  opacity: 0.18;
}
.profile-card {
  display: flex;
  gap: 1.1rem;
  align-items: center;
  padding: 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  margin-bottom: 1.5rem;
}
.profile-avatar {
  width: 4rem; height: 4rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  overflow: hidden;
  flex-shrink: 0;
  padding: 0;
}
.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr));
  gap: 1rem;
}
.profile-id-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-left: auto;
}
.profile-bio {
  color: var(--text-secondary);
  max-width: 36rem;
  margin-top: 0.35rem;
  line-height: 1.45;
}
.profile-page { padding-bottom: 2.4rem; }
.profile-cover {
  position: relative;
  min-height: 18.5rem;
  overflow: hidden;
  background:
    radial-gradient(1200px 280px at 20% 10%, rgba(255,43,214,0.22), transparent 55%),
    linear-gradient(135deg, #24103f 0%, #0c041c 55%, #16082c 100%);
  margin: 0 0 1.2rem;
}
.profile-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.profile-cover-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6,0,16,0.55) 0%, rgba(6,0,16,0.12) 42%, rgba(6,0,16,0.5) 100%),
    linear-gradient(180deg, rgba(6,0,16,0.08) 0%, rgba(6,0,16,0.82) 100%);
}
.profile-cover-inner {
  position: relative;
  z-index: 2;
  max-width: 88rem;
  margin: 0 auto;
  min-height: 18.5rem;
  padding: 1.1rem 1.5rem 1.35rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}
.profile-id-on-cover {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  overflow: visible;
  flex: 1;
  min-width: 0;
}
.profile-id-on-cover .profile-avatar {
  width: 6.1rem;
  height: 6.1rem;
  border: 3px solid rgba(255,255,255,0.92);
  box-shadow: 0 12px 32px rgba(0,0,0,0.45);
}
.profile-id-on-cover h1 {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 8px 24px rgba(0,0,0,0.55);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.profile-id-on-cover .profile-handle {
  color: rgba(255,255,255,0.78);
  margin-top: 0.18rem;
  font-weight: 600;
}
.profile-id-on-cover .profile-bio { display: none; }
.profile-presence {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: #d8f8c8;
  font-weight: 600;
  text-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.profile-presence i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #3adf5a;
  box-shadow: 0 0 0 4px rgba(58,223,90,0.18);
  display: inline-block;
}
.profile-presence.is-away { color: rgba(255,255,255,0.72); }
.profile-presence.is-away i { background: #9aa0b5; box-shadow: none; }
.profile-role {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(12,8,20,0.72);
  border: 1px solid rgba(255,255,255,0.18);
}
.profile-streak {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
  vertical-align: middle;
  line-height: 1;
  color: #d2cce0;
}
.profile-streak-ico {
  position: relative;
  display: block;
  width: 1.85rem;
  height: 2rem;
  flex: 0 0 auto;
}
.profile-streak-svg {
  display: block;
  width: 100%;
  height: 100%;
}
.profile-streak .streak-outer { fill: #c5bfd2; }
.profile-streak .streak-inner { fill: #ddd8e8; }
.profile-streak.is-today { color: #f5a024; }
.profile-streak.is-today .streak-outer { fill: #f5a024; }
.profile-streak.is-today .streak-inner { fill: #ffd56a; }
.profile-streak b {
  font-size: 1.55rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}
.profile-streak-warn {
  position: absolute;
  right: -0.32rem;
  bottom: -0.14rem;
  width: 1.05rem;
  height: 1.05rem;
  border-radius: 50%;
  background: #e85c5c;
  color: #fff;
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.05rem;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(18, 10, 32, 0.9);
}
.profile-streak:hover { transform: translateY(-1px); }
.profile-streak-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 0.35rem 0 0.35rem;
}
.profile-streak-hero .profile-streak-ico {
  width: 3.4rem;
  height: 3.7rem;
}
.profile-streak-hero .streak-outer { fill: #c5bfd2; }
.profile-streak-hero .streak-inner { fill: #ddd8e8; }
.profile-streak-hero.is-today .streak-outer { fill: #f5a024; }
.profile-streak-hero.is-today .streak-inner { fill: #ffd56a; }
.profile-streak-hero b {
  font-family: var(--font-display);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #c5bfd2;
}
.profile-streak-hero.is-today b { color: #f5a024; }
.profile-streak-hero .profile-streak-warn {
  width: 1.35rem;
  height: 1.35rem;
  font-size: 0.88rem;
  line-height: 1.35rem;
  right: -0.2rem;
  bottom: -0.05rem;
}
.profile-streak-kicker {
  margin: 0 0 0.7rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.profile-streak-lead {
  margin: 0 0 1rem;
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}
.profile-cover-actions {
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  padding-bottom: 0.15rem;
}
.profile-ico {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.profile-ico span.label {
  display: none;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(10,8,16,0.92);
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.28);
}
.profile-ico i {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  display: grid;
  place-items: center;
  background: rgba(36, 38, 48, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.08);
}
.profile-ico i svg { width: 1.05rem; height: 1.05rem; }
@media (hover: hover) {
  .profile-ico:hover span.label { display: inline; }
  .profile-ico:hover i {
    background: var(--accent);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(255,43,214,0.32);
  }
}
.profile-body { max-width: 88rem; margin: 0 auto; padding: 0 1.5rem 2rem; }
.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.1rem;
}
.profile-mini {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  min-height: 4.4rem;
}
.profile-mini b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.profile-mini span { font-size: 0.72rem; color: var(--text-muted); font-weight: 700; }
.profile-mini-ico {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  background: var(--accent-dim);
  color: var(--accent-2);
  flex-shrink: 0;
}
.profile-mini-ico svg { width: 1.15rem; height: 1.15rem; }
.profile-track {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 0.85rem 1rem 0.95rem;
  margin: 0 0 1.25rem;
}
.profile-track-top {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
}
.profile-track-top em { font-style: normal; color: var(--text-muted); font-weight: 600; }
.profile-track-bar {
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.profile-track-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.profile-track-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
}
.profile-track-marks b { color: var(--accent-2); font-weight: 800; }
.profile-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.profile-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  padding: 0.9rem;
  margin-bottom: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.profile-panel h2 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
}
.profile-panel h2 em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
}
.profile-panel h2 a {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  text-decoration: none;
  margin-left: auto;
}
.profile-continue {
  display: grid;
  gap: 0.55rem;
}
.profile-continue a {
  display: grid;
  grid-template-columns: 3.1rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 0.8rem;
  color: inherit;
  text-decoration: none;
}
.profile-continue a:hover { background: rgba(255,255,255,0.04); }
.profile-continue img, .profile-continue .ph {
  width: 3.1rem;
  height: 4.15rem;
  object-fit: cover;
  border-radius: 0.55rem;
  background: #16082c;
}
.profile-continue strong { display: block; font-size: 0.88rem; }
.profile-continue small { color: var(--text-muted); }
.profile-watch-grid {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-bottom: 0.2rem;
}
.profile-watch-grid .profile-poster {
  flex: 0 0 calc((100% - 1.8rem) / 5);
  min-width: 3.4rem;
}
.profile-poster {
  display: block;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.profile-poster img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: 0.7rem;
  background: #16082c;
  display: block;
}
.profile-watch-grid .profile-poster span { display: none; }
.profile-favs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.45rem;
}
.profile-fav {
  aspect-ratio: 2 / 3;
  border-radius: 0.7rem;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.16);
  color: var(--text-muted);
  font-size: 1.4rem;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}
.profile-fav.is-filled {
  border-style: solid;
  border-color: var(--border);
}
.profile-fav img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: grid;
  place-items: center;
  padding: 1.2rem;
  background: rgba(4,0,14,0.72);
  backdrop-filter: blur(10px);
}
.profile-sheet[hidden] { display: none !important; }
.profile-sheet-card {
  position: relative;
  width: min(36rem, 100%);
  max-height: min(88vh, 46rem);
  overflow: auto;
  background: #16121f;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 1.15rem;
  padding: 1.2rem 1.25rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.profile-sheet-card h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 1.8rem 1rem 0;
}
.profile-sheet-x {
  position: absolute;
  top: 0.7rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.55rem;
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
}
.profile-crop-sheet { z-index: 240; }
.profile-crop-card { width: min(40rem, 100%); }
.profile-crop-stage {
  display: grid;
  place-items: center;
  background: #0a0614;
  border-radius: 0.9rem;
  overflow: hidden;
  margin: 0 0 0.9rem;
}
.profile-crop-view {
  position: relative;
  overflow: hidden;
  background: #000;
  cursor: grab;
  touch-action: none;
}
.profile-crop-view.is-dragging { cursor: grabbing; }
.profile-crop-view.is-avatar {
  width: min(20rem, 72vw);
  aspect-ratio: 1;
  border-radius: 0.35rem;
}
.profile-crop-view.is-banner {
  width: min(36rem, 86vw);
  aspect-ratio: 10 / 3;
  border-radius: 0.35rem;
}
.profile-crop-view img {
  position: absolute;
  max-width: none;
  user-select: none;
  pointer-events: none;
}
#cropZoom {
  width: 100%;
  accent-color: var(--accent);
  margin-bottom: 0.9rem;
}
.profile-facts {
  display: grid;
  gap: 0;
}
.profile-facts div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 0.9rem;
}
.profile-facts div:last-child { border-bottom: 0; }
.profile-facts dt { color: var(--text-muted); }
.profile-facts dd { margin: 0; text-align: right; font-weight: 700; max-width: 60%; }
.profile-edit-media {
  display: grid;
  grid-template-columns: 6.2rem minmax(0, 1fr);
  gap: 0.75rem;
  margin-bottom: 0.95rem;
}
.profile-edit-preview {
  display: grid;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 700;
}
.profile-edit-preview input { display: none; }
.profile-edit-preview .btn-secondary {
  justify-self: start;
  padding: 0.38rem 0.85rem;
  font-size: 0.78rem;
}
.profile-edit-circle, .profile-edit-banner {
  border-radius: 0.85rem;
  border: 1px dashed rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-weight: 800;
}
.profile-edit-circle { width: 6.2rem; height: 6.2rem; border-radius: 50%; }
.profile-edit-banner { min-height: 6.2rem; }
.profile-edit-circle img, .profile-edit-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.profile-sheet-card .dash-form { gap: 0.65rem; }
.profile-sheet-card .dash-form textarea { min-height: 4.4rem; }
.profile-sheet-card .dash-form input[readonly] {
  opacity: 0.72;
  cursor: default;
}
.profile-toggles { display: grid; gap: 0; margin-bottom: 0.4rem; }
.profile-pick-list { display: grid; gap: 0.4rem; margin-top: 0.75rem; }
#pickSearch {
  width: 100%;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0.62rem 0.85rem;
  font: inherit;
}
.profile-pick-hit {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.35rem;
  border-radius: 0.7rem;
  border: 0;
  background: rgba(255,255,255,0.04);
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.profile-report-kinds {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}
.profile-report-kind {
  padding: 0.7rem 0.75rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.profile-report-kind[aria-pressed="true"] {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: #fff;
}
.ban-page .navbar-nav,
.ban-page .bottom-nav,
.ban-page .search-trigger,
.ban-page .search-portal,
.ban-page .nav-bell,
.ban-page .nav-account,
.ban-page #navAuthCta {
  display: none !important;
}
.profile-report-reasons {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
  text-align: left;
}
.profile-report-reasons .profile-report-kind {
  width: 100%;
  text-align: left;
}
.settings-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}
.profile-toggles .settings-row { padding: 0.55rem 0; }
.profile-empty {
  color: var(--text-muted);
  font-size: 0.85rem;
  padding: 0.4rem 0;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0 0 1.2rem;
}
.profile-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.7rem 0.55rem;
  text-align: center;
}
.profile-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.profile-stat span {
  font-size: 0.68rem;
  color: var(--text-muted);
}
.profile-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  margin-bottom: 1rem;
  scrollbar-width: none;
}
.profile-tabs button {
  flex: 0 0 auto;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
}
.profile-tabs button.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.lists-page { padding: 1.6rem 0 2.6rem; }
.lists-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1.15rem;
}
.lists-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.3rem);
  margin: 0;
}
.lists-head p { color: var(--text-muted); margin-top: 0.25rem; }
.lists-continue {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}
.lists-continue a {
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: inherit;
  text-decoration: none;
}
.lists-continue img, .lists-continue .ph {
  width: 2.7rem;
  height: 3.6rem;
  object-fit: cover;
  border-radius: 0.5rem;
  background: #16082c;
}
.lists-continue strong { display: block; font-size: 0.86rem; }
.lists-continue small { color: var(--text-muted); }
.settings-shell {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.settings-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  padding: 1.3rem 1.2rem 1.5rem;
}
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}
.settings-row:first-of-type { border-top: 0; }
.settings-row p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.15rem; }
.settings-toggle {
  width: 2.6rem;
  height: 1.45rem;
  border-radius: 999px;
  background: #2a1058;
  border: 1px solid var(--border);
  position: relative;
}
.settings-toggle[aria-pressed="true"] { background: var(--accent-dim); border-color: var(--accent); }
.settings-toggle i {
  position: absolute;
  top: 0.12rem;
  left: 0.14rem;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}
.settings-toggle[aria-pressed="true"] i { transform: translateX(1.1rem); background: var(--accent); }
.settings-shell {
  max-width: 38rem;
}
.settings-lead,
.settings-copy,
.settings-hint {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 0 1.1rem;
}
.settings-hint { display: block; margin: 0.35rem 0 0; font-size: 0.78rem; }
.settings-h {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  letter-spacing: 0.01em;
}
.settings-card + .settings-card { margin-top: 1rem; }
.settings-card textarea {
  width: 100%;
  resize: vertical;
  min-height: 4.5rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0.7rem 0.85rem;
  font: inherit;
}
.settings-avatar-wrap {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.1rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}
.settings-avatar-wrap p { color: var(--text-muted); font-size: 0.8rem; margin: 0.2rem 0 0.7rem; }
.settings-avatar {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 900;
  flex-shrink: 0;
  padding: 0;
}
.settings-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.settings-avatar-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.settings-tg {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}
.settings-tg > button {
  flex-shrink: 0;
  white-space: nowrap;
}
.settings-tg.is-on {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.settings-tg p { color: var(--text-muted); font-size: 0.8rem; margin: 0.2rem 0 0; }
.settings-tg.is-on p { color: var(--text-secondary); }
.settings-notices { display: flex; flex-direction: column; }
.settings-notice {
  display: block;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  color: inherit;
}
.settings-notice:first-child { border-top: 0; padding-top: 0.15rem; }
.settings-notice p { color: var(--text-muted); font-size: 0.82rem; margin: 0.2rem 0 0.3rem; }
.settings-notice time { color: var(--text-muted); font-size: 0.74rem; }
.settings-back { margin-top: 1.2rem; }
.inbox-shell {
  max-width: 40rem;
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}
.party-join-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}
.party-join-row input {
  flex: 1;
  min-width: 10rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0.7rem 1rem;
  font: inherit;
}
.inbox-head .btn-secondary { white-space: nowrap; flex-shrink: 0; }
.inbox-tabs {
  display: flex;
  gap: 0.4rem;
  margin: 0.6rem 0 1rem;
}
.inbox-tabs button {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
}
.inbox-tabs button.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
.inbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.inbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0.95rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  text-align: left;
  width: 100%;
  color: inherit;
}
.inbox-row.is-unread {
  border-color: rgba(124, 92, 255, 0.55);
  background: var(--accent-dim);
}
.inbox-row.is-read { opacity: 0.78; }
.inbox-thumb {
  width: 3.1rem;
  height: 4.1rem;
  border-radius: 0.7rem;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  flex-shrink: 0;
}
.inbox-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.inbox-fallback {
  display: grid;
  place-items: center;
  height: 100%;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.3rem;
  color: #fff;
}
.inbox-copy { min-width: 0; flex: 1; }
.inbox-kicker {
  color: var(--accent-2);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.2rem;
}
.inbox-copy strong { display: block; font-size: 0.95rem; }
.inbox-copy p { color: var(--text-muted); font-size: 0.82rem; margin: 0.2rem 0 0.35rem; }
.inbox-copy time { color: var(--text-muted); font-size: 0.74rem; }
.inbox-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--accent-2);
  margin-top: 0.35rem;
  flex-shrink: 0;
}
.inbox-empty {
  padding: 2.2rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: 1.2rem;
  color: var(--text-muted);
}
.inbox-empty h3 { color: #fff; margin-bottom: 0.4rem; }
@media (max-width: 560px) {
  .settings-tg { flex-direction: column; align-items: stretch; }
  .settings-avatar-wrap { flex-direction: column; }
  .inbox-head { align-items: stretch; }
}
.list-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.list-picker button {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}
.list-picker button.active {
  background: var(--accent-dim);
  border-color: var(--accent);
}
.kind-badge {
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.14rem 0.42rem;
  border-radius: 999px;
}
.kind-anime { background: rgba(124, 92, 255, 0.92); color: #fff; }
.kind-drama { background: rgba(255, 43, 214, 0.9); color: #fff; }
.kind-film { background: rgba(0, 229, 255, 0.92); color: #041018; }
.kind-serial { background: rgba(255, 211, 106, 0.95); color: #1a1200; }
.kind-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 0.2rem;
}
.kind-pills button {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 0.82rem;
}
.kind-pills button.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}
@media (max-width: 900px) {
  .profile-cols { grid-template-columns: 1fr; }
  .profile-cards { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .profile-id-actions { width: 100%; margin-left: 0; }
  .profile-cover, .profile-cover-inner { min-height: 15.5rem; }
  .profile-cover-inner { padding: 0.9rem 0.9rem 1.1rem; }
  .profile-body { padding: 0 0.9rem 2rem; }
  .profile-id-on-cover { flex-wrap: wrap; }
  .profile-id-on-cover .profile-avatar { width: 4.6rem; height: 4.6rem; }
  .profile-watch-grid { overflow-x: auto; }
  .profile-edit-media { grid-template-columns: 1fr; }
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(120deg, var(--accent), #7c5cff);
  color: #fff;
  font-weight: 700;
  font-size: 0.86rem;
  border-radius: 999px;
  transition: all var(--transition);
  box-shadow: 0 0 24px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.08); }
#navAuthCta[hidden] { display: none !important; }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.86rem;
  border: 1px solid var(--border-hover);
  border-radius: 999px;
  transition: all var(--transition);
}
.btn-secondary:hover { color: var(--accent-2); background: rgba(0, 229, 255, 0.08); }

.anime-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (hover: hover) {
  .anime-card:hover {
    transform: translateY(-0.45rem) scale(1.025);
    border-color: var(--accent-2);
    box-shadow: 0 18px 40px rgba(0,0,0,0.45), 0 0 28px rgba(0, 229, 255, 0.18);
  }
  .anime-card:hover .anime-card-poster img { transform: scale(1.1); }
  .anime-card:hover .anime-card-overlay { opacity: 1; }
  .anime-card:hover .play-btn-overlay { transform: scale(1); }
}
.anime-card:active { transform: scale(0.98); }
.anime-card-poster { position: relative; aspect-ratio: 3/4; overflow: hidden; width: 100%; }
.anime-card-poster img {
  display: block;
  width: 100%; height: 100%;
  max-width: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.anime-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,0,22,0.96) 0%, rgba(7,0,22,0.2) 55%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.play-btn-overlay {
  width: 3.25rem; height: 3.25rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 0 28px var(--accent-glow);
  transform: scale(0.82);
  transition: transform var(--transition);
}
.anime-card-badge {
  position: absolute;
  top: 0.55rem; right: 0.55rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.badge-gold { background: var(--gold); color: #1a0a00; }
.anime-card-rating {
  position: absolute;
  top: 0.55rem; left: 0.55rem;
  background: rgba(0,0,0,0.62);
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}
.anime-card-info { padding: 0.8rem 0.85rem 1rem; }
.anime-card-title {
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.2rem;
}
.anime-card-meta {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
}
.dot { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; }

.anime-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}
@media (min-width: 640px) { .anime-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .anime-grid { grid-template-columns: repeat(5, 1fr); gap: 1.15rem; } }
@media (min-width: 1280px) { .anime-grid { grid-template-columns: repeat(6, 1fr); } }
.anime-grid-lg { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1.25rem; }

.scroll-row {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  min-width: 0;
  padding-bottom: 0.75rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.scroll-row::-webkit-scrollbar { display: none; }
.scroll-row .anime-card {
  flex: 0 0 13rem;
  width: 13rem;
  min-width: 13rem;
  max-width: 13rem;
  scroll-snap-align: start;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.15rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.section-title::before {
  content: "";
  width: 0.35rem;
  height: 1.15rem;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 12px var(--accent-glow);
}
.section-link { font-size: 0.83rem; color: var(--text-secondary); font-weight: 600; }
.section-link:hover { color: var(--accent-2); }

.detail-title {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.1;
}
.detail-title-jp {
  font-family: var(--font-jp);
  letter-spacing: 0.18em;
  color: var(--text-secondary);
}

.genre-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.genre-tag:hover,
.genre-tag.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: #fff;
}

.skeleton-card { border-radius: var(--radius); overflow: hidden; }
.skeleton-anim {
  background: linear-gradient(90deg, var(--bg-card) 25%, #2a1058 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
.skeleton-img { aspect-ratio: 3/4; width: 100%; border-radius: var(--radius); }
.skeleton-title { height: 14px; margin: 10px 8px 6px; border-radius: 4px; }
.skeleton-sub { height: 11px; margin: 0 8px 10px; width: 60%; border-radius: 4px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.toast {
  position: fixed;
  bottom: calc(var(--tab-h) + 1rem);
  right: 1rem;
  padding: 0.8rem 1.3rem;
  border-radius: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  transform: translateY(20px);
  opacity: 0;
  transition: all var(--transition);
  pointer-events: none;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast-info { background: var(--bg-elevated); border: 1px solid var(--border-hover); }
.toast-success { background: rgba(39,174,96,0.2); border: 1px solid #27ae60; color: #2ecc71; }
.toast-error { background: var(--accent-dim); border: 1px solid var(--accent); color: var(--accent); }

#app { padding-top: var(--navbar-h); min-height: 100vh; }
.page-container { max-width: 88rem; margin: 0 auto; padding: 0 1.5rem; overflow: hidden; }
.section { padding: 2.25rem 0; }

.spinner-wrap { display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.spinner {
  width: 2.4rem; height: 2.4rem;
  border: 3px solid #3a1a66;
  border-top-color: var(--accent-2);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-state, .empty-state { text-align: center; padding: 3.5rem 1.5rem; color: var(--text-secondary); }
.error-state h3, .empty-state h3 { font-size: 1.15rem; color: #fff; margin-bottom: 0.4rem; }
.empty-state .empty-icon { font-size: 2.6rem; margin-bottom: 0.7rem; }

.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 1.25rem calc(var(--tab-h) + 1.5rem);
  margin-top: 3rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
}
.footer-logo span { color: var(--accent); }

.sakura {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 80;
  overflow: hidden;
}
.petal {
  position: absolute;
  top: -12vh;
  width: 11px;
  height: 11px;
  background: linear-gradient(135deg, #ff8ec8, #ff2bd6);
  border-radius: 10px 0 10px 0;
  opacity: 0.42;
  animation: petal-fall linear infinite;
}
@keyframes petal-fall {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(40px, 120vh, 0) rotate(360deg); }
}
.kanji-watermark {
  position: absolute;
  right: 4%;
  top: 18%;
  font-family: var(--font-jp);
  font-size: clamp(5rem, 18vw, 14rem);
  font-weight: 900;
  color: rgba(255, 43, 214, 0.07);
  letter-spacing: 0.12em;
  pointer-events: none;
  user-select: none;
  line-height: 0.8;
  z-index: 1;
}
.hero-speedlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: repeating-linear-gradient(
    105deg,
    transparent 0 18px,
    rgba(255, 43, 214, 0.035) 18px 19px
  );
  mask-image: linear-gradient(90deg, transparent 30%, black 70%);
}
.player-empty {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  background:
    linear-gradient(to top, rgba(7,0,22,0.92) 0%, rgba(7,0,22,0.35) 55%, rgba(7,0,22,0.2) 100%);
}
.player-empty.hidden { display: none; }
.player-empty-copy h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.4rem 0 0.35rem;
}
.player-empty-copy p { color: var(--text-secondary); max-width: 28rem; }

.bottom-nav {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 120;
  height: var(--tab-h);
  padding: 0.35rem 0.6rem calc(0.35rem + env(safe-area-inset-bottom));
  background: rgba(7, 0, 22, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a,
.bottom-nav button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
  border-radius: 0.75rem;
  background: transparent;
  font-family: var(--font-body);
}
.bottom-nav a.active,
.bottom-nav button.active { color: var(--accent-2); }
.bottom-nav a span,
.bottom-nav button span { font-size: 1.15rem; }
.nav-ico {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
}
.nav-ico svg { width: 1.15rem; height: 1.15rem; }
.bottom-search { color: var(--text-muted); }

@media (max-width: 768px) {
  .navbar { padding: 0 0.9rem; }
  .navbar-nav, .navbar-actions .btn-primary { display: none; }
  .page-container { padding: 0 0.9rem; }
  .bottom-nav { display: grid; }
  .scroll-row .anime-card {
    flex-basis: 10rem;
    width: 10rem;
    min-width: 10rem;
    max-width: 10rem;
  }
  #app { padding-bottom: calc(var(--tab-h) + 1.25rem); }
  .search-portal-hint { display: none; }
  .profile-id { padding-right: 1rem; }
  .profile-id #logoutBtn { width: 100%; margin-left: 0; }
}
@media (min-width: 769px) {
  .footer { padding-bottom: 2rem; }
  .toast { bottom: 2rem; }
}

.dash {
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  gap: 1.6rem;
  padding: 0.85rem 0 3.5rem;
  align-items: start;
}
.dash-main { min-width: 0; }
.dash-side {
  position: sticky;
  top: calc(var(--navbar-h) + 0.9rem);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.7rem 1rem;
  border: 1px solid var(--border);
  border-radius: 1.35rem;
  background:
    linear-gradient(180deg, rgba(255,43,214,0.08), transparent 38%),
    var(--bg-card);
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
}
.dash-side-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.35rem 0.55rem 0.95rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--border);
}
.dash-side-mark {
  width: 2.1rem; height: 2.1rem;
  border-radius: 0.7rem;
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #140018;
  box-shadow: 0 0 22px var(--accent-glow);
}
.dash-side-brand strong { display: block; font-size: 0.92rem; letter-spacing: 0.04em; }
.dash-side-brand span { display: block; font-size: 0.68rem; color: var(--text-muted); }
.dash-side a, .dash-side button {
  text-align: left;
  padding: 0.58rem 0.8rem;
  border-radius: 0.8rem;
  color: var(--text-secondary);
  background: transparent;
  font-weight: 700;
  font-size: 0.86rem;
  transition: background var(--transition), color var(--transition);
}
.dash-side a:hover, .dash-side button:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}
.dash-side a.active, .dash-side button.active {
  color: #fff;
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.dash-side .dash-nav-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.95rem 0.55rem 0.28rem;
}
.dash-kicker { letter-spacing: 0.16em; font-size: 0.68rem; color: var(--accent); font-weight: 800; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.dash-head h1 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0.12rem 0 0.25rem;
  letter-spacing: 0.02em;
}
.dash-head p { color: var(--text-secondary); max-width: 38rem; font-size: 0.92rem; }
.dash-head .dash-kicker { color: var(--accent); }
.dash-head-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.dash-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}
.dash-stat {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.1rem;
  padding: 1rem 1.05rem 0.95rem;
  transition: border-color var(--transition), transform var(--transition);
}
.dash-stat:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.dash-stat b { display: block; font-size: 1.55rem; font-family: var(--font-display); line-height: 1.1; }
.dash-stat span { color: var(--text-muted); font-size: 0.76rem; letter-spacing: 0.04em; }
.dash-table-wrap {
  border: 1px solid var(--border);
  border-radius: 1.15rem;
  overflow: hidden;
  background: var(--bg-card);
}
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th, .dash-table td {
  text-align: left;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
  vertical-align: middle;
}
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table tbody tr { transition: background var(--transition); }
.dash-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.dash-table th { color: var(--text-muted); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; }
.dash-row {
  display: flex; gap: 0.75rem; align-items: center;
}
.dash-thumb {
  width: 2.7rem; height: 3.55rem; border-radius: 0.5rem; object-fit: cover;
  background: var(--bg-elevated); flex-shrink: 0;
  box-shadow: 0 8px 18px rgba(0,0,0,0.28);
}
.dash-toolbar { display: flex; gap: 0.55rem; flex-wrap: wrap; margin: 0 0 1.1rem; align-items: center; }
.dash-toolbar input, .dash-form input, .dash-form textarea, .dash-form select {
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0.62rem 0.85rem;
  font: inherit;
}
.dash-toolbar input:focus, .dash-form input:focus, .dash-form textarea:focus, .dash-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.dash-toolbar input { min-width: 14rem; flex: 1; }
.dash-form { display: grid; gap: 0.8rem; }
.dash-form > .btn-primary { justify-self: start; }
.dash-form.dash-form-narrow { max-width: 42rem; }
.dash-form label { font-size: 0.78rem; color: var(--text-muted); display: grid; gap: 0.35rem; font-weight: 600; }
.dash-form label.settings-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
}
.dash-form textarea { min-height: 7rem; resize: vertical; }
.dash-form-grid {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.dash-panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.25rem;
  padding: 1.15rem 1.2rem 1.25rem;
}
.dash-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.dash-chips label {
  display: flex; align-items: center; gap: 0.3rem;
  padding: 0.38rem 0.85rem; border-radius: 999px; border: 1px solid var(--border);
  color: var(--text-secondary); font-size: 0.8rem; font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.dash-chips label:has(input:checked),
.dash-chips label.dash-chip-on {
  color: #fff;
  background: var(--accent-dim);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(255,43,214,0.18);
}
.dash-chips input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.dash-card {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.15rem;
  padding: 1rem 1.05rem;
  margin-bottom: 0.75rem;
  transition: border-color var(--transition), transform var(--transition);
}
a.dash-card:hover, .dash-card.dash-card-link:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.dash-card h3 { margin: 0 0 0.4rem; font-size: 1.02rem; }
.dash-inline { display: flex; gap: 0.45rem; flex-wrap: wrap; align-items: center; }
.dash-inline input { width: 7.5rem; }
.dash-danger { color: #ff8aa8; }
.dash-crumb { font-size: 0.8rem; color: var(--text-muted); margin: 0 0 0.45rem; }
.dash-crumb a { color: var(--text-secondary); }
.dash-crumb a:hover { color: var(--accent-2); }
.dash-player-poster {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: #090012;
}
.dash-quick {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 1.4rem;
}
.dash-quick a {
  display: flex; flex-direction: column; gap: 0.2rem;
  padding: 0.95rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-weight: 700;
  transition: border-color var(--transition), transform var(--transition);
}
.dash-quick a:hover { border-color: var(--accent); transform: translateY(-2px); }
.dash-quick a span { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; }
.dash-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11.6rem, 1fr));
  gap: 0.9rem;
}
.dash-cat-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.1rem;
  overflow: hidden;
  color: inherit;
  transition: transform var(--transition), border-color var(--transition);
}
.dash-cat-card:hover { transform: translateY(-3px); border-color: var(--border-hover); }
.dash-cat-card img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--bg-elevated);
}
.dash-cat-card > div { padding: 0.7rem 0.8rem 0.85rem; }
.dash-cat-card strong { display: block; font-size: 0.9rem; line-height: 1.3; }
.dash-cat-card em { display: block; font-style: normal; color: var(--text-muted); font-size: 0.72rem; margin-top: 0.2rem; }
.dash-genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.7rem;
}
.dash-genre {
  display: flex; align-items: center; justify-content: space-between; gap: 0.6rem;
  padding: 0.95rem 1rem 0.95rem 1.05rem;
  border-radius: 1.05rem;
  border: 1px solid var(--border);
  background:
    linear-gradient(90deg, var(--accent-dim), transparent 42%),
    var(--bg-card);
}
.dash-genre strong { display: block; font-size: 0.95rem; }
.dash-genre code { color: var(--text-muted); font-size: 0.7rem; }
.dash-genre-del {
  background: transparent;
  border: 0;
  color: #ff8aa8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.45rem;
  cursor: pointer;
  border-radius: 0.5rem;
}
.dash-genre-del:hover { background: rgba(255,80,120,0.12); }
.dash-drop {
  display: grid; place-items: center;
  min-height: 16rem;
  border: 1px dashed var(--border-hover);
  border-radius: 1.15rem;
  background: rgba(0,229,255,0.04);
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 700;
  gap: 0.25rem;
}
.dash-drop #posterHint, .dash-drop-hint {
  display: block;
  font-weight: 500;
  font-size: 0.76rem;
  color: var(--text-muted);
}
.dash-drop img { width: 100%; max-height: 18rem; object-fit: cover; border-radius: 0.8rem; }
.dash-empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--text-muted);
  border: 1px dashed var(--border);
  border-radius: 1.15rem;
}
.dash-addbar {
  display: flex; gap: 0.55rem; flex-wrap: wrap;
  padding: 0.85rem;
  border-radius: 1.15rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  margin-bottom: 1rem;
  align-items: center;
}
.dash-addbar input {
  flex: 1;
  min-width: 8rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: inherit;
  padding: 0.62rem 0.85rem;
  font: inherit;
}
.dash-addbar input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.dash-user-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
a.dash-user-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.1rem;
  color: inherit;
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
a.dash-user-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}
.dash-user-card-ava {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #5b2b8a, #24103c);
  flex: 0 0 auto;
}
.dash-user-card-ava.is-lg {
  width: 4.4rem;
  height: 4.4rem;
}
.dash-user-ava {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.dash-user-letter {
  font-weight: 800;
  font-size: 1.05rem;
  color: #fff;
}
.dash-user-card-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.dash-user-card-copy strong {
  font-size: 0.98rem;
}
.dash-user-card-copy em {
  color: var(--text-muted);
  font-style: normal;
  font-size: 0.8rem;
}
.dash-user-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: flex-end;
}
.dash-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255,255,255,0.03);
}
.dash-pill.is-ban {
  color: #ff8aa8;
  border-color: rgba(255,80,120,0.4);
  background: rgba(255,80,120,0.12);
}
.dash-pill.is-warn {
  color: #ffd36a;
  border-color: rgba(255,211,106,0.35);
  background: var(--gold-dim);
}
.dash-mod-hero {
  border: 1px solid var(--border);
  border-radius: 1.2rem;
  overflow: hidden;
  margin: 0 0 1rem;
  background:
    linear-gradient(180deg, rgba(7,0,22,0.15), rgba(7,0,22,0.88)),
    #14061f;
  background-size: cover;
  background-position: center;
}
.dash-mod-hero-in {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 1.15rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(7,0,22,0.72));
}
.dash-mod-hero-in h2 {
  margin: 0;
  font-size: 1.25rem;
}
.dash-mod-hero-in p {
  margin: 0.15rem 0 0.45rem;
  color: var(--text-secondary);
}
.dash-mod-hero-in .btn-secondary { margin-left: auto; }
.dash-mod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin: 0 0 0.85rem;
}
.dash-facts {
  margin: 0;
}
.dash-facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.6rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.86rem;
}
.dash-facts dt { color: var(--text-muted); font-weight: 600; }
.dash-facts dd { margin: 0; word-break: break-word; }
.dash-mod-media {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: cover;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  margin: 0.75rem 0.5rem 0 0;
}
.dash-mod-media.is-wide {
  width: 100%;
  height: 7.5rem;
}
.dash-report-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.dash-report-card {
  display: block;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 1.05rem;
  padding: 0.9rem 1rem;
  color: inherit;
  text-decoration: none;
}
a.dash-report-card:hover { border-color: var(--border-hover); }
.dash-report-card.is-on {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-dim);
}
.dash-report-card.is-done { opacity: 0.55; }
.dash-report-top {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  align-items: baseline;
  margin: 0 0 0.35rem;
}
.dash-report-top span, .dash-report-top em {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-style: normal;
}
.dash-report-quote {
  margin: 0.35rem 0;
  padding: 0.55rem 0.7rem;
  border-left: 2px solid var(--accent);
  color: var(--text-secondary);
  font-size: 0.86rem;
}
.dash-report-snap {
  display: block;
  max-width: 12rem;
  max-height: 8rem;
  object-fit: cover;
  border-radius: 0.7rem;
  margin: 0.4rem 0;
  border: 1px solid var(--border);
}
.dash-sub {
  margin: 1.3rem 0 0.55rem;
  font-size: 0.86rem;
  color: var(--text-muted);
}
.dash-mod-report-acts { margin-top: 0.75rem; }
.dash-panel h3 em {
  font-style: normal;
  font-size: 0.75rem;
  color: #ffd36a;
  font-weight: 700;
  margin-left: 0.4rem;
}
@media (max-width: 980px) {
  .dash-mod-grid { grid-template-columns: 1fr; }
  a.dash-user-card { grid-template-columns: 3rem minmax(0, 1fr); }
  .dash-user-card-meta { grid-column: 2; justify-content: flex-start; }
  .dash-mod-hero-in { flex-wrap: wrap; }
  .dash-mod-hero-in .btn-secondary { margin-left: 0; }
}
