:root {
  --primary: #f2df74;
  --secondary: #772432;
  --ink: #772432;
  --ink-soft: rgba(119, 36, 50, 0.72);
  --surface: #faf8f0;
  --hero-bg: #1e0b10;

  --font-family: "Nunito", system-ui, sans-serif;
  --radius: 8px;
  --header-pad: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(3.5rem, 8vw, 6rem);
  --section-pad-inline: clamp(1.5rem, 4vw, 3rem);
  --marquee-duration: 160s;
  --hero-rows: 6;
}

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

html {
  scroll-behavior: auto;
}

@media (hover: hover) and (pointer: fine) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-family);
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

img {
  display: block;
}

img:not(.marquee-thumb):not(.video-card__thumb):not(.video-table__thumb):not(.account-profile__avatar):not(.comment-item__avatar):not(.global-ranking-tile__thumb) {
  max-width: 100%;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html.auth-pending body {
  visibility: hidden;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  padding: var(--header-pad);
  pointer-events: none;
}

.site-header__start {
  justify-self: start;
}

.site-header__center {
  justify-self: center;
}

.site-header__end {
  justify-self: end;
}

body[data-auth="signed-out"] .site-header {
  grid-template-columns: minmax(0, 1fr) auto;
}

.site-header--browse {
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
}

.site-header--browse .site-header__center {
  justify-self: stretch;
  min-width: 0;
  padding-inline: clamp(0.35rem, 1.5vw, 0.75rem);
}

.header-browse {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 52rem;
  margin-inline: auto;
  pointer-events: auto;
}

.header-browse__browse-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0 0.85rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--secondary);
  white-space: nowrap;
  background: rgba(242, 223, 116, 0.35);
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.header-browse__browse-link:hover {
  background: rgba(242, 223, 116, 0.55);
  border-color: rgba(119, 36, 50, 0.22);
}

.header-browse__browse-link--active {
  background: rgba(242, 223, 116, 0.55);
  border-color: rgba(119, 36, 50, 0.22);
}

.header-browse__form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1 1 10rem;
  min-width: 0;
  position: relative;
}

.header-browse__form .browse-search {
  flex: 1 1 10rem;
  min-width: 0;
  min-height: 2.5rem;
}

.browse-search-filters {
  position: relative;
  flex-shrink: 0;
}

.browse-filters-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.browse-filters-toggle:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(119, 36, 50, 0.22);
}

.browse-filters-toggle.is-active {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(119, 36, 50, 0.35);
}

.browse-filters-toggle__icon {
  display: block;
  width: 1.15rem;
  height: 1.15rem;
}

.browse-filters-toggle__badge {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  min-width: 1rem;
  height: 1rem;
  padding: 0 0.25rem;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.browse-filters-panel {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 40;
  width: min(22rem, calc(100vw - 2rem));
}

.browse-filters-panel__inner {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(119, 36, 50, 0.12);
}

.browse-filters-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.browse-filters-panel__title {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.browse-filters-panel__clear {
  padding: 0;
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.browse-filters-panel__clear:hover {
  opacity: 0.75;
}

.browse-filters-panel__grid {
  display: grid;
  gap: 0.75rem;
}

.browse-filters-panel__actions {
  margin-top: 0.85rem;
}

.browse-filters-panel__actions .btn {
  width: 100%;
}

.header-chip {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.85rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius);
  pointer-events: auto;
}

.logo-link {
  display: block;
  line-height: 0;
}

.logo {
  height: clamp(1.5rem, 4vw, 2rem);
  width: auto;
}

.header-chip--auth {
  padding: 0.5rem 0.85rem;
}

.btn-login {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.15rem;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: none;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.btn-login:hover {
  color: var(--secondary);
  opacity: 0.75;
}

.account-btn {
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.account-btn--active .account-avatar {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body[data-auth="signed-in"] .btn-login {
  display: none;
}

body[data-auth="signed-in"] .account-btn {
  display: inline-flex;
}

.account-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  line-height: 0;
}

.account-avatar {
  width: clamp(2rem, 5vw, 2.25rem);
  height: clamp(2rem, 5vw, 2.25rem);
  border-radius: 50%;
  object-fit: cover;
}

.notification-badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.125rem;
  height: 1.125rem;
  padding: 0 0.3rem;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--secondary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  line-height: 1;
  border: 2px solid rgba(255, 255, 255, 0.92);
}

.notification-badge.is-visible {
  display: inline-flex !important;
}

.account-tokens {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.toastoken-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  display: block;
}

.toastoken-amount {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.25rem;
  vertical-align: middle;
  white-space: nowrap;
}

.btn .toastoken-amount,
.btn .account-tokens {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
}

.btn .toastoken-icon {
  display: inline-block;
  flex-shrink: 0;
}

.toastoken-amount__value {
  font-variant-numeric: tabular-nums;
}

.account-profile__toastokens {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
  height: var(--hero-height, 100svh);
}

.hero-rows {
  display: grid;
  grid-template-rows: repeat(var(--hero-rows), var(--hero-row-height, calc(100svh / 6)));
  height: var(--hero-height, 100svh);
  width: 100%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(5rem, 14vw, 8rem) var(--header-pad);
  pointer-events: none;
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    rgba(30, 11, 16, 0.62) 0%,
    rgba(119, 36, 50, 0.18) 55%,
    transparent 100%
  );
}

.hero-headline {
  margin: 0;
  max-width: 12ch;
  font-family: var(--font-family);
  font-size: clamp(3rem, 10vw, 7rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: var(--primary);
  text-wrap: balance;
  text-shadow:
    0 2px 24px rgba(0, 0, 0, 0.45),
    0 0 80px rgba(242, 223, 116, 0.2);
}

/* Marquee rows */
.marquee-row {
  min-height: 0;
  overflow: hidden;
  position: relative;
  height: var(--hero-row-height, calc(100svh / 6));
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  height: 100%;
  width: max-content;
  min-width: max-content;
}

.marquee-row--rtl .marquee-track:not(.marquee-track--js) {
  animation: marquee-rtl var(--marquee-duration) linear infinite;
}

.marquee-row--ltr .marquee-track:not(.marquee-track--js) {
  animation: marquee-ltr var(--marquee-duration) linear infinite;
}

.marquee-row:nth-child(2) .marquee-track:not(.marquee-track--js) { animation-duration: 184s; }
.marquee-row:nth-child(3) .marquee-track:not(.marquee-track--js) { animation-duration: 148s; }
.marquee-row:nth-child(4) .marquee-track:not(.marquee-track--js) { animation-duration: 196s; }
.marquee-row:nth-child(5) .marquee-track:not(.marquee-track--js) { animation-duration: 172s; }
.marquee-row:nth-child(6) .marquee-track:not(.marquee-track--js) { animation-duration: 208s; }

@keyframes marquee-rtl {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

@keyframes marquee-ltr {
  from { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

.marquee-set {
  display: flex;
  flex-wrap: nowrap;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
  gap: 48px;
  padding-inline-end: 48px;
}

.marquee-thumb {
  flex: 0 0 auto;
  display: block;
  height: calc(var(--hero-row-height, calc(100svh / 6)) * 0.88);
  max-height: calc(var(--hero-row-height, calc(100svh / 6)) * 0.88);
  width: auto;
  aspect-ratio: 16 / 9;
  max-width: none;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
  -webkit-user-drag: none;
  user-select: none;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* Scroll hint */
.scroll-hint {
  position: fixed;
  left: 50%;
  bottom: var(--header-pad);
  z-index: 50;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.scroll-hint__chip.header-chip {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.75rem 0.45rem;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.scroll-hint__chip.header-chip::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  -webkit-mask-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 25%,
    rgba(0, 0, 0, 0.28) 31%,
    rgba(0, 0, 0, 0.72) 36%,
    #000 42%,
    #000 50%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 64%,
    rgba(0, 0, 0, 0.28) 70%,
    transparent 76%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to top,
    transparent 0%,
    transparent 25%,
    rgba(0, 0, 0, 0.28) 31%,
    rgba(0, 0, 0, 0.72) 36%,
    #000 42%,
    #000 50%,
    #000 58%,
    rgba(0, 0, 0, 0.72) 64%,
    rgba(0, 0, 0, 0.28) 70%,
    transparent 76%,
    transparent 100%
  );
  -webkit-mask-size: 100% 400%;
  mask-size: 100% 400%;
  -webkit-mask-position: 0 0%;
  mask-position: 0 0%;
  animation: scroll-hint-frost 5.2s linear infinite;
  z-index: 0;
}

.scroll-hint__label {
  position: relative;
  z-index: 1;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.scroll-hint__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink);
}

@keyframes scroll-hint-frost {
  from {
    -webkit-mask-position: 0 0%;
    mask-position: 0 0%;
  }

  to {
    -webkit-mask-position: 0 100%;
    mask-position: 0 100%;
  }
}

/* Below hero placeholder */
.below-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 8vw, 6rem) var(--header-pad);
  background: var(--surface);
}

.below-hero__inner {
  max-width: 36rem;
  text-align: center;
}

.below-hero__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.below-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-family);
  font-size: clamp(2rem, 5.5vw, 3.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Shared section header */
.section-header {
  margin-bottom: clamp(2rem, 5vw, 3rem);
  text-align: center;
}

.section-header__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
}

.section-header__title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

/* Rankings */
.rankings {
  padding: var(--section-pad) var(--section-pad-inline);
  background: #fff;
}

.rankings__inner {
  max-width: 72rem;
  margin-inline: auto;
}

.rankings__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
}

.ranking-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--surface);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.ranking-card__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.ranking-card__empty {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.ranking-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ranking-list + .ranking-list-wrap {
  margin-top: 0.35rem;
}

.ranking-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
}

.ranking-item:last-child {
  border-bottom: none;
}

.ranking-item__place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--secondary);
}

