:root {
  color-scheme: light;
  --text-main: #111827;
  --text-muted: #5f6f86;
  --primary: #0f766e;
  --primary-dark: #0f5f73;
  --accent: #2563eb;
  --accent-warm: #f59e0b;
  --accent-rose: #e11d48;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(62, 111, 127, 0.16);
  --glass-edge: rgba(31, 74, 88, 0.055);
  --glass-edge-strong: rgba(31, 74, 88, 0.10);
  --glass-shine: rgba(255, 255, 255, 0.78);
  --glass-refraction: rgba(20, 184, 166, 0.07);
  --control-bg: rgba(255, 255, 255, 0.66);
  --control-bg-hover: rgba(248, 253, 252, 0.82);
  --control-border: rgba(42, 88, 104, 0.32);
  --control-border-hover: rgba(15, 118, 110, 0.42);
  --control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(31, 74, 88, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 20px rgba(31, 74, 88, 0.08);
  --shadow-soft: 0 26px 74px rgba(23, 62, 70, 0.14);
  --shadow-card: 0 18px 48px rgba(23, 62, 70, 0.10);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--text-main);
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.10), transparent 36%),
    linear-gradient(245deg, rgba(15, 118, 110, 0.16), transparent 38%),
    linear-gradient(0deg, rgba(245, 158, 11, 0.08), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #edf9f7 52%, #fffaf3 100%);
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

button {
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.55);
  outline-offset: 4px;
}

.skip-link {
  display: none;
}

.skip-link:focus {
  display: none;
}

.container {
  width: calc(100% - 36px);
  max-width: 1180px;
  width: min(calc(100% - 36px), var(--container));
  margin: 0 auto;
}

/* =============================
   Background
============================= */

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(62, 111, 127, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 111, 127, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.46),
    rgba(0, 0, 0, 0.18) 52%,
    transparent 82%
  );
}

/* =============================
   Liquid Glass
============================= */

.glass-nav,
.glass-panel,
.glass-card,
.glass-banner,
.image-box,
.mini-card {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.76) 0%,
      rgba(244, 251, 249, 0.52) 48%,
      rgba(226, 244, 241, 0.36) 100%
    ),
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.88),
      rgba(255, 255, 255, 0.18) 26%,
      transparent 54%
    ),
    linear-gradient(315deg, rgba(20, 184, 166, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.26);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 1px var(--glass-shine),
    inset 0 -1px 1px var(--glass-edge),
    inset 0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 0 1px rgba(31, 74, 88, 0.024),
    var(--shadow-soft),
    0 10px 28px rgba(5, 150, 105, 0.08);
  backdrop-filter: blur(30px) saturate(190%) contrast(112%);
  -webkit-backdrop-filter: blur(30px) saturate(190%) contrast(112%);
}

.glass-panel,
.glass-card,
.glass-banner {
  position: relative;
  overflow: hidden;
}

.glass-panel::before,
.glass-card::before,
.glass-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle 220px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, var(--panel-glow-alpha, 0)),
      transparent 72%
    ),
    radial-gradient(
      circle 520px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(37, 99, 235, var(--panel-glow-blue-alpha, 0)),
      transparent 78%
    ),
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.68) 0%,
      rgba(255, 255, 255, 0.18) 18%,
      transparent 42%
    ),
    linear-gradient(
      315deg,
      rgba(20, 184, 166, 0.12),
      transparent 42%
    ),
    linear-gradient(
      90deg,
      transparent 0%,
      var(--glass-refraction) 48%,
      transparent 70%
    );
  box-shadow:
    inset 1px 1px 0 rgba(255, 255, 255, 0.52),
    inset -1px -1px 0 var(--glass-edge);
  opacity: 0.76;
}

.glass-panel::after,
.glass-card::after,
.glass-banner::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(37, 99, 235, 0.32),
    rgba(255, 255, 255, 0.92),
    rgba(15, 118, 110, 0.26),
    transparent
  );
  opacity: 0.58;
}

/* =============================
   Universal Image Containers
   所有图片先进入“盒子”，盒子负责尺寸，图片负责适配
============================= */

.image-box {
  position: relative;
  z-index: 1;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
}

.image-box > img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-position: center;
}

.image-cover > img {
  object-fit: cover;
}

.image-contain > img {
  object-fit: contain;
}

/* 导航栏 Logo：小方块，Logo 铺满方块，保持干净像 App 图标 */
.brand-logo-box {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 14px;
  padding: 6px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.88), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(225, 248, 244, 0.42)),
    rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.58),
    0 10px 26px rgba(15, 118, 110, 0.14);
}

.brand-logo-box > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateY(2%) scale(1.08);
  filter: drop-shadow(0 10px 18px rgba(15, 23, 42, 0.10));
}

:root[data-theme="dark"] img[src*="urspire-logo-Withhold-Black.png"] {
  filter: invert(1) drop-shadow(0 10px 18px rgba(255, 255, 255, 0.08));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) img[src*="urspire-logo-Withhold-Black.png"] {
    filter: invert(1) drop-shadow(0 10px 18px rgba(255, 255, 255, 0.08));
  }
}

/* 首页完整 Logo：较大展示盒，完整显示，不死板裁切 */
.studio-logo-box {
  width: min(100%, 360px);
  height: 330px;
  margin: 0 auto;
  padding: 28px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 249, 246, 0.82));
}

.studio-logo-box > img {
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.10));
}

/* 视频号二维码：完整显示，避免二维码被裁切 */
.wechat-qr-box {
  width: min(82vw, 390px);
  aspect-ratio: 1 / 1;
  margin-top: 34px;
  padding: 16px;
  border-radius: 24px;
}

/* 作品封面区域不是图片，但也作为视觉盒子统一处理 */
.work-cover {
  position: relative;
  z-index: 1;
  min-height: 210px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* =============================
   Navigation
============================= */

.glass-nav {
  position: sticky;
  top: 18px;
  z-index: 50;
  width: calc(100% - 36px);
  max-width: 1180px;
  width: min(calc(100% - 36px), var(--container));
  min-height: 72px;
  margin: 18px auto 0;
  padding: 10px 14px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.brand {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nav-links {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.nav-links a,
.nav-account-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 16px;
  border: 0;
  border-radius: 999px;
  color: #334155;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active,
.nav-account-btn:hover {
  color: #0f172a;
  background:
    radial-gradient(circle at 32% 12%, rgba(255, 255, 255, 0.74), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.74), rgba(230, 247, 244, 0.62));
  box-shadow:
    inset 0 0 0 1px var(--control-border),
    inset 0 -1px 0 rgba(31, 74, 88, 0.08),
    0 8px 18px rgba(31, 74, 88, 0.08);
}

.nav-links a.active {
  color: #0b3b43;
  box-shadow:
    inset 0 0 0 1px rgba(15, 118, 110, 0.38),
    inset 0 -1px 0 rgba(31, 74, 88, 0.10),
    0 10px 22px rgba(15, 118, 110, 0.10);
}

.nav-links a:focus-visible {
  outline-offset: 1px;
}

.nav-account-btn:focus-visible {
  outline-offset: 1px;
}

.nav-controls {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  width: 46px;
  height: 46px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(235, 248, 245, 0.58)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
  cursor: pointer;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    color 0.25s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 246, 242, 0.66)),
    var(--control-bg-hover);
}

.theme-icon {
  grid-area: 1 / 1;
  font-size: 18px;
  font-weight: 900;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.moon-icon {
  opacity: 0;
  transform: rotate(-35deg) scale(0.7);
}

[data-theme="dark"] .sun-icon {
  opacity: 0;
  transform: rotate(35deg) scale(0.7);
}

[data-theme="dark"] .moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

.menu-btn {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.80), rgba(235, 248, 245, 0.56)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
  cursor: pointer;
}

.menu-btn span {
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: #0f172a;
}

/* =============================
   Hero
============================= */

.hero {
  min-height: calc(100vh - 130px);
  padding: 78px 0 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.82fr);
  gap: 24px;
  align-items: center;
}

.hero-content,
.hero-card,
.page-hero {
  border-radius: var(--radius-xl);
}

.hero-content {
  padding: clamp(32px, 5vw, 58px);
}

.eyebrow {
  position: relative;
  z-index: 1;
  margin: 0 0 14px;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  position: relative;
  z-index: 1;
}

h1 {
  margin: 0;
  font-size: 88px;
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle,
.page-hero p,
.glass-banner p {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 800;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  color: white;
  border-color: rgba(12, 93, 105, 0.72);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.40), transparent 25%),
    linear-gradient(135deg, #0f766e 0%, #0891b2 58%, #1d4ed8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 14px 30px rgba(8, 145, 178, 0.20),
    0 6px 16px rgba(15, 118, 110, 0.14);
}

.btn-primary:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 116, 144, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.40),
    inset 0 -1px 0 rgba(15, 23, 42, 0.22),
    0 18px 40px rgba(8, 145, 178, 0.24),
    0 8px 18px rgba(20, 184, 166, 0.14);
}

.btn-ghost {
  color: #12333b;
  border-color: var(--control-border);
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.64), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(232, 247, 244, 0.60)),
    var(--control-bg);
  box-shadow:
    var(--control-shadow),
    0 0 0 1px rgba(255, 255, 255, 0.24);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--control-border-hover);
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.70), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(226, 245, 241, 0.68)),
    var(--control-bg-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    inset 0 -1px 0 rgba(31, 74, 88, 0.08),
    0 12px 26px rgba(20, 184, 166, 0.10);
}

.btn::before,
.theme-toggle::before,
.menu-btn::before,
.nav-links a::before,
.chat-icon-btn::before,
.chat-tools-toggle::before,
.prompt-list button::before {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle 36px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.18),
      rgba(37, 99, 235, 0.08) 44%,
      transparent 78%
    ),
    radial-gradient(
      circle 120px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.10),
      transparent 70%
    );
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.18s ease;
  transform: scale(1.08);
}

.btn:hover::before,
.btn:focus-visible::before,
.theme-toggle:hover::before,
.theme-toggle:focus-visible::before,
.menu-btn:hover::before,
.menu-btn:focus-visible::before,
.nav-links a:hover::before,
.nav-links a:focus-visible::before,
.chat-icon-btn:hover::before,
.chat-icon-btn:focus-visible::before,
.chat-tools-toggle:hover::before,
.chat-tools-toggle:focus-visible::before,
.prompt-list button:hover::before,
.prompt-list button:focus-visible::before {
  opacity: 0.9;
}

.btn.is-local-glowing::before,
.theme-toggle.is-local-glowing::before,
.menu-btn.is-local-glowing::before,
.nav-links a.is-local-glowing::before,
.chat-icon-btn.is-local-glowing::before,
.chat-tools-toggle.is-local-glowing::before,
.prompt-list button.is-local-glowing::before {
  opacity: 0.9;
}

.btn:active::before,
.theme-toggle:active::before,
.menu-btn:active::before,
.nav-links a:active::before,
.chat-icon-btn:active::before,
.chat-tools-toggle:active::before,
.prompt-list button:active::before {
  opacity: 1;
  background:
    radial-gradient(
      circle 42px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.26),
      rgba(37, 99, 235, 0.10) 44%,
      transparent 78%
    ),
    radial-gradient(
      circle 132px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.14),
      transparent 72%
    );
}

.hero-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.hero-stats div {
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.54)),
    rgba(255, 255, 255, 0.64);
  border: 1px solid var(--control-border);
  box-shadow: var(--control-shadow);
}

.hero-stats strong,
.hero-stats span {
  display: block;
}

.hero-stats strong {
  font-size: 18px;
}

.hero-stats span {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-entry-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 38px;
}

.hero-entry-grid a {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 248, 245, 0.56)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--control-shadow);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.hero-entry-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--control-border-hover);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.82),
    0 14px 28px rgba(20, 184, 166, 0.10);
}

.hero-entry-grid strong,
.hero-entry-grid span {
  display: block;
}

.hero-entry-grid strong {
  font-size: 17px;
}

.hero-entry-grid span {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.5;
}

.hero-card {
  min-height: 500px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.mini-card {
  position: relative;
  z-index: 2;
  width: 86%;
  margin: -4px auto 0;
  padding: 22px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(241, 248, 247, 0.62));
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 34px rgba(15, 23, 42, 0.10);
}

.mini-card span,
.mini-card strong {
  display: block;
}

.mini-card span {
  color: var(--text-muted);
  font-size: 13px;
}

.mini-card strong {
  margin-top: 8px;
  font-size: 20px;
}

/* =============================
   Sections
============================= */

.section {
  padding: 52px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 760px;
}

.section-heading {
  margin-bottom: 26px;
}

.section-heading h2,
.glass-banner h2,
.page-hero h1 {
  margin: 0;
  font-size: 52px;
  letter-spacing: 0;
}

.compact-heading {
  margin-bottom: 22px;
}

.feature-grid,
.work-grid,
.link-grid {
  display: grid;
  gap: 20px;
}

.feature-grid {
  grid-template-columns: repeat(4, 1fr);
}

.work-grid {
  grid-template-columns: repeat(2, 1fr);
}

.link-grid {
  grid-template-columns: repeat(2, 1fr);
}

.glass-card {
  border-radius: var(--radius-lg);
  padding: 26px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.glass-panel,
.glass-banner {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.glass-panel:hover,
.glass-banner:hover {
  --panel-glow-alpha: 0.055;
  --panel-glow-blue-alpha: 0.028;
  border-color: rgba(62, 111, 127, 0.17);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.80),
    inset 0 -1px 1px rgba(31, 74, 88, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.30),
    0 0 0 1px rgba(31, 74, 88, 0.026),
    var(--shadow-soft),
    0 12px 32px rgba(20, 184, 166, 0.08);
}

.glass-panel.is-local-glowing,
.glass-banner.is-local-glowing {
  --panel-glow-alpha: 0.055;
  --panel-glow-blue-alpha: 0.028;
}

.glass-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(42, 88, 104, 0.22);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.9),
    inset 0 -1px 1px rgba(31, 74, 88, 0.07),
    0 34px 95px rgba(23, 62, 70, 0.17),
    0 12px 36px rgba(20, 184, 166, 0.11);
}

.managed-page {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 20px;
}

.managed-section {
  margin: 0;
  padding: 44px 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

.managed-section:first-child {
  padding-top: 12px;
}

@supports (-webkit-touch-callout: none) {
  .section,
  .managed-section {
    content-visibility: visible;
    contain-intrinsic-size: auto;
  }
}

.managed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, 0.75fr);
  gap: 24px;
  align-items: center;
  padding: 36px;
  min-height: 430px;
}

.managed-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
}

.managed-hero-copy h1 {
  margin: 0;
  font-size: 86px;
  line-height: 0.95;
  letter-spacing: 0;
}

.managed-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.managed-hero-media {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
}

.managed-hero-media img {
  width: 100%;
  height: 100%;
  max-height: 360px;
  object-fit: contain;
  display: block;
  padding: 22px;
}

.managed-text .glass-panel {
  padding: 34px;
}

.managed-text.is-centered {
  text-align: center;
}

.managed-text h2,
.managed-cta h2 {
  margin: 0 0 12px;
  font-size: 38px;
  letter-spacing: 0;
}

.managed-text p,
.managed-cta p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.82;
}

.managed-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.managed-card-grid .feature-card h3 {
  margin-top: 0;
}

.managed-image {
  padding: 18px;
  overflow: hidden;
}

.managed-image img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.managed-image p {
  margin: 12px 6px 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.managed-quote {
  padding: 36px;
}

.managed-quote blockquote {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-main);
  font-size: 32px;
  line-height: 1.45;
  font-weight: 800;
  letter-spacing: 0;
}

.managed-quote span {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 16px;
  color: var(--text-muted);
  font-weight: 800;
}

