/* ==========================================================================
   XIMIK//ANIME — design system
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-cyrillic.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #07070f;
  --bg-soft: #0a0b16;
  --panel: #0d0e1c;
  --panel-2: #121428;
  --text: #eceeff;
  --muted: #9ba1c2;
  --dim: #6f7597;
  --line: rgba(148, 157, 255, 0.14);
  --line-strong: rgba(148, 157, 255, 0.3);
  --violet: #7b5cff;
  --violet-soft: #a58cff;
  --cyan: #38d9ff;
  --red: #ff4d6d;
  --gold: #ffd479;
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Consolas", monospace;
  --container: 1240px;
  --header-h: 76px;
  --radius: 16px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 18px);
  scrollbar-color: #343860 #080810;
}

body {
  margin: 0;
  min-height: 100%;
  background-color: var(--bg);
  background-image: radial-gradient(1200px 700px at 82% -12%, rgba(91, 61, 255, 0.18), transparent 62%),
    radial-gradient(900px 600px at -8% 30%, rgba(35, 175, 255, 0.07), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image: linear-gradient(rgba(140, 150, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 150, 255, 0.035) 1px, transparent 1px);
  background-size: 74px 74px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 10%, transparent 78%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

main {
  position: relative;
  z-index: 1;
}

.kanji-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 8%, #000 88%, transparent 100%);
}
.kanji-glyph {
  position: absolute;
  top: 100%;
  left: var(--x, 50%);
  color: var(--tint, #4dff9d);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", "MS Mincho", serif;
  font-size: var(--s, 32px);
  font-weight: 500;
  line-height: 1;
  opacity: 0;
  white-space: nowrap;
  text-shadow: 0 0 24px rgba(64, 255, 154, 0.28);
  filter: blur(var(--blur, 0));
  mix-blend-mode: screen;
  animation: kanji-rise var(--d, 40s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform, opacity;
  user-select: none;
}
.hero__kanji {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 86%, transparent 100%);
}

body.is-locked,
body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

svg {
  display: block;
}

::selection {
  background: rgba(123, 92, 255, 0.55);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.mono {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--violet);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 16px;
}

.text-gradient {
  background: linear-gradient(100deg, #ffffff 0%, #b8a8ff 52%, #38d9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.outline {
  color: transparent;
  -webkit-text-stroke: 1px rgba(190, 192, 255, 0.55);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow__sep {
  color: var(--dim);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Scroll progress / header
   -------------------------------------------------------------------------- */

.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 80;
  pointer-events: none;
}
.scroll-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transform: scaleX(0);
  transform-origin: 0 50%;
  box-shadow: 0 0 12px rgba(56, 217, 255, 0.6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  background: rgba(7, 7, 15, 0.62);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s, border-color 0.3s;
}
.site-header.is-scrolled {
  background: rgba(7, 7, 15, 0.92);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}
