/* ============================================================
   星屑图鉴 HOSHIKUZU ATLAS —— 夜场版
   暖黑纸、米白字、朱红点睛；大图舞台 + 书脊卡片
   ============================================================ */

:root {
  --bg: #0d0b09;
  --bg-2: #121010;
  --panel: #17140f;
  --text: #eae3d6;
  --text-70: #b6ab9c;
  --text-45: #857a6b;
  --text-30: #5d544a;
  --line: #2b251e;
  --line-2: #3b332a;
  --accent: #d9452a;
  --accent-hi: #ef6a4d;
  --gold: #c39a4a;
  --pad: clamp(18px, 4.2vw, 64px);
  --maxw: 1560px;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, "Songti SC", "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .25, 1);
  --r-sm: 6px;
  --r: 9px;
  --r-lg: 12px;
  --r-xl: 16px;
}

* { box-sizing: border-box; }
/* hidden 属性必须赢过下面那些 display:block 的组件样式 */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #d9452a55; color: #fff; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { display: block; }

/* 暗场噪点 */
.grain {
  position: fixed;
  inset: 0;
  z-index: 99;
  pointer-events: none;
  opacity: .03;
  mix-blend-mode: screen;
  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='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- 顶栏 ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  height: 66px;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 76%, transparent);
  backdrop-filter: blur(16px) saturate(1.1);
}

.brand { display: flex; align-items: center; gap: 9px; flex: none; }
.brand-mark {
  width: 9px; height: 9px;
  background: var(--accent);
  transform: rotate(45deg);
  margin-top: -6px;
  box-shadow: 0 0 14px #d9452a88;
}
.brand-cn {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: .055em;
  white-space: nowrap;
}
.brand-en {
  font-size: 8.5px; font-weight: 700;
  letter-spacing: .34em;
  color: var(--accent);
  margin-top: 4px;
  white-space: nowrap;
}

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  position: relative;
  font-size: 13px;
  color: var(--text-45);
  padding: 4px 0;
  transition: color .25s;
}
.nav a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.nav a:hover { color: var(--text); }
.nav a.on { color: var(--text); font-weight: 600; }
.nav a.on::after, .nav a:hover::after { width: 100%; }

.search {
  position: relative;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(340px, 40vw);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #ffffff06;
  padding: 7px 15px;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.search:focus-within {
  border-color: var(--accent);
  background: #ffffff0a;
  box-shadow: 0 0 0 3px #d9452a1f;
}
.search svg {
  width: 15px; height: 15px; flex: none;
  fill: none; stroke: var(--text-45); stroke-width: 1.7; stroke-linecap: round;
}
.search input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 13px; color: var(--text);
}
.search input::placeholder { color: var(--text-30); }
.search input::-webkit-search-cancel-button { filter: invert(.6); }
.search kbd {
  font: 10px/1 var(--sans);
  color: var(--text-30);
  border: 1px solid var(--line-2);
  border-radius: 3px;
  padding: 3px 5px;
}

.back {
  margin-left: auto;
  font-size: 13px;
  color: var(--text-45);
  transition: color .2s;
}
.back:hover { color: var(--accent-hi); }

/* ---------------- 舞台 ---------------- */
.stage {
  position: relative;
  height: clamp(520px, 70vh, 740px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #080706;
}

.stage-bg { position: absolute; inset: 0; }
.stage-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 28%;
  transform: scale(1.015);
  animation: kenburns 14s ease-out both;
}
.stage-bg.is-cover img {
  filter: blur(22px) brightness(.5) saturate(.85);
  transform: scale(1.2);
}
@keyframes kenburns {
  from { transform: scale(1.015); }
  to   { transform: scale(1.075); }
}
.stage-bg.is-cover img { animation: none; }

.stage-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, #080706f2 0%, #080706dd 30%, #08070666 58%, #08070622 78%, transparent 100%),
    linear-gradient(0deg, #080706f0 0%, #08070655 22%, transparent 52%);
}