.managed-cta {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.managed-dynamic-list:empty {
  min-height: 160px;
  border: 1px dashed var(--control-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.34);
}

.icon-box {
  position: relative;
  z-index: 1;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.icon-box::before,
.icon-box::after,
.join-number::before,
.join-number::after,
.link-icon::before,
.link-icon::after {
  content: "";
  position: absolute;
  display: block;
}

.icon-blog::before {
  width: 22px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 5px 8px 8px 5px;
}

.icon-blog::after {
  width: 12px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 7px 0 rgba(255, 255, 255, 0.72);
}

.icon-works::before {
  width: 24px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 7px;
  transform: translateY(2px);
}

.icon-works::after {
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  transform: translate(5px, -7px) rotate(45deg);
}

.icon-links::before {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  box-shadow:
    14px 0 0 -2px rgba(255, 255, 255, 0),
    14px 0 0 0 rgba(255, 255, 255, 0.96);
  transform: translateX(-7px);
}

.icon-links::after {
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
}

.icon-ai::before {
  width: 24px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 9px;
}

.icon-ai::after {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    8px 0 0 rgba(255, 255, 255, 0.96),
    16px 0 0 rgba(255, 255, 255, 0.96),
    8px 10px 0 -1px rgba(255, 255, 255, 0.9);
  transform: translateX(-8px);
}

.feature-card h3,
.blog-card h2,
.work-body h2,
.link-card h2,
.about-card h2 {
  margin: 0 0 12px;
  letter-spacing: 0;
}

.feature-card p,
.blog-card p,
.work-body p,
.link-card p,
.about-card p,
.clean-list {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.78;
}

.text-link {
  position: relative;
  z-index: 1;
  overflow: hidden;
  display: inline-block;
  margin-top: 20px;
  color: #0f5f73;
  font-weight: 800;
}

.muted-link {
  color: var(--text-muted);
  cursor: default;
}

.filter-row {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.blog-filter-row,
.work-filter-bar {
  width: fit-content;
  max-width: 100%;
  padding: 8px;
  gap: 6px;
  border: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at var(--local-glow-x, 50%) var(--local-glow-y, 50%), rgba(20, 184, 166, 0.10), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(229, 246, 243, 0.36)),
    rgba(255, 255, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -1px 0 rgba(31, 74, 88, 0.08),
    0 12px 28px rgba(23, 62, 70, 0.08);
  backdrop-filter: blur(20px) saturate(170%);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
}

.filter-row span,
.filter-row button {
  padding: 9px 13px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: #334155;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 6px 14px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 800;
}

.filter-row button {
  position: relative;
  overflow: hidden;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.blog-filter-row button,
.work-filter-bar button {
  min-height: 44px;
  padding: 0 17px;
  border-color: rgba(62, 111, 127, 0.14);
  color: #385268;
  background:
    radial-gradient(circle at 26% 12%, rgba(255, 255, 255, 0.72), transparent 32%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.56), rgba(235, 248, 245, 0.36)),
    rgba(255, 255, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    inset 0 -1px 0 rgba(31, 74, 88, 0.06),
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.blog-filter-row button::before,
.work-filter-bar button::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle 42px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.28),
      rgba(37, 99, 235, 0.12) 45%,
      transparent 78%
    ),
    radial-gradient(
      circle 130px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.15),
      transparent 70%
    );
  filter: blur(12px);
  opacity: 0;
  transition: opacity 0.18s ease;
  transform: scale(1.04);
}

.filter-row button:hover,
.filter-row button.is-active {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.48);
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.28), transparent 26%),
    linear-gradient(135deg, #0f766e, #0891b2 58%, #2563eb);
}

.blog-filter-row button:hover,
.blog-filter-row button:focus-visible,
.blog-filter-row button.is-local-glowing,
.work-filter-bar button:hover,
.work-filter-bar button:focus-visible,
.work-filter-bar button.is-local-glowing {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(15, 118, 110, 0.36);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.84),
    inset 0 -1px 0 rgba(31, 74, 88, 0.08),
    0 12px 26px rgba(20, 184, 166, 0.10);
}

.blog-filter-row button:hover::before,
.blog-filter-row button:focus-visible::before,
.blog-filter-row button.is-local-glowing::before,
.work-filter-bar button:hover::before,
.work-filter-bar button:focus-visible::before,
.work-filter-bar button.is-local-glowing::before {
  opacity: 0.9;
}

.blog-filter-row button.is-active,
.work-filter-bar button.is-active {
  transform: translateY(-3px) scale(1.08);
  border-color: rgba(103, 232, 249, 0.62);
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.42), transparent 25%),
    linear-gradient(135deg, #0f766e 0%, #06a6b8 54%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.42),
    inset 0 -1px 0 rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 16px 30px rgba(8, 145, 178, 0.22),
    0 0 26px rgba(45, 212, 191, 0.22);
}

.work-filter-bar {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.work-filter-bar button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(62, 111, 127, 0.14);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.spotlight-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spotlight-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.spotlight-kicker {
  position: relative;
  z-index: 1;
  margin-bottom: 12px;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.spotlight-card h3 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: 0;
}

/* =============================
   Join
============================= */

.join-preview {
  border-radius: var(--radius-xl);
  padding: clamp(30px, 4rem, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr) auto;
  gap: 24px;
  align-items: center;
}

.join-preview h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.join-preview p {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.8;
}

.join-preview-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.join-preview-list span {
  padding: 12px 14px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--control-shadow);
  font-size: 14px;
  font-weight: 800;
}

.join-layout,
.role-grid {
  display: grid;
  gap: 20px;
}

.join-layout {
  grid-template-columns: repeat(3, 1fr);
}

.role-grid {
  grid-template-columns: repeat(2, 1fr);
}

.join-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.join-number {
  position: relative;
  z-index: 1;
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  font-weight: 900;
  font-size: 0;
}

.join-icon-person::before {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(-8px);
}

.join-icon-person::after {
  width: 24px;
  height: 12px;
  border-radius: 14px 14px 6px 6px;
  background: rgba(255, 255, 255, 0.96);
  transform: translateY(9px);
}

.join-icon-build::before {
  width: 24px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.join-icon-build::after {
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow:
    0 -6px 0 rgba(255, 255, 255, 0.96),
    0 6px 0 rgba(255, 255, 255, 0.96);
}

.join-icon-flow::before {
  width: 26px;
  height: 26px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-left-color: transparent;
  border-radius: 999px;
}

.join-icon-flow::after {
  width: 8px;
  height: 8px;
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  transform: translate(9px, -8px) rotate(45deg);
}

.join-card h2,
.role-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.join-card p,
.role-card p,
.join-project-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.78;
}

.join-project-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.glass-banner {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 5rem, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.page-main {
  padding-top: 70px;
}

.page-hero {
  padding: clamp(30px, 4rem, 58px);
}

/* =============================
   Blog
============================= */

.blog-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4rem, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 28px;
  align-items: stretch;
}

.blog-hero-copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.blog-hero h1 {
  font-size: 68px;
}

.blog-hero p {
  max-width: 760px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.86;
}

.blog-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.author-panel {
  position: relative;
  z-index: 1;
  min-height: 360px;
  padding: 22px;
  border: 1px solid var(--glass-border);
  border-radius: 22px;
  display: grid;
  grid-template-rows: 1fr auto auto;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.62), rgba(236, 249, 246, 0.42));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 38px rgba(15, 23, 42, 0.09);
}

.blog-avatar-box {
  width: 100%;
  min-height: 210px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(236, 249, 246, 0.82));
}

.author-info {
  position: relative;
  z-index: 1;
}

.author-info span,
.author-info strong,
.author-info p {
  display: block;
}

.author-info span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.author-info strong {
  margin-top: 8px;
  font-size: 30px;
}

.author-info p {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
}

.author-stats {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.author-stats div {
  padding: 12px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 248, 245, 0.50)),
    rgba(255, 255, 255, 0.60);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 6px 14px rgba(15, 23, 42, 0.06);
}

.author-stats strong,
.author-stats span {
  display: block;
}

.author-stats strong {
  font-size: 18px;
}

.author-stats span {
  margin-top: 5px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.blog-dashboard {
  padding-top: 34px;
}

.blog-list {
  display: grid;
  gap: 20px;
}

.blog-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 12px;
}

.blog-feature-card h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 12px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: 0;
}

.blog-feature-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.blog-feature-label {
  position: relative;
  z-index: 1;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.blog-empty-state {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 800;
}

.blog-card {
  padding: 30px;
}

.redesigned-blog-list .blog-card {
  display: grid;
  grid-template-columns: minmax(140px, 0.3fr) minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
}

.blog-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
  color: var(--primary);
  font-size: 13px;
  font-weight: 800;
}

.blog-section-heading {
  position: relative;
  z-index: 1;
  margin: 34px 0 20px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.blog-section-heading h2 {
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.blog-section-heading > span {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 800;
}

.game-panel {
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  padding: clamp(28px, 4rem, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: end;
}

.game-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 40px;
  letter-spacing: 0;
}

.game-panel p {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.game-status {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--control-border);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.50)),
    rgba(255, 255, 255, 0.58);
  box-shadow: var(--control-shadow);
}

.game-status span,
.game-status strong {
  display: block;
}

.game-status span {
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-status strong {
  margin-top: 10px;
  font-size: 22px;
}

.game-status p {
  margin-top: 10px;
  font-size: 14px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.game-card {
  min-height: 280px;
}

.game-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.game-card-head time {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.game-badge {
  display: inline-grid;
  min-width: 48px;
  height: 42px;
  padding: 0 12px;
  place-items: center;
  border-radius: 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 13px;
  font-weight: 900;
}

.game-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  letter-spacing: 0;
}

.game-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.76;
}

.id-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.id-list span {
  padding: 10px 12px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.50)),
    rgba(255, 255, 255, 0.64);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.76),
    0 6px 14px rgba(15, 23, 42, 0.06);
  font-size: 13px;
  font-weight: 800;
}

/* =============================
   Works
============================= */

.work-card {
  padding: 0;
  overflow: hidden;
}

.work-cover span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: 0;
}

.work-cover-image {
  background: rgba(255, 255, 255, 0.48);
}

.work-cover-image img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

/* =============================
   Account, Community, Interactions
============================= */

.account-modal[hidden] {
  display: none;
}

.account-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
}

.account-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.account-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(760px, calc(100vh - 36px));
  overflow: auto;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.account-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  color: var(--text-main);
  background: var(--control-bg);
  cursor: pointer;
}

.account-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.account-tabs button,
.interaction-actions button,
[data-comment-form] button {
  border: 1px solid var(--control-border);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--text-muted);
  background: var(--control-bg);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.account-tabs button.is-active,
.interaction-actions button.is-liked {
  color: #0b3b43;
  border-color: rgba(15, 118, 110, 0.38);
  background: rgba(20, 184, 166, 0.12);
}

.account-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
}

.account-form label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-weight: 800;
}

.account-form input,
.account-form textarea,
.account-form select,
[data-comment-form] input {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text-main);
  background: var(--control-bg);
  font: inherit;
}

.account-message {
  position: relative;
  z-index: 1;
  min-height: 22px;
  color: var(--text-muted);
  font-weight: 800;
}

.account-message.is-error {
  color: #be123c;
}

.account-user-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.account-work-list,
.community-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.community-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.community-card {
  padding: 0;
  overflow: hidden;
}

.community-cover {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.community-body {
  position: relative;
  z-index: 1;
  padding: 22px;
}

.community-body > span {
  color: var(--primary);
  font-size: 13px;
  font-weight: 900;
}

.community-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.community-files a {
  padding: 8px 10px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--control-bg);
  font-size: 13px;
  font-weight: 800;
}

.account-file-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 10px 0;
}

.account-file-form input {
  flex: 1 1 180px;
}

.account-file-form button {
  border: 1px solid var(--control-border);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--primary-dark);
  background: var(--control-bg);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.interaction-box {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin: 0 22px 22px;
  padding-top: 14px;
  border-top: 1px solid var(--glass-border);
}

.blog-card .interaction-box {
  margin: 0;
  grid-column: 1 / -1;
}

.music-track-row .interaction-box {
  margin: 0;
  padding: 12px;
}

.interaction-actions,
[data-comment-form] {
  display: flex;
  gap: 10px;
  align-items: center;
}

.interaction-comments {
  display: grid;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
}

.interaction-comments p {
  margin: 0;
}

.account-empty {
  padding: 18px;
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.48);
  font-weight: 800;
}

.account-inline-delete button,
.admin-danger {
  border: 1px solid rgba(225, 29, 72, 0.24);
  border-radius: 999px;
  padding: 8px 10px;
  color: #be123c;
  background: rgba(225, 29, 72, 0.08);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 760px) {
  .community-grid {
    grid-template-columns: 1fr;
  }

  .interaction-actions,
  [data-comment-form],
  .account-user-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.gradient-one {
  background: linear-gradient(135deg, #2563eb, #059669);
}

.gradient-two {
  background: linear-gradient(135deg, #0f766e, #f59e0b);
}

.gradient-three {
  background: linear-gradient(135deg, #0f172a, #10b981);
}

.gradient-four {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.work-body {
  padding: 26px;
}

.tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.work-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 18px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

.tags span {
  padding: 7px 10px;
  border: 1px solid rgba(62, 111, 127, 0.21);
  border-radius: 999px;
  color: #1e293b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 248, 245, 0.48)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 4px 10px rgba(15, 23, 42, 0.05);
  font-size: 12px;
  font-weight: 800;
}

.work-detail {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  border-top: 1px solid rgba(62, 111, 127, 0.16);
  padding-top: 14px;
}

.work-detail summary {
  width: fit-content;
  color: #0f5f73;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.work-detail summary::marker {
  content: "";
}

.work-detail summary::-webkit-details-marker {
  display: none;
}

.work-detail dl {
  display: grid;
  gap: 12px;
  margin: 16px 0 0;
}

.work-detail dl div {
  padding: 12px;
  border: 1px solid rgba(62, 111, 127, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.work-detail dt {
  color: #12333b;
  font-size: 13px;
  font-weight: 900;
}

.work-detail dd {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
}

.work-empty-state {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.54);
  font-weight: 800;
}

.work-detail-modal-open {
  overflow: hidden;
}

.work-detail-modal[hidden] {
  display: none;
}

.work-detail-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 22px;
}

.work-detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(10, 24, 32, 0.44);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  cursor: pointer;
}

.work-detail-panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(720px, calc(100svh - 44px));
  overflow: auto;
  border-radius: var(--radius-xl);
  padding: clamp(26px, 4vw, 42px);
}

.work-detail-panel h2 {
  margin: 0;
  font-size: 42px;
  line-height: 1.16;
  letter-spacing: 0;
}

.work-detail-panel > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.work-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 248, 245, 0.56)),
    rgba(255, 255, 255, 0.74);
  box-shadow: var(--control-shadow);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.work-detail-modal-meta,
.work-detail-modal-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-detail-modal-meta {
  margin-top: 18px;
}

.work-detail-modal-tags {
  margin-top: 10px;
}

.work-detail-modal-meta span,
.work-detail-modal-tags span {
  padding: 7px 10px;
  border: 1px solid rgba(62, 111, 127, 0.21);
  border-radius: 999px;
  color: #1e293b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(235, 248, 245, 0.48)),
    rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 800;
}

.work-detail-modal-body {
  position: relative;
  z-index: 1;
  margin-top: 22px;
}

.work-detail-modal-body dl {
  display: grid;
  gap: 14px;
  margin: 0;
}

.work-detail-modal-body dl div {
  padding: 14px;
  border: 1px solid rgba(62, 111, 127, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.45);
}

.work-detail-modal-body dt {
  color: #12333b;
  font-size: 13px;
  font-weight: 900;
}

.work-detail-modal-body dd {
  margin: 6px 0 0;
  color: var(--text-muted);
  line-height: 1.72;
}

.video-showcase {
  padding-top: 18px;
}

.video-panel {
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
  padding: clamp(28px, 4rem, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.video-panel h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 40px;
  letter-spacing: 0;
}

.video-panel p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.bili-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bili-card {
  padding: 0;
  overflow: hidden;
}

.bili-thumb {
  position: relative;
  z-index: 1;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.9), rgba(15, 118, 110, 0.88)),
    #0f172a;
}

.bili-thumb iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.bili-thumb-link {
  width: 100%;
  height: 100%;
  border: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.bili-fallback-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  grid-column: 1 / -1;
}

.bili-fallback-thumb {
  aspect-ratio: auto;
  height: 100%;
  min-height: 260px;
  padding: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #ffffff;
  text-align: center;
  font-weight: 900;
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(145deg, rgba(37, 99, 235, 0.60), rgba(15, 118, 110, 0.46)),
    rgba(15, 23, 42, 0.18);
  box-shadow:
    inset -1px 0 0 rgba(255, 255, 255, 0.18),
    inset 0 0 40px rgba(15, 23, 42, 0.10);
}

.bili-fallback-thumb span {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  font-size: 24px;
}

.bili-fallback-thumb strong,
.bili-fallback-thumb small {
  position: relative;
  z-index: 1;
  display: block;
}

.bili-fallback-thumb strong {
  font-size: 22px;
}

.bili-fallback-thumb small {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.5;
}

.bili-card.is-loading .bili-thumb::after {
  content: "";
  width: 42px;
  height: 42px;
  border: 3px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  animation: chatPulse 1s infinite ease-in-out;
}

.bili-body {
  padding: 22px;
}

.bili-body span {
  position: relative;
  z-index: 1;
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bili-body h2 {
  position: relative;
  z-index: 1;
  margin: 10px 0 10px;
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: 0;
}

.bili-body p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.72;
}

/* =============================
   About
============================= */

.about-layout {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.about-card.wide {
  grid-column: 1 / -1;
}

.clean-list {
  padding-left: 20px;
}

.clean-list li {
  margin-bottom: 10px;
}

/* =============================
   Links
============================= */

.link-profile-section {
  padding-bottom: 24px;
}

.link-profile {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4rem, 48px);
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
}

.link-profile-logo {
  width: min(100%, 220px);
  aspect-ratio: 1 / 1;
  margin: 0 auto;
  padding: 18px;
  border-radius: 24px;
}

.link-profile h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 42px;
  letter-spacing: 0;
}

.link-profile p {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.link-profile-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 20px;
}

.link-icon {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  font-size: 0;
  font-weight: 900;
  background: linear-gradient(135deg, #0f766e, #0891b2);
  box-shadow: 0 16px 32px rgba(8, 145, 178, 0.20);
}

.link-icon-video::before {
  width: 24px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.link-icon-video::after {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid rgba(255, 255, 255, 0.96);
  transform: translateX(2px);
}

.link-icon-channel::before {
  width: 24px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 8px;
}

.link-icon-channel::after {
  width: 15px;
  height: 9px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-top: 0;
  border-radius: 0 0 12px 12px;
  transform: translateY(5px);
}

.link-icon-code::before {
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateX(-7px) rotate(45deg);
}

.link-icon-code::after {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.96);
  border-top: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateX(7px) rotate(45deg);
}

.link-icon-mail::before {
  width: 26px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.96);
  border-radius: 6px;
}

