/* ============================================================
   迭次夜班 Noctysphy — Blue/White Tech Design System
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  --primary: #1668dc;
  --primary-strong: #0f5bd0;
  --primary-deep: #0b3d91;
  --accent: #00b8d4;
  --accent-soft: rgba(0, 184, 212, 0.14);

  --bg: #f3f7fe;
  --bg-deep: #e9f1fd;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-blur: rgba(255, 255, 255, 0.82);

  --ink: #0a1f44;
  --ink-2: #33507e;
  --ink-3: #7189b0;
  --ink-inv: #ffffff;

  --line: rgba(22, 104, 220, 0.14);
  --line-soft: rgba(22, 104, 220, 0.07);
  --glow: rgba(22, 104, 220, 0.22);
  --glow-strong: rgba(22, 104, 220, 0.4);

  --grad-primary: linear-gradient(135deg, #3d9bff 0%, #1668dc 55%, #0b3d91 100%);
  --grad-line: linear-gradient(90deg, transparent, var(--primary), transparent);

  --shadow-sm: 0 2px 10px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 8px 30px rgba(11, 61, 145, 0.1);
  --shadow-lg: 0 24px 60px rgba(11, 61, 145, 0.16);
  --shadow-glow: 0 8px 30px rgba(22, 104, 220, 0.28);

  --font-sans: "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Cascadia Code", "Consolas", "Courier New", monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --header-h: 72px;
  --player-h: 78px;
  --wrap: 1180px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
input, textarea, select { font-family: inherit; color: inherit; }
::selection { background: rgba(22, 104, 220, 0.22); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- background layers ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 104, 220, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 104, 220, 0.05) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 100%);
}
.bg-glow { position: fixed; z-index: -4; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.bg-glow-a { width: 560px; height: 560px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(61, 155, 255, 0.16), transparent 65%); }
.bg-glow-b { width: 720px; height: 720px; top: 40%; left: -260px; background: radial-gradient(circle, rgba(0, 184, 212, 0.1), transparent 65%); }
#particles { position: fixed; inset: 0; z-index: -2; pointer-events: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: var(--r-md);
  font-size: 15px; font-weight: 600; letter-spacing: 0.04em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn .icon { width: 18px; height: 18px; }
.btn-primary { background: var(--grad-primary); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(22, 104, 220, 0.38); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink-2); background: var(--surface-blur); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(22, 104, 220, 0.45); color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn-sm { padding: 9px 20px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2); border: 1px solid transparent;
  transition: all 0.25s ease;
}
.icon-btn:hover { color: var(--primary); background: rgba(22, 104, 220, 0.07); border-color: var(--line); }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 90; height: var(--header-h);
  transition: background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--surface-blur);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  position: relative; overflow: hidden;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.5) 50%, transparent 60%);
  transform: translateX(-100%); animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.brand-mark.lg { width: 48px; height: 48px; border-radius: 14px; }
.brand-mark .icon { width: 22px; height: 22px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 700; font-size: 16px; letter-spacing: 0.06em; }
.brand-sub { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.34em; color: var(--ink-3); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; padding: 8px 15px; border-radius: 10px;
  font-size: 14.5px; color: var(--ink-2); letter-spacing: 0.05em;
  transition: color 0.25s ease, background 0.25s ease;
}
.main-nav a:hover { color: var(--primary); background: rgba(22, 104, 220, 0.06); }
.main-nav a.active { color: var(--primary); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 15px; right: 15px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--grad-primary);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }

.ambient-btn { position: relative; }
.ambient-btn .icon { transition: color 0.3s; }
.ambient-btn.on { color: var(--primary); background: rgba(22, 104, 220, 0.08); border-color: var(--line); }
.ambient-dot { position: absolute; top: 8px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); opacity: 0; transition: opacity 0.3s; }
.ambient-btn.on .ambient-dot { opacity: 1; animation: dotPulse 1.6s ease-in-out infinite; }
@keyframes dotPulse { 50% { transform: scale(1.5); } }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(243, 247, 254, 0.96); backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-close { position: absolute; top: 20px; right: 20px; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; text-align: center; }
.mobile-nav a { font-size: 26px; font-weight: 600; letter-spacing: 0.12em; color: var(--ink-2); padding: 10px 32px; border-radius: 14px; transition: all 0.25s; }
.mobile-nav a:hover, .mobile-nav a.active { color: var(--primary); background: rgba(22, 104, 220, 0.06); }

/* ---------- loading screen ---------- */
.loading-screen {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loading-screen.done { opacity: 0; visibility: hidden; }
.loading-brand { font-size: 34px; font-weight: 700; letter-spacing: 0.2em; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.loading-sub { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.5em; color: var(--ink-3); }
.loading-bar { width: 220px; height: 3px; border-radius: 2px; background: var(--line-soft); margin-top: 26px; overflow: hidden; }
.loading-bar-fill { height: 100%; width: 0%; background: var(--grad-primary); border-radius: 2px; transition: width 0.3s ease; }

/* ---------- view & sections ---------- */
.view { display: block; min-height: 100vh; padding-top: var(--header-h); }
.page { animation: pageIn 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 48px; }
.mono-label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.32em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 10px;
}
.mono-label::before { content: ""; width: 26px; height: 1px; background: var(--grad-primary); }
.section-title { font-size: clamp(30px, 4.4vw, 44px); font-weight: 700; letter-spacing: 0.02em; line-height: 1.2; margin-top: 12px; }
.section-title .en { display: block; font-family: var(--font-mono); font-size: 0.32em; letter-spacing: 0.42em; color: var(--ink-3); font-weight: 400; margin-top: 8px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-size: 14.5px; font-weight: 600; padding: 8px 4px; transition: gap 0.25s; }
.section-more:hover { gap: 12px; }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding: 60px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; width: 100%; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.3em; color: var(--primary); text-transform: uppercase; }
.hero-kicker .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: dotPulse 2s ease-in-out infinite; }
.hero-title {
  font-size: clamp(56px, 8.5vw, 108px); font-weight: 800; line-height: 1.04; letter-spacing: 0.01em;
  margin: 22px 0 6px; background: linear-gradient(160deg, #0a1f44 0%, #0b3d91 45%, #1668dc 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-title-en {
  font-family: var(--font-mono); font-size: clamp(18px, 2.6vw, 30px); font-weight: 700;
  letter-spacing: 0.34em; color: transparent;
  -webkit-text-stroke: 1.2px rgba(22, 104, 220, 0.5);
  margin-bottom: 26px;
}
.hero-tagline { display: flex; align-items: center; gap: 16px; font-size: clamp(17px, 2vw, 21px); letter-spacing: 0.24em; color: var(--ink-2); font-weight: 500; }
.hero-tagline::before, .hero-tagline::after { content: ""; height: 1px; width: 42px; background: var(--grad-primary); flex: none; }
.hero-desc { max-width: 520px; color: var(--ink-2); font-size: 15.5px; line-height: 1.9; margin: 26px 0 36px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats { display: flex; gap: 0; margin-top: 54px; border-top: 1px solid var(--line-soft); padding-top: 26px; }
.hero-stat { padding-right: 40px; margin-right: 40px; border-right: 1px solid var(--line-soft); }
.hero-stat:last-child { border-right: none; }
.hero-stat b { display: block; font-size: 26px; font-weight: 700; color: var(--primary-deep); font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: 12px; color: var(--ink-3); letter-spacing: 0.1em; }

/* hero avatar stage */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 420px; }
.avatar-ring {
  position: absolute; width: 108%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(22, 104, 220, 0.35);
  animation: spin 40s linear infinite;
}
.avatar-ring.r2 { width: 122%; border-style: solid; border-color: rgba(22, 104, 220, 0.1); animation-duration: 60s; animation-direction: reverse; }
.avatar-ring .node { position: absolute; top: -4px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 12px var(--glow-strong); }
@keyframes spin { to { transform: rotate(360deg); } }
.avatar-frame { position: relative; width: min(360px, 72vw); aspect-ratio: 1; border-radius: 50%; padding: 10px; background: var(--grad-primary); box-shadow: 0 30px 80px rgba(11, 61, 145, 0.3); }
.avatar-frame img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #fff; }
.avatar-frame::before, .avatar-frame::after {
  content: ""; position: absolute; width: 34px; height: 34px; border: 2px solid var(--primary);
}
.avatar-frame::before { top: -18px; left: -18px; border-right: none; border-bottom: none; border-radius: 8px 0 0 0; }
.avatar-frame::after { bottom: -18px; right: -18px; border-left: none; border-top: none; border-radius: 0 0 8px 0; }
.hero-chip {
  position: absolute; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em;
  padding: 7px 14px; border-radius: 100px; color: var(--primary-deep);
  background: var(--surface-blur); border: 1px solid var(--line); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm); animation: floaty 5s ease-in-out infinite;
}
.hero-chip.c1 { top: 8%; left: -4%; }
.hero-chip.c2 { bottom: 12%; right: -2%; animation-delay: 1.4s; }
.hero-chip.c3 { bottom: -4%; left: 12%; animation-delay: 2.6s; }
@keyframes floaty { 50% { transform: translateY(-12px); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink-3); font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.3em; }
.scroll-hint .line { width: 1px; height: 40px; background: linear-gradient(to bottom, var(--primary), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- featured album ---------- */
.featured-card {
  display: grid; grid-template-columns: 340px 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  overflow: hidden; box-shadow: var(--shadow-md); position: relative;
}
.featured-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--grad-primary); }
.featured-cover { position: relative; aspect-ratio: 1; overflow: hidden; }
.featured-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.featured-card:hover .featured-cover img { transform: scale(1.05); }
.featured-cover .play-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(11, 61, 145, 0.35); opacity: 0; transition: opacity 0.4s; cursor: pointer;
}
.featured-cover:hover .play-overlay { opacity: 1; }
.play-overlay .big-play {
  width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--primary);
  display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 40px rgba(0,0,0,0.3);
  transform: scale(0.85); transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.play-overlay:hover .big-play { transform: scale(1); }
