:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f8f8f9;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --text: #1d1b20;
  --muted: #706c78;
  --muted-2: #9a96a3;
  --line: #e4e1dc;
  --line-strong: #d4d0c8;
  --brand: #6f4bc1;
  --brand-strong: #56359f;
  --brand-soft: #eee8fb;
  --danger: #b42318;
  --shadow: 0 1px 2px rgba(24, 20, 31, 0.04), 0 12px 30px rgba(24, 20, 31, 0.04);
  --topbar: rgba(255, 255, 255, 0.78);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f0f11;
  --surface: #171719;
  --surface-soft: #202024;
  --surface-raised: rgba(23, 23, 25, 0.82);
  --text: #f4f1f7;
  --muted: #aaa4b6;
  --muted-2: #7f788b;
  --line: #2b292f;
  --line-strong: #3a3641;
  --brand: #a78bfa;
  --brand-strong: #c4b5fd;
  --brand-soft: #251f36;
  --danger: #fb7185;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.32), 0 18px 44px rgba(0, 0, 0, 0.2);
  --topbar: rgba(17, 17, 19, 0.78);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

strong, b {
  font-weight: 540;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 42%, transparent);
  outline-offset: 2px;
}

.topbar {
  backdrop-filter: blur(18px);
  background: var(--topbar);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-inner {
  align-items: center;
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr) auto;
  height: 58px;
  margin: 0 auto;
  max-width: 1180px;
  padding: 0 20px;
}

.brand {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  justify-content: flex-start;
  padding: 0;
}

.brand img {
  filter: brightness(0);
  height: auto;
  opacity: 0.92;
  width: 64px;
}

:root[data-theme="dark"] .brand img {
  filter: brightness(0) invert(1);
  opacity: 0.88;
}