.link-icon-mail::after {
  width: 16px;
  height: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.96);
  border-bottom: 2px solid rgba(255, 255, 255, 0.96);
  transform: translateY(-4px) rotate(-45deg);
}

.link-contact-section {
  padding-top: 24px;
}

.link-contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
}

.link-qr-box {
  width: 180px;
  height: 180px;
  padding: 12px;
  border-radius: 22px;
}

/* =============================
   Music
============================= */

.music-main {
  padding-bottom: 120px;
}

.music-hero {
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4rem, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 26px;
  align-items: center;
}

.music-hero h1 {
  margin: 0;
  font-size: 68px;
  line-height: 1;
  letter-spacing: 0;
}

.music-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.86;
}

.music-current-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--control-border);
  border-radius: 24px;
  display: grid;
  grid-template-columns: minmax(120px, 0.36fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(235, 248, 245, 0.42)),
    rgba(255, 255, 255, 0.38);
  box-shadow: var(--control-shadow);
}

.music-current-cover,
.music-track-cover,
.music-floating-cover,
.music-mini-cover {
  background:
    radial-gradient(circle at 26% 18%, rgba(255, 255, 255, 0.82), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(225, 248, 244, 0.42)),
    rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.48);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.52);
}

.music-current-cover {
  aspect-ratio: 1 / 1;
  padding: 14px;
  border-radius: 22px;
}
.music-current-cover-btn {
  appearance: none;
  cursor: pointer;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.music-current-cover-btn:hover,
.music-current-cover-btn:focus-visible {
  transform: translateY(-3px) scale(1.01);
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(255,255,255,0.44));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.56), 0 24px 48px rgba(8, 145, 178, 0.18);
}

.music-current-info h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
}

.music-current-info p:not(.eyebrow) {
  margin: 10px 0 0;
  color: var(--text-muted);
  line-height: 1.6;
}

.music-current-wave {
  position: relative;
  z-index: 1;
  height: 78px;
  margin-top: 16px;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(255,255,255,0.50), rgba(255,255,255,0.20));
  border: 1px solid rgba(148,163,184,0.20);
}

.music-wave-bars {
  position: absolute;
  inset: 12px 14px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.music-wave-bars span {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 10px;
  height: var(--live-h, var(--h));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, transparent 18%),
    var(--wave-gradient, linear-gradient(180deg, #38bdf8 0%, #f59e0b 52%, #8b5cf6 100%));
  opacity: 0.24;
  transform: scaleY(0.9);
  transform-origin: center;
  transition: height 0.08s linear, opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.music-wave-bars span.is-past {
  opacity: 1;
  transform: scaleY(1);
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--music-key-1, #38bdf8) 42%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--music-key-2, #f59e0b) 24%, transparent));
}

.music-current-card.is-playing .music-wave-bars span {
  opacity: 0.40;
}

.music-current-card.is-playing .music-wave-bars span.is-past {
  opacity: 1;
}

.music-current-controls,
.music-floating-controls {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 16px;
}

.music-action,
.music-mode-btn,
.music-floating-close,
.music-floating-ball,
.music-track-drag,
.music-track-play {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid var(--control-border);
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.music-action::before,
.music-mode-btn::before,
.music-floating-close::before,
.music-floating-ball::before,
.music-track-drag::before,
.music-track-play::before {
  content: "";
  position: absolute;
  inset: -20px;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(
      circle 42px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.26),
      rgba(37, 99, 235, 0.12) 45%,
      transparent 78%
    ),
    radial-gradient(
      circle 130px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(20, 184, 166, 0.14),
      transparent 70%
    );
  filter: blur(12px);
  opacity: 0;
  z-index: 0;
  transition: opacity 0.18s ease;
}

.music-action,
.music-mode-btn {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: #12333b;
  background:
    radial-gradient(circle at 28% 16%, rgba(255, 255, 255, 0.62), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.66), rgba(232, 247, 244, 0.54)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
  font-size: 14px;
  font-weight: 900;
}

.music-action:hover,
.music-mode-btn:hover,
.music-track-play:hover,
.music-floating-ball:hover,
.music-floating-close:hover {
  transform: translateY(-2px);
  border-color: var(--control-border-hover);
}

.music-action:hover::before,
.music-action:focus-visible::before,
.music-action.is-local-glowing::before,
.music-mode-btn:hover::before,
.music-mode-btn:focus-visible::before,
.music-mode-btn.is-local-glowing::before,
.music-track-play:hover::before,
.music-track-play:focus-visible::before,
.music-track-play.is-local-glowing::before,
.music-track-drag:hover::before,
.music-track-drag:focus-visible::before,
.music-track-drag.is-local-glowing::before,
.music-floating-ball:hover::before,
.music-floating-ball:focus-visible::before,
.music-floating-ball.is-local-glowing::before,
.music-floating-close:hover::before,
.music-floating-close:focus-visible::before,
.music-floating-close.is-local-glowing::before {
  opacity: 0.9;
}

.music-play-toggle {
  min-width: 82px;
  color: #ffffff;
  border-color: rgba(12, 93, 105, 0.72);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 25%),
    linear-gradient(135deg, #0f766e 0%, #0891b2 58%, #1d4ed8 100%);
}

.music-progress {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 12px;
  accent-color: #0f766e;
}
.music-progress::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
}
.music-progress::-webkit-slider-thumb {
  width: 16px;
  height: 16px;
  margin-top: -4px;
}
.music-progress::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.14);
}
.music-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
}

.music-time-row {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.music-track-list {
  display: grid;
  gap: 14px;
}

.music-track-row {
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
}

.music-track-play {
  width: 100%;
  min-height: 92px;
  padding: 14px 18px;
  border: 0;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto auto auto;
  gap: 16px;
  align-items: center;
  color: inherit;
  text-align: left;
  border-radius: inherit;
  background: transparent;
}

.music-track-cover {
  width: 64px;
  height: 64px;
  padding: 8px;
  border-radius: 18px;
}

.music-track-copy strong,
.music-track-copy small {
  position: relative;
  z-index: 1;
  display: block;
}

.music-track-copy strong {
  font-size: 20px;
}

.music-track-copy small {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 800;
}

.music-track-date,
.music-track-state,
.music-track-drag {
  position: relative;
  z-index: 1;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 900;
}

.music-track-state,
.music-track-drag {
  padding: 8px 12px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.50);
}

.music-track-state {
  color: #0f5f73;
}

.music-track-drag {
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.music-track-row.is-active {
  border-color: rgba(15, 118, 110, 0.34);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.86),
    0 20px 46px rgba(20, 184, 166, 0.12);
}

.music-track-row.is-active .music-track-state {
  color: #ffffff;
  border-color: rgba(12, 93, 105, 0.62);
  background: linear-gradient(135deg, #0f766e, #2563eb);
}

.music-track-row.is-dragging {
  opacity: 0.58;
  transform: scale(0.985);
  cursor: grabbing;
}

.music-track-row.is-drop-target {
  outline: 2px solid rgba(20, 184, 166, 0.42);
  outline-offset: 4px;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.90),
    0 18px 42px rgba(20, 184, 166, 0.16);
}

.music-floating-player {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 110;
  display: none;
  width: min(430px, calc(100vw - 32px));
  contain: layout style;
  touch-action: none;
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1), transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-floating-player.is-visible {
  display: block;
}

.music-floating-player.is-dragging {
  user-select: none;
}

.music-floating-ball {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  margin-left: auto;
  border-radius: 999px;
  cursor: grab;
  background:
    radial-gradient(circle at 32% 18%, rgba(255, 255, 255, 0.78), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(226, 245, 241, 0.48)),
    rgba(255, 255, 255, 0.50);
  box-shadow: var(--control-shadow), 0 16px 36px rgba(20, 184, 166, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: scale(0.72) translateY(8px);
  will-change: opacity, transform;
  transition: opacity 0.22s ease, transform 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.music-floating-ball img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.music-floating-panel {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  padding: 16px 14px 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36px;
  gap: 12px;
  align-items: center;
  cursor: grab;
  opacity: 1;
  transform: scale(1);
  transform-origin: left top;
  transition:
    opacity 0.22s ease,
    transform 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform, border-radius;
}

.music-floating-player.is-dragging .music-floating-panel,
.music-floating-player.is-dragging .music-floating-ball,
.music-track-row.is-dragging .music-track-drag {
  cursor: grabbing;
}

.music-floating-main {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  padding: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-align: left;
  border-radius: 18px;
  outline: none;
  transition: transform 0.26s ease, padding 0.26s ease;
  cursor: grab;
}

.music-floating-player.is-dragging .music-floating-main {
  cursor: grabbing;
}

.music-floating-cover {
  width: 54px;
  height: 54px;
  padding: 7px;
  border-radius: 16px;
  flex: 0 0 auto;
  pointer-events: none;
  transition: width 0.28s ease, height 0.28s ease, transform 0.28s ease, border-radius 0.28s ease, padding 0.28s ease;
  will-change: width, height, transform;
}

.music-floating-cover img,
.music-floating-ball img {
  pointer-events: none;
}

.music-floating-copy {
  min-width: 0;
}

.music-floating-copy strong,
.music-floating-copy small {
  display: block;
}

.music-floating-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.music-floating-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
}

.music-floating-controls {
  grid-column: 1 / -1;
  grid-row: 2;
  margin-top: 0;
  justify-content: center;
}

.music-floating-controls .music-action,
.music-floating-controls .music-mode-btn {
  min-height: 36px;
  padding: 0 12px;
}

.music-floating-close {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  width: 32px;
  height: 32px;
  padding: 0;
  justify-self: end;
  align-self: center;
  border-radius: 12px;
  color: #12333b;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--control-shadow);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.music-mini-sheet {
  display: none;
  grid-column: 1 / -1;
  grid-row: 3;
  padding-top: 4px;
}

.music-floating-player.is-expanded .music-floating-panel {
  grid-template-columns: 1fr;
  padding-top: 14px;
}

.music-floating-player.is-expanded .music-floating-main {
  grid-column: 1;
  grid-row: 2;
  padding: 12px 0 4px;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.music-floating-player.is-expanded .music-floating-cover {
  width: 132px;
  height: 132px;
  padding: 14px;
  border-radius: 28px;
  transform: translateY(8px);
}

.music-floating-player.is-expanded .music-floating-copy {
  width: 100%;
  text-align: center;
}

.music-floating-player.is-expanded .music-floating-controls {
  grid-column: 1;
  grid-row: 3;
  justify-content: center;
}

.music-floating-player.is-expanded .music-floating-close {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
  align-self: start;
}

.music-floating-player.is-expanded .music-mini-sheet {
  grid-row: 4;
  display: block;
}

.music-floating-player.is-collapsed {
  width: 68px;
  height: 68px;
}

.music-floating-player.is-collapsed .music-floating-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(430px, calc(100vw - 32px));
  opacity: 0;
  pointer-events: none;
  transform: scale(0.42);
  border-radius: 999px;
}

.music-floating-player.is-collapsed .music-floating-ball {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1) translateY(0);
}

/* =============================
   AI Chat
============================= */

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

.chat-main {
  padding-top: 52px;
}

.chat-hero {
  border-radius: var(--radius-xl);
  padding: clamp(30px, 4rem, 54px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 24px;
  align-items: end;
}

.chat-hero h1 {
  font-size: 68px;
}

.chat-hero p {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.chat-model-card {
  position: relative;
  z-index: 1;
  padding: 22px;
  border: 1px solid var(--control-border);
  border-radius: 18px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--control-shadow);
}

.chat-model-card span,
.chat-model-card strong {
  display: block;
}

.chat-model-card span {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.chat-model-card strong {
  margin-top: 9px;
  font-size: 22px;
}

.chat-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 20px;
  align-items: start;
}

.chat-shell {
  height: clamp(560px, 72vh, 740px);
  min-height: 0;
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.chat-toolbar {
  position: relative;
  z-index: 2;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.chat-toolbar span,
.chat-toolbar strong {
  display: block;
}

.chat-toolbar span {
  font-size: 14px;
  font-weight: 900;
}

.chat-toolbar strong {
  margin-top: 4px;
  color: var(--primary-dark);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.chat-icon-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--control-border);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.80), rgba(235, 248, 245, 0.56)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  transition: 0.25s ease;
}

.chat-icon-btn:hover {
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 246, 242, 0.64)),
    var(--control-bg-hover);
}

.chat-options {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 12px);
  z-index: 5;
  padding: 12px;
  border: 1px solid rgba(71, 85, 105, 0.16);
  border-radius: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.86), rgba(235, 248, 245, 0.72)),
    rgba(255, 255, 255, 0.84);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 18px 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom left;
  transition:
    opacity 0.2s ease,
    transform 0.22s ease;
}

.chat-options.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-option {
  min-height: 38px;
  padding: 7px 12px 7px 8px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(235, 248, 245, 0.50)),
    rgba(255, 255, 255, 0.62);
  box-shadow: var(--control-shadow);
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  user-select: none;
}

.chat-option input {
  width: 18px;
  height: 18px;
  accent-color: #0f766e;
  cursor: pointer;
}

.chat-log {
  position: relative;
  z-index: 1;
  min-height: 0;
  padding: 22px;
  overflow-y: scroll;
  display: flex;
  flex-direction: column;
  gap: 16px;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

.chat-log::-webkit-scrollbar {
  width: 10px;
}

.chat-log::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 999px;
}

.chat-log::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.34);
  background-clip: padding-box;
}

.chat-log::-webkit-scrollbar-thumb:hover {
  background: rgba(8, 145, 178, 0.48);
  background-clip: padding-box;
}

.chat-message {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 82%;
}

.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-message.source-message {
  max-width: min(72%, 680px);
  margin-top: -8px;
}

.chat-message.source-message .chat-avatar {
  opacity: 0;
}

.chat-message.source-message .chat-bubble {
  border-radius: 14px;
  color: var(--text-muted);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.52), rgba(235, 248, 245, 0.34)),
    rgba(255, 255, 255, 0.46);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
  font-size: 13px;
}

.chat-avatar {
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #2563eb);
  font-size: 13px;
  font-weight: 900;
}

.chat-message.user .chat-avatar {
  background: linear-gradient(135deg, #e11d48, #f59e0b);
}

.chat-bubble {
  padding: 14px 16px;
  border: 1px solid var(--control-border);
  border-radius: 18px;
  border-top-left-radius: 6px;
  color: #203043;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 10px 24px rgba(15, 23, 42, 0.08);
}

.chat-message.user .chat-bubble {
  border-top-left-radius: 18px;
  border-top-right-radius: 6px;
  color: #ffffff;
  border-color: rgba(14, 116, 144, 0.52);
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

.reasoning-box {
  margin: 0 0 12px;
  border: 1px solid rgba(100, 116, 139, 0.28);
  border-radius: 12px;
  color: #64748b;
  background: rgba(100, 116, 139, 0.10);
  overflow: hidden;
}

.reasoning-box summary {
  min-height: 36px;
  padding: 9px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
  user-select: none;
}

.reasoning-body {
  max-height: 220px;
  padding: 0 12px 12px;
  overflow-y: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.7;
}

.chat-content p {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.76;
}

.chat-content p + p,
.chat-content ul,
.chat-content ol,
.chat-content blockquote,
.chat-content .code-block {
  margin-top: 12px;
}

.chat-content h1,
.chat-content h2,
.chat-content h3 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.35;
}

.chat-content ul,
.chat-content ol {
  padding-left: 22px;
}

.chat-content li {
  margin: 6px 0;
  line-height: 1.68;
}

.chat-content blockquote {
  padding: 10px 12px;
  border-left: 3px solid rgba(8, 145, 178, 0.7);
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.36);
}

.chat-content a {
  color: #0f5f73;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.chat-content code {
  padding: 2px 6px;
  border-radius: 7px;
  color: #0f172a;
  background: rgba(15, 23, 42, 0.08);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
}

.code-block {
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: #0d1724;
}

.code-toolbar {
  min-height: 38px;
  padding: 8px 10px 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 800;
}

.code-copy {
  min-width: 54px;
  min-height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.10);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.code-copy:hover {
  background: rgba(255, 255, 255, 0.18);
}

.code-block pre {
  margin: 0;
  padding: 14px;
  overflow-x: auto;
}

.code-block pre code {
  display: block;
  padding: 0;
  color: #e5eefb;
  background: transparent;
  line-height: 1.65;
  white-space: pre;
}

.chat-message.is-loading .chat-content p::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-radius: 999px;
  background: currentColor;
  animation: chatPulse 1s infinite ease-in-out;
}

.chat-form {
  position: relative;
  z-index: 4;
  padding: 16px;
  border-top: 1px solid rgba(71, 85, 105, 0.18);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
  overflow: visible;
}

.chat-tools-toggle {
  width: 48px;
  height: 48px;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  color: #0f172a;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(235, 248, 245, 0.56)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
  cursor: pointer;
  font-size: 13px;
  font-weight: 1000;
  line-height: 1;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.chat-tools-toggle:hover,
.chat-tools-toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(228, 246, 242, 0.64)),
    var(--control-bg-hover);
}