.stage-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 var(--pad) clamp(64px, 9vh, 104px);
  max-width: min(760px, 62%);
}

.eyebrow {
  display: flex; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .24em;
  color: var(--text-45);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.stage-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -.015em;
  text-shadow: 0 4px 30px #00000088;
  text-wrap: balance;
  overflow-wrap: break-word;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
/* 标题越长，字号越小 —— 绝不允许折出「下 -」这种孤字行 */
.stage-copy h1.h-lg  { font-size: clamp(28px, 3.4vw, 46px); }
.stage-copy h1.h-xl  { font-size: clamp(24px, 2.8vw, 36px); line-height: 1.18; }
.stage-copy h1.h-xxl { font-size: clamp(21px, 2.3vw, 29px); line-height: 1.25; }
.stage-copy.swap h1 { opacity: 0; transform: translateY(10px); }

.st-alt {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--text-45);
  letter-spacing: .03em;
}

.st-meta {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 8px 14px;
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--text-70);
}
.st-meta b { color: var(--text); font-weight: 700; }
.st-meta .badge {
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--text-70);
}
.st-meta .rate { color: var(--accent-hi); font-weight: 700; }

.st-desc {
  margin: 18px 0 0;
  max-width: 52ch;
  font-size: 14px;
  line-height: 1.9;
  color: var(--text-70);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.st-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px;
  font-size: 13px; font-weight: 600;
  letter-spacing: .05em;
  border: 1px solid transparent;
  border-radius: var(--r);
  transition: all .28s var(--ease);
}
.btn-solid {
  background: var(--accent);
  color: #fff5f0;
  box-shadow: 0 10px 30px -14px var(--accent);
}
.btn-solid:hover { background: var(--accent-hi); transform: translateY(-1px); }
.btn-ghost {
  background: #ffffff0d;
  border-color: #ffffff2b;
  color: var(--text);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: #ffffff1a; border-color: #ffffff44; }

/* 左右箭头 */
.st-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  background: #0000004d;
  color: #ffffffc4;
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: all .3s var(--ease);
}
.stage:hover .st-arrow { opacity: 1; }
.st-arrow:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.st-arrow.prev { left: clamp(8px, 1.4vw, 22px); }
.st-arrow.next { right: clamp(8px, 1.4vw, 22px); }
.st-arrow svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* 缩略图 */
.stage-thumbs {
  position: absolute;
  right: var(--pad);
  bottom: clamp(58px, 8.4vh, 96px);
  z-index: 3;
  display: flex;
  gap: 9px;
}
.stage-thumb {
  position: relative;
  width: clamp(46px, 4.3vw, 62px);
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid #ffffff22;
  border-radius: var(--r);
  background: #1a1613;
  overflow: hidden;
  opacity: .55;
  transition: all .28s var(--ease);
}
.stage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.stage-thumb:hover { opacity: .9; transform: translateY(-2px); }
.stage-thumb.on {
  opacity: 1;
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 10px 24px -14px var(--accent);
}

/* 进度 */
.stage-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: #ffffff10;
  z-index: 4;
}
.stage-progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-hi));
  transition: width .1s linear;
}

/* ---------------- 发售日历 ---------------- */
.rail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(36px, 4.4vw, 58px) var(--pad);
  border-bottom: 1px solid var(--line);
}
.sec-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.sec-head h2 {
  margin: 0;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 800;
  letter-spacing: .01em;
}
.sec-note { font-size: 11.5px; letter-spacing: .16em; color: var(--text-30); }

.rail-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(124px, 12vw, 158px);
  gap: clamp(14px, 1.6vw, 20px);
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.rail-track::-webkit-scrollbar { height: 3px; }
.rail-track::-webkit-scrollbar-thumb { background: var(--line-2); }

