/* Wisp Music: "Obsidian Quiet" public profile.
 *
 * Zero JS, zero inline styles. Works under the hub's CSP (docs/music-api-v1.md 11.4):
 * style-src 'self', font-src 'self', img-src 'self' plus the four Google image hosts, no data: URLs.
 * Tokens extend app/src/app.css.
 */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/PlusJakartaSans-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/Inter-Variable.woff2") format("woff2");
}

:root {
  color-scheme: dark;

  --bg: #040508;
  --text: #f4f4f5;
  --text-strong: #ffffff;
  --muted: rgba(255, 255, 255, 0.62);
  --faint: rgba(255, 255, 255, 0.5);      /* smallest text: 5:1 on --bg */
  --line: rgba(255, 255, 255, 0.075);
  --line-soft: rgba(255, 255, 255, 0.055);
  --hairline: rgba(255, 255, 255, 0.09);  /* inner edge on artwork */
  --fill: rgba(255, 255, 255, 0.05);      /* empty artwork slot */
  --signal: #e5352d;

  /* Translucent, so the album-art glow at the top of the page tints the panels above it. */
  --panel-top: rgba(255, 255, 255, 0.044);
  --panel-bot: rgba(255, 255, 255, 0.024);

  --radius-panel: 16px;
  --radius-art: 12px;
  --radius-thumb: 8px;

  --col-gap: 16px;      /* one gap for every two-column row, so all columns share one axis */
  --section-gap: 44px;
  --gutter: 28px;

  --font: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Plus Jakarta Sans", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;

  --dur-fast: 150ms;
  --ease-std: cubic-bezier(0.33, 0, 0.67, 1);
}

/* ------------------------------------------------------------------------- Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* The Go templates use <p> for most labels: no element brings its own margin. */
body, h1, h2, h3, p, ol, ul, dl, dd, figure {
  margin: 0;
}

ol, ul {
  padding: 0;
  list-style: none;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  font-feature-settings: "cv05" 1, "ss01" 1;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

h1, h2, h3 {
  font-family: var(--display);
  text-wrap: balance;
}

:focus-visible {
  outline: 1.5px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

::selection {
  background: rgba(255, 255, 255, 0.18);
}

.tnum {
  font-variant-numeric: tabular-nums;
}

/* Shared <symbol> sheet, first thing in <body>. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ------------------------------------------------------------------------- Ambient album-art glow */
.ambient {
  position: absolute;
  inset: 0 0 auto;
  height: 560px;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(72% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
  mask-image: radial-gradient(72% 100% at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 100%);
}

.ambient-fallback {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 80% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.014) 54%, transparent 100%);
}

.ambient-img {
  position: absolute;
  top: -200px;
  left: 50%;
  width: clamp(900px, 92vw, 1500px);
  max-width: none;
  height: 600px;
  transform: translateX(-50%);
  object-fit: cover;
  filter: blur(96px) saturate(1.7) brightness(0.4);
  opacity: 0.46;
}

/* ------------------------------------------------------------------------- Shell, top bar, footer */
.shell {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--gutter) 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f4f5f7;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-mark {
  width: 22px;
  height: 22px;
  flex: none;
  overflow: visible;
}

.brand-stroke {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

.brand-head {
  fill: currentColor;
}

.topbar-meta {
  font-size: 13px;
  color: var(--faint);
}

.back-link {
  max-width: 60%;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 500;
  line-height: 32px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--faint);
}

/* ------------------------------------------------------------------------- Panel */
.panel {
  background: linear-gradient(180deg, var(--panel-top) 0%, var(--panel-bot) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

/* ------------------------------------------------------------------------- Profile hero */
.hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 32px;
  padding: 28px 0 32px;
}

.hero-id {
  display: flex;
  align-items: center;
  gap: 24px;
  min-width: 0;
  flex: 1;
}

.avatar-wrap {
  position: relative;
  width: 112px;
  height: 112px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035));
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.avatar-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.avatar-mono {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.9);
}

.hero-text {
  min-width: 0;
  flex: 1;
}

.hero-name {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--muted);
}

/* Kicker above the name (the hub's front page). */
.hero-kicker:first-child {
  margin: 0 0 6px;
}

.handle {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 500;
}

.dot-sep {
  opacity: 0.45;
}

.hero-bio {
  margin-top: 10px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

/* Right end of the hero: "Listening now" (optional) above the range switch. */
.hero-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
  max-width: 100%;
}

.now-playing {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 300px;
  max-width: 100%;
  padding: 10px 16px 10px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.034));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.np-art {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--fill);
}

.np-info {
  min-width: 0;
  flex: 1;
}

.np-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: var(--muted);
}

.live-dot {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--signal);
  animation: live-pulse 2.2s ease-in-out infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.np-title,
.np-artist {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.np-title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 18px;
  color: var(--text-strong);
}

.np-artist {
  font-size: 12.5px;
  line-height: 16px;
  color: var(--muted);
}