.play-overlay .big-play .icon { width: 30px; height: 30px; margin-left: 3px; }
.featured-body { padding: 44px 46px; display: flex; flex-direction: column; }
.featured-meta { display: flex; align-items: center; gap: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); letter-spacing: 0.12em; margin-bottom: 14px; }
.featured-meta .badge { background: rgba(22, 104, 220, 0.09); color: var(--primary); padding: 4px 12px; border-radius: 100px; font-size: 11px; letter-spacing: 0.16em; }
.featured-title { font-size: 30px; font-weight: 700; letter-spacing: 0.02em; margin-bottom: 14px; }
.featured-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.9; margin-bottom: 26px; max-width: 560px; }
.featured-tracks { display: flex; flex-direction: column; gap: 2px; margin-bottom: 30px; }
.mini-track {
  display: grid; grid-template-columns: 34px 1fr auto auto; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: var(--r-sm); cursor: pointer; transition: background 0.25s;
}
.mini-track:hover { background: rgba(22, 104, 220, 0.05); }
.mini-track .num { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: center; }
.mini-track .name { font-size: 14.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-track .dur { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); }
.mini-track .mini-play { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--primary); background: rgba(22, 104, 220, 0.08); opacity: 0; transition: opacity 0.25s; }
.mini-track:hover .mini-play { opacity: 1; }
.mini-track .mini-play .icon { width: 14px; height: 14px; margin-left: 2px; }
.featured-actions { display: flex; gap: 14px; margin-top: auto; }