.mini { display: block; }
.mini .mini-cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1613;
  border-radius: var(--r-lg);
}
.mini .mini-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease), filter .4s;
  filter: brightness(.92);
}
.mini:hover .mini-cover img { transform: scale(1.05); filter: brightness(1.05); }
.mini .mini-date {
  position: absolute; left: 0; top: 0;
  background: #0d0b09d9;
  color: var(--text);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .06em;
  padding: 4px 8px;
  border-radius: 0 0 var(--r-sm) 0;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(4px);
}
.mini h5 {
  margin: 9px 0 0;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini p {
  margin: 3px 0 0;
  font-size: 11px;
  color: var(--text-30);
}

/* ---------------- 浏览区 ---------------- */
.browse {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(26px, 4vw, 54px);
  padding: clamp(40px, 4.6vw, 64px) var(--pad);
  align-items: start;
}

.side { position: sticky; top: 88px; align-self: start; min-width: 0; }
.side-block { margin-bottom: 30px; }
.list { min-width: 0; }
.side h3 {
  margin: 0 0 13px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .22em;
  color: var(--text-30);
  text-transform: uppercase;
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-45);
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 999px;
  transition: all .2s var(--ease);
  white-space: nowrap;
}
.chip:hover { border-color: var(--text-45); color: var(--text); }
.chip.on {
  background: var(--text);
  border-color: var(--text);
  color: #0d0b09;
  font-weight: 600;
}
.chips.tiny .chip { font-size: 11px; padding: 4px 9px; }
.chip i {
  font-style: normal;
  margin-left: 5px;
  font-size: 9.5px;
  opacity: .5;
  font-variant-numeric: tabular-nums;
}
.chip.on i { opacity: .75; }

.side .show-more {
  border: 0; background: none; padding: 8px 0 0;
  font-size: 11.5px; color: var(--accent-hi);
  letter-spacing: .05em;
}
.side .show-more:hover { text-decoration: underline; }

.reset {
  width: 100%;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: none;
  color: var(--text-30);
  font-size: 11.5px;
  letter-spacing: .1em;
  padding: 10px;
  transition: all .2s;
}
.reset:hover { color: var(--accent-hi); border-color: var(--accent); }

.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line-2);
}
.toolbar-left { display: flex; align-items: baseline; gap: 7px; }
.count {
  font-size: 26px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.01em;
}
.count-unit { font-size: 11.5px; color: var(--text-30); letter-spacing: .1em; }