.ranking-item:nth-child(1) .ranking-item__place {
  color: var(--primary);
  text-shadow: 0 0 1px rgba(119, 36, 50, 0.35);
}

.ranking-item__info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.ranking-item__name {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}

.ranking-item__meta {
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ranking-item__score {
  font-size: 0.9375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.ranking-list-wrap {
  position: relative;
}

.ranking-list-wrap--frosted {
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  margin-top: 0.15rem;
}

.ranking-list-wrap--frosted .ranking-list {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.ranking-frost {
  position: absolute;
  inset: 0;
  background: rgba(250, 248, 240, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: inherit;
}
.page-rankings {
  background: #fff;
}

.global-rankings-page {
  padding: 0.5rem var(--section-pad-inline) clamp(3rem, 7vw, 5rem);
  background: #fff;
}

.global-rankings__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.global-rankings__header {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

.global-rankings__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.global-rankings__type-toggle {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.global-rankings-filters {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.global-rankings-filters__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.global-rankings-filter[hidden] {
  display: none;
}

.global-rankings-filter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.global-rankings-filter__reset {
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.global-rankings-filter__reset:hover {
  color: var(--ink);
}

.global-rankings-filter__reset[hidden] {
  display: none;
}

.global-rankings-type-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 0.75rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.global-rankings-type-btn:hover {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(119, 36, 50, 0.22);
}

.global-rankings-type-btn.is-active {
  background: var(--primary);
  border-color: rgba(119, 36, 50, 0.2);
  color: var(--ink);
}

.global-rankings-type-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.global-ranking-list {
  --global-ranking-tile-pad-block: clamp(0.85rem, 2vw, 1rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.global-ranking-tile {
  border-radius: var(--radius);
  overflow: hidden;
}

.global-ranking-tile__link {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: var(--global-ranking-tile-pad-block) clamp(1rem, 2.5vw, 1.25rem);
  color: inherit;
  text-decoration: none;
  transition: filter 0.2s ease;
}

.global-ranking-tile--rank-1 .global-ranking-tile__link {
  padding-block: var(--global-ranking-tile-pad-block);
}

.global-ranking-tile--rank-2 .global-ranking-tile__link {
  padding-block: calc(var(--global-ranking-tile-pad-block) - 2px);
}

.global-ranking-tile--rank-3 .global-ranking-tile__link {
  padding-block: calc(var(--global-ranking-tile-pad-block) - 4px);
}

.global-ranking-tile--rank-rest .global-ranking-tile__link {
  padding-block: calc(var(--global-ranking-tile-pad-block) - 6px);
}

.global-ranking-tile__link:hover {
  filter: brightness(0.97);
}

.global-ranking-tile__link:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.global-ranking-tile--winner {
  --global-ranking-winner-outset: clamp(0.65rem, 2vw, 1rem);
  width: calc(100% + (var(--global-ranking-winner-outset) * 2));
  margin-inline: calc(var(--global-ranking-winner-outset) * -1);
  border-radius: calc(var(--radius) + 14px) calc(var(--radius) + 14px) var(--radius) var(--radius);
  background: var(--secondary);
  color: #fff;
}

.global-ranking-tile--default {
  background: var(--primary);
  color: var(--secondary);
}

.global-ranking-tile__place {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.global-ranking-tile--winner .global-ranking-tile__place {
  font-size: 1.35rem;
}

.global-ranking-tile__thumb-wrap {
  flex-shrink: 0;
  width: clamp(4.25rem, 14vw, 5.5rem);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: var(--hero-bg);
  box-shadow: 0 4px 14px rgba(30, 11, 16, 0.16);
}

.global-ranking-tile__thumb {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.global-ranking-tile__info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.global-ranking-tile__title {
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-ranking-tile__meta {
  font-size: 0.8125rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.global-ranking-tile--winner .global-ranking-tile__meta {
  color: rgba(255, 255, 255, 0.82);
}

.global-ranking-tile--default .global-ranking-tile__meta {
  color: var(--ink-soft);
}

.global-ranking-tile__score-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
  text-align: right;
}

.global-ranking-tile__score {
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.global-ranking-tile__judges {
  font-size: 0.8125rem;
  line-height: 1.35;
  font-weight: 600;
}

.global-ranking-tile--winner .global-ranking-tile__judges {
  color: rgba(255, 255, 255, 0.82);
}

.global-ranking-tile--default .global-ranking-tile__judges {
  color: var(--ink-soft);
}

.community {
  padding: var(--section-pad) var(--section-pad-inline);
  background: var(--surface);
}

.community__inner {
  max-width: 72rem;
  margin-inline: auto;
}

.community__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.community-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 8rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  background: #fff;
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.community-stat__value {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--secondary);
}

.community-stat__label {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
}

/* Feedback */
.feedback {
  padding: var(--section-pad) var(--section-pad-inline);
  background: var(--surface);
}

.feedback__inner {
  max-width: 36rem;
  margin-inline: auto;
  text-align: center;
}

.feedback__title {
  margin: 0 0 clamp(1.5rem, 4vw, 2rem);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.feedback__steps {
  margin: 0 0 clamp(2rem, 5vw, 2.75rem);
  padding: 0;
  list-style: none;
  counter-reset: feedback-step;
  text-align: left;
}

.feedback__step {
  position: relative;
  padding-left: 2.75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.feedback__step + .feedback__step {
  margin-top: 1.25rem;
}

.feedback__step::before {
  counter-increment: feedback-step;
  content: counter(feedback-step);
  position: absolute;
  left: 0;
  top: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  font-size: 0.875rem;
  font-weight: 800;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.85rem;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: filter 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  min-width: min(100%, 20rem);
  padding: clamp(1rem, 2.5vw, 1.25rem) clamp(2rem, 5vw, 3rem);
  font-size: clamp(1rem, 2.2vw, 1.125rem);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--secondary);
  background: var(--primary);
  box-shadow: 0 8px 28px rgba(119, 36, 50, 0.14);
}

.btn-primary:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(119, 36, 50, 0.18);
}

.btn-primary:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.btn-primary--compact {
  min-width: 100%;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  background: var(--secondary);
  color: rgba(250, 248, 240, 0.88);
  padding: clamp(2.5rem, 6vw, 4rem) var(--section-pad-inline) clamp(1.75rem, 4vw, 2.5rem);
}

.site-footer__inner {
  max-width: 72rem;
  margin-inline: auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.footer-logo-link {
  display: inline-block;
  line-height: 0;
}

.footer-logo {
  height: clamp(1.75rem, 4vw, 2.25rem);
  width: auto;
}

.site-footer__tagline {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(250, 248, 240, 0.88);
}

.site-footer__copy {
  margin: 0.65rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(250, 248, 240, 0.55);
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li + li {
  margin-top: 0.35rem;
}

.site-footer__links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(250, 248, 240, 0.75);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer__links a:hover {
  color: var(--primary);
}

[data-admin-link][hidden] {
  display: none !important;
}

.site-footer__disclaimer {
  margin: clamp(2rem, 4vw, 2.75rem) 0 0;
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(250, 248, 240, 0.14);
  font-size: 0.8125rem;
  line-height: 1.65;
  color: rgba(250, 248, 240, 0.5);
  text-align: center;
  max-width: 48rem;
  margin-inline: auto;
}

/* Account page */
.page-content {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-pad) + 4rem) var(--section-pad-inline) var(--section-pad);
  background: var(--surface);
}

.page-content--form {
  align-items: flex-start;
  padding-top: calc(var(--header-pad) + 5rem);
}

.page-content__inner {
  width: 100%;
  max-width: 28rem;
}

.page-content__inner--wide {
  max-width: 40rem;
}

.page-content__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--ink);
}

.page-content__intro {
  margin: 0 0 2rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-content__footnote {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  text-align: center;
  color: var(--ink-soft);
}

.page-content__footnote a {
  color: var(--secondary);
  font-weight: 600;
  text-decoration: none;
}

.page-content__footnote a:hover {
  text-decoration: underline;
}

.account-form {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-section {
  margin: 0;
  padding: clamp(1.25rem, 3vw, 1.75rem);
  border: 1px solid rgba(119, 36, 50, 0.12);
  border-radius: var(--radius);
  background: #fff;
}

.form-section__title {
  padding: 0;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--secondary);
}

.form-section__hint {
  margin: 0.35rem 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  align-items: end;
}

.form-row--thirds {
  grid-template-columns: repeat(3, 1fr);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-width: 0;
}

.form-section > .form-field + .form-field,
.form-section > .form-row + .form-field,
.form-section > .form-field + .form-row,
.form-section > .form-row + .form-row,
.form-section > .form-section__hint + .form-field,
.form-section > .profile-photo-field + .form-row,
.form-section > .profile-photo-field + .form-field {
  margin-top: 1rem;
}

.profile-photo-field {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.profile-photo-field__preview-wrap {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid rgba(119, 36, 50, 0.12);
}

.profile-photo-field__preview {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.profile-photo-field__controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.profile-photo-field__upload {
  display: inline-flex;
  cursor: pointer;
}

.profile-photo-field__hint {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(242, 223, 116, 0.35);
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.profile-photo-field__upload:hover .btn-secondary {
  background: rgba(242, 223, 116, 0.55);
  border-color: rgba(119, 36, 50, 0.22);
}

.form-row .form-field + .form-field {
  margin-top: 0;
}

.form-field--radios {
  border: none;
  margin: 0;
  padding: 0;
}

.form-field--radios.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.form-field--radios .form-field__label {
  margin-bottom: 0.35rem;
}

.form-field__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.form-field__input {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-family);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(119, 36, 50, 0.18);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field__select {
  appearance: none;
  padding-right: 2.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23772432' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

.form-field__input:focus {
  outline: none;
  border-color: rgba(119, 36, 50, 0.45);
  box-shadow: 0 0 0 3px rgba(242, 223, 116, 0.45);
}

.form-field__textarea {
  min-height: 8rem;
  resize: vertical;
}

.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.radio-option {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.radio-option__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.5rem;
  padding: 0.55rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.radio-option input:focus-visible + .radio-option__label {
  box-shadow: 0 0 0 3px rgba(242, 223, 116, 0.45);
}

.radio-option input:checked + .radio-option__label {
  color: var(--secondary);
  background: rgba(242, 223, 116, 0.45);
  border-color: rgba(119, 36, 50, 0.28);
}

@media (max-width: 640px) {
  .form-row,
  .form-row--thirds {
    grid-template-columns: 1fr;
  }

  .profile-photo-field {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 900px) {
  .rankings__grid {
    grid-template-columns: 1fr;
  }

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

  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .hero {
    height: calc(var(--vh, 1svh) * 100);
  }

  .hero-rows {
    height: calc(var(--vh, 1svh) * 100);
    grid-template-rows: repeat(6, calc(var(--vh, 1svh) * (100 / 6)));
  }

  .marquee-row {
    height: calc(var(--vh, 1svh) * (100 / 6));
  }

  .marquee-thumb {
    height: calc(var(--vh, 1svh) * (100 / 6) * 0.88);
    max-height: calc(var(--vh, 1svh) * (100 / 6) * 0.88);
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
  }

  .marquee-set {
    gap: 32px;
    padding-inline-end: 32px;
  }

  .header-chip {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(255, 255, 255, 0.94);
  }
}

@media (max-width: 540px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .marquee-track {
    animation: none !important;
  }

  .scroll-hint__chip.header-chip::before {
    animation: none;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-image: linear-gradient(
      to top,
      #000 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
    mask-image: linear-gradient(
      to top,
      #000 0%,
      rgba(0, 0, 0, 0.45) 100%
    );
    -webkit-mask-position: 0 0;
    mask-position: 0 0;
  }
}

/* App home / browse */
.page-app {
  --app-header-offset: calc(var(--header-pad) * 2 + clamp(1.5rem, 4vw, 2rem));
  padding-top: var(--app-header-offset);
}

.browse-search {
  flex: 1 1 16rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding: 0 0.9rem;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.browse-search__icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  color: var(--ink-soft);
}

.browse-search__input {
  width: 100%;
  padding: 0.65rem 0;
  border: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  color: var(--ink);
}

.browse-search__input:focus {
  outline: none;
}

.browse-search__input::placeholder {
  color: rgba(119, 36, 50, 0.45);
}

.browse-filter {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.browse-filter__label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.browse-filter__input,
.browse-filter__select {
  min-height: 2.75rem;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-family);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.browse-filter__select {
  padding-right: 2.25rem;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%23772432' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  cursor: pointer;
}

.browse-filter__input:focus,
.browse-filter__select:focus {
  outline: none;
  border-color: rgba(119, 36, 50, 0.35);
  box-shadow: 0 0 0 3px rgba(242, 223, 116, 0.45);
}

.browse-filter__select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.browse {
  padding: 0.5rem var(--section-pad-inline) clamp(3rem, 7vw, 5rem);
}

.featured {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.featured__inner {
  max-width: 80rem;
  margin-inline: auto;
}

.featured__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--ink);
}

.featured__track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.browse-rows {
  display: flex;
  flex-direction: column;
  gap: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 80rem;
  margin-inline: auto;
}

.search-results__inner {
  max-width: 80rem;
  margin-inline: auto;
}

.search-results__header {
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.search-results__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.search-results__summary {
  margin: 0;
  color: rgba(119, 36, 50, 0.72);
  font-size: 0.9375rem;
}

.search-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.search-results__grid .video-card {
  flex: none;
  min-width: 0;
}

.search-results__empty {
  margin: 0;
  padding: 2rem 0;
  text-align: center;
  color: rgba(119, 36, 50, 0.72);
  font-size: 0.9375rem;
}

.video-row__heading {
  margin: 0 0 0.85rem;
  padding-inline: 0.15rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: var(--ink);
}

.video-row__track {
  display: flex;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(119, 36, 50, 0.25) transparent;
  padding-bottom: 0.35rem;
  margin-inline: -0.15rem;
  padding-inline: 0.15rem;
}

.video-row__track::-webkit-scrollbar {
  height: 6px;
}

.video-row__track::-webkit-scrollbar-thumb {
  background: rgba(119, 36, 50, 0.22);
  border-radius: 999px;
}

.video-card {
  flex: 0 0 clamp(220px, 24vw, 280px);
  scroll-snap-align: start;
}

.video-card--featured {
  flex: none;
  min-width: 0;
}

.video-card__link {
  display: block;
  height: 100%;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  transition: transform 0.2s ease;
}

@media (hover: hover) and (pointer: fine) {
  .video-card__link:hover {
    transform: translateY(-3px);
  }
}

.video-card__thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--hero-bg);
  box-shadow: 0 6px 24px rgba(30, 11, 16, 0.12);
}

.video-card--featured .video-card__thumb-wrap {
  aspect-ratio: 16 / 10;
  box-shadow: 0 10px 36px rgba(30, 11, 16, 0.18);
}

.video-card__thumb {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.video-card__thumb-badges {
  position: absolute;
  top: 0.55rem;
  left: 0.55rem;
  z-index: 1;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.3rem;
  max-width: calc(100% - 1.1rem);
}

.video-card__badge-new,
.video-card__badge-level,
.video-card__badge-type,
.video-card__duration {
  padding: 0.2rem 0.45rem;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(30, 11, 16, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.video-card__badge-new {
  color: var(--primary);
}

.video-card__badge-level,
.video-card__badge-type {
  color: #fff;
}

.video-card__badge-type {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 1;
}

.video-card__duration {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  color: #fff;
}

.video-card__body {
  padding: 0.65rem 0.1rem 0;
}

.video-card--featured .video-card__body {
  padding-top: 0.85rem;
}

.video-card__title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-card--featured .video-card__title {
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.video-card__meta {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-card__tag {
  padding: 0.15rem 0.45rem;
  border-radius: calc(var(--radius) - 3px);
  background: rgba(242, 223, 116, 0.45);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

@media (max-width: 900px) {
  .featured__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 0.35rem;
  }

  .video-card--featured {
    flex: 0 0 min(88vw, 420px);
    scroll-snap-align: start;
  }

  .header-browse__form .browse-search,
  .browse-filters-toggle,
  .browse-filter__input,
  .browse-filter__select {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background-color: rgba(255, 255, 255, 0.94);
  }
}

@media (max-width: 768px) {
  .site-header--browse {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "start end"
      "center center";
    row-gap: 0.65rem;
  }

  .site-header--browse .site-header__start {
    grid-area: start;
  }

  .site-header--browse .site-header__center {
    grid-area: center;
    padding-inline: 0;
  }

  .site-header--browse .site-header__end {
    grid-area: end;
  }

  .page-app {
    --app-header-offset: calc(var(--header-pad) * 2 + clamp(1.5rem, 4vw, 2rem) + 3.25rem);
  }

  .header-browse {
    flex-wrap: wrap;
  }

  .browse-filters-panel {
    left: 0;
    right: 0;
    width: auto;
  }
}

@media (max-width: 640px) {
  .browse-filters-panel__inner {
    padding: 0.9rem;
  }
}

/* Account page */
.page-account .account-page {
  padding: var(--app-header-offset) var(--section-pad-inline) clamp(3rem, 7vw, 5rem);
}

.account-page__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.account-page__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: clamp(0.5rem, 2vw, 1rem);
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(119, 36, 50, 0.1);
}

.account-delete-open {
  color: #9b1c31;
  border-color: rgba(155, 28, 49, 0.25);
}

.account-delete-open:hover {
  background: rgba(155, 28, 49, 0.06);
  border-color: rgba(155, 28, 49, 0.4);
}

.account-delete-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.account-delete-confirm {
  --hold-progress: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  overflow: hidden;
  border: 1.5px solid rgba(155, 28, 49, 0.35);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.92);
  color: #9b1c31;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.account-delete-confirm:hover {
  border-color: rgba(155, 28, 49, 0.55);
}

.account-delete-confirm.is-holding {
  border-color: #9b1c31;
  color: #fff;
}

.account-delete-confirm__progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #9b1c31;
  transform: scaleY(var(--hold-progress));
  transform-origin: bottom center;
  transition: transform 0.05s linear;
}

.account-delete-confirm__label {
  position: relative;
  z-index: 1;
}

.account-panel {
  padding: clamp(1.25rem, 3vw, 1.75rem);
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
  background: #fff;
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.account-panel__title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  font-weight: 800;
  color: var(--ink);
}

.account-panel__head .account-panel__title {
  margin-bottom: 0;
}

.account-profile {
  display: flex;
  align-items: flex-start;
  gap: clamp(1rem, 3vw, 1.5rem);
}

.account-profile__details {
  flex: 1;
  min-width: 0;
}

.account-profile__edit {
  flex-shrink: 0;
  align-self: flex-start;
  margin-left: auto;
}

.account-profile__avatar {
  flex-shrink: 0;
  width: 5.5rem;
  height: 5.5rem;
  max-width: none;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(119, 36, 50, 0.12);
}

.account-profile__name {
  margin: 0 0 0.2rem;
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 800;
  color: var(--ink);
}

.account-profile__email {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.account-profile__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.75rem;
  margin: 0;
}

.account-profile__meta-item {
  margin: 0;
}

.account-profile__meta-item dt {
  margin: 0 0 0.15rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.account-profile__meta-item dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.btn-secondary--compact {
  padding: 0.55rem 1rem;
  font-size: 0.875rem;
}

.notification-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
}

.notification-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.notification-item:first-child {
  padding-top: 0;
}

.notification-item--unread {
  position: relative;
  padding-left: 1rem;
}

.notification-item--unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.1rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--secondary);
}

.notification-item__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink);
}

.notification-item__time {
  flex-shrink: 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--ink-soft);
  white-space: nowrap;
}

.toastoken-ledger {
  margin: 0;
  padding: 0;
  list-style: none;
}

.toastoken-ledger__empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.toastoken-ledger__item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
}

.toastoken-ledger__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toastoken-ledger__item:first-child {
  padding-top: 0;
}

.toastoken-ledger__details {
  min-width: 0;
}

.toastoken-ledger__text {
  margin: 0 0 0.2rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
}

.toastoken-ledger__time {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.toastoken-ledger__amount-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.toastoken-ledger__icon {
  width: 1rem;
  height: 1rem;
}

.toastoken-ledger__amount {
  font-size: 0.9375rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.toastoken-ledger__amount-wrap--earn .toastoken-ledger__amount {
  color: var(--secondary);
}

.toastoken-ledger__amount-wrap--spend .toastoken-ledger__amount {
  color: var(--ink-soft);
}

.activity-table__empty {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.activity-table__empty a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.activity-table__empty a:hover {
  text-decoration: underline;
}

.activity-table__meta {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.activity-table__badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.activity-table__badge--yes {
  background: rgba(119, 36, 50, 0.1);
  color: var(--secondary);
}

.activity-table__badge--no {
  background: rgba(119, 36, 50, 0.06);
  color: var(--ink-soft);
}

.activity-table {
  min-width: 52rem;
}

.video-table-wrap {
  overflow-x: auto;
}

.video-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.video-table th,
.video-table td {
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
}

.video-table th {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.video-table tbody tr:last-child td {
  border-bottom: none;
}

.video-table__cell--thumb {
  width: 6.5rem;
  padding-left: 0;
}

.video-table__cell--num,
.video-table__cell--score {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.video-table__cell--score {
  color: var(--secondary);
}

.video-table__thumb-link {
  display: block;
  line-height: 0;
}

.video-table__thumb {
  width: 5.5rem;
  height: auto;
  max-width: none;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: calc(var(--radius) - 2px);
}

.video-table__title-link {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.video-table__title-link:hover {
  color: var(--secondary);
}

.admin-speech-cell__title {
  display: block;
}

.admin-speech-cell__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  font-weight: 500;
  color: var(--ink-soft);
}

.admin-speech-judges-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border: 1px solid rgba(119, 36, 50, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.admin-speech-judges-btn:hover {
  border-color: rgba(119, 36, 50, 0.32);
  background: rgba(242, 223, 116, 0.28);
  color: var(--ink);
}

.admin-speech-delete {
  --hold-progress: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.admin-speech-delete:hover {
  color: var(--secondary);
  border-color: rgba(119, 36, 50, 0.28);
}

.admin-speech-delete.is-holding {
  color: #fff;
  border-color: var(--secondary);
}

.admin-speech-delete__progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--secondary);
  transform: scaleY(var(--hold-progress));
  transform-origin: bottom center;
}

.admin-speech-delete__icon {
  position: relative;
  z-index: 1;
  width: 1rem;
  height: 1rem;
}

.video-table__empty {
  padding: 2rem 0;
  text-align: center;
  color: var(--ink-soft);
}

.video-table__cell--actions {
  width: 4.5rem;
  padding-right: 0;
  white-space: nowrap;
}

.upload-modal__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.upload-modal__actions--split {
  justify-content: space-between;
}

.upload-modal__actions-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  margin-left: auto;
}

.upload-modal__actions .admin-btn-danger[hidden] {
  display: none;
}

.video-delete-btn {
  --hold-progress: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  min-height: 2.25rem;
  padding: 0.45rem 0.75rem;
  overflow: hidden;
  border: 1.5px solid rgba(119, 36, 50, 0.22);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.72);
  color: var(--secondary);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.video-delete-btn:hover {
  border-color: rgba(119, 36, 50, 0.42);
}

.video-delete-btn.is-holding {
  border-color: var(--secondary);
  color: #fff;
}

.video-delete-btn__progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--secondary);
  transform: scaleY(var(--hold-progress));
  transform-origin: bottom center;
  transition: transform 0.05s linear;
}

.video-delete-btn__label {
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

/* Upload modal */
.upload-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.upload-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.upload-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 11, 16, 0.55);
}

.upload-modal__dialog {
  position: relative;
  width: min(100%, 36rem);
  max-height: min(92dvh, 44rem);
  overflow: auto;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 64px rgba(30, 11, 16, 0.28);
}

.upload-modal__dialog--wide {
  width: min(100%, 42rem);
  max-height: min(92dvh, 52rem);
}

.upload-modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.upload-modal__inner {
  padding: clamp(1.5rem, 4vw, 2rem);
  padding-top: clamp(2rem, 4.5vw, 2.25rem);
}

.upload-modal__heading {
  margin: 0 0 0.65rem;
  padding-right: 2rem;
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink);
}

.upload-modal__text {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.upload-form .form-row {
  margin-top: 0;
}

.upload-step__label {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
}

.upload-source-picker {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.upload-source-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-family);
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.upload-source-option:hover {
  border-color: rgba(119, 36, 50, 0.28);
  background: rgba(242, 223, 116, 0.18);
  transform: translateY(-1px);
}

.upload-source-option__title {
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
}

.upload-source-option__desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.upload-back {
  margin: 0 0 0.25rem;
  padding: 0;
  border: none;
  background: none;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--secondary);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.upload-back:hover {
  opacity: 0.75;
}

.upload-source-panel + .form-field,
.upload-source-panel + .form-field--radios {
  margin-top: 0.25rem;
}

.upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 9rem;
  padding: 1.25rem;
  border: 2px dashed rgba(119, 36, 50, 0.22);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.upload-dropzone--dragover,
.upload-dropzone:hover {
  border-color: rgba(119, 36, 50, 0.4);
  background: rgba(242, 223, 116, 0.12);
}

.upload-dropzone--filled {
  border-style: solid;
  border-color: rgba(119, 36, 50, 0.22);
}

.upload-dropzone--error {
  border-color: #c0392b;
  background: rgba(192, 57, 43, 0.06);
}

.upload-dropzone__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--secondary);
}

.upload-dropzone__prompt {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
}

.upload-dropzone__hint {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.upload-dropzone__file {
  margin: 0.25rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary);
}

.upload-competition-fields[hidden] {
  display: none !important;
}

.upload-competition-fields:not([hidden]) {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  background: rgba(242, 223, 116, 0.12);
  border: 1px solid rgba(119, 36, 50, 0.08);
}

.form-field__error {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c0392b;
}

.form-field__error[hidden] {
  display: none !important;
}

.form-field__success {
  margin: -1rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2e7d32;
}

.form-field__success[hidden] {
  display: none !important;
}

.login-form__forgot {
  margin: 0.75rem 0 0;
  text-align: right;
}

.login-form__forgot-link {
  padding: 0;
  font-family: var(--font-family);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--secondary);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}

.login-form__forgot-link:hover {
  text-decoration: underline;
}

.upload-form__insufficient {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.upload-form__error {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  line-height: 1.45;
  font-weight: 600;
  color: #c0392b;
  text-align: center;
}

.upload-form__confirm {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
}

.upload-form__confirm-error {
  margin: -0.35rem 0 0;
}

.account-pledge {
  margin: 0 0 1.35rem;
  padding: 1.25rem 1.35rem;
  background: rgba(242, 223, 116, 0.42);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(119, 36, 50, 0.06);
}

.account-pledge__title {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ink);
}

.account-pledge__list {
  margin: 0 0 1.1rem;
  padding-left: 1.35rem;
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--ink);
}

.account-pledge__list li + li {
  margin-top: 0.45rem;
}

.account-pledge__confirm {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.45;
}

.account-pledge__error {
  display: block;
  margin-top: 0.55rem;
}

.create-account-form-error {
  margin: 0 0 1rem;
  text-align: center;
}

#create-account-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
}

.upload-form__submit--blocked,
.upload-form .btn-primary:disabled {
  opacity: 1;
  cursor: not-allowed;
  transform: none;
  filter: none;
  box-shadow: none;
  background: #e4e0d6;
  color: rgba(119, 36, 50, 0.42);
}

.upload-form .btn-primary:disabled {
  pointer-events: none;
}

body.upload-modal-open {
  overflow: hidden;
}

@media (max-width: 540px) {
  .upload-source-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .notification-item {
    flex-direction: column;
    gap: 0.35rem;
  }

  .account-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Watch page */
.page-watch {
  background: var(--surface);
}

.watch-page {
  padding: 1.25rem var(--section-pad-inline) 4rem;
}

.watch-page__inner {
  max-width: 56rem;
  margin-inline: auto;
}

.watch-page__missing {
  padding: 4rem 0;
  text-align: center;
}

.watch-page__missing h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  color: var(--secondary);
}

.watch-page__missing p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
}

.watch-speech__header {
  margin-bottom: 1.25rem;
}

.watch-speech__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.watch-speech__title-row .watch-speech__title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.watch-speech__flag-host {
  flex-shrink: 0;
  padding-top: 0.2rem;
}

.watch-speech__flag {
  opacity: 0.5;
}

.watch-speech__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.125rem);
  line-height: 1.15;
  color: var(--secondary);
}

.watch-speech__byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
  margin: 0 0 0.75rem;
}

.watch-speech__meta {
  margin: 0;
  color: var(--ink-soft);
}

.watch-speech__scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.watch-speech__scores[hidden] {
  display: none;
}

.watch-speech__score {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.75rem 0.9rem;
  background: rgba(242, 223, 116, 0.28);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.watch-speech__score-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem;
}

.watch-speech__score-help {
  position: relative;
  flex-shrink: 0;
}

.watch-speech__score-help-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(119, 36, 50, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  cursor: help;
}

.watch-speech__score-help-trigger:hover,
.watch-speech__score-help-trigger:focus-visible {
  border-color: rgba(119, 36, 50, 0.38);
  color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 2px rgba(242, 223, 116, 0.85);
}

.watch-speech__score-help-bubble {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  z-index: 5;
  width: min(14.5rem, 72vw);
  margin: 0;
  padding: 0.55rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  background: #fff;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(42, 15, 22, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.watch-speech__score-help.is-open .watch-speech__score-help-bubble,
.watch-speech__score-help:focus-within .watch-speech__score-help-bubble {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

@media (hover: hover) and (pointer: fine) {
  .watch-speech__score-help:hover .watch-speech__score-help-bubble {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.watch-speech__score-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.watch-speech__score-value {
  font-size: 1.25rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--secondary);
}

.watch-speech__score-value--pending {
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.35;
}

.watch-speech__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.watch-player {
  position: relative;
  margin-bottom: 1rem;
  border-radius: calc(var(--radius) + 2px);
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 40px rgba(119, 36, 50, 0.12);
}

.watch-player__host {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.watch-player__host iframe,
.watch-player__video {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-player__fallback {
  display: grid;
  place-content: center;
  min-height: 16rem;
  padding: 2rem;
  text-align: center;
  color: #fff;
}

.watch-player__fallback-detail {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  opacity: 0.75;
}

.watch-timeline {
  margin-bottom: 0.75rem;
}

.watch-reactions-block {
  --reaction-color-laugh: #f2df74;
  --reaction-color-shock: #949494;
  --reaction-color-cry: #c4364a;
  margin-bottom: 2rem;
}

.watch-reactions-visual {
  position: relative;
  margin-bottom: 0.75rem;
}

.watch-reactions-graph {
  height: 2.25rem;
  margin: 0;
  border: 1px solid rgba(119, 36, 50, 0.08);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
}

.watch-reactions-graph--empty {
  background: rgba(255, 255, 255, 0.28);
}

.watch-reactions-graph__chart {
  display: block;
  width: 100%;
  height: 100%;
}

.watch-reactions-graph__line {
  fill: none;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.watch-reactions-graph__line--laugh {
  stroke: var(--reaction-color-laugh);
}

.watch-reactions-graph__line--shock {
  stroke: var(--reaction-color-shock);
}

.watch-reactions-graph__line--cry {
  stroke: var(--reaction-color-cry);
}

.watch-reactions-visual .watch-timeline {
  margin: 0;
}

.watch-reactions-visual .watch-timeline__times {
  position: absolute;
  inset: calc(2.25rem - 0.95rem) 0 auto;
  z-index: 2;
  margin: 0;
  pointer-events: none;
}

.watch-reactions-visual .watch-timeline__times span {
  padding: 0 0.15rem;
  background: rgba(250, 248, 240, 0.82);
}

.watch-reactions-visual .watch-timeline__track-wrap {
  padding: 0 0 0.65rem;
}

.watch-timeline__times {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.watch-timeline__track-wrap {
  padding: 0.65rem 0;
}

.watch-timeline__track {
  position: relative;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(119, 36, 50, 0.12);
  cursor: pointer;
  outline: none;
}

.watch-timeline__track:focus-visible {
  box-shadow: 0 0 0 3px rgba(242, 223, 116, 0.85);
}

.watch-timeline__progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: var(--primary);
}

.watch-timeline__playhead {
  position: absolute;
  top: 50%;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: var(--secondary);
  border: 2px solid #fff;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.watch-timeline__markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.watch-timeline__marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
  font-size: 0.75rem;
  line-height: 1;
  cursor: pointer;
}

.watch-timeline__marker--reaction {
  position: absolute;
  overflow: hidden;
  touch-action: none;
  user-select: none;
}

.watch-timeline__marker--reaction.is-holding {
  box-shadow: 0 0 0 2px var(--secondary);
}

.watch-timeline__marker-progress {
  --hold-progress: 0;
  position: absolute;
  inset: 0;
  background: rgba(119, 36, 50, 0.28);
  transform: scaleY(var(--hold-progress));
  transform-origin: bottom;
  pointer-events: none;
}

.watch-timeline__marker--reaction.is-holding .watch-timeline__marker-progress {
  background: rgba(196, 54, 74, 0.42);
}

.watch-reactions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.watch-reaction-btn {
  display: grid;
  place-items: center;
  min-height: 3.75rem;
  border: 2px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.watch-reaction-btn[data-reaction="laugh"] {
  border-color: var(--reaction-color-laugh);
}

.watch-reaction-btn[data-reaction="shock"] {
  border-color: var(--reaction-color-shock);
}

.watch-reaction-btn[data-reaction="cry"] {
  border-color: var(--reaction-color-cry);
}

.watch-reaction-btn:hover {
  background: rgba(255, 255, 255, 0.92);
}

.watch-reaction-btn[data-reaction="laugh"]:hover {
  border-color: #dfc94a;
}

.watch-reaction-btn[data-reaction="shock"]:hover {
  border-color: #767676;
}

.watch-reaction-btn[data-reaction="cry"]:hover {
  border-color: #a82d3c;
}

.watch-reaction-btn.is-popped {
  transform: scale(1.06);
}

.watch-reaction-btn__emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.watch-comments__sync[hidden] {
  display: none;
}

.watch-comments__sync {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.75rem;
  font-family: var(--font-family);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--secondary);
  background: rgba(242, 223, 116, 0.35);
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.watch-comments__sync:hover {
  background: rgba(242, 223, 116, 0.55);
  border-color: rgba(119, 36, 50, 0.22);
}

.watch-comments__feed {
  max-height: min(32rem, 55vh);
  overflow-y: auto;
  scroll-behavior: smooth;
  overscroll-behavior: contain;
}

.watch-comments__body {
  position: relative;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(119, 36, 50, 0.08);
}

.watch-comments__body--locked {
  min-height: clamp(36rem, 82vh, 52rem);
}

.watch-comments__body--locked .watch-comments__feed,
.watch-comments__body--locked .watch-comments__preview {
  filter: blur(5px);
  user-select: none;
  pointer-events: none;
}

.watch-comments__preview {
  margin-bottom: 1rem;
}

.watch-recommendations {
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
  padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(119, 36, 50, 0.1);
}

.watch-recommendations__heading {
  margin: 0 0 1rem;
  font-size: clamp(1.25rem, 2.5vw, 1.625rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.watch-recommendations__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
}

.watch-recommendations__grid .video-card {
  flex: none;
  min-width: 0;
}

@media (max-width: 720px) {
  .watch-recommendations__grid {
    grid-template-columns: 1fr;
  }
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.comment-list--placeholder {
  opacity: 0.85;
}

.comment-list__empty {
  padding: 1rem 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.comment-item {
  position: relative;
  padding: 0.9rem 2rem 0.9rem 0;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
}

.comment-item--has-admin-delete {
  padding-right: 3.6rem;
}

.comment-item__actions {
  position: absolute;
  top: 0.85rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.1rem;
}

.comment-item__flag {
  position: static;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.comment-item__flag:hover {
  opacity: 1;
  color: var(--secondary);
  background: rgba(119, 36, 50, 0.06);
}

.comment-item__flag--flagged {
  opacity: 1;
  color: var(--secondary);
}

.comment-item__flag--flagged:hover {
  color: var(--secondary);
  background: rgba(119, 36, 50, 0.1);
}

.comment-item__flag-icon {
  display: block;
  width: 1rem;
  height: 1rem;
}

.comment-item__delete {
  --hold-progress: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  opacity: 0.5;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.comment-item__delete:hover {
  opacity: 1;
  color: var(--secondary);
  background: rgba(119, 36, 50, 0.06);
}

.comment-item__delete.is-holding {
  opacity: 1;
  color: #fff;
}

.comment-item__delete-progress {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--secondary);
  transform: scaleY(var(--hold-progress));
  transform-origin: bottom center;
}

.comment-item__delete-icon {
  position: relative;
  z-index: 1;
  display: block;
  width: 1rem;
  height: 1rem;
}

.comment-report-form__reason {
  min-height: 6rem;
  resize: vertical;
}

.comment-report-form__actions {
  justify-content: stretch;
}

.comment-report-form__actions .btn {
  width: 100%;
}

.comment-item__head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.comment-item__avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-item__avatar--small {
  width: 1.5rem;
  height: 1.5rem;
}

.comment-item__body {
  flex: 1;
  min-width: 0;
}

.comment-item:last-child {
  border-bottom: 0;
}

.comment-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.35rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

.comment-item__speaker-tag {
  padding: 0.12rem 0.4rem;
  border-radius: calc(var(--radius) - 4px);
  background: var(--secondary);
  color: #fff;
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
}

.comment-item__time {
  font-variant-numeric: tabular-nums;
}

.comment-item__time::before {
  content: '· ';
}

.comment-item__text {
  margin: 0;
  line-height: 1.5;
}

.comment-replies {
  list-style: none;
  margin: 0.75rem 0 0 2.65rem;
  padding: 0;
  border-left: 2px solid rgba(119, 36, 50, 0.12);
}

.comment-reply {
  padding: 0.55rem 0 0.55rem 0.85rem;
}

.comment-reply-toggle {
  margin-top: 0.55rem;
  margin-left: 2.65rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
}

.comment-reply-form {
  margin-top: 0.55rem;
  margin-left: 2.65rem;
}

.comment-form {
  display: flex;
  flex-direction: column;
  margin: 0 0 1.25rem;
}

.comment-form__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.comment-form__composer {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.comment-form__submit.btn-primary--compact {
  min-width: 0;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  margin-top: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.comment-form__submit-icon {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
}

.comment-form__input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
  resize: vertical;
}

.comment-form__composer .comment-form__input,
.comment-reply-form .comment-form__input {
  flex: 1;
  width: auto;
  min-width: 0;
  min-height: 2.75rem;
  height: auto;
  resize: none;
  overflow: hidden;
  padding: 0.65rem 0.9rem;
  line-height: 1.35;
}

.comment-form__label {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--secondary);
}

.comment-form__hint {
  margin: 0 0 0 auto;
  font-size: 0.8125rem;
  color: var(--ink-soft);
  text-align: right;
}

.comment-form__timestamp {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.watch-ballot-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 1rem;
  background: rgba(250, 248, 240, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.watch-ballot-overlay[hidden] {
  display: none !important;
}

.watch-ballot {
  width: fit-content;
  max-width: min(100%, 52rem);
  flex-shrink: 0;
  padding: 1.25rem;
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(119, 36, 50, 0.12);
  box-shadow: 0 16px 48px rgba(119, 36, 50, 0.14);
}

.watch-ballot__form {
  display: grid;
  grid-template-columns: max-content;
  width: max-content;
  max-width: 100%;
  margin: 0;
}

.watch-ballot__head,
.watch-ballot__intro,
.watch-ballot__footer {
  grid-column: 1;
  width: 0;
  min-width: 100%;
}

.watch-ballot__title {
  margin: 0 0 0.35rem;
  font-size: 1.125rem;
  color: var(--secondary);
}

.watch-ballot__intro {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-wrap: pretty;
}

.watch-ballot__table-wrap {
  grid-column: 1;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  margin-bottom: 1rem;
}

.ballot-table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.ballot-table th,
.ballot-table td {
  padding: 0.35rem 0.5rem;
  border-bottom: 1px solid rgba(119, 36, 50, 0.08);
  vertical-align: middle;
  text-align: center;
}

.ballot-table thead th {
  padding-top: 0.25rem;
  padding-bottom: 0.4rem;
  font-size: 0.6875rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ballot-table thead th:first-child,
.ballot-table__criteria {
  width: auto;
  padding-left: 0;
  padding-right: 0.65rem;
  text-align: left;
  vertical-align: middle;
}

.ballot-table thead th:not(:first-child),
.ballot-table__range,
.ballot-table__score {
  padding-left: 0.35rem;
  padding-right: 0.35rem;
}

.ballot-table__label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  white-space: nowrap;
}

.ballot-table__helper {
  display: block;
  margin-top: 0.1rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: left;
  line-height: 1.35;
  white-space: nowrap;
}

.ballot-table__range,
.ballot-table__score {
  vertical-align: middle;
}

.ballot-table__range {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ballot-table__input {
  width: 3.5rem;
  padding: 0.35rem 0.4rem;
  border: 1px solid rgba(119, 36, 50, 0.18);
  border-radius: calc(var(--radius) - 4px);
  font: inherit;
  font-weight: 700;
  text-align: center;
}

.watch-ballot__footer {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.watch-ballot__total {
  margin: 0;
  font-size: 0.9375rem;
  text-align: right;
}

.watch-ballot__submit,
#ballot-submit {
  width: 100%;
}

@media (max-width: 720px) {
  .watch-comments__body--locked {
    min-height: clamp(34rem, 88vh, 48rem);
  }

  .watch-reactions {
    gap: 0.5rem;
  }

  .watch-ballot {
    padding: 1rem;
  }
}

/* Admin page */
.page-admin .admin-page {
  padding: 0.5rem var(--section-pad-inline) clamp(3rem, 7vw, 5rem);
}

.admin-page__inner {
  max-width: 72rem;
  margin-inline: auto;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

.admin-tabs__tab {
  padding: 0.55rem 1rem;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: var(--radius);
  background: #fff;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.admin-tabs__tab:hover {
  color: var(--ink);
  border-color: rgba(119, 36, 50, 0.24);
}

.admin-tabs__tab.is-active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.admin-panel[hidden] {
  display: none;
}

.admin-inbox__intro {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.admin-inbox__empty {
  margin: 0;
  padding: 1.25rem 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.admin-inbox__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.admin-inbox-item {
  position: relative;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}

.admin-inbox-item--resolved {
  border-color: rgba(47, 107, 79, 0.18);
  background: rgba(240, 248, 243, 0.82);
}

.admin-inbox-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.admin-inbox-item__actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.admin-inbox-item__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(119, 36, 50, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink-soft);
  cursor: pointer;
}

.admin-inbox-item__action svg {
  width: 1rem;
  height: 1rem;
}

.admin-inbox-item__action:hover {
  color: var(--ink);
  border-color: rgba(119, 36, 50, 0.24);
}

.admin-inbox-item__action--resolve:hover {
  color: #2f6b4f;
  border-color: rgba(47, 107, 79, 0.28);
  background: rgba(240, 248, 243, 0.95);
}

.admin-inbox-item__action--unresolve:hover {
  color: var(--secondary);
  border-color: rgba(119, 36, 50, 0.24);
}

.admin-inbox-item__action--delete:hover {
  color: #8f2438;
  border-color: rgba(143, 36, 56, 0.28);
  background: rgba(255, 244, 246, 0.95);
}

.admin-inbox-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0;
  min-width: 0;
  flex: 1;
}

.admin-inbox-item__status {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
  color: #2f6b4f;
  background: rgba(47, 107, 79, 0.12);
}

.admin-inbox-item__resolved-meta {
  margin: -0.25rem 0 0.65rem;
  font-size: 0.8125rem;
  color: #2f6b4f;
}

.admin-inbox-item__type {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  color: var(--secondary);
}

.admin-inbox-item__time {
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.admin-inbox-item__meta {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  color: var(--ink);
}

.admin-inbox-item__meta a {
  color: var(--secondary);
  font-weight: 700;
  text-decoration: none;
}

.admin-inbox-item__meta a:hover {
  text-decoration: underline;
}

.admin-inbox-item__quote {
  margin: 0.75rem 0;
  padding: 0.75rem 0.85rem;
  border-left: 3px solid rgba(119, 36, 50, 0.18);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.admin-inbox-item__quote-meta {
  margin: 0 0 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.admin-inbox-item__quote-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
}

.admin-inbox-item__reason-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-inbox-item__reason-text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--ink);
}

.admin-speech-ballots-modal__summary {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-speech-ballots-modal__empty {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.admin-ballots-table__name {
  display: block;
  font-weight: 700;
  color: var(--ink);
}

.admin-ballots-table__email {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.video-table__cell--actions .btn + .btn {
  margin-left: 0.35rem;
}

.admin-stats-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(119, 36, 50, 0.1);
}

.admin-stats-controls > .form-field {
  margin: 0;
  flex: 0 1 auto;
}

.admin-stats-inline-group {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.5rem 0.75rem;
}

.admin-stats-inline-group[hidden] {
  display: none;
}

.admin-stats-controls .form-field__label {
  margin-bottom: 0.2rem;
  font-size: 0.6875rem;
}

.admin-stats-controls .form-field__input {
  min-height: 2rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.8125rem;
}

.admin-stats-controls select.form-field__input {
  width: 9.5rem;
  max-width: 100%;
}

.admin-stats-inline-group .form-field {
  margin: 0;
  flex: 0 1 auto;
}

.admin-stats-controls .form-field[hidden] {
  display: none;
}

.admin-stats-custom-field {
  width: 8.5rem;
  max-width: 100%;
}

.admin-stats-compare-toggle {
  margin: 0;
}

.admin-stats-compare-toggle input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: calc((2rem - 1rem) / 2) 0;
  align-self: flex-start;
}

.admin-stats-summary {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}

.admin-stat-card {
  padding: 1rem 1.1rem;
  background: rgba(242, 223, 116, 0.18);
  border: 1px solid rgba(119, 36, 50, 0.1);
  border-radius: var(--radius);
}

.admin-stat-card--toggle {
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-stat-card--toggle:hover {
  border-color: rgba(119, 36, 50, 0.22);
}

.admin-stat-card--toggle.is-selected {
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(119, 36, 50, 0.12);
}

.admin-stat-card--toggle:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
}

.admin-stats-chart {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(119, 36, 50, 0.1);
}

.admin-stats-chart[hidden] {
  display: none;
}

.admin-stats-chart__title {
  margin: 0 0 0.75rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-stats-chart__svg {
  width: 100%;
  height: auto;
  display: block;
}

.admin-stats-chart__axis,
.admin-stats-chart__grid-line {
  stroke: rgba(119, 36, 50, 0.14);
  stroke-width: 1;
}

.admin-stats-chart__grid-line {
  stroke-dasharray: 4 4;
}

.admin-stats-chart__axis-label {
  fill: var(--ink-soft);
  font-family: var(--font-family);
  font-size: 11px;
}

.admin-stats-chart__line {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.admin-stats-chart__line--primary {
  stroke: var(--secondary);
}

.admin-stats-chart__line--compare {
  stroke: #1f7a45;
}

.admin-stats-chart__point {
  stroke: #fff;
  stroke-width: 1.5;
}

.admin-stats-chart__point--primary {
  fill: var(--secondary);
}

.admin-stats-chart__point--compare {
  fill: #1f7a45;
}

.admin-stats-chart__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-top: 0.75rem;
}

.admin-stats-chart__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.admin-stats-chart__legend-item::before {
  content: "";
  width: 0.85rem;
  height: 0.2rem;
  border-radius: 999px;
  background: currentColor;
}

.admin-stats-chart__legend-item--primary {
  color: var(--secondary);
}

.admin-stats-chart__legend-item--compare {
  color: #1f7a45;
}

.admin-stat-card__label {
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.admin-stat-card__value {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.admin-stat-card__detail {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

.admin-stat-card__compare {
  margin: 0.4rem 0 0;
  font-size: 0.8125rem;
  font-weight: 700;
}

.admin-stat-card__compare--up {
  color: #1f7a45;
}

.admin-stat-card__compare--down {
  color: #9b1c31;
}

.admin-stat-card__compare--same {
  color: var(--ink-soft);
}

.admin-subheading {
  margin: 1.75rem 0 1rem;
  font-size: 1.0625rem;
  font-weight: 800;
  color: var(--ink);
}

.admin-adjust-form {
  display: grid;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.admin-adjust-form .form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
  gap: 1rem;
}

.admin-table th:last-child,
.admin-table td:last-child {
  text-align: right;
}

.admin-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: calc(var(--radius) - 4px);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  vertical-align: middle;
}

.admin-badge--admin {
  background: rgba(119, 36, 50, 0.12);
  color: var(--secondary);
}

.admin-badge--current {
  background: rgba(242, 223, 116, 0.55);
  color: var(--ink);
}

.admin-btn-danger {
  color: #9b1c31;
  border-color: rgba(155, 28, 49, 0.25);
}

.admin-btn-danger:hover {
  background: rgba(155, 28, 49, 0.06);
  border-color: rgba(155, 28, 49, 0.4);
}

.form-field--checkbox {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
  font-weight: 600;
}

.form-field--checkbox input {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin: 0;
}

/* Admin user edit modal */
.admin-user-modal .account-form {
  gap: 1rem;
}

.admin-user-modal__token-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.admin-user-modal__balance {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.admin-user-modal__balance-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.admin-user-modal__gift-field {
  margin: 0;
}

.admin-user-modal__ledger {
  margin-top: 1rem;
  max-height: 11rem;
  overflow: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(119, 36, 50, 0.08);
}

.admin-user-modal__password-hint {
  margin: 0 0 0.75rem;
}

.admin-user-modal__admin-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(119, 36, 50, 0.12);
  border-radius: calc(var(--radius) - 2px);
  background: rgba(242, 223, 116, 0.14);
}

.admin-user-modal__admin-toggle-label {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ink);
}

.admin-user-modal__admin-toggle-hint {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--ink-soft);
}

.admin-user-modal__admin-toggle input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  margin: 0;
  cursor: pointer;
}

.admin-user-modal__actions {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0.65rem;
  margin-top: 0.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(119, 36, 50, 0.1);
}

.admin-user-modal__actions .btn {
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  line-height: 1.15;
}

.admin-user-modal__actions .btn-primary {
  justify-self: center;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: none;
}

.admin-user-modal__actions .btn-primary:hover {
  transform: none;
  box-shadow: none;
}

.admin-user-modal__cancel {
  justify-self: start;
}

.admin-user-modal__remove {
  justify-self: end;
}

@media (max-width: 640px) {
  .admin-user-modal__token-row,
  .admin-user-modal .form-row--thirds {
    grid-template-columns: 1fr;
  }

  .admin-user-modal__admin-toggle {
    align-items: flex-start;
  }
}

/* Legal pages */
.legal-page {
  padding: 0.5rem var(--section-pad-inline) clamp(3rem, 7vw, 5rem);
  background: #fff;
}

.legal-page__inner {
  max-width: 42rem;
  margin-inline: auto;
}

.legal-page__header {
  margin-bottom: clamp(1.5rem, 3vw, 2rem);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(119, 36, 50, 0.12);
}

.legal-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}

.legal-page__updated {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.legal-page__content {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
}

.legal-page__content > *:first-child {
  margin-top: 0;
}

.legal-page__content h2 {
  margin: 2rem 0 0.75rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.25;
}

.legal-page__content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 700;
}

.legal-page__content p,
.legal-page__content ul {
  margin: 0 0 1rem;
}

.legal-page__content ul {
  padding-left: 1.35rem;
}

.legal-page__content li {
  margin-bottom: 0.35rem;
}

.legal-page__content a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.legal-page__content a:hover {
  color: var(--secondary);
}

.legal-page__content code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(119, 36, 50, 0.06);
}

.legal-page__related {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(119, 36, 50, 0.12);
  font-weight: 600;
}

.legal-table {
  width: 100%;
  margin: 0 0 1.25rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 0.75rem;
  text-align: left;
  vertical-align: top;
  border: 1px solid rgba(119, 36, 50, 0.12);
}

.legal-table th {
  font-weight: 700;
  background: rgba(242, 223, 116, 0.25);
}

@media (max-width: 640px) {
  .legal-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