.chat-form textarea {
  width: 100%;
  min-height: 48px;
  max-height: 160px;
  padding: 13px 16px;
  border: 1px solid var(--control-border);
  border-radius: 18px;
  resize: none;
  color: var(--text-main);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(242, 250, 248, 0.58)),
    rgba(255, 255, 255, 0.70);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.70),
    inset 0 2px 8px rgba(15, 23, 42, 0.04);
  font: inherit;
  line-height: 1.5;
}

.chat-form textarea::placeholder {
  color: var(--text-muted);
}

.chat-send {
  min-width: 92px;
  border: 0;
  cursor: pointer;
}

.chat-send:disabled,
.chat-form textarea:disabled {
  cursor: wait;
  opacity: 0.72;
}

.chat-side {
  position: sticky;
  top: 110px;
}

.chat-side h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 18px;
}

.prompt-note {
  position: relative;
  z-index: 1;
  margin: -6px 0 18px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.prompt-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.prompt-list button {
  width: 100%;
  position: relative;
  overflow: hidden;
  padding: 13px 14px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  color: #12333b;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.70), rgba(235, 248, 245, 0.52)),
    rgba(255, 255, 255, 0.64);
  box-shadow: var(--control-shadow);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  transition: 0.25s ease;
}

.prompt-list button:hover {
  transform: translateY(-1px);
  border-color: var(--control-border-hover);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(228, 246, 242, 0.64)),
    var(--control-bg-hover);
}

@keyframes chatPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

/* =============================
   WeChat QR Page
============================= */

.wechat-qr-page {
  position: relative;
  min-height: 620px;
  padding: clamp(34px, 5rem, 70px);
  border-radius: var(--radius-xl);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
}

.wechat-qr-page h1 {
  font-size: 72px;
  letter-spacing: 0;
}

.wechat-desc {
  max-width: 620px;
  margin: 22px auto 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.8;
}

.wechat-actions {
  justify-content: center;
  margin-top: 34px;
}

/* =============================
   Footer
============================= */

.footer {
  padding: 40px 0 46px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 14px;
}

.footer p {
  margin: 0;
}

/* =============================
   Fallback
============================= */

@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .glass-nav,
  .glass-panel,
  .glass-card,
  .glass-banner,
  .image-box,
  .mini-card {
    background: rgba(255, 255, 255, 0.88);
  }
}

/* =============================
   Dark Mode
============================= */

:root[data-theme="dark"] {
  color-scheme: dark;
  --text-main: #eef6f7;
  --text-muted: #a9bac3;
  --primary: #2dd4bf;
  --primary-dark: #67e8f9;
  --glass-border: rgba(103, 232, 249, 0.18);
  --glass-edge: rgba(0, 0, 0, 0.18);
  --glass-edge-strong: rgba(0, 0, 0, 0.28);
  --glass-shine: rgba(255, 255, 255, 0.14);
  --glass-refraction: rgba(45, 212, 191, 0.10);
  --control-bg: rgba(15, 35, 43, 0.48);
  --control-bg-hover: rgba(18, 49, 58, 0.68);
  --control-border: rgba(103, 232, 249, 0.24);
  --control-border-hover: rgba(103, 232, 249, 0.42);
  --control-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 8px 20px rgba(0, 0, 0, 0.20),
    0 4px 18px rgba(20, 184, 166, 0.08);
  --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.36);
  --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] body {
  background:
    linear-gradient(115deg, rgba(37, 99, 235, 0.15), transparent 36%),
    linear-gradient(245deg, rgba(20, 184, 166, 0.18), transparent 40%),
    linear-gradient(0deg, rgba(245, 158, 11, 0.045), transparent 36%),
    linear-gradient(135deg, #071217 0%, #0b1c22 52%, #101722 100%);
}

:root[data-theme="dark"] .site-bg::after {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
}

:root[data-theme="dark"] .glass-nav,
:root[data-theme="dark"] .glass-panel,
:root[data-theme="dark"] .glass-card,
:root[data-theme="dark"] .glass-banner,
:root[data-theme="dark"] .image-box,
:root[data-theme="dark"] .mini-card {
  background:
    linear-gradient(
      135deg,
      rgba(10, 22, 30, 0.78) 0%,
      rgba(13, 38, 45, 0.60) 50%,
      rgba(8, 18, 28, 0.50) 100%
    ),
    radial-gradient(
      circle at 18% 12%,
      rgba(255, 255, 255, 0.14),
      rgba(255, 255, 255, 0.04) 28%,
      transparent 56%
    ),
    rgba(15, 23, 42, 0.42);
  border-color: rgba(103, 232, 249, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.12),
    inset 0 -1px 1px rgba(255, 255, 255, 0.05),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025),
    var(--shadow-soft),
    0 8px 24px rgba(20, 184, 166, 0.09);
}

:root[data-theme="dark"] .glass-panel::before,
:root[data-theme="dark"] .glass-card::before,
:root[data-theme="dark"] .glass-banner::before {
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.11) 0%,
      rgba(255, 255, 255, 0.035) 18%,
      transparent 42%
    ),
    linear-gradient(315deg, rgba(45, 212, 191, 0.06), transparent 42%);
  opacity: 0.72;
}

:root[data-theme="dark"] .glass-panel::after,
:root[data-theme="dark"] .glass-card::after,
:root[data-theme="dark"] .glass-banner::after {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(45, 212, 191, 0.12),
    rgba(203, 213, 225, 0.22),
    rgba(37, 99, 235, 0.10),
    transparent
  );
  opacity: 0.48;
}

:root[data-theme="dark"] .brand-logo-box,
:root[data-theme="dark"] .studio-logo-box,
:root[data-theme="dark"] .wechat-qr-box {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 36%),
    linear-gradient(145deg, rgba(148, 163, 184, 0.28), rgba(71, 85, 105, 0.42)),
    rgba(39, 45, 55, 0.74);
  border-color: rgba(203, 213, 225, 0.22);
}

:root[data-theme="dark"] .nav-links a {
  color: #cbd5e1;
}

:root[data-theme="dark"] .nav-links a:hover,
:root[data-theme="dark"] .nav-links a.active {
  color: #f8fafc;
  background:
    radial-gradient(circle at 34% 8%, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(20, 184, 166, 0.15), rgba(37, 99, 235, 0.10)),
    rgba(15, 35, 43, 0.50);
  box-shadow:
    inset 0 0 0 1px rgba(103, 232, 249, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 8px 20px rgba(20, 184, 166, 0.10);
}

:root[data-theme="dark"] .nav-links a.active {
  color: #ecfeff;
  background:
    radial-gradient(circle at 32% 8%, rgba(103, 232, 249, 0.22), transparent 34%),
    linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(37, 99, 235, 0.14)),
    rgba(12, 34, 42, 0.68);
  box-shadow:
    inset 0 0 0 1px rgba(103, 232, 249, 0.38),
    inset 0 -1px 0 rgba(0, 0, 0, 0.24),
    0 10px 26px rgba(20, 184, 166, 0.16);
}

:root[data-theme="dark"] .theme-toggle,
:root[data-theme="dark"] .menu-btn {
  color: #e2e8f0;
  border-color: var(--control-border);
  background:
    linear-gradient(145deg, rgba(15, 35, 43, 0.66), rgba(15, 23, 42, 0.48)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
}

:root[data-theme="dark"] .theme-toggle:hover {
  border-color: var(--control-border-hover);
  background:
    linear-gradient(145deg, rgba(18, 49, 58, 0.76), rgba(22, 35, 48, 0.56)),
    var(--control-bg-hover);
}

:root[data-theme="dark"] .menu-btn span {
  background: #e2e8f0;
}

:root[data-theme="dark"] .btn-ghost,
:root[data-theme="dark"] .hero-stats div,
:root[data-theme="dark"] .hero-entry-grid a,
:root[data-theme="dark"] .author-panel,
:root[data-theme="dark"] .author-stats div,
:root[data-theme="dark"] .filter-row span,
:root[data-theme="dark"] .filter-row button,
:root[data-theme="dark"] .work-filter-bar button,
:root[data-theme="dark"] .join-preview-list span,
:root[data-theme="dark"] .game-status,
:root[data-theme="dark"] .id-list span,
:root[data-theme="dark"] .tags span,
:root[data-theme="dark"] .work-detail dl div,
:root[data-theme="dark"] .work-detail-close,
:root[data-theme="dark"] .work-detail-modal-meta span,
:root[data-theme="dark"] .work-detail-modal-tags span,
:root[data-theme="dark"] .work-detail-modal-body dl div,
:root[data-theme="dark"] .work-empty-state,
:root[data-theme="dark"] .blog-empty-state,
:root[data-theme="dark"] .music-current-card,
:root[data-theme="dark"] .music-action,
:root[data-theme="dark"] .music-mode-btn,
:root[data-theme="dark"] .music-track-state,
:root[data-theme="dark"] .music-track-drag,
:root[data-theme="dark"] .music-floating-ball,
:root[data-theme="dark"] .music-floating-close,
:root[data-theme="dark"] .chat-model-card,
:root[data-theme="dark"] .chat-icon-btn,
:root[data-theme="dark"] .chat-tools-toggle,
:root[data-theme="dark"] .chat-bubble,
:root[data-theme="dark"] .chat-option,
:root[data-theme="dark"] .chat-form textarea,
:root[data-theme="dark"] .prompt-list button {
  color: #e2e8f0;
  border-color: var(--control-border);
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(15, 35, 43, 0.56), rgba(15, 23, 42, 0.42)),
    var(--control-bg);
  box-shadow: var(--control-shadow);
}

:root[data-theme="dark"] .work-filter-bar button.is-active,
:root[data-theme="dark"] .work-filter-bar button:hover,
:root[data-theme="dark"] .filter-row button.is-active,
:root[data-theme="dark"] .filter-row button:hover {
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.44);
}

:root[data-theme="dark"] .blog-filter-row,
:root[data-theme="dark"] .work-filter-bar {
  border-color: rgba(103, 232, 249, 0.22);
  background:
    radial-gradient(circle at var(--local-glow-x, 50%) var(--local-glow-y, 50%), rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(145deg, rgba(15, 35, 43, 0.62), rgba(15, 23, 42, 0.42)),
    rgba(15, 23, 42, 0.44);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    inset 0 -1px 0 rgba(0, 0, 0, 0.20),
    0 16px 36px rgba(0, 0, 0, 0.22);
}

:root[data-theme="dark"] .blog-filter-row button,
:root[data-theme="dark"] .work-filter-bar button {
  color: #cbd5e1;
}

:root[data-theme="dark"] .blog-filter-row button.is-active,
:root[data-theme="dark"] .work-filter-bar button.is-active {
  color: #ffffff;
  border-color: rgba(103, 232, 249, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.30),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(103, 232, 249, 0.22),
    0 16px 32px rgba(8, 145, 178, 0.24),
    0 0 30px rgba(45, 212, 191, 0.24);
}

:root[data-theme="dark"] .work-detail summary,
:root[data-theme="dark"] .work-detail dt,
:root[data-theme="dark"] .work-detail-modal-body dt {
  color: #ecfeff;
}

:root[data-theme="dark"] .music-current-cover,
:root[data-theme="dark"] .music-track-cover,
:root[data-theme="dark"] .music-floating-cover {
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.14), transparent 36%),
    linear-gradient(145deg, rgba(30, 41, 59, 0.70), rgba(2, 6, 23, 0.52)),
    rgba(8, 13, 24, 0.72);
  border-color: rgba(203, 213, 225, 0.22);
}

:root[data-theme="dark"] .btn-ghost:hover,
:root[data-theme="dark"] .chat-icon-btn:hover,
:root[data-theme="dark"] .chat-tools-toggle:hover,
:root[data-theme="dark"] .chat-tools-toggle[aria-expanded="true"],
:root[data-theme="dark"] .prompt-list button:hover {
  border-color: var(--control-border-hover);
  background:
    radial-gradient(circle at 24% 12%, rgba(103, 232, 249, 0.14), transparent 34%),
    linear-gradient(145deg, rgba(18, 49, 58, 0.68), rgba(22, 35, 48, 0.52)),
    var(--control-bg-hover);
}

:root[data-theme="dark"] .chat-options {
  border-color: var(--control-border);
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(145deg, rgba(15, 35, 43, 0.74), rgba(15, 23, 42, 0.66)),
    rgba(15, 23, 42, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 44px rgba(0, 0, 0, 0.34);
}

:root[data-theme="dark"] .btn-primary {
  border-color: rgba(103, 232, 249, 0.42);
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.26), transparent 26%),
    linear-gradient(135deg, #0f766e 0%, #0891b2 56%, #2563eb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.30),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 14px 34px rgba(8, 145, 178, 0.24),
    0 6px 20px rgba(20, 184, 166, 0.16);
}

:root[data-theme="dark"] .btn-primary:hover {
  border-color: rgba(103, 232, 249, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    inset 0 -1px 0 rgba(0, 0, 0, 0.26),
    0 18px 42px rgba(8, 145, 178, 0.28),
    0 8px 22px rgba(20, 184, 166, 0.18);
}

:root[data-theme="dark"] .btn::before,
:root[data-theme="dark"] .theme-toggle::before,
:root[data-theme="dark"] .menu-btn::before,
:root[data-theme="dark"] .nav-links a::before,
:root[data-theme="dark"] .chat-icon-btn::before,
:root[data-theme="dark"] .chat-tools-toggle::before,
:root[data-theme="dark"] .prompt-list button::before {
  background:
    radial-gradient(
      circle 38px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(45, 212, 191, 0.32),
      rgba(103, 232, 249, 0.14) 44%,
      transparent 78%
    ),
    radial-gradient(
      circle 120px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(45, 212, 191, 0.16),
      transparent 70%
    );
}

:root[data-theme="dark"] .btn:active::before,
:root[data-theme="dark"] .theme-toggle:active::before,
:root[data-theme="dark"] .menu-btn:active::before,
:root[data-theme="dark"] .nav-links a:active::before,
:root[data-theme="dark"] .chat-icon-btn:active::before,
:root[data-theme="dark"] .chat-tools-toggle:active::before,
:root[data-theme="dark"] .prompt-list button:active::before {
  background:
    radial-gradient(
      circle 44px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(45, 212, 191, 0.42),
      rgba(103, 232, 249, 0.18) 44%,
      transparent 80%
    ),
    radial-gradient(
      circle 132px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
      rgba(45, 212, 191, 0.20),
      transparent 72%
    );
}

:root[data-theme="dark"] .chat-toolbar,
:root[data-theme="dark"] .chat-form {
  border-color: rgba(148, 163, 184, 0.18);
}

:root[data-theme="dark"] .chat-message.user .chat-bubble {
  color: #ffffff;
  background: linear-gradient(135deg, #0f766e, #0891b2);
}

:root[data-theme="dark"] .text-link,
:root[data-theme="dark"] .work-meta,
:root[data-theme="dark"] .chat-content a {
  color: #67e8f9;
}

:root[data-theme="dark"] .chat-content code {
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.10);
}

:root[data-theme="dark"] .chat-content blockquote {
  border-left-color: rgba(103, 232, 249, 0.7);
  background: rgba(15, 23, 42, 0.34);
}

:root[data-theme="dark"] .reasoning-box {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(148, 163, 184, 0.10);
}

:root[data-theme="dark"] .chat-message.source-message .chat-bubble {
  color: #94a3b8;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(145deg, rgba(15, 35, 43, 0.42), rgba(15, 23, 42, 0.34)),
    rgba(15, 23, 42, 0.52);
}

:root[data-theme="dark"] .glass-panel:hover,
:root[data-theme="dark"] .glass-banner:hover {
  --panel-glow-alpha: 0.26;
  --panel-glow-blue-alpha: 0.13;
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.09),
    inset 0 -1px 1px rgba(255, 255, 255, 0.04),
    inset 0 0 0 1px rgba(103, 232, 249, 0.035),
    var(--shadow-soft),
    0 10px 30px rgba(45, 212, 191, 0.10);
}

:root[data-theme="dark"] .glass-panel.is-local-glowing,
:root[data-theme="dark"] .glass-banner.is-local-glowing {
  --panel-glow-alpha: 0.26;
  --panel-glow-blue-alpha: 0.13;
}

:root[data-theme="dark"] .glass-card:hover {
  border-color: rgba(103, 232, 249, 0.24);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.10),
    inset 0 0 0 1px rgba(103, 232, 249, 0.035),
    0 34px 95px rgba(0, 0, 0, 0.32),
    0 12px 36px rgba(20, 184, 166, 0.10);
}

:root[data-theme="dark"] .bili-fallback-card {
  background:
    linear-gradient(
      135deg,
      rgba(15, 23, 42, 0.82) 0%,
      rgba(15, 35, 43, 0.62) 48%,
      rgba(8, 18, 28, 0.52) 100%
    ),
    rgba(15, 23, 42, 0.46);
}