.toolbar-right { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button {
  border: 0;
  border-left: 1px solid var(--line-2);
  background: transparent;
  color: var(--text-45);
  font-size: 12px;
  padding: 6px 12px;
  transition: all .18s;
}
.seg button:first-child { border-left: 0; }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: #0d0b09; font-weight: 600; }

/* 网格 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(176px, 1fr));
  gap: clamp(24px, 2.7vw, 36px) clamp(14px, 1.7vw, 24px);
}

.card { display: block; animation: rise .55s var(--ease) both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.cover {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1613;
  border-radius: var(--r-lg);
  transition: box-shadow .4s var(--ease), transform .4s var(--ease);
}
.card:hover .cover {
  box-shadow: 0 18px 40px -22px #000;
}
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(.92) saturate(.97);
  transition: transform .6s var(--ease), filter .4s;
}
.card:hover .cover img { transform: scale(1.045); filter: brightness(1.05) saturate(1.02); }

.cover-veil {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end;
  padding: 13px;
  background: linear-gradient(to top, #080706f2 0%, #080706aa 44%, transparent 78%);
  opacity: 0;
  transition: opacity .35s var(--ease);
}
.card:hover .cover-veil { opacity: 1; }
.veil-text {
  font-size: 11px;
  line-height: 1.75;
  color: #eae3d6cc;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.score {
  position: absolute; top: 8px; right: 8px;
  background: #0d0b09d9;
  color: var(--text);
  font-size: 11px; font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 3px 7px;
  letter-spacing: .02em;
  backdrop-filter: blur(4px);
  border: 1px solid #ffffff1a;
  border-radius: var(--r-sm);
}
.score.low { color: var(--text-45); }

.card-body { padding-top: 10px; }
.card h4 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.card:hover h4 { color: var(--accent-hi); }
.card .sub {
  margin: 4px 0 0;
  font-size: 11px;
  color: var(--text-30);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  margin-top: 7px;
  font-size: 10.5px;
  color: var(--text-30);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.card-foot .dev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 年表 */
.rows { display: block; }
.row-group {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 20px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.row-group:first-child { border-top: 0; }
.year-big {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  color: var(--gold);
  opacity: .75;
  letter-spacing: .02em;
  padding-top: 2px;
  font-variant-numeric: tabular-nums;
}
.row-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.row-item { flex: none; width: 104px; }
.row-item .ri-cover {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #1a1613;
  border-radius: var(--r);
}
.row-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: brightness(.9); }
.row-item:hover img { transform: scale(1.06); filter: brightness(1.05); }
.row-item .ri-title {
  margin-top: 6px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-70);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.empty { padding: 90px 0; text-align: center; color: var(--text-30); }
.empty-big { font-size: 26px; font-weight: 800; color: var(--line-2); margin: 0 0 10px; letter-spacing: .06em; }
.empty p { margin: 4px 0; font-size: 13px; }

.more-wrap { display: flex; justify-content: center; padding: 54px 0 12px; }
.more {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text-45);
  font-size: 12.5px;
  letter-spacing: .14em;
  padding: 13px 34px;
  transition: all .25s var(--ease);
}
.more:hover { background: var(--text); border-color: var(--text); color: #0d0b09; }

/* 骰子 */
.dice {
  position: fixed;
  right: clamp(16px, 2.4vw, 34px);
  bottom: clamp(16px, 2.4vw, 34px);
  z-index: 60;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1px solid #ffffff1f;
  border-radius: 50%;
  background: #17140fdd;
  color: var(--text);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px -12px #000;
  transition: transform .3s var(--ease), background .3s, color .3s;
}
.dice svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dice:hover { transform: translateY(-2px) rotate(12deg); background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------------- 关于 ---------------- */
.about { border-top: 1px solid var(--line); background: var(--bg-2); }
.about-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) var(--pad);
}
.about h2 {
  margin: 0 0 22px;
  font-size: 12px;
  letter-spacing: .28em;
  color: var(--text-30);
  text-transform: uppercase;
}
.about p {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 2;
  color: var(--text-70);
}
.about .sign {
  margin-top: 30px;
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-30);
  font-size: 13px;
}

.foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding: 26px var(--pad);
  border-top: 1px solid var(--line);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--text-30);
  text-transform: uppercase;
}

/* ---------------- 详情页 ---------------- */
.detail {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 58px) var(--pad) clamp(60px, 7vw, 100px);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: start;
}

.d-poster { position: sticky; top: 90px; }
.d-poster > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: #1a1613;
  border-radius: var(--r-xl);
  box-shadow: 0 30px 60px -34px #000, 0 0 0 1px #ffffff0f;
}
.d-score-big {
  display: flex; align-items: baseline; gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-2);
}
.d-score-big b {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-hi);
}
.d-score-big span { font-size: 11.5px; color: var(--text-30); letter-spacing: .1em; }

.d-head h1 {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.015em;
}
.d-alt {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--text-30);
}
.d-tags-top { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.d-tags-top .chip { pointer-events: none; color: var(--text-70); }

.d-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 18px 26px;
  margin: 30px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact dt {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--text-30);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.fact dd {
  margin: 0;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.5;
}

.d-desc {
  font-size: 14px;
  line-height: 2.05;
  color: var(--text-70);
  white-space: pre-line;
}

/* 中文速览 */
.d-brief-box {
  margin-top: 26px;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  background: #ffffff06;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.d-brief-tag {
  flex: none;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: var(--accent-hi);
  padding-top: 4px;
}
.d-brief {
  margin: 0;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text);
}
.d-note {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: var(--text-30);
  letter-spacing: .02em;
}
.d-wait { color: var(--text-30); font-style: italic; }
.d-orig {
  margin-top: 16px;
  border-top: 1px dashed var(--line-2);
  padding-top: 12px;
}
.d-orig summary {
  cursor: pointer;
  font-size: 11.5px;
  color: var(--text-30);
  letter-spacing: .08em;
  list-style: none;
  transition: color .2s;
}
.d-orig summary::-webkit-details-marker { display: none; }
.d-orig summary::before { content: "＋ "; color: var(--accent); }
.d-orig[open] summary::before { content: "－ "; }
.d-orig summary:hover { color: var(--text-70); }
.d-orig .d-desc {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-45);
}
.d-desc.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 9;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d-more {
  margin-top: 10px;
  border: 0; background: none; padding: 0;
  font-size: 12px; color: var(--accent-hi);
  letter-spacing: .08em;
}