.nav {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

.nav-item {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-size: 13px;
  font-weight: 600;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-item svg,
.icon-button svg,
.tool-button svg,
.post-actions svg,
.search-field svg {
  stroke-width: 1.8;
}

.nav-item.active {
  background: #f5f5f5;
  color: var(--text);
}

:root[data-theme="dark"] .nav-item.active {
  background: var(--surface-soft);
}

.nav-item:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.top-actions {
  align-items: center;
  display: flex;
  gap: 6px;
}

.profile-chip {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  gap: 6px;
  min-height: 34px;
  padding: 0 4px 0 0;
}

.profile-chip:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.page {
  margin: 0 auto;
  max-width: 1180px;
  padding: 24px 20px 56px;
}

.feed-layout {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 256px minmax(0, 1fr) 250px;
}

.left-rail,
.right-rail {
  position: sticky;
  top: 78px;
}

.panel {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.composer {
  background: var(--surface);
  margin-bottom: 18px;
  overflow: visible;
  position: relative;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
  z-index: 2;
}

.composer-shell {
  background: var(--surface);
  border-radius: inherit;
  overflow: hidden;
}

.composer:focus-within {
  border-color: var(--line-strong);
  box-shadow: 0 2px 6px rgba(24, 20, 31, 0.06), 0 18px 44px rgba(24, 20, 31, 0.1);
  transform: translateY(-1px);
  z-index: 40;
}

.composer textarea {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  min-height: 112px;
  outline: 0;
  padding: 14px;
  resize: none;
  width: 100%;
}

.composer textarea::placeholder {
  color: var(--muted);
  font-weight: 500;
}

.composer-bottom {
  align-items: center;
  background: var(--surface);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 10px;
}

.composer-bottom > span {
  color: var(--muted-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.composer-tools {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.primary-button,
.ghost-button,
.tool-button,
.icon-button {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  gap: 7px;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
}

.primary-button {
  background: var(--text);
  border: 1px solid var(--text);
  color: var(--surface);
  font-size: 13px;
  font-weight: 540;
}

.primary-button:hover {
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.ghost-button {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
}

.ghost-button:hover {
  border-color: var(--line-strong);
  color: var(--brand);
}

.follow-button {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 540;
  min-height: 26px;
  min-width: unset;
  padding: 0 10px;
}

.follow-button.is-following {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 28%, var(--line));
  color: var(--brand);
}

.follow-button.is-following:hover {
  background: color-mix(in srgb, var(--brand-soft) 82%, var(--surface));
  border-color: color-mix(in srgb, var(--brand) 42%, var(--line));
  color: var(--brand-strong);
}

.tool-button,
.icon-button {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  min-width: 34px;
  padding: 0;
}

.tool-button:hover,
.icon-button:hover,
.tool-button.selected {
  background: var(--brand-soft);
  color: var(--brand);
}

.album-picker-button {
  position: relative;
}

.album-picker-button.selected::after {
  background: var(--brand);
  border: 2px solid var(--surface-soft);
  border-radius: 999px;
  bottom: 5px;
  content: "";
  height: 7px;
  position: absolute;
  right: 5px;
  width: 7px;
}

.album-picker {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 8px;
  padding: 10px;
  position: absolute;
  right: 10px;
  top: calc(100% - 2px);
  width: 280px;
  z-index: 30;
}

.picker-search {
  margin: 0;
}

.picker-tabs {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 9px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 2px;
}

.picker-tabs button {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  min-height: 28px;
}

.picker-tabs button.active {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(24, 20, 31, 0.08);
  color: var(--text);
}

.picker-list {
  display: grid;
  gap: 6px;
  max-height: 270px;
  overflow-y: auto;
  padding-right: 2px;
}

.picker-album {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text);
  display: grid;
  gap: 9px;
  grid-template-columns: 42px minmax(0, 1fr);
  min-height: 52px;
  padding: 5px;
  text-align: left;
}

.picker-album:hover,
.picker-album.active {
  background: var(--surface-soft);
  border-color: var(--line);
}

.picker-album.active {
  border-color: color-mix(in srgb, var(--brand) 36%, var(--line));
}

.picker-album .album-art {
  border-radius: 7px;
  height: 42px;
  width: 42px;
}

.picker-album span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.picker-album strong,
.picker-album small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.picker-album strong {
  font-size: 13px;
  font-weight: 600;
}

.picker-album small {
  color: var(--muted);
  font-size: 12px;
}

.danger {
  color: var(--danger) !important;
  font-weight: 640;
}

.side-section {
  margin-bottom: 18px;
}

.section-title {
  margin-bottom: 10px;
  padding-bottom: 4px;
}

.section-title h2 {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

.search-field {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--muted);
  display: flex;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
}

.search-field.small {
  min-height: 36px;
}

.search-field input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 14px;
  outline: 0;
  width: 100%;
}

.people-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.person-row {
  align-items: center;
  display: grid;
  gap: 9px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.person-row strong,
.post-author strong {
  color: var(--text);
  display: block;
  font-size: 13px;
  font-weight: 540;
}

.person-row span,
.post-author span {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

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

.person-name {
  color: var(--text) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-handle {
  color: var(--muted) !important;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.side-show-more {
  align-items: center;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  font-size: 12px;
  font-weight: 500;
  gap: 4px;
  margin-top: 10px;
  padding-top: 10px;
}

.side-show-more:hover {
  color: var(--text);
}

.sr-only {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

.avatar {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid color-mix(in srgb, var(--surface) 78%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--surface), 0 5px 14px rgba(24, 20, 31, 0.1);
  display: flex;
  height: 30px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 30px;
}

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

.avatar::after {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
  pointer-events: none;
}

.avatar-sm {
  height: 26px;
  width: 26px;
}

.feed-column {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.post-card {
  overflow: hidden;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.post-card:hover {
  border-color: var(--line-strong);
}

.post-card.is-open {
  border-color: color-mix(in srgb, var(--brand) 26%, var(--line));
}

.post-click-target {
  cursor: pointer;
}

.record-card {
  align-items: stretch;
  background: var(--surface-soft);
  border-radius: 14px;
  display: flex;
  gap: 14px;
  margin: 0 14px 12px;
  overflow: hidden;
  padding: 12px;
}

.record-card .album-art {
  aspect-ratio: 1;
  border-radius: 3px;
  flex: 0 0 58%;
  height: auto;
}

.record-meta {
  color: var(--muted);
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: 13px;
  justify-content: space-between;
  min-width: 0;
  padding-top: 2px;
}

.record-meta-top {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.record-meta-details {
  align-items: flex-end;
  display: flex;
  justify-content: space-between;
}

.record-meta-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.label-logo {
  filter: brightness(0) invert(0.68);
  height: 30px;
  max-width: 72px;
  object-fit: contain;
  object-position: bottom right;
}

.label-name {
  color: var(--muted);
  font-size: 13px;
}

.record-meta p,
.record-meta h3 {
  font-size: 15px;
  margin: 0;
}

.record-meta h3 {
  color: var(--text);
  font-weight: 520;
}

.record-meta p {
  color: var(--muted);
  font-weight: 560;
}

.record-meta span {
  color: var(--muted);
  font-size: 13px;
}

.album-art {
  aspect-ratio: 1;
  background: var(--a);
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  overflow: hidden;
  position: relative;
  width: 100%;
}

.album-art.compact {
  width: 100%;
}

.album-art img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cover-pattern {
  align-items: flex-end;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  min-height: 0;
  overflow: hidden;
  padding: 14px;
  position: relative;
  text-align: right;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.cover-pattern::before,
.cover-pattern::after {
  content: "";
  inset: 0;
  position: absolute;
}

.cover-pattern::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), transparent 42%, rgba(0, 0, 0, 0.28));
}

.cover-pattern > * {
  position: relative;
  z-index: 1;
}

.cover-pattern strong {
  font-size: clamp(16px, 2.4vw, 24px);
  line-height: 0.98;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.cover-artist {
  font-size: 11px;
  font-weight: 660;
  letter-spacing: 0;
  text-transform: uppercase;
}

.speed::before {
  background: linear-gradient(135deg, transparent 20%, var(--b) 21% 43%, transparent 44%), linear-gradient(20deg, var(--c), transparent 55%);
}

.record::before {
  background: radial-gradient(circle, var(--b) 0 10%, transparent 11% 20%, var(--c) 21% 38%, var(--a) 39% 60%, var(--b) 61%);
  filter: saturate(1.3);
}

.prism::before {
  background: conic-gradient(from 35deg, var(--a), var(--b), var(--c), var(--a));
}

.type::before {
  background: repeating-linear-gradient(-8deg, var(--a) 0 10px, var(--b) 11px 14px);
  opacity: 0.82;
}

.burst::before {
  background: radial-gradient(circle at center, var(--c) 0 8%, transparent 9%), conic-gradient(var(--a), var(--b), var(--c), var(--a));
}

.portrait::before {
  background: linear-gradient(160deg, var(--a), transparent), radial-gradient(circle at 40% 35%, var(--c) 0 16%, transparent 17%), var(--b);
}

.crest::before {
  background: radial-gradient(circle at 50% 40%, transparent 0 18%, var(--c) 19% 23%, transparent 24%), linear-gradient(135deg, var(--a), var(--b));
}

.stairs::before {
  background: repeating-linear-gradient(135deg, var(--a) 0 18px, var(--b) 19px 36px, var(--c) 37px 40px);
}

.rings::before {
  background: repeating-radial-gradient(circle at 35% 40%, var(--a) 0 12px, var(--b) 13px 22px, var(--c) 23px 28px);
}

.city::before {
  background: linear-gradient(to top, var(--a) 0 38%, transparent 39%), repeating-linear-gradient(90deg, var(--b) 0 18px, var(--c) 19px 21px);
}

.minimal::before {
  background: linear-gradient(145deg, var(--a), var(--b));
}

.post-text {
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
  padding: 2px 14px 14px;
}

.post-image {
  margin-bottom: 4px;
  overflow: hidden;
}

.post-image img {
  display: block;
  max-height: 340px;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.listening-photo {
  align-items: center;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 14%, transparent);
  border-radius: 10px;
  color: var(--brand);
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin: 0 14px 14px;
  min-height: 50px;
  padding: 12px;
}

.post-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 12px 10px 10px 14px;
}

.post-author {
  align-items: center;
  display: flex;
  gap: 8px;
}

.post-menu-btn {
  color: var(--muted);
  min-height: 30px;
  padding: 0 8px;
}

.post-menu-btn:hover {
  color: var(--text);
}

.post-footer {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 2px 8px 8px 4px;
}

.add-to-list {
  position: relative;
}

.add-to-list-btn {
  color: var(--muted);
  min-height: 30px;
  padding: 0 10px;
}

.add-to-list-btn:hover {
  color: var(--text);
}

.add-to-list-menu {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  bottom: calc(100% + 6px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  min-width: 168px;
  overflow: hidden;
  position: absolute;
  right: 0;
  z-index: 30;
}

.add-to-list-menu button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  gap: 9px;
  padding: 10px 14px;
  text-align: left;
}

.add-to-list-menu button:last-child {
  border-bottom: 0;
}

.add-to-list-menu button:hover {
  background: var(--surface-soft);
}

.post-actions {
  display: flex;
  gap: 4px;
}

.post-actions button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  display: inline-flex;
  font-size: 12px;
  gap: 4px;
  min-height: 30px;
  padding: 0 8px;
}

.post-actions button:hover {
  background: var(--surface);
  color: var(--text);
}

.post-actions .liked {
  color: var(--brand);
}

.post-actions .liked svg {
  fill: currentColor;
}

.post-actions .active {
  background: var(--brand-soft);
  color: var(--brand);
}

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

.comments-view-sticky {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 10px;
  position: sticky;
  top: 58px;
  z-index: 12;
}

.comments-view-sticky::after {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 88%, transparent), transparent);
  bottom: -88px;
  content: '';
  height: 88px;
  left: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
}

.comments-view-header {
  align-items: center;
  display: flex;
  gap: 6px;
  padding: 6px 0 4px;
}

.comments-reply-form-wrap {
  padding: 0 0 24px;
}

.comments-reply-form {
  background: var(--surface);
  border: none;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.1);
  padding: 8px 8px 8px 14px;
}

.comments-reply-form button {
  background: var(--text);
  border-radius: 999px;
  color: var(--bg);
  font-size: 13px;
  font-weight: 540;
  min-height: 34px;
  padding: 0 18px;
}

.comments-view-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 500;
}

.comments-standalone {
  background: transparent;
  border: none;
  border-radius: 0;
}

.comments {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  padding: 0;
}

.comment-row {
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr);
  border-top: 1px solid var(--line);
  padding: 12px 14px;
}

.comment-body {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.comment-meta {
  align-items: center;
  display: flex;
  gap: 5px;
  min-width: 0;
}

.comment-meta strong,
.comment-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comment-meta strong {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.comment-meta span {
  color: var(--muted);
  font-size: 12px;
}

.comment-meta span + span::before {
  content: "-";
  margin-right: 5px;
}

.comment-body p {
  color: var(--text);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

.comment-actions {
  display: flex;
  gap: 18px;
}

.comment-actions button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--muted);
  display: inline-flex;
  min-height: 24px;
  padding: 0;
}

.comment-actions button:hover {
  color: var(--brand);
}

.comment-form {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 9px;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  padding: 12px 14px;
}

.comment-form input,
.comment-form textarea {
  background: transparent;
  border: 0;
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.4;
  min-height: 24px;
  outline: 0;
  overflow: hidden;
  padding: 0;
  resize: none;
  width: 100%;
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
  color: var(--muted);
}

.comment-form button {
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 540;
  min-height: 36px;
  padding: 0 16px;
}

.comment-form button:hover {
  background: var(--brand-strong);
}

.active-users {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.active-users-overflow {
  align-items: center;
  background: var(--text);
  border: 1px solid color-mix(in srgb, var(--surface) 78%, transparent);
  border-radius: 999px;
  box-shadow: 0 0 0 2px var(--surface), 0 5px 14px rgba(24, 20, 31, 0.1);
  color: var(--surface);
  display: flex;
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 540;
  height: 26px;
  justify-content: center;
  width: 26px;
}

.promo-tile {
  align-items: center;
  aspect-ratio: 1.12;
  background: #050506;
  border-radius: 12px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}

.promo-tile span {
  font-size: 42px;
  font-weight: 660;
  line-height: 1;
}

.promo-tile strong {
  font-size: 13px;
  margin-top: 10px;
}

.product-list {
  display: grid;
  gap: 10px;
}

.product-card,
.product-row {
  color: inherit;
  text-decoration: none;
}

.featured-product {
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: grid;
  overflow: hidden;
}

.featured-product:hover,
.product-row:hover {
  border-color: var(--line-strong);
}

.product-media {
  align-items: center;
  aspect-ratio: 1.15;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.product-media img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.product-media span {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  color: #1d1b20;
  font-size: 11px;
  font-weight: 600;
  left: 8px;
  padding: 4px 8px;
  position: absolute;
  top: 8px;
}

:root[data-theme="dark"] .product-media span {
  background: rgba(17, 17, 19, 0.78);
  color: var(--text);
}

.product-copy {
  display: grid;
  gap: 4px;
  padding: 10px;
}

.product-copy p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 540;
  margin: 0;
  text-transform: uppercase;
}

.product-copy h3 {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  margin: 0;
}

.product-copy span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.product-footer {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 9px 10px;
}

.product-footer strong {
  color: var(--text);
  font-size: 14px;
}

.product-footer span {
  align-items: center;
  color: var(--brand);
  display: inline-flex;
  font-size: 12px;
  font-weight: 600;
  gap: 4px;
}

.product-row {
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 56px minmax(0, 1fr);
  padding: 8px;
}

.product-row img {
  background: var(--surface-soft);
  border-radius: 8px;
  height: 56px;
  object-fit: cover;
  width: 56px;
}

.product-row p,
.product-row strong,
.product-row span {
  display: block;
  margin: 0;
  min-width: 0;
}

.product-row p {
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.product-row strong {
  color: var(--text);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-row span {
  color: var(--muted);
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-heading {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 20px;
}

.page-title {
  font-size: 18px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.page-heading-actions {
  align-items: center;
  display: flex;
  gap: 8px;
}

.page-heading-icons {
  align-items: center;
  display: flex;
  gap: 2px;
}

.active-view {
  background: var(--brand-soft) !important;
  color: var(--brand) !important;
}

.view-divider {
  background: var(--line);
  height: 18px;
  margin: 0 4px;
  width: 1px;
}

.inline-search {
  align-items: center;
  animation: search-expand 240ms cubic-bezier(0.16, 1, 0.3, 1) both;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: flex;
  gap: 8px;
  min-height: 36px;
  overflow: hidden;
  padding: 0 10px;
  transform-origin: left center;
}

@keyframes search-expand {
  from {
    opacity: 0.4;
    transform: scaleX(0.2);
    width: 36px;
  }
  to {
    opacity: 1;
    transform: scaleX(1);
  }
}

.inline-search svg {
  color: var(--muted);
  flex-shrink: 0;
}

.inline-search input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 13px;
  outline: 0;
  width: 180px;
}

.inline-search-close {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  padding: 2px;
}

.inline-search-close:hover {
  color: var(--text);
}

.album-list {
  display: grid;
  gap: 6px;
}

.album-list-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px minmax(0, 1.5fr) 60px 60px minmax(0, 1fr) minmax(0, 1fr) 34px;
  padding: 10px 12px;
}

.album-list-row .album-art {
  border-radius: 4px;
  height: 48px;
  width: 48px;
}

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

.album-list-title {
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.modal-overlay {
  align-items: flex-start;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  inset: 0;
  justify-content: center;
  padding-top: 80px;
  position: fixed;
  z-index: 200;
}

.modal-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: calc(100vh - 140px);
  overflow: hidden;
  padding: 20px;
  width: 520px;
}

.modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.modal-header h2 {
  font-size: 16px;
  font-weight: 540;
  margin: 0;
}

.segmented.modal-segmented {
  grid-template-columns: repeat(3, 1fr);
}

.segmented.segmented-2col {
  grid-template-columns: repeat(2, 1fr);
}

/* ── Marketplace ─────────────────────────────────────── */

.marketplace-page {}

.marketplace-section {
  margin-bottom: 32px;
}

.marketplace-section-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0;
}

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

.see-all-link {
  align-items: center;
  background: none;
  border: none;
  color: var(--brand);
  cursor: pointer;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  gap: 2px;
  padding: 0;
}

.see-all-link:hover {
  opacity: 0.75;
}

.listings-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  padding-bottom: 8px;
}

.wishlist-listings-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, 1fr);
}

.wishlist-listing-card {
  align-items: stretch;
  background: var(--surface-soft);
  border-radius: 16px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.wishlist-listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.wishlist-listing-photo {
  align-items: center;
  display: flex;
  flex: 0 0 96px;
}

.wishlist-listing-photo .album-art {
  border-radius: 4px;
  height: 96px;
  width: 96px;
}

.wishlist-listing-info {
  align-self: stretch;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.wishlist-listing-title {
  font-size: 14px;
  font-weight: 560;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-listing-artist {
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  padding-bottom: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wishlist-listing-price-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-top: 6px;
}

.wishlist-price {
  color: var(--text);
  font-size: 18px;
  font-weight: 640;
}

/* ── Recent listing card ──────────────────────────────── */

.recent-listings-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.recent-listing-card {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 14px;
  padding: 12px 14px;
  transition: background 120ms ease, box-shadow 120ms ease;
}

.recent-listing-card:hover {
  box-shadow: var(--shadow);
}

.recent-listing-photo {
  flex: 0 0 52px;
  height: 52px;
}

.recent-listing-photo .album-art {
  border-radius: 6px;
  height: 52px;
  width: 52px;
}

.recent-listing-left {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.recent-listing-title {
  font-size: 14px;
  font-weight: 520;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.recent-listing-right {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 24px;
  justify-content: flex-end;
}

.recent-listing-price {
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

/* ── Trending listing card ──────────────────────────────── */

.trending-listing-card {
  background: var(--surface-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.trending-listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.trending-listing-photo {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.trending-listing-photo .album-art {
  border-radius: 14px 14px 0 0;
  height: 100%;
  width: 100%;
}

.trending-rating-badge {
  align-items: center;
  background: var(--bg);
  border-radius: 999px;
  bottom: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.14);
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 3px;
  padding: 4px 9px;
  position: absolute;
  right: 8px;
}

.trending-seller-row {
  align-items: center;
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.trending-seller-name {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.trending-sales {
  color: var(--muted-2, var(--muted));
  font-size: 11px;
  margin-left: auto;
}

/* ── Section detail view ──────────────────────────────── */

.section-detail-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listing-card {
  background: var(--surface-soft);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.listing-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.listing-card-photo {
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

.listing-card-photo .album-art {
  border-radius: 14px 14px 0 0;
  height: 100%;
  width: 100%;
}

.listing-card-price-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.listing-price-badge {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
}

.condition-pill {
  border-radius: 999px;
  font-size: 10px;
  font-weight: 560;
  padding: 3px 8px;
}

.condition-mint {
  background: rgba(22, 163, 74, 0.15);
  color: #16a34a;
}

.condition-new {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.condition-used {
  background: var(--surface);
  color: var(--muted);
}

:root[data-theme="dark"] .condition-mint {
  background: rgba(22, 163, 74, 0.2);
  color: #4ade80;
}

:root[data-theme="dark"] .condition-new {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
}

.listing-card-info {
  padding: 12px 14px 14px;
}

.listing-card-title {
  font-size: 14px;
  font-weight: 540;
  margin-bottom: 2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card-artist {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.listing-card-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 10px;
}

.listing-card-meta span {
  align-items: center;
  display: flex;
  gap: 4px;
}

/* ── Listing detail view ─────────────────────────────── */

.listing-detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.listing-detail-header {
  align-items: center;
  background: var(--bg);
  display: flex;
  gap: 8px;
  padding: 6px 0 12px;
  position: sticky;
  top: 58px;
  z-index: 12;
}

.listing-detail-title {
  color: var(--text);
  font-size: 15px;
  font-weight: 560;
}

.listing-detail-photo {
  border-radius: 16px;
  overflow: hidden;
}

.listing-detail-photo .album-art {
  border-radius: 0;
  height: auto;
  width: 100%;
}

.listing-detail-buy-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.listing-detail-price {
  font-size: 28px;
  font-weight: 580;
  line-height: 1;
}

.listing-detail-shipping {
  color: var(--muted);
  font-size: 13px;
  margin-left: 8px;
}

.listing-detail-buy-btn {
  min-height: 40px;
  padding: 0 20px;
}

.listing-detail-album {
  pointer-events: none;
}

.listing-detail-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.listing-detail-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.listing-detail-description {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* ── Seller card ─────────────────────────────────────── */

.seller-card {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 12px;
  display: flex;
  gap: 12px;
  padding: 14px;
}

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

.seller-name {
  font-size: 14px;
  font-weight: 540;
}

.seller-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 5px;
}

.seller-rating {
  color: var(--text);
}

/* ── My listings ─────────────────────────────────────── */

.my-listings-view {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.my-listings-list {
  display: flex;
  flex-direction: column;
}

.my-listings-row {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr auto 34px;
  padding: 12px 0;
}

.my-listings-art .album-art {
  border-radius: 6px;
  height: 48px;
  width: 48px;
}

.my-listings-info {
  min-width: 0;
}

.my-listings-title {
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-listings-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin-top: 2px;
}

.my-listings-price {
  font-size: 14px;
  font-weight: 540;
}

.my-listings-btn {
  min-height: 30px;
  min-width: 30px;
  padding: 0;
}

.my-listings-empty {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 60px 0;
  text-align: center;
}

.my-listings-empty p {
  color: var(--muted);
  margin: 0;
}

/* ── Create listing modal ────────────────────────────── */

.create-listing-modal {
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}

.create-listing-steps {
  display: flex;
  gap: 6px;
  margin-bottom: 4px;
}

.create-listing-step {
  align-items: center;
  background: var(--line);
  border-radius: 999px;
  color: var(--muted);
  display: flex;
  font-size: 11px;
  font-weight: 560;
  height: 22px;
  justify-content: center;
  width: 22px;
}

.create-listing-step.active {
  background: var(--brand);
  color: #fff;
}

.photo-upload-area {
  align-items: center;
  background: var(--surface-soft);
  border: 2px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  justify-content: center;
  min-height: 96px;
}

.photo-upload-sub {
  font-size: 11px;
}

.create-listing-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.create-listing-field label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 540;
}

.create-listing-field input,
.create-listing-field textarea {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-height: 40px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.create-listing-field textarea {
  min-height: unset;
  padding: 10px 12px;
  resize: none;
}

.create-listing-location-input {
  color: var(--muted) !important;
}

.condition-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.condition-option {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 4px 12px;
  transition: background 120ms, border-color 120ms, color 120ms;
}

.condition-option.active {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.price-input-wrap {
  align-items: center;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 6px;
  padding: 0 12px;
}

.price-input-wrap span {
  color: var(--muted);
  flex-shrink: 0;
}

.price-input-wrap input {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  min-height: 40px;
  outline: 0;
  width: 100%;
}

.create-listing-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.create-listing-next {
  width: 100%;
}

.create-listing-summary {
  align-items: center;
  background: var(--surface-soft);
  border-radius: 10px;
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr;
  padding: 12px;
}

.create-listing-summary .album-art {
  border-radius: 6px;
  height: 48px;
  width: 48px;
}

.modal-result-row.selected {
  background: var(--brand-soft);
}

/* ── Checkout modal ──────────────────────────────────── */

.checkout-modal {
  gap: 14px;
}

.checkout-summary {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 56px 1fr;
}

.checkout-summary .album-art {
  border-radius: 8px;
  height: 56px;
  width: 56px;
}

.checkout-summary-title {
  font-size: 14px;
  font-weight: 540;
}

.checkout-summary-sub {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  gap: 6px;
  margin: 3px 0;
}

.checkout-summary-price {
  font-size: 14px;
  font-weight: 560;
}

.checkout-summary-price span {
  color: var(--muted);
  font-weight: 400;
}

.checkout-divider {
  background: var(--line);
  height: 1px;
  margin: 2px 0;
}

.checkout-section-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 560;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.checkout-form-group {
  margin-bottom: 8px;
}

.checkout-form-group input,
.checkout-form-row input {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  min-height: 40px;
  outline: 0;
  padding: 0 12px;
  width: 100%;
}

.checkout-form-row {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.checkout-total {
  align-items: center;
  display: flex;
  font-size: 14px;
  justify-content: space-between;
  margin: 4px 0;
}

.checkout-total strong {
  font-size: 18px;
  font-weight: 560;
}

.checkout-submit {
  min-height: 44px;
  width: 100%;
}

.checkout-success {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 0;
  text-align: center;
}

.checkout-success-icon {
  color: #16a34a;
}

.checkout-success h3 {
  font-size: 18px;
  font-weight: 560;
  margin: 0;
}

.checkout-success p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.modal-results {
  display: grid;
  gap: 6px;
  overflow-y: auto;
}

.modal-result-row {
  align-items: center;
  border-radius: 10px;
  display: grid;
  gap: 10px;
  grid-template-columns: 48px 1fr auto;
  padding: 8px;
}

.modal-result-row:hover {
  background: var(--surface-soft);
}

.modal-result-row .album-art {
  height: 48px;
  width: 48px;
}

.modal-result-title {
  color: var(--text);
  display: block;
  font-size: 13px;
  font-weight: 600;
}

.modal-result-sub {
  color: var(--muted);
  display: block;
  font-size: 12px;
}

.marketplace-page {
  padding: 32px 24px;
}

.marketplace-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 80px 0;
}

.marketplace-empty p {
  font-size: 15px;
  margin: 0;
}

.album-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.album-card {
  display: grid;
  gap: 10px;
  padding: 10px;
  position: relative;
}

.album-card h2 {
  font-size: 14px;
  font-weight: 560;
  margin: 0 0 3px;
}

.album-card p,
.album-card span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
}

.album-card .icon-button {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.72);
  border-color: rgba(255, 255, 255, 0.2);
  position: absolute;
  right: 16px;
  top: 16px;
}

:root[data-theme="dark"] .album-card .icon-button {
  background: rgba(20, 20, 22, 0.7);
}

.search-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.segmented {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 3px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  min-height: 32px;
  text-transform: capitalize;
}

.segmented .active {
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(22, 18, 28, 0.05);
  color: var(--text);
}

.search-results,
.people-results {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.result-row {
  align-items: center;
  display: grid;
  gap: 14px;
  grid-template-columns: 76px 1fr auto;
  padding: 10px;
}

.result-row h2 {
  font-size: 15px;
  font-weight: 560;
  margin: 0 0 4px;
}

.result-row p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.people-results .person-row {
  padding: 12px;
}

@media (max-width: 1080px) {
  .feed-layout {
    grid-template-columns: 244px minmax(0, 1fr);
  }

  .right-rail {
    display: none;
  }

  .album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar-inner {
    grid-template-columns: 1fr auto;
    height: auto;
    min-height: 58px;
    padding: 10px 14px;
  }

  .nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    order: 3;
    padding-top: 8px;
  }

  .nav-item {
    flex: 0 0 auto;
    min-height: 34px;
  }

  .feed-layout {
    grid-template-columns: 1fr;
  }

  .left-rail {
    display: grid;
    gap: 16px;
  }

  .composer {
    margin-bottom: 0;
  }

  .record-card {
    grid-template-columns: minmax(148px, 220px) 1fr;
  }

  .album-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .page {
    padding: 18px 12px 44px;
  }

  .topbar-inner {
    padding-inline: 12px;
  }

  .brand img {
    width: 86px;
  }

  .nav-item span {
    display: none;
  }

  .composer-bottom,
  .post-footer,
  .page-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .composer-tools {
    flex-wrap: wrap;
  }

  .album-picker {
    left: 10px;
    right: 10px;
    width: auto;
  }

  .record-card {
    grid-template-columns: 1fr;
  }

  .comments {
    padding: 0;
  }

  .comment-form {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .comment-form button {
    grid-column: 2;
    justify-self: end;
  }

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

  .result-row {
    grid-template-columns: 64px 1fr;
  }

  .result-row .ghost-button {
    grid-column: 1 / -1;
  }

  .segmented {
    grid-template-columns: repeat(2, 1fr);
  }
}