:root[data-theme="dark"] .bili-fallback-thumb {
  background:
    radial-gradient(circle at 42% 26%, rgba(103, 232, 249, 0.18), transparent 32%),
    linear-gradient(145deg, rgba(37, 99, 235, 0.42), rgba(20, 184, 166, 0.24)),
    rgba(15, 23, 42, 0.34);
  box-shadow:
    inset -1px 0 0 rgba(148, 163, 184, 0.22),
    inset 0 0 52px rgba(0, 0, 0, 0.16);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text-main: #eef6f7;
    --text-muted: #a9bac3;
    --primary: #2dd4bf;
    --primary-dark: #67e8f9;
    --glass-border: rgba(103, 232, 249, 0.18);
    --glass-edge: rgba(0, 0, 0, 0.18);
    --glass-edge-strong: rgba(0, 0, 0, 0.28);
    --glass-shine: rgba(255, 255, 255, 0.14);
    --glass-refraction: rgba(45, 212, 191, 0.10);
    --control-bg: rgba(15, 35, 43, 0.48);
    --control-bg-hover: rgba(18, 49, 58, 0.68);
    --control-border: rgba(103, 232, 249, 0.24);
    --control-border-hover: rgba(103, 232, 249, 0.42);
    --control-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.13),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18),
      inset 0 0 0 1px rgba(255, 255, 255, 0.035),
      0 8px 20px rgba(0, 0, 0, 0.20),
      0 4px 18px rgba(20, 184, 166, 0.08);
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.36);
    --shadow-card: 0 18px 48px rgba(0, 0, 0, 0.28);
  }

  :root:not([data-theme="light"]) body {
    background:
      linear-gradient(115deg, rgba(37, 99, 235, 0.15), transparent 36%),
      linear-gradient(245deg, rgba(20, 184, 166, 0.18), transparent 40%),
      linear-gradient(0deg, rgba(245, 158, 11, 0.045), transparent 36%),
      linear-gradient(135deg, #071217 0%, #0b1c22 52%, #101722 100%);
  }

  :root:not([data-theme="light"]) .site-bg::after {
    background-image:
      linear-gradient(rgba(148, 163, 184, 0.12) 1px, transparent 1px),
      linear-gradient(90deg, rgba(148, 163, 184, 0.12) 1px, transparent 1px);
  }

  :root:not([data-theme="light"]) .glass-nav,
  :root:not([data-theme="light"]) .glass-panel,
  :root:not([data-theme="light"]) .glass-card,
  :root:not([data-theme="light"]) .glass-banner,
  :root:not([data-theme="light"]) .image-box,
  :root:not([data-theme="light"]) .mini-card {
    background:
      linear-gradient(
        135deg,
        rgba(10, 22, 30, 0.78) 0%,
        rgba(13, 38, 45, 0.60) 50%,
        rgba(8, 18, 28, 0.50) 100%
      ),
      radial-gradient(
        circle at 18% 12%,
        rgba(255, 255, 255, 0.14),
        rgba(255, 255, 255, 0.04) 28%,
        transparent 56%
      ),
      rgba(15, 23, 42, 0.42);
    border-color: rgba(103, 232, 249, 0.18);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.12),
      inset 0 -1px 1px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.025),
      var(--shadow-soft),
      0 8px 24px rgba(20, 184, 166, 0.09);
  }

  :root:not([data-theme="light"]) .glass-panel::before,
  :root:not([data-theme="light"]) .glass-card::before,
  :root:not([data-theme="light"]) .glass-banner::before {
    background:
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.11) 0%,
        rgba(255, 255, 255, 0.035) 18%,
        transparent 42%
      ),
      linear-gradient(315deg, rgba(45, 212, 191, 0.06), transparent 42%);
    opacity: 0.72;
  }

  :root:not([data-theme="light"]) .glass-panel::after,
  :root:not([data-theme="light"]) .glass-card::after,
  :root:not([data-theme="light"]) .glass-banner::after {
    background: linear-gradient(
      90deg,
      transparent,
      rgba(45, 212, 191, 0.12),
      rgba(203, 213, 225, 0.22),
      rgba(37, 99, 235, 0.10),
      transparent
    );
    opacity: 0.48;
  }

  :root:not([data-theme="light"]) .brand-logo-box,
  :root:not([data-theme="light"]) .studio-logo-box,
  :root:not([data-theme="light"]) .wechat-qr-box {
    background:
      radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.24), transparent 36%),
      linear-gradient(145deg, rgba(148, 163, 184, 0.28), rgba(71, 85, 105, 0.42)),
      rgba(39, 45, 55, 0.74);
    border-color: rgba(203, 213, 225, 0.22);
  }

  :root:not([data-theme="light"]) .nav-links a {
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .nav-links a:hover,
  :root:not([data-theme="light"]) .nav-links a.active {
    color: #f8fafc;
    background:
      radial-gradient(circle at 34% 8%, rgba(255, 255, 255, 0.14), transparent 32%),
      linear-gradient(145deg, rgba(20, 184, 166, 0.15), rgba(37, 99, 235, 0.10)),
      rgba(15, 35, 43, 0.50);
    box-shadow:
      inset 0 0 0 1px rgba(103, 232, 249, 0.24),
      inset 0 -1px 0 rgba(0, 0, 0, 0.20),
      0 8px 20px rgba(20, 184, 166, 0.10);
  }

  :root:not([data-theme="light"]) .nav-links a.active {
    color: #ecfeff;
    background:
      radial-gradient(circle at 32% 8%, rgba(103, 232, 249, 0.22), transparent 34%),
      linear-gradient(145deg, rgba(20, 184, 166, 0.22), rgba(37, 99, 235, 0.14)),
      rgba(12, 34, 42, 0.68);
    box-shadow:
      inset 0 0 0 1px rgba(103, 232, 249, 0.38),
      inset 0 -1px 0 rgba(0, 0, 0, 0.24),
      0 10px 26px rgba(20, 184, 166, 0.16);
  }

  :root:not([data-theme="light"]) .theme-toggle,
  :root:not([data-theme="light"]) .menu-btn {
    color: #e2e8f0;
    border-color: var(--control-border);
    background:
      linear-gradient(145deg, rgba(15, 35, 43, 0.66), rgba(15, 23, 42, 0.48)),
      var(--control-bg);
    box-shadow: var(--control-shadow);
  }

  :root:not([data-theme="light"]) .theme-toggle:hover {
    border-color: var(--control-border-hover);
    background:
      linear-gradient(145deg, rgba(18, 49, 58, 0.76), rgba(22, 35, 48, 0.56)),
      var(--control-bg-hover);
  }

  :root:not([data-theme="light"]) .menu-btn span {
    background: #e2e8f0;
  }

  :root:not([data-theme="light"]) .sun-icon {
    opacity: 0;
    transform: rotate(35deg) scale(0.7);
  }

  :root:not([data-theme="light"]) .moon-icon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
  }

  :root:not([data-theme="light"]) .btn-ghost,
  :root:not([data-theme="light"]) .hero-stats div,
  :root:not([data-theme="light"]) .hero-entry-grid a,
  :root:not([data-theme="light"]) .author-panel,
  :root:not([data-theme="light"]) .author-stats div,
  :root:not([data-theme="light"]) .filter-row span,
  :root:not([data-theme="light"]) .filter-row button,
  :root:not([data-theme="light"]) .work-filter-bar button,
  :root:not([data-theme="light"]) .join-preview-list span,
  :root:not([data-theme="light"]) .game-status,
  :root:not([data-theme="light"]) .id-list span,
  :root:not([data-theme="light"]) .tags span,
  :root:not([data-theme="light"]) .work-detail dl div,
  :root:not([data-theme="light"]) .work-detail-close,
  :root:not([data-theme="light"]) .work-detail-modal-meta span,
  :root:not([data-theme="light"]) .work-detail-modal-tags span,
  :root:not([data-theme="light"]) .work-detail-modal-body dl div,
  :root:not([data-theme="light"]) .work-empty-state,
  :root:not([data-theme="light"]) .blog-empty-state,
  :root:not([data-theme="light"]) .music-current-card,
  :root:not([data-theme="light"]) .music-action,
  :root:not([data-theme="light"]) .music-mode-btn,
  :root:not([data-theme="light"]) .music-track-state,
  :root:not([data-theme="light"]) .music-track-drag,
  :root:not([data-theme="light"]) .music-floating-ball,
  :root:not([data-theme="light"]) .music-floating-close,
  :root:not([data-theme="light"]) .chat-model-card,
  :root:not([data-theme="light"]) .chat-icon-btn,
  :root:not([data-theme="light"]) .chat-tools-toggle,
  :root:not([data-theme="light"]) .chat-bubble,
  :root:not([data-theme="light"]) .chat-option,
  :root:not([data-theme="light"]) .chat-form textarea,
  :root:not([data-theme="light"]) .prompt-list button {
    color: #e2e8f0;
    border-color: var(--control-border);
    background:
      radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.08), transparent 30%),
      linear-gradient(145deg, rgba(15, 35, 43, 0.56), rgba(15, 23, 42, 0.42)),
      var(--control-bg);
    box-shadow: var(--control-shadow);
  }

  :root:not([data-theme="light"]) .work-filter-bar button.is-active,
  :root:not([data-theme="light"]) .work-filter-bar button:hover,
  :root:not([data-theme="light"]) .filter-row button.is-active,
  :root:not([data-theme="light"]) .filter-row button:hover {
    color: #ffffff;
    border-color: rgba(103, 232, 249, 0.44);
  }

  :root:not([data-theme="light"]) .blog-filter-row,
  :root:not([data-theme="light"]) .work-filter-bar {
    border-color: rgba(103, 232, 249, 0.22);
    background:
      radial-gradient(circle at var(--local-glow-x, 50%) var(--local-glow-y, 50%), rgba(45, 212, 191, 0.12), transparent 34%),
      linear-gradient(145deg, rgba(15, 35, 43, 0.62), rgba(15, 23, 42, 0.42)),
      rgba(15, 23, 42, 0.44);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.10),
      inset 0 -1px 0 rgba(0, 0, 0, 0.20),
      0 16px 36px rgba(0, 0, 0, 0.22);
  }

  :root:not([data-theme="light"]) .blog-filter-row button,
  :root:not([data-theme="light"]) .work-filter-bar button {
    color: #cbd5e1;
  }

  :root:not([data-theme="light"]) .blog-filter-row button.is-active,
  :root:not([data-theme="light"]) .work-filter-bar button.is-active {
    color: #ffffff;
    border-color: rgba(103, 232, 249, 0.68);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.30),
      inset 0 -1px 0 rgba(0, 0, 0, 0.26),
      0 0 0 1px rgba(103, 232, 249, 0.22),
      0 16px 32px rgba(8, 145, 178, 0.24),
      0 0 30px rgba(45, 212, 191, 0.24);
  }

  :root:not([data-theme="light"]) .work-detail summary,
  :root:not([data-theme="light"]) .work-detail dt,
  :root:not([data-theme="light"]) .work-detail-modal-body dt {
    color: #ecfeff;
  }

  :root:not([data-theme="light"]) .music-current-cover,
  :root:not([data-theme="light"]) .music-track-cover,
  :root:not([data-theme="light"]) .music-floating-cover {
    background:
      radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.14), transparent 36%),
      linear-gradient(145deg, rgba(30, 41, 59, 0.70), rgba(2, 6, 23, 0.52)),
      rgba(8, 13, 24, 0.72);
    border-color: rgba(203, 213, 225, 0.22);
  }

  :root:not([data-theme="light"]) .btn-ghost:hover,
  :root:not([data-theme="light"]) .chat-icon-btn:hover,
  :root:not([data-theme="light"]) .chat-tools-toggle:hover,
  :root:not([data-theme="light"]) .chat-tools-toggle[aria-expanded="true"],
  :root:not([data-theme="light"]) .prompt-list button:hover {
    border-color: var(--control-border-hover);
    background:
      radial-gradient(circle at 24% 12%, rgba(103, 232, 249, 0.14), transparent 34%),
      linear-gradient(145deg, rgba(18, 49, 58, 0.68), rgba(22, 35, 48, 0.52)),
      var(--control-bg-hover);
  }

  :root:not([data-theme="light"]) .chat-options {
    border-color: var(--control-border);
    background:
      radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.08), transparent 30%),
      linear-gradient(145deg, rgba(15, 35, 43, 0.74), rgba(15, 23, 42, 0.66)),
      rgba(15, 23, 42, 0.82);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 18px 44px rgba(0, 0, 0, 0.34);
  }

  :root:not([data-theme="light"]) .btn-primary {
    border-color: rgba(103, 232, 249, 0.42);
    background:
      radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.26), transparent 26%),
      linear-gradient(135deg, #0f766e 0%, #0891b2 56%, #2563eb 100%);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.26),
      inset 0 -1px 0 rgba(0, 0, 0, 0.30),
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 14px 34px rgba(8, 145, 178, 0.24),
      0 6px 20px rgba(20, 184, 166, 0.16);
  }

  :root:not([data-theme="light"]) .btn-primary:hover {
    border-color: rgba(103, 232, 249, 0.58);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.32),
      inset 0 -1px 0 rgba(0, 0, 0, 0.26),
      0 18px 42px rgba(8, 145, 178, 0.28),
      0 8px 22px rgba(20, 184, 166, 0.18);
  }

  :root:not([data-theme="light"]) .btn::before,
  :root:not([data-theme="light"]) .theme-toggle::before,
  :root:not([data-theme="light"]) .menu-btn::before,
  :root:not([data-theme="light"]) .nav-links a::before,
  :root:not([data-theme="light"]) .chat-icon-btn::before,
  :root:not([data-theme="light"]) .chat-tools-toggle::before,
  :root:not([data-theme="light"]) .prompt-list button::before {
    background:
      radial-gradient(
        circle 38px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
        rgba(45, 212, 191, 0.32),
        rgba(103, 232, 249, 0.14) 44%,
        transparent 78%
      ),
      radial-gradient(
        circle 120px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
        rgba(45, 212, 191, 0.16),
        transparent 70%
      );
  }

  :root:not([data-theme="light"]) .btn:active::before,
  :root:not([data-theme="light"]) .theme-toggle:active::before,
  :root:not([data-theme="light"]) .menu-btn:active::before,
  :root:not([data-theme="light"]) .nav-links a:active::before,
  :root:not([data-theme="light"]) .chat-icon-btn:active::before,
  :root:not([data-theme="light"]) .chat-tools-toggle:active::before,
  :root:not([data-theme="light"]) .prompt-list button:active::before {
    background:
      radial-gradient(
        circle 44px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
        rgba(45, 212, 191, 0.42),
        rgba(103, 232, 249, 0.18) 44%,
        transparent 80%
      ),
      radial-gradient(
        circle 132px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
        rgba(45, 212, 191, 0.20),
        transparent 72%
      );
  }

  :root:not([data-theme="light"]) .chat-toolbar,
  :root:not([data-theme="light"]) .chat-form {
    border-color: rgba(148, 163, 184, 0.18);
  }

  :root:not([data-theme="light"]) .chat-message.user .chat-bubble {
    color: #ffffff;
    background: linear-gradient(135deg, #0f766e, #0891b2);
  }

  :root:not([data-theme="light"]) .reasoning-box {
    color: #94a3b8;
    border-color: rgba(148, 163, 184, 0.24);
    background: rgba(148, 163, 184, 0.10);
  }

  :root:not([data-theme="light"]) .chat-message.source-message .chat-bubble {
    color: #94a3b8;
    background:
      radial-gradient(circle at 24% 12%, rgba(255, 255, 255, 0.06), transparent 30%),
      linear-gradient(145deg, rgba(15, 35, 43, 0.42), rgba(15, 23, 42, 0.34)),
      rgba(15, 23, 42, 0.52);
  }

  :root:not([data-theme="light"]) .glass-panel:hover,
  :root:not([data-theme="light"]) .glass-banner:hover {
    --panel-glow-alpha: 0.26;
    --panel-glow-blue-alpha: 0.13;
    border-color: rgba(103, 232, 249, 0.24);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.09),
      inset 0 -1px 1px rgba(255, 255, 255, 0.04),
      inset 0 0 0 1px rgba(103, 232, 249, 0.035),
      var(--shadow-soft),
      0 10px 30px rgba(45, 212, 191, 0.10);
  }

  :root:not([data-theme="light"]) .glass-panel.is-local-glowing,
  :root:not([data-theme="light"]) .glass-banner.is-local-glowing {
    --panel-glow-alpha: 0.26;
    --panel-glow-blue-alpha: 0.13;
  }

  :root:not([data-theme="light"]) .text-link,
  :root:not([data-theme="light"]) .work-meta {
    color: #67e8f9;
  }

  :root:not([data-theme="light"]) .glass-card:hover {
    border-color: rgba(103, 232, 249, 0.24);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.10),
      inset 0 0 0 1px rgba(103, 232, 249, 0.035),
      0 34px 95px rgba(0, 0, 0, 0.32),
      0 12px 36px rgba(20, 184, 166, 0.10);
  }

  :root:not([data-theme="light"]) .bili-fallback-card {
    background:
      linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.82) 0%,
        rgba(15, 35, 43, 0.62) 48%,
        rgba(8, 18, 28, 0.52) 100%
      ),
      rgba(15, 23, 42, 0.46);
  }

  :root:not([data-theme="light"]) .bili-fallback-thumb {
    background:
      radial-gradient(circle at 42% 26%, rgba(103, 232, 249, 0.18), transparent 32%),
      linear-gradient(145deg, rgba(37, 99, 235, 0.42), rgba(20, 184, 166, 0.24)),
      rgba(15, 23, 42, 0.34);
    box-shadow:
      inset -1px 0 0 rgba(148, 163, 184, 0.22),
      inset 0 0 52px rgba(0, 0, 0, 0.16);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

html.pjax-loading main {
  opacity: 0.72;
  pointer-events: none;
  transition: opacity 0.16s ease;
}

html[data-account-entry="hidden"] [data-account-open],
html[data-account-enabled="disabled"] [data-account-open] {
  display: none !important;
}

html[data-interactions="hidden"] .is-interaction-stat,
html[data-interactions="hidden"] .detail-like,
html[data-interactions="hidden"] .detail-comment-form-wrap,
html[data-interactions="hidden"] .detail-comments,
html[data-interactions="hidden"] [data-account-page-tab="liked"],
html[data-interactions="hidden"] [data-account-page-panel="liked"] {
  display: none !important;
}

/* =============================
   Tablet
============================= */

@media (max-width: 920px) {
  .managed-hero,
  .managed-card-grid {
    grid-template-columns: 1fr;
  }

  .managed-hero {
    min-height: 0;
  }

  .managed-hero-copy h1 {
    font-size: 64px;
  }

  .glass-nav {
    border-radius: 28px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand {
    order: 1;
  }

  .nav-controls {
    order: 2;
    margin-left: auto;
  }

  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 60;
    display: flex;
    width: auto;
    max-height: 0;
    padding: 0 12px;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.985);
    transform-origin: top center;
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    background:
      radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.80), transparent 34%),
      radial-gradient(circle at 84% 100%, rgba(20, 184, 166, 0.18), transparent 38%),
      linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.90) 0%,
        rgba(244, 251, 249, 0.78) 48%,
        rgba(226, 244, 241, 0.66) 100%
      ),
      rgba(255, 255, 255, 0.62);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.92),
      inset 0 -1px 1px rgba(31, 74, 88, 0.08),
      inset 0 0 0 1px rgba(255, 255, 255, 0.38),
      0 24px 60px rgba(23, 62, 70, 0.24);
    backdrop-filter: blur(42px) saturate(210%) contrast(116%);
    -webkit-backdrop-filter: blur(42px) saturate(210%) contrast(116%);
    transition:
      max-height 0.28s ease,
      padding 0.28s ease,
      opacity 0.22s ease,
      transform 0.28s ease;
  }

  .nav-links.show {
    max-height: 420px;
    padding: 12px;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }

  :root[data-theme="dark"] .nav-links {
    background:
      radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
      radial-gradient(circle at 84% 100%, rgba(45, 212, 191, 0.14), transparent 38%),
      linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 35, 43, 0.82) 48%,
        rgba(8, 18, 28, 0.76) 100%
      ),
      rgba(15, 23, 42, 0.70);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.14),
      inset 0 -1px 1px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 24px 64px rgba(0, 0, 0, 0.44),
      0 10px 34px rgba(45, 212, 191, 0.10);
  }

  :root:not([data-theme="light"]) .nav-links {
    background:
      radial-gradient(circle at 22% 0%, rgba(255, 255, 255, 0.12), transparent 34%),
      radial-gradient(circle at 84% 100%, rgba(45, 212, 191, 0.14), transparent 38%),
      linear-gradient(
        135deg,
        rgba(15, 23, 42, 0.92) 0%,
        rgba(15, 35, 43, 0.82) 48%,
        rgba(8, 18, 28, 0.76) 100%
      ),
      rgba(15, 23, 42, 0.70);
    border-color: rgba(148, 163, 184, 0.28);
    box-shadow:
      inset 0 1px 1px rgba(255, 255, 255, 0.14),
      inset 0 -1px 1px rgba(255, 255, 255, 0.05),
      inset 0 0 0 1px rgba(255, 255, 255, 0.06),
      0 24px 64px rgba(0, 0, 0, 0.44),
      0 10px 34px rgba(45, 212, 191, 0.10);
  }

  .nav-links a {
    background: rgba(255, 255, 255, 0.36);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.56),
      inset 0 -1px 0 rgba(31, 74, 88, 0.05);
    text-align: center;
  }

  :root[data-theme="dark"] .nav-links a,
  :root:not([data-theme="light"]) .nav-links a {
    background: rgba(255, 255, 255, 0.07);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
    grid-template-columns: 1fr;
  }

  .blog-hero {
    grid-template-columns: 1fr;
  }

  .chat-hero,
  .chat-layout,
  .bili-fallback-card,
  .music-hero {
    grid-template-columns: 1fr;
  }

  .chat-hero h1 {
    font-size: 56px;
  }

  .chat-side {
    position: static;
  }

  .blog-hero h1 {
    font-size: 56px;
  }

  .author-panel {
    min-height: auto;
  }

  .blog-avatar-box {
    min-height: 280px;
  }

  h1 {
    font-size: 64px;
  }

  .section-heading h2,
  .glass-banner h2,
  .page-hero h1 {
    font-size: 42px;
  }

  .wechat-qr-page h1 {
    font-size: 52px;
  }

  .hero-card {
    min-height: 360px;
  }

  .studio-logo-box {
    width: min(100%, 320px);
    height: 286px;
    padding: 22px;
  }

  .mini-card {
    width: min(100%, 420px);
  }

  .feature-grid,
  .hero-entry-grid,
  .work-grid,
  .link-grid,
  .link-profile,
  .link-contact-card,
  .game-grid,
  .bili-grid,
  .blog-feature-grid,
  .game-panel,
  .video-panel,
  .about-layout,
  .spotlight-grid,
  .join-layout,
  .role-grid,
  .join-project-grid,
  .join-preview {
    grid-template-columns: 1fr;
  }

  .glass-banner,
  .join-preview,
  .video-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .join-preview h2 {
    font-size: 38px;
  }

  .game-panel h2 {
    font-size: 38px;
  }

  .video-panel h2 {
    font-size: 38px;
  }

  .music-hero h1 {
    font-size: 56px;
  }

  .redesigned-blog-list .blog-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .blog-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .about-card.wide {
    grid-column: auto;
  }
}