.d-block { margin-top: 40px; }
.d-block h3 {
  margin: 0 0 16px;
  font-size: 10.5px;
  letter-spacing: .24em;
  color: var(--text-30);
  text-transform: uppercase;
}
.d-taglist { display: flex; flex-wrap: wrap; gap: 7px; }
.d-taglist .chip { cursor: pointer; }
.d-taglist .chip.tech { color: var(--gold); border-color: #c39a4a55; }

.d-shots {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.d-shots img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #1a1613;
  border-radius: var(--r);
  filter: brightness(.94);
  transition: filter .3s;
}
.d-shots img:hover { filter: brightness(1.06); }

.d-related {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 18px 14px;
  margin-top: 10px;
}

.d-loading { padding: 40px 0; }
.sk-line, .sk-block {
  background: linear-gradient(90deg, #1a1613, #262019, #1a1613);
  background-size: 220% 100%;
  animation: shine 1.5s infinite linear;
}
.sk-line { height: 14px; margin-bottom: 14px; }
.sk-block { height: 420px; }
.w40 { width: 40%; }
@keyframes shine { to { background-position: -220% 0; } }

/* ---------------- 搜索候选 ---------------- */
.sug {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(420px, 88vw);
  padding: 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: #171411f7;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px #ffffff08;
  z-index: 150;
  max-height: min(72vh, 560px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-2) transparent;
}
.sug-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 8px;
  border-radius: var(--r);
  transition: background .16s;
}
.sug-item:hover,
.sug-item.on { background: #ffffff0f; }
.sug-cover {
  width: 34px;
  height: 46px;
  flex: none;
  border-radius: 5px;
  overflow: hidden;
  background: #241f19;
}
.sug-cover img { width: 100%; height: 100%; object-fit: cover; }
.sug-text { min-width: 0; flex: 1; }
.sug-text b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sug-text small {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--text-30);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sug-score {
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent-hi);
  font-variant-numeric: tabular-nums;
}
.sug-all {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px;
  border: 0;
  border-top: 1px solid var(--line);
  background: none;
  color: var(--text-45);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color .18s;
}
.sug-all:hover { color: var(--accent-hi); }
.sug-empty {
  padding: 18px 14px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-45);
}
.sug-empty span { color: var(--text-30); font-size: 11.5px; }

/* 搜索结果提示条 */
.search-chip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: 8px;
  padding: 3px 4px 3px 11px;
  border-radius: 999px;
  background: #d9452a14;
  border: 1px solid #d9452a33;
  color: var(--accent-hi);
  font-size: 11.5px;
  max-width: 300px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.search-chip button {
  background: none;
  border: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1;
  padding: 0 7px;
  cursor: pointer;
  opacity: .65;
}
.search-chip button:hover { opacity: 1; }