/* ---------- album grid ---------- */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.album-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease, border-color 0.45s ease;
}
.album-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(22, 104, 220, 0.3); }
.album-card .cover-wrap { position: relative; aspect-ratio: 1; overflow: hidden; }
.album-card .cover-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.album-card:hover .cover-wrap img { transform: scale(1.06); }
.album-card .cover-wrap::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 31, 68, 0.45), transparent 45%); opacity: 0; transition: opacity 0.4s; }
.album-card:hover .cover-wrap::after { opacity: 1; }
.album-card .cover-play {
  position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--primary); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 26px rgba(11, 61, 145, 0.35); opacity: 0; transform: translateY(10px);
  transition: opacity 0.35s, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1); z-index: 2;
}
.album-card:hover .cover-play { opacity: 1; transform: none; }
.album-card .cover-play .icon { width: 20px; height: 20px; margin-left: 2px; }
.album-card .card-body { padding: 22px 24px 24px; }
.album-card .card-date { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.14em; }
.album-card .card-title { font-size: 18px; font-weight: 700; margin: 8px 0 8px; letter-spacing: 0.02em; }
.album-card .card-desc { font-size: 13px; color: var(--ink-2); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 44px; }
.album-card .card-foot { display: flex; align-items: center; gap: 6px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); font-size: 12px; color: var(--ink-3); }
.album-card .card-foot .icon { width: 14px; height: 14px; color: var(--primary); }

