.about, .proj {
  padding: 14px;
  font-size: .85rem;
  user-select: text;
}

.about h1 { font-size: 1.3rem; margin-bottom: 6px; }
.about p { color: var(--muted); margin-bottom: 8px; }
.about .kv { color: var(--dim); }
.about .kv b { color: var(--pink); font-weight: 400; }

.proj .row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--win-border);
  cursor: pointer; text-decoration: none; color: var(--fg);
}

.proj .row:hover .name { color: var(--accent); }
.proj .name { font-weight: 700; }
.proj .desc { color: var(--dim); font-size: .78rem; text-align: right; }

.proj .gh-loading, .proj .gh-err { color: var(--dim); padding: 8px 0; }
.proj .gh-row { padding: 10px 0; border-bottom: 1px solid var(--win-border); }
.proj .gh-row a { color: var(--fg); text-decoration: none; font-weight: 700; }
.proj .gh-row a:hover { color: var(--accent); }
.proj .gh-meta { color: var(--dim); font-size: .74rem; margin-top: 4px; line-height: 1.5; }
.proj .gh-meta b { color: var(--pink); font-weight: 400; }

.st-wrap {
  padding: 14px 16px; height: 100%; overflow-y: auto;
  display: flex; gap: 16px; align-items: flex-start;
}

.st-col-left { flex: 0 0 300px; }
.st-col-right { display: flex; gap: 16px; align-items: flex-start; }
.st-music-col { flex: 0 0 416px; min-width: 0; }
.st-music-col .st-card { width: 100%; box-sizing: border-box; }
.st-games-col { flex: 0 0 260px; overflow-y: auto; }

.st-card {
  background: var(--win); border: 1px solid var(--win-border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
  transition: box-shadow .2s, border-color .2s;
}
.st-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
  border-color: color-mix(in srgb, var(--win-border) 60%, var(--accent) 40%);
}

.st-badge {
  font-size: .82rem; color: var(--accent); letter-spacing: .04em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
  font-weight: 600; text-transform: lowercase;
}