/* ---------------- 登录状态 ---------------- */
.auth-slot { display: flex; align-items: center; gap: 10px; flex: none; }
.auth-link {
  font-size: 12.5px;
  color: var(--text-70);
  padding: 6px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: all .22s var(--ease);
}
.auth-link:hover { color: var(--text); border-color: var(--text-45); background: #ffffff08; }
.auth-btn {
  font-size: 12.5px;
  font-weight: 600;
  color: #fff3ee;
  background: var(--accent);
  padding: 7px 16px;
  border-radius: var(--r);
  letter-spacing: .04em;
  box-shadow: 0 8px 20px -12px var(--accent);
  transition: background .25s, transform .2s, box-shadow .25s;
}
.auth-btn:hover { background: var(--accent-hi); transform: translateY(-1px); box-shadow: 0 12px 24px -12px var(--accent); }
.auth-user {
  font-size: 12.5px;
  color: var(--text-70);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 头像球 + 悬停菜单 */
.user-chip {
  position: relative;
  display: flex;
  align-items: center;
  outline: none;
}
.avatar {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0;
  cursor: pointer;
  background: hsl(var(--h, 12) 62% 46%);
  box-shadow: 0 0 0 1px #ffffff22, 0 6px 16px -8px #000;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  user-select: none;
}
.user-chip:hover .avatar,
.user-chip:focus-visible .avatar {
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--accent), 0 10px 20px -10px #000;
}
.avatar.lg {
  width: 46px;
  height: 46px;
  font-size: 19px;
  cursor: default;
  box-shadow: 0 0 0 1px #ffffff1f;
}

.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 252px;
  padding: 8px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  background: #171411f5;
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 60px -30px #000, 0 0 0 1px #ffffff08;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(.985);
  transform-origin: top right;
  transition: opacity .2s var(--ease), transform .22s var(--ease), visibility .2s;
  z-index: 120;
}
/* 鼠标从球移到菜单中间有个空隙，用伪元素补上，避免移过去就消失 */
.user-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}
.user-chip:hover .user-menu,
.user-chip:focus-within .user-menu,
.user-chip.open .user-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.um-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 12px;
}
.um-id { min-width: 0; }
.um-id b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.um-id small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--text-30);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.um-sep {
  height: 1px;
  margin: 4px 6px 6px;
  background: var(--line);
}
.um-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-radius: var(--r);
  background: none;
  color: var(--text-70);
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.um-item svg {
  width: 16px; height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.um-item:hover { background: #ffffff0d; color: var(--text); }
.um-item.danger:hover { color: var(--accent-hi); background: #d9452a14; }
.auth-out {
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-45);
  font-size: 11.5px;
  padding: 5px 10px;
  transition: all .2s;
}
.auth-out:hover { color: var(--accent-hi); border-color: var(--accent); }

/* 详情页：收藏 / 想看 / 在玩 / 玩过 */
.d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
}
.act {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: none;
  color: var(--text-45);
  font-size: 12.5px;
  letter-spacing: .04em;
  transition: all .22s var(--ease);
}
.act:hover { color: var(--text); border-color: var(--text-45); }
.act.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff3ee;
  box-shadow: 0 10px 22px -14px var(--accent);
}
.act-ico { font-size: 14px; line-height: 1; }

/* 个人中心：清单 */
.me-logout {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text-45);
  font-size: 12px;
  padding: 7px 14px;
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.me-logout:hover { color: var(--accent-hi); border-color: var(--accent); }

/* 主人 / 访客标识 */
.me-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.role-badge {
  font-size: 10.5px;
  letter-spacing: .12em;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.role-badge.owner {
  background: #d9452a1f;
  border: 1px solid #d9452a44;
  color: var(--accent-hi);
}
.role-badge.guest {
  background: #ffffff0d;
  border: 1px solid var(--line-2);
  color: var(--text-45);
}

.me-lib { margin-top: 32px; }
.me-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
  scrollbar-width: none;
}
.me-tabs::-webkit-scrollbar { display: none; }
.me-tabs button {
  position: relative;
  border: 0;
  background: none;
  color: var(--text-45);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 0 4px 14px;
  margin-right: 22px;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  transition: color .2s;
}
.me-tabs button b {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-30);
  background: #ffffff0d;
  border-radius: 999px;
  padding: 1px 7px;
  font-variant-numeric: tabular-nums;
  transition: all .2s;
}
.me-tabs button::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform .28s var(--ease);
}
.me-tabs button.on { color: var(--text); }
.me-tabs button.on b { background: var(--accent); color: #fff; }
.me-tabs button.on::after { transform: scaleX(1); }

.me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 26px 18px;
}
.me-empty {
  padding: 58px 22px;
  text-align: center;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--text-30);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-lg);
}