/* ---------- track list (full) ---------- */
.track-table { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.track-row {
  display: grid; grid-template-columns: 56px 1fr 180px 90px 44px; align-items: center; gap: 16px;
  padding: 13px 22px; border-bottom: 1px solid var(--line-soft); cursor: pointer;
  transition: background 0.25s; position: relative;
}
.track-row:last-child { border-bottom: none; }
.track-row:hover { background: rgba(22, 104, 220, 0.04); }
.track-row.playing { background: rgba(22, 104, 220, 0.06); }
.track-row .t-num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); text-align: center; position: relative; }
.track-row:hover .t-num .idx { opacity: 0; }
.track-row .t-num .hover-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--primary); opacity: 0; }
.track-row:hover .t-num .hover-play { opacity: 1; }
.track-row .t-num .hover-play .icon { width: 15px; height: 15px; margin-left: 2px; }
.track-row .t-name { font-size: 15px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .t-name .t-desc { display: block; font-size: 12px; color: var(--ink-3); font-weight: 400; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .t-album { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track-row .t-dur { font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); text-align: right; }
.track-row .t-plays { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); text-align: center; }
.track-row.playing .t-name { color: var(--primary); font-weight: 600; }

/* equalizer animation for playing rows */
.eq { display: none; align-items: flex-end; gap: 2px; height: 14px; justify-content: center; }
.track-row.playing .eq, .mini-track.playing .eq { display: inline-flex; }
.track-row.playing .t-num .idx { display: none; }
.eq i { width: 3px; border-radius: 2px; background: var(--primary); animation: eqBounce 0.9s ease-in-out infinite; }
.eq i:nth-child(1) { height: 40%; animation-delay: 0s; }
.eq i:nth-child(2) { height: 90%; animation-delay: 0.18s; }
.eq i:nth-child(3) { height: 55%; animation-delay: 0.36s; }
.eq i:nth-child(4) { height: 75%; animation-delay: 0.1s; }
@keyframes eqBounce { 50% { transform: scaleY(0.35); } }

/* ---------- search ---------- */
.search-box { position: relative; max-width: 520px; margin-bottom: 34px; }
.search-box .icon { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search-box input {
  width: 100%; height: 52px; padding: 0 20px 0 50px;
  border-radius: var(--r-md); border: 1px solid var(--line);
  background: var(--surface); font-size: 15px; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.search-box input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(22, 104, 220, 0.12); }
.search-box input::placeholder { color: var(--ink-3); }

/* ---------- album detail ---------- */
.album-detail { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: start; }
.album-detail .detail-cover { position: relative; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 1; }
.album-detail .detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-info .mono-label { margin-bottom: 16px; }
.detail-title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: 0.02em; line-height: 1.25; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-3); letter-spacing: 0.1em; margin: 18px 0 22px; }
.detail-desc { color: var(--ink-2); font-size: 15px; line-height: 1.9; margin-bottom: 30px; max-width: 620px; }
.detail-actions { display: flex; gap: 14px; margin-bottom: 40px; }
.detail-tracklist { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.detail-tracklist .tl-head { display: grid; grid-template-columns: 56px 1fr 90px 44px; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-3); letter-spacing: 0.14em; font-family: var(--font-mono); }
.detail-tracklist .tl-head span:last-child { text-align: right; }

