/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Always honor the hidden attribute, even on elements with a display rule
   (e.g. .sc-track, .blog-card) — used by the "Show more" pager. */
[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #0b1033;
  background: radial-gradient(ellipse at 50% 0%, #121c4a 0%, #080c26 50%, #040712 100%);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── Full-Screen Background Canvas (fixed) ─────────────── */
#game-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: block;
  z-index: 0;
  pointer-events: none; /* don't block scrolling */
}

/* ── Scrollable Content Overlay ────────────────────────── */
#content {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

/* ── Section Base ──────────────────────────────────────── */
.section {
  min-height: 100vh;
  padding: 100px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ── Hero Section ──────────────────────────────────────── */
.hero-section {
  min-height: 100vh;
  justify-content: center;
}

#hero {
  text-align: center;
  margin-bottom: 2rem;
}

#name {
  font-size: clamp(3rem, 10vw, 6rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #7ec8e3;
  text-shadow:
    0 0 30px rgba(126, 200, 227, 0.4),
    0 0 60px rgba(126, 200, 227, 0.15),
    0 4px 12px rgba(0,0,0,0.3);
  user-select: none;
}

#tagline {
  font-size: clamp(0.9rem, 2.5vw, 1.3rem);
  letter-spacing: 0.15em;
  color: rgba(126, 200, 227, 0.7);
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  margin-top: 0.5rem;
  text-transform: uppercase;
  user-select: none;
}

/* ── Navigation Links ──────────────────────────────────── */
#nav-links {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: 0.08em;
  font-weight: 600;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 100%;
  height: 2px;
  background: #fff;
  transition: transform 0.2s ease;
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* ── Hint & Scroll Indicator ───────────────────────────── */
#hint {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  user-select: none;
  margin-bottom: 1rem;
}

#hint kbd {
  background: rgba(255,255,255,0.1);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
}