/* ---------------- 个人中心 ---------------- */
.me-main {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(36px, 6vw, 76px) var(--pad) 100px;
}
.me-loading { padding: 40px 0; }
.me-card {
  background: #12100e;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 38px) clamp(24px, 4vw, 36px) clamp(24px, 3vw, 30px);
  box-shadow: 0 40px 90px -62px #000;
}
.me-top { display: flex; align-items: center; gap: 18px; }
.avatar.xl {
  width: 64px; height: 64px;
  font-size: 26px;
  cursor: default;
  box-shadow: 0 0 0 1px #ffffff1f, 0 14px 30px -18px #000;
}
.me-id { min-width: 0; }
.me-id h1 {
  margin: 0;
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.01em;
}
.me-id p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.me-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 18px 22px;
  margin: 30px 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.me-facts dt {
  font-size: 10px;
  letter-spacing: .2em;
  color: var(--text-30);
  text-transform: uppercase;
  margin-bottom: 7px;
}
.me-facts dd {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.me-note {
  padding: 16px 18px;
  border-radius: var(--r);
  border-left: 2px solid var(--accent);
  background: #ffffff06;
  font-size: 12.5px;
  line-height: 1.9;
  color: var(--text-70);
}
.me-acts { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }

/* ---------------- 登录成功提示 ---------------- */
.toast {
  position: fixed;
  top: 82px;
  left: 50%;
  z-index: 200;
  transform: translate(-50%, -14px);
  opacity: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: #17140fee;
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 44px -26px #000;
  font-size: 13px;
  color: var(--text);
  pointer-events: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.toast.in { opacity: 1; transform: translate(-50%, 0); }
.toast .tick {
  width: 16px; height: 16px;
  flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
}

/* ---------------- 登录 / 注册页 ---------------- */
.auth-body {
  min-height: 100vh;
  background: var(--bg);
  overflow-x: hidden;
}
.auth-bg {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(52px) brightness(.26) saturate(.75);
  transform: scale(1.18);
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.auth-bg.ready { opacity: 1; }
.auth-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #0d0b09cc 0%, #0d0b09 78%);
}

.auth-main {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(40px, 7vh, 92px) var(--pad) 90px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  letter-spacing: .12em;
  color: var(--accent-hi);
  background: #d9452a14;
  border: 1px solid #d9452a33;
  border-radius: 999px;
  padding: 5px 14px;
}
.auth-left h1 {
  margin: 22px 0 0;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}
.auth-left h1 em {
  font-style: normal;
  color: var(--accent);
}
.auth-lead {
  margin: 18px 0 0;
  max-width: 42ch;
  font-size: 14px;
  line-height: 1.95;
  color: var(--text-70);
}
.auth-perks {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.auth-perks li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: var(--text-70);
}
.auth-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: 700;
}

.auth-card {
  background: #12100ee8;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  padding: 32px 30px 26px;
  backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -55px #000;
}
.auth-card h2 {
  margin: 0 0 26px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
}

.field { display: block; margin-bottom: 16px; }
.field-label {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--text-30);
  margin-bottom: 8px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-icon {
  position: absolute;
  left: 14px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text-30);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  background: #ffffff08;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  padding: 12px 14px 12px 40px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field:has(.eye) .input-wrap input { padding-right: 44px; }
.input-wrap input::placeholder { color: var(--text-30); }
.input-wrap input:focus {
  border-color: var(--accent);
  background: #ffffff0d;
  box-shadow: 0 0 0 3px #d9452a1f;
}
.eye {
  position: absolute;
  right: 7px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--r-sm);
  color: var(--text-30);
  transition: color .2s, background .2s;
}
.eye svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.eye:hover { color: var(--text); background: #ffffff0d; }
.eye.on { color: var(--accent-hi); }

/* 注册验证码 */
.cap-q {
  color: var(--accent-hi);
  font-size: 12.5px;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.cap-refresh {
  position: absolute;
  right: 8px;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  color: var(--text-45);
  font-size: 11px;
  padding: 5px 9px;
  cursor: pointer;
  transition: all .2s;
}
.cap-refresh:hover { color: var(--accent-hi); border-color: var(--accent); }
.field:has(.cap-refresh) .input-wrap input { padding-right: 76px; }

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 20px;
}
.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-45);
  cursor: pointer;
  user-select: none;
}
.remember input { position: absolute; opacity: 0; width: 0; height: 0; }
.remember .box {
  width: 15px;
  height: 15px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  display: inline-block;
  position: relative;
  transition: all .2s var(--ease);
}
.remember input:checked + .box {
  background: var(--accent);
  border-color: var(--accent);
}
.remember input:checked + .box::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}
.remember input:focus-visible + .box { box-shadow: 0 0 0 3px #d9452a33; }

.switch-link {
  font-size: 12.5px;
  color: var(--accent-hi);
  transition: opacity .2s;
}
.switch-link:hover { text-decoration: underline; }

.auth-links {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.auth-links a {
  font-size: 12.5px;
  color: var(--accent-hi);
  transition: opacity .2s;
}
.auth-links a:hover { text-decoration: underline; }
.dot-sep { color: var(--text-30); font-size: 11px; }

.auth-notice {
  margin: -4px 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: #ffffff06;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--text-70);
  word-break: break-all;
}
.auth-notice b { color: var(--text); }
.auth-notice a { color: var(--accent-hi); }
.notice-sub { color: var(--text-30); font-size: 11.5px; }

.auth-err {
  margin: -6px 0 14px;
  font-size: 12.5px;
  color: var(--accent-hi);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  border: 0;
  padding: 13px;
  font-size: 13.5px;
}
.auth-submit:disabled { opacity: .62; cursor: wait; }

.auth-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 24px 0;
  color: var(--text-30);
  font-size: 11px;
  letter-spacing: .2em;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.auth-or span { flex: none; }

.auth-guest {
  display: block;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-45);
  padding: 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: all .2s var(--ease);
}
.auth-guest:hover {
  color: var(--text);
  border-color: var(--text-45);
  background: #ffffff08;
}

@media (max-width: 980px) {
  .auth-main {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-top: 40px;
  }
  .auth-left { order: 2; }
  .auth-panel { order: 1; }
  .auth-left h1 { font-size: clamp(26px, 6vw, 34px); }
  .auth-perks { margin-top: 20px; }
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1180px) {
  .stage-copy { max-width: 74%; }
  .stage-thumbs { display: none; }
}

@media (max-width: 1080px) {
  .browse { grid-template-columns: 1fr; }
  .side { position: static; }
  .detail-grid { grid-template-columns: 1fr; }
  .d-poster { position: static; max-width: 300px; }
}

@media (max-width: 760px) {
  .top { height: 58px; gap: 10px; }
  .nav { display: none; }
  .search { width: auto; flex: 1; min-width: 0; }
  .search kbd { display: none; }
  .auth-slot { gap: 7px; }
  .auth-link { font-size: 12px; }
  .auth-btn { padding: 6px 11px; font-size: 12px; }
  .auth-user { max-width: 70px; }
  .brand-en { display: none; }
  .brand-cn { font-size: 15px; letter-spacing: .04em; }

  .stage { height: min(78vh, 560px); }
  .stage-copy { max-width: 100%; padding-bottom: 54px; }
  .stage-copy h1 { font-size: clamp(26px, 7.4vw, 38px); }
  .st-desc { -webkit-line-clamp: 2; font-size: 13px; }
  .st-arrow { display: none; }

  .grid { grid-template-columns: repeat(auto-fill, minmax(134px, 1fr)); gap: 20px 12px; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .seg button { padding: 6px 10px; }
}