/* ---------- timeline ---------- */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(to bottom, var(--primary), rgba(22, 104, 220, 0.08)); border-radius: 2px; }
.timeline-item { position: relative; padding: 0 0 42px 24px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -33px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--primary); box-shadow: 0 0 0 5px rgba(22, 104, 220, 0.1); }
.timeline-item:first-child .timeline-dot { animation: dotPulse 2.4s ease-in-out infinite; }
.timeline-date { font-family: var(--font-mono); font-size: 13px; color: var(--primary); letter-spacing: 0.14em; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.timeline-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 22px 26px; box-shadow: var(--shadow-sm); transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s; }
.timeline-card:hover { transform: translateX(6px); box-shadow: var(--shadow-md); border-color: rgba(22, 104, 220, 0.25); }
.timeline-card h4 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.timeline-card p { font-size: 14px; color: var(--ink-2); line-height: 1.85; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; }
.about-text p { color: var(--ink-2); font-size: 15.5px; line-height: 2.1; margin-bottom: 20px; }
.about-text p:first-child::first-letter { font-size: 1.6em; font-weight: 700; color: var(--primary); }
.about-quote { border-left: 3px solid var(--primary); padding: 6px 0 6px 22px; font-size: 17px; color: var(--ink); font-weight: 500; letter-spacing: 0.04em; margin: 28px 0; }
.about-visual { position: relative; }
.about-visual img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--surface); }
.about-visual::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--line); border-radius: var(--r-xl); z-index: -1; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; }
.info-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 26px; box-shadow: var(--shadow-sm); transition: transform 0.35s, box-shadow 0.35s; }
.info-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.info-card .ic-icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(22, 104, 220, 0.08); color: var(--primary); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.info-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 980px; margin: 0 auto; }
.contact-card {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 44px 34px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s, border-color 0.4s;
  display: block;
}
.contact-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, rgba(22, 104, 220, 0.07), transparent 60%); opacity: 0; transition: opacity 0.4s; }
.contact-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(22, 104, 220, 0.3); }
.contact-card:hover::before { opacity: 1; }
.contact-card .cc-icon { width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 18px; background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow); position: relative; }
.contact-card .cc-icon .icon { width: 26px; height: 26px; }
.contact-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; position: relative; }
.contact-card p { font-size: 13.5px; color: var(--ink-2); position: relative; word-break: break-all; }
.contact-card .cc-hint { margin-top: 16px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--primary); opacity: 0; transition: opacity 0.3s; position: relative; }
.contact-card:hover .cc-hint { opacity: 1; }
.contact-big { text-align: center; margin-top: 70px; }
.contact-big .cb-title { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: 0.04em; }
.contact-big .cb-sub { color: var(--ink-2); margin: 14px 0 30px; letter-spacing: 0.06em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; padding: 64px 56px; background: var(--grad-primary); color: #fff; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent); mask-image: radial-gradient(ellipse 70% 90% at 50% 50%, #000, transparent); }
.cta-band h3 { font-size: clamp(24px, 3.2vw, 34px); font-weight: 800; letter-spacing: 0.06em; position: relative; }
.cta-band p { margin: 14px auto 32px; max-width: 520px; color: rgba(255, 255, 255, 0.85); font-size: 15px; line-height: 1.9; position: relative; }
.cta-band .btn-light { background: #fff; color: var(--primary-deep); position: relative; }
.cta-band .btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--surface-soft); margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-top: 36px; padding-bottom: 36px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-name { font-weight: 700; letter-spacing: 0.06em; font-size: 15px; }
.footer-tag { font-size: 12px; color: var(--ink-3); letter-spacing: 0.2em; margin-top: 2px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--ink-2); transition: color 0.25s; }
.footer-nav a:hover { color: var(--primary); }
.footer-icp { width: 100%; text-align: center; font-size: 12px; color: var(--ink-3); padding-bottom: 26px; }
.footer-icp a { transition: color 0.25s; }
.footer-icp a:hover { color: var(--primary); }

