@import url("https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&display=swap");

:root {
  --bg0: #07071b;
  --bg1: #12103a;
  --bg-custom-a: #08081f;
  --bg-custom-b: #12103a;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f5f4ff;
  --muted: #cbc6ea;
  --accent0: #a45dff;
  --accent1: #af50ec;
  --accent2: #70b8ff;
  --tertiary-color: #a45dff;
  --progress-a: #55ebaf;
  --progress-b: #a45dff;
  --button-a: #55ebaf;
  --button-b: #8ff3cd;
  --button-text: #08070f;
  --surface-soft: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --radius-xl: 24px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --panel-glow: 0 22px 68px rgba(4, 2, 18, 0.58);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Sora", "Rubik", "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1300px 860px at 12% 0%, rgba(47, 26, 100, 0.92) 0%, rgba(47, 26, 100, 0) 58%),
    radial-gradient(1080px 760px at 90% 78%, rgba(38, 18, 115, 0.88) 0%, rgba(38, 18, 115, 0) 64%),
    radial-gradient(820px 520px at 55% 42%, rgba(112, 184, 255, 0.14) 0%, rgba(112, 184, 255, 0) 68%),
    linear-gradient(120deg, var(--bg-custom-a) 0%, #0b0a2e 45%, var(--bg-custom-b) 100%);
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 26px;
  padding: 92px 18px 30px;
  position: relative;
  overflow: visible;
}

.share-loading-shell {
  min-height: 560px;
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 0;
}

.share-loader-card {
  width: min(360px, calc(100vw - 36px));
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-loader-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.share-loader-state {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  color: rgba(143, 243, 205, 0.82);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
  text-align: center;
  box-shadow: none;
  display: inline-block;
  width: auto;
  animation: none;
}

.share-loader-state.is-static {
  width: auto;
  color: rgba(245, 244, 255, 0.92);
  animation: none;
}

.share-top-logo {
  position: absolute;
  top: 14px;
  left: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  opacity: 0.94;
}

.share-top-logo img {
  display: block;
  width: min(220px, 30vw);
  height: auto;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.34));
}

@media (max-width: 560px) {
  .page {
    padding-top: 74px;
  }

  .share-top-logo {
    top: 10px;
    left: 12px;
  }

  .share-top-logo img {
    width: min(160px, 46vw);
  }
}


.rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  overflow: hidden;
}

.contributor-rain-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 7;
  overflow: hidden;
}

.bg-aura {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.bg-aura-1 {
  bottom: 28vh;
  left: 50%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  opacity: 1;
  background: radial-gradient(circle at 50% 95%,
      rgba(85, 235, 175, 0.3) 0%,
      rgba(175, 80, 236, 0.4) 24%,
      rgba(30, 33, 50, 0.88) 78%);
  filter: blur(78px) brightness(1.2);
}

.bg-aura-2 {
  display: none;
}

.bg-lines {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65vh;
  pointer-events: none;
  z-index: 0;
  opacity: 1;
  background:
    repeating-linear-gradient(to right,
      rgba(85, 235, 175, 0.32) 0px,
      rgba(85, 235, 175, 0.32) 1px,
      transparent 1px,
      transparent 60px),
    repeating-linear-gradient(to top,
      rgba(175, 80, 236, 0.3) 0px,
      rgba(175, 80, 236, 0.3) 1px,
      transparent 1px,
      transparent 60px);
  transform-origin: bottom center;
  transform:
    perspective(700px) rotateX(55deg) scale(1.1) translateY(10px);
  filter: drop-shadow(0 0 18px rgba(175, 80, 236, 0.32)) brightness(1.16) contrast(1.08);
  mask-image: linear-gradient(to top,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.88) 20%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 100%);
  -webkit-mask-image: linear-gradient(to top,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.88) 20%,
      rgba(255, 255, 255, 0.55) 50%,
      rgba(255, 255, 255, 0) 100%);
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.34;
  background:
    repeating-linear-gradient(to bottom,
      rgba(85, 235, 175, 0.08) 0px,
      rgba(85, 235, 175, 0.08) 2px,
      transparent 2px,
      transparent 80px);
  background-size: 100% 200%;
  animation: shareGridBeamDrift 18s linear infinite;
  mix-blend-mode: screen;
  mask-image: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 0.45) 94%,
      rgba(255, 255, 255, 1) 100%);
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0) 90%,
      rgba(255, 255, 255, 0.45) 94%,
      rgba(255, 255, 255, 1) 100%);
}

.pattern-lines .bg-pattern,
.pattern-grid .bg-pattern,
.pattern-dots .bg-pattern,
.pattern-none .bg-pattern {
  display: block;
}

.noise {
  display: none;
}

@keyframes shareGridBeamDrift {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 0 200px;
  }
}

.card-shell {
  width: min(990px, 100%);
  position: relative;
  z-index: 3;
  pointer-events: auto;
  transform: none;
  transform-origin: center center;
  transition: transform 0.28s ease;
}

.card-shell.no-goal-compact {
  width: min(860px, 100%);
}

.panel-open .card-shell {
  transform: none;
}

.state {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(20, 17, 49, 0.9);
  backdrop-filter: blur(6px);
  padding: 24px;
  text-align: center;
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.card {
  border: 0;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  box-shadow: none;
  position: relative;
  transition: transform 180ms ease, box-shadow 260ms ease, border-color 180ms ease;
}

.card:hover {
  transform: none;
  box-shadow: none;
}

.card-tone-glass .card {
  background: transparent;
  backdrop-filter: none;
}

.card-tone-bold .card {
  background: transparent;
}

.card::before {
  content: none;
}

.card::after {
  content: none;
}

.top-strip {
  position: relative;
  z-index: 2;
  padding: 14px 20px 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #ece8ff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 5px 10px;
  transition: border-color 160ms ease, background 180ms ease, transform 160ms ease;
}

.chip:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.chip-accent {
  border-color: rgba(85, 235, 175, 0.36);
  color: #8ef4cb;
}

.chip-countdown {
  font-variant-numeric: tabular-nums;
}

.chip-countdown-flare {
  position: relative;
  overflow: hidden;
  border-color: rgba(85, 235, 175, 0.58);
  color: #ecfff6;
  background: linear-gradient(120deg, rgba(31, 140, 106, 0.45), rgba(63, 189, 149, 0.22));
  box-shadow: 0 0 14px rgba(85, 235, 175, 0.26), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.chip-countdown-flare::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -58%;
  width: 52%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0));
  animation: chipCountdownSweep 2.1s linear infinite;
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr);
  gap: 18px;
  padding: 18px 20px;
  align-items: start;
  overflow: visible;
}

.card.no-goal-compact .event-layout {
  grid-template-columns: minmax(300px, 1fr) minmax(230px, 0.8fr);
  gap: 16px;
  padding: 16px;
}

.left {
  display: grid;
  align-content: start;
  gap: 8px;
}

.left>* {
  opacity: 0;
  transform: translateY(10px);
  animation: fadeRiseIn 560ms cubic-bezier(0.22, 0.9, 0.28, 1) forwards;
}

.left>*:nth-child(1) {
  animation-delay: 50ms;
}

.left>*:nth-child(2) {
  animation-delay: 95ms;
}

.left>*:nth-child(3) {
  animation-delay: 140ms;
}

.left>*:nth-child(4) {
  animation-delay: 185ms;
}

