:root {
  color-scheme: dark;
  --bg: #090b14;
  --surface: #111522;
  --surface-2: #171d2d;
  --surface-3: #20283b;
  --text: #f3f4fa;
  --muted: #929bb0;
  --muted-2: #68738b;
  --line: rgba(172, 186, 220, .13);
  --purple: #a78bfa;
  --purple-2: #8b5cf6;
  --cyan: #67e8f9;
  --green: #86efac;
  --danger: #fda4af;
  --radius: 17px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font-family: "DM Sans", sans-serif; overflow-x: hidden; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ambient { position: fixed; pointer-events: none; z-index: -1; border-radius: 50%; filter: blur(100px); opacity: .12; }
.ambient-one { width: 420px; height: 420px; background: #6941d9; top: 5%; left: -240px; }
.ambient-two { width: 420px; height: 420px; background: #087e9a; right: -300px; top: 52%; }

.topbar { position: sticky; z-index: 50; top: 0; height: 76px; padding: 0 clamp(18px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); background: rgba(9, 11, 20, .86); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: "Space Grotesk", sans-serif; font-size: 17px; font-weight: 700; letter-spacing: -.6px; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: linear-gradient(145deg, #a78bfa, #6d4ad8); color: #0b0b16; font-size: 21px; font-weight: 800; box-shadow: 0 5px 25px rgba(139, 92, 246, .26); }
.brand-accent { color: var(--purple); }
.main-nav { display: flex; align-items: center; height: 100%; gap: 8px; }
.nav-link { height: 100%; position: relative; padding: 0 18px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 13px; font-weight: 700; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; bottom: 0; left: 18px; right: 18px; height: 2px; background: var(--purple); border-radius: 3px 3px 0 0; }
.top-actions { display: flex; align-items: center; gap: 13px; }
.connection-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #fbbf24; box-shadow: 0 0 9px rgba(251, 191, 36, .65); }
.connection-badge.cloud .status-dot { background: #4ade80; box-shadow: 0 0 9px rgba(74, 222, 128, .65); }
.account-button { border: 1px solid rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .1); color: #d6c8ff; padding: 10px 17px; border-radius: 10px; cursor: pointer; font-weight: 700; font-size: 12px; }
.account-button:hover { background: rgba(167, 139, 250, .19); }
.mobile-menu-button { display: none; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; padding: 8px 11px; }

.page-shell { width: min(1400px, 100% - 64px); margin: 0 auto; }

.hero,
.hero-panel {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  min-height: 395px;
  align-items: center;
  margin: 34px 0 78px;
  padding: 50px clamp(24px, 5vw, 76px);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .2);
  border-radius: 25px;
  background: radial-gradient(ellipse at 83% 47%, rgba(92, 65, 165, .28), transparent 38%), linear-gradient(110deg, #14192a, #0d1120 67%, #121329);
  box-shadow: var(--shadow);
}
.hero-panel::after,
.hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: 18%;
  top: -240px;
  border-radius: 50%;
  border: 1px solid rgba(167, 139, 250, .14);
  box-shadow: 0 0 0 35px rgba(167, 139, 250, .025), 0 0 0 70px rgba(167, 139, 250, .018);
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 2; max-width: 700px; }
.eyebrow { margin: 0 0 13px; color: var(--purple); font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; }
.eyebrow-line { display: inline-block; width: 20px; height: 1px; margin: 0 9px 3px 0; background: var(--purple); }
.hero h1, .hero-panel h1 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(38px, 5vw, 65px); line-height: 1.04; letter-spacing: -3px; }
.hero h1 span, .hero-panel h1 span { color: var(--purple); }
.hero-description { max-width: 560px; margin: 19px 0 24px; color: #aab3c7; font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 42px; padding: 0 17px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; font-size: 12px; font-weight: 800; transition: transform .18s, background .18s, border-color .18s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #100d1b; background: linear-gradient(120deg, #c4b5fd, #9c7cf2); box-shadow: 0 8px 22px rgba(139, 92, 246, .2); }
.button-primary:hover { background: linear-gradient(120deg, #ddd6fe, #b39aff); }
.button-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.button-quiet { color: #d5d9e8; border-color: var(--line); background: rgba(255, 255, 255, .035); }
.button-quiet:hover, .button-outline:hover { background: rgba(167, 139, 250, .1); border-color: rgba(167, 139, 250, .5); }
.button-outline { color: #d4c8ff; border-color: rgba(167, 139, 250, .38); background: rgba(167, 139, 250, .06); }

.hero-footnote { display: flex; align-items: center; gap: 9px; margin-top: 26px; color: var(--muted); font-size: 11px; }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(134, 239, 172, .8); }
.hero-art { min-height: 270px; position: relative; display: grid; place-items: center; }
.hero-glow { width: 235px; height: 235px; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(132, 93, 231, .33), rgba(53, 52, 112, .08) 58%, transparent 72%); filter: blur(7px); }
.hero-symbol { position: relative; z-index: 2; display: grid; place-items: center; width: 140px; height: 140px; border: 1px solid rgba(201, 187, 255, .55); border-radius: 38px; transform: rotate(-12deg); background: linear-gradient(145deg, rgba(167, 139, 250, .2), rgba(25, 26, 49, .78)); box-shadow: inset 0 0 45px rgba(167, 139, 250, .12), 0 0 65px rgba(139, 92, 246, .18); font-family: "Space Grotesk", sans-serif; font-size: 96px; font-weight: 700; color: #c9baff; }
.hero-symbol span { position: absolute; right: -22px; top: 1px; color: var(--cyan); font-size: 34px; transform: rotate(12deg); }
.orbit { position: absolute; border: 1px solid rgba(169, 151, 232, .24); border-radius: 50%; transform: rotate(-25deg); }
.orbit-a { width: 310px; height: 125px; }
.orbit-b { width: 260px; height: 185px; transform: rotate(50deg); border-color: rgba(103, 232, 249, .16); }
.hero-art-label { position: absolute; color: #9290b7; font-size: 10px; letter-spacing: 2px; }
.label-top { top: 18px; right: 1%; }
.label-bottom { bottom: 18px; left: 0; }

.view-section { display: none; padding-bottom: 76px; }
.view-section.active-view { display: block; animation: viewIn .3s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-heading h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: clamp(29px, 3vw, 38px); letter-spacing: -1.5px; }
.section-subtitle { margin: 8px 0 0; color: var(--muted); font-size: 12px; }

.search-box { display: flex; align-items: center; gap: 9px; width: min(360px, 45%); padding: 5px 6px 5px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--muted); }
.search-box > span, .feed-search > span { font-size: 24px; line-height: 1; }
.search-box input, .feed-search input { width: 100%; min-width: 0; color: var(--text); border: 0; outline: 0; background: transparent; font-size: 12px; }
.search-box input:focus, .feed-search input:focus { outline: 0; }
.search-box button { padding: 9px 13px; border: 0; border-radius: 8px; background: var(--surface-3); color: #ded4ff; font-size: 11px; font-weight: 800; cursor: pointer; }

.toolbar-row { display: flex; justify-content: space-between; align-items: center; gap: 17px; margin-bottom: 23px; }
.chip-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-chip { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .025); color: var(--muted); font-size: 11px; font-weight: 700; cursor: pointer; }
.filter-chip:hover, .filter-chip.selected { border-color: rgba(167, 139, 250, .5); color: #e5dcff; background: rgba(167, 139, 250, .12); }

.dark-input { width: 100%; border: 1px solid var(--line); border-radius: 9px; background: #0d1220; color: var(--text); padding: 11px 12px; font-size: 12px; outline: 0; }
.dark-select { width: auto; min-width: 145px; border: 1px solid var(--line); border-radius: 9px; background: #0d1220; color: var(--text); padding: 11px 12px; font-size: 12px; outline: 0; }
.dark-input:focus, .dark-select:focus { border-color: rgba(167, 139, 250, .65); }
.dark-input::placeholder { color: #6f7890; }

.anime-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.anime-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: linear-gradient(160deg, #151b2b, #101522); cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.anime-card:hover { transform: translateY(-5px); border-color: rgba(167, 139, 250, .52); box-shadow: 0 14px 35px rgba(0, 0, 0, .22); }
.poster-wrap { position: relative; overflow: hidden; aspect-ratio: 3 / 4; background: #1b2131; }
.poster-wrap img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.anime-card:hover .poster-wrap img { transform: scale(1.045); }
.rating-pill { position: absolute; top: 9px; right: 8px; padding: 5px 7px; border-radius: 6px; background: rgba(6, 9, 17, .86); color: #fcd985; font-size: 10px; font-weight: 800; backdrop-filter: blur(7px); }
.card-body { padding: 11px 11px 12px; }
.card-title { display: -webkit-box; overflow: hidden; min-height: 34px; margin: 0 0 7px; color: #f0f1f8; font-size: 12px; line-height: 1.45; font-weight: 700; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.card-meta { display: flex; justify-content: space-between; gap: 5px; color: var(--muted); font-size: 10px; }
.card-genres { overflow: hidden; margin-top: 8px; color: #8e83bc; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }

.load-row { display: flex; justify-content: center; padding-top: 27px; }
.inline-status { min-height: 18px; margin: 12px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.hidden { display: none !important; }
.loading-state, .empty-state { grid-column: 1 / -1; padding: 45px 18px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: rgba(255, 255, 255, .015); text-align: center; font-size: 12px; line-height: 1.7; }

.community-heading { align-items: center; }
.community-stat { display: flex; align-items: center; gap: 11px; padding: 12px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.stat-icon { color: var(--purple); font-size: 23px; }
.community-stat strong { display: block; font-size: 17px; }
.community-stat small { color: var(--muted); font-size: 10px; }

.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 23px; align-items: start; }
.community-main { min-width: 0; }
.composer-card, .sidebar-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(21, 27, 43, .96), rgba(15, 20, 33, .96)); }
.composer-card { padding: 19px; }
.composer-top { display: flex; align-items: center; gap: 12px; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.composer-top strong { font-size: 12px; }
.composer-top p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.avatar { display: grid; flex: 0 0 36px; place-items: center; width: 36px; height: 36px; border-radius: 12px; color: #160f29; background: linear-gradient(135deg, #c4b5fd, #67e8f9); font-family: "Space Grotesk", sans-serif; font-weight: 800; }
.composer-fields { display: grid; gap: 11px; padding-top: 16px; }
.field-row { display: grid; grid-template-columns: auto minmax(120px, 1fr) auto minmax(120px, 1fr); align-items: center; gap: 9px; }
.field-label { color: var(--muted); font-size: 11px; }
.title-input { font-weight: 700; }
.composer-textarea { resize: vertical; min-height: 108px; line-height: 1.6; }
.local-name-wrap { display: grid; gap: 6px; }
.local-name-wrap label { color: var(--muted); font-size: 11px; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.composer-hint { color: var(--muted-2); font-size: 10px; }
.form-status { min-height: 16px; margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.form-status.error { color: var(--danger); }
.form-status.success { color: var(--green); }

.feed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 14px; }
.feed-tabs { display: flex; gap: 5px; }
.feed-tab { padding: 9px 13px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }
.feed-tab.active, .feed-tab:hover { color: #e3d9ff; background: rgba(167, 139, 250, .12); }
.feed-search { display: flex; align-items: center; gap: 7px; width: 215px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--muted); }
.feed-search > span { font-size: 20px; }

.community-feed { display: grid; gap: 12px; }
.post-card { padding: 17px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(145deg, #141a29, #101522); }
.post-top { display: flex; align-items: center; gap: 9px; }
.post-avatar { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; border-radius: 10px; background: #292443; color: #d9caff; font-size: 11px; font-weight: 800; }
.post-author { color: #e5e6f0; font-size: 11px; font-weight: 800; }
.post-time { margin-left: 6px; color: var(--muted-2); font-size: 10px; }
.post-badges { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; justify-content: end; }
.post-badge { padding: 5px 7px; border-radius: 6px; border: 1px solid var(--line); color: #c3b1ff; background: rgba(167, 139, 250, .08); font-size: 9px; font-weight: 800; }
.post-badge.debate { color: #8ce7ed; background: rgba(103, 232, 249, .07); }
.post-anime { margin: 13px 0 5px; color: var(--cyan); font-size: 10px; font-weight: 700; }
.post-title { margin: 5px 0 7px; color: #f3f3fa; font-family: "Space Grotesk", sans-serif; font-size: 17px; letter-spacing: -.35px; }
.post-body { margin: 0; color: #aeb6c9; font-size: 12px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.post-actions { display: flex; align-items: center; gap: 8px; margin-top: 15px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-action { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: rgba(255, 255, 255, .02); font-size: 10px; font-weight: 700; cursor: pointer; }
.post-action:hover, .post-action.selected { color: #d8caff; border-color: rgba(167, 139, 250, .45); background: rgba(167, 139, 250, .1); }
.post-action.oppose.selected { color: #ffc0ce; border-color: rgba(253, 164, 175, .4); background: rgba(253, 164, 175, .08); }
.post-action.spacer { margin-left: auto; }
.vote-summary { margin-left: auto; color: var(--muted-2); font-size: 10px; }

.comment-panel { display: none; margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.comment-panel.open { display: block; }
.comment-list { display: grid; gap: 9px; margin-bottom: 12px; }
.comment-item { padding: 9px 11px; border-radius: 9px; background: rgba(255, 255, 255, .035); }
.comment-item strong { color: #d9ccff; font-size: 10px; }
.comment-item p { margin: 4px 0 0; color: #acb5c7; font-size: 11px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-empty { color: var(--muted-2); font-size: 11px; }
.comment-form { display: flex; gap: 8px; }
.comment-form input { min-width: 0; flex: 1; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; color: var(--text); background: #0c1120; font-size: 11px; }
.comment-form button { border: 0; border-radius: 8px; padding: 0 13px; background: var(--purple); color: #120d20; font-size: 11px; font-weight: 800; cursor: pointer; }

.community-sidebar { display: grid; gap: 13px; }
.sidebar-card { padding: 18px; }
.sidebar-card h3 { margin: 0 0 12px; font-family: "Space Grotesk", sans-serif; font-size: 19px; line-height: 1.3; }
.sidebar-card h3 span { color: var(--purple); }
.sidebar-card ul { margin: 0; padding-left: 16px; color: #a8b0c2; font-size: 11px; line-height: 1.9; }
.sidebar-card .eyebrow { font-size: 10px; }
.topic-link { display: flex; justify-content: space-between; width: 100%; padding: 11px 0; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: #b8c0d2; font-size: 11px; text-align: left; cursor: pointer; }
.topic-link:last-child { border-bottom: 0; }
.topic-link span { color: var(--purple); }
.topic-link:hover { color: var(--text); }
.api-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 11px; color: var(--cyan); background: rgba(103, 232, 249, .1); font-size: 21px; }
.api-card h3 { margin-bottom: 6px; font-size: 15px; }
.api-card p { margin: 0 0 10px; color: var(--muted); font-size: 11px; line-height: 1.7; }
.api-card a { color: var(--cyan); font-size: 11px; font-weight: 700; }

.watchlist-toolbar { justify-content: flex-start; }
.watchlist-item { min-width: 0; }
.watchlist-status { display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-top: 1px solid var(--line); }
.watchlist-status select { width: 100%; border: 0; color: var(--purple); background: transparent; font-size: 10px; outline: 0; }

.site-footer { display: flex; align-items: center; gap: 18px; min-height: 88px; padding: 18px clamp(18px, 5vw, 76px); border-top: 1px solid var(--line); color: var(--muted); }
.footer-brand { font-size: 13px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px; font-size: 16px; }
.site-footer p { margin: 0; font-size: 11px; }
.footer-credit { margin-left: auto; font-size: 10px; }

.modal { position: fixed; z-index: 100; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-scrim { position: absolute; inset: 0; background: rgba(3, 5, 11, .84); backdrop-filter: blur(8px); }
.modal-dialog { position: relative; z-index: 1; width: min(760px, 100%); max-height: min(90vh, 900px); overflow-y: auto; padding: 26px; border: 1px solid rgba(175, 160, 233, .2); border-radius: 18px; background: #101625; box-shadow: var(--shadow); }
.wide-dialog { width: min(930px, 100%); }
.modal-close {
  position: sticky;
  z-index: 5;
  top: 0;
  margin-left: auto;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #20283a;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.modal-close:hover { background: #34304e; }

.detail-hero { display: grid; grid-template-columns: 205px 1fr; gap: 24px; }
.detail-poster { width: 100%; aspect-ratio: 3 / 4; border-radius: 12px; object-fit: cover; background: var(--surface-3); }
.detail-info { min-width: 0; padding-top: 5px; }
.detail-info h2 { margin: 0 0 11px; font-family: "Space Grotesk", sans-serif; font-size: 28px; line-height: 1.15; letter-spacing: -.8px; }
.detail-native { color: var(--muted); font-size: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 13px 0; }
.meta-pill { padding: 6px 9px; border: 1px solid var(--line); border-radius: 99px; color: #c6bddf; background: rgba(255, 255, 255, .025); font-size: 10px; }
.detail-description { margin: 12px 0 0; color: #aeb7c9; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.detail-section { margin-top: 28px; }
.detail-section h3 { margin: 0 0 13px; font-family: "Space Grotesk", sans-serif; font-size: 16px; }
.character-grid, .recommendation-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(105px, 1fr)); gap: 11px; }
.character-card, .recommendation-card { overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: rgba(255, 255, 255, .025); cursor: pointer; }
.character-card:hover, .recommendation-card:hover { border-color: rgba(167, 139, 250, .55); }
.character-card img, .recommendation-card img { display: block; width: 100%; aspect-ratio: 1 / 1.15; object-fit: cover; background: var(--surface-3); }
.character-card p, .recommendation-card p { margin: 7px 8px 9px; color: #d9dbea; font-size: 10px; line-height: 1.4; }
.character-card small { display: block; margin: -4px 8px 8px; color: var(--muted); font-size: 9px; }

.profile-layout { display: grid; grid-template-columns: 165px 1fr; gap: 22px; }
.profile-layout img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 11px; }
.profile-bio { color: #acb5c8; font-size: 12px; line-height: 1.8; white-space: pre-line; }
.profile-actions { margin: 20px 0 5px; }

.account-dialog { width: min(420px, 100%); padding: 30px; }
.account-mark { display: grid; place-items: center; width: 43px; height: 43px; margin-bottom: 20px; border-radius: 13px; background: linear-gradient(145deg, #b9a3ff, #73dcec); color: #11111c; font-family: "Space Grotesk", sans-serif; font-size: 25px; font-weight: 800; }
.account-dialog h2 { margin: 0; font-family: "Space Grotesk", sans-serif; font-size: 27px; }
.account-copy { margin: 8px 0 21px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.account-dialog form { display: grid; gap: 9px; }
.account-dialog label { margin-top: 4px; color: #abb3c6; font-size: 11px; }
.full-button { width: 100%; margin-top: 10px; }
.account-switch { margin: 17px 0 0; color: var(--muted); font-size: 11px; text-align: center; }
.account-switch button { border: 0; background: transparent; color: var(--purple); font-size: 11px; font-weight: 800; cursor: pointer; }
.account-footnote { margin: 16px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.6; text-align: center; }

.toast-region { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: grid; gap: 8px; }
.toast { max-width: min(360px, calc(100vw - 40px)); padding: 12px 15px; border: 1px solid rgba(167, 139, 250, .35); border-radius: 10px; background: #1a2031; color: #e6e3f3; box-shadow: var(--shadow); font-size: 11px; line-height: 1.5; animation: viewIn .2s ease; }
.toast.error { border-color: rgba(253, 164, 175, .4); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1100px) {
  .anime-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .community-layout { grid-template-columns: minmax(0, 1fr) 245px; }
  .hero-art { transform: scale(.85); }
}

@media (max-width: 780px) {
  .topbar { height: 66px; padding: 0 17px; }
  .main-nav { display: none; position: absolute; top: 65px; left: 0; right: 0; height: auto; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #0d1220; }
  .main-nav.mobile-open { display: flex; justify-content: center; }
  .nav-link { height: 43px; }
  .nav-link.active::after { bottom: 2px; }
  .mobile-menu-button { display: inline-block; cursor: pointer; }
  .connection-badge { display: none; }
  .page-shell { width: min(100% - 32px, 680px); }
  .hero, .hero-panel { grid-template-columns: 1fr; min-height: 0; margin: 20px 0 55px; padding: 38px 25px; }
  .hero-art { position: absolute; right: -90px; top: 5px; width: 300px; min-height: 300px; opacity: .28; transform: scale(.8); }
  .hero-copy { max-width: 570px; }
  .hero-description { max-width: 450px; }
  .section-heading { align-items: start; flex-direction: column; }
  .discover-heading { gap: 18px; }
  .search-box { width: 100%; }
  .toolbar-row { align-items: start; flex-direction: column; }
  .dark-select { width: 100%; }
  .community-layout { grid-template-columns: 1fr; }
  .community-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-sidebar .api-card { grid-column: 1 / -1; }
  .community-heading { flex-direction: row; align-items: center; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-label { display: none; }
  .site-footer { flex-wrap: wrap; }
  .footer-credit { margin-left: 0; width: 100%; }
}

@media (max-width: 520px) {
  .brand { font-size: 14px; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; font-size: 18px; }
  .top-actions { gap: 7px; }
  .account-button { padding: 9px 11px; font-size: 11px; }
  .hero, .hero-panel { padding: 33px 20px; }
  .hero h1, .hero-panel h1 { font-size: 39px; letter-spacing: -1.9px; }
  .hero-description { font-size: 12px; }
  .anime-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .section-heading h2 { font-size: 30px; }
  .community-heading { flex-direction: column; }
  .community-stat { align-self: flex-start; }
  .feed-toolbar { align-items: stretch; flex-direction: column; }
  .feed-search { width: 100%; }
  .community-sidebar { grid-template-columns: 1fr; }
  .community-sidebar .api-card { grid-column: auto; }
  .composer-card { padding: 13px; }
  .composer-bottom { align-items: flex-start; flex-direction: column; }
  .composer-bottom .button { width: 100%; }
  .post-card { padding: 13px; }
  .post-title { font-size: 15px; }
  .post-badges { gap: 4px; }
  .post-badge { font-size: 10px; }
  .detail-hero { grid-template-columns: 108px 1fr; gap: 13px; }
  .detail-info h2 { font-size: 19px; }
  .detail-description { font-size: 11px; }
  .modal { padding: 8px; }
  .modal-dialog { max-height: 94vh; padding: 18px; }
  .profile-layout { grid-template-columns: 100px 1fr; gap: 13px; }
  .account-dialog { padding: 24px; }
  .watchlist-toolbar .chip-row { gap: 6px; }
  .filter-chip { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .view-section.active-view,
  .toast { animation: none; }
  .button,
  .anime-card,
  .poster-wrap img { transition: none; }
  .button:hover,
  .anime-card:hover { transform: none; }
  .anime-card:hover .poster-wrap img { transform: none; }
}