/* ---------- player bar ---------- */
.player-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: var(--surface-blur); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.player-bar.visible { transform: none; }
.player-inner { height: var(--player-h); display: grid; grid-template-columns: minmax(180px, 1fr) minmax(320px, 2fr) minmax(140px, 1fr); align-items: center; gap: 20px; }
.player-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.player-cover { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; box-shadow: var(--shadow-sm); background: var(--bg-deep); }
.player-meta { min-width: 0; }
.player-title { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player-album { font-size: 12px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.player-center { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.player-controls { display: flex; align-items: center; gap: 18px; }
.ctrl-btn { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--ink-2); transition: all 0.25s; }
.ctrl-btn:hover { color: var(--primary); background: rgba(22, 104, 220, 0.08); }
.ctrl-btn .icon { width: 19px; height: 19px; }
.play-btn {
  width: 50px; height: 50px; border-radius: 50%; background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-glow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.play-btn:hover { transform: scale(1.07); box-shadow: 0 10px 30px rgba(22, 104, 220, 0.4); }
.play-btn .icon { width: 21px; height: 21px; }
.play-btn .icon-pause { display: none; margin-left: 0; }
.play-btn.playing .icon-play { display: none; }
.play-btn.playing .icon-pause { display: block; }
.player-progress-row { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; }
.player-time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); width: 36px; text-align: center; font-variant-numeric: tabular-nums; }
.progress-track { flex: 1; height: 5px; border-radius: 3px; background: rgba(22, 104, 220, 0.12); cursor: pointer; position: relative; }
.progress-fill { height: 100%; width: 0%; border-radius: 3px; background: var(--grad-primary); position: relative; }
.progress-fill::after { content: ""; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); width: 11px; height: 11px; border-radius: 50%; background: #fff; border: 2px solid var(--primary); box-shadow: var(--shadow-sm); opacity: 0; transition: opacity 0.25s; }
.progress-track:hover .progress-fill::after { opacity: 1; }
.player-right { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.volume-track { width: 84px; height: 5px; border-radius: 3px; background: rgba(22, 104, 220, 0.12); cursor: pointer; }
.volume-fill { height: 100%; width: 80%; border-radius: 3px; background: var(--primary); }

/* ---------- playlist drawer ---------- */
.drawer-overlay { position: fixed; inset: 0; z-index: 85; background: rgba(10, 31, 68, 0.35); opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s; backdrop-filter: blur(2px); }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.playlist-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 86; width: min(400px, 92vw);
  background: var(--surface); border-left: 1px solid var(--line); box-shadow: var(--shadow-lg);
  transform: translateX(105%); transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column;
}
.playlist-drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--line-soft); }
.drawer-head h3 { font-size: 16px; font-weight: 700; }
.drawer-source { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 12px; }
.drawer-body .track-row { grid-template-columns: 34px 1fr auto; padding: 10px 12px; border-radius: var(--r-sm); border-bottom: none; }
.drawer-body .track-row .t-dur { display: none; }
.drawer-body .track-row .t-plays { display: none; }
.drawer-empty { text-align: center; color: var(--ink-3); font-size: 13.5px; padding: 60px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--player-h) + 24px); z-index: 300;
  transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; font-size: 13.5px;
  padding: 11px 22px; border-radius: 100px; box-shadow: var(--shadow-lg);
  transition: opacity 0.35s, transform 0.35s; pointer-events: none; white-space: nowrap;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- empty state ---------- */
.empty-state { text-align: center; padding: 90px 20px; color: var(--ink-3); }
.empty-state .icon { width: 46px; height: 46px; margin: 0 auto 18px; color: var(--ink-3); opacity: 0.6; }
.empty-state p { font-size: 14.5px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 84px 0 56px; position: relative; }
.page-hero .mono-label { margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 60px); font-weight: 800; letter-spacing: 0.03em; line-height: 1.15; }
.page-hero .ph-en { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.4em; color: var(--ink-3); margin-top: 12px; text-transform: uppercase; }
.page-hero p { max-width: 560px; color: var(--ink-2); margin-top: 18px; font-size: 15px; line-height: 1.9; }

.back-link { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 14px; margin-bottom: 34px; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); background: var(--surface); transition: all 0.25s; }
.back-link:hover { color: var(--primary); border-color: rgba(22, 104, 220, 0.4); gap: 12px; }
.back-link .icon { width: 16px; height: 16px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .album-grid { grid-template-columns: repeat(2, 1fr); }
  .featured-card { grid-template-columns: 260px 1fr; }
  .featured-body { padding: 32px; }
  .album-detail { grid-template-columns: 300px 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  .main-nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; min-height: 320px; }
  .hero { min-height: 0; padding-top: 40px; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .featured-card { grid-template-columns: 1fr; }
  .featured-cover { max-height: 380px; }
  .album-grid { grid-template-columns: 1fr; }
  .album-detail { grid-template-columns: 1fr; }
  .album-detail .detail-cover { max-width: 420px; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .info-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .track-row { grid-template-columns: 44px 1fr 70px; }
  .track-row .t-album, .track-row .t-plays { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 18px; }
  .hero-stat { padding-right: 22px; margin-right: 22px; }
  .cta-band { padding: 48px 26px; }
  .player-inner { grid-template-columns: 1fr auto; }
  .player-right { display: none; }
  .player-info .player-cover { width: 42px; height: 42px; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 20px; }
  .track-row { grid-template-columns: 36px 1fr 60px; padding: 12px 14px; }
  .detail-tracklist .tl-head { grid-template-columns: 40px 1fr 60px; }
  .detail-tracklist .tl-head span:nth-child(3) { display: none; }
}

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