.left>*:nth-child(5) {
  animation-delay: 230ms;
}

.left>*:nth-child(6) {
  animation-delay: 275ms;
}

.left>*:nth-child(7) {
  animation-delay: 320ms;
}

.left>*:nth-child(8) {
  animation-delay: 365ms;
}

.right .media-wrap {
  opacity: 1;
  transform: none;
  animation: none;
}

.card.no-goal-compact .left {
  gap: 8px;
}

.right {
  display: block;
  position: sticky;
  top: 20px;
  align-self: start;
  height: fit-content;
  overflow: visible;
}

.media-sticky-rail {
 position: sticky;
}

.event-category {
  margin: 0;
  color: var(--tertiary-color);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-category-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.event-tag-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #f2ecff;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  transition: transform 160ms ease, border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
}

.event-tag-chip:hover {
  transform: translateY(-1px);
  border-color: var(--button-a);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 0 14px rgba(85, 235, 175, 0.24);
}

.event-name {
  margin: 0;
  line-height: 0.99;
  font-size: clamp(28px, 4.1vw, 44px);
  background: linear-gradient(108deg, #ffffff 0%, #efe5ff 34%, #c8ffe8 70%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 8px 24px rgba(22, 8, 44, 0.34);
  letter-spacing: -0.02em;
  max-width: 22ch;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.event-name+.event-category-row {
  margin-top: 0;
}

.when {
  margin: 7px 0 0;
  color: rgba(240, 233, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-block;
  width: fit-content;
  position: relative;
}

.when.when-scheduled {
  color: #ffffff;
  text-shadow:
    0 0 12px rgba(175, 80, 236, 0.28),
    0 0 18px rgba(85, 235, 175, 0.18);
}

.when.when-scheduled::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(175, 80, 236, 0.95), rgba(85, 235, 175, 0.95));
  box-shadow:
    0 0 10px rgba(175, 80, 236, 0.5),
    0 0 14px rgba(85, 235, 175, 0.32);
}

.when-add-calendar {
  margin-top: 5px;
  display: inline-flex;
  width: fit-content;
  color: rgba(206, 224, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(206, 224, 255, 0.55);
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.when-add-calendar:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.9);
}

.host-section-label {
  margin: 0;
}

.host-link {
  color: inherit;
  text-decoration: none;
  display: block;
}

.share-broadcaster-module {
  display: grid;
}

#hostModule {
  margin-top: 10px;
}

.share-section {
  --share-section-gap: 6px;
  display: grid;
  row-gap: var(--share-section-gap);
  margin-top: 3px;
  margin-left: 8px;
}

.share-section-header {
  display: flex;
  align-items: center;
  min-height: 14px;
}

.share-section-header--with-action {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.section-header-label {
  margin: 0;
  color: rgba(208, 201, 235, 0.84);
  font-size: 10px;
  letter-spacing: 0.11em;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.section-header-label::before {
  content: "";
  width: 12px;
  height: 12px;
  display: inline-block;
  background: currentColor;
  opacity: 0.9;
  flex: 0 0 auto;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

.section-header-label--crown::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13h10v1H3v-1Zm.46-1L2 4l4 3 2-4 2 4 4-3-1.46 8H3.46Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 13h10v1H3v-1Zm.46-1L2 4l4 3 2-4 2 4 4-3-1.46 8H3.46Z'/%3E%3C/svg%3E");
}

.section-header-label--list::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3h10v2H3V3Zm0 4h10v2H3V7Zm0 4h7v2H3v-2Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 3h10v2H3V3Zm0 4h10v2H3V7Zm0 4h7v2H3v-2Z'/%3E%3C/svg%3E");
}

.section-header-label--people::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm4 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM1 13c0-2.3 2.24-3.5 5-3.5S11 10.7 11 13v1H1v-1Zm10.5-3c2.03 0 3.5 1.04 3.5 2.8V14H12v-1c0-1.12-.43-2.15-1.2-3 .22-.01.45 0 .7 0Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 8a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Zm4 0a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM1 13c0-2.3 2.24-3.5 5-3.5S11 10.7 11 13v1H1v-1Zm10.5-3c2.03 0 3.5 1.04 3.5 2.8V14H12v-1c0-1.12-.43-2.15-1.2-3 .22-.01.45 0 .7 0Z'/%3E%3C/svg%3E");
}

.share-broadcaster-card,
.share-broadcaster-clips-card {
  position: relative;
  border-radius: 20px;
  border: 1px solid rgba(126, 137, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(175, 80, 236, 0.14), transparent 34%),
    radial-gradient(circle at bottom right, rgba(85, 235, 175, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(7, 10, 30, 0.94), rgba(7, 9, 28, 0.92));
  box-shadow:
    0 20px 36px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  overflow: hidden;
}

.share-broadcaster-card {
  display: block;
  padding: 13px 14px;
  border-color: rgba(166, 176, 255, 0.24);
  background:
    radial-gradient(circle at top left, rgba(175, 80, 236, 0.1), transparent 36%),
    radial-gradient(circle at bottom right, rgba(85, 235, 175, 0.06), transparent 32%),
    linear-gradient(180deg, rgba(14, 18, 45, 0.68), rgba(14, 18, 45, 0.6));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.015) inset;
}

.share-broadcaster-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.share-broadcaster-main:hover .share-broadcaster-name {
  text-decoration: underline;
}

.share-broadcaster-avatar-wrap {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  padding: 2px;
  background: linear-gradient(145deg, rgba(175, 80, 236, 0.5), rgba(85, 235, 175, 0.2));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.3),
    0 0 20px rgba(175, 80, 236, 0.28),
    0 0 34px rgba(85, 235, 175, 0.18);
  transition: box-shadow 220ms ease, background 220ms ease, transform 180ms ease;
}

.share-broadcaster-avatar-wrap.is-live {
  background: linear-gradient(145deg, rgba(255, 88, 126, 0.95), rgba(255, 152, 91, 0.9));
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 203, 216, 0.62),
    0 0 18px rgba(255, 86, 122, 0.58),
    0 0 30px rgba(255, 118, 98, 0.42);
  animation: hostLiveRingPulse 1.9s ease-in-out infinite;
}

.share-broadcaster-avatar {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: #16162a;
}

.share-broadcaster-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #f8f7ff;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(175, 80, 236, 0.58), rgba(85, 235, 175, 0.42));
}

.share-broadcaster-copy {
  min-width: 0;
  padding-top: 1px;
}

.share-broadcaster-heading {
  margin-bottom: 4px;
}

.share-broadcaster-name {
  margin: 0;
  color: #ffffff;
  font-size: clamp(15px, 1.8vw, 19px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.share-broadcaster-handle {
  margin: 4px 0 0;
  color: rgba(222, 223, 255, 0.82);
  font-size: 13px;
  line-height: 1.1;
  font-weight: 600;
}

.share-broadcaster-status-meta {
  margin: 4px 0 0;
  color: rgba(222, 232, 255, 0.74);
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
}

.share-broadcaster-status-meta.is-live {
  color: #ffffff;
  font-weight: 800;
  text-shadow:
    0 0 10px rgba(255, 97, 128, 0.55),
    0 0 18px rgba(255, 120, 90, 0.36);
}

@keyframes hostLiveRingPulse {
  0% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 203, 216, 0.62),
      0 0 14px rgba(255, 86, 122, 0.48),
      0 0 24px rgba(255, 118, 98, 0.32);
  }

  50% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 214, 225, 0.74),
      0 0 24px rgba(255, 86, 122, 0.68),
      0 0 38px rgba(255, 118, 98, 0.52);
  }

  100% {
    box-shadow:
      0 12px 30px rgba(0, 0, 0, 0.34),
      0 0 0 1px rgba(255, 203, 216, 0.62),
      0 0 14px rgba(255, 86, 122, 0.48),
      0 0 24px rgba(255, 118, 98, 0.32);
  }
}