/* =============================
   Mobile
============================= */

@media (max-width: 640px) {
  .container,
  .glass-nav {
    width: calc(100% - 24px);
    width: min(calc(100% - 24px), var(--container));
  }

  .glass-nav {
    top: 12px;
    margin-top: 12px;
    border-radius: 26px;
    padding: 10px;
  }

  .brand-logo-box {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
    border-radius: 14px;
    padding: 6px;
  }

  .brand-text strong {
    font-size: 13px;
  }

  .brand-text small {
    font-size: 10px;
  }

  .theme-toggle,
  .menu-btn {
    width: 44px;
    height: 44px;
  }

  .hero {
    padding-top: 34px;
  }

  .managed-page {
    width: calc(100% - 24px);
    padding-top: 18px;
  }

  .managed-section {
    padding: 30px 0;
  }

  .managed-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 20px;
  }

  .managed-hero-copy h1 {
    font-size: 44px;
    line-height: 1.05;
  }

  .managed-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .managed-card-grid,
  .managed-cta {
    grid-template-columns: 1fr;
  }

  .managed-text .glass-panel,
  .managed-quote {
    padding: 24px 20px;
  }

  .managed-text h2,
  .managed-cta h2,
  .managed-quote blockquote {
    font-size: 28px;
  }

  h1 {
    font-size: 46px;
    line-height: 1.05;
  }

  .blog-hero {
    padding: 28px 20px;
  }

  .blog-hero h1 {
    font-size: 42px;
  }

  .chat-main {
    padding-top: 34px;
  }

  .chat-hero {
    padding: 28px 20px;
  }

  .chat-hero h1 {
    font-size: 42px;
  }

  .chat-hero p {
    font-size: 16px;
  }

  .music-hero {
    padding: 28px 20px;
  }

  .music-hero h1 {
    font-size: 42px;
  }

  .music-hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .music-current-card {
    grid-template-columns: 1fr;
  }

  .music-track-play {
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .music-track-cover {
    width: 54px;
    height: 54px;
  }

  .music-track-date,
  .music-track-state,
  .music-track-drag {
    grid-column: 2;
    justify-self: start;
  }

  .music-track-drag {
    grid-column: 3;
    grid-row: 1 / span 3;
    align-self: center;
  }

  .music-floating-player {
    right: 12px;
    bottom: 12px;
    width: calc(100vw - 24px);
  }

  .music-floating-panel {
    grid-template-columns: 1fr auto;
  }

  .music-floating-main {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .music-floating-close {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
  }

  .music-floating-controls {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
  }

  .chat-shell {
    height: min(680px, calc(100svh - 120px));
    min-height: 520px;
  }

  .chat-log {
    padding: 16px;
  }

  .chat-message {
    max-width: 100%;
  }

  .chat-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }

  .chat-options {
    left: 14px;
    right: 14px;
    bottom: calc(100% + 10px);
  }

  .chat-tools-toggle {
    width: 46px;
    height: 46px;
  }

  .chat-send {
    width: auto;
    min-width: 76px;
  }

  .blog-hero p {
    font-size: 16px;
  }

  .blog-hero-actions {
    flex-direction: column;
  }

  .blog-filter-row,
  .work-filter-bar {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    border-radius: 22px;
    scrollbar-width: none;
  }

  .blog-filter-row::-webkit-scrollbar,
  .work-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .blog-filter-row button,
  .work-filter-bar button {
    flex: 0 0 auto;
  }

  .blog-avatar-box {
    min-height: 260px;
  }

  .author-stats {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .glass-banner h2,
  .page-hero h1 {
    font-size: 34px;
  }

  .hero-subtitle,
  .page-hero p,
  .glass-banner p,
  .game-panel p,
  .join-preview p,
  .wechat-desc {
    font-size: 16px;
  }

  .join-preview h2 {
    font-size: 32px;
  }

  .game-panel h2 {
    font-size: 32px;
  }

  .video-panel h2 {
    font-size: 32px;
  }

  .blog-section-heading h2 {
    font-size: 30px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .page-main {
    padding-top: 42px;
  }

  .link-card {
    align-items: flex-start;
  }

  .link-profile h2 {
    font-size: 32px;
  }

  .link-profile-actions {
    flex-direction: column;
  }

  .link-contact-card {
    align-items: flex-start;
  }

  .link-qr-box {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .hero-entry-grid a {
    min-height: 92px;
  }

  .work-detail-modal {
    padding: 12px;
  }

  .work-detail-panel {
    max-height: calc(100svh - 24px);
    padding: 28px 18px 22px;
  }

  .work-detail-panel h2 {
    padding-right: 48px;
    font-size: 30px;
  }

  .studio-logo-box {
    width: min(100%, 300px);
    height: 268px;
    padding: 18px;
    border-radius: 24px;
  }

  .wechat-qr-page {
    margin-top: 4px;
    padding: 30px 16px 28px;
    border-radius: 30px;
    min-height: calc(100vh - 190px);
    justify-content: flex-start;
  }

  .wechat-qr-page h1 {
    font-size: 38px;
    line-height: 1.05;
    letter-spacing: 0;
  }

  .wechat-desc {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.7;
  }

  .wechat-qr-box {
    margin-top: 24px;
    width: min(78vw, 280px);
    padding: 10px;
    border-radius: 26px;
  }

  .wechat-actions {
    width: 100%;
    margin-top: 24px;
    gap: 12px;
  }

  .wechat-actions .btn {
    min-height: 44px;
    font-size: 14px;
  }

  .blog-meta,
  .footer {
    flex-direction: column;
  }

  .footer {
    padding-bottom: 32px;
  }
}

/* =============================
   Extra Small Mobile
============================= */

@media (max-width: 390px) {
  .brand-text {
    display: none;
  }

  .brand-logo-box {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    padding: 6px;
  }

  .wechat-qr-box {
    width: min(76vw, 250px);
    padding: 9px;
  }

  .wechat-qr-page h1 {
    font-size: 34px;
  }

  .wechat-desc {
    font-size: 14px;
  }
}

/* =============================================================
   v2 Account / Captcha / Detail / Footer / Icons
   Added 2026-05-10
   ============================================================= */

[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 0;
}
[data-icon] svg {
  width: 1em;
  height: 1em;
  display: block;
}

/* Local glow unification */
.glow-target {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.glow-target::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.32s ease;
  background: radial-gradient(120px 120px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
    rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 60%);
  z-index: 1;
}
.glow-target.is-local-glowing::after {
  opacity: 1;
}
.glow-target > * {
  position: relative;
  z-index: 2;
}

/* Nav account button v2 */
.nav-account-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--text-main);
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--control-shadow);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.nav-account-btn:hover {
  border-color: var(--control-border-hover);
  background: var(--control-bg-hover);
  transform: translateY(-1px);
}
.nav-account-btn .nav-account-avatar {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #38bdf8, #6366f1);
  background-size: cover;
  background-position: center;
  flex: 0 0 28px;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.7) inset;
}
.nav-account-btn .nav-account-label {
  font-size: 14px;
}
.nav-account-btn.is-logged-in .nav-account-avatar.has-avatar {
  background-image: linear-gradient(135deg, transparent, transparent), var(--account-avatar);
}
@media (max-width: 880px) {
  .nav-account-btn {
    padding: 4px;
    gap: 0;
    border-radius: 999px;
  }
  .nav-account-btn .nav-account-label {
    display: none;
  }
}

/* ===== 全局 [data-icon] svg 兜底 — 防止 SVG 渲染成默认 300px ===== */
[data-icon] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
  line-height: 0;
  vertical-align: -0.15em;
  flex: 0 0 auto;
}
[data-icon] svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* 作为按钮内部的图标，跟着按钮字号走，但有最大尺寸 */
button [data-icon],
.btn [data-icon],
.nav-account-btn [data-icon],
.account-tabs-bar [data-icon],
.account-tabs button [data-icon],
.theme-toggle [data-icon],
.detail-action [data-icon],
.detail-stat [data-icon],
.card-detail-btn [data-icon] {
  font-size: 16px;
}
.theme-toggle [data-icon] { font-size: 18px; }
.account-hero-actions [data-icon],
.btn-primary [data-icon],
.btn-ghost [data-icon] { font-size: 16px; }
/* tab 行图标固定尺寸 */
.account-tabs-bar [data-icon] { font-size: 16px; }
.account-tabs [data-icon] { font-size: 16px; }
/* footer icp 图标 */
.footer-icp [data-icon] { font-size: 16px; }

/* Footer ICP */
.footer.container[data-site-footer] {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  text-align: center;
  padding-top: 48px;
  padding-bottom: 36px;
  color: var(--text-muted);
}
.footer-main { display: flex; flex-direction: column; gap: 4px; }
.footer-icp {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px dashed var(--control-border);
  color: var(--text-muted);
  background: var(--control-bg);
  letter-spacing: 0.04em;
}
.footer-icp em { font-style: normal; color: var(--text-main); margin-left: 4px; opacity: 0.85; }
.footer-icp-link {
  color: var(--text-main);
  text-decoration: none;
  opacity: 0.88;
  transition: color 0.18s ease, opacity 0.18s ease;
}
.footer-icp-link:hover,
.footer-icp-link:focus-visible {
  color: var(--primary);
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Account Modal v2 */
.account-modal-open { overflow: hidden; }
.account-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 120;
}
.account-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 23, 0.45);
  backdrop-filter: blur(14px) saturate(120%);
  border: 0;
  cursor: pointer;
}
.account-panel {
  position: relative;
  width: min(440px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}
.account-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.account-header h2 { margin: 4px 0 6px; font-size: 24px; }
.account-subtitle { color: var(--text-muted); font-size: 14px; }
.account-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: rgba(15, 118, 110, 0.06);
  border-radius: 999px;
}
.account-tabs button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}
.account-tabs button.is-active {
  background: linear-gradient(135deg, rgba(15,118,110,0.95), rgba(37,99,235,0.95));
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
}
.account-message {
  border-radius: 12px;
  font-size: 13px;
  min-height: 0;
}
.account-message:empty { display: none; }
.account-message.is-error {
  padding: 10px 14px;
  background: rgba(225, 29, 72, 0.08);
  color: #b91c1c;
  border: 1px solid rgba(225, 29, 72, 0.18);
}
.account-message.is-success {
  padding: 10px 14px;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.20);
}
.account-form { display: flex; flex-direction: column; gap: 12px; }
.account-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}
.account-form label > span:first-child {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-main);
  font-weight: 600;
  font-size: 13px;
}
.account-form input,
.account-form textarea,
.account-form select {
  padding: 11px 13px;
  border-radius: 12px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--text-main);
  font: inherit;
  resize: vertical;
}
.account-form input:focus,
.account-form textarea:focus,
.account-form select:focus {
  outline: 2px solid rgba(37,99,235,0.45);
  outline-offset: 2px;
}
.account-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.account-help {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
}
.account-foot {
  text-align: center;
  border-top: 1px solid var(--glass-edge);
  padding-top: 12px;
  font-size: 13px;
}
.account-foot a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--accent);
  font-weight: 600;
}

