@import url("https://fonts.googleapis.com/css2?family=Anton&family=DM+Serif+Display:ital@0;1&family=Space+Mono:wght@700&display=swap");

/* ---------- Tokens ---------- */

:root {
  --bg: #ffffff;
  --fg: #000000;
  --text-2: #424242;
  --muted: #999999;
  --faint: #b8b8b8;
  --line: rgba(0, 0, 0, 0.12);
  --rail: #dcdcdc;
  --surface: #f3f3f3;
  --surface-2: #e6e6e6;
  --sheet: #ffffff;
  --like: #ff3040;
  --fave: #ffb000;
  --link: #0095f6;
  --stage: #efefec;
  --stage-fg: #111111;

  --cat-eten: #ff6b2c;
  --cat-muziek: #a24bf2;
  --cat-serie: #2d7ff9;
  --cat-film: #f2385a;
  --cat-boek: #e09a00;
  --cat-game: #1fb35b;
  --cat-podcast: #0fb5ae;
  --cat-plek: #e94ab1;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "DM Serif Display", "New York", Georgia, serif;
  --font-condensed: Anton, Impact, "Arial Narrow", sans-serif;
}

[data-theme="dark"] {
  --bg: #101010;
  --fg: #f3f5f7;
  --text-2: #cccccc;
  --muted: #777777;
  --faint: #4d4d4d;
  --line: rgba(243, 245, 247, 0.15);
  --rail: #333638;
  --surface: #1e1e1e;
  --surface-2: #2c2c2c;
  --sheet: #181818;
  --stage: #050505;
  --stage-fg: #f3f5f7;
}

/* ---------- Base ---------- */

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

html,
body {
  margin: 0;
}