.share-broadcaster-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 7px;
}

.share-broadcaster-pill {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  color: #f8f8ff;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.share-broadcaster-pill-muted {
  color: rgba(255, 255, 255, 0.76);
  background: rgba(255, 255, 255, 0.03);
}

.share-broadcaster-pill-live {
  color: #ffffff;
  border-color: rgba(255, 94, 125, 0.8);
  background: linear-gradient(120deg, rgba(255, 76, 116, 0.95), rgba(255, 113, 92, 0.95));
  box-shadow: 0 6px 14px rgba(255, 80, 109, 0.3);
}

.share-broadcaster-bio {
  margin: 0;
  color: rgba(228, 228, 247, 0.78);
  font-size: 12px;
  line-height: 1.32;
  max-width: 40ch;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: balance;
}

.share-broadcaster-clips-card {
  padding: 14px;
}

.right .share-broadcaster-clips-card {
  margin-top: 12px;
}

.left .share-broadcaster-clips-card {
  margin-top: 10px;
}

.share-broadcaster-clips-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.share-broadcaster-clips-title {
  margin: 0 0 4px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
}

.share-broadcaster-clips-subtitle {
  margin: 0;
  color: rgba(224, 225, 246, 0.68);
  font-size: 12px;
  line-height: 1.35;
}

.share-broadcaster-clips-link {
  color: rgba(184, 190, 255, 0.9);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.share-broadcaster-clips-link:hover,
.share-broadcaster-clips-link:focus-visible {
  color: #ffffff;
}

.share-section-inline-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: rgba(230, 231, 248, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.share-section-inline-loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(85, 235, 175, 0.95), rgba(164, 93, 255, 0.95));
  box-shadow: 0 0 10px rgba(164, 93, 255, 0.32);
  animation: shareSectionLoaderPulse 1.1s ease-in-out infinite;
}

@keyframes shareSectionLoaderPulse {
  0% {
    opacity: 0.55;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0.55;
    transform: scale(0.9);
  }
}

.share-broadcaster-clips-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

.share-broadcaster-clip {
  display: block;
  text-decoration: none;
  color: inherit;
}

.share-broadcaster-clip-thumb-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(121, 132, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}

.share-broadcaster-clip-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease, opacity 220ms ease;
}

.share-broadcaster-clip:hover .share-broadcaster-clip-thumb,
.share-broadcaster-clip:focus-visible .share-broadcaster-clip-thumb {
  transform: scale(1.03);
  opacity: 0.96;
}

.share-broadcaster-clip-meta {
  padding: 8px 2px 0;
}

.share-broadcaster-clip-views {
  color: rgba(230, 231, 248, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.share-broadcaster-clips-empty {
  margin: 0;
  color: rgba(230, 231, 248, 0.72);
  font-size: 12px;
  padding: 6px 0 2px;
}

.share-past-events-card {
  margin-top: 12px;
  display: grid;
  gap: 0;
}

.share-past-events-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.share-past-events-item {
  display: block;
}

.share-past-events-item .share-broadcaster-clip-thumb-wrap {
  position: relative;
}

.share-past-events-went-chip {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fbf9ff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background:
    linear-gradient(130deg, rgba(17, 24, 44, 0.92), rgba(21, 28, 52, 0.9)),
    radial-gradient(circle at 20% 0%, rgba(89, 208, 255, 0.28), transparent 55%);
  backdrop-filter: blur(4px);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.1) inset,
    0 0 14px rgba(104, 195, 255, 0.26);
}

.share-past-events-name {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.share-past-events-date {
  color: rgba(220, 213, 246, 0.8);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  display: block;
}

.event-desc {
  margin: 0;
  color: #f7f3ff;
  white-space: normal;
  line-height: 1.36;
  font-size: 14px;
  letter-spacing: 0.01em;
  opacity: 0.98;
  padding: 11px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 16, 45, 0.55);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-desc-label {
  margin: 0;
}

.event-desc-section {
  display: grid;
}

.guest-list-card {
  margin-top: 3px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  display: grid;
  gap: 4px;
}

.guest-list-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guest-list-heading {
  min-width: 0;
}

.guest-list-title {
  margin: 0;
}

.guest-list-subtitle {
  margin: 0;
  padding-left: 17px;
  color: rgba(226, 220, 246, 0.8);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.guest-list-view-all {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #f9f7ff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 12px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
  align-self: flex-start;
}

.guest-list-view-all:hover,
.guest-list-view-all:focus-visible {
  transform: translateY(-1px);
  border-color: var(--button-a);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 12px rgba(85, 235, 175, 0.24);
}

.guest-list-view-all:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.guest-list-avatars-row {
  display: flex;
  align-items: center;
  gap: 0;
  min-height: 34px;
  flex-wrap: nowrap;
  overflow: hidden;
  padding: 7px 9px 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(18, 16, 45, 0.38);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.guest-list-avatar-item {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fbf9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(16, 11, 38, 0.22);
  margin-left: -5px;
  flex: 0 0 auto;
}

.guest-list-avatar-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.guest-list-avatar-item:first-child {
  margin-left: 0;
}

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

.guest-list-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 14px;
  line-height: 1;
  background: linear-gradient(140deg, rgba(175, 80, 236, 0.38), rgba(85, 235, 175, 0.24));
}

.guest-list-avatar-overflow {
  color: rgba(250, 246, 255, 0.96);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(203, 188, 236, 0.38);
}

.guest-list-empty {
  color: rgba(220, 214, 246, 0.8);
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .guest-list-card {
    gap: 6px;
  }

  .guest-list-title {
    font-size: 11px;
  }

  .guest-list-subtitle {
    font-size: 11px;
    margin-top: 0;
    padding-left: 17px;
  }

  .guest-list-view-all {
    font-size: 11px;
    padding: 7px 10px;
  }

  .guest-list-avatars-row {
    min-height: 32px;
    padding-left: 8px;
  }

  .guest-list-avatar-item {
    width: 32px;
    height: 32px;
    font-size: 11px;
    margin-left: -4px;
  }
}

.card.no-goal-compact .event-name {
  font-size: clamp(22px, 3.3vw, 36px);
}

.card.no-goal-compact .when {
  font-size: 16px;
}

.card.no-goal-compact .share-broadcaster-card {
  padding: 14px;
}

.card.no-goal-compact .event-desc {
  -webkit-line-clamp: 2;
  padding: 12px 14px;
}

.card.no-goal-compact .media-wrap {
  aspect-ratio: 1 / 1.02;
  border-radius: 12px;
}

.event-reach {
  margin: -2px 0 0;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(246, 242, 255, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-meta-card {
  margin-top: 10px;
  padding: 10px 11px;
  border-radius: 14px;
  border: 1px solid rgba(125, 138, 255, 0.24);
  background:
    radial-gradient(circle at top left, rgba(175, 80, 236, 0.12), transparent 44%),
    linear-gradient(180deg, rgba(10, 12, 34, 0.9), rgba(9, 11, 30, 0.9));
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.event-meta-title {
  margin: 0 0 8px;
  color: rgba(224, 218, 246, 0.88);
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-transform: uppercase;
}

.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.event-meta-item {
  display: grid;
  gap: 2px;
  padding: 7px 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
}

.event-meta-key {
  color: rgba(199, 193, 226, 0.74);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.event-meta-value {
  color: #f8f6ff;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 700;
}

.right .event-meta-card {
  margin-top: 12px;
}

.winner-row {
  margin-top: 2px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(120deg, rgba(164, 93, 255, 0.12), rgba(85, 235, 175, 0.08));
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.winner-row-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 11px;
  font-weight: 700;
}

.winner-row-value {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-align: right;
}

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

.stat-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, box-shadow 220ms ease, transform 180ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), var(--button-a), rgba(255, 255, 255, 0));
  opacity: 0.72;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.072);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.3), 0 0 16px rgba(164, 93, 255, 0.15);
}

.stat-label {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 700;
}

.stat-value {
  margin: 5px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}

.media-wrap {
  position: relative;
  width: 100%;
  height: clamp(320px, 42vw, 560px);
  aspect-ratio: 1 / 1.02;
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(9, 12, 30, 0.96), rgba(14, 18, 42, 0.94));
  overflow: hidden;
  border: 0;
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 220ms ease;
  perspective: 1200px;
}

@supports (aspect-ratio: 1 / 1) {
  .media-wrap {
    height: auto;
  }
}

.media-wrap:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(6, 5, 16, 0.44), 0 0 20px rgba(164, 93, 255, 0.3), 0 0 22px rgba(85, 235, 175, 0.16);
}

