:root {
  --bg: #07090d;
  --panel: #0e1116;
  --fg: #f3f5f8;
  --muted: #f3f5f8;
  --teal: #2dd4bf;
  --border: #ffffff14;
  color-scheme: dark;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
html { scroll-padding-top: env(safe-area-inset-top, 0px); }
*, *::before, *::after { box-sizing: inherit; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: #fff2 #07090d;
}
a { color: inherit; text-decoration: none; }
.wrap { position: relative; max-width: 820px; margin: 0 auto; padding: 4rem 1.5rem 5rem; }
nav { display: flex; flex-wrap: nowrap; gap: 0 2rem; margin: 0 0 3.5rem; font-size: 1.05rem; font-weight: 700; overflow-x: auto; }
nav a { position: relative; display: flex; flex-direction: row-reverse; align-items: center; gap: 0.5rem; padding: 0.5rem 0; color: var(--fg); white-space: nowrap; }
nav a svg { width: 1.1rem; height: 1.1rem; color: var(--teal); transition: color 0.4s; }
nav a::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--fg); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; }
nav a:hover::after, nav a.active::after { transform: scaleX(1); }
main { animation: rise 0.6s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
h1 {
  margin: 0 0 0.75rem;
  font-family: "Space Grotesk", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2.75rem, 11vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(90deg, var(--fg) 30%, color-mix(in srgb, var(--teal) 75%, #fff));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  width: fit-content;
}
p { margin: 0 0 1.25rem; }
.lime { color: var(--teal); font-weight: 500; }
.amber { border-bottom: 2px solid var(--teal); }
.small { font-size: 0.95rem; color: var(--muted); }
.socials { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1rem; }
.socials a { width: 1.6rem; height: 1.6rem; display: block; transition: opacity 0.2s, transform 0.2s; }
.socials a:hover { opacity: 0.7; transform: translateY(-2px); }
.socials svg { width: 100%; height: 100%; }
.chip { margin: 0 0 2rem; font-size: 0.95rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cards2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.row { display: flex; align-items: center; gap: 1rem; font-size: 1rem; line-height: 1.35; }
.panel { padding: 1.1rem; border: 1px solid var(--border); border-radius: 18px; background: var(--panel); min-width: 0; }
.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 16px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.6rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 60%, #000), color-mix(in srgb, var(--teal) 15%, #111));
  position: relative;
}
.avatar::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -4px;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px var(--panel);
}
.avatar img { width: 100%; height: 100%; border-radius: 16px; object-fit: cover; }
.avatar.idle::after { background: #fbbf24; }
.avatar.dnd::after { background: #f43f5e; }
.avatar.off::after { background: #6b7280; }
.who b { font-size: 1.1rem; }
.who .handle { margin-left: 0.5rem; font-size: 0.85rem; color: var(--muted); }
.emoji { width: 1.1rem; height: 1.1rem; vertical-align: text-bottom; margin-right: 0.25rem; }
.art {
  width: 4rem;
  height: 4rem;
  border-radius: 12px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 25%, #1a1f27), color-mix(in srgb, var(--teal) 10%, #0e1116));
  color: var(--teal);
}
.art svg { width: 1.6rem; height: 1.6rem; }
.art img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.track { flex: 1; min-width: 0; }
.track a { border-bottom: 1px solid #fff4; transition: border-color 0.2s; }
.track a:hover { border-color: var(--teal); }
.track .t { font-weight: 700; }
.progress { margin-top: 0.5rem; }
.progress .bar { height: 3px; border-radius: 3px; background: #ffffff1f; overflow: hidden; }
.progress .bar span { display: block; height: 100%; background: var(--teal); width: 0; }
.progress .times { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); }
.heading { font-family: "Space Grotesk", system-ui, sans-serif; font-size: 1.15rem; font-weight: 700; margin: 2.25rem 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
@keyframes pulse { 50% { opacity: 0.3; } }
.cover { border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 25%, #1a1f27), color-mix(in srgb, var(--teal) 10%, #0e1116)); color: var(--teal); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover svg { width: 2.5rem; height: 2.5rem; }
.hero { display: flex; align-items: center; gap: 1.5rem; padding: 1.25rem; border: 1px solid color-mix(in srgb, var(--teal) 30%, transparent); border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, #0e1116), #0b0e13); transition: border-color 0.2s; }
.hero:hover { border-color: color-mix(in srgb, var(--teal) 55%, transparent); }
.hero .cover { width: 8rem; height: 8rem; flex-shrink: 0; border-radius: 16px; box-shadow: 0 10px 30px #0008; }
.hero .meta { min-width: 0; }
.hero .title { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 0.25rem; }
.badge { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq span { width: 3px; background: var(--teal); border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: 0.2s; }
.eq span:nth-child(3) { animation-delay: 0.4s; }
.eq span:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 1.25rem 1rem; }
.tile { display: block; transition: transform 0.2s; }
.tile:hover { transform: translateY(-3px); }
.tile .cover { aspect-ratio: 1; margin-bottom: 0.5rem; }
.tile .cover { position: relative; }
.rep { position: absolute; left: 0.5rem; bottom: 0.5rem; padding: 0.2rem 0.55rem; border-radius: 6px; background: #000000cc; font-size: 0.75rem; font-weight: 700; color: var(--fg); backdrop-filter: blur(4px); }
.tile .t { font-weight: 700; font-size: 0.95rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .small { font-size: 0.85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .when { font-size: 0.8rem; color: var(--fg); }
.switch { margin-left: auto; display: flex; align-items: center; gap: 0.6rem; font-family: "DM Sans", system-ui, sans-serif; font-size: 0.9rem; font-weight: 500; color: var(--muted); cursor: pointer; }
.sw { position: relative; width: 2.5rem; height: 1.4rem; border-radius: 99px; border: 0; padding: 0; background: #2a2f38; cursor: pointer; transition: background 0.2s; flex-shrink: 0; }
.sw::after { content: ""; position: absolute; top: 0.2rem; left: 0.2rem; width: 1rem; height: 1rem; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.sw[aria-checked="true"] { background: var(--teal); }
.sw[aria-checked="true"]::after { transform: translateX(1.1rem); }
button.tile { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
.detail { display: block; }
.back { background: none; border: 0; padding: 0; font: inherit; font-size: 0.95rem; font-weight: 700; color: var(--muted); cursor: pointer; margin-bottom: 1rem; transition: color 0.2s; }
.back:hover { color: var(--fg); }
.album-head { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1rem; }
.album-head .cover { width: 7rem; height: 7rem; flex-shrink: 0; border-radius: 16px; box-shadow: 0 10px 30px #0008; }
.album-head .title { font-family: "Space Grotesk", system-ui, sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.2; overflow-wrap: anywhere; margin-bottom: 0.25rem; }
.tlist { display: grid; }
.trow { display: flex; align-items: center; gap: 1rem; padding: 0.65rem 0.5rem; margin: 0 -0.5rem; border-radius: 12px; transition: background 0.2s; }
.trow:hover { background: #ffffff0d; }
.trow .num { width: 1.5rem; color: var(--fg); font-size: 0.9rem; text-align: right; flex-shrink: 0; }
.trow .thumb { width: 2.75rem; height: 2.75rem; border-radius: 8px; flex-shrink: 0; }
.trow .thumb svg { width: 1.25rem; height: 1.25rem; }
.trow .tname { flex: 1; min-width: 0; font-weight: 700; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trow .count { color: var(--teal); font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.trow .ago { color: var(--fg); font-size: 0.85rem; flex-shrink: 0; width: 5rem; text-align: right; }
[hidden] { display: none !important; }
#activity { grid-column: 1 / -1; }
.act-art { position: relative; flex-shrink: 0; }
.act-art .big { width: 4.5rem; height: 4.5rem; border-radius: 12px; object-fit: cover; display: block; }
.act-small { position: absolute; right: -6px; bottom: -6px; width: 1.5rem; height: 1.5rem; border-radius: 6px; border: 3px solid var(--panel); background: var(--panel); object-fit: cover; }
@media (max-width: 640px) {
  .cards2 { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 2.5rem 1.25rem 4rem; }
  .hero { flex-direction: column; align-items: flex-start; }
  .hero .cover { width: 100%; height: auto; aspect-ratio: 1; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .album-head .cover { width: 5rem; height: 5rem; }
  .trow .ago { width: 4rem; }
}