/* Password meter */
.password-meter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin-top: -4px;
}
.password-meter > span:not([data-password-level]) {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
}
.password-meter > span.is-on { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.password-meter > span.is-on.level-2 { background: linear-gradient(90deg, #f59e0b, #2563eb); }
.password-meter > span.is-on.level-3 { background: linear-gradient(90deg, #2563eb, #10b981); }
.password-meter small {
  width: 100%;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Password input with show/hide toggle */
.password-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.password-input-wrap > input {
  width: 100%;
  padding-right: 44px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, color 0.18s ease;
}
.password-toggle:hover { background: rgba(15,118,110,0.10); color: var(--text-main); }
.password-toggle.is-showing { color: #047857; }
.password-toggle [data-icon] { font-size: 18px; }
:root[data-theme="dark"] .password-toggle:hover {
  background: rgba(56, 189, 248, 0.16);
  color: #e0f2fe;
}

/* Captcha widget */
.urspire-captcha {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
}
.captcha-board {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 140px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.4), 0 12px 24px rgba(15, 23, 42, 0.18);
}
.captcha-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
}
.captcha-hole {
  position: absolute;
  width: 38px;
  height: 38px;
  background: rgba(0,0,0,0.45);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
  pointer-events: none;
}
.captcha-piece {
  position: absolute;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 6px 16px rgba(15,23,42,0.30);
  background-repeat: no-repeat;
  pointer-events: none;
  transition: box-shadow 0.18s ease;
}
.urspire-captcha.is-success .captcha-piece {
  box-shadow: 0 0 0 2px rgba(16,185,129,0.7), 0 8px 20px rgba(16,185,129,0.4);
}
.urspire-captcha.is-error .captcha-piece {
  box-shadow: 0 0 0 2px rgba(225,29,72,0.7), 0 8px 20px rgba(225,29,72,0.4);
}
.captcha-refresh {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.25);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.captcha-track {
  position: relative;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  border: 1px solid var(--control-border);
  overflow: hidden;
}
.captcha-track-fill {
  position: absolute;
  inset: 0;
  width: 0%;
  background: linear-gradient(90deg, rgba(15,118,110,0.55), rgba(37,99,235,0.55));
  pointer-events: none;
  transition: width 0.05s linear;
}
.captcha-handle {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 36px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #f1f5f9);
  box-shadow: 0 6px 16px rgba(15,23,42,0.25);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  z-index: 2;
  touch-action: none;
}
.captcha-handle:active { cursor: grabbing; }
.captcha-tip {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--text-muted);
  pointer-events: none;
}
.urspire-captcha.is-dragging .captcha-tip { opacity: 0; }
.urspire-captcha.is-success .captcha-tip { color: #047857; }
.captcha-message { font-size: 12px; margin: 0; }
.captcha-message.is-error { color: #b91c1c; }
.captcha-message.is-success { color: #047857; }

/* Account Hub — 主面板等与全站大卡（如详情弹窗 24px）圆角对齐 */
.account-hub .glass-panel {
  border-radius: var(--radius-xl);
}
.account-hub .account-tabs-bar {
  border-radius: var(--radius-xl);
}
.account-hub .account-security-card {
  border-radius: var(--radius-xl);
}

.account-hero {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px;
  align-items: center;
}
.account-hero-avatar {
  box-sizing: border-box;
  width: 88px;
  height: 88px;
  min-width: 88px;
  min-height: 88px;
  max-width: min(88px, 28vw);
  max-height: min(88px, 28vw);
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 24px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.22);
}
.account-hero-avatar [data-icon],
.account-hero-avatar svg {
  display: none !important;
}
.account-hero-text {
  min-width: 0;
}
.account-hero-text h1 { margin: 0; font-size: 26px; }
.account-hero-text p { margin: 4px 0 0; color: var(--text-muted); font-size: 14px; }
.account-hero-bio { color: var(--text-main) !important; }
.account-hero-actions { align-self: stretch; display: flex; flex-direction: column; gap: 8px; }
.account-hub-v2 {
  display: grid;
  gap: 18px;
}
.account-hero-v2 {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  overflow: hidden;
  border: 1px solid rgba(15, 118, 110, 0.18);
  box-shadow: 0 26px 80px rgba(15, 118, 110, 0.16);
}
.account-hero-v2::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(45, 212, 191, 0.18), transparent 34%),
    linear-gradient(300deg, rgba(37, 99, 235, 0.14), transparent 42%);
  opacity: 0.9;
}
.account-hero-v2 > * {
  position: relative;
  z-index: 1;
}
.account-hero-main {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}
.account-hero-v2 .account-hero-avatar {
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border-radius: 28px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.36),
    0 18px 44px rgba(37, 99, 235, 0.22);
}
.account-hero-v2 .account-hero-text h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}
.account-hero-v2 .account-hero-text p {
  max-width: 680px;
}
.account-hero-side {
  display: grid;
  align-content: center;
  gap: 16px;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255,255,255,0.34);
  border: 1px solid rgba(255,255,255,0.42);
  backdrop-filter: blur(20px);
}
.account-status-stack {
  display: grid;
  gap: 8px;
}
.account-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  background: rgba(255,255,255,0.48);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.account-status-pill.is-good {
  color: #047857;
  border-color: rgba(16,185,129,0.28);
  background: rgba(16,185,129,0.12);
}
.account-status-pill.is-warn {
  color: #b45309;
  border-color: rgba(245,158,11,0.28);
  background: rgba(245,158,11,0.14);
}
.account-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.account-overview-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  min-height: 112px;
  display: grid;
  align-content: space-between;
  border-radius: 24px;
}
.account-overview-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent 46%);
  pointer-events: none;
}
.account-overview-card > * {
  position: relative;
}
.account-overview-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  background: rgba(15, 118, 110, 0.12);
  color: var(--accent);
}
.account-overview-card small {
  color: var(--text-muted);
  font-weight: 700;
}
.account-overview-card strong {
  font-size: 20px;
  letter-spacing: 0;
}
.account-form-cluster {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  align-items: start;
}
.account-profile-card,
.account-email-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--glass-edge);
  background: rgba(255,255,255,0.24);
}
.account-form-title {
  display: grid;
  gap: 4px;
  margin-bottom: 4px;
}
.account-form-title strong {
  font-size: 18px;
}
.account-form-title small,
.account-help {
  color: var(--text-muted);
  line-height: 1.6;
}
.account-pending-email {
  margin: 0 0 16px;
  padding: 14px 16px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border-radius: 22px;
  border-color: rgba(245,158,11,0.30);
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(37,99,235,0.08));
}
.account-pending-email > span:first-child {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #b45309;
  background: rgba(245,158,11,0.16);
}
.account-pending-email strong,
.account-pending-email small {
  display: block;
}
.account-pending-email small {
  color: var(--text-muted);
  line-height: 1.6;
}
:root[data-theme="dark"] .account-hero-v2 {
  border-color: rgba(45, 212, 191, 0.20);
  box-shadow: 0 26px 90px rgba(0, 0, 0, 0.32);
}
:root[data-theme="dark"] .account-hero-v2::before {
  background:
    linear-gradient(118deg, rgba(45, 212, 191, 0.12), transparent 34%),
    linear-gradient(300deg, rgba(96, 165, 250, 0.10), transparent 42%);
}
:root[data-theme="dark"] .account-hero-side,
:root[data-theme="dark"] .account-profile-card,
:root[data-theme="dark"] .account-email-card {
  background: rgba(7, 18, 23, 0.44);
  border-color: rgba(148, 163, 184, 0.18);
}
:root[data-theme="dark"] .account-status-pill {
  background: rgba(15, 23, 42, 0.52);
  border-color: rgba(148, 163, 184, 0.18);
}
:root[data-theme="dark"] .account-status-pill.is-good {
  color: #6ee7b7;
  border-color: rgba(16,185,129,0.34);
}
:root[data-theme="dark"] .account-status-pill.is-warn {
  color: #fcd34d;
  border-color: rgba(245,158,11,0.34);
}
:root[data-theme="dark"] .account-overview-card::before {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.10), transparent 46%);
}
:root[data-theme="dark"] .account-pending-email {
  background: linear-gradient(135deg, rgba(245,158,11,0.12), rgba(37,99,235,0.08));
}

@media (max-width: 820px) {
  .account-hero-v2 {
    grid-template-columns: 1fr;
  }
  .account-overview-grid,
  .account-form-cluster {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .account-hero-main {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .account-hero-v2 .account-hero-avatar {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    border-radius: 22px;
  }
  .account-hero-side {
    padding: 12px;
  }
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}
.badge-success { background: rgba(16,185,129,0.15); color: #047857; }
.badge-warn { background: rgba(245,158,11,0.18); color: #b45309; }
.badge-danger { background: rgba(225,29,72,0.16); color: #b91c1c; }

.account-tabs-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  background: var(--control-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.account-tabs-bar button {
  flex: 1 1 120px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.account-tabs-bar button.is-active {
  background: linear-gradient(135deg, rgba(15,118,110,0.95), rgba(37,99,235,0.95));
  color: #fff;
  box-shadow: 0 12px 32px rgba(15, 118, 110, 0.30);
}
.account-tabs-bar button.danger.is-active {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  box-shadow: 0 12px 32px rgba(225,29,72, 0.32);
}

.account-tab-panel { padding: 26px; }
.account-tab-head h2 { margin: 4px 0 6px; }
.account-tab-head .account-tab-desc { color: var(--text-muted); font-size: 14px; }
.account-tab-panel .account-page-flash {
  border-radius: 12px;
  padding: 8px 12px;
  margin: 0 0 12px;
  font-size: 13px;
}
.account-page-flash.is-error { background: rgba(225,29,72,0.08); color: #b91c1c; border: 1px solid rgba(225,29,72,0.18); }
.account-page-flash.is-success { background: rgba(16,185,129,0.10); color: #047857; border: 1px solid rgba(16,185,129,0.22); }
.account-page-flash.is-warn {
  background: rgba(245, 158, 11, 0.10);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.30);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.account-page-flash.is-warn a { color: #b45309; text-decoration: underline; font-weight: 700; }
:root[data-theme="dark"] .account-page-flash.is-warn {
  background: rgba(245, 158, 11, 0.12);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.40);
}
:root[data-theme="dark"] .account-page-flash.is-warn a { color: #fcd34d; }
.account-security-card.is-pending {
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(225,29,72,0.10));
  border: 1px solid rgba(245,158,11,0.30);
}
.account-security-card.is-verified {
  background: linear-gradient(135deg, rgba(16,185,129,0.10), rgba(15,118,110,0.10));
  border: 1px solid rgba(16,185,129,0.30);
}
.account-verify-hint { display: block; margin-top: 6px; color: #b45309; }
:root[data-theme="dark"] .account-verify-hint { color: #fcd34d; }

.account-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) {
  .account-form-grid { grid-template-columns: 1fr; }
  .account-hero { grid-template-columns: 72px minmax(0, 1fr); }
  .account-hero-actions { grid-column: 1 / -1; }
  .account-hero-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    min-height: 72px;
    max-width: min(72px, 26vw);
    max-height: min(72px, 26vw);
  }
  .account-hero-v2 {
    grid-template-columns: 1fr;
  }
  .account-hero-v2 .account-hero-main {
    grid-template-columns: 78px minmax(0, 1fr);
  }
  .account-hero-v2 .account-hero-actions {
    grid-column: auto;
  }
  .account-hero-v2 .account-hero-avatar {
    width: 78px;
    height: 78px;
    min-width: 78px;
    min-height: 78px;
    max-width: 78px;
    max-height: 78px;
  }
}

.account-avatar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--glass-edge);
}
.account-avatar-preview {
  box-sizing: border-box;
  width: 72px;
  height: 72px;
  min-width: 72px;
  min-height: 72px;
  max-width: min(72px, 24vw);
  max-height: min(72px, 24vw);
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.account-avatar-upload { display: flex; flex-direction: column; gap: 6px; cursor: pointer; }

.account-security-card {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(37,99,235,0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-security-card strong { display: block; font-size: 15px; }
.account-security-card small { color: var(--text-muted); }

.danger-zone { border: 1px solid rgba(225,29,72,0.25); }
.danger-zone .btn.danger,
.danger-zone .btn-ghost.danger {
  border-color: rgba(225,29,72,0.45);
  color: #b91c1c;
}

.account-work-list {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.account-work-item {
  display: flex;
  flex-direction: column;
  border-radius: 18px;
  overflow: hidden;
}
.account-hub .account-work-item.glass-card {
  border-radius: var(--radius-xl);
}
.account-work-item .account-work-cover {
  width: 100%;
  height: 140px;
  object-fit: cover;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.78), transparent 34%),
    linear-gradient(135deg, rgba(15,118,110,0.24), rgba(37,99,235,0.18)),
    rgba(255,255,255,0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.account-work-item .account-work-cover.placeholder {
  padding: 18px;
}
.account-work-item .account-work-cover.placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.14));
}
.account-work-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; }
.account-work-body header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.account-work-body header h3 { margin: 0; font-size: 16px; }
.account-work-meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); }
.account-work-meta span { display: inline-flex; align-items: center; gap: 4px; }
.account-work-files { padding: 0; margin: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.account-work-files li { display: flex; align-items: center; gap: 6px; }
.account-work-files a { color: var(--accent); }
.account-work-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 6px; border-top: 1px solid var(--glass-edge); }
.account-work-actions .btn-ghost {
  padding: 6px 10px;
  font-size: 12px;
  border-radius: 999px;
}

.account-liked-list {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}
.account-liked-item {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 14px;
  border-radius: var(--radius-xl);
}
.account-liked-item > img,
.account-liked-placeholder {
  width: 116px;
  aspect-ratio: 1;
  border-radius: 18px;
  object-fit: cover;
  background: linear-gradient(135deg, #0f766e, #38bdf8);
}
.account-liked-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.9);
}
.account-liked-placeholder [data-icon] {
  font-size: 24px;
}
.account-liked-item h3 {
  margin: 8px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}
.account-liked-item p {
  margin: 0 0 12px;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.account-liked-item .btn-ghost {
  width: max-content;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
}

@media (max-width: 640px) {
  .account-liked-item {
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
  }
  .account-liked-item > img,
  .account-liked-placeholder {
    width: 84px;
    border-radius: 14px;
  }
}

/* Card stats outside */
.card-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--text-main);
}
.card-stats .card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.10);
  border: 1px solid rgba(15, 118, 110, 0.18);
  line-height: 1;
  font-weight: 600;
}
.card-stats .card-stat svg,
.community-card .community-stat svg,
.card-stats .card-cta svg,
.card-detail-btn svg,
.detail-stat svg,
.detail-action svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: middle;
}
.card-detail-btn svg { width: 18px; height: 18px; }
.detail-action-icon svg,
.detail-stat-icon svg { width: 18px; height: 18px; }
.card-stats .card-cta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--accent);
}
.community-card .community-stat {
  border: 1px solid rgba(15, 118, 110, 0.18);
  font-weight: 600;
  color: var(--text-main);
  padding: 5px 12px;
  font-size: 12.5px;
}
:root[data-theme="dark"] .card-stats .card-stat,
:root[data-theme="dark"] .community-card .community-stat {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.28);
  color: #e0f2fe;
}

/* Detail modal */
.detail-modal-open { overflow: hidden; }
.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.detail-modal[hidden] { display: none; }
.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 18, 23, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border: 0;
  cursor: pointer;
  z-index: 0;
}
.detail-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 32px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0;
  border-radius: 24px;
  z-index: 2;
  box-shadow: 0 30px 90px rgba(7, 18, 23, 0.45);
}
.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.92);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 8px 24px rgba(7, 18, 23, 0.18);
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.detail-close:hover { transform: scale(1.06); background: #fff; }
.detail-close:active { transform: scale(0.96); }
.detail-close svg { width: 18px; height: 18px; }
.detail-loading { padding: 60px 20px; text-align: center; color: var(--text-muted); }
.detail-empty { padding: 32px 20px; text-align: center; color: var(--text-muted); }

.detail-header {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 22px;
  border-bottom: 1px solid var(--glass-edge);
}
.detail-body {
  --music-key-1: #38bdf8;
  --music-key-2: #f59e0b;
  --music-key-3: #8b5cf6;
  --wave-gradient: linear-gradient(180deg, #38bdf8 0%, #f59e0b 52%, #8b5cf6 100%);
  --wave-line-gradient: linear-gradient(90deg, #38bdf8 0%, #f59e0b 48%, #8b5cf6 100%);
}
.detail-header.is-coverless { grid-template-columns: 1fr; }
.detail-cover { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 3; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-header.is-music-detail {
  grid-template-columns: minmax(220px, 290px) 1fr;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--music-key-1) 28%, transparent), transparent 34%),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--music-key-2) 24%, transparent), transparent 36%);
}
.detail-music-cover {
  position: relative;
  aspect-ratio: 1;
  border-radius: 32px;
  padding: 10px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.70), rgba(255,255,255,0.28)),
    rgba(255,255,255,0.18);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.26);
  isolation: isolate;
}
.detail-music-cover-glow {
  position: absolute;
  inset: -18%;
  z-index: 0;
  background-image: var(--cover-image);
  background-size: cover;
  background-position: center;
  filter: blur(30px) saturate(1.25);
  opacity: 0.48;
  transform: scale(1.08);
}
.detail-music-cover::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.18), transparent 42%),
    radial-gradient(circle at 20% 12%, rgba(255,255,255,0.20), transparent 32%);
  pointer-events: none;
  z-index: 2;
}
.detail-music-cover img {
  position: relative;
  z-index: 1;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22);
}
.detail-music-cover img[src*="urspire-logo-Withhold-Black.png"] {
  object-fit: contain;
  padding: 14%;
  background: rgba(248, 250, 252, 0.72);
}
.detail-info { display: flex; flex-direction: column; gap: 8px; }
.detail-info h2 { margin: 0; font-size: 22px; }
.detail-summary { color: var(--text-main); margin: 0; }
.detail-meta {
  display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; color: var(--text-muted);
}
.detail-meta span {
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
}
.detail-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.detail-chips span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15,118,110,0.10);
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}
.detail-stats { margin-top: 4px; }