.event-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center;
  background: linear-gradient(135deg, #17142a, #22203b);
  transition: transform 360ms ease, filter 280ms ease;
}

.media-wrap:hover .event-image {
  transform: scale(1);
  filter: saturate(1.05) contrast(1.03);
}

.media-wrap.media-wrap-portrait {
  aspect-ratio: 1 / 1.02;
}

.media-wrap.media-wrap-portrait .event-image {
  object-fit: cover;
  object-position: center center;
}

.media-wrap.media-wrap-portrait:hover .event-image {
  transform: none;
  filter: saturate(1.03) contrast(1.02);
}

.media-flipper {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  will-change: transform;
  transition: transform 460ms cubic-bezier(0.2, 0.84, 0.22, 1);
}

.media-wrap.is-flipped .media-flipper {
  transform: rotateY(180deg);
}

.media-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.media-face-front {
  position: relative;
  transform: rotateY(0deg);
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.media-face-front .event-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.media-face-back {
  transform: rotateY(180deg);
  z-index: 1;
  opacity: 0;
  visibility: hidden;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(16, 15, 38, 0.95), rgba(13, 12, 30, 0.96)),
    radial-gradient(420px 180px at 100% 0%, rgba(164, 93, 255, 0.26), transparent 75%);
}

.media-wrap.is-flipped .media-face-front {
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

.media-wrap.is-flipped .media-face-back {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.media-wrap.is-flipped #mediaGoingChip,
.media-wrap.is-flipped #mediaGoingAvatars {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.media-back-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.media-back-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.media-back-close {
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  cursor: pointer;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.media-back-close:hover {
  transform: translateY(-1px);
  border-color: var(--button-a);
  background: rgba(255, 255, 255, 0.16);
  box-shadow: 0 0 12px rgba(85, 235, 175, 0.24);
}

.media-vote-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 0 0 2px;
}

.media-vote-tabs.is-hidden {
  display: none;
}

.media-vote-tab-dot {
  appearance: none;
  border-radius: 999px;
  border: none;
  width: 12px;
  min-width: 12px;
  min-height: 12px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  cursor: pointer;
  transition: transform 160ms ease;
}

.media-vote-tab-dot-core {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  transition: background 140ms ease, box-shadow 160ms ease, width 160ms ease, height 160ms ease;
}

.media-vote-tab-dot:hover {
  transform: translateY(-1px);
}

.media-vote-tab-dot.is-active .media-vote-tab-dot-core {
  width: 9px;
  height: 9px;
  background: var(--button-a);
  box-shadow: 0 0 10px color-mix(in srgb, var(--button-a) 42%, transparent);
}

.media-vote-tab-dot:focus-visible {
  outline: 2px solid var(--button-b);
  outline-offset: 2px;
}

.media-leaderboard-rows {
  min-height: 108px;
  max-height: 170px;
  overflow: auto;
  padding-right: 0;
}

.media-leaderboard-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

@keyframes mediaContributorsFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.media-contributors-table-wrap {
  border: 1px solid color-mix(in srgb, var(--button-a) 42%, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.03),
    0 8px 16px rgba(0, 0, 0, 0.24);
}

.media-contributors-table-transition {
  animation: mediaContributorsFadeIn 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.media-contributors-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: linear-gradient(180deg,
      color-mix(in srgb, var(--surface-2) 88%, #101330 12%) 0%,
      color-mix(in srgb, var(--surface-1) 92%, #0f1232 8%) 100%);
  letter-spacing: 0.01em;
}

.media-contributors-table th,
.media-contributors-table td {
  padding: 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.media-contributors-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 10px;
  font-weight: 800;
  color: var(--button-contrast);
  background: linear-gradient(120deg,
      color-mix(in srgb, var(--button-a) 84%, #1e173f 16%),
      color-mix(in srgb, var(--button-b) 70%, #221c45 30%));
  border-color: color-mix(in srgb, var(--button-b) 42%, rgba(255, 255, 255, 0.16));
}

.media-contributors-table tbody tr {
  position: relative;
  transition: transform 120ms ease, box-shadow 140ms ease, background 140ms ease;
}

.media-contributors-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.media-contributors-table tbody tr:hover {
  background: linear-gradient(90deg,
      color-mix(in srgb, var(--button-b) 24%, transparent) 0%,
      color-mix(in srgb, var(--button-a) 22%, transparent) 100%);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--button-a) 30%, transparent);
}

.media-contributors-table tbody tr::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0.04) 0%,
      rgba(255, 255, 255, 0) 50%,
      rgba(255, 255, 255, 0.03) 100%);
  animation: shimmer 1.4s linear infinite;
}

.media-contributors-table tbody tr:hover::after {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.media-leaderboard-rank {
  width: 24px;
  text-align: center;
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.media-leaderboard-name {
  min-width: 0;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 700;
}

.media-leaderboard-amount {
  white-space: nowrap;
  text-align: right;
  font-weight: 800;
  color: rgba(230, 254, 243, 0.95);
}

.media-leaderboard-toggle {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 6;
  appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(14, 13, 34, 0.86);
  color: #fff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  cursor: pointer;
  transition: transform 150ms ease, border-color 180ms ease, box-shadow 220ms ease;
}

.media-leaderboard-toggle:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--button-a);
  box-shadow: 0 0 16px rgba(85, 235, 175, 0.34), 0 10px 20px rgba(0, 0, 0, 0.26);
}

.media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 8, 18, 0.65), transparent 52%);
}

.media-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f7f3ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(12, 11, 30, 0.72);
  backdrop-filter: blur(4px);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
}

.media-chip-top-left {
  top: 10px;
  left: 10px;
  right: 108px;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 4;
}

