:root {
  --bg: #070b16;
  --card: rgba(16, 24, 46, .72);
  --line: rgba(255,255,255,.1);
  --text: #eef3ff;
  --muted: #93a0bf;
  --gold: #f6c453;
  --cyan: #5eead4;
  --pink: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --safe: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: Outfit, "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; color: inherit; }
.aurora {
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background:
    radial-gradient(1200px 600px at -10% -10%, rgba(96,165,250,.22), transparent 50%),
    radial-gradient(900px 500px at 110% 0%, rgba(246,196,83,.16), transparent 46%),
    radial-gradient(800px 500px at 80% 110%, rgba(94,234,212,.14), transparent 50%),
    linear-gradient(180deg, #070b16 0%, #0b1224 60%, #070b16 100%);
}
.aurora:after {
  content: ""; position: absolute; width: 180%; height: 180%; left: -40%; top: -40%;
  background: conic-gradient(from 180deg, transparent, rgba(94,234,212,.08), transparent 32%, rgba(246,196,83,.08), transparent 64%);
  animation: spin 28s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; gap: 16px; align-items: center;
  padding: 12px 22px; backdrop-filter: blur(18px);
  background: rgba(7,11,22,.72); border-bottom: 1px solid var(--line);
}
.brand { display: flex; gap: 10px; align-items: center; min-width: 150px; }
.logo {
  width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center;
  font-weight: 800; color: #1a1206;
  background: linear-gradient(135deg, #f6c453, #fb7185 55%, #60a5fa);
  box-shadow: 0 8px 24px rgba(246,196,83,.28);
}
.brand small { display: block; color: var(--muted); font-size: 12px; }
.search { flex: 1; }
.search input, .filters input, .filters select, .form input, .form textarea, .form select, .auth input, .comment-form textarea {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  border-radius: 14px; padding: 10px 12px; outline: none;
}
.nav { display: flex; gap: 14px; align-items: center; }
.nav a.on { color: var(--gold); }
.userchip { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f6c453, #fb7185);
  color: #1a1206; font-weight: 700; border: 0; border-radius: 14px; padding: 10px 16px; cursor: pointer;
}
.ghost, button.ghost {
  background: transparent; border: 1px solid var(--line); border-radius: 14px; padding: 8px 12px; color: var(--text); cursor: pointer;
}
.page { width: min(1200px, calc(100% - 28px)); margin: 0 auto; padding: 18px 0 110px; }
.notice {
  border: 1px solid rgba(246,196,83,.25); color: #ffe8b0; background: rgba(246,196,83,.08);
  border-radius: 16px; padding: 10px 14px; margin-bottom: 18px; font-size: 13px;
}
.kicker { letter-spacing: .18em; color: var(--cyan); font-size: 12px; font-weight: 700; }
h1 { font-size: clamp(28px, 5vw, 56px); line-height: 1.1; margin: 8px 0 12px; }
h2 { margin: 0; }
.hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; margin-bottom: 36px; }
.hero-copy p, .muted, .foot, .legal { color: var(--muted); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 18px; }
.filters input, .filters select { min-width: 160px; flex: 1; }
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 22px; }
.stats div, .stats a, .glass, .auth-card, .card, .table {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(18px); box-shadow: var(--shadow);
}
.stats div, .stats a { padding: 14px; color: inherit; display: block; }
.stats a:hover { border-color: var(--gold); }
.stats b { display: block; font-size: 22px; }
.hero-stage { position: relative; min-height: 360px; }
.stage-card {
  display: block; min-height: 320px; border-radius: 28px; overflow: hidden; position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,.35); transform: perspective(900px) rotateY(-8deg) rotateX(4deg);
}
.stage-body { position: absolute; inset: auto 20px 20px; }
.orbit { position: absolute; right: -10px; top: 20px; display: grid; gap: 10px; }
.orbit a {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800;
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.block { margin: 28px 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 14px; }
.track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.card { overflow: hidden; min-width: 0; }
.cover { height: 150px; display: grid; place-items: center; position: relative; }
.cover b { font-size: 42px; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 14px; }
.card h3 { margin: 6px 0; font-size: 18px; }
.card p, .mag p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.meta, .chips { display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.chips span, .tag {
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: rgba(255,255,255,.04);
}
.tag { position: absolute; top: 10px; right: 10px; }
.tag.gold { color: #1a1206; background: var(--gold); }
.tag.cyan { left: 10px; right: auto; color: #04231f; background: var(--cyan); }
.ops { justify-content: space-between; margin-top: 10px; }
.fav { border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
.fav.on { color: var(--pink); }
.catalog { display: grid; gap: 16px; }
.view-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.view-list { grid-template-columns: 1fr; }
.view-list .card { display: grid; grid-template-columns: 180px 1fr; }
.view-list .cover { height: 100%; min-height: 140px; }
.view-masonry { columns: 3; column-gap: 16px; display: block; }
.view-masonry .card { break-inside: avoid; margin-bottom: 16px; }
.view-masonry .cover { height: auto; min-height: 120px; aspect-ratio: 4/3; }
.view-magazine { grid-template-columns: 1.4fr 1fr 1fr; }
.view-magazine .card:first-child { grid-row: span 2; }
.view-magazine .card:first-child .cover { height: 280px; }
.view-showcase { grid-auto-flow: column; grid-auto-columns: minmax(280px, 70%); overflow: auto; display: grid; }
.view-showcase .card { min-height: 360px; }
.view-showcase .cover { height: 220px; }
.view-timeline { grid-template-columns: 1fr; }
.view-timeline .card { display: grid; grid-template-columns: 120px 1fr; }
.view-shelf { grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); overflow: auto; display: grid; }
.viewbar a, .pager a {
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px;
}
.viewbar a.on, .pager a.on { background: #fff; color: #111; }
.magazine { display: grid; grid-template-columns: 1.5fr 1fr; grid-template-rows: 180px 180px; gap: 12px; }
.mag { border-radius: 22px; overflow: hidden; display: flex; align-items: end; padding: 16px; min-height: 160px; }
.mag.lead { grid-row: span 2; }
.split { display: grid; grid-template-columns: 1.5fr .8fr; gap: 22px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { border-left: 2px solid var(--line); padding: 0 0 16px 14px; }
.timeline b { display: block; }
.detail-hero { border-radius: 28px; min-height: 320px; padding: 28px; display: grid; grid-template-columns: 1fr 160px; gap: 20px; align-items: end; }
.detail-logo { width: 140px; height: 140px; border-radius: 32px; display: grid; place-items: center; font-size: 48px; font-weight: 800; background: rgba(0,0,0,.25); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.gallery img, .gallery video { width: 100%; border-radius: 18px; }
.grid2 { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.glass { padding: 18px; margin: 16px 0; }
.features { list-style: none; padding: 0; }
.features li { margin: 0 0 12px; }
.features span { color: var(--muted); display: block; }
.comment-form textarea { min-height: 90px; }
.cmt { border-top: 1px solid var(--line); padding: 12px 0; }
.auth { min-height: 60vh; display: grid; place-items: center; }
.auth-card { width: min(420px, 100%); padding: 28px; }
.auth-card label, .form label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
.alert { background: rgba(251,113,133,.12); color: #fecdd3; padding: 10px 12px; border-radius: 12px; }
.alert.ok { background: rgba(94,234,212,.12); color: #99f6e4; }
.form { display: grid; gap: 8px; }
.form.inline { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); align-items: end; }
.table { overflow: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.foot { width: min(1200px, calc(100% - 28px)); margin: 0 auto 90px; display: flex; justify-content: space-between; gap: 20px; color: var(--muted); }
.tabbar { display: none; }
.empty { padding: 40px; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }
.admin-links a.on { color: var(--gold); }
.stats.dash { grid-template-columns: repeat(4, 1fr); margin-bottom: 18px; }
.fab {
  position: fixed; right: 22px; bottom: 28px; z-index: 25;
  width: 64px; height: 64px; border-radius: 22px;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, #f6c453, #fb7185);
  color: #1a1206; box-shadow: 0 16px 40px rgba(246,196,83,.35);
}
.ops-right { display: inline-flex; gap: 10px; align-items: center; margin-left: auto; }
.chips a { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }
.chips.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: #1a1206; padding: 8px 12px; border-radius: 10px; z-index: 80;
}
.skip:focus { left: 12px; }
.msearch { display: none; padding: 10px 16px 0; }
.msearch input { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 14px; padding: 10px 12px; }
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(12px);
  background: rgba(12,18,36,.94); border: 1px solid var(--line); color: var(--text);
  padding: 10px 16px; border-radius: 14px; z-index: 60; opacity: 0; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); transition: .2s ease; }
.lightbox[hidden], .toast[hidden] { display: none !important; }
.lightbox {
  position: fixed; inset: 0; z-index: 70; background: rgba(0,0,0,.78);
  display: grid; place-items: center; padding: 24px;
}
.lightbox img { max-width: min(1100px, 92vw); max-height: 86vh; border-radius: 16px; }
.lightbox-close {
  position: absolute; right: 18px; top: 18px; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255,255,255,.12); border: 1px solid var(--line); color: #fff; font-size: 22px; cursor: pointer;
}
.gallery img { cursor: zoom-in; }
.badge {
  display: inline-flex; padding: 2px 8px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line);
}
.st-new { background: rgba(246,196,83,.16); color: #ffe8b0; }
.st-read { background: rgba(96,165,250,.16); color: #bfdbfe; }
.st-replied { background: rgba(94,234,212,.16); color: #99f6e4; }
.st-archived { background: rgba(147,160,191,.16); color: #cbd5e1; }
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { color: var(--muted); margin: 8px 0 0; }
.ghost.mini { padding: 2px 8px; font-size: 12px; border-radius: 999px; }
.pager a.on { color: #1a1206; background: var(--gold); border-radius: 10px; padding: 4px 10px; }
.tabbar a.on { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumbs a { color: var(--cyan); }
.crumbs a:after { content: "/"; margin-left: 8px; color: var(--muted); }
.crumbs span { color: var(--text); }
.topjump {
  position: fixed; right: 22px; bottom: 108px; z-index: 24;
  width: 48px; height: 48px; border-radius: 16px; cursor: pointer;
  background: rgba(12,18,36,.92); border: 1px solid var(--line); color: var(--text); font-weight: 700;
}
.topjump[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .aurora:after { animation: none; }
  html { scroll-behavior: auto; }
}
@media (max-width: 980px) {
  .msearch { display: block; }
}
.contact-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: start; margin-bottom: 22px; }
.contact-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 28px; padding: 24px;
  box-shadow: var(--shadow);
}
.contact-card b { font-size: 28px; display: block; }
.contact-card span, .contact-card small { color: var(--muted); }
.contact-channels { display: grid; gap: 8px; margin-top: 14px; }
.contact-channels a, .contact-channels span {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: rgba(255,255,255,.04);
}
.intent-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 16px; }
.intent {
  border: 1px solid var(--line); border-radius: 18px; padding: 12px; cursor: pointer;
  background: rgba(255,255,255,.03); display: grid; gap: 4px;
}
.intent input { display: none; }
.intent b { font-size: 14px; }
.intent span { color: var(--muted); font-size: 12px; }
.intent.on, .intent:has(input:checked) { border-color: var(--gold); background: rgba(246,196,83,.1); }
.chip-strong {
  display: inline-flex; margin-top: 10px; border-radius: 999px; padding: 6px 12px;
  background: rgba(94,234,212,.12); color: #99f6e4;
}
.contact-cta {
  display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px;
}
.contact-form label { display: block; margin: 10px 0; font-size: 13px; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  border-radius: 14px; padding: 10px 12px; outline: none;
}
.contact-form textarea { min-height: 120px; }
.contact-form .grid2 { grid-template-columns: 1fr 1fr; }
.contact-form .hp, .hp {
  position: absolute; left: -9999px; height: 0; width: 0; opacity: 0; padding: 0; border: 0;
}
@media (max-width: 980px) {
  .topjump { right: 12px; bottom: calc(88px + var(--safe)); }
  .fab { display: none; }
  .contact-hero, .intent-grid, .contact-cta { grid-template-columns: 1fr; display: grid; }
  .hero, .split, .grid2, .magazine, .view-magazine, .view-list .card, .view-timeline .card { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .nav, .search { display: none; }
  .msearch { display: block; }
  .topbar { justify-content: space-between; }
  .view-masonry { columns: 1; }
  .filters { grid-template-columns: 1fr; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4,1fr); position: fixed; left: 0; right: 0; bottom: 0;
    padding: 8px 8px calc(8px + var(--safe)); background: rgba(7,11,22,.92); border-top: 1px solid var(--line); z-index: 30;
  }
  .tabbar a { display: grid; place-items: center; font-size: 11px; color: var(--muted); }
  .tabbar span { font-size: 18px; }
  .page { padding-bottom: 120px; }
  .stage-card { transform: none; }
  .orbit { display: none; }
}
