:root {
  --bg: #f3f1ea;
  --card: #ffffff;
  --ink: #17171a;
  --soft: rgba(23, 23, 26, 0.56);
  --line: rgba(23, 23, 26, 0.1);
  --accent: #3b5bfd;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Mona Sans Variable", "Mona Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  place-items: center;
  padding: 10px 12px;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; outline: none; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
ul { list-style: none; }

.tf { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; width: min(344px, 100%); padding: 16px 12px 10px; border-radius: 26px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 34px 50px -34px rgba(23, 23, 26, 0.4), 0 30px 60px -44px color-mix(in srgb, var(--accent) 80%, transparent); }
.tf__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 0 4px; }
.tf__head strong { font-size: 16px; line-height: 20px; font-weight: 740; letter-spacing: -0.01em; white-space: nowrap; }
.tf__count { display: block; height: 16px; overflow: hidden; font-size: 12.500px; line-height: 16px; font-weight: 660; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tf__count span { display: block; }

.tf__subs { position: relative; display: grid; grid-template-columns: 0.7fr 1fr 1.1fr 1.1fr; height: 34px; padding: 3px; border-radius: 17px; background: rgba(23, 23, 26, 0.06); }
.tf__subs button { position: relative; z-index: 1; height: 28px; border-radius: 14px; font-size: 12.500px; font-weight: 680; color: var(--soft); white-space: nowrap; transition: color 0.25s; }
.tf__subs button[aria-selected="true"] { color: #ffffff; }
.tf__subs button:focus-visible { box-shadow: inset 0 0 0 2px var(--ink); }
.tf__pill { position: absolute; left: 0; top: 3px; width: 60px; height: 28px; border-radius: 14px; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 6px 12px -6px var(--accent); }

.tf__list { position: relative; height: 230px; }
.tf__row { position: absolute; left: 0; right: 0; top: 0; }
.tf__row button { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 8px 0 6px; border-radius: 13px; text-align: left; transition: background-color 0.2s; }
.tf__row button.is-hot { background: color-mix(in srgb, var(--accent) 8%, #ffffff); }
.tf__row button:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.tf__ava { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 14%, #ffffff); color: color-mix(in srgb, var(--accent) 74%, #17171a); font-size: 11px; font-weight: 780; letter-spacing: 0.01em; }
.tf__ava span { display: block; line-height: 1; }
.tf__who { display: grid; gap: 1px; min-width: 0; }
.tf__who b { font-size: 13.500px; line-height: 17px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tf__who i { font-style: normal; font-size: 11.500px; line-height: 14px; color: var(--soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.tf__rate { display: block; height: 18px; overflow: hidden; font-size: 13px; line-height: 18px; font-weight: 720; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.tf__rate span { display: block; }
.tf__row button.is-hot .tf__rate { color: var(--accent); }

.live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ghost { position: absolute; left: 0; top: 0; width: 24px; height: 24px; margin: -3px 0 0 -5px; pointer-events: none; opacity: 0; fill: #17171a; stroke: #ffffff; stroke-width: 1.300; stroke-linejoin: round; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)); z-index: 6; }

@media (prefers-reduced-motion: reduce) { .tf__subs button, .tf__row button { transition: none; } }