#chipDate.media-chip-top-left {
  right: auto;
  max-width: 126px;
  min-height: 32px;
  padding: 6px 12px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(16, 15, 39, 0.84);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
  transition:
    max-width 220ms ease,
    padding 220ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 220ms ease,
    transform 180ms ease,
    opacity 220ms ease,
    visibility 220ms ease;
}

#chipDate.media-chip-top-left:hover,
#chipDate.media-chip-top-left:focus-visible,
#chipDate.media-chip-top-left.is-expanded {
  max-width: min(84vw, 440px);
  padding: 7px 14px;
  border-color: rgba(85, 235, 175, 0.78);
  background: rgba(19, 17, 45, 0.92);
  box-shadow: 0 0 0 1px rgba(85, 235, 175, 0.24), 0 14px 30px rgba(0, 0, 0, 0.42);
}

#chipDate.media-chip-top-left.is-media-flipped-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
}

.media-chip-bottom-right {
  right: 10px;
  bottom: 10px;
  border-color: var(--button-a);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.09));
  color: #ffffff;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14) inset,
    0 0 12px rgba(85, 235, 175, 0.26);
  pointer-events: none;
}

.media-chip-bottom-right:hover {
  transform: translateY(-1px) scale(1.02);
  border-color: var(--button-b);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.14) inset,
    0 0 16px rgba(85, 235, 175, 0.34),
    0 10px 24px rgba(0, 0, 0, 0.26);
}

#mediaGoingChip.media-chip-bottom-right {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
  text-transform: none;
  letter-spacing: 0.01em;
  font-size: 13px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55);
  background: linear-gradient(135deg, rgba(8, 10, 24, 0.94), rgba(14, 18, 40, 0.92));
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  overflow: hidden;
  isolation: isolate;
}

#mediaGoingChip.media-chip-bottom-right,
#mediaGoingChip.media-chip-bottom-right span {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff;
}

#mediaGoingChip.media-chip-bottom-right::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  z-index: 0;
  background: conic-gradient(from 0deg,
      var(--button-a, rgba(85, 235, 175, 1)),
      var(--button-b, rgba(143, 243, 205, 1)),
      var(--accent0, rgba(164, 93, 255, 1)),
      var(--button-a, rgba(85, 235, 175, 1)));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0.92;
  animation: ssShareGoingChipSpin 8.5s linear infinite;
  pointer-events: none;
}

#mediaGoingChip.media-chip-bottom-right {
  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.6),
    0 0 18px rgba(85, 235, 175, 0.2),
    0 0 0 1px rgba(0, 0, 0, 0.25) inset;
  pointer-events: none;
  cursor: default;
}

#mediaGoingChip.media-chip-bottom-right>* {
  position: relative;
  z-index: 1;
}

.media-going-avatars {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 16px;
  pointer-events: none;
}

.media-going-avatars.has-chip {
  bottom: 32px;
}

.media-going-avatar-item {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: rgba(16, 18, 36, 0.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -5px;
}

.media-going-avatar-item:first-child {
  margin-left: 0;
}

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

.media-going-avatar-fallback {
  font-size: 7px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
  letter-spacing: 0.01em;
  line-height: 1;
  text-transform: uppercase;
}

.goal-block {
  order: 11;
  margin-top: 8px;
  padding: 10px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.035));
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 180ms ease, box-shadow 220ms ease, background 180ms ease;
  position: relative;
  overflow: hidden;
}

.goal-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(420px 80px at 0% 0%, rgba(164, 93, 255, 0.24), transparent 70%);
  opacity: 0.8;
}

.goal-block:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.042));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.26), 0 0 20px rgba(164, 93, 255, 0.16);
}

.goal-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.goal-label {
  color: #dfd6ff;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.goal-value {
  font-weight: 800;
}

.goal-track {
  margin-top: 8px;
  width: 100%;
  height: 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.08));
  overflow: hidden;
  box-shadow: inset 0 1px 5px rgba(0, 0, 0, 0.32);
}

.goal-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--progress-a), var(--progress-b));
  transition: width 0.7s ease;
  position: relative;
  box-shadow: 0 0 12px rgba(85, 235, 175, 0.35), 0 0 12px rgba(164, 93, 255, 0.3);
}

.goal-fill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40%;
  width: 36%;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
  animation: goalShimmer 2.8s linear infinite;
}

.goal-meta {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.votes {
  padding: 2px 0 0;
  display: grid;
  gap: 8px;
}

.vote-intro {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.2);
}

.vote-intro.vote-intro-clickable {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vote-intro.vote-intro-clickable:hover,
.vote-intro.vote-intro-clickable:focus-visible {
  color: rgba(212, 242, 255, 0.96);
  text-shadow: 0 0 10px rgba(85, 235, 175, 0.28);
}

.vote-state-row {
  margin: 2px 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.vote-state-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #ecfff6;
  border: 1px solid rgba(85, 235, 175, 0.72);
  background: linear-gradient(120deg, rgba(39, 151, 114, 0.58), rgba(54, 210, 155, 0.42));
}

.vote-state-pill.is-closed {
  color: #ffe9f3;
  border-color: rgba(255, 155, 200, 0.76);
  background: linear-gradient(120deg, rgba(138, 38, 89, 0.58), rgba(204, 77, 147, 0.42));
}

.vote-state-meta {
  font-size: 12px;
  font-weight: 700;
  color: rgba(234, 229, 255, 0.9);
}

.vote-empty {
  margin: 4px 0 0;
  border: 1px dashed rgba(255, 255, 255, 0.26);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
  color: rgba(231, 226, 250, 0.9);
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.vote-row {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 10px 9px;
  font-size: 12px;
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  position: relative;
  transition: transform 170ms ease, border-color 180ms ease, box-shadow 220ms ease, background 180ms ease, opacity 180ms ease;
}

.vote-row:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(132deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.3);
}

.vote-row-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

.vote-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  flex: 1 1 auto;
  font-weight: 800;
  color: #f4f1ff;
  letter-spacing: 0.004em;
}

.vote-rank-icon {
  width: 18px;
  /* use fixed width/height */
  height: 18px;
  min-width: 18px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  line-height: 1;
  /* key for emoji vertical centering */
  font-size: 12px;
  /* slightly smaller helps */
  transform: translateY(-0.5px);
  /* tiny nudge */
}

.vote-label-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.vote-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.vote-percent-text {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  color: rgba(235, 231, 255, 0.92);
  min-width: 34px;
  justify-content: flex-end;
  cursor: pointer;
}

.vote-percent-text:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(164, 93, 255, 0.3);
}

.vote-amount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(248, 244, 255, 0.88);
  background: rgba(26, 24, 42, 0.9);
  position: absolute;
  top: -11px;
  right: 12px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  z-index: 2;
  cursor: pointer;
  transition: transform 140ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.vote-amount-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.26), 0 0 14px rgba(164, 93, 255, 0.22);
}

.vote-row.is-winner {
  border-color: rgba(164, 93, 255, 0.62);
  background: linear-gradient(180deg, rgba(164, 93, 255, 0.12), rgba(255, 255, 255, 0.04));
  box-shadow: 0 10px 24px rgba(18, 10, 44, 0.36), 0 0 16px rgba(164, 93, 255, 0.26);
}

.vote-row.is-loser {
  opacity: 0.95;
}