body {
  font-family: var(--font);
  background: var(--stage);
  color: var(--stage-fg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

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

p,
h1,
h2,
h3,
ul,
ol {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

.muted {
  color: var(--muted);
}

.mention {
  color: var(--link);
}

/* ---------- Stage & device frame ---------- */

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 48px 24px;
}

.device {
  position: relative;
  flex: none;
  width: 412px;
  height: 866px;
  padding: 11px;
  border-radius: 64px;
  background: #0c0c0c;
  box-shadow:
    0 0 0 2px #2b2b2d,
    0 0 0 4px #85858a,
    0 0 0 5px #3a3a3c,
    0 50px 90px -30px rgba(0, 0, 0, 0.5);
}

.device::before,
.device::after {
  content: "";
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: #6e6e73;
}

.device::before {
  left: -8px;
  top: 196px;
  height: 62px;
  box-shadow: 0 78px 0 #6e6e73;
}

.device::after {
  right: -8px;
  top: 262px;
  height: 100px;
}

.screen {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 53px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  line-height: 1.4;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.island {
  position: absolute;
  top: 11px;
  left: 50%;
  z-index: 100;
  width: 124px;
  height: 36px;
  border-radius: 20px;
  background: #000;
  transform: translateX(-50%);
}

.statusbar {
  position: relative;
  z-index: 40;
  flex: none;
  display: grid;
  grid-template-columns: 1fr 124px 1fr;
  align-items: center;
  height: 54px;
  padding-top: 4px;
  background: var(--bg);
  color: var(--fg);
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.statusbar__time {
  justify-self: center;
  padding-left: 16px;
}

.statusbar__icons {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 6px;
  padding-right: 12px;
}

.statusbar__icons svg {
  display: block;
  fill: currentColor;
}

.home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  z-index: 100;
  width: 136px;
  height: 5px;
  border-radius: 3px;
  background: var(--fg);
  transform: translateX(-50%);
}

.app {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.app::-webkit-scrollbar {
  display: none;
}

/* ---------- Caption under the device ---------- */

.caption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--stage-fg);
}

.caption a,
.caption button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  min-width: 36px;
  padding: 0 12px;
  border-radius: 18px;
  background: rgba(128, 128, 128, 0.14);
  font-weight: 600;
}

.caption__title {
  padding: 0 8px;
  font-weight: 600;
}

.caption__title b {
  margin-right: 6px;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

.is-embed body {
  background: transparent;
}

.is-embed .stage {
  display: block;
  min-height: 0;
  padding: 10px;
}

.is-embed .caption {
  display: none;
}

.is-embed .device {
  box-shadow:
    0 0 0 2px #2b2b2d,
    0 0 0 4px #85858a,
    0 0 0 5px #3a3a3c;
}

/* ---------- Icons ---------- */

.i {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i--fill {
  fill: currentColor;
}

.i--sm {
  width: 18px;
  height: 18px;
}

.i--xs {
  width: 14px;
  height: 14px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  color: var(--fg);
}

.wordmark {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

/* ---------- Top bar & tab bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  padding: 0 12px;
  background: var(--bg);
}

.topbar--logo {
  justify-content: center;
}

.topbar__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.topbar__title small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.topbar__link {
  padding: 0 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--fg);
}

.icon-btn--glass {
  background: rgba(0, 0, 0, 0.32);
  color: #fff;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.tabbar {
  position: relative;
  z-index: 30;
  flex: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  height: 84px;
  padding: 6px 10px 0;
  background: var(--bg);
}

.tabbar a {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px;
  height: 50px;
  border-radius: 12px;
  color: var(--faint);
}

.tabbar a.is-active {
  color: var(--fg);
}

.tabbar .i {
  width: 27px;
  height: 27px;
}

.tabbar a.is-active .i {
  stroke-width: 2.4;
}

.tabbar .tab-create {
  width: 60px;
  height: 46px;
  margin-top: 2px;
  background: var(--surface);
}

.tabbar .tab-create .i {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.tabbar__dot {
  position: absolute;
  bottom: 6px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--like);
  transform: translateX(-50%);
}

/* ---------- Avatars ---------- */

.avatar {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface);
  box-shadow: 0 0 0 0.5px var(--line);
}

.avatar--xs {
  width: 20px;
  height: 20px;
}

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

.avatar--md {
  width: 44px;
  height: 44px;
}

.avatar--lg {
  width: 60px;
  height: 60px;
}

.avatar--xl {
  width: 84px;
  height: 84px;
}

.avatar-wrap {
  position: relative;
  flex: none;
  display: inline-block;
  line-height: 0;
}

.avatar-badge {
  position: absolute;
  right: -4px;
  bottom: -4px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 2px solid var(--bg);
  border-radius: 50%;
  background: var(--fg);
  color: #fff;
}

.avatar-badge .i {
  width: 10px;
  height: 10px;
  stroke-width: 3;
}

.avatar-badge--follow-plus {
  right: -3px;
  bottom: -3px;
  width: 18px;
  height: 18px;
  color: var(--bg);
}

.badge-like { background: #ff0169; }
.badge-follow { background: #6e3def; }
.badge-reply { background: #24c3ff; }
.badge-mention { background: #1fc16b; }
.badge-recommend { background: #ff7a00; }
.badge-fave { background: var(--fave); }

.stack {
  display: flex;
  align-items: center;
}

.stack .avatar {
  box-shadow: 0 0 0 2px var(--bg);
}

.stack .avatar + .avatar {
  margin-left: -7px;
}

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 34px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--fg);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.btn--primary {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.btn--sm {
  height: 30px;
  padding: 0 14px;
  font-size: 14px;
}

.btn--lg {
  height: 52px;
  border-radius: 14px;
  font-size: 16px;
}

.btn--block {
  width: 100%;
}

.btn.is-disabled {
  opacity: 0.35;
}

.btn--muted {
  color: var(--muted);
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 16px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  font-weight: 600;
}

.chip .i {
  width: 15px;
  height: 15px;
}

.chip.is-active {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.pill {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
}

.tag .i {
  width: 14px;
  height: 14px;
}

.tag .muted {
  font-weight: 400;
}

/* Category label */

.cat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--c, var(--muted));
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.cat .i {
  width: 13px;
  height: 13px;
  stroke-width: 2.3;
}

.cat--eten { --c: var(--cat-eten); }
.cat--muziek { --c: var(--cat-muziek); }
.cat--serie { --c: var(--cat-serie); }
.cat--film { --c: var(--cat-film); }
.cat--boek { --c: var(--cat-boek); }
.cat--game { --c: var(--cat-game); }
.cat--podcast { --c: var(--cat-podcast); }
.cat--plek { --c: var(--cat-plek); }

/* ---------- Search field & headings ---------- */

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  margin: 0 16px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
  color: var(--muted);
}

.search .i {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.search + .chips,
.share-item + .search {
  margin-top: 12px;
}

.page-title {
  padding: 12px 16px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px 16px 10px;
}

.section-head h2 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-head h2 span {
  margin-left: 2px;
  color: var(--muted);
  font-weight: 500;
}

.section-head a {
  color: var(--muted);
  font-size: 14px;
}

.group-label {
  padding: 18px 16px 2px;
  font-size: 15px;
  font-weight: 700;
}

/* ---------- Feed segmented tabs & composer ---------- */

.seg {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.seg a {
  position: relative;
  flex: 1;
  padding: 10px 0 11px;
  color: var(--muted);
  font-weight: 600;
  text-align: center;
}

.seg a.is-active {
  color: var(--fg);
}

.seg a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--fg);
}

.composer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.composer__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.composer__body .muted {
  font-size: 15px;
}

/* ---------- Posts ---------- */

.post {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
  padding: 14px 16px 6px;
  border-bottom: 1px solid var(--line);
}

.post--thread {
  padding-bottom: 0;
  border-bottom: 0;
}

.post--thread + .post {
  padding-top: 4px;
}

.post__label {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 8px 16px;
  color: var(--muted);
  font-size: 13px;
}

.post__label .i {
  width: 14px;
  height: 14px;
}

.post__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.rail-line {
  flex: 1;
  width: 2px;
  min-height: 14px;
  border-radius: 1px;
  background: var(--rail);
}

.post__main {
  min-width: 0;
  padding-bottom: 4px;
}

.post__head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 20px;
  line-height: 20px;
}

.name {
  font-weight: 600;
}

.post__head .meta {
  color: var(--muted);
}

.post__head .icon-btn {
  width: 28px;
  height: 22px;
  margin-left: auto;
  margin-right: -4px;
  border-radius: 6px;
}

.post__head .icon-btn .i {
  width: 20px;
  height: 20px;
}

.post__text {
  margin-top: 1px;
}

.post__text + .post__text {
  margin-top: 8px;
}

.post__extra {
  margin-top: 10px;
}

.actions {
  display: flex;
  align-items: center;
  margin: 6px 0 0 -9px;
}

.action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 34px;
  padding: 0 9px;
  border-radius: 17px;
  color: var(--fg);
  font-size: 13px;
}

.action .i {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.action.is-liked {
  color: var(--like);
}

.action.is-liked .i {
  fill: currentColor;
}

.action.is-faved .i {
  fill: var(--fave);
  stroke: var(--fave);
}

.media {
  overflow: hidden;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 0 0 0.5px var(--line);
}

.media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.carousel {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 10px -16px 0 0;
  padding-right: 16px;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel > img {
  flex: none;
  width: 230px;
  height: 290px;
  border-radius: 10px;
  object-fit: cover;
}

.rank-card {
  position: relative;
  flex: none;
  width: 150px;
}

.rank-card .art {
  width: 150px;
  border-radius: 10px;
}

.rank-card__n {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.rank-card__title {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.rank-card__meta {
  font-size: 12px;
  color: var(--muted);
}

.ask {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--surface);
  font-size: 13px;
}

.ask .stack .avatar {
  box-shadow: 0 0 0 2px var(--surface);
}

/* Fave card (item attached to a post) */

.fave-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 8px 12px 8px 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.fave-card > .art,
.fave-card > img {
  flex: none;
  width: 46px;
  border-radius: 6px;
}

.fave-card > img {
  height: 46px;
  object-fit: cover;
}

.fave-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fave-card__title {
  overflow: hidden;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fave-card__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fave-card__btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.fave-card__btn .i {
  width: 14px;
  height: 14px;
  stroke-width: 2.5;
}

.fave-card__btn.is-added {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Art (CSS posters & covers) ---------- */

.art {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  overflow: hidden;
  container-type: inline-size;
  aspect-ratio: 2 / 3;
  border-radius: 8px;
  background: #222;
  color: #fff;
  isolation: isolate;
  line-height: 1;
  --pad-y: 0px;
  --pad-x: 0px;
}

/* cqw only resolves against .art for its children, so inner spacing lives on them. */
.art > * {
  margin-inline: var(--pad-x);
}

.art > :first-child {
  margin-top: var(--pad-y);
}

.art > :last-child {
  margin-bottom: var(--pad-y);
}

.art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}

.art--square {
  aspect-ratio: 1;
}

.art__t,
.art__s {
  position: relative;
  z-index: 2;
}

.art-brat {
  align-items: center;
  justify-content: center;
  background: #8ace00;
  color: #000;
}

.art-brat .art__t {
  font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
  font-size: 22cqw;
  letter-spacing: -0.02em;
  filter: blur(0.45cqw);
}

.art-romance {
  justify-content: space-between;
  --pad-y: 9cqw;
  --pad-x: 8cqw;
  background:
    radial-gradient(circle at 28% 32%, #ff4fd8 0, transparent 46%),
    radial-gradient(circle at 78% 74%, #b6ff3b 0, transparent 42%),
    #160717;
}

.art-romance .art__s {
  font-size: 6.5cqw;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.art-romance .art__t {
  font-family: var(--font-condensed);
  font-size: 21cqw;
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.art-hmhas {
  justify-content: flex-end;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background:
    radial-gradient(ellipse at 50% 108%, rgba(160, 220, 255, 0.55), transparent 55%),
    radial-gradient(ellipse at 30% 0%, rgba(20, 60, 110, 0.9), transparent 70%),
    linear-gradient(180deg, #071d36 0%, #0f4c75 55%, #1d86b0 100%);
}

.art-hmhas .art__t {
  font-size: 6.6cqw;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.35;
}

.art-hmhas .art__s {
  margin-top: 2cqw;
  font-size: 5cqw;
  letter-spacing: 0.2em;
  opacity: 0.7;
}

.art-bear {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 10cqw;
  --pad-x: 6cqw;
  background: linear-gradient(180deg, #3d7dbb 0%, #1b3a5c 70%);
}

.art-bear::before {
  background:
    linear-gradient(180deg, transparent 52%, rgba(6, 14, 26, 0.95) 80%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12cqw),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12cqw);
}

.art-bear .art__t {
  font-family: var(--font-condensed);
  font-size: 25cqw;
  letter-spacing: 0.03em;
  line-height: 0.9;
}

.art-bear .art__s {
  margin-top: 3cqw;
  font-size: 5cqw;
  letter-spacing: 0.4em;
  opacity: 0.7;
}

.art-shogun {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 10cqw;
  --pad-x: 4cqw;
  background: linear-gradient(180deg, #1b1414, #000);
}

.art-shogun::before {
  background: radial-gradient(circle at 50% 36%, #d0102c 0 21cqw, transparent 21.5cqw);
}

.art-shogun .art__t {
  font-family: var(--font-serif);
  font-size: 19cqw;
  letter-spacing: 0.1em;
  text-indent: 0.1em;
}

.art-shogun .art__s {
  margin-top: 3cqw;
  font-size: 5cqw;
  letter-spacing: 0.35em;
  opacity: 0.6;
}

.art-pastlives {
  justify-content: space-between;
  --pad-y: 9cqw;
  --pad-x: 8cqw;
  background: linear-gradient(180deg, #f7d6b9 0%, #ecb9a2 38%, #a7c4dc 64%, #5f86a8 100%);
  color: #1d2a3a;
}

.art-pastlives::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 62%;
  height: 1px;
  background: rgba(255, 255, 255, 0.7);
}

.art-pastlives .art__t {
  font-family: var(--font-serif);
  font-size: 20cqw;
  font-style: italic;
  line-height: 0.95;
}

.art-pastlives .art__s {
  font-size: 5cqw;
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.art-dune {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 10cqw;
  --pad-x: 4cqw;
  background: linear-gradient(180deg, #e2793a 0%, #a5401b 58%, #3a1408 100%);
}

.art-dune::before {
  background: radial-gradient(circle at 50% 38%, #ffd8a0 0 13cqw, rgba(255, 170, 90, 0.6) 13.5cqw 26cqw, transparent 26.5cqw);
}

.art-dune .art__t {
  font-family: var(--font-condensed);
  font-size: 25cqw;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
}

.art-dune .art__s {
  margin-top: 3cqw;
  font-size: 5cqw;
  letter-spacing: 0.5em;
  text-indent: 0.5em;
  opacity: 0.8;
}

.art-perfectdays {
  justify-content: flex-end;
  --pad-y: 9cqw;
  --pad-x: 9cqw;
  background: linear-gradient(180deg, #7aa274, #2c4a3a);
}

.art-perfectdays::before {
  content: "";
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 250, 200, 0.8) 0 7cqw, transparent 7.5cqw),
    radial-gradient(circle at 70% 16%, rgba(255, 250, 200, 0.6) 0 4cqw, transparent 4.5cqw),
    radial-gradient(circle at 52% 40%, rgba(255, 250, 200, 0.45) 0 9cqw, transparent 9.5cqw),
    radial-gradient(circle at 86% 46%, rgba(255, 250, 200, 0.55) 0 3cqw, transparent 3.5cqw),
    radial-gradient(circle at 30% 58%, rgba(255, 250, 200, 0.35) 0 5cqw, transparent 5.5cqw);
  filter: blur(1.5cqw);
}

.art-perfectdays .art__t {
  font-size: 10.5cqw;
  font-weight: 700;
  letter-spacing: 0.16em;
  line-height: 1.15;
}

.art-perfectdays .art__s {
  margin-top: 2cqw;
  font-size: 5cqw;
  letter-spacing: 0.2em;
  opacity: 0.8;
}

.art-paddington {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 10cqw;
  --pad-x: 6cqw;
  background: linear-gradient(180deg, #8fd0f2, #2f7fc0);
}

.art-paddington::before {
  content: "";
  position: absolute;
  top: 26%;
  left: 27%;
  width: 46%;
  height: 18%;
  border-radius: 50% 50% 12% 12% / 80% 80% 20% 20%;
  background: #d6262f;
  box-shadow: 0 5cqw 0 -1.5cqw #b31b23;
}

.art-paddington .art__t {
  font-family: var(--font-serif);
  font-size: 15cqw;
  text-align: center;
}

.art-holdovers {
  align-items: center;
  justify-content: center;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background: #efe7d8;
  color: #7d1f1a;
  text-align: center;
}

.art-holdovers::before {
  background: radial-gradient(circle, rgba(60, 40, 30, 0.14) 0.6cqw, transparent 0.9cqw) 0 0 / 9cqw 9cqw;
}

.art-holdovers .art__t {
  font-family: var(--font-serif);
  font-size: 16cqw;
  line-height: 0.95;
}

.art-holdovers .art__s {
  margin-top: 4cqw;
  color: #355f4b;
  font-size: 4.6cqw;
  letter-spacing: 0.3em;
}

.art-aftersun {
  justify-content: flex-end;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background: linear-gradient(180deg, #48bde6, #0d5f94);
}

.art-aftersun::before {
  background: repeating-linear-gradient(168deg, rgba(255, 255, 255, 0.14) 0 2cqw, transparent 2cqw 8cqw);
}

.art-aftersun .art__t {
  font-size: 15cqw;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.art-mood {
  align-items: center;
  justify-content: center;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background: radial-gradient(circle at 70% 28%, #c2161e, #4c0407 72%);
  color: #f1d48a;
  text-align: center;
}

.art-mood .art__t {
  font-family: var(--font-serif);
  font-size: 14cqw;
  font-style: italic;
  line-height: 1;
}

.art-sunrise {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 10cqw;
  --pad-x: 6cqw;
  background: linear-gradient(180deg, #f9cf73 0%, #ea8c5d 50%, #5b4a7a 100%);
  text-align: center;
}

.art-sunrise .art__t {
  font-family: var(--font-serif);
  font-size: 15cqw;
  line-height: 1;
}

.art-tomorrow {
  align-items: center;
  justify-content: center;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background: #f4ecd9;
}

.art-tomorrow::before {
  background: repeating-radial-gradient(circle at 15% 110%, #1f4e8c 0 3cqw, #f4ecd9 3cqw 5cqw);
}

.art-tomorrow .art__t {
  padding: 5cqw 4cqw;
  background: #f4ecd9;
  color: #1a2b44;
  font-family: var(--font-serif);
  font-size: 9.5cqw;
  line-height: 1.05;
  text-align: center;
}

.art-balatro {
  align-items: center;
  justify-content: flex-end;
  --pad-y: 8cqw;
  --pad-x: 8cqw;
  background: radial-gradient(circle at 50% 45%, #3c9470, #1b4a3a 75%);
}

.art-balatro::before {
  inset: 14% auto auto 30%;
  width: 40%;
  aspect-ratio: 5 / 7;
  border-radius: 3cqw;
  background: #fff;
  box-shadow:
    inset 0 0 0 2cqw #fff,
    inset 0 0 0 2.8cqw #e23b3b,
    0 2cqw 0 #12352a;
  transform: rotate(-8deg);
}

.art-balatro .art__t {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 13cqw;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 1cqw 0 #e23b3b;
}

.art-severance {
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #f2f4f5 0 50%, #dfe6ea 50%);
  color: #12324a;
}

.art-severance::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: #12324a;
  opacity: 0.25;
}

.art-severance .art__t {
  font-size: 11cqw;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
}

.art-severance .art__s {
  margin-top: 3cqw;
  font-size: 4.6cqw;
  letter-spacing: 0.3em;
  opacity: 0.6;
}

/* ---------- Lists (people, notifications) ---------- */

.row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px 0;
}

.row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.row:last-child .row__body {
  border-bottom: 0;
}

.row__body--top {
  align-items: flex-start;
}

.row__text {
  flex: 1;
  min-width: 0;
}

.row__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.row__title .meta {
  color: var(--muted);
  font-weight: 400;
}

.row__sub {
  color: var(--muted);
}

.row__sub b {
  color: var(--fg);
  font-weight: 600;
}

.row__quote {
  margin-top: 2px;
}

.row__thumb {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.row .art.row__thumb {
  aspect-ratio: auto;
}

.match {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--fg);
  font-size: 13px;
  font-weight: 600;
}

.match .i {
  width: 13px;
  height: 13px;
  color: var(--fave);
  fill: var(--fave);
  stroke: none;
}

.shared {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
}

.shared__covers {
  display: flex;
}

.shared__covers > * {
  width: 22px;
  height: 22px;
  border-radius: 5px;
  box-shadow: 0 0 0 2px var(--bg);
  object-fit: cover;
}

.shared__covers > * + * {
  margin-left: -5px;
}

.shared__covers .art {
  aspect-ratio: 1;
  border-radius: 5px;
}

/* ---------- Shelves ---------- */

.shelf {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 16px 4px;
  scrollbar-width: none;
}

.shelf::-webkit-scrollbar {
  display: none;
}

.shelf:last-child {
  padding-bottom: 24px;
}

.shelf__item {
  flex: none;
  width: 112px;
}

.shelf__item > .art,
.shelf__item > img {
  width: 112px;
  border-radius: 10px;
}

.shelf__item > img {
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.shelf--square .shelf__item > .art,
.shelf--square .shelf__item > img {
  aspect-ratio: 1;
}

.shelf__title {
  overflow: hidden;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shelf__meta {
  display: flex;
  align-items: center;
  gap: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.shelf__meta .i {
  width: 11px;
  height: 11px;
  fill: var(--fave);
  stroke: none;
}

/* ---------- 01 Welcome ---------- */

.welcome {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.collage {
  position: relative;
  flex: none;
  height: 372px;
}

.sticker {
  position: absolute;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 22px 40px -18px rgba(0, 0, 0, 0.5);
}

.sticker--photo {
  object-fit: cover;
}

.sticker--bubble {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: visible;
  padding: 6px 14px 6px 6px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.sticker--pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 20px;
  background: #000;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

[data-theme="dark"] .sticker--pill {
  background: #f3f5f7;
  color: #000;
}

.sticker--pill .i {
  width: 14px;
  height: 14px;
  fill: var(--fave);
  stroke: none;
}

.sticker--icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
}

.sticker--icon .i {
  width: 22px;
  height: 22px;
}

.welcome__content {
  display: flex;
  flex-direction: column;
  margin-top: auto;
  padding: 0 24px 40px;
}

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

.brand .logo-mark {
  width: 30px;
  height: 30px;
}

.welcome__title {
  margin-top: 14px;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.welcome__lead {
  margin-top: 10px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.4;
}

.welcome__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 22px;
}

.welcome__actions .i {
  width: 20px;
  height: 20px;
}

.welcome__alt {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.welcome__alt a {
  color: var(--fg);
  font-weight: 600;
}

/* ---------- 02 Pick your faves ---------- */

.progress {
  display: flex;
  gap: 4px;
  width: 120px;
}

.progress span {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--surface-2);
}

.progress span.is-done {
  background: var(--fg);
}

.intro {
  padding: 0 0 16px;
}

.intro .page-title {
  padding-bottom: 6px;
}

.intro p {
  padding: 0 16px;
  color: var(--muted);
}

.pick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 10px;
  padding: 16px 16px 130px;
}

.pick {
  position: relative;
  min-width: 0;
}

.pick > .art,
.pick > img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 12px;
  object-fit: cover;
}

.pick.is-selected > .art,
.pick.is-selected > img {
  outline: 2.5px solid var(--fg);
  outline-offset: 2px;
}

.pick__check {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
}

.pick.is-selected .pick__check {
  border-color: var(--bg);
  background: var(--fg);
  color: var(--bg);
}

.pick__check .i {
  width: 12px;
  height: 12px;
  stroke-width: 3.5;
}

.pick__title {
  overflow: hidden;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.footer-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 16px 38px;
  background: linear-gradient(to top, var(--bg) 72%, transparent);
}

.footer-bar__count {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.footer-bar__thumbs {
  display: flex;
}

.footer-bar__thumbs > * {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  box-shadow: 0 0 0 2px var(--bg);
  object-fit: cover;
}

.footer-bar__thumbs > * + * {
  margin-left: -8px;
}

.footer-bar__thumbs .art {
  aspect-ratio: 1;
  border-radius: 7px;
}

.footer-bar .btn {
  width: 150px;
}

/* ---------- 04 Thread detail ---------- */

.detail {
  padding: 8px 16px 4px;
  border-bottom: 1px solid var(--line);
}

.detail__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail__head .icon-btn {
  margin-left: auto;
  margin-right: -8px;
}

.detail__text {
  margin-top: 10px;
  font-size: 16px;
}

.detail__tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.tally {
  margin: 14px 16px 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.tally__title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.tally__title .i {
  width: 14px;
  height: 14px;
  color: var(--fave);
  fill: var(--fave);
  stroke: none;
}

.tally__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}

.tally__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tally__row .art {
  width: 30px;
  border-radius: 4px;
}

.tally__main {
  flex: 1;
}

.tally__line {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}

.tally__line span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.bar {
  height: 6px;
  margin-top: 5px;
  border-radius: 3px;
  background: var(--surface);
}

.bar span {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: var(--fg);
}

.replies-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 2px;
  font-weight: 700;
}

.replies-head span {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.replies-head .i {
  width: 16px;
  height: 16px;
}

.author-pill {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.reply-bar {
  position: relative;
  z-index: 30;
  flex: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px 36px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.reply-bar__input {
  flex: 1;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  border-radius: 20px;
  background: var(--surface);
  color: var(--muted);
}

/* ---------- 05 Compose sheet ---------- */

.screen--modal {
  background: #000;
}

.screen--modal .statusbar {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
  color: #fff;
}

.behind {
  position: absolute;
  top: 56px;
  left: 14px;
  right: 14px;
  bottom: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--bg);
  opacity: 0.5;
}

.sheet {
  position: absolute;
  inset: 66px 0 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  border-radius: 14px 14px 0 0;
  background: var(--sheet);
}

.sheet__head {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
}

.sheet__head strong {
  position: absolute;
  left: 50%;
  font-size: 16px;
  transform: translateX(-50%);
}

.sheet__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 0;
  scrollbar-width: none;
}

.compose {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 12px;
}

.compose__who {
  display: flex;
  align-items: center;
  gap: 4px;
  line-height: 20px;
}

.compose__who .muted {
  display: inline-flex;
  align-items: center;
}

.compose__topic {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--cat-film);
  font-weight: 600;
}

.compose__topic .i {
  width: 14px;
  height: 14px;
}

.compose__text {
  margin-top: 2px;
}

.caret {
  display: inline-block;
  width: 2px;
  height: 18px;
  margin-left: 1px;
  background: var(--link);
  vertical-align: -3px;
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.attached {
  position: relative;
}

.attached .remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
}

.attached .remove .i {
  width: 12px;
  height: 12px;
  stroke-width: 3;
}

.field-label {
  margin-top: 16px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.levels {
  display: flex;
  gap: 6px;
}

.levels .chip {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.levels .chip.is-active .i {
  fill: var(--fave);
  stroke: var(--fave);
}

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

.recipient {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 4px;
  border-radius: 16px;
  background: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

.recipient .avatar {
  width: 24px;
  height: 24px;
}

.recipient .i {
  width: 12px;
  height: 12px;
  color: var(--muted);
  stroke-width: 3;
}

.recipient--add {
  padding: 0 12px;
  border: 1px dashed var(--line);
  background: transparent;
  color: var(--muted);
}

.recipient--add .i {
  width: 14px;
  height: 14px;
}

.tools {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  color: var(--muted);
}

.tools .i {
  width: 22px;
  height: 22px;
  stroke-width: 1.8;
}

.add-thread {
  display: grid;
  grid-template-columns: 36px 1fr;
  column-gap: 12px;
  align-items: center;
  margin-top: 4px;
  padding-bottom: 20px;
  color: var(--muted);
  opacity: 0.6;
}

.add-thread .avatar {
  justify-self: center;
}

.sheet__foot {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 38px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- 06 Discover ---------- */

.trend-card {
  position: relative;
}

.trend-card__count {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.trend-card__count .i {
  width: 10px;
  height: 10px;
  fill: var(--fave);
  stroke: none;
}

.place-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 10px;
  padding: 0 16px 24px;
}

.place img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  object-fit: cover;
}

.place__title {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
}

.place__meta {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 07 Activity ---------- */

.notif-match {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: conic-gradient(from 200deg, #ffb000, #ff3d7f, #8b5cf6, #2d7ff9, #ffb000);
  color: #fff;
}

.notif-match .i {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.notif-stack {
  position: relative;
  width: 44px;
  height: 44px;
}

.notif-stack .avatar {
  position: absolute;
  width: 30px;
  height: 30px;
  box-shadow: 0 0 0 2px var(--bg);
}

.notif-stack .avatar:first-child {
  top: 0;
  left: 0;
}

.notif-stack .avatar:nth-child(2) {
  right: 0;
  bottom: 0;
}

/* ---------- 08 Profile ---------- */

.profile {
  padding: 2px 16px 0;
}

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

.profile__name {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

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

.profile__bio {
  margin-top: 14px;
}

.profile__followers {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
}

.profile__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.profile__actions .btn {
  height: 36px;
}

.profile-tabs {
  margin-top: 10px;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 8px;
  padding: 0 16px;
}

.top-tile {
  position: relative;
  min-width: 0;
}

.top-tile > .art,
.top-tile > img {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  object-fit: cover;
}

.top-tile__cat {
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c);
  color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.top-tile__cat .i {
  width: 13px;
  height: 13px;
  stroke-width: 2.4;
}

.top-tile__title {
  overflow: hidden;
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-tile__meta {
  color: var(--muted);
  font-size: 12px;
}

/* ---------- 09 Fave detail ---------- */

.screen--hero .statusbar {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.hero {
  position: relative;
  padding: 54px 16px 20px;
  background: linear-gradient(180deg, rgba(236, 185, 162, 0.55) 0%, rgba(167, 196, 220, 0.3) 45%, transparent 100%);
  text-align: center;
}

.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  margin: 0 -4px;
}

.hero__bar .topbar__actions {
  gap: 8px;
}

.hero__poster {
  width: 148px;
  margin: 4px auto 0;
  border-radius: 10px;
  box-shadow: 0 24px 40px -16px rgba(0, 0, 0, 0.55);
}

.hero__title {
  margin-top: 18px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hero__meta {
  margin-top: 6px;
  color: var(--muted);
}

.hero__tags {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}

.friends-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 14px;
}

.friends-line .stack .avatar {
  width: 24px;
  height: 24px;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 44px;
  gap: 8px;
  padding: 0 16px;
}

.detail-actions .btn {
  height: 44px;
  border-radius: 12px;
}

.detail-actions .btn .i {
  width: 18px;
  height: 18px;
}

.detail-actions .btn--primary .i {
  fill: var(--fave);
  stroke: var(--fave);
}

.detail-actions .btn--icon {
  padding: 0;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 16px 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 12px 0;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--line);
}

.stat b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.01em;
}

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

.take {
  margin: 0 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.take:last-child {
  border-bottom: 0;
}

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

.take__level {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.take__level .i {
  width: 12px;
  height: 12px;
  fill: var(--fave);
  stroke: none;
}

.take p {
  margin-top: 6px;
  padding-left: 36px;
}

.take .actions {
  margin-left: 27px;
}

.provider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 16px;
  padding: 10px 0;
}

.provider + .provider {
  border-top: 1px solid var(--line);
}

.provider__logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
}

.provider__body {
  flex: 1;
}

.provider__body b {
  display: block;
  font-weight: 600;
}

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

.provider .i {
  color: var(--muted);
}

/* ---------- 10 Recommend sheet ---------- */

.scrim {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: rgba(0, 0, 0, 0.5);
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  height: 660px;
  border-radius: 26px 26px 0 0;
  background: var(--sheet);
}

.grabber {
  width: 38px;
  height: 5px;
  margin: 8px auto 0;
  border-radius: 3px;
  background: var(--surface-2);
}

.share-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 16px 0;
  padding: 10px;
  border-radius: 14px;
  background: var(--surface);
}

.share-item .art {
  width: 36px;
  border-radius: 5px;
}

.share-item__body {
  flex: 1;
  line-height: 1.3;
}

.share-item__body b {
  display: block;
}

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

.friend-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 4px;
  padding: 16px 12px 4px;
}

.friend {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.friend .avatar-wrap {
  padding: 3px;
  border-radius: 50%;
}

.friend.is-selected .avatar-wrap {
  box-shadow: inset 0 0 0 2px var(--fg);
}

.friend .avatar-badge {
  right: -1px;
  bottom: -1px;
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--sheet);
  color: var(--bg);
}

.friend .avatar-badge .i {
  width: 11px;
  height: 11px;
  stroke-width: 3.5;
}

.friend__name {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
}

.friend__match {
  color: var(--muted);
  font-size: 11px;
}

.share-row {
  display: flex;
  justify-content: space-around;
  margin-top: 14px;
  padding: 14px 8px 0;
  border-top: 1px solid var(--line);
}

.share-row a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 84px;
  font-size: 11.5px;
  text-align: center;
}

.share-row__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
}

.share-row__icon .i {
  width: 20px;
  height: 20px;
}

.send-bar {
  margin-top: auto;
  padding: 12px 16px 36px;
  border-top: 1px solid var(--line);
}

.send-bar__input {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin-bottom: 10px;
  padding: 0 14px;
  border-radius: 14px;
  background: var(--surface);
}

/* ---------- Overview page ---------- */

.overview {
  max-width: 1880px;
  margin: 0 auto;
  padding: 56px 40px 80px;
}

.overview__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.overview__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overview__brand .logo-mark {
  width: 48px;
  height: 48px;
  color: var(--stage-fg);
}

.overview__brand h1 {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.overview__lead {
  max-width: 560px;
  margin-top: 12px;
  color: #8a8a8a;
  font-size: 17px;
  line-height: 1.5;
}

.theme-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 14px;
  background: rgba(128, 128, 128, 0.14);
}

.theme-switch button {
  height: 36px;
  padding: 0 18px;
  border-radius: 10px;
  color: #8a8a8a;
  font-size: 14px;
  font-weight: 600;
}

.theme-switch button.is-active {
  background: var(--stage-fg);
  color: var(--stage);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 432px);
  justify-content: center;
  gap: 48px 32px;
}

.shot iframe {
  display: block;
  width: 432px;
  height: 886px;
  border: 0;
  background: transparent;
}

.shot figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 14px;
  padding: 0 14px;
}

.shot figcaption a {
  font-size: 16px;
  font-weight: 700;
}

.shot figcaption b {
  margin-right: 6px;
  color: #8a8a8a;
  font-variant-numeric: tabular-nums;
}

.shot figcaption span {
  color: #8a8a8a;
  font-size: 14px;
}

.shot {
  margin: 0;
}