.brand__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  filter: drop-shadow(0 0 10px rgba(77, 255, 158, 0.22));
  transition: filter 0.3s, transform 0.3s;
}
.brand__mark::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0 68%,
    rgba(120, 255, 185, 0.75) 84%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 0.5px));
  opacity: 0.6;
  animation: spin 9s linear infinite;
  pointer-events: none;
}
.brand__mark img {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: block;
}
.brand:hover .brand__mark {
  filter: drop-shadow(0 0 18px rgba(77, 255, 158, 0.7));
  transform: translateY(-1px);
}
.brand__text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.brand__text strong {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(77, 255, 158, 0.14);
}
.brand__text small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.nav__link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}
.nav__link.is-active {
  color: #fff;
}
.nav__link.is-active::after {
  content: "";
  position: absolute;
  inset: auto 13px 2px;
  height: 2px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 9px rgba(120, 100, 255, 0.8);
}
.nav__count {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(123, 92, 255, 0.14);
  color: var(--violet-soft);
  font-size: 8px;
  line-height: 1;
}
.nav__count.is-empty {
  color: var(--dim);
  background: transparent;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 8px;
}
.auth-slot {
  display: flex;
  align-items: center;
  gap: 5px;
}
.auth-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.auth-link svg {
  width: 15px;
  height: 15px;
}
.auth-link:hover {
  color: #fff;
  border-color: rgba(120, 255, 180, 0.45);
  background: rgba(77, 255, 158, 0.06);
}
.auth-user {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.auth-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(77, 255, 158, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(77, 255, 158, 0.35), rgba(4, 20, 12, 0.9));
  color: #d8ffe7;
  font-family: var(--font-display);
  font-size: 12px;
  box-shadow: 0 0 16px -6px rgba(77, 255, 158, 0.8);
}
.auth-name {
  max-width: 92px;
  overflow: hidden;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.auth-logout {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--dim);
  transition: color 0.2s, border-color 0.2s;
}
.auth-logout svg {
  width: 14px;
  height: 14px;
}
.auth-logout:hover {
  color: #ff9ab8;
  border-color: rgba(255, 122, 162, 0.45);
}
.header__search {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.header__search svg {
  width: 17px;
  height: 17px;
}
.header__search:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.site-header.is-open .burger span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.site-header.is-open .burger span:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .burger span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons and interface bits
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}
.btn svg {
  width: 17px;
  height: 17px;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn--primary {
  background: linear-gradient(135deg, #8a68ff 0%, #5b3dff 55%, #4a2fff 100%);
  border-color: rgba(180, 165, 255, 0.4);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 14px 34px -14px rgba(101, 70, 255, 0.9);
}
.btn--primary:hover {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 18px 44px -14px rgba(120, 90, 255, 0.95);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(180, 180, 255, 0.45);
}
.btn--danger {
  background: linear-gradient(135deg, #ff5d7d, #c32752);
  border-color: rgba(255, 130, 150, 0.4);
  color: #fff;
}
.btn--sm {
  height: 42px;
  padding: 0 16px;
  font-size: 9px;
  border-radius: 8px;
}
.btn--block {
  width: 100%;
}
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(9, 10, 20, 0.55);
  color: var(--muted);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}
.icon-btn svg {
  width: 17px;
  height: 17px;
}
.icon-btn:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.chip:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.chip.is-active {
  color: #fff;
  border-color: rgba(150, 125, 255, 0.65);
  background: rgba(123, 92, 255, 0.16);
  box-shadow: 0 0 22px -8px rgba(123, 92, 255, 0.8);
}
.chip svg {
  width: 13px;
  height: 13px;
}

.rank-badge {
  display: grid;
  place-items: center;
  width: 36px;
  height: 40px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  z-index: 2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.rank-badge--s {
  background: linear-gradient(145deg, #ffe4a3, #ffb545 55%, #e58b1f);
  color: #241503;
  box-shadow: 0 0 20px -4px rgba(255, 190, 90, 0.6);
}
.rank-badge--a {
  background: linear-gradient(145deg, #c9baff, #8c6bff 55%, #5a38e8);
  color: #fff;
}
.rank-badge--b {
  background: linear-gradient(145deg, #9ef0ff, #38c8ff 55%, #1c78e8);
  color: #04121d;
}
.rank-badge--c {
  background: linear-gradient(145deg, #b4bdd9, #7a849f 55%, #4b536b);
  color: #0a0c16;
}
.rank-badge--d {
  background: linear-gradient(145deg, #8189a3, #4b5268 55%, #2b3042);
  color: #dfe2f2;
}

.genre-tag {
  display: inline-flex;
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(640px, calc(100vh - var(--header-h)), 900px);
  min-height: clamp(640px, calc(100svh - var(--header-h)), 900px);
  padding: 60px 0 90px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -6% 0 0;
  z-index: -3;
  background-image: url("../img/frames/sl2-gate.webp");
  background-size: cover;
  background-position: 62% 38%;
  opacity: 0.42;
  filter: saturate(0.92) contrast(1.05);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 52%, transparent 96%);
  transform: scale(1.03);
}
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(90deg, var(--bg) 2%, rgba(7, 7, 15, 0.93) 34%, rgba(7, 7, 15, 0.38) 67%, rgba(7, 7, 15, 0.72) 100%),
    linear-gradient(to bottom, rgba(7, 7, 15, 0.15) 0%, rgba(7, 7, 15, 0.1) 55%, var(--bg) 98%),
    radial-gradient(55% 70% at 77% 38%, rgba(96, 66, 255, 0.24), transparent 70%);
}
.hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 60px;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero__title {
  margin: 20px 0 18px;
  font-size: clamp(54px, 7.4vw, 108px);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 0.88;
  text-transform: uppercase;
}
.hero__line {
  display: block;
  background: linear-gradient(180deg, #fff 20%, #c5c8ff 70%, #8d8cc9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 30px rgba(70, 50, 200, 0.25));
}
.hero__line--outline {
  background: none;
  color: transparent;
  -webkit-text-stroke: 1.4px rgba(196, 196, 255, 0.6);
  filter: drop-shadow(0 0 34px rgba(110, 82, 255, 0.35));
}
.hero__subtitle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__subtitle span {
  color: var(--dim);
}
.hero__lead {
  max-width: 520px;
  color: #b7bcd8;
  font-size: 16px;
  line-height: 1.75;
}
.hero__lead strong {
  color: #fff;
  font-weight: 600;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero__stats {
  display: flex;
  gap: 36px;
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.hero__stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 3px;
}
.hero__stats dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero__stats dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 500;
  line-height: 1;
}
.hero__stats dd span {
  color: var(--dim);
  font-size: 0.55em;
}

.hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 400px);
  z-index: 2;
}
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 12% -18% -14%;
  background: radial-gradient(circle, rgba(110, 82, 255, 0.4), transparent 65%);
  filter: blur(40px);
  z-index: -1;
}

.hunter-card {
  position: relative;
  border: 1px solid rgba(132, 137, 255, 0.38);
  background: linear-gradient(160deg, rgba(21, 23, 48, 0.94), rgba(8, 9, 20, 0.97));
  box-shadow: 0 40px 90px -35px #000, 0 0 70px -24px rgba(103, 76, 255, 0.75);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
  animation: float 9s ease-in-out infinite;
}
.hunter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px);
  mix-blend-mode: overlay;
}
.hunter-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 15px;
  border-bottom: 1px solid rgba(132, 137, 255, 0.18);
  background: rgba(6, 7, 15, 0.5);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hunter-card__bar span:last-child {
  color: var(--dim);
}
.bar-dots {
  display: inline-flex;
  gap: 4px;
}
.bar-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(160, 170, 255, 0.35);
}
.bar-dots i:first-child {
  background: var(--cyan);
  box-shadow: 0 0 6px var(--cyan);
}
.hunter-card__media {
  position: relative;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  background: #05060c;
}
.hunter-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
  filter: saturate(0.95) contrast(1.05);
}
.hunter-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 9, 20, 0.98), rgba(8, 9, 20, 0.05) 46%, transparent),
    linear-gradient(90deg, rgba(8, 9, 20, 0.35), transparent 40%);
}
.hunter-card__media .rank-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 49px;
  font-size: 18px;
}
.hunter-card__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, transparent 0%, rgba(56, 217, 255, 0.08) 48%, transparent 52%);
  background-size: 100% 240%;
  animation: scan 5.5s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
}
.hunter-card__body {
  position: relative;
  z-index: 2;
  padding: 14px 18px 20px;
  border-top: 1px solid rgba(132, 137, 255, 0.16);
  background: rgba(8, 9, 20, 0.98);
}
.hunter-card__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(140, 150, 255, 0.1);
}
.hunter-card__row span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.hunter-card__row strong {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
}
.hunter-card__row strong.accent {
  color: var(--cyan);
}
.hunter-card__level {
  margin-top: 14px;
}
.level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.level-head span:last-child {
  color: var(--cyan);
}
.level-bar {
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.level-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 217, 255, 0.75);
  transform-origin: 0 50%;
  animation: level-up 2.4s var(--ease) 0.6s both;
}
.hunter-card__float {
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border: 1px solid rgba(56, 217, 255, 0.45);
  background: rgba(5, 12, 22, 0.9);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 26px -6px rgba(56, 217, 255, 0.55);
  backdrop-filter: blur(8px);
  animation: float 6s ease-in-out 0.8s infinite;
}
.hunter-card__float::before {
  content: "+";
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid rgba(56, 217, 255, 0.4);
  border-radius: 50%;
  font-size: 10px;
}
.hero__note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 24px;
  color: var(--dim);
  font-size: 11px;
  line-height: 1.5;
}
.hero__note .mono {
  flex: 0 0 auto;
  color: var(--violet-soft);
  font-size: 8px;
}

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 18px;
  height: 44px;
  transform: translateX(-50%);
}
.hero__scroll::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, var(--line-strong), transparent);
  transform: translateX(-50%);
}
.hero__scroll span {
  position: absolute;
  left: 50%;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  transform: translateX(-50%);
  animation: scroll-dot 2.4s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Ticker
   -------------------------------------------------------------------------- */

.ticker {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: rgba(12, 13, 26, 0.55);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: ticker 42s linear infinite;
}
.ticker:hover .ticker__track {
  animation-play-state: paused;
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 13px 26px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item b {
  color: #fff;
  font-weight: 500;
}
.ticker__item i {
  width: 5px;
  height: 5px;
  background: var(--violet);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(123, 92, 255, 0.8);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  padding: 96px 0;
}
.section--tight {
  padding: 64px 0;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 36px;
  margin-bottom: 44px;
}
.section-head__text {
  max-width: 720px;
}
.section-head h2 {
  margin: 13px 0 14px;
  font-size: clamp(30px, 3.6vw, 47px);
}
.section-head p {
  max-width: 580px;
  color: var(--muted);
  font-size: 15px;
}
.section-head__aside {
  flex: 0 0 auto;
  padding-bottom: 4px;
}
.section-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.section-link svg {
  width: 14px;
  height: 14px;
  transition: transform 0.2s;
}
.section-link:hover {
  color: var(--cyan);
}
.section-link:hover svg {
  transform: translate(2px, -2px);
}

/* --------------------------------------------------------------------------
   Frame marquee
   -------------------------------------------------------------------------- */

.frames-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 97%, transparent 100%);
}
.frames-track {
  display: flex;
  width: max-content;
  animation: marquee 70s linear infinite;
}
.frames-marquee:hover .frames-track,
.frames-marquee:focus-within .frames-track {
  animation-play-state: paused;
}
.frames-set {
  display: flex;
  gap: 16px;
  padding-right: 16px;
}
.frame-card {
  position: relative;
  flex: 0 0 auto;
  width: 340px;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0b0c18;
  overflow: hidden;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.frame-card:hover {
  border-color: rgba(160, 150, 255, 0.55);
  transform: translateY(-3px);
}
.frame-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.frame-card:hover img {
  transform: scale(1.055);
  filter: brightness(1.06);
}
.frame-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 12, 0.94), rgba(4, 5, 12, 0.1) 55%, transparent);
  pointer-events: none;
}
.frame-card__index {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 4px 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 4px;
  background: rgba(5, 6, 13, 0.56);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  backdrop-filter: blur(8px);
}
.frame-card__cap {
  position: absolute;
  inset: auto 14px 13px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.frame-card__cap strong {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.frame-card__cap span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.frames-hint {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}
.frames-hint .mono {
  color: var(--dim);
  font-size: 8px;
}

/* --------------------------------------------------------------------------
   Anime cards
   -------------------------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.cards-grid--catalog {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.anime-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(18, 20, 40, 0.78), rgba(9, 10, 21, 0.92));
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, box-shadow 0.35s;
}
.anime-card:hover {
  transform: translateY(-6px);
  border-color: rgba(146, 124, 255, 0.5);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 44px -24px rgba(110, 80, 255, 0.7);
}
.anime-card__link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.anime-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #0a0b15;
}
.anime-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease), filter 0.4s;
}
.anime-card:hover .anime-card__media img {
  transform: scale(1.05);
}
.anime-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 7, 15, 0.97) 0%, rgba(6, 7, 15, 0.06) 46%, rgba(6, 7, 15, 0.32) 100%);
}
.anime-card__placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, rgba(123, 92, 255, 0.22), rgba(7, 8, 17, 0.95) 68%);
  color: rgba(150, 140, 255, 0.6);
}
.anime-card__placeholder svg {
  width: 56px;
  height: 56px;
}
.anime-card__media .rank-badge {
  position: absolute;
  top: 13px;
  left: 13px;
}
.anime-card__score {
  position: absolute;
  top: 15px;
  right: 13px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(5, 6, 13, 0.62);
  font-family: var(--font-mono);
  font-size: 9px;
  line-height: 1;
  backdrop-filter: blur(8px);
}
.anime-card__score svg {
  width: 9px;
  height: 9px;
  color: var(--gold);
}
.card-fav {
  position: absolute;
  right: 13px;
  bottom: 13px;
  z-index: 3;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(5, 6, 13, 0.58);
  backdrop-filter: blur(8px);
}
.card-fav svg {
  width: 16px;
  height: 16px;
}
.card-fav:hover {
  color: #ff9ab8;
  border-color: rgba(255, 122, 162, 0.55);
}
.card-fav.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5c8a, #b43cff);
  box-shadow: 0 0 20px -4px rgba(255, 92, 138, 0.7);
}
.card-fav.is-active svg {
  fill: currentColor;
}
.anime-card__hover {
  position: absolute;
  left: 14px;
  bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.3s, transform 0.3s;
}
.anime-card__hover svg {
  width: 12px;
  height: 12px;
  color: var(--cyan);
}
.anime-card:hover .anime-card__hover {
  opacity: 1;
  transform: none;
}
.anime-card__mine {
  position: absolute;
  left: 13px;
  bottom: 14px;
  z-index: 2;
  padding: 4px 6px;
  border: 1px solid rgba(56, 217, 255, 0.35);
  border-radius: 4px;
  background: rgba(5, 12, 22, 0.7);
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.anime-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  padding: 17px 17px 15px;
}
.anime-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.anime-card__meta span {
  color: rgba(140, 150, 200, 0.4);
}
.anime-card__title {
  margin-top: 2px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.anime-card__title span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.anime-card__original {
  margin-bottom: 3px;
  overflow: hidden;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.anime-card__genres {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.anime-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(150, 160, 255, 0.08);
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
}
.anime-card__author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.anime-card__author svg {
  width: 10px;
  height: 10px;
  color: var(--violet-soft);
}
.anime-card--preview {
  pointer-events: none;
}
.anime-card--preview .anime-card__media {
  aspect-ratio: 3 / 3.7;
}

/* --------------------------------------------------------------------------
   Top chart
   -------------------------------------------------------------------------- */

.top-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 64px;
  align-items: start;
}
.top-aside h2 {
  margin: 13px 0 16px;
  font-size: clamp(30px, 3.6vw, 47px);
}
.top-aside p {
  max-width: 360px;
  color: var(--muted);
  font-size: 14px;
}
.top-aside .btn {
  margin-top: 26px;
}
.top-list {
  border-top: 1px solid var(--line);
}
.top-row {
  position: relative;
  display: grid;
  grid-template-columns: 42px 50px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s;
}
.top-row:hover {
  background: rgba(255, 255, 255, 0.025);
}
.top-row__link {
  position: absolute;
  inset: 0;
}
.top-row__rank {
  color: rgba(190, 190, 255, 0.22);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 500;
}
.top-row__cover {
  width: 50px;
  height: auto;
  aspect-ratio: 3 / 4;
  border-radius: 5px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.top-row__title {
  min-width: 0;
}
.top-row__title strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-row__title span {
  display: block;
  margin-top: 3px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.top-row__score {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 17px;
}
.top-row__score svg {
  width: 11px;
  height: 11px;
  color: var(--gold);
}
.top-row .card-fav {
  position: relative;
  right: auto;
  bottom: auto;
  width: 34px;
  height: 34px;
  background: rgba(255, 255, 255, 0.02);
}
.top-row .card-fav svg {
  width: 14px;
  height: 14px;
}
.top-row .rank-badge {
  position: absolute;
  left: 62px;
  top: 14px;
  width: 20px;
  height: 23px;
  font-size: 8px;
}

/* --------------------------------------------------------------------------
   Stats band
   -------------------------------------------------------------------------- */

.stats-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(16, 14, 38, 0.65), rgba(8, 9, 19, 0.4) 50%, rgba(12, 20, 30, 0.55)),
    radial-gradient(70% 140% at 50% 50%, rgba(96, 70, 255, 0.1), transparent 70%);
}
.stats-band__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 44px 0;
}
.stat {
  padding: 0 26px;
  border-left: 1px solid var(--line);
}
.stat:first-child {
  border-left: 0;
  padding-left: 0;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 8px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Quest
   -------------------------------------------------------------------------- */

.quest-panel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
  border: 1px solid rgba(140, 120, 255, 0.42);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(31, 25, 72, 0.86), rgba(10, 12, 26, 0.92));
  overflow: hidden;
}
.quest-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.12), transparent);
  animation: quest-scan 8s linear infinite;
  pointer-events: none;
}
.quest-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(255, 255, 255, 0.015) 4px 5px);
}
.quest-panel__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border: 1px solid rgba(56, 217, 255, 0.3);
  background: rgba(56, 217, 255, 0.05);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: var(--cyan);
}
.quest-panel__icon svg {
  width: 30px;
  height: 30px;
}
.quest-panel__text {
  position: relative;
  z-index: 1;
  max-width: 600px;
}
.quest-panel__text h2 {
  margin: 8px 0 7px;
  font-size: clamp(24px, 3vw, 36px);
}
.quest-panel__text p {
  color: var(--muted);
  font-size: 13px;
}
.quest-panel__action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}
.quest-panel__action .mono {
  color: var(--dim);
  font-size: 8px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  padding: 70px 0 26px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(8, 9, 18, 0.55), rgba(4, 5, 10, 0.96));
}
.footer__top {
  display: grid;
  grid-template-columns: 1.35fr 0.7fr 0.8fr 1.15fr;
  gap: 44px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__brand p {
  max-width: 320px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
}
.footer__status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 9px var(--cyan);
  animation: pulse 2.4s infinite;
}
.footer__col h3 {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.footer__col a {
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 12px;
  transition: color 0.2s;
}
.footer__col a:hover {
  color: #fff;
}
.footer__col p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}
.footer__col--about p {
  max-width: 300px;
}
.footer__hint {
  color: var(--dim) !important;
}
.footer__mono {
  margin-top: 12px;
  color: var(--dim) !important;
  font-size: 8px !important;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 22px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.footer__up {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.2s;
}
.footer__up svg {
  width: 12px;
  height: 12px;
  transform: rotate(-45deg);
}
.footer__up:hover {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Page hero / breadcrumbs
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 138px 0 54px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: -40% 0 auto;
  height: 100%;
  background: radial-gradient(55% 65% at 24% 40%, rgba(101, 72, 255, 0.2), transparent 70%);
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(123, 92, 255, 0.55), transparent);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 30px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.breadcrumbs a:hover {
  color: #fff;
}
.breadcrumbs span {
  color: rgba(140, 150, 200, 0.35);
}
.page-title {
  margin: 11px 0 16px;
  font-size: clamp(44px, 6.6vw, 88px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 0.94;
  text-transform: uppercase;
}
.page-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 15px;
}
.page-hero__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.page-hero__meta i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

/* --------------------------------------------------------------------------
   Catalog
   -------------------------------------------------------------------------- */

.catalog-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px 188px auto;
  gap: 10px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 13, 26, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 30;
}
.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(5, 6, 13, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within {
  border-color: rgba(140, 120, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(120, 90, 255, 0.1);
}
.search svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
}
.search input::placeholder {
  color: var(--dim);
}
.search kbd {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
}
.select {
  position: relative;
}
.select select {
  appearance: none;
  width: 100%;
  height: 48px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: rgba(5, 6, 13, 0.55);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
}
.select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 13px;
  width: 7px;
  height: 7px;
  border-right: 1px solid var(--muted);
  border-bottom: 1px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select:focus {
  border-color: rgba(140, 120, 255, 0.6);
}
.select option {
  background: #0d0e1c;
  color: var(--text);
}
.chip--fav {
  height: 48px;
  padding: 0 14px;
}
.chip--fav.is-active {
  color: #ffc3d3;
  border-color: rgba(255, 92, 138, 0.55);
  background: rgba(255, 92, 138, 0.12);
  box-shadow: 0 0 22px -8px rgba(255, 92, 138, 0.7);
}
.chip--fav svg {
  width: 14px;
  height: 14px;
}
.chip--fav.is-active svg {
  fill: currentColor;
}
.genre-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.catalog-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 18px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.catalog-meta strong {
  color: var(--text);
  font-weight: 500;
}
.catalog-reset {
  border: 0;
  background: none;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}
.catalog-reset:hover {
  color: var(--cyan);
}
.catalog-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 70px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}
.catalog-empty svg {
  width: 44px;
  height: 44px;
  color: rgba(150, 140, 255, 0.5);
}
.catalog-empty h3 {
  font-size: 22px;
}
.catalog-empty p {
  max-width: 340px;
  color: var(--muted);
  font-size: 13px;
}
.catalog-empty .btn {
  margin-top: 8px;
}
.catalog-count-note {
  margin-top: 26px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Detail
   -------------------------------------------------------------------------- */

.detail-hero {
  position: relative;
  padding: 76px 0 58px;
  overflow: hidden;
}
.detail-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  opacity: 0.3;
  filter: saturate(0.85) contrast(1.05);
  transform: scale(1.04);
}
.detail-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 4%, rgba(7, 7, 15, 0.9) 42%, rgba(7, 7, 15, 0.58) 100%),
    linear-gradient(to bottom, rgba(7, 7, 15, 0.4), var(--bg) 98%);
}
.detail-hero .container {
  position: relative;
  z-index: 1;
}
.detail-grid {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 44px;
  align-items: end;
  margin-top: 28px;
}
.detail-poster {
  position: relative;
  aspect-ratio: 3 / 4.1;
  border: 1px solid rgba(160, 155, 255, 0.3);
  border-radius: 12px;
  background: #0a0b15;
  box-shadow: 0 34px 70px -30px #000, 0 0 50px -28px rgba(110, 80, 255, 0.75);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.detail-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail-poster .rank-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 49px;
  font-size: 17px;
}
.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
}
.detail-head__main {
  min-width: 0;
}
.detail-title {
  margin: 12px 0 9px;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.detail-original {
  margin-bottom: 18px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 20px;
}
.detail-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.detail-chip svg {
  width: 11px;
  height: 11px;
  color: var(--violet-soft);
}
.detail-chip--status {
  border-color: rgba(56, 217, 255, 0.28);
  color: var(--cyan);
}
.detail-short {
  max-width: 640px;
  margin-bottom: 22px;
  color: #b8bdd8;
  font-size: 14px;
  line-height: 1.7;
}
.score-orb {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan) calc(var(--score) * 1%), rgba(255, 255, 255, 0.09) 0);
  box-shadow: 0 0 32px -12px rgba(56, 217, 255, 0.7);
}
.score-orb::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #090a16;
}
.score-orb span {
  position: relative;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
}
.score-orb small {
  position: relative;
  margin-top: 5px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
}
.detail-actions .btn {
  height: 44px;
  font-size: 9px;
  padding: 0 15px;
}
.detail-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.detail-action svg {
  width: 15px;
  height: 15px;
}
.detail-action:hover {
  color: #fff;
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}
.detail-action.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #ff5c8a, #b43cff);
}
.detail-action.is-active svg {
  fill: currentColor;
}
.detail-action--like.is-active {
  background: linear-gradient(135deg, #ff5c8a, #ff7b54);
}
.detail-action--danger {
  color: #ff8aa0;
  border-color: rgba(255, 92, 109, 0.28);
}
.detail-action--danger:hover {
  color: #fff;
  background: rgba(255, 92, 109, 0.18);
  border-color: rgba(255, 92, 109, 0.5);
}

.detail-content {
  padding-top: 56px;
}
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 56px;
  align-items: start;
}
.detail-section + .detail-section {
  margin-top: 46px;
}
.detail-section__head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 20px;
}
.detail-section__head::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
}
.detail-section h2 {
  font-size: 22px;
  letter-spacing: -0.02em;
}
.prose p {
  margin-bottom: 16px;
  color: #b8bdd8;
  font-size: 14.5px;
  line-height: 1.85;
}
.prose p:last-child {
  margin-bottom: 0;
}
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.gallery-item {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0a0b15;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-item span {
  position: absolute;
  inset: auto 9px 8px;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 7px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px #000;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 5, 12, 0.9), transparent 55%);
}
.detail-aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 13, 26, 0.62);
  padding: 22px;
}
.panel__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.info-list {
  display: flex;
  flex-direction: column;
}
.info-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(150, 160, 255, 0.08);
}
.info-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-row dt {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.info-row dd {
  margin: 0;
  text-align: right;
  font-size: 12px;
}
.author-card {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(140, 120, 255, 0.35);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(123, 92, 255, 0.3), rgba(9, 10, 22, 0.9));
  color: var(--violet-soft);
  font-family: var(--font-display);
  font-size: 13px;
}
.author-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
}
.author-card span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.panel__note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 10px;
  line-height: 1.6;
}
.detail-back {
  justify-content: center;
}