.detail-content { padding: 18px 22px; }
.detail-dl { display: grid; gap: 12px; margin: 0; }
.detail-dl > div { background: rgba(37,99,235,0.05); padding: 12px 14px; border-radius: 12px; }
.detail-dl dt { font-weight: 600; margin-bottom: 4px; font-size: 13px; color: var(--primary); }
.detail-dl dd { margin: 0; }
.detail-article p { margin: 0 0 12px; line-height: 1.75; }
.detail-music-player-cta {
  padding: 4px 0 10px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.detail-music-open-player {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.detail-music-hint {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  max-width: 520px;
  line-height: 1.65;
}
.detail-music-sync {
  width: min(100%, 560px);
  padding: 16px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,0.48);
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--music-key-1) 26%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.62), rgba(255,255,255,0.24));
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.38), 0 18px 40px rgba(15, 23, 42, 0.14);
}
.detail-music-sync-head,
.detail-music-progress-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.detail-music-sync-head {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}
.detail-music-sync-head strong {
  color: var(--text-main);
  font-size: 12.5px;
  margin-left: auto;
}
.detail-music-toggle {
  height: 34px;
  min-width: 76px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.28);
  background: rgba(255,255,255,0.50);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transform: translateZ(0);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.detail-music-toggle:hover,
.detail-music-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px color-mix(in srgb, var(--music-key-1) 14%, transparent);
}
.detail-music-toggle svg {
  width: 15px;
  height: 15px;
}
.detail-music-wave {
  position: relative;
  width: 100%;
  height: 82px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--music-key-1) 20%, transparent), transparent 46%),
    rgba(15, 23, 42, 0.06);
  overflow: hidden;
  display: block;
}
.detail-music-wave-bars {
  position: absolute;
  inset: 12px 14px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}
.detail-music-wave-bars span {
  flex: 1 1 0;
  min-width: 3px;
  max-width: 10px;
  height: var(--live-h, var(--h));
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.88) 0%, transparent 18%),
    var(--wave-gradient);
  opacity: 0.22;
  transform: scaleY(0.9);
  transform-origin: center;
  transition: height 0.08s linear, opacity 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}
.detail-music-wave-bars span.is-past {
  opacity: 1;
  transform: scaleY(1);
  filter:
    drop-shadow(0 0 8px color-mix(in srgb, var(--music-key-1) 42%, transparent))
    drop-shadow(0 0 18px color-mix(in srgb, var(--music-key-2) 24%, transparent));
}
.detail-music-sync.is-playing .detail-music-wave-bars span {
  opacity: 0.38;
}
.detail-music-sync.is-playing .detail-music-wave-bars span.is-past {
  opacity: 1;
}
.detail-music-progress-row {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
.detail-music-progress {
  position: relative;
  flex: 1 1 auto;
  height: 8px;
  min-width: 120px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.12);
  overflow: hidden;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(148,163,184,0.18);
}
.detail-music-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--wave-line-gradient);
  box-shadow: 0 0 16px color-mix(in srgb, var(--music-key-2) 32%, transparent);
}
:root[data-theme="dark"] .detail-header.is-music-detail {
  background:
    radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--music-key-1) 24%, transparent), transparent 34%),
    radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--music-key-2) 18%, transparent), transparent 36%),
    rgba(15, 23, 42, 0.12);
}
:root[data-theme="dark"] .detail-music-cover {
  background:
    radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--music-key-1) 18%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(15,23,42,0.82), rgba(2,6,23,0.66)),
    rgba(8, 13, 24, 0.78);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
}
:root[data-theme="dark"] .detail-music-cover img[src*="urspire-logo-Withhold-Black.png"] {
  background:
    radial-gradient(circle at 30% 18%, rgba(255,255,255,0.08), transparent 36%),
    #10141d;
}
:root[data-theme="dark"] .detail-music-sync {
  border-color: rgba(148,163,184,0.24);
  background:
    radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--music-key-1) 20%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(51,65,85,0.56), rgba(15,23,42,0.34));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 44px rgba(0, 0, 0, 0.26);
}
:root[data-theme="dark"] .detail-music-wave {
  border-color: rgba(148,163,184,0.26);
  background: rgba(2, 6, 23, 0.34);
}
:root[data-theme="dark"] .detail-music-toggle {
  border-color: rgba(148,163,184,0.26);
  background: rgba(15,23,42,0.42);
}
:root[data-theme="dark"] .detail-music-progress {
  background: rgba(2, 6, 23, 0.46);
}
:root[data-theme="dark"] .music-current-wave {
  border-color: rgba(148,163,184,0.18);
  background:
    radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
    linear-gradient(145deg, rgba(15,23,42,0.58), rgba(2,6,23,0.30));
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .detail-header.is-music-detail {
    background:
      radial-gradient(circle at 18% 18%, color-mix(in srgb, var(--music-key-1) 24%, transparent), transparent 34%),
      radial-gradient(circle at 78% 28%, color-mix(in srgb, var(--music-key-2) 18%, transparent), transparent 36%),
      rgba(15, 23, 42, 0.12);
  }
  :root:not([data-theme="light"]) .detail-music-cover {
    background:
      radial-gradient(circle at 24% 18%, color-mix(in srgb, var(--music-key-1) 18%, transparent), transparent 42%),
      linear-gradient(145deg, rgba(15,23,42,0.82), rgba(2,6,23,0.66)),
      rgba(8, 13, 24, 0.78);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  }
  :root:not([data-theme="light"]) .detail-music-cover img[src*="urspire-logo-Withhold-Black.png"] {
    background:
      radial-gradient(circle at 30% 18%, rgba(255,255,255,0.08), transparent 36%),
      #10141d;
  }
  :root:not([data-theme="light"]) .detail-music-sync {
    border-color: rgba(148,163,184,0.24);
    background:
      radial-gradient(circle at 14% 10%, color-mix(in srgb, var(--music-key-1) 20%, transparent), transparent 34%),
      linear-gradient(145deg, rgba(51,65,85,0.56), rgba(15,23,42,0.34));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 18px 44px rgba(0, 0, 0, 0.26);
  }
  :root:not([data-theme="light"]) .detail-music-wave {
    border-color: rgba(148,163,184,0.26);
    background: rgba(2, 6, 23, 0.34);
  }
  :root:not([data-theme="light"]) .detail-music-toggle {
    border-color: rgba(148,163,184,0.26);
    background: rgba(15,23,42,0.42);
  }
  :root:not([data-theme="light"]) .detail-music-progress {
    background: rgba(2, 6, 23, 0.46);
  }
  :root:not([data-theme="light"]) .music-current-wave {
    border-color: rgba(148,163,184,0.18);
    background:
      radial-gradient(circle at 18% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 42%),
      linear-gradient(145deg, rgba(15,23,42,0.58), rgba(2,6,23,0.30));
  }
}
.detail-files { padding: 0; margin: 12px 0 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.detail-files li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: rgba(15,118,110,0.08); font-size: 13px; }
.detail-files a { color: var(--accent); display: inline-flex; align-items: center; gap: 4px; }

.detail-interactions {
  border-top: 1px solid var(--glass-edge);
  padding: 18px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.detail-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.detail-action,
.detail-stat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
}
.detail-stat {
  background: rgba(37,99,235,0.10);
  color: var(--text-main);
  border: 1px solid rgba(37,99,235,0.18);
}
.detail-stat .detail-stat-icon,
.detail-action .detail-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}
.detail-stat .detail-stat-icon svg,
.detail-action .detail-action-icon svg {
  width: 18px;
  height: 18px;
}
.detail-action {
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.detail-action:hover { transform: translateY(-1px); }
.detail-action:active { transform: translateY(0); }
.detail-like.is-liked {
  border-color: rgba(225,29,72,0.55);
  background: rgba(225,29,72,0.12);
  color: #b91c1c;
}
.detail-like.is-liked .detail-action-icon svg { fill: #e11d48; stroke: #e11d48; }
.detail-share { margin-left: auto; }
.detail-share.is-success { border-color: rgba(16,185,129,0.55); background: rgba(16,185,129,0.10); color: #047857; }

.detail-comment-form-wrap .detail-login-cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 14px;
}
.detail-comment-form {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  align-items: start;
}
.detail-comment-form textarea {
  border-radius: 14px;
  border: 1px solid var(--control-border);
  background: var(--control-bg);
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
}
.detail-comments {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.detail-comment {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--glass-edge);
}
.detail-comment:last-child { border-bottom: 0; }
.detail-comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  color: #fff;
  font-weight: 700;
}
.detail-comment-avatar.small { width: 32px; height: 32px; }
.detail-comment-avatar img { width: 100%; height: 100%; object-fit: cover; }
.detail-comment-body header { display: flex; align-items: baseline; gap: 8px; }
.detail-comment-body header strong { font-size: 14px; }
.detail-comment-body header time { font-size: 12px; color: var(--text-muted); }
.detail-comment-body p { margin: 4px 0 0; line-height: 1.65; }
.detail-comment-delete {
  border: 1px solid var(--control-border);
  background: transparent;
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer;
  color: var(--text-muted);
  display: inline-flex; align-items: center; justify-content: center;
}
.detail-comment-delete:hover { color: #b91c1c; border-color: rgba(225,29,72,0.4); }

@media (max-width: 640px) {
  .detail-header { grid-template-columns: 1fr; }
  .detail-header.is-music-detail { grid-template-columns: 1fr; }
  .detail-cover { aspect-ratio: 16 / 9; }
  .detail-music-cover {
    aspect-ratio: 1;
    width: min(100%, 320px);
    margin: 0 auto;
  }
  .detail-music-wave {
    height: 62px;
    padding: 0 14px;
  }
  .music-current-wave {
    height: 64px;
  }
  .detail-music-wave-bars {
    inset: 9px 14px;
    gap: 3px;
  }
  .music-wave-bars {
    inset: 9px 12px;
    gap: 3px;
  }
}

/* Community v2 cards */
.community-card { cursor: pointer; }
.community-card .community-cover-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  padding: 22px;
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.78), transparent 34%),
    linear-gradient(135deg, rgba(15,118,110,0.24), rgba(37,99,235,0.18)),
    rgba(255,255,255,0.22);
}
.community-card .community-cover-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 24px rgba(15, 23, 42, 0.14));
}
:root[data-theme="dark"] .account-work-item .account-work-cover,
:root[data-theme="dark"] .community-card .community-cover-placeholder {
  background:
    radial-gradient(circle at 24% 18%, rgba(255,255,255,0.22), transparent 34%),
    linear-gradient(135deg, rgba(148,163,184,0.26), rgba(71,85,105,0.38)),
    rgba(39,45,55,0.70);
}
.community-card .community-author {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}
.community-card .community-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, #22d3ee, #6366f1);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700;
  overflow: hidden;
}
.community-card .community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-card .community-author strong { display: block; font-size: 14px; }
.community-card .community-author small { color: var(--text-muted); font-size: 12px; }
.community-card .community-meta { display: flex; gap: 10px; margin-top: 12px; font-size: 12px; color: var(--text-muted); }
.community-card .community-stat { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; background: rgba(15, 118, 110, 0.08); }

/* Dark mode tweaks for new components */
:root[data-theme="dark"] {
  --account-modal-glow: rgba(56, 189, 248, 0.18);
}
:root[data-theme="dark"] .nav-account-btn { color: var(--text-main); }
:root[data-theme="dark"] .footer-icp { background: rgba(15, 23, 42, 0.45); border-color: rgba(255,255,255,0.12); }
:root[data-theme="dark"] .footer-icp em { color: #e0f2fe; opacity: 0.92; }
:root[data-theme="dark"] .account-backdrop { background: rgba(2, 8, 16, 0.65); }
:root[data-theme="dark"] .account-tabs { background: rgba(15, 118, 110, 0.18); }
:root[data-theme="dark"] .account-tab-panel { background: rgba(7,18,23,0.55); }
:root[data-theme="dark"] .account-security-card { background: rgba(37,99,235,0.18); }
:root[data-theme="dark"] .password-meter > span:not([data-password-level]) { background: rgba(255,255,255,0.08); }
:root[data-theme="dark"] .urspire-captcha { background: rgba(7,18,23,0.55); border-color: rgba(255,255,255,0.12); }
:root[data-theme="dark"] .captcha-track { background: rgba(255,255,255,0.06); }
:root[data-theme="dark"] .detail-stat,
:root[data-theme="dark"] .card-stats .card-stat,
:root[data-theme="dark"] .community-card .community-stat { background: rgba(56,189,248,0.12); color: #e0f2fe; }
:root[data-theme="dark"] .detail-dl > div { background: rgba(56,189,248,0.10); }
:root[data-theme="dark"] .detail-files li { background: rgba(56,189,248,0.10); }
:root[data-theme="dark"] .glow-target::after {
  background: radial-gradient(140px 140px at var(--local-glow-x, 50%) var(--local-glow-y, 50%),
    rgba(125, 211, 252, 0.35), rgba(125, 211, 252, 0) 60%);
}

/* General icon-button utility */
.btn,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn [data-icon] { font-size: 16px; }

/* ===== Card "View Detail" button (works/blog/community) ===== */
.card-detail-btn {
  margin-top: 12px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid var(--control-border);
  background: linear-gradient(135deg, rgba(37,99,235,0.10), rgba(15,118,110,0.10));
  color: var(--text-main);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card-detail-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.55);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.20);
}
.card-detail-btn:active { transform: translateY(0); }
.card-detail-btn .card-detail-arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  transition: transform 0.18s ease;
}
.card-detail-btn:hover .card-detail-arrow { transform: translateX(4px); }
.card-detail-btn[aria-disabled="true"],
.card-detail-btn.is-disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: rgba(148, 163, 184, 0.10);
}
.card-detail-btn svg { width: 18px; height: 18px; }

/* ===== Music track detail button ===== */
.music-track-row {
  position: relative;
}
.music-track-row .music-track-detail {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.30);
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  z-index: 6;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 6px 18px rgba(7, 18, 23, 0.12);
}
.music-track-row .music-track-detail:hover {
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.22);
}
.music-track-row .music-track-detail:active {
  transform: translateY(-50%) scale(0.97);
}
.music-track-row .music-track-detail-icon {
  width: 16px;
  height: 16px;
}
.music-track-row .music-track-play {
  padding-right: 110px;
}
@media (max-width: 720px) {
  .music-track-row .music-track-detail {
    right: 12px;
    padding: 6px 10px;
    font-size: 12px;
  }
  .music-track-row .music-track-play { padding-right: 86px; }
}

/* ===== Captcha loading state ===== */
.urspire-captcha.is-loading .captcha-bg { opacity: 0.6; }
.urspire-captcha.is-loading .captcha-piece { opacity: 0; }
.urspire-captcha.is-loading .captcha-handle {
  cursor: progress;
  background: rgba(148, 163, 184, 0.4);
}

/* ===== Dark mode (extended) ===== */
:root[data-theme="dark"] .detail-backdrop { background: rgba(2, 6, 14, 0.7); }
:root[data-theme="dark"] .detail-panel {
  background: rgba(7, 18, 23, 0.90);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .detail-close {
  background: rgba(15, 23, 42, 0.85);
  color: #e0f2fe;
  border-color: rgba(255, 255, 255, 0.18);
}
:root[data-theme="dark"] .detail-close:hover { background: rgba(30, 41, 59, 0.95); }
:root[data-theme="dark"] .detail-stat {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.28);
  color: #e0f2fe;
}
:root[data-theme="dark"] .detail-action {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}
:root[data-theme="dark"] .detail-like.is-liked {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.55);
  color: #fda4af;
}
:root[data-theme="dark"] .detail-like.is-liked .detail-action-icon svg {
  fill: #fb7185;
  stroke: #fb7185;
}
:root[data-theme="dark"] .detail-share.is-success {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
}
:root[data-theme="dark"] .card-detail-btn {
  background: linear-gradient(135deg, rgba(56,189,248,0.16), rgba(15,118,110,0.18));
  border-color: rgba(255, 255, 255, 0.14);
  color: #e0f2fe;
}
:root[data-theme="dark"] .card-detail-btn:hover {
  border-color: rgba(125, 211, 252, 0.55);
  box-shadow: 0 14px 32px rgba(56, 189, 248, 0.22);
}
:root[data-theme="dark"] .card-detail-btn[aria-disabled="true"],
:root[data-theme="dark"] .card-detail-btn.is-disabled {
  background: rgba(148, 163, 184, 0.16);
}
:root[data-theme="dark"] .music-track-row .music-track-detail {
  background: rgba(15, 23, 42, 0.85);
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.35);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}
:root[data-theme="dark"] .urspire-captcha.is-loading .captcha-handle {
  background: rgba(148, 163, 184, 0.25);
}
:root[data-theme="dark"] .captcha-message.is-error { color: #fca5a5; }
:root[data-theme="dark"] .captcha-message.is-success { color: #6ee7b7; }
:root[data-theme="dark"] .detail-comment {
  border-color: rgba(255, 255, 255, 0.08);
}
:root[data-theme="dark"] .detail-comment-avatar {
  background: rgba(56, 189, 248, 0.18);
  color: #e0f2fe;
}
:root[data-theme="dark"] .detail-comment-delete {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  color: #cbd5f5;
}
:root[data-theme="dark"] .detail-comment-form textarea {
  background: rgba(15, 23, 42, 0.55);
  border-color: rgba(255, 255, 255, 0.12);
  color: #e0f2fe;
}