/* Range switch: plain links */
.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-soft);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.seg-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}

.seg-link.on {
  background: rgba(255, 255, 255, 0.13);
  color: var(--text-strong);
}

/* ------------------------------------------------------------------------- Listening Time + Listening Streak */
.stats-grid,
.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--col-gap);
}

/* Number at the left edge, context at the right edge on the number's baseline: the card reads as full at
   any width. Without a .stat-sub it is simply label over number. */
.stat-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  column-gap: 20px;
  row-gap: 8px;
  padding: 20px 24px 22px;
}

.stat-label {
  grid-column: 1 / -1;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--muted);
}

.stat-value {
  font-family: var(--display);
  font-size: 38px;
  line-height: 44px;
  font-weight: 700;
  font-variant-numeric: proportional-nums;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--text-strong);
}

/* 16<span class="stat-unit">h</span> 46<span class="stat-unit">m</span>
   7 <span class="stat-unit">days</span>      a space before a whole word */
.stat-unit {
  margin-left: 3px;
  line-height: 1;
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--muted);
}

.stat-sub {
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
  text-align: right;
}

/* ------------------------------------------------------------------------- Section headers */
.section {
  margin-top: var(--section-gap);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-head h2 {
  font-size: 19px;
  line-height: 24px;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #f6f7f9;
}

.section-note {
  font-size: 13px;
  line-height: 18px;
  color: var(--faint);
}

/* Inside a panel, in place of a list with nothing in it */
.empty-note {
  padding: 28px 16px;
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------------------- Artwork slots
   Every slot is: <span class="thumb-ph">monogram or note icon</span>, then the <img> when there is one.
   The image covers the placeholder; if it is missing or fails to load, the placeholder shows through.
   Images are sized with min/max and an auto width and height on purpose: with a set width and height,
   Chromium paints its broken-image icon over the placeholder. Keep alt="" and no width/height attributes. */
.thumb {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--fill);
}

.thumb.round {
  border-radius: 50%;
}

.thumb img,
.card-art img,
.recent-thumb img,
.np-art img,
.pl-cover img,
.avatar-img {
  position: absolute;
  top: 0;
  left: 0;
  min-width: 100%;
  max-width: 100%;
  min-height: 100%;
  max-height: 100%;
  object-fit: cover;
}

.thumb::after,
.card-art::after,
.recent-thumb::after,
.np-art::after,
.pl-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--hairline);
  pointer-events: none;
}

.thumb-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.02));
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}

.thumb-ph svg {
  width: 40%;
  height: 40%;
  max-width: 36px;
  max-height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.7;
}

/* ------------------------------------------------------------------------- Top Songs + Top Artists */
.two-col {
  align-items: start;
}

.rank-panel {
  padding: 8px;
}

.rank-row {
  display: grid;
  grid-template-columns: 24px 44px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  height: 60px;
  padding: 0 12px 0 4px;
}

.rank-num {
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  color: var(--faint);
}

.rank-row:first-child .rank-num {
  font-weight: 600;
  color: var(--text-strong);
}

.rank-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.rank-title,
.rank-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.006em;
  color: var(--text-strong);
}

.rank-sub {
  font-size: 12.5px;
  line-height: 17px;
  color: var(--muted);
}

.rank-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  min-width: 64px;
}

/* <span class="rank-count tnum"><b>54</b> plays</span> */
.rank-count {
  font-size: 12.5px;
  line-height: 16px;
  color: var(--muted);
  white-space: nowrap;
}

.rank-count b {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.94);
}

/* Native <progress>: a proportion bar without inline styles */
progress.bar {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 64px;
  height: 3px;
  border: 0;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

progress.bar::-webkit-progress-bar {
  background: rgba(255, 255, 255, 0.08);
}

progress.bar::-webkit-progress-value {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
}

progress.bar::-moz-progress-bar {
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.55);
}

.rank-row:first-child progress.bar::-webkit-progress-value {
  background: #fff;
}

.rank-row:first-child progress.bar::-moz-progress-bar {
  background: #fff;
}

/* ------------------------------------------------------------------------- Public Playlists */
.card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 26px var(--col-gap);
}

.media-card {
  min-width: 0;
}

a.media-card {
  border-radius: var(--radius-art);
}

.card-art {
  position: relative;
  aspect-ratio: 1;
  margin-bottom: 11px;
  border-radius: var(--radius-art);
  overflow: hidden;
  background: var(--fill);
}

.mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
}

.mosaic img {
  position: static;
}

.card-title,
.card-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-title {
  font-size: 14px;
  font-weight: 600;
  line-height: 19px;
  letter-spacing: -0.006em;
  color: var(--text-strong);
}

.card-sub {
  margin-top: 2px;
  font-size: 12.5px;
  line-height: 17px;
  color: var(--muted);
}

/* ------------------------------------------------------------------------- Recent Plays */
.recent-panel {
  padding: 8px;
}