.votes.has-winner .vote-row.is-loser {
  opacity: 0.62;
  filter: saturate(0.75) brightness(0.86);
}

.vote-row.is-winner .vote-label {
  color: #ffffff;
  font-weight: 800;
}

.vote-row.is-winner .vote-percent-text {
  color: #ffffff;
}

.vote-row.is-winner .vote-amount-chip {
  border-color: rgba(164, 93, 255, 0.98);
  color: #fff;
  background: linear-gradient(135deg, rgba(164, 93, 255, 0.96), rgba(142, 244, 203, 0.9));
  box-shadow: 0 8px 18px rgba(20, 12, 50, 0.42), 0 0 12px rgba(164, 93, 255, 0.38);
}

.vote-row.is-loser .vote-amount-chip {
  border-color: rgba(255, 255, 255, 0.32);
  color: rgba(236, 232, 255, 0.84);
  background: linear-gradient(120deg, rgba(37, 33, 57, 0.94), rgba(23, 20, 42, 0.9));
}

.votes.has-winner .vote-row.is-loser .vote-amount-chip {
  color: rgba(226, 221, 246, 0.74);
  border-color: rgba(255, 255, 255, 0.24);
}

.vote-track {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.34);
}

.vote-track::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.vote-fill {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(96deg, var(--progress-a), var(--progress-b));
  transition: width 0.65s ease;
  position: relative;
  overflow: hidden;
  opacity: 0.72;
}

.vote-fill.is-loser {
  filter: saturate(0.86) brightness(0.94);
}

.votes.has-winner .vote-fill.is-loser {
  opacity: 0.52;
  filter: saturate(0.7) brightness(0.84);
}

.vote-fill.is-winner {
  background: linear-gradient(98deg, var(--accent0), var(--progress-a), var(--progress-b), var(--accent0));
  background-size: 260% 100%;
  animation: voteWinnerDrift 4.8s ease-in-out infinite;
  box-shadow: 0 0 12px rgba(164, 93, 255, 0.35), 0 0 20px rgba(85, 235, 175, 0.2);
  opacity: 1;
}

.vote-fill-shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -50%;
  width: 50%;
  background: linear-gradient(112deg,
      rgba(255, 255, 255, 0) 16%,
      rgba(255, 255, 255, 0.42) 46%,
      rgba(197, 251, 228, 0.36) 58%,
      rgba(255, 255, 255, 0) 76%);
  mix-blend-mode: screen;
  pointer-events: none;
  animation: voteShimmerLR 2.1s linear infinite;
}

.vote-fill-sparkle {
  position: absolute;
  right: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 8px rgba(85, 235, 175, 0.52), 0 0 14px rgba(164, 93, 255, 0.42);
  transform: translate(25%, -50%) scale(0.55);
  opacity: 0;
  pointer-events: none;
  animation: voteSparkleEnd 2100ms linear infinite;
}

.vote-leading-copy {
  margin: 0;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(223, 216, 251, 0.88);
  opacity: 0.98;
}

.ss-avatar-stack {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-top: 6px;
}

.ss-avatar {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  border: 2px solid rgba(12, 11, 30, 0.96);
  background: rgba(26, 24, 42, 0.95);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: -6px;
}

.ss-avatar:first-child {
  margin-left: 0;
}

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

.ss-avatar-fallback {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: rgba(247, 244, 255, 0.96);
  text-transform: uppercase;
  line-height: 1;
}

.ss-avatar-ghost {
  background: linear-gradient(135deg, rgba(164, 93, 255, 0.52), rgba(85, 235, 175, 0.44));
  filter: blur(0.6px);
  opacity: 0.5;
}

.ss-avatar-total {
  margin-left: 6px;
  font-size: 10px;
  font-weight: 800;
  color: rgba(220, 214, 246, 0.9);
}

.vote-avatar-stack {
  margin-top: 5px;
}

#goalAvatarStack {
  margin-top: 8px;
}

.contributor-rain-item {
  position: absolute;
  top: 62px;
  display: inline-flex;
  align-items: center;
  max-width: 40vw;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(120deg, rgba(20, 17, 44, 0.92), rgba(35, 22, 54, 0.9));
  color: rgba(248, 244, 255, 0.96);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.34), 0 0 14px rgba(164, 93, 255, 0.24);
  opacity: 0;
  transform: translateY(-10px) scale(0.94);
  animation: contributorRainDrop 1900ms ease-out forwards;
  animation-delay: var(--rain-delay, 0ms);
}

.contributor-rain-item.is-left {
  left: 14px;
}

.contributor-rain-item.is-right {
  right: 14px;
}

@keyframes contributorRainDrop {
  0% {
    opacity: 0;
    transform: translateY(-16px) scale(0.92);
  }

  12% {
    opacity: 1;
  }

  68% {
    opacity: 0.94;
    transform: translateY(58px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translateY(102px) scale(0.96);
  }
}

@keyframes voteWinnerDrift {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

@keyframes voteShimmerLR {
  0% {
    left: -50%;
  }

  100% {
    left: 120%;
  }
}

@keyframes voteSparkleEnd {

  0%,
  100% {
    opacity: 0;
    transform: translate(25%, -50%) scale(0.55);
  }

  22% {
    opacity: 0.92;
    transform: translate(25%, -50%) scale(1);
  }

  42% {
    opacity: 0;
    transform: translate(25%, -50%) scale(0.4);
  }
}

@keyframes goalShimmer {
  0% {
    left: -40%;
  }

  100% {
    left: 120%;
  }
}

@keyframes ssShareGoingChipSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@keyframes chipCountdownSweep {
  0% {
    left: -58%;
  }

  100% {
    left: 120%;
  }
}

@keyframes cardGlowPulse {

  0%,
  100% {
    opacity: 0.46;
  }

  50% {
    opacity: 0.75;
  }
}

@keyframes fadeRiseIn {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes voteLiveShimmer {
  0% {
    box-shadow: 0 0 0 rgba(85, 235, 175, 0.2);
  }

  50% {
    box-shadow: 0 0 14px rgba(85, 235, 175, 0.38);
  }

  100% {
    box-shadow: 0 0 0 rgba(85, 235, 175, 0.2);
  }
}

@keyframes voteLeadPulse {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(18, 10, 44, 0.36), 0 0 10px rgba(164, 93, 255, 0.2);
  }

  50% {
    box-shadow: 0 12px 28px rgba(18, 10, 44, 0.45), 0 0 18px rgba(164, 93, 255, 0.34);
  }
}

.ss-card--votePolish .vote-state-pill {
  position: relative;
  overflow: hidden;
  animation: voteLiveShimmer 2.6s ease-in-out infinite;
}

.ss-card--votePolish .vote-state-pill.is-closed {
  animation: none;
}

.ss-card--votePolish .vote-state-pill::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -56%;
  width: 50%;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0));
  animation: voteShimmerLR 2s linear infinite;
}

.ss-card--votePolish .vote-state-pill.is-closed::after {
  animation: none;
}

.ss-card--votePolish .vote-intro {
  margin-top: 4px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 12px;
}

.ss-card--votePolish .vote-state-row {
  justify-content: flex-start;
}

.ss-card--votePolish .vote-row-top {
  align-items: center;
  /* fixes weird vertical pocket */
}

.ss-card--votePolish .vote-row {
  padding-top: 10px;
}

.ss-card--votePolish .vote-row.is-leading-pulse {
  animation: voteLeadPulse 2.4s ease-in-out infinite;
}

