/* ==========================================================================
   神罚 · liquid glass
   site.css — index / mods / music
   ========================================================================== */

/* ---------------------------------------------------------------- shell */
.shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  padding-top: clamp(104px, 12vw, 138px);
  padding-bottom: clamp(180px, 22vw, 230px);
}

/* ------------------------------------------------------------------ dock */
.dock-wrap {
  position: fixed;
  top: clamp(12px, 1.6vw, 20px);
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding-inline: clamp(12px, 3vw, 24px);
  pointer-events: none;
}

.dock {
  pointer-events: auto;
  width: min(1060px, 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 10px 8px 14px;
  border-radius: var(--r-pill);
  box-shadow: 0 26px 60px -40px rgba(17, 25, 54, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.dock__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 4px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 700;
  color: #f5f7ff;
  background: linear-gradient(145deg, #151b2c, #38436a);
  box-shadow: 0 8px 18px -10px rgba(11, 16, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.brand-name {
  font-size: 1rem;
  font-weight: 660;
  letter-spacing: -0.03em;
}

.dock__tabs {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-inline: auto;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6);
}

.dock__slider {
  position: absolute;
  top: 4px;
  left: 4px;
  height: calc(100% - 8px);
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(140deg, #151b2c 0%, #2b3450 100%);
  box-shadow: 0 10px 22px -12px rgba(11, 16, 32, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.52s cubic-bezier(0.34, 1.42, 0.5, 1), width 0.52s cubic-bezier(0.34, 1.42, 0.5, 1);
  pointer-events: none;
  transform-origin: center;
  will-change: transform, width;
}

/* 水滴感：像一滴水被推着滑过去，落点泛起一圈涟漪（不做形变，避免晃动感） */
@keyframes drop-ripple {
  0%   { opacity: 0.55; transform: scale(0.94, 0.86); }
  55%  { opacity: 0.22; transform: scale(1.04, 1.02); }
  100% { opacity: 0;    transform: scale(1.10, 1.06); }
}

.dock__slider::before {
  content: "";
  position: absolute;
  inset: -3px -2px;
  border-radius: inherit;
  border: 1.5px solid rgba(140, 168, 255, 0.55);
  opacity: 0;
  pointer-events: none;
}

.dock__slider.is-drop::before {
  animation: drop-ripple 0.62s cubic-bezier(0.22, 0.9, 0.3, 1);
}

.dock__slider.is-drop {
  animation: none;
}

.dock__slider::after {
  content: "";
  position: absolute;
  inset: 1px 1px 50% 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  opacity: 0.9;
  pointer-events: none;
}

.tab-btn {
  position: relative;
  z-index: 1;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 560;
  color: var(--ink-2);
  transition: color 0.35s var(--ease);
}

.tab-btn.is-active {
  color: #f6f7ff;
}

.dock__side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding-right: 6px;
}

/* 分类详情：导航收成一条紧凑的药丸 */
.dock__current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-inline: auto;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  font-size: 0.84rem;
  font-weight: 580;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.dock__current::before {
  content: "分类";
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--ink-4);
}

.dock.is-detail {
  width: auto;
}

.dock.is-detail .dock__status {
  display: none;
}

/* ----------------------------------------------------------------- panes */
.pane {
  display: none;
}

.pane.is-active {
  display: block;
  animation: paneIn 0.55s var(--ease) both;
}

/* ------------------------------------------------------------------ hero */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(20px, 2.6vw, 30px);
  padding-block: clamp(18px, 4vw, 54px) clamp(30px, 5vw, 64px);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.hero__title {
  font-size: clamp(2.9rem, 8.6vw, 6.2rem);
  line-height: 0.96;
  font-weight: 700;
  letter-spacing: -0.05em;
  max-width: 15ch;
}

.hero__title em {
  font-style: normal;
  background: linear-gradient(112deg, #4a5ad8 0%, #7b4dff 42%, #0fb5a6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lede {
  max-width: 44ch;
  font-size: clamp(0.98rem, 1.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--ink-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 6px;
}

/* ----------------------------------------------------------------- stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0;
  margin-top: clamp(26px, 4vw, 46px);
  overflow: hidden;
}

.stat {
  padding: clamp(22px, 3.4vw, 40px) clamp(16px, 2.4vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(17, 25, 54, 0.12), transparent);
}

.stat__value {
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  font-weight: 680;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  font-size: 0.78rem;
  color: var(--ink-3);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------- gallery */
.gallery {
  padding-top: clamp(22px, 3vw, 40px);
}

/* 相册固定两列瀑布流，桌面端也保持呼吸感 */
.gallery .masonry {
  column-count: 2;
}

/* 相片本身铺满，玻璃只在 10px 边框上，去掉背景模糊省一层 */
.photo-card,
html.has-refraction .photo-card {
  padding: 10px;
  border-radius: var(--r-lg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background-image: linear-gradient(155deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.photo-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.photo-card__frame {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--r-lg) - 8px);
  background: rgba(17, 25, 54, 0.06);
  aspect-ratio: 4 / 5;
}

.photo-card:nth-child(2n) .photo-card__frame {
  aspect-ratio: 1 / 1;
}

.photo-card:nth-child(3n) .photo-card__frame {
  aspect-ratio: 3 / 4.2;
}

.photo-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.photo-card:hover .photo-card__frame img {
  transform: scale(1.045);
}

.photo-card__meta {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.photo-card__caption {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 0.7rem;
  font-weight: 560;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
}

.photo-card__index {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: #f6f7ff;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  background: rgba(15, 20, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

/* ------------------------------------------------------------ author card */
.card {
  padding: clamp(22px, 3vw, 34px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card__title {
  font-size: 1.15rem;
  font-weight: 640;
  letter-spacing: -0.02em;
}

.avatar {
  width: 68px;
  height: 68px;
  border-radius: 22px;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(145deg, #dfe4f2, #f7f8fc);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 12px 26px -16px rgba(17, 25, 54, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-card__id {
  display: flex;
  align-items: center;
  gap: 16px;
}

.author-card__name {
  font-size: 1.5rem;
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.quote {
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--ink-2);
  padding-left: 16px;
  border-left: 2px solid rgba(109, 92, 255, 0.28);
}

.facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.facts__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.facts__label {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
}

.facts__value {
  font-size: 0.84rem;
  font-weight: 560;
  color: var(--ink-2);
}

/* --------------------------------------------------------------- vinyl */
.now-card {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.vinyl {
  width: clamp(150px, 18vw, 188px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 55%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 30px 60px -30px rgba(17, 25, 54, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.vinyl img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.vinyl.is-spinning img {
  animation: spin 6s linear infinite;
}

.vinyl.is-spinning::after {
  content: "";
  position: absolute;
}

.vinyl {
  position: relative;
}

.vinyl::before {
  content: "";
  position: absolute;
  inset: 46%;
  border-radius: 50%;
  background: rgba(17, 25, 54, 0.55);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  z-index: 1;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.now-card__song {
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink-2);
  max-width: 26ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* -------------------------------------------------------------- promise */
.promise {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr);
  gap: clamp(22px, 3.4vw, 46px);
  align-items: center;
  padding: clamp(20px, 2.6vw, 30px);
}

.promise__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    radial-gradient(120% 90% at 20% 10%, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 60%),
    linear-gradient(150deg, #e7ecfb, #f4eaf6);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.4vw, 28px);
}

.promise__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: calc(var(--r-lg) - 14px);
}

.promise__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.promise__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ------------------------------------------------------------ link cards */
.link-card {
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.link-card__mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #f5f7ff;
  background: linear-gradient(145deg, #1a2135, #3a4568);
  box-shadow: 0 12px 24px -14px rgba(11, 16, 32, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.link-card__label {
  font-size: 1rem;
  font-weight: 620;
  letter-spacing: -0.01em;
}

.link-card__arrow {
  margin-left: auto;
  font-size: 1rem;
  color: var(--ink-4);
  transition: transform 0.4s var(--ease), color 0.4s var(--ease);
}

.link-card:hover .link-card__arrow {
  transform: translateX(3px);
  color: var(--ink-2);
}

/* ----------------------------------------------------------------- code */
.code-card {
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.code-card__bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.code-card__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

.code-card__bar span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(238, 242, 255, 0.6);
}

.code {
  margin: 0;
  padding: clamp(16px, 2vw, 22px);
  border-radius: var(--r-md);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: #c9d5ff;
  overflow-x: auto;
  white-space: pre;
}

.code .k { color: #8ee8ff; }
.code .s { color: #a9f5c8; }
.code .c { color: rgba(238, 242, 255, 0.42); }

/* ------------------------------------------------------------------- CTA */
.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: clamp(34px, 5vw, 64px) var(--gutter);
  margin-top: var(--section);
}

/* ------------------------------------------------------------ category */
.cat {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  text-align: left;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

.cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.cat__num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-4);
  padding-top: 4px;
}

.cat__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  min-width: 0;
}

.cat__name {
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.cat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.cat__arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: transform 0.45s var(--ease), background 0.45s var(--ease);
}

.cat:hover .cat__arrow {
  transform: translateX(4px);
  background: rgba(255, 255, 255, 0.8);
}

/* ---------------------------------------------------------------- files */
.file {
  padding: clamp(18px, 2.2vw, 24px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.file__kind {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f4f6ff;
  background: linear-gradient(145deg, #1a2135, #3a4568);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.file__name {
  font-size: 0.95rem;
  font-weight: 560;
  line-height: 1.45;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.file__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.file .progress-custom {
  margin-top: 2px;
}

.progress-status {
  font-size: 0.72rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: clamp(46px, 7vw, 82px) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  border-style: dashed;
  border-color: rgba(17, 25, 54, 0.14);
  box-shadow: none;
  background: rgba(255, 255, 255, 0.2);
}

/* ---------------------------------------------------------------- steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.steps__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.steps__no {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-4);
}

.steps__title {
  font-size: 0.9rem;
  font-weight: 580;
}

/* ----------------------------------------------------------------- music */
.music {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 42px);
  align-items: start;
}

.now {
  padding: clamp(20px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: clamp(96px, 12vw, 116px);
}

.now__cover {
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 1;
  background: rgba(17, 25, 54, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 26px 60px -34px rgba(17, 25, 54, 0.6);
}

.now__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.now__meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.now__title {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.15;
  word-break: break-word;
}

.now__artist {
  font-size: 0.86rem;
  color: var(--ink-3);
}

.now__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seek {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seek .num {
  font-size: 0.72rem;
  color: var(--ink-3);
  min-width: 34px;
}

.seek .num:last-child {
  text-align: right;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.ctl {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 22px -16px rgba(17, 25, 54, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.3s var(--ease), background 0.3s var(--ease);
}

.ctl:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.75);
}

.ctl--main {
  width: 58px;
  height: 58px;
  font-size: 1.05rem;
  color: #f6f7ff;
  background: linear-gradient(145deg, #151b2c, #2f3a5c);
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 18px 34px -18px rgba(11, 16, 32, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.ctl--sm {
  width: 30px;
  height: 30px;
  font-size: 0.66rem;
}

.lyrics {
  position: relative;
  max-height: 210px;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.55);
  scrollbar-width: thin;
  scroll-behavior: auto;
  overscroll-behavior: contain;
  cursor: grab;
  mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent);
}

.lyrics.is-dragging {
  cursor: grabbing;
  user-select: none;
}

.lyrics-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: -6px;
}

.lyrics__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 8px;
  text-align: center;
  color: var(--ink-3);
  font-size: 0.82rem;
}

.lyrics__empty .tiny {
  color: var(--ink-4);
  font-size: 0.68rem;
}

/* 没歌词时的跳动节拍 */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
}

.eq i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(109, 92, 255, 0.75), rgba(47, 208, 185, 0.75));
  transform-origin: bottom;
  animation: eqBeat 1.1s ease-in-out infinite;
}

.eq i:nth-child(2) { animation-delay: 0.18s; }
.eq i:nth-child(3) { animation-delay: 0.36s; }
.eq i:nth-child(4) { animation-delay: 0.54s; }

@keyframes eqBeat {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

.lyrics p {
  font-size: 0.82rem;
  line-height: 1.95;
  color: var(--ink-4);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer;
}

.lyric-line:hover {
  color: var(--ink-2);
}

.lyrics > p:only-child {
  text-align: center;
  color: var(--ink-4);
}

.lyric-line.is-current {
  color: var(--ink);
  font-weight: 620;
  transform: translateX(3px);
}

/* ------------------------------------------------------------- playlist */
.playlist-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.song {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
}

.song:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.song.is-playing {
  background:
    linear-gradient(155deg, rgba(109, 92, 255, 0.16), rgba(255, 255, 255, 0.5));
  border-color: rgba(109, 92, 255, 0.28);
}

.song__cover {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(17, 25, 54, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.song__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.song__meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.song__title {
  font-size: 0.92rem;
  font-weight: 580;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song__artist {
  font-size: 0.74rem;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.song__chips {
  display: flex;
  gap: 6px;
}

.song__play {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 0.62rem;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.song.is-playing .song__play {
  color: #fff;
  background: linear-gradient(140deg, #151b2c, #313a5c);
}

/* --------------------------------------------------------------- playbar */
.playbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(10px, 2vw, 20px);
  z-index: 60;
  display: flex;
  justify-content: center;
  padding-inline: clamp(10px, 3vw, 24px);
  pointer-events: none;
}

.playbar {
  pointer-events: auto;
  position: relative;
  width: min(560px, 100%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.playbar:not(.is-visible) {
  pointer-events: none;
}

.playbar.is-visible {
  opacity: 1;
  transform: none;
}

.playbar__cover {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(17, 25, 54, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.playbar__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playbar__text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.playbar__title {
  font-size: 0.78rem;
  font-weight: 580;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playbar__artist {
  font-size: 0.66rem;
  line-height: 1.3;
  color: var(--ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.playbar .progress-container {
  width: clamp(56px, 13vw, 104px);
  height: 4px;
  flex: 0 0 auto;
}

.playbar__ctrls {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.playbar__skip {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: var(--ink-3);
  font-size: 0.72rem;
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
}

.playbar__skip:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

/* mini popover list */
.mini-music-list {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 10px);
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  box-shadow: 0 30px 60px -34px rgba(17, 25, 54, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}

.mini-music-list.show {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mini-music-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}

.mini-music-item:hover {
  background: rgba(255, 255, 255, 0.85);
}

.mini-music-item.active {
  background: rgba(109, 92, 255, 0.14);
  font-weight: 600;
}

.mini-music-item .idx {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-4);
  width: 16px;
}

.mini-music-item .name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 播放列表保持单列，阅读顺序从上到下 */
.playlist .masonry {
  column-count: 1;
}

/* ---------------------------------------------------------------- footer */
.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: clamp(40px, 6vw, 72px);
  font-size: 0.74rem;
  color: var(--ink-4);
}

.foot__links {
  display: flex;
  gap: 16px;
}

.foot a:hover {
  color: var(--ink-2);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 980px) {
  .music {
    grid-template-columns: 1fr;
  }

  .now {
    position: static;
  }

  .promise {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .shell {
    padding-top: clamp(92px, 20vw, 112px);
  }

  .dock {
    gap: 8px;
    padding: 6px 8px 6px 10px;
  }

  .brand-name,
  .dock__side .chip {
    display: none;
  }

  .tab-btn {
    padding: 7px 13px;
    font-size: 0.76rem;
  }

  .hero {
    padding-top: 8px;
  }

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

  .stat {
    padding: 18px 20px;
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
  }

  .stat + .stat::before {
    left: 20px;
    right: 20px;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(17, 25, 54, 0.12), transparent);
  }

  .stat__label {
    font-size: 0.7rem;
  }

  .playbar {
    gap: 8px;
    padding: 5px 10px 5px 5px;
  }

  .playbar .progress-container {
    display: none;
  }

  .playbar__cover {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }

  .playbar__skip {
    width: 22px;
    height: 22px;
  }

  .lyrics {
    max-height: 190px;
  }

  .gallery {
    padding-top: 12px;
  }

  /* 手机上这些大面积卡片不参与背景模糊，滚动更跟手 */
  .photo-card,
  .song,
  .link-card,
  .steps__item,
  .code-card {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(255, 255, 255, 0.66);
  }

  .glass--ink {
    background: linear-gradient(150deg, rgba(16, 21, 34, 0.96) 0%, rgba(22, 28, 45, 0.94) 100%);
  }
}

@media (max-width: 420px) {
  .tab-btn {
    padding: 6px 10px;
    font-size: 0.72rem;
  }

}

/* ------------------------------------------- 手机端音乐：紧凑布局，别占满一屏 */
@media (max-width: 720px) {
  .now {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 10px 14px;
    padding: 14px;
    align-items: start;
  }

  .now__cover {
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 104px;
    height: 104px;
    border-radius: 18px;
    box-shadow: 0 14px 30px -20px rgba(17, 25, 54, 0.6);
  }

  .now__meta {
    grid-column: 2;
    grid-row: 1;
  }

  .now__chips {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
  }

  .seek {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .controls {
    grid-column: 1 / -1;
    grid-row: 4;
    margin-top: 2px;
  }

  .lyrics-head {
    grid-column: 1 / -1;
    grid-row: 5;
  }

  .lyrics {
    grid-column: 1 / -1;
    grid-row: 6;
    max-height: 116px;
  }

  .now__title {
    font-size: 1.05rem;
  }

  .now__artist {
    font-size: 0.78rem;
  }

  .now__chips .chip {
    font-size: 0.66rem;
    padding: 4px 10px;
  }

  .playlist {
    padding-top: 2px;
  }
}

/* 迷你播放条里的当前歌词（灵动岛） */
.playbar__lyric {
  font-size: 0.66rem;
  line-height: 1.25;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.playbar__lyric:empty {
  display: none;
}

.playbar.has-lyric .playbar__artist {
  display: none;
}



/* ------------------------------------------------------------ 教程视频 */
.video-card {
  padding: 10px;
}

.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--r-lg) - 8px);
  overflow: hidden;
  background: rgba(17, 25, 54, 0.08);
}

.video-frame video,
.video-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.video-frame[data-empty]::before {
  content: "还没有视频 · 后台「图片」页可以上传";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink-4);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.video-fallback {
  display: inline-block;
  margin: 10px 6px 2px;
  font-size: 0.72rem;
  color: var(--ink-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 视频按原始比例显示（竖屏录屏也正常） */
.video-frame.has-video {
  aspect-ratio: auto;
  background: #0b0f1a;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

/* 竖屏视频时整张卡片也收窄，别留两条黑边 */
.video-card:has(.video-frame.has-video) {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.video-frame.has-video video {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  margin-inline: auto;
}
/* 折叠状态的播放按钮 */
.video-toggle {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(150deg, rgba(21, 27, 44, 0.94), rgba(47, 58, 92, 0.9));
  color: #eef2ff;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease);
}

.video-toggle:hover {
  background: linear-gradient(150deg, rgba(30, 38, 62, 0.96), rgba(58, 71, 112, 0.92));
}

.video-toggle__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  padding-left: 4px;
  font-size: 1.05rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* 折叠状态收成一条，不占大半屏 */
.video-frame.is-collapsed {
  aspect-ratio: auto;
  height: 76px;
}

.video-frame.is-collapsed .video-toggle {
  flex-direction: row;
  gap: 12px;
  font-size: 0.85rem;
}

.video-frame.is-collapsed .video-toggle__play {
  width: 38px;
  height: 38px;
  font-size: 0.82rem;
  padding-left: 3px;
}
/* 播放中的「收起」按钮 */
.video-collapse {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: #f2f5ff;
  background: rgba(15, 20, 34, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.video-collapse:hover {
  background: rgba(15, 20, 34, 0.75);
}
/* 视频弹层：模组库里的 mp4 直接播放 */
html.no-scroll { overflow: hidden; }

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 4vw, 40px);
  background: rgba(12, 16, 28, 0.62);
  backdrop-filter: blur(8px);
}

.video-modal.is-open { display: flex; }

.video-modal__box {
  position: relative;
  width: fit-content;
  max-width: min(1080px, 100%);
  max-height: 100%;
  display: flex;
  padding: 10px;
  border-radius: 22px;
  background: rgba(18, 22, 34, 0.92);
  box-shadow: 0 30px 90px rgba(8, 12, 22, 0.45);
}

.video-modal__player {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 96px);
  border-radius: 14px;
  background: #000;
}

.video-modal__close {
  position: absolute;
  top: -14px;
  right: -14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #fff;
  background: rgba(20, 24, 36, 0.9);
  box-shadow: 0 6px 18px rgba(8, 12, 22, 0.35);
}
/* ---------------------------------------------------------------- 小游戏卡片 */
.game-card {
  position: relative;
  isolation: isolate;
}

.game-card__mark {
  position: relative;
  overflow: hidden;
  color: #dbe8ff;
  letter-spacing: 0.06em;
  background: radial-gradient(circle at 32% 24%, #2b3656, #0b1020 72%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
    inset 0 -8px 14px -10px rgba(120, 170, 255, 0.6),
    0 10px 24px -18px rgba(11, 20, 40, 0.9);
}

.game-card__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1.4px 1.4px at 26% 30%, rgba(255, 255, 255, 0.95), transparent 60%),
    radial-gradient(1.4px 1.4px at 69% 22%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(2px 2px at 63% 71%, rgba(178, 220, 255, 0.9), transparent 60%),
    radial-gradient(1.4px 1.4px at 33% 79%, rgba(255, 255, 255, 0.65), transparent 60%);
  animation: game-twinkle 3.8s ease-in-out infinite;
}

@keyframes game-twinkle {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.game-card::after {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 175, 255, 0.35), transparent 68%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
  z-index: -1;
  pointer-events: none;
}

.game-card:hover::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .game-card__mark::after { animation: none; }
}
/* 手机端：播放条要能看清，不能和正文/浏览器底栏糊在一起 */
@media (max-width: 760px) {
  .playbar-wrap {
    /* --vv-bottom 由 JS 按「布局视口 - 可视视口」写入，避开安卓浏览器底部工具栏 */
    bottom: calc(var(--vv-bottom, 0px) + 8px + env(safe-area-inset-bottom, 0px));
    padding-inline: 10px;
  }

  .playbar,
  .playbar.glass,
  .playbar.glass--refract {
    background: rgba(255, 255, 255, 0.985);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow:
      0 18px 44px -26px rgba(16, 24, 48, 0.55),
      0 3px 12px rgba(16, 24, 48, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.9);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .playbar::before,
  .playbar::after {
    display: none;
  }

  body {
    padding-bottom: calc(84px + var(--vv-bottom, 0px) + env(safe-area-inset-bottom, 0px));
  }
}
/* 自动播放被拦时的「开声音」提示 */
#audio-nudge {
  position: fixed;
  left: 50%;
  bottom: calc(var(--vv-bottom, 0px) + 92px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 95;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 26px 60px -28px rgba(17, 25, 54, 0.8);
  animation: nudge-in 0.42s cubic-bezier(0.3, 1.4, 0.4, 1) both;
}

#audio-nudge::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: inherit;
  border: 1px solid rgba(90, 140, 255, 0.35);
  animation: nudge-ring 1.8s ease-out infinite;
  pointer-events: none;
}

#audio-nudge .audio-nudge__ico { font-size: 0.95rem; }

@keyframes nudge-in {
  from { opacity: 0; transform: translate(-50%, -10px) scale(0.9); }
  to   { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

@keyframes nudge-ring {
  0%   { opacity: 0.9; transform: scale(0.96); }
  70%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; transform: scale(1.12); }
}