.related {
  padding-top: 64px;
}

/* --------------------------------------------------------------------------
   Add form
   -------------------------------------------------------------------------- */

.add-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 370px;
  gap: 38px;
  align-items: start;
}
.add-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-panel {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(12, 13, 26, 0.55);
}
.form-panel legend {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  margin-left: -9px;
  border-radius: 4px;
  background: #0b0c18;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.form-num {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 22px;
  padding: 0 6px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--violet-soft);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}
.field label {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field label span {
  color: var(--red);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: rgba(5, 6, 13, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--dim);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(140, 120, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(120, 90, 255, 0.11);
}
.field select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field textarea {
  min-height: 150px;
  line-height: 1.7;
  resize: vertical;
}
.field__hint {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.field__error {
  display: none;
  color: #ff8aa0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.02em;
}
.field.has-error input,
.field.has-error textarea,
.field.has-error select {
  border-color: rgba(255, 92, 109, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 92, 109, 0.08);
}
.field.has-error .field__error {
  display: block;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.counter {
  margin-left: auto;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.genre-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.genre-picker .chip {
  height: 34px;
  font-size: 8px;
}
.genre-picker .chip.is-active {
  color: #fff;
}
.genre-picker-hint {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.tabs {
  display: flex;
  width: max-content;
  max-width: 100%;
  gap: 4px;
  margin-top: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 13, 0.5);
}
.tabs button {
  padding: 8px 15px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s, background 0.2s;
}
.tabs button[aria-selected="true"] {
  background: rgba(123, 92, 255, 0.18);
  color: #fff;
}
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 168px;
  margin-top: 14px;
  padding: 24px;
  border: 1px dashed rgba(140, 150, 255, 0.34);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.012);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.dropzone:hover,
.dropzone.is-drag {
  border-color: rgba(165, 140, 255, 0.8);
  background: rgba(123, 92, 255, 0.06);
}
.dropzone svg {
  width: 30px;
  height: 30px;
  color: var(--violet-soft);
}
.dropzone strong {
  font-size: 13px;
  font-weight: 500;
}
.dropzone small {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.04em;
}
.media-preview {
  position: relative;
  display: flex;
  gap: 16px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 6, 13, 0.45);
}
.media-preview__img {
  width: 108px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--line);
}
.media-preview__info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  justify-content: center;
}
.media-preview__info strong {
  font-size: 12px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-preview__info span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
}
.media-preview__actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn:hover {
  color: var(--cyan);
}
.frames-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.frame-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 5px;
  overflow: hidden;
  background: #090a14;
}
.frame-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame-thumb button {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(5, 6, 13, 0.72);
  color: #fff;
}
.frame-thumb button svg {
  width: 11px;
  height: 11px;
}
.range-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 18px;
}
.range-row input[type="range"] {
  flex: 1;
  height: 4px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  outline: 0;
  background: linear-gradient(90deg, var(--violet) var(--p, 80%), rgba(255, 255, 255, 0.1) 0);
  accent-color: var(--violet);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.range-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 12px rgba(123, 92, 255, 0.8);
  cursor: grab;
}
.range-row input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--violet);
}
.score-output {
  flex: 0 0 74px;
  padding: 7px 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(5, 6, 13, 0.5);
  font-family: var(--font-display);
  font-size: 20px;
  text-align: center;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0 20px;
  flex-wrap: wrap;
}
.form-actions .btn {
  min-width: 240px;
}
.form-actions .field__hint {
  max-width: 260px;
}
.form-error {
  display: none;
  margin-top: 4px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 92, 109, 0.4);
  border-radius: 8px;
  background: rgba(255, 92, 109, 0.08);
  color: #ffb1bf;
  font-size: 12px;
}
.form-error.is-visible {
  display: block;
}
.add-preview {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.add-preview .anime-card {
  max-width: 330px;
}
.add-preview__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.add-preview__head .mono {
  color: var(--muted);
  font-size: 8px;
}
.add-preview__note {
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   Accounts, player, profile
   -------------------------------------------------------------------------- */

.auth-page {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  padding: 104px 0 72px;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  max-width: 1040px;
  margin: 0 auto;
}
.auth-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(140, 150, 255, 0.28);
  border-radius: 16px;
  background: linear-gradient(160deg, rgba(17, 20, 40, 0.94), rgba(8, 9, 20, 0.97));
  box-shadow: 0 40px 100px -40px #000;
}
.auth-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.018) 3px 4px);
}
.auth-card > * {
  position: relative;
}
.auth-card__eyebrow {
  margin-bottom: 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.auth-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}