.scroll-indicator {
  color: rgba(255,255,255,0.3);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  animation: bounce 2s infinite;
  user-select: none;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ── Section Titles ────────────────────────────────────── */
.section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

/* ── Contact ───────────────────────────────────────────── */
.contact-card {
  width: 100%;
  max-width: 460px;
  background: rgba(6, 10, 30, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 2rem 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.5);
}

.contact-label {
  margin: 0 0 0.6rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.contact-email {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #7ec8e3;
  text-decoration: none;
  border-bottom: 1px dashed rgba(126, 200, 227, 0.4);
  padding-bottom: 2px;
  word-break: break-all;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.contact-email:hover {
  color: #fff;
  border-color: #fff;
}

.contact-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
}

/* ---- LIVE badge ---- */
.section-title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 3rem;
}
.section-title-row .section-title { margin-bottom: 0; }
.live-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #0b1033;
  background: #ff5f56;
  box-shadow: 0 0 16px rgba(255, 95, 86, 0.45);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 12px rgba(255, 95, 86, 0.35); }
  50%      { box-shadow: 0 0 26px rgba(255, 95, 86, 0.75); }
}
.debug-caption {
  max-width: 640px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: -1.5rem 0 1.5rem;
}
.debug-attribution {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.debug-attribution a {
  color: rgba(126,200,227,0.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(126,200,227,0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.debug-attribution a:hover {
  color: #7ec8e3;
  border-color: #7ec8e3;
}
.tl.live { color: #ff5f56; font-weight: 600; }
.tl.hash { color: #9be29b; }
.tl.meta { color: rgba(212,224,232,0.5); font-size: 0.85rem; }
.tl.msg { color: #d4e0e8; }
.tl.stat { color: #ffd479; }

/* ── Track List (Music Section) — SoundCloud-style ─────── */
.track-list {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── "Show more" pager (music list + blog grid) ────────── */
.list-more {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.4rem;
}

.list-more-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  padding: 0.6rem 1.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.12s ease;
}

.list-more-btn:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  transform: translateY(-1px);
}

.list-more-btn:active {
  transform: scale(0.97);
}

.sc-track {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: rgba(17, 21, 39, 0.85);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 0.8rem 1rem 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.sc-track:hover {
  background: rgba(30, 35, 60, 0.95);
  border-color: rgba(255,255,255,0.16);
}

.sc-track.playing {
  border-color: rgba(255,85,0,0.55);
  box-shadow: 0 0 22px rgba(255,85,0,0.12);
}

/* SoundCloud orange circular play/pause button */
.sc-play {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  margin-top: 2px;
  border: none;
  border-radius: 50%;
  background: #ff5500;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease, transform 0.12s ease, box-shadow 0.18s ease;
  box-shadow: 0 2px 10px rgba(255,85,0,0.35);
}

.sc-play:hover {
  background: #ff6b1f;
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255,85,0,0.5);
}

.sc-play:active {
  transform: scale(0.95);
}

.sc-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  display: block;
  pointer-events: none;
}

.sc-play .sc-ico-pause { display: none; }

.sc-track.playing .sc-play .sc-ico-play  { display: none; }
.sc-track.playing .sc-play .sc-ico-pause { display: block; }

.sc-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding-top: 2px;
}

.sc-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

/* Left cluster inside .sc-top: 原创/Cover badge + track title. */
.sc-left {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.sc-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.sc-track.playing .sc-title {
  color: #ff7a2f;
}

.sc-time {
  flex: 0 0 auto;
  font-size: 0.78rem;
  font-family: "SF Mono", "Menlo", monospace;
  letter-spacing: 0.03em;
  color: rgba(255,255,255,0.45);
}

/* Right column inside .sc-top: elapsed time + play count, stacked. */
.sc-side {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}

.sc-plays {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.38);
  white-space: nowrap;
}

.sc-plays-num {
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(255,255,255,0.6);
}

.sc-wave {
  position: relative;
  width: 100%;
  height: 56px;
  border-radius: 8px;
  cursor: pointer;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
}

.sc-wave-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.sc-track.has-error .sc-wave {
  opacity: 0.5;
}

/* ── Debug Section & Terminal ─────────────────────────── */
.debug-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.debug-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.debug-controls select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  cursor: pointer;
  min-width: 160px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.debug-controls select:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.25);
}

.debug-controls select:focus {
  border-color: #7ec8e3;
}

.debug-controls select option {
  background: #0b1033;
  color: #fff;
}

.debug-controls button {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.5rem 1.1rem;
  cursor: pointer;
  align-self: flex-end;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.debug-controls button:hover {
  background: rgba(126,200,227,0.15);
  border-color: #7ec8e3;
}

.debug-controls button:active {
  transform: scale(0.97);
}

/* ── Terminal ─────────────────────────────────────────── */
.terminal {
  width: 100%;
  max-width: 760px;
  background: rgba(2, 6, 16, 0.92);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.45);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.terminal-bar .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.terminal-bar .red    { background: #ff5f56; }
.terminal-bar .yellow { background: #ffbd2e; }
.terminal-bar .green  { background: #27c93f; }

.terminal-title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.05em;
}

.terminal-output {
  height: 400px;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  font-family: "SF Mono", "Menlo", "Monaco", "Consolas", "Liberation Mono", monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #d4e0e8;
  scroll-behavior: smooth;
}

/* terminal lines */
.tl { white-space: pre-wrap; word-break: break-word; margin: 0; }

.tl.cmd  { color: #7ec8e3; }
.tl.info { color: #ffd479; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; font-size: 0.8rem; }
.tl.dim  { color: rgba(212,224,232,0.45); }
.tl.sel  { color: #9be29b; font-weight: 600; }

.tl.choice {
  color: rgba(212,224,232,0.85);
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.1s ease, color 0.1s ease;
}

.tl.choice:hover {
  background: rgba(126,200,227,0.12);
  color: #7ec8e3;
}

.tl.prompt { color: #9be29b; }

.terminal-output::-webkit-scrollbar {
  width: 10px;
}

.terminal-output::-webkit-scrollbar-track {
  background: transparent;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 5px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.25);
}

/* ── Blog Section ──────────────────────────────────────── */
.blog-caption {
  max-width: 640px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: -1.5rem 0 2rem;
}

.blog-grid {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.blog-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.blog-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.blog-card-cover {
  height: 170px;
  overflow: hidden;
  background: rgba(2,6,16,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-card-cover img {
  transform: scale(1.05);
}

.blog-card-cover-text {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: rgba(126,200,227,0.5);
  text-shadow: 0 0 20px rgba(126,200,227,0.3);
}

.blog-card-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.blog-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7ec8e3;
  background: rgba(126,200,227,0.12);
  border: 1px solid rgba(126,200,227,0.3);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  align-self: flex-start;
}

.blog-date {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.4);
}

.blog-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.blog-media-badge {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  margin-top: auto;
}

/* Read counter on blog cards + post detail. */
.blog-card-stats {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.blog-reads {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.42);
}

.blog-reads-num {
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(255,255,255,0.65);
}

.blog-post-header .blog-reads {
  color: rgba(255,255,255,0.5);
}

/* ── Blog Post Detail ─────────────────────────────────── */
.blog-detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(3,6,18,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

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

.blog-detail-inner {
  width: 100%;
  max-width: 760px;
  background: rgba(6,10,30,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 2.2rem 2.4rem 2.6rem;
  position: relative;
  box-shadow: 0 12px 60px rgba(0,0,0,0.6);
  animation: panelIn 0.25s ease;
  margin: auto 0;
}

.blog-detail-close {
  position: absolute;
  top: 0.7rem;
  right: 1rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.blog-detail-close:hover { color: #fff; }

.blog-post-header {
  margin-bottom: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-post-title {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.blog-post-header .blog-date { font-size: 0.82rem; }

.blog-text {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.75);
}

.blog-text p { margin: 0 0 1.1rem; }
.blog-text p:last-child { margin-bottom: 0; }

.blog-figure {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-img,
.blog-video {
  width: 100%;
  border-radius: 12px;
  display: block;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.blog-figcaption {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* Blog mobile tweaks */
@media (max-width: 600px) {
  .blog-detail { padding: 0.8rem; }
  .blog-detail-inner { padding: 1.5rem 1.2rem 1.8rem; }
}

/* ── Apps / Game Section ───────────────────────────────── */
.apps-caption,
.game-caption {
  max-width: 640px;
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.6;
  margin: -1.5rem 0 2rem;
}

#apps-gallery,
#game-gallery {
  width: 100%;
  max-width: 860px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.app-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.app-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-3px);
}

.app-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse at 50% 20%, rgba(126,200,227,0.14), transparent 70%),
    rgba(2,6,16,0.55);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.thumb-widget {
  width: 150px;
  height: 110px;
  border-radius: 12px;
  background: rgba(10,16,40,0.9);
  border: 1px solid rgba(126,200,227,0.25);
  box-shadow: 0 4px 24px rgba(0,0,0,0.5), inset 0 0 24px rgba(126,200,227,0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem;
  font-family: "SF Mono", "Menlo", monospace;
}

.thumb-clock-time {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7ec8e3;
  letter-spacing: 0.03em;
  text-shadow: 0 0 14px rgba(126,200,227,0.5);
}

.thumb-clock-tz {
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.thumb-fx-pair {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #ffd479;
  text-transform: uppercase;
}

.thumb-fx-price {
  font-size: 1.05rem;
  font-weight: 600;
  color: #9be29b;
  letter-spacing: 0.02em;
}

.thumb-cal {
  gap: 0.3rem;
  padding: 0.6rem;
}

.thumb-cal-month {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}

.thumb-cal-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.thumb-cal-grid span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.thumb-cal-grid .dot-green {
  background: #4caf7d;
  box-shadow: 0 0 6px rgba(76,175,125,0.5);
  color: transparent;
}

.thumb-cal-grid .dot-red {
  background: #ff5f56;
  box-shadow: 0 0 6px rgba(255,95,86,0.5);
  color: transparent;
}

.thumb-rechub {
  gap: 0.3rem;
  padding: 0.6rem;
}

.thumb-rechub-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff5f56;
  box-shadow: 0 0 10px rgba(255,95,86,0.9);
  animation: rechubPulse 1.6s ease-in-out infinite;
}

@keyframes rechubPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(0.8); }
}

.thumb-rechub-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: #ffd479;
  text-transform: uppercase;
  font-weight: 700;
}

.thumb-rechub-bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 34px;
}

.thumb-rechub-bars i {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #ff5500;
  box-shadow: 0 0 8px rgba(255,85,0,0.55);
  animation: rechubBars 1.1s ease-in-out infinite;
}

.thumb-rechub-bars i:nth-child(3n)   { animation-delay: -0.3s; }
.thumb-rechub-bars i:nth-child(3n+1) { animation-delay: -0.6s; }
.thumb-rechub-bars i:nth-child(3n+2) { animation-delay: -0.15s; }

@keyframes rechubBars {
  0%, 100% { height: 8px; }
  50%      { height: 30px; }
}

/* 24 Game — four cards that add up to 24 */
.thumb-24 {
  gap: 0.45rem;
  padding: 0.7rem 0.6rem;
}

.thumb-24-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
}

.thumb-24-row span {
  width: 24px;
  height: 32px;
  border-radius: 5px;
  background: rgba(126,200,227,0.10);
  border: 1px solid rgba(126,200,227,0.35);
  color: #d4e0e8;
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* the last card floats, so the tile reads as something you can play */
.thumb-24-row span:nth-child(4) {
  background: rgba(255,85,0,0.16);
  border-color: rgba(255,85,0,0.55);
  color: #ffb37a;
  animation: thumb24Float 1.8s ease-in-out infinite;
}

@keyframes thumb24Float {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 rgba(255,85,0,0); }
  50%      { transform: translateY(-3px); box-shadow: 0 6px 14px rgba(255,85,0,0.35); }
}

/* 怒海战舰 — a warship, a target and a crosshair on open water */
.thumb-sea {
  position: relative;
  overflow: hidden;
  padding: 0;
  gap: 0;
  background: linear-gradient(180deg, #0a1b28 0%, #071019 100%);
}

.thumb-sea-swell {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg,
    rgba(126,200,227,0.13) 0 1px,
    transparent 1px 13px
  );
  animation: thumbSeaSwell 5s linear infinite;
}

@keyframes thumbSeaSwell {
  from { background-position: 0 0; }
  to   { background-position: 0 13px; }
}

.thumb-sea-ship,
.thumb-sea-foe,
.thumb-sea-cross { position: absolute; }

.thumb-sea-ship {
  left: 22%;
  top: 50%;
  width: 46px;
  height: 15px;
  background: #4d5f6d;
  clip-path: polygon(100% 50%, 62% 0, 0 0, 0 100%, 62% 100%);
  animation: thumbSeaShip 2.6s ease-in-out infinite;
}

@keyframes thumbSeaShip {
  0%, 100% { transform: translateY(-50%) rotate(-2deg); }
  50%      { transform: translateY(-58%) rotate(2deg); }
}

.thumb-sea-foe {
  right: 17%;
  top: 26%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,85,102,0.85);
  box-shadow: 0 0 10px rgba(255,85,102,0.6);
  animation: thumbSeaFoe 1.4s ease-in-out infinite;
}

@keyframes thumbSeaFoe {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50%      { opacity: 1; transform: scale(1.1); }
}

.thumb-sea-cross {
  right: 30%;
  bottom: 24%;
  width: 22px;
  height: 22px;
  border: 2px solid rgba(255,212,121,0.85);
  border-radius: 50%;
  animation: thumbSeaCross 1.8s ease-in-out infinite;
}

.thumb-sea-cross::before,
.thumb-sea-cross::after {
  content: "";
  position: absolute;
  background: rgba(255,212,121,0.85);
}

.thumb-sea-cross::before {
  left: 50%;
  top: -5px;
  width: 2px;
  height: 30px;
  margin-left: -1px;
}

.thumb-sea-cross::after {
  top: 50%;
  left: -5px;
  height: 2px;
  width: 30px;
  margin-top: -1px;
}

@keyframes thumbSeaCross {
  0%, 100% { transform: scale(0.88); opacity: 0.7; }
  50%      { transform: scale(1.05); opacity: 1; }
}

.thumb-24-eq {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #7ec8e3;
}

.app-body {
  padding: 1.1rem 1.25rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.app-title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.app-desc {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.6);
  flex: 1;
}

.app-open {
  align-self: flex-start;
  background: rgba(126,200,227,0.12);
  border: 1px solid rgba(126,200,227,0.45);
  color: #7ec8e3;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.app-open:hover {
  background: rgba(126,200,227,0.22);
  box-shadow: 0 0 18px rgba(126,200,227,0.25);
}

.app-open:active {
  transform: scale(0.96);
}

.app-actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 0.2rem;
}

.app-direct {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.app-direct:hover {
  color: #7ec8e3;
}

/* App / game detail panel */
#app-detail,
#game-detail {
  width: 100%;
  max-width: 760px;
  background: rgba(6,10,30,0.85);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 1.6rem 1.8rem 2rem;
  position: relative;
  box-shadow: 0 8px 48px rgba(0,0,0,0.5);
  animation: panelIn 0.25s ease;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.app-close {
  position: absolute;
  top: 0.7rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255,255,255,0.5);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.app-close:hover { color: #fff; }

.app-panel-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 1.4rem;
}

/* App QR — inline on each app's own page, beside its intro text (not a fixed
   overlay): the code lives inside the app panel, so it sits next to the
   description and scrolls with the app.  Each panel owns one .app-qr next to
   its .cal-caption intro; WeChat scans it to open the app's same-site short
   link (PNG served by GET /api/app-qr/:key). */
.app-intro {
  display: flex;
  align-items: flex-start;
  gap: 1.4rem;
  margin: -0.6rem 0 1.5rem;
}

.app-intro .cal-caption {
  margin: 0;
}

.app-intro-text {
  flex: 1 1 auto;
  min-width: 0;
}

.app-qr {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.5rem 0.35rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
}

.app-qr-img {
  display: block;
  width: 108px;
  height: 108px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.app-qr-hint {
  font-size: 0.66rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.03em;
  text-align: center;
  max-width: 120px;
}

/* Direct app URLs (https://<domain>/{path}) — show only the app itself:
   hide every other section so the panel reads as a standalone app page. */
body.app-standalone .section:not(#apps) {
  display: none;
}

body.app-standalone #nav-links,
body.app-standalone #hint,
body.app-standalone .scroll-indicator {
  display: none;
}

body.app-standalone #apps {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.app-standalone #app-detail {
  max-width: 980px;
}

/* Direct game URLs (https://<domain>/24-game) — same idea for the Game
   section: only that game is shown, as a standalone page. */
body.game-standalone .section:not(#game) {
  display: none;
}

body.game-standalone #nav-links,
body.game-standalone #hint,
body.game-standalone .scroll-indicator {
  display: none;
}

body.game-standalone #game {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.game-standalone #game-detail {
  max-width: 980px;
}

/* FX Holiday Calendar */
.cal-caption {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
  margin: -0.8rem 0 1.2rem;
}

.cal-toolbar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.cal-nav {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  width: 38px;
  height: 38px;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.cal-nav:hover { background: rgba(126,200,227,0.15); border-color: rgba(126,200,227,0.5); }
.cal-nav:active { transform: scale(0.94); }

.cal-month-label {
  min-width: 170px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cal-today-btn {
  background: rgba(126,200,227,0.12);
  border: 1px solid rgba(126,200,227,0.45);
  color: #7ec8e3;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.cal-today-btn:hover {
  background: rgba(126,200,227,0.22);
  box-shadow: 0 0 14px rgba(126,200,227,0.25);
}

.cal-week-head {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 5px;
}

.cal-week-head span {
  text-align: center;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  padding: 0.35rem 0;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.cal-cell {
  aspect-ratio: 1;
  border: none;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: "SF Mono", "Menlo", monospace;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.2s ease;
  color: rgba(255,255,255,0.75);
}

.cal-cell:active { transform: scale(0.94); }

.cal-blank {
  cursor: default;
  background: transparent;
  border-radius: 0;
}

.cal-open {
  background: rgba(76,175,125,0.14);
  border: 1px solid rgba(76,175,125,0.35);
  color: #9be29b;
}

.cal-open:hover {
  background: rgba(76,175,125,0.22);
  box-shadow: 0 0 12px rgba(76,175,125,0.25);
}

.cal-holiday {
  background: rgba(255,95,86,0.16);
  border: 1px solid rgba(255,95,86,0.45);
  color: #ff8a7d;
}

.cal-holiday:hover {
  background: rgba(255,95,86,0.26);
  box-shadow: 0 0 12px rgba(255,95,86,0.3);
}

.cal-cell.selected {
  outline: 2px solid #7ec8e3;
  outline-offset: 1px;
  box-shadow: 0 0 14px rgba(126,200,227,0.35);
}

.cal-today {
  position: relative;
}

.cal-today::after {
  content: "";
  position: absolute;
  top: 5px;
  right: 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7ec8e3;
  box-shadow: 0 0 6px rgba(126,200,227,0.8);
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.2rem;
  margin-top: 1.1rem;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.5);
}

.cal-leg {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.leg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.leg-green { background: #4caf7d; box-shadow: 0 0 6px rgba(76,175,125,0.5); }
.leg-red   { background: #ff5f56; box-shadow: 0 0 6px rgba(255,95,86,0.5); }

.cal-detail {
  margin-top: 1.2rem;
  background: rgba(255,95,86,0.08);
  border: 1px solid rgba(255,95,86,0.3);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  animation: panelIn 0.2s ease;
}

.cal-detail-date {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ff8a7d;
  margin-bottom: 0.6rem;
}

.cal-detail-currencies {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cal-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,95,86,0.12);
  border: 1px solid rgba(255,95,86,0.35);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.85);
}

.cal-chip strong {
  color: #ff8a7d;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.9rem;
}

/* FX */
.fx-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
}

.fx-controls label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}

.fx-controls select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 8px;
  color: #fff;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  outline: none;
  cursor: pointer;
  min-width: 220px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.fx-controls select:hover { background: rgba(255,255,255,0.08); border-color: rgba(126,200,227,0.5); }
.fx-controls select:focus { border-color: #7ec8e3; }
.fx-controls select option { background: #0b1033; color: #fff; }

.fx-status {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fx-status.live    { color: #9be29b; background: rgba(155,226,155,0.1); box-shadow: 0 0 12px rgba(155,226,155,0.25); }
.fx-status.loading { color: #ffd479; background: rgba(255,212,121,0.1); }
.fx-status.offline { color: #ff5f56; background: rgba(255,95,86,0.1); }

.fx-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
}

.fx-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.fx-table th {
  text-align: left;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.fx-table td {
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}

.fx-table tr:last-child td { border-bottom: none; }

.fx-pair { font-weight: 600; color: #d4e0e8; }
.fx-num  { font-family: "SF Mono", "Menlo", monospace; color: rgba(255,255,255,0.85); }
.fx-trend { font-family: "SF Mono", "Menlo", monospace; font-weight: 700; }
.fx-trend.up   { color: #9be29b; }
.fx-trend.down { color: #ff5f56; }
.fx-trend.flat { color: rgba(255,255,255,0.35); }

.fx-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fx-note p { margin: 0; }

.fx-note a {
  color: rgba(126,200,227,0.85);
  text-decoration: none;
  border-bottom: 1px dotted rgba(126,200,227,0.4);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.fx-note a:hover {
  color: #7ec8e3;
  border-color: #7ec8e3;
}

/* ── 24 点 · 24 Game ───────────────────────────────────── */
.g24-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.g24-cards {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 112px;
}

.g24-card {
  width: 78px;
  height: 108px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(24,34,68,0.95), rgba(10,16,40,0.95));
  border: 1px solid rgba(126,200,227,0.28);
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #eaf3f9;
  font-family: "SF Mono", "Menlo", monospace;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.g24-card:hover {
  transform: translateY(-4px);
  border-color: rgba(126,200,227,0.6);
}

.g24-card-value {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.g24-card-suit {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* Merged cards carry the arithmetic that produced them. */
.g24-card-expr {
  max-width: 70px;
  font-size: 0.6rem;
  line-height: 1.25;
  text-align: center;
  word-break: break-all;
  color: rgba(126,200,227,0.85);
}

.g24-selected {
  border-color: #ffd479;
  box-shadow: 0 0 0 2px rgba(255,212,121,0.35), 0 6px 24px rgba(255,212,121,0.28);
  transform: translateY(-4px);
}

/* Last card on the table — bigger, so the payoff reads at a glance. */
.g24-single {
  width: 96px;
  height: 126px;
  border-color: rgba(155,226,155,0.55);
}

.g24-ops {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
}

.g24-op {
  width: 54px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.8);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.g24-op:hover {
  background: rgba(126,200,227,0.16);
  border-color: rgba(126,200,227,0.5);
  color: #7ec8e3;
}

.g24-op:active { transform: scale(0.95); }

.g24-op-active {
  background: rgba(255,212,121,0.18);
  border-color: rgba(255,212,121,0.7);
  color: #ffd479;
}

.g24-status {
  min-height: 1.4em;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.6);
}

.g24-win  { color: #9be29b; border-color: rgba(155,226,155,0.45); background: rgba(155,226,155,0.08); }
.g24-hint { color: #7ec8e3; border-color: rgba(126,200,227,0.45); background: rgba(126,200,227,0.08); }
.g24-warn { color: #ffb37a; border-color: rgba(255,179,122,0.45); background: rgba(255,179,122,0.08); }

.g24-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
}

.g24-btn {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.78);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.1s ease;
}

.g24-btn:hover {
  background: rgba(126,200,227,0.16);
  border-color: rgba(126,200,227,0.45);
  color: #7ec8e3;
}

.g24-btn:active { transform: scale(0.96); }

.g24-btn:disabled {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.35);
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.g24-primary {
  background: rgba(126,200,227,0.14);
  border-color: rgba(126,200,227,0.5);
  color: #7ec8e3;
}

.g24-primary:hover {
  background: rgba(126,200,227,0.26);
  box-shadow: 0 0 18px rgba(126,200,227,0.25);
}

.g24-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
}

.g24-timer {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7ec8e3;
}

.g24-stats { letter-spacing: 0.04em; }

.g24-keys {
  flex: 1 1 100%;
  text-align: center;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.3);
}

/* ── 怒海战舰 · Naval Fury ─────────────────────────────── */
.sb-board {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* the canvas and its overlays share one positioning context */
.sb-stage {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(126,200,227,0.22);
  background: #071019;
  box-shadow: 0 10px 34px rgba(0,0,0,0.45);
}

.sb-canvas {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 8 / 5;
  cursor: crosshair;
  touch-action: none;
}

.sb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.2rem;
  text-align: center;
  background: rgba(4,12,18,0.72);
}

.sb-overlay-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
}

.sb-overlay-text {
  max-width: 460px;
  font-size: 0.8rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

/* phone / tablet: the game is keyboard + mouse only (see sbIsDesktop) */
.sb-desktop-only {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.4rem;
  text-align: center;
  background: rgba(4,12,18,0.92);
}

.sb-desktop-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffb37a;
}

.sb-desktop-text {
  max-width: 420px;
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.6);
}

.sb-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
}

.sb-hud-item b {
  font-weight: 700;
  color: #9be29b;
}

.sb-timer {
  font-family: "SF Mono", "Menlo", monospace;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #7ec8e3;
}

.sb-keys-row { margin-top: 0.9rem; }

/* ── Responsive: Mobile ────────────────────────────────── */
@media (max-width: 600px) {
  .section {
    padding: 80px 16px 60px;
  }

  #nav-links {
    gap: 1rem;
  }

  .nav-link {
    font-size: 0.85rem;
  }

  #hint {
    font-size: 0.75rem;
  }

  .sc-track {
    padding: 0.7rem 0.8rem 0.8rem;
    gap: 0.7rem;
  }

  .sc-play {
    width: 42px;
    height: 42px;
  }

  .sc-play svg {
    width: 19px;
    height: 19px;
  }

  .sc-title {
    font-size: 0.92rem;
  }

  .sc-time {
    font-size: 0.72rem;
  }

  .sc-wave {
    height: 48px;
  }

  .debug-controls {
    gap: 0.75rem;
  }

  .debug-controls select {
    min-width: 130px;
    font-size: 0.85rem;
  }

  .terminal-output {
    height: 320px;
    font-size: 0.78rem;
    padding: 0.8rem 0.9rem;
  }

  /* Apps / Game mobile */
  #apps-gallery,
  #game-gallery {
    grid-template-columns: 1fr;
  }

  .app-thumb {
    height: 140px;
  }

  /* 24 点 · 24 Game mobile */
  .g24-card {
    width: 64px;
    height: 92px;
  }

  .g24-card-value { font-size: 1.25rem; }
  .g24-card-expr { max-width: 56px; font-size: 0.55rem; }
  .g24-op { width: 46px; height: 40px; font-size: 1.1rem; }
  .g24-keys { display: none; } /* phones have no hardware keyboard */

  /* 怒海战舰 is desktop-only; phones get the notice, so keep it compact */
  .sb-overlay { padding: 0.9rem; }
  .sb-overlay-title { font-size: 1.05rem; }
  .sb-overlay-text { font-size: 0.72rem; }
  .sb-desktop-title { font-size: 0.95rem; }
  .sb-desktop-text { font-size: 0.74rem; }
  .sb-hud { gap: 0.35rem 0.7rem; font-size: 0.7rem; }

  #app-detail,
  #game-detail {
    padding: 1.2rem 1.1rem 1.5rem;
  }

  .app-intro {
    flex-direction: column;
    align-items: center;
    gap: 0.9rem;
  }

  .app-intro-text {
    width: 100%;
  }

  .cal-toolbar {
    gap: 0.5rem;
  }

  .cal-month-label {
    min-width: 130px;
    font-size: 0.92rem;
  }

  .cal-nav {
    width: 34px;
    height: 34px;
  }

  .cal-today-btn {
    font-size: 0.66rem;
    padding: 0.4rem 0.7rem;
  }

  .cal-grid {
    gap: 3px;
  }

  .cal-week-head {
    gap: 3px;
  }

  .cal-cell {
    border-radius: 7px;
    font-size: 0.76rem;
  }

  .cal-legend {
    gap: 0.7rem;
    font-size: 0.7rem;
  }

  .cal-chip {
    font-size: 0.76rem;
    padding: 0.3rem 0.65rem;
  }

  .fx-controls {
    flex-direction: column;
    align-items: flex-start;
  }

  .fx-controls select {
    min-width: 100%;
  }

  .fx-table {
    font-size: 0.82rem;
  }

  .fx-table th,
  .fx-table td {
    padding: 0.55rem 0.65rem;
  }

}

/* ── Share buttons ──────────────────────────────────────────────────── */
/* Small ghost icon button on each music track row. */
.sc-share {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.sc-share:hover {
  background: rgba(126, 200, 227, 0.16);
  border-color: rgba(126, 200, 227, 0.45);
  color: #7ec8e3;
}

/* Small share icon inside each blog card (does not open the post). */
.card-share {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.card-share:hover {
  background: rgba(126, 200, 227, 0.16);
  border-color: rgba(126, 200, 227, 0.45);
  color: #7ec8e3;
}

/* Share button in the blog detail header. */
.blog-share-btn {
  align-self: flex-start;
  border: 1px solid rgba(126, 200, 227, 0.4);
  border-radius: 999px;
  background: rgba(126, 200, 227, 0.1);
  color: #7ec8e3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
}

.blog-share-btn:hover {
  background: rgba(126, 200, 227, 0.22);
  color: #9fdcf2;
}

.blog-share-btn:active {
  transform: scale(0.96);
}

/* ── Share modal ────────────────────────────────────────────────────── */
.share-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.share-modal-inner {
  width: 100%;
  max-width: 460px;
  background: rgba(6, 10, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
  animation: sharePanelIn 0.25s ease;
}

@keyframes sharePanelIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.share-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.share-modal-close:hover {
  color: #fff;
}

.share-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.share-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.3rem;
  margin-bottom: 1.3rem;
}

.share-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.share-qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.share-qr {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}

.share-qr-hint {
  font-size: 0.74rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  max-width: 250px;
}

.share-actions {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.share-row {
  display: flex;
  gap: 0.5rem;
}

.share-input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  font-family: "SF Mono", "Menlo", monospace;
  padding: 0.55rem 0.7rem;
  outline: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-input:focus {
  border-color: rgba(126, 200, 227, 0.5);
}

.share-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(126, 200, 227, 0.4);
  border-radius: 9px;
  background: rgba(126, 200, 227, 0.1);
  color: #7ec8e3;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.share-btn:hover {
  background: rgba(126, 200, 227, 0.22);
  color: #9fdcf2;
}

.share-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.share-btn-row {
  display: flex;
  gap: 0.5rem;
}

.share-btn-row .share-btn {
  flex: 1;
}

.share-status {
  min-height: 1.1em;
  font-size: 0.76rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

@media (max-width: 480px) {
  .share-modal-inner {
    padding: 1.7rem 1.2rem 1.4rem;
  }

  .share-qr {
    width: 190px;
    height: 190px;
  }
}

/* ── ICP 备案号 ────────────────────────────────────────────────────── */
/* 低调地显示在页面底部，满足工信部备案要求，不干扰页面内容。 */
.site-icp {
  text-align: center;
  font-size: 12px;
  color: #999;
  padding: 20px 0 30px;
}

.site-icp a {
  color: #999;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-icp a:hover {
  color: rgba(126, 200, 227, 0.8);
}


/* ── REC HUB ────────────────────────────────────────────── */
.track-list {
  max-width: 640px;
  gap: 1rem;
}

.hub-toolbar {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.2rem;
}

.hub-admin,
.studio-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: rgba(17, 21, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
}

.hub-admin-user {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: #9be29b;
  font-weight: 600;
  margin-right: auto;
}

.hub-login-note {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.hub-login-note a {
  color: #7ec8e3;
}

.studio-checkout {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.studio-status {
  font-size: 0.8rem;
  color: #ffd479;
}

.studio-status.error {
  color: #ff5f56;
}

.studio-device {
  max-width: 180px;
  font-size: 0.78rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
}

.studio-device option {
  color: #11152a;
}

.studio-phones {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
}

.studio-phones input {
  accent-color: #9be29b;
  cursor: pointer;
}

/* Checkbox group in the record-setup dialog: 监听 Monitor / Headphones /
   No backing stack under the input-channel field. The .studio-phones rows were
   designed for the old compact top bar (nowrap); inside the narrow modal the
   longer option text must be allowed to wrap. */
.rc-take-opts {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.6rem;
  margin: 0.15rem 0 0.85rem;
  padding: 0.7rem 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
}

.rc-take-opts .studio-phones {
  white-space: normal;
  line-height: 1.45;
  align-items: flex-start;
}

.rc-take-opts .studio-phones input {
  margin-top: 0.2rem;
}

.rc-btn {
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.18s ease, transform 0.12s ease, opacity 0.18s ease;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.rc-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.rc-btn:active {
  transform: scale(0.97);
}

.rc-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.rc-btn-primary {
  background: #ff5500;
  border-color: #ff5500;
  box-shadow: 0 2px 12px rgba(255, 85, 0, 0.35);
}

.rc-btn-primary:hover {
  background: #ff6b1f;
}

.rc-btn-record {
  background: #e0245e;
  border-color: #e0245e;
  box-shadow: 0 0 14px rgba(224, 36, 94, 0.4);
}

.rc-btn-record:hover {
  background: #f0386d;
}

.rc-btn-ghost {
  background: transparent;
}

.rc-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.18s ease, color 0.18s ease;
}

.rc-icon-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* REC HUB — the ▾/▸ commit-history toggle on each repo's header row. This is
   how you open the takes under a recording, so it gets a larger, clearly
   visible target than the plain 32px icon buttons beside it. */
.rc-repo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-size: 1.05rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

.rc-repo-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.repo-list {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.rc-repo {
  background: rgba(17, 21, 39, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.rc-repo:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(30, 35, 60, 0.95);
}

.rc-repo-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.8rem 1rem;
}

.rc-play {
  width: 44px;
  height: 44px;
  margin-top: 0;
  flex: 0 0 auto;
}

/* REC HUB — a repo card whose sound is playing swaps its play button for a
   pause button (the two SVGs are rendered side by side, shown/hidden here). */
.rc-repo.playing .rc-play .sc-ico-play  { display: none; }
.rc-repo.playing .rc-play .sc-ico-pause { display: block; }
.rc-repo.playing .rc-play {
  background: #ff7a2f;
  box-shadow: 0 0 0 3px rgba(255, 122, 47, 0.28), 0 2px 10px rgba(255, 85, 0, 0.35);
}

.rc-repo-main {
  flex: 1;
  min-width: 0;
}

.rc-repo-title {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-repo-meta {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.03em;
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rc-repo-actions {
  display: flex;
  gap: 0.4rem;
  flex: 0 0 auto;
}


.rc-commit-list {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 11, 28, 0.5);
}

.rc-commit-list-inner {
  display: flex;
  flex-direction: column;
}

.rc-commit {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 1rem 0.6rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: background 0.15s ease;
}

.rc-commit:last-child {
  border-bottom: none;
}

.rc-commit:hover {
  background: rgba(255, 255, 255, 0.04);
}

.rc-commit.checked-out {
  background: rgba(255, 85, 0, 0.08);
  box-shadow: inset 3px 0 0 #ff5500;
}

.rc-commit.playing {
  background: rgba(126, 200, 227, 0.08);
}

.rc-commit-main {
  flex: 1;
  min-width: 0;
}

.rc-commit-line {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rc-hash {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.72rem;
  color: #9be29b;
  background: rgba(155, 226, 155, 0.08);
  border: 1px solid rgba(155, 226, 155, 0.18);
  border-radius: 6px;
  padding: 0.1rem 0.4rem;
  flex: 0 0 auto;
}

.rc-msg {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.rc-badge {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  flex: 0 0 auto;
}

.rc-badge-single {
  color: #7ec8e3;
  background: rgba(126, 200, 227, 0.12);
  border: 1px solid rgba(126, 200, 227, 0.25);
}

.rc-badge-overlay {
  color: #ffd479;
  background: rgba(255, 212, 121, 0.1);
  border: 1px solid rgba(255, 212, 121, 0.25);
}

/* A commit tagged as a public version (v1.0, v2.0, …) — green reads as
   "the official version the share link plays". */
.rc-badge-version {
  color: #9be29b;
  background: rgba(155, 226, 155, 0.1);
  border: 1px solid rgba(155, 226, 155, 0.25);
}

/* The recording's source type — 原创 (original) vs Cover — set when the
   recording is created. Shown on the repo's HEAD line and first commit. */
.rc-badge-original {
  color: #c8a2ff;
  background: rgba(200, 162, 255, 0.12);
  border: 1px solid rgba(200, 162, 255, 0.25);
}

.rc-badge-cover {
  color: #ff9e7a;
  background: rgba(255, 158, 122, 0.12);
  border: 1px solid rgba(255, 158, 122, 0.25);
}

/* Playback source imported from NetEase Cloud Music — shown next to the
   原创/Cover badge on the Recordings list. NetEase brand red. The badge is
   also a link that opens the song's page on music.163.com. */
.rc-badge-netease {
  color: #ff7a6e;
  background: rgba(231, 64, 47, 0.14);
  border: 1px solid rgba(231, 64, 47, 0.32);
  text-decoration: none;
}
.rc-badge-netease:hover {
  color: #fff;
  background: rgba(231, 64, 47, 0.85);
  border-color: rgba(231, 64, 47, 0.85);
}

/* A recording that belongs to a band (migration 014) — private to that
   band's members. Teal so it reads as "collaborative" next to the 原创/Cover
   badges. */
.rc-badge-band {
  color: #7ee0c8;
  background: rgba(126, 224, 200, 0.1);
  border: 1px solid rgba(126, 224, 200, 0.3);
}

/* A band recording whose share link is live (share_public) — the /recording/:id
   page is a public web page that plays the latest tagged version. Orange reads
   "published/live" and sits after the teal band badge on the header line. */
.rc-badge-share {
  color: #ffb454;
  background: rgba(255, 180, 84, 0.12);
  border: 1px solid rgba(255, 180, 84, 0.35);
}

.rc-commit-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.25rem;
}

.rc-range {
  font-family: "SF Mono", Menlo, monospace;
}

.rc-vol {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
}

.rc-vol input[type="range"] {
  width: 64px;
  accent-color: #7ec8e3;
  cursor: pointer;
}

.rc-vol-val {
  font-family: "SF Mono", Menlo, monospace;
  min-width: 2.8em;
  text-align: right;
  color: rgba(255, 255, 255, 0.65);
}

.rc-parent {
  color: rgba(255, 255, 255, 0.3);
}

.rc-parent-root {
  color: rgba(255, 255, 255, 0.25);
}

.rc-contributor {
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

/* Commit time + contributor grouped as one non-wrapping unit. */
.rc-byline {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}

.rc-checked {
  color: #ff7a2f;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rc-commit-play {
  width: 30px;
  height: 30px;
}

/* Commit-row play button: ▶ at rest, ⏸ while that commit is the one sounding */
.rc-commit-play .rc-cp-pause { display: none; }
.rc-commit.playing .rc-commit-play .rc-cp-play  { display: none; }
.rc-commit.playing .rc-commit-play .rc-cp-pause { display: inline; }
.rc-commit.playing .rc-commit-play { color: #ff7a2f; }

.rc-commit-delete {
  width: 30px;
  height: 30px;
}

.rc-commit-delete:hover {
  background: rgba(255, 85, 85, 0.16);
  border-color: rgba(255, 85, 85, 0.4);
  color: #ff6b6b;
}

.rc-commit-tag {
  width: 30px;
  height: 30px;
}

.rc-commit-tag:hover {
  background: rgba(155, 226, 155, 0.16);
  border-color: rgba(155, 226, 155, 0.4);
  color: #9be29b;
}

.rc-repo-delete:hover {
  background: rgba(255, 85, 85, 0.16);
  border-color: rgba(255, 85, 85, 0.4);
  color: #ff6b6b;
}

/* Modal */
.rc-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(3, 6, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rc-modal-inner {
  width: 100%;
  max-width: 460px;
  background: rgba(6, 10, 30, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 2rem 1.8rem 1.8rem;
  position: relative;
  box-shadow: 0 12px 60px rgba(0, 0, 0, 0.6);
  animation: panelIn 0.25s ease;
  margin: auto 0;
}

.rc-modal-close {
  position: absolute;
  top: 0.55rem;
  right: 0.9rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.rc-modal-close:hover {
  color: #fff;
}

.rc-modal-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.rc-modal-sub {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  margin: 0.35rem 0 1.1rem;
}

.rc-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.85rem;
}

.rc-field input,
.rc-field select {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: #fff;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  width: 100%;
}

.rc-field input:focus,
.rc-field select:focus {
  outline: none;
  border-color: rgba(126, 200, 227, 0.6);
}

.rc-field-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
}

.rc-vol-field {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.85rem;
}

.rc-vol-field input[type="range"] {
  flex: 1;
  accent-color: #7ec8e3;
  cursor: pointer;
}

.rc-vol-field .rc-vol-pct {
  min-width: 3.2em;
  text-align: right;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.75rem;
  color: #fff;
}

.rc-timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 1.2rem 0;
}

.rc-timer {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
}

.rc-rec-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e0245e;
  animation: live-pulse 1.4s ease-in-out infinite;
}

.rc-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}

.rc-preview-row {
  display: flex;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
}

/* The Review-take preview transport: a scrubber under the two preview buttons
   that appears once ▶ Take only / ▶ With original starts. Reuses the record-
   setup readout/bar language (see .rc-start-label above) — the clock sits on
   the label's right edge and the range bar scrubs ROOT-timeline seconds. */
.rc-preview-transport {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: -0.6rem 0 1rem;
}
.rc-preview-transport[hidden] {
  display: none; /* [hidden] must beat the display:flex above */
}
.rc-preview-transport .rc-start-label {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.55);
}
.rc-preview-transport .rc-start-label #review-prev-label {
  color: #7ec8e3;
  font-weight: 600;
}
.rc-preview-transport input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
  accent-color: #7ec8e3;
  cursor: pointer;
  width: 100%;
}
.rc-preview-transport input[type="range"]:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.rc-preview-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* The active preview button (“■ Stop”) glows like the playing-row accent. */
.rc-btn-live {
  border-color: rgba(126, 200, 227, 0.7);
  color: #7ec8e3;
  background: rgba(126, 200, 227, 0.12);
}
.rc-btn-live:hover {
  background: rgba(126, 200, 227, 0.22);
}

.rc-source-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.rc-source-status {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  min-height: 1rem;
}

/* Visually-hidden file input. Keep it off-screen but NOT display:none —
   display:none file inputs are flaky on mobile Safari (the picker opens but the
   change event may never fire). The upload button triggers input.click(). */
.rc-file-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.rc-hint {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: -0.2rem;
}

/* Warning variants of .rc-hint. The app is served with a strict CSP
   (style-src 'self' — no inline style attributes), so colors that used to be
   inline styles live here as classes instead. */
.rc-hint-danger {
  color: #c0392b;
  font-weight: 600;
}
.rc-hint-warn {
  color: #ffd479;
}

/* Live take-audio trace inside the record-session modal (attachTakeAudioDiag):
   context state + clock + graph signal at set points after Start, so a silent
   take can be traced to the context, the graph, or the OS output device. */
.rc-diag {
  margin-top: 0.6rem;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.68rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.45);
  text-align: left;
  white-space: pre-wrap;
}

/* Read-only confirmation of the take's mic + playback output inside the
   record-setup dialog. Both are chosen ONCE in the top bar (#studio-device /
   #studio-output selects) and mirrored here, so the singer never picks an
   input or output device a second time. */
.rc-device-note {
  margin: 0;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  color: #7ec8e3;
  background: rgba(126, 200, 227, 0.08);
  border: 1px dashed rgba(126, 200, 227, 0.35);
  border-radius: 8px;
}

/* "Where in the song the take starts" — the record-setup dialog's song
   transport for every take. The readout sits on the label's right edge (it
   shows the live playhead against the total once the backing is measured); the
   range bar is a plain track + accent thumb, disabled only while the backing
   length is being read. */
.rc-start-label {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  letter-spacing: 0.05em;
}
.rc-start-time {
  margin-left: auto;
  font-family: "SF Mono", Menlo, monospace;
  font-size: 0.95rem;
  font-weight: 600;
  color: #7ec8e3;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; /* "m:ss.t / m:ss.t" stays on one line while the playhead ticks */
}
.rc-start-pick input[type="range"] {
  padding: 0;
  border: none;
  background: transparent;
  accent-color: #7ec8e3;
  cursor: pointer;
  width: 100%;
}
.rc-start-pick input[type="range"]:disabled {
  cursor: wait;
  opacity: 0.55;
}
.rc-start-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}
.rc-btn-sm {
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
}

/* Invite-code login row (guest toolbar) */
.hub-login-form {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.hub-login-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #fff;
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  width: 11rem;
  font-family: inherit;
}

.hub-login-form input:focus {
  outline: none;
  border-color: rgba(126, 200, 227, 0.6);
}

.hub-login-error {
  font-size: 0.78rem;
  color: #ff5f56;
  width: 100%;
}

/* Copyright notice in the New Recording modal */
.rc-note {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(255, 212, 121, 0.85);
  background: rgba(255, 212, 121, 0.08);
  border: 1px solid rgba(255, 212, 121, 0.22);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  margin: 0.6rem 0 0.9rem;
}

/* First-login profile form */
.rc-field-label {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.35rem;
}

.rc-band-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.45rem;
}

.rc-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.5rem 0.7rem;
  cursor: pointer;
  user-select: none;
}

.rc-check input {
  accent-color: #7ec8e3;
}

.rc-modal-error {
  font-size: 0.8rem;
  color: #ff5f56;
  margin: 0.5rem 0;
  min-height: 1em;
}

.empty-note {
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
  font-size: 0.9rem;
  padding: 1rem 0;
}

@media (max-width: 520px) {
  .rc-field-row {
    grid-template-columns: 1fr;
  }
}


/* ── Vinyl Archive (黑胶档案) ─────────────────────────── */
.thumb-vinyl {
  position: relative;
  overflow: hidden;
}

.thumb-vinyl-disc {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #0a0a0a 0 1px, #1d1d1d 1px 3px),
    radial-gradient(circle at 38% 32%, #2a2a2a, #0c0c0c 60%, #000 100%);
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.8);
  animation: vinylSpin 9s linear infinite;
}

.thumb-vinyl-art {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 2px #000, 0 2px 8px rgba(0, 0, 0, 0.9);
}

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

.thumb-vinyl-hole {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  border-radius: 50%;
  background: #f3ead0;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.7);
}

.thumb-vinyl-label {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.55);
}

@keyframes vinylSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* App panel */
.vinyl-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vinyl-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  min-height: 1.2rem;
}

.vinyl-demo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

.vinyl-demo-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
}

#vinyl-text-query {
  flex: 1;
  min-width: 220px;
  background: rgba(6, 10, 30, 0.9);
  color: #fff;
  border: 1px solid rgba(126, 200, 227, 0.35);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.85rem;
}

.vinyl-search-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.vinyl-search-item .vinyl-card-art img {
  width: 120px;
  height: 120px;
}

.vinyl-result {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
}

.vinyl-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 1.1rem;
  align-items: start;
}

.vinyl-card-art img {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.vinyl-card-title {
  font-size: 1.15rem;
  font-weight: 700;
}

.vinyl-card-artist {
  color: #ffd479;
  font-size: 0.95rem;
  font-weight: 600;
}

.vinyl-card-facts {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.2rem;
}

.vinyl-card-note {
  font-size: 0.78rem;
  color: #9be29b;
  margin-top: 0.4rem;
}

/* Source chips on cards / details (Discogs / MusicBrainz), section heads in
   the result list, placeholder box for records without cover art. */
.vinyl-src-chip {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.05rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  vertical-align: middle;
  color: #9fd8ef;
  background: rgba(126, 200, 227, 0.14);
  border: 1px solid rgba(126, 200, 227, 0.45);
  border-radius: 999px;
}

.vinyl-src-head {
  margin: 0.35rem 0 -0.15rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 212, 121, 0.85);
}

.vinyl-card-art.vinyl-noart {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 150px;
  height: 150px;
  background: rgba(126, 200, 227, 0.07);
  border: 1px dashed rgba(126, 200, 227, 0.3);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 2.4rem;
}

.vinyl-card-actions .vinyl-ext-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  background: rgba(126, 200, 227, 0.14);
  border: 1px solid rgba(126, 200, 227, 0.55);
  color: #9fd8ef;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.vinyl-card-actions .vinyl-ext-link:hover {
  background: rgba(126, 200, 227, 0.24);
}

.vinyl-share-btn {
  margin-top: 0.7rem;
  background: rgba(255, 212, 121, 0.14);
  border: 1px solid rgba(255, 212, 121, 0.55);
  color: #ffd479;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.vinyl-share-btn:hover {
  background: rgba(255, 212, 121, 0.24);
  box-shadow: 0 0 18px rgba(255, 212, 121, 0.3);
}

.vinyl-share-btn:active {
  transform: scale(0.96);
}

.vinyl-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.7rem;
}

.vinyl-card-actions .vinyl-share-btn,
.vinyl-card-actions .vinyl-fav-btn {
  margin-top: 0;
}

.vinyl-fav-btn {
  background: rgba(155, 226, 155, 0.14);
  border: 1px solid rgba(155, 226, 155, 0.55);
  color: #9be29b;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.vinyl-fav-btn:hover {
  background: rgba(155, 226, 155, 0.24);
  box-shadow: 0 0 18px rgba(155, 226, 155, 0.3);
}

.vinyl-fav-btn:active {
  transform: scale(0.96);
}

.vinyl-fav-btn:disabled,
.vinyl-fav-btn.is-faved {
  cursor: default;
  background: rgba(155, 226, 155, 0.06);
  box-shadow: none;
}

.vinyl-fav-btn.is-faved {
  border-color: rgba(155, 226, 155, 0.4);
  opacity: 0.8;
}

.vinyl-fav-btn:disabled:hover {
  box-shadow: none;
}

.vinyl-card-tracks {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.vinyl-card-track {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

.vinyl-card-track .vinyl-track-num {
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  min-width: 1.8em;
}

.vinyl-card-track .vinyl-track-len {
  margin-left: auto;
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
}

@media (max-width: 520px) {
  .vinyl-card {
    grid-template-columns: 1fr;
  }
}

/* ── 编曲工坊 Arranger ─────────────────────────────────────── */
.thumb-arrange {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.thumb-arrange-grid {
  display: grid;
  grid-template-columns: repeat(4, 10px);
  grid-template-rows: repeat(4, 10px);
  gap: 4px;
}

.thumb-arrange-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.14);
  transition: background 0.15s ease, box-shadow 0.15s ease;
}

.thumb-arrange-dot.lit {
  background: #7ec8e3;
  box-shadow: 0 0 8px rgba(126, 200, 227, 0.8);
}

.arrange-stage {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arrange-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.arrange-field label,
.arrange-demo label {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
}

.arrange-actions {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  flex-wrap: wrap;
}

.arrange-file-name {
  font-size: 0.82rem;
  color: #9be29b;
  font-family: "SF Mono", "Menlo", monospace;
}

.arrange-demo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}

#arrange-desc {
  background: rgba(6, 10, 30, 0.9);
  color: #fff;
  border: 1px solid rgba(126, 200, 227, 0.35);
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
  width: 100%;
  max-width: 560px;
  box-sizing: border-box;
}

#arrange-desc:focus {
  outline: none;
  border-color: rgba(126, 200, 227, 0.8);
  box-shadow: 0 0 0 3px rgba(126, 200, 227, 0.15);
}

.arrange-status {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  min-height: 1.2rem;
}

.arrange-status.loading { color: #7ec8e3; }
.arrange-status.ok { color: #9be29b; }
.arrange-status.err { color: #ff8f8f; }

.arrange-result {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.arrange-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.arrange-metric {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.arrange-metric-v {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffd479;
  line-height: 1.1;
}

.arrange-metric-k {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
}

.arrange-metric-c {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.arrange-conf {
  display: inline-block;
  width: 46px;
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.arrange-conf i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #7ec8e3, #ffd479);
  border-radius: 3px;
}

.arrange-prog,
.arrange-tags,
.arrange-unknown,
.arrange-hint {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  margin: 0.2rem 0;
}

.arrange-unknown { color: rgba(255, 143, 143, 0.9); }
.arrange-hint { color: rgba(255, 255, 255, 0.4); }

.arrange-controls {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.arrange-control-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.arrange-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.arrange-step {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(126, 200, 227, 0.45);
  background: rgba(126, 200, 227, 0.1);
  color: #7ec8e3;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}

.arrange-step:hover { background: rgba(126, 200, 227, 0.22); }

.arrange-val {
  min-width: 3em;
  text-align: center;
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 1rem;
  color: #ffd479;
  font-weight: 700;
}

.arrange-key-select {
  background: rgba(6, 10, 30, 0.9);
  color: #fff;
  border: 1px solid rgba(126, 200, 227, 0.35);
  border-radius: 8px;
  padding: 0.3rem 0.5rem;
  font-size: 0.85rem;
}

.arrange-chart-title {
  margin: 0.4rem 0 0.4rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.arrange-hint {
  font-weight: 400;
  font-size: 0.72rem;
}

.arrange-chart {
  overflow-x: auto;
}

.arrange-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.arrange-table th {
  text-align: left;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.35rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.arrange-table td {
  padding: 0.5rem 0.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.arrange-sec-label {
  color: #ffd479;
  font-weight: 700;
  white-space: nowrap;
}

.arrange-sec-time,
.arrange-sec-bars {
  font-family: "SF Mono", "Menlo", monospace;
  color: rgba(255, 255, 255, 0.5);
  white-space: nowrap;
  font-size: 0.78rem;
}

.arrange-sec-layers {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.arrange-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(126, 200, 227, 0.1);
  border: 1px solid rgba(126, 200, 227, 0.35);
  color: rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
  font-size: 0.75rem;
  white-space: nowrap;
}

.arrange-chip em {
  font-style: normal;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.45);
}

.arrange-audio {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#arrange-audio {
  max-width: 420px;
  width: 100%;
}

@media (max-width: 520px) {
  .arrange-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}



/* ── 路演 ───────────────────────────────────────────────── */
/* The board card thumbnail: a warm street-lamp glow over a guitar case with a
   small crowd in front of it — 街头演出, not a concert hall. */
.thumb-busking {
  position: relative;
  overflow: hidden;
  justify-content: flex-end;
  gap: 0.35rem;
  background: radial-gradient(circle at 50% 118%, rgba(255, 179, 71, 0.28), rgba(10, 16, 40, 0.95) 70%);
}

.thumb-busk-lamp {
  position: absolute;
  top: -10px;
  left: 50%;
  width: 78px;
  height: 78px;
  margin-left: -39px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 213, 140, 0.9) 0%, rgba(255, 179, 71, 0) 70%);
  animation: buskGlow 3.4s ease-in-out infinite;
}

.thumb-busk-case {
  width: 48px;
  height: 24px;
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, #8a5a2b, #57351a);
  border: 1px solid rgba(255, 205, 120, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.thumb-busk-crowd {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 18px;
  z-index: 1;
}

.thumb-busk-crowd i {
  width: 6px;
  height: 13px;
  border-radius: 3px 3px 0 0;
  background: rgba(255, 255, 255, 0.32);
}

.thumb-busk-crowd i:nth-child(2) {
  height: 18px;
  background: rgba(255, 255, 255, 0.5);
}

.thumb-busking-label {
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  color: rgba(255, 213, 140, 0.92);
  z-index: 1;
}

.thumb-busk-note {
  position: absolute;
  top: 24px;
  left: 24px;
  font-size: 0.85rem;
  color: #ffd479;
  animation: buskFloat 3s ease-in-out infinite;
}

.thumb-busk-note2 {
  top: 46px;
  left: auto;
  right: 22px;
  animation-delay: -1.3s;
}

@keyframes buskGlow {
  0%, 100% { opacity: 0.55; transform: scale(0.94); }
  50%      { opacity: 0.95; transform: scale(1.06); }
}

@keyframes buskFloat {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%      { transform: translateY(-6px); opacity: 1; }
}

.busking-root {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.92rem;
}

.busk-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}

.busk-bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.busk-bar-title {
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ffd479;
}

.busk-chip {
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.busk-chip.is-member {
  color: #ffd479;
  border-color: rgba(255, 212, 121, 0.45);
  background: rgba(255, 212, 121, 0.1);
}

.busk-login {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.busk-hint {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 0;
}

.busk-hint-inline {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
}

.busk-error {
  color: #ff8f8a;
  font-size: 0.82rem;
  margin: 0 0 0.4rem;
}

.busk-empty {
  padding: 1.6rem 0.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.9rem;
}


.busk-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  line-height: 1.55;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.busk-notice-ok {
  border-color: rgba(126, 200, 227, 0.45);
  background: rgba(126, 200, 227, 0.12);
}

.busk-notice-warn {
  border-color: rgba(255, 179, 71, 0.5);
  background: rgba(255, 179, 71, 0.12);
  color: #ffd9a6;
}

.busk-notice-error {
  border-color: rgba(255, 95, 86, 0.5);
  background: rgba(255, 95, 86, 0.12);
  color: #ffb3ae;
}

.busk-notice-close {
  margin-left: auto;
  background: none;
  border: none;
  color: inherit;
  opacity: 0.6;
  font-size: 1rem;
  cursor: pointer;
  line-height: 1;
}

.busk-notice-close:hover {
  opacity: 1;
}

/* ── the recruitment board ─────────────────────────────── */
.busk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 0.9rem;
}

.busk-card {
  display: flex;
  flex-direction: column;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.18s ease, transform 0.14s ease;
}

.busk-card[data-busk-act="open"] {
  cursor: pointer;
}

.busk-card[data-busk-act="open"]:hover {
  border-color: rgba(255, 212, 121, 0.45);
  transform: translateY(-2px);
}

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

.busk-cover-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: rgba(255, 212, 121, 0.7);
  background: radial-gradient(circle at 50% 120%, rgba(255, 179, 71, 0.22), rgba(10, 16, 40, 0.9));
}

.busk-card-body {
  padding: 0.7rem 0.8rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.busk-card-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.busk-card-title {
  margin: 0;
  font-size: 0.95rem;
  color: #fff;
  flex: 1;
  min-width: 0;
}

.busk-card-style {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 212, 121, 0.9);
}

.busk-card-foot {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.busk-badge {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 0.12rem 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
  white-space: nowrap;
}

.busk-badge-published {
  color: #9be29b;
  border-color: rgba(155, 226, 155, 0.4);
  background: rgba(155, 226, 155, 0.1);
}

.busk-badge-finished {
  color: #bcd4ff;
  border-color: rgba(188, 212, 255, 0.35);
  background: rgba(188, 212, 255, 0.1);
}

.busk-badge-draft {
  color: rgba(255, 255, 255, 0.55);
}

.busk-badge-full {
  color: #ffb3ae;
  border-color: rgba(255, 95, 86, 0.45);
  background: rgba(255, 95, 86, 0.12);
}

.busk-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.busk-meta-lg {
  font-size: 0.86rem;
  gap: 0.35rem;
  margin: 0 0 0.9rem;
}

.busk-meta-lg b {
  color: rgba(255, 212, 121, 0.95);
  font-weight: 600;
}


/* ── like / join / admin actions ───────────────────────── */
.busk-like {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.busk-like:hover {
  color: #ff9ec4;
  border-color: rgba(255, 158, 196, 0.5);
}

.busk-like.is-liked {
  color: #ff6b9d;
  border-color: rgba(255, 107, 157, 0.55);
  background: rgba(255, 107, 157, 0.1);
}

.busk-like:active {
  transform: scale(0.96);
}

.busk-like-lg {
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
}

/* 分享 ↗ — one per activity entry (board card + detail view, see shareEvent in
   busking.js): opens the site share dialog for the activity's own page
   /busking/:id. Same pill shape as ♡ 喜欢 so the card foot reads evenly. */
.busk-share {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
}

.busk-share:hover {
  color: #ffd479;
  border-color: rgba(255, 212, 121, 0.55);
}

.busk-share:active {
  transform: scale(0.96);
}

.busk-share-lg {
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
}

.busk-joined {
  font-size: 0.76rem;
  color: #9be29b;
}

.busk-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.7rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.busk-admin-acts {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.busk-join-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

/* The danger button lives here (Busking deletes activities and photos). */
.rc-btn-danger {
  background: rgba(224, 36, 94, 0.16);
  border-color: rgba(255, 95, 86, 0.5);
  color: #ffb3ae;
}

.rc-btn-danger:hover {
  background: rgba(224, 36, 94, 0.3);
}

.busk-input {
  background: rgba(10, 16, 40, 0.85);
  border: 1px solid rgba(126, 200, 227, 0.3);
  border-radius: 8px;
  padding: 0.42rem 0.65rem;
  color: #fff;
  font-size: 0.85rem;
  font-family: inherit;
  min-width: 0;
}

.busk-input:focus {
  outline: none;
  border-color: rgba(255, 212, 121, 0.6);
}

/* ── one activity in detail ────────────────────────────── */
.busk-detail {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.9rem 1rem 1.1rem;
}

.busk-back {
  background: none;
  border: none;
  color: rgba(126, 200, 227, 0.95);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 0 0 0.6rem;
}

.busk-back:hover {
  color: #fff;
}

.busk-detail-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.busk-detail-head h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #ffd479;
}

.busk-badges {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.busk-when {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
}

.busk-subtitle {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  letter-spacing: 0.04em;
  color: rgba(255, 212, 121, 0.95);
}


/* ── 名单 (participants) ───────────────────────────────── */
.busk-people {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.4rem;
}

.busk-people li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.84rem;
}

.busk-people-idx {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: #0a1028;
  background: rgba(255, 212, 121, 0.9);
  flex: none;
}

.busk-people-name {
  color: #fff;
}

.busk-people-inst {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(126, 200, 227, 0.95);
}

/* ── 精彩回顾 (highlights) ─────────────────────────────── */
.busk-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.busk-photo {
  position: relative;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.3);
}

.busk-photo img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.busk-photo figcaption {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  padding: 0.35rem 0.5rem;
}

.busk-photo-del {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.6);
  color: #ffb3ae;
  font-size: 0.9rem;
  line-height: 1;
}

.busk-photo-del:hover {
  background: rgba(224, 36, 94, 0.85);
  color: #fff;
}

.busk-photo-form {
  margin-top: 0.6rem;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.14);
}

.busk-photo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.busk-photo-row input[type="file"] {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 260px;
}

.busk-photo-row .busk-input {
  flex: 1;
  min-width: 160px;
}

/* ── member profile + the publish form ─────────────────── */
.busk-card.busk-profile-card,
.busk-card.busk-new-card {
  padding: 0.9rem 1rem 1rem;
  margin-bottom: 1rem;
  border-color: rgba(255, 212, 121, 0.28);
}

.busk-profile-card h4,
.busk-new-card h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  color: #ffd479;
}

.busk-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.6rem;
}

.busk-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
}

.busk-form-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.3rem;
}

@media (max-width: 520px) {
  .busk-admin-acts {
    margin-left: 0;
  }

  .busk-cover {
    height: 100px;
  }
}