.st-status-line { color: var(--muted); font-size: .82rem; line-height: 1.5; }
.st-time { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.st-now-online { color: #28c840; }
.st-now-idle { color: #febc2e; }
.st-now-dnd { color: #ff5f57; }
.st-now-offline { color: #4a4a55; }

.st-act { display: flex; gap: 12px; align-items: flex-start; }

.st-art {
  width: 56px; height: 56px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--win-border); background: var(--bg); object-fit: contain;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.st-info { flex: 1; min-width: 0; }
.st-name { font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.st-link { color: var(--fg); text-decoration: none; }
.st-link:hover { color: var(--accent); text-decoration: underline; }
.st-detail { font-size: .78rem; color: var(--fg); opacity: .85; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-state { font-size: .72rem; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.st-progress { margin-top: 8px; }
.st-pbar { height: 3px; background: var(--win-border); border-radius: 2px; overflow: hidden; }
.st-pfill { height: 100%; background: var(--accent); width: 0%; transition: width 1s linear; border-radius: 2px; }
.st-ptime { display: flex; justify-content: space-between; font-size: .64rem; color: var(--dim); margin-top: 4px; font-variant-numeric: tabular-nums; }

@property --lyrics-glow-duration { syntax: '<time>'; inherits: false; initial-value: 2s; }

.st-lyrics {
  max-height: 180px; overflow: hidden; position: relative;
  background: linear-gradient(180deg, var(--win) 0%, color-mix(in srgb, var(--win) 92%, var(--accent) 8%) 100%);
}
.st-lyrics::before, .st-lyrics::after {
  content: ""; position: absolute; left: 0; right: 0; height: 24px; z-index: 1; pointer-events: none;
}
.st-lyrics::before { top: 0; background: linear-gradient(180deg, var(--win) 0%, transparent 100%); }
.st-lyrics::after { bottom: 0; background: linear-gradient(0deg, var(--win) 0%, transparent 100%); }
.st-lyrics-inner {
  max-height: 140px; overflow-y: auto; padding: 16px 12px;
  scrollbar-width: none;
  scroll-behavior: smooth;
}
.st-lyric-line {
  font-size: 1.1rem; font-weight: 700; color: var(--fg);
  padding: 8px 0; line-height: 1.333; letter-spacing: .01em;
  opacity: 0.33; transform: scale(1);
  transition: opacity .33s ease, transform .17s ease;
  font-family: "Segoe UI Symbol", "Noto Music", "Apple Color Emoji", "Segoe UI Emoji", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}
.st-lyric-line.active {
  opacity: 1; transform: scale(1);
  animation: lyrics-glow 2s forwards, lyrics-wobble 1s forwards;
}
.st-lyric-line.past { opacity: 0.33; transform: scale(1); }
.st-lyric-empty { font-style: italic; opacity: 0.5; }
.st-lyrics-empty-msg {
  text-align: center; padding: 24px 12px;
  color: var(--fg); opacity: 0.5; font-size: 1rem;
  font-family: "Segoe UI Symbol", "Noto Music", "Apple Color Emoji", "Segoe UI Emoji", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
}

@keyframes lyrics-glow {
  0% { text-shadow: 0 0 1.5rem rgba(255,255,255,.5); }
  to { text-shadow: 0 0 0 rgba(255,255,255,0); }
}
@keyframes lyrics-wobble {
  0% { transform: translateY(0); }
  33% { transform: translateY(1.75px); }
  66% { transform: translateY(-1.75px); }
  to { transform: translateY(0); }
}

.st-foot { display: flex; justify-content: space-between; align-items: center; }

.st-links { margin-bottom: 16px; }
.st-cols { display: flex; gap: 0; align-items: stretch; }
.st-cols .st-col { flex: 1; min-width: 0; }
.st-divider { width: 1px; background: var(--win-border); margin: 0 10px; }
.st-title { display: block; font-size: .72rem; color: var(--muted); margin-bottom: 8px; text-transform: lowercase; padding-bottom: 6px; border-bottom: 1px solid var(--win-border); font-weight: 600; letter-spacing: .03em; }
.st-fl { list-style: none; margin: 0; padding: 0; }
.st-fl li { margin: 0; }
.st-fl a {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 8px;
  color: var(--muted); text-decoration: none; font-size: .74rem;
  background: var(--win-bg); border: 1px solid var(--win-border);
  margin-bottom: 4px; transition: all .15s ease;
}
.st-fl a:hover { background: var(--win-border); color: var(--accent); border-color: var(--accent); transform: translateX(2px); }
.st-ico { width: 16px; height: 16px; display: block; flex-shrink: 0; }

.st-btn {
  background: var(--btn); color: var(--muted); border: 1px solid var(--win-border);
  border-radius: 8px; padding: 5px 12px; font-family: inherit; font-size: .72rem; cursor: pointer;
  transition: all .15s ease;
}
.st-btn:hover { color: var(--fg); border-color: var(--accent); background: color-mix(in srgb, var(--btn) 80%, var(--accent) 20%); }
.st-btn:disabled { opacity: .5; cursor: not-allowed; }

.st-notify-desc { font-size: .72rem; color: var(--dim); margin: 6px 0 8px; }
.st-notify { display: flex; gap: 6px; align-items: center; }
.st-notify-input {
  flex: 1; background: var(--win-bg); border: 1px solid var(--win-border); border-radius: 8px;
  padding: 7px 10px; color: var(--fg); font-family: inherit; font-size: .78rem;
  outline: none; transition: border-color .15s ease;
}
.st-notify-input:focus { border-color: var(--accent); }
.st-notify-input::placeholder { color: var(--dim); }
.st-notify-status { font-size: .68rem; color: var(--dim); white-space: nowrap; }
.st-notify-status.ok { color: var(--green); }
.st-notify-status.err { color: var(--red); }

.st-games-title { font-size: .72rem; color: var(--muted); margin-bottom: 6px; text-transform: lowercase; font-weight: 600; letter-spacing: .03em; }
.st-games-hr { border: none; border-top: 1px solid var(--win-border); margin: 0 0 8px; }
.st-games-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.st-game { display: flex; position: relative; border-radius: 8px; overflow: hidden; transition: transform .2s, filter .2s; }
.st-game a { display: flex; width: 100%; text-decoration: none; }
.st-game img { width: 100%; aspect-ratio: 2/3; object-fit: cover; border-radius: 8px; transition: transform .2s; }
.st-game-name { display: none; }
.st-games-grid:hover .st-game { opacity: .4; filter: blur(2px); transition: opacity .2s, filter .2s; }
.st-games-grid:hover .st-game:hover { opacity: 1; filter: none; transform: translateY(-4px); }
.st-game:hover { z-index: 1; }
.st-game:hover img { transform: scale(1.03); }

.admin {
  padding: 20px;
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
}
.admin-login {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; gap: 12px;
}
.admin-title {
  font-size: 1.2rem; font-weight: 700; color: var(--fg);
}
.admin-subtitle {
  font-size: .78rem; color: var(--dim); margin-bottom: 8px;
}
.admin-input {
  width: 240px; padding: 8px 12px; background: var(--win-bg);
  border: 1px solid var(--win-border); border-radius: 8px;
  color: var(--fg); font-family: inherit; font-size: .82rem;
  outline: none; transition: border-color .15s ease;
}
.admin-input:focus { border-color: var(--accent); }
.admin-btn {
  padding: 8px 24px; background: var(--accent); color: #fff;
  border: none; border-radius: 8px; font-family: inherit;
  font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: opacity .15s ease;
}
.admin-btn:hover { opacity: .85; }
.admin-error {
  font-size: .72rem; color: var(--dim); min-height: 16px;
}
.admin-error.err { color: var(--red); }
.admin-panel {
  display: flex; flex-direction: column; gap: 16px;
}
.admin-hr {
  border: none; border-top: 1px solid var(--win-border);
}
.admin-section {
  display: flex; flex-direction: column; gap: 6px;
}
.admin-label {
  font-size: .72rem; color: var(--accent); text-transform: lowercase;
  font-weight: 600; letter-spacing: .03em;
}
.admin-row {
  display: flex; justify-content: space-between; font-size: .78rem;
  color: var(--fg); padding: 4px 0;
}
.admin-row span:first-child { color: var(--dim); }
.admin-endpoints { display: flex; flex-direction: column; gap: 6px; }
.admin-loading { color: var(--dim); font-size: .72rem; }

.os-release-viewer {
  font-family: "SF Mono", "Cascadia Code", "Fira Code", monospace;
  font-size: .82rem; line-height: 1.6; white-space: pre-wrap;
}
.os-release-line { color: var(--fg); }
.os-release-key { color: var(--fg); }
.os-release-version { color: var(--fg); cursor: pointer; }