.auth-card__lead {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.auth-card .field {
  margin-top: 14px;
}
.auth-card .field input {
  height: 48px;
}
.auth-card .form-actions {
  margin-top: 22px;
  padding: 0;
}
.auth-card .btn {
  width: 100%;
}
.auth-switch {
  margin-top: 20px;
  color: var(--dim);
  font-size: 11px;
  text-align: center;
}
.auth-switch a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.auth-error {
  display: none;
  margin-top: 16px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 92, 109, 0.4);
  border-radius: 8px;
  background: rgba(255, 92, 109, 0.08);
  color: #ffb1bf;
  font-size: 12px;
  line-height: 1.5;
}
.auth-error.is-visible {
  display: block;
}
.auth-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding-left: 30px;
}
.auth-aside::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(77, 255, 158, 0.5), transparent);
}
.auth-aside__logo {
  width: 126px;
  height: 126px;
  filter: drop-shadow(0 0 32px rgba(77, 255, 158, 0.35));
}
.auth-aside h2 {
  max-width: 430px;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
}
.auth-aside p {
  max-width: 390px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}
.auth-benefits {
  display: grid;
  gap: 9px;
  margin-top: 4px;
}
.auth-benefits span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #c8cde4;
  font-size: 12px;
}
.auth-benefits svg {
  width: 14px;
  height: 14px;
  color: var(--cyan);
}
.auth-aside__meta {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-page {
  position: relative;
  padding: 128px 0 76px;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 36px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  flex: 0 0 auto;
  border: 1px solid rgba(77, 255, 158, 0.45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, rgba(77, 255, 158, 0.3), rgba(5, 18, 13, 0.95));
  color: #e6fff0;
  font-family: var(--font-display);
  font-size: 30px;
  box-shadow: 0 0 40px -12px rgba(77, 255, 158, 0.6);
}
.account-head__text {
  min-width: 0;
}
.account-head__text h1 {
  margin: 4px 0 5px;
  font-size: clamp(30px, 4vw, 48px);
}
.account-head__text p {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-actions {
  display: flex;
  gap: 8px;
  margin-left: auto;
}
.account-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 46px;
}
.account-stat {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(12, 13, 26, 0.6);
}
.account-stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
}
.account-stat span {
  display: block;
  margin-top: 7px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.account-section {
  margin-top: 38px;
}
.account-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.account-section__head h2 {
  font-size: 24px;
}
.account-section__head a {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.account-empty {
  padding: 34px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  font-size: 13px;
}
.account-empty a {
  color: var(--cyan);
}
.progress-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(12, 13, 26, 0.55);
}
.progress-row__cover {
  width: 38px;
  height: 50px;
  flex: 0 0 auto;
  border-radius: 4px;
  object-fit: cover;
}
.progress-row__text {
  min-width: 0;
  flex: 1;
}
.progress-row__text strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.progress-row__text span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.progress-row .btn {
  height: 36px;
  padding: 0 11px;
  font-size: 8px;
}
.account-logout {
  width: auto;
  padding: 0 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Player */

.watch-page {
  position: relative;
  padding: 108px 0 76px;
}
.watch-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.watch-head h1 {
  margin-top: 8px;
  font-size: clamp(26px, 3.4vw, 44px);
}
.watch-head__meta {
  margin-top: 7px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}
.player-shell {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(140, 150, 255, 0.28);
  border-radius: 14px;
  background: #03040a;
  box-shadow: 0 30px 80px -30px #000;
}
.player-shell video,
.player-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #000;
}
.player-empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: radial-gradient(circle at 50% 40%, rgba(26, 50, 40, 0.55), rgba(4, 5, 12, 0.96));
}
.player-empty svg {
  width: 52px;
  height: 52px;
  color: rgba(77, 255, 158, 0.55);
}
.player-empty h2 {
  font-size: 22px;
}
.player-empty p {
  max-width: 480px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.player-empty .btn {
  margin-top: 4px;
}
.player-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.watch-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.watch-side .panel {
  padding: 18px;
}
.watch-side__cover {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  object-fit: cover;
  margin-bottom: 14px;
}
.watch-side__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
}
.watch-side__original {
  margin-top: 4px;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
}
.watch-side__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.watch-side__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.watch-side__actions .btn {
  width: 100%;
}
.episode-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 280px;
  overflow: auto;
}
.episode-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  text-align: left;
}
.episode-list button:hover,
.episode-list button.is-active {
  color: #fff;
  border-color: rgba(77, 255, 158, 0.4);
  background: rgba(77, 255, 158, 0.06);
}
.player-login {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px;
  text-align: center;
  background: rgba(4, 6, 13, 0.9);
  backdrop-filter: blur(8px);
}
.player-login h2 {
  font-size: 24px;
}
.player-login p {
  max-width: 420px;
  color: var(--muted);
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  grid-template-rows: 64px minmax(0, 1fr);
  padding: 0 22px 22px;
}
.lightbox[hidden] {
  display: none;
}
.lightbox__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 9, 0.94);
  backdrop-filter: blur(14px);
}
.lightbox__top {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.lightbox__brand {
  color: var(--violet-soft);
  font-size: 8px;
}
.lightbox__count {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.lightbox__close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 11, 22, 0.7);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 200, 255, 0.5);
}
.lightbox__figure {
  position: relative;
  z-index: 2;
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-width: 0;
  min-height: 0;
  margin: 0;
}
.lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 190px);
  border: 1px solid rgba(160, 160, 255, 0.3);
  border-radius: 6px;
  box-shadow: 0 30px 80px -20px #000;
  object-fit: contain;
}
.lightbox__caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.lightbox__caption strong {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
}
.lightbox__caption span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.lightbox__nav {
  position: relative;
  z-index: 2;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(10, 11, 22, 0.6);
  color: #fff;
  transition: background 0.2s, border-color 0.2s;
}
.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(200, 200, 255, 0.5);
}
.lightbox__nav--prev {
  grid-column: 1;
  grid-row: 2;
}
.lightbox__nav--next {
  grid-column: 3;
  grid-row: 2;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */

.modal {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.modal::backdrop {
  background: rgba(3, 4, 10, 0.84);
  backdrop-filter: blur(9px);
}
.modal__panel {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(140, 120, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(160deg, #15162c 0%, #090a16 100%);
  box-shadow: 0 50px 120px -30px #000, 0 0 80px -30px rgba(120, 90, 255, 0.6);
}
.modal__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.02) 3px 4px);
}
.modal__eyebrow {
  position: relative;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.modal__title {
  position: relative;
  margin: 11px 0 12px;
  font-size: 27px;
  letter-spacing: -0.03em;
}
.modal__text {
  position: relative;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}
.modal__stats {
  position: relative;
  list-style: none;
  margin-top: 20px;
  border-top: 1px solid var(--line);
}
.modal__stats li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.modal__stats span {
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.modal__stats strong {
  font-size: 12px;
  font-weight: 500;
  text-align: right;
}
.modal__actions {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 26px;
}
.modal__actions .btn {
  height: 44px;
  font-size: 9px;
}
.modal__close {
  position: absolute;
  top: 13px;
  right: 13px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}
.modal__close:hover {
  color: #fff;
}
.modal__close svg {
  width: 14px;
  height: 14px;
}
.modal__check {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 1px solid rgba(56, 217, 255, 0.4);
  border-radius: 50%;
  background: rgba(56, 217, 255, 0.08);
  color: var(--cyan);
  box-shadow: 0 0 34px -8px rgba(56, 217, 255, 0.65);
}
.modal__check svg {
  width: 24px;
  height: 24px;
}

/* --------------------------------------------------------------------------
   Toasts
   -------------------------------------------------------------------------- */

.toast-host {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: min(360px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: rgba(12, 13, 26, 0.96);
  box-shadow: 0 18px 40px -16px #000;
  color: var(--text);
  font-size: 12px;
  animation: toast-in 0.3s var(--ease);
  backdrop-filter: blur(12px);
}
.toast--success {
  border-color: rgba(56, 217, 255, 0.35);
}
.toast--error {
  border-color: rgba(255, 92, 109, 0.45);
}
.toast__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(56, 217, 255, 0.1);
  color: var(--cyan);
  flex: 0 0 auto;
}
.toast--error .toast__icon {
  background: rgba(255, 92, 109, 0.1);
  color: #ff8aa0;
}
.toast__icon svg {
  width: 13px;
  height: 13px;
}
.toast__close {
  margin-left: auto;
  padding: 3px;
  border: 0;
  background: none;
  color: var(--dim);
}
.toast__close svg {
  width: 12px;
  height: 12px;
}
.toast.is-leaving {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s;
}

/* --------------------------------------------------------------------------
   Reveal / animation
   -------------------------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 45ms);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes kanji-rise {
  0% {
    transform: translate3d(0, 10vh, 0) rotate(var(--rot, 0deg));
    opacity: 0;
  }
  7% {
    opacity: var(--o, 0.08);
  }
  82% {
    opacity: var(--o, 0.08);
  }
  100% {
    transform: translate3d(var(--drift, 0px), -118vh, 0) rotate(calc(var(--rot, 0deg) + 4deg));
    opacity: 0;
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}
@keyframes scan {
  from {
    background-position: 0 -120%;
  }
  to {
    background-position: 0 120%;
  }
}
@keyframes level-up {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}
@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
@keyframes quest-scan {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(100%);
  }
}
@keyframes scroll-dot {
  0% {
    top: 0;
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: 38px;
    opacity: 0;
  }
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* --------------------------------------------------------------------------
   Not found
   -------------------------------------------------------------------------- */

.not-found {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 560px;
  margin: 0 auto;
  padding: 150px 0;
  text-align: center;
}
.not-found .rank-badge {
  width: 64px;
  height: 70px;
  font-size: 26px;
}
.not-found h1 {
  font-size: 38px;
}
.not-found p {
  color: var(--muted);
  font-size: 14px;
}
.not-found .btn {
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1180px) {
  .hero__inner {
    gap: 38px;
  }
  .hero__stats {
    gap: 26px;
  }
  .cards-grid--catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .top-layout {
    gap: 40px;
  }
  .detail-layout {
    gap: 34px;
  }
  .add-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 26px;
  }
}

@media (max-width: 1024px) {
  :root {
    --header-h: 70px;
  }
  .nav__link {
    padding: 10px 10px;
  }
  .header__inner {
    gap: 20px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero__inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  }
  .hero__visual {
    width: min(100%, 350px);
  }
  .top-layout {
    grid-template-columns: 1fr;
  }
  .top-aside {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
  }
  .top-aside .btn {
    margin-top: 0;
  }
  .top-aside p {
    max-width: 460px;
  }
  .footer__top {
    grid-template-columns: 1.3fr 0.7fr 0.8fr;
  }
  .footer__col--about {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
  }
  .footer__col--about h3 {
    grid-column: 1 / -1;
  }
  .add-layout {
    grid-template-columns: 1fr;
  }
  .add-preview {
    position: static;
    order: 0;
    margin-top: 18px;
  }
  .add-preview__head {
    width: 100%;
    margin-bottom: 0;
  }
  .add-preview .anime-card {
    width: 260px;
  }
  .add-preview__note {
    max-width: 300px;
    margin-top: 0;
  }
  .detail-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 32px;
  }
}

@media (max-width: 900px) {
  .site-header {
    height: var(--header-h);
  }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #090a14;
    box-shadow: 0 30px 70px -20px #000;
    backdrop-filter: blur(20px);
  }
  .site-header.is-open .nav {
    display: flex;
    animation: toast-in 0.2s var(--ease);
  }
  .nav__link {
    padding: 14px;
    font-size: 11px;
  }
  .nav__link.is-active {
    background: rgba(123, 92, 255, 0.12);
  }
  .nav__link.is-active::after {
    display: none;
  }
  .nav__count {
    margin-left: auto;
  }
  .burger {
    display: block;
  }
  .header__actions {
    margin-left: auto;
  }
  .header__search {
    display: none;
  }
  .header__add span {
    display: none;
  }
  .header__add {
    width: 42px;
    padding: 0;
    height: 42px;
  }
  .header__add svg {
    width: 18px;
    height: 18px;
  }
  .hero {
    min-height: auto;
    padding: 64px 0 74px;
  }
  .hero__bg {
    background-position: 62% 30%;
    opacity: 0.3;
  }
  .hero__veil {
    background: linear-gradient(180deg, rgba(7, 7, 15, 0.55), rgba(7, 7, 15, 0.86) 55%, var(--bg) 98%),
      linear-gradient(90deg, rgba(7, 7, 15, 0.88), rgba(7, 7, 15, 0.35));
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .hero__content {
    max-width: 640px;
  }
  .hero__visual {
    justify-self: center;
    width: min(100%, 360px);
  }
  .hero__scroll {
    display: none;
  }
  .section {
    padding: 74px 0;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .section-head__aside {
    padding: 0;
  }
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
  .cards-grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .frame-card {
    width: 290px;
  }
  .quest-panel {
    grid-template-columns: auto 1fr;
    padding: 28px;
  }
  .quest-panel__action {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__col--about {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .footer__up {
    display: none;
  }
  .catalog-tools {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
  .search {
    grid-column: 1 / -1;
  }
  .chip--fav {
    justify-content: center;
  }
  .detail-hero {
    padding-top: 42px;
  }
  .detail-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 26px;
    align-items: start;
  }
  .detail-head {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .score-orb {
    width: 86px;
    height: 86px;
  }
  .score-orb span {
    font-size: 22px;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .detail-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-hero {
    padding-top: 100px;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }
  .brand__text small {
    display: none;
  }
  .brand__text strong {
    font-size: 18px;
  }
  .auth-link {
    width: 40px;
    padding: 0;
  }
  .auth-link span,
  .auth-name {
    display: none;
  }
  .auth-user {
    gap: 0;
  }
  .auth-logout {
    display: none;
  }
  .hero__title {
    font-size: clamp(45px, 13vw, 74px);
  }
  .hero__lead {
    font-size: 14px;
  }
  .hero__stats {
    gap: 20px;
    justify-content: space-between;
  }
  .hero__stats dd {
    font-size: 24px;
  }
  .hero__stats dt {
    font-size: 7px;
  }
  .hero__visual {
    width: min(100%, 330px);
  }
  .hero__actions .btn {
    flex: 1;
    min-width: 0;
    padding: 0 14px;
    font-size: 9px;
  }
  .hunter-card__media {
    aspect-ratio: 4 / 4.2;
  }
  .section {
    padding: 60px 0;
  }
  .section-head h2 {
    font-size: 28px;
  }
  .frames-hint {
    display: none;
  }
  .frame-card {
    width: 255px;
  }
  .frame-card__cap strong {
    font-size: 12px;
  }
  .stats-band__grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px 0;
    padding: 34px 0;
  }
  .stat {
    padding: 0 18px;
  }
  .stat:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .stat b {
    font-size: 34px;
  }
  .top-row {
    grid-template-columns: 30px 42px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 12px 4px;
  }
  .top-row__cover {
    width: 42px;
  }
  .top-row__score {
    font-size: 15px;
  }
  .top-row .card-fav {
    display: none;
  }
  .top-row .rank-badge {
    left: 44px;
    top: 12px;
    width: 16px;
    height: 19px;
    font-size: 7px;
  }
  .top-row__rank {
    font-size: 16px;
  }
  .quest-panel {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px;
  }
  .quest-panel__icon {
    width: 52px;
    height: 52px;
  }
  .quest-panel__icon svg {
    width: 24px;
    height: 24px;
  }
  .quest-panel__action {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .quest-panel__action .btn {
    width: 100%;
  }
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__col--about {
    display: block;
  }
  .footer__col--about p {
    margin-bottom: 10px;
  }
  .catalog-tools {
    grid-template-columns: 1fr;
  }
  .search {
    grid-column: auto;
  }
  .catalog-meta {
    font-size: 8px;
  }
  .page-hero {
    padding: 84px 0 38px;
  }
  .page-title {
    font-size: clamp(38px, 12vw, 60px);
  }
  .breadcrumbs {
    margin-bottom: 22px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-poster {
    width: 180px;
    transform: none;
  }
  .detail-title {
    font-size: clamp(30px, 9vw, 44px);
  }
  .detail-head {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .detail-aside {
    grid-template-columns: 1fr;
  }
  .detail-content {
    padding-top: 38px;
  }
  .detail-section + .detail-section {
    margin-top: 34px;
  }
  .field-row,
  .field-row--3 {
    grid-template-columns: 1fr;
  }
  .form-panel {
    padding: 22px 18px;
  }
  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .form-actions .btn {
    width: 100%;
  }
  .add-preview {
    order: 0;
    margin-top: 8px;
    display: block;
  }
  .add-preview .anime-card {
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
  }
  .add-preview__note {
    margin-top: 10px;
  }
  .lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: 56px minmax(0, 1fr) 64px;
    padding: 0 14px 14px;
  }
  .lightbox__figure {
    grid-column: 1;
    grid-row: 2;
  }
  .lightbox__figure img {
    max-height: calc(100vh - 230px);
  }
  .lightbox__nav {
    position: absolute;
    bottom: 22px;
    z-index: 3;
  }
  .lightbox__nav--prev {
    left: 22px;
  }
  .lightbox__nav--next {
    right: 22px;
  }
  .modal__panel {
    padding: 26px 22px;
  }
  .modal__actions {
    flex-direction: column-reverse;
  }
  .modal__actions .btn {
    width: 100%;
  }
  .toast-host {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
  .detail-actions .btn,
  .detail-action {
    flex: 1;
    justify-content: center;
    min-width: 44%;
  }
}

@media (max-width: 520px) {
  .header__inner {
    gap: 12px;
  }
  .brand__mark {
    width: 36px;
    height: 36px;
  }
  .header__actions {
    gap: 8px;
  }
  .hero__title {
    font-size: 43px;
  }
  .hero__subtitle {
    font-size: 9px;
    letter-spacing: 0.1em;
    flex-wrap: wrap;
  }
  .hero__stats {
    margin-top: 30px;
    padding-top: 18px;
  }
  .cards-grid,
  .cards-grid--catalog {
    grid-template-columns: 1fr;
  }
  .anime-card__media {
    aspect-ratio: 3 / 3.65;
  }
  .top-aside {
    display: block;
  }
  .top-aside .btn {
    margin-top: 20px;
  }
  .footer__bottom .mono {
    font-size: 7px;
  }
  .catalog-tools {
    gap: 8px;
  }
  .genre-row {
    gap: 6px;
  }
  .chip {
    height: 34px;
    font-size: 8px;
  }
  .detail-actions {
    gap: 7px;
  }
  .detail-actions .btn,
  .detail-action {
    height: 42px;
    font-size: 8px;
  }
  .detail-gallery {
    grid-template-columns: 1fr;
  }
  .tabs button {
    padding: 7px 11px;
    font-size: 8px;
  }
  .frames-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-hero__meta {
    flex-wrap: wrap;
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .auth-layout {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 30px;
  }
  .auth-aside {
    display: none;
  }
  .auth-page {
    padding-top: 78px;
  }
  .watch-layout {
    grid-template-columns: 1fr;
  }
  .watch-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .account-actions {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 640px) {
  .auth-card {
    padding: 24px 20px;
  }
  .account-page {
    padding-top: 94px;
  }
  .account-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .account-head__text h1 {
    font-size: 32px;
  }
  .account-stats {
    grid-template-columns: 1fr 1fr;
  }
  .account-stats .account-stat:last-child {
    grid-column: 1 / -1;
  }
  .watch-page {
    padding-top: 88px;
  }
  .watch-head {
    display: block;
  }
  .watch-side {
    display: flex;
  }
  .watch-side__cover {
    max-width: 180px;
  }
  .player-empty {
    padding: 18px;
  }
  .player-empty h2 {
    font-size: 18px;
  }
  .player-empty p {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
  .frames-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
  }
  .ticker__track {
    animation: none;
    flex-wrap: nowrap;
    width: max-content;
  }
  .frames-set {
    flex-wrap: wrap;
  }
  .frames-set[data-lb-dup] {
    display: none;
  }
  .kanji-field {
    display: none;
  }
  .hero__kanji {
    display: none;
  }
}