.ss-card--votePolish .vote-track {
  background:
    linear-gradient(96deg, rgba(164, 93, 255, 0.18), rgba(85, 235, 175, 0.12)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.07));
}

.ss-card--votePolish .vote-track::before {
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0.25;
}

/* Vote polish: make the amount chip float top-right like Bits */
.ss-card--votePolish .vote-row {
  position: relative;
}


/* Push % to the right so it lines up under the chip */
.ss-card--votePolish .vote-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding-right: 0;
  /* chip is absolute so no padding needed */
}

.ss-card--votePolish .vote-percent-text {
  min-width: 40px;
}

.ss-card--votePolish .actions .btn {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ss-card--votePolish #twitchBtn.btn-has-sub {
  flex-direction: column;
  gap: 2px;
}

.actions {
  border-top: 1px solid var(--line);
  padding: 12px 20px 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0.04));
}

.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-main {
  display: inline-flex;
}

.btn-sub {
  display: inline-flex;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.05;
  opacity: 0.82;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.btn-primary {
  color: var(--button-text);
  background: linear-gradient(94deg, var(--button-a), var(--button-b));
  box-shadow: 0 10px 24px rgba(85, 235, 175, 0.26);
}

.btn-primary:hover {
  box-shadow: 0 14px 28px rgba(85, 235, 175, 0.32), 0 0 18px rgba(164, 93, 255, 0.2);
}

#twitchBtn.btn-live-primary {
  color: var(--button-text);
  border-color: rgba(0, 0, 0, 0.08);
  background: linear-gradient(94deg, var(--button-a), var(--button-b));
  box-shadow: 0 12px 24px rgba(85, 235, 175, 0.3);
}

.btn-ghost {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(16, 18, 36, 0.52);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.24);
}

.share-site-footer {
  position: relative;
  margin-top: 18px;
  padding: 12px 16px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(8, 10, 28, 0.14), rgba(8, 10, 28, 0.58)),
    radial-gradient(circle at top left, rgba(175, 80, 236, 0.14), transparent 40%),
    radial-gradient(circle at top right, rgba(85, 235, 175, 0.1), transparent 36%);
  backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.share-site-footer-inner {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.share-site-footer-top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}

.share-site-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.share-site-footer-brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, rgba(175, 80, 236, 0.18), rgba(85, 235, 175, 0.10)),
    rgba(15, 18, 45, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
  flex: 0 0 auto;
}

.share-site-footer-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.share-site-footer-title {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.1;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.015em;
}

.share-site-footer-bottom {
  width: 100%;
  display: flex;
  justify-content: center;
}

.share-site-footer-copy {
  margin: 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.76rem;
  line-height: 1.3;
  letter-spacing: 0.01em;
  text-align: center;
}

.share-site-footer-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
}

.share-site-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 999px;
  text-decoration: none;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.share-site-link:hover,
.share-site-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(175, 80, 236, 0.46);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(175, 80, 236, 0.16) inset;
}

.share-site-link-primary {
  background: linear-gradient(135deg, rgba(175, 80, 236, 0.95), rgba(132, 92, 255, 0.95));
  border-color: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow:
    0 8px 22px rgba(122, 66, 220, 0.32),
    0 0 16px rgba(175, 80, 236, 0.16);
}

.share-site-link-primary:hover,
.share-site-link-primary:focus-visible {
  background: linear-gradient(135deg, rgba(186, 96, 245, 0.98), rgba(145, 104, 255, 0.98));
  border-color: rgba(255, 255, 255, 0.18);
}

.share-site-link-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  opacity: 0.95;
}

.share-site-link span {
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.share-site-link small {
  font-size: 0.78rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.68);
  margin-left: 2px;
}

@media (max-width: 900px) {
  .share-site-footer {
    padding: 11px 12px 9px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 4%, #000 96%, transparent 100%);
  }

  .share-site-footer-top {
    gap: 8px;
  }

  .share-site-footer-actions {
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .share-site-footer-brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 10px;
  }

  .share-site-link {
    min-height: 32px;
    padding: 6px 9px;
  }

  .share-site-link span {
    font-size: 0.72rem;
  }

  .share-site-footer-copy {
    font-size: 0.72rem;
  }
}