.recent-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1.2fr) minmax(0, 1fr) 84px;
  align-items: center;
  column-gap: 14px;
  height: 56px;
  padding: 0 12px 0 8px;
}

.recent-thumb {
  position: relative;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--fill);
}

.recent-album {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-when {
  font-size: 12.5px;
  color: var(--faint);
  text-align: right;
  white-space: nowrap;
}

/* ------------------------------------------------------------------------- Public playlist page */
.pl-hero {
  display: flex;
  align-items: flex-end;
  gap: 28px;
  padding: 28px 0 32px;
}

.pl-cover {
  position: relative;
  width: 208px;
  height: 208px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  background: var(--fill);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

.pl-meta {
  min-width: 0;
  flex: 1;
}

.pl-title {
  font-size: clamp(30px, 4.2vw, 48px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.pl-desc {
  margin-top: 10px;
  max-width: 600px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.74);
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.pl-facts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: var(--muted);
}

.pl-owner {
  color: var(--text-strong);
  font-weight: 600;
}

.track-table {
  padding: 4px 8px 8px;
}

.track-head,
.track-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1.5fr) minmax(0, 1fr) 56px;
  align-items: center;
  column-gap: 14px;
  padding: 0 12px 0 4px;
}

.track-head {
  height: 40px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--faint);
}

.track-row {
  height: 56px;
}

.track-idx {
  font-size: 13px;
  text-align: center;
  color: var(--faint);
}

.track-main {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.track-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.badge-yt {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
}

.track-dur {
  font-size: 13px;
  text-align: right;
  color: var(--muted);
}

.track-head .track-dur {
  font-size: inherit;
  color: inherit;
}

/* Row of links and captions, such as the pager under a long playlist */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
}

.range-caption {
  font-size: 13px;
  color: var(--faint);
}

/* ------------------------------------------------------------------------- "Not available" page */
.empty-state {
  max-width: 420px;
  margin: 12vh auto 0;
  padding: 40px 32px 44px;
  text-align: center;
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px var(--hairline);
  color: rgba(255, 255, 255, 0.9);
}

.empty-icon svg {
  width: 26px;
  height: 26px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state h1 {
  font-size: 21px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--text-strong);
}

.empty-state p {
  margin-top: 8px;
  text-wrap: balance;
  font-size: 14px;
  color: var(--muted);
}

/* ------------------------------------------------------------------------- Hover (real pointers, links only) */
@media (hover: hover) {
  .seg-link:hover,
  .foot a:hover {
    color: var(--text-strong);
  }

  .back-link:hover {
    background: rgba(255, 255, 255, 0.09);
    color: var(--text-strong);
  }

  .pl-owner:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  a.media-card .card-art::after {
    transition: background-color var(--dur-fast) var(--ease-std);
  }

  a.media-card:hover .card-art::after {
    background: rgba(255, 255, 255, 0.07);
  }
}

/* ------------------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  :root {
    --section-gap: 38px;
  }

  .now-playing {
    width: 264px;
  }

  .two-col {
    grid-template-columns: minmax(0, 1fr);
  }

  .two-col {
    row-gap: var(--section-gap);
  }

  /* Three columns, or (below) two. */
  .card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-side {
    align-items: stretch;
  }

  .now-playing {
    width: 100%;
  }

  .seg-link {
    flex: 1;
    height: 38px;
    padding: 0 8px;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 16px;
    --section-gap: 34px;
    --col-gap: 12px;
  }

  .topbar {
    height: 60px;
  }

  .hero {
    padding: 16px 0 12px;
    row-gap: 22px;
  }

  .hero-id {
    gap: 16px;
  }

  .avatar-wrap {
    width: 80px;
    height: 80px;
  }

  .avatar-mono {
    font-size: 30px;
  }

  .hero-kicker {
    margin-top: 4px;
    font-size: 13px;
  }

  .stat-card {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 4px;
    padding: 15px 16px 16px;
  }

  .stat-value {
    font-size: clamp(20px, 6.6vw, 30px);
    line-height: 36px;
  }

  .stat-sub {
    font-size: 12.5px;
    text-align: left;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .rank-panel {
    padding: 6px 4px;
  }

  .rank-row {
    column-gap: 11px;
    padding: 0 10px 0 2px;
  }

  .rank-stat {
    min-width: 52px;
  }

  progress.bar {
    width: 52px;
  }

  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 20px;
  }

  .recent-panel {
    padding: 4px;
  }

  .recent-row {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    column-gap: 12px;
  }

  .recent-album,
  .track-album-col {
    display: none;
  }

  .pl-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 16px 0 24px;
  }

  .pl-cover {
    width: 168px;
    height: 168px;
  }

  .track-table {
    padding: 2px 4px 4px;
  }

  .track-head,
  .track-row {
    grid-template-columns: 24px minmax(0, 1fr) auto;
    column-gap: 10px;
    padding: 0 12px 0 4px;
  }

  .foot {
    margin-top: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