.customize-toggle {
  position: fixed;
  right: 18px;
  top: 16px;
  z-index: 6;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(14, 17, 40, 0.78);
  color: #fff;
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.custom-panel {
  position: relative;
  width: min(320px, 100%);
  max-height: min(86vh, 780px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(16, 18, 40, 0.94);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 5;
  padding: 12px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-header h2 {
  margin: 0;
  font-size: 16px;
}

.panel-close {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.panel-group {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.field-label {
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.field-color,
.field-select,
.field-range {
  width: 100%;
}

.field-color {
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.field-select {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 10px 12px;
  font: inherit;
}

.field-range {
  accent-color: var(--accent0);
}

.panel-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.panel-btn {
  text-align: center;
  padding: 10px 12px;
}

.rain-item {
  position: absolute;
  top: -40px;
  font-size: 14px;
  color: rgba(135, 255, 201, 0.88);
  text-shadow: 0 0 12px rgba(58, 236, 176, 0.46);
  user-select: none;
  animation-name: rainFall;
  animation-timing-function: linear;
}

.rain-item-svg {
  line-height: 0;
}

.rain-item-svg svg {
  display: block;
  width: 1em;
  height: 1em;
  overflow: visible;
  filter: drop-shadow(0 0 12px rgba(58, 236, 176, 0.42));
}

.rain-item-confetti {
  width: 0;
  height: 0;
  text-shadow: none;
}

.rain-confetti-piece {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform-origin: center;
  animation: shareConfettiTwist 1.05s ease-in-out infinite alternate;
  transform:
    translate(calc(-50% + var(--piece-x, 0px)), calc(-50% + var(--piece-y, 0px)))
    rotate(var(--piece-rot, 0deg))
    scale(var(--piece-scale, 1));
}

@keyframes shareConfettiTwist {
  0% {
    transform:
      translate(calc(-50% + var(--piece-x, 0px)), calc(-50% + var(--piece-y, 0px)))
      rotate(var(--piece-rot, 0deg))
      scale(calc(var(--piece-scale, 1) * 0.92));
  }

  100% {
    transform:
      translate(calc(-50% + var(--piece-x, 0px)), calc(-50% + var(--piece-y, 0px)))
      rotate(calc(var(--piece-rot, 0deg) + 180deg))
      scale(calc(var(--piece-scale, 1) * 1.04));
  }
}

@keyframes rainFall {
  0% {
    transform: translate3d(0, -24px, 0) rotate(0deg);
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  100% {
    transform: translate3d(var(--dx, 0px), 115vh, 0) rotate(420deg);
    opacity: 0;
  }
}

@media (max-width: 940px) {
  .page {
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 62px;
  }

  .event-layout {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 16px;
  }

  .right {
    position: static;
    top: auto;
    height: auto;
  }

  .right .media-wrap {
    position: static;
    top: auto;
  }

  .custom-panel {
    width: min(760px, 100%);
  }

  .card-shell,
  .panel-open .card-shell {
    transform: scale(1);
  }
}

@media (max-width: 560px) {
  .event-layout {
    padding: 16px;
    gap: 14px;
  }

  .event-name {
    font-size: clamp(24px, 8.2vw, 34px);
  }

  .when,
  .event-desc {
    font-size: 15px;
  }

  .share-broadcaster-avatar-wrap {
    width: 58px;
    height: 58px;
  }

  .share-broadcaster-name {
    font-size: clamp(18px, 6.2vw, 24px);
  }

  .share-broadcaster-clips-grid {
    grid-template-columns: 1fr;
  }

  .vote-row {
    padding: 15px 11px 10px;
  }

  .ss-card--votePolish .vote-row {
    padding: 13px 11px 10px;
  }

  .vote-amount-chip {
    right: 10px;
    top: -10px;
  }

  .votes,
  .actions {
    padding-left: 16px;
    padding-right: 16px;
  }

  .actions {
    flex-direction: column;
  }

  #mediaGoingChip.media-chip-bottom-right {
    min-height: 32px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .ss-card--votePolish .vote-state-row {
    gap: 8px;
  }

  .ss-card--votePolish .vote-state-meta {
    font-size: 11px;
  }

  .ss-avatar {
    width: 18px;
    height: 18px;
  }

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

  .customize-toggle {
    right: 10px;
    top: 8px;
  }

  .panel-actions {
    grid-template-columns: 1fr;
  }

}

@media (prefers-reduced-motion: reduce) {

  .left>*,
  .right .media-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .card,
  .vote-row,
  .btn,
  .media-wrap,
  .event-image,
  .chip {
    transition: none;
  }

  .ss-card--votePolish .vote-state-pill,
  .ss-card--votePolish .vote-row.is-leading-pulse,
  .ss-card--votePolish .vote-state-pill::after {
    animation: none;
  }

  #mediaGoingChip.media-chip-bottom-right::before {
    animation: none;
  }

  .chip-countdown-flare::after {
    animation: none;
  }
}


/* Low-vote state: keep rows tight and avoid looking “empty” */
.ss-card--votePolish .vote-row.is-low-votes {
  padding-bottom: 10px;
}

/* Placeholder fill when total votes == 0 */
.vote-fill.is-placeholder {
  opacity: 0.28;
  filter: saturate(0.8) brightness(0.95);
}

/* When percent is hidden, don’t leave awkward spacing */
.ss-card--votePolish .vote-score {
  gap: 8px;
}

.vote-avatar-stack-inline {
  margin-top: 0;
  min-height: 0;
  margin-left: 10px;
  flex: 0 0 auto;
}

/* Make top row able to fit: label, avatars, score */
.vote-row-top {
  align-items: center;
}


/* If the row gets tight, allow label to shrink first */
.vote-label {
  min-width: 0;
}

.vote-label-text {
  min-width: 0;
}

/* Mobile: move avatar stack to its own line under the bar */
@media (max-width: 560px) {
  .vote-avatar-stack-inline {
    margin-left: 0;
    margin-top: 6px;
    order: 3;
    /* after bar if needed */
    width: 100%;
  }

  .vote-row-top {
    flex-wrap: wrap;
    gap: 8px;
  }
}


/* Ensure left side can shrink and right side never gets pushed */
.vote-row-top {
  min-width: 0;
}

.vote-label {
  min-width: 0;
  flex: 1 1 auto;
}

/* Title should ellipsis and not force layout wider */
.vote-label-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 auto;
}

/* Avatar stack: fixed-ish, never forces overflow */
.vote-avatar-stack-inline {
  flex: 0 0 auto;
  margin-left: 10px;
  max-width: 88px;
  /* ~3 avatars + +N fits */
  overflow: hidden;
  /* prevents long +999 from expanding */
}

/* Keep right side stable */
.vote-score {
  flex: 0 0 auto;
  white-space: nowrap;
}

.vote-label {
  min-width: 0;
  flex: 1 1 auto;
  justify-content: flex-start;
}

/* make the inline stack not shrink to 0 in tight layouts */
.vote-avatar-stack-inline {
  flex: 0 0 auto;
}

.ss-avatar-total {
  max-width: 30px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* --- NEW CSS: avatars pinned to top-right of the chip and stacked outward --- */

/* Ensure row can show top floating elements */
.ss-card--votePolish .vote-row {
  position: relative;
  overflow: visible;
}

/* This wraps chip + avatars and pins them together */
.ss-card--votePolish .vote-badge-wrap {
  position: absolute;
  top: -11px;
  right: 12px;
  z-index: 7;

  display: inline-flex;
  align-items: flex-start;
  gap: 6px;

  pointer-events: auto;
}

/* Chip inside the badge wrap should behave like a chip (no absolute) */
.ss-card--votePolish .vote-badge-wrap .vote-amount-chip {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
}

/* Avatar stack sits on the top-right “corner” of the chip */
.ss-card--votePolish .vote-avatar-stack-onChip {
  align-self: flex-start;
  margin: 0;
  min-height: 0;

  /* slight overlap onto the chip */
  transform: translateX(-6px) translateY(-7px);
}

/* Smaller avatars for this corner stack */
.ss-card--votePolish .vote-avatar-stack-onChip .ss-avatar {
  width: 18px;
  height: 18px;
  margin-left: -6px;
  /* overlap each other */
  border-width: 2px;
}

/* Keep +N small */
.ss-card--votePolish .vote-avatar-stack-onChip .ss-avatar-total {
  font-size: 10px;
  margin-left: 6px;
  white-space: nowrap;
}

.vote-avatar-stack-onChip {
  cursor: pointer;
}

.vote-avatar-stack-onChip:focus-visible {
  outline: 2px solid rgba(85, 235, 175, 0.92);
  outline-offset: 2px;
  border-radius: 999px;
}

/* Keep % on the right, underneath badge */
.ss-card--votePolish .vote-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  white-space: nowrap;
  padding-right: 0;
}

/* Trophy emoji centering fix */
.vote-rank-icon {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: 12px;
  transform: translateY(-0.5px);
}

.share-supporters-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
}

.share-supporters-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 14, 0.62);
  backdrop-filter: blur(2px);
}

.share-supporters-modal-dialog {
  position: relative;
  width: min(440px, calc(100vw - 26px));
  margin: 8vh auto 0;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: linear-gradient(180deg, rgba(27, 24, 46, 0.97), rgba(16, 14, 30, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.share-supporters-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.share-supporters-modal-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.15;
  color: #f7f3ff;
}

.share-supporters-modal-subtitle {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(226, 220, 246, 0.86);
}

.share-supporters-modal-close {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.share-supporters-modal-list {
  max-height: min(60vh, 420px);
  overflow: auto;
  padding: 4px 10px 10px;
}

.share-supporters-modal-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 7px 8px;
  border-radius: 10px;
  color: #f5f2ff;
}

.share-supporters-modal-row-going {
  grid-template-columns: 32px minmax(0, 1fr);
}

.share-supporters-modal-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

.share-supporters-modal-row-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.share-supporters-modal-avatar-shell {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.share-supporters-modal-fallback {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.share-supporters-modal-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
}

.share-supporters-modal-amount {
  font-size: 13px;
  font-weight: 700;
  color: rgba(218, 249, 235, 0.96);
}

.share-supporters-modal-empty {
  padding: 16px;
  text-align: center;
  color: rgba(220, 214, 246, 0.86);
  font-size: 13px;
}

/* Mobile: keep badge inside */
@media (max-width: 560px) {
  .ss-card--votePolish .vote-badge-wrap {
    right: 10px;
  }
}
