:root {
  --bg: #000000;
  --bg-1: #0a0a0a;
  --bg-2: #141414;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f5f2ea;
  --ink-dim: rgba(245, 242, 234, 0.62);
  --ink-mute: rgba(245, 242, 234, 0.4);
  --mts-yellow: #ffd60a;
  --mts-red: #e63946;
  --mts-blue: #1d4ed8;
  --mts-blue-bright: #2d5bff;
  --font-sans: "Geist", "Sohne", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-feature-settings: "ss01", "ss02", "cv11";
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

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

.stage-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #000;
  background-size: 42px 42px;
}

.stage-vignette {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.88), transparent 120px),
    linear-gradient(120deg, rgba(29, 78, 216, 0.1), transparent 34%, rgba(230, 57, 70, 0.08));
}

.stage-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 32px;
}

.aimts-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.aimts-mark {
  display: flex;
  align-items: center;
  width: 78px;
  height: 32px;
  flex: 0 0 auto;
}

.aimts-disc {
  display: block;
  width: 32px;
  height: 32px;
  margin-left: -9px;
  border: 1px solid rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.28);
}

.aimts-disc:first-child {
  margin-left: 0;
}

.aimts-disc-yellow {
  background: repeating-linear-gradient(to bottom, var(--mts-yellow) 0 7px, #050505 7px 9px);
}

.aimts-disc-red {
  background: repeating-linear-gradient(to bottom, #ff2735 0 7px, #050505 7px 9px);
}

.aimts-disc-blue {
  background: repeating-linear-gradient(to bottom, #1768ff 0 7px, #050505 7px 9px);
}

.aimts-word {
  color: var(--ink);
  font-family: "Arial Black", "Arial Rounded MT Bold", var(--font-sans);
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.82;
  text-transform: uppercase;
  white-space: nowrap;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 6px 12px;
  border-radius: 3px;
  background: var(--mts-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.live-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: aimts-pulse 1.6s ease-in-out infinite;
}

.stage-main {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 36px 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.stage-topbar {
  display: block;
}

.stage-stream,
.stage-engage {
  min-width: 0;
}

.show-floor {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1.32fr);
  gap: 36px;
  align-items: start;
}

.broadcast-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

.mux-player {
  width: 100%;
  height: 100%;
  display: none;
  background: #000;
  object-fit: cover;
}

.broadcast-frame.has-video .mux-player {
  display: block;
}

.broadcast-poster {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.82)),
    linear-gradient(135deg, rgba(29, 78, 216, 0.28), rgba(0, 0, 0, 0.72) 55%, rgba(230, 57, 70, 0.22));
}

.broadcast-poster.hidden {
  display: none;
}

.poster-topline,
.poster-copy {
  position: relative;
  z-index: 2;
}

.poster-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.poster-chip,
.poster-handle,
.viewer-count,
.digest-meta,
.sponsors-label,
.source-source,
.source-meta {
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.poster-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.poster-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mts-red);
  box-shadow: 0 0 14px rgba(230, 57, 70, 0.86);
}

.poster-handle {
  color: var(--ink-dim);
  font-size: 11px;
  letter-spacing: 0;
}

.poster-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.poster-play {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.poster-play svg {
  width: 36px;
  height: 36px;
  fill: #000;
}

.poster-kicker {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.poster-copy {
  max-width: 780px;
}

.poster-copy h1 {
  margin: 0;
  color: var(--ink);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.75);
  text-wrap: balance;
}

.poster-copy p {
  max-width: 720px;
  margin: 12px 0 0;
  color: rgba(245, 242, 234, 0.85);
  font-size: 15px;
  line-height: 1.45;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8);
}

.sound-button {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.stage-engage {
  position: relative;
  min-height: 560px;
}

.live-chat {
  position: sticky;
  top: 24px;
  height: min(620px, calc(100vh - 48px));
  min-height: 420px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(9, 9, 9, 0.95), rgba(0, 0, 0, 0.92));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.chat-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--mts-red);
  box-shadow: 0 0 16px rgba(230, 57, 70, 0.8);
  animation: aimts-pulse 1.6s ease-in-out infinite;
}

.viewer-count {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(255, 214, 10, 0.42);
  border-radius: 3px;
  background: rgba(255, 214, 10, 0.1);
  color: var(--mts-yellow);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.comments-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px 8px 12px 0;
  background: rgba(0, 0, 0, 0.28);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.comments-feed::-webkit-scrollbar,
.source-feed::-webkit-scrollbar {
  width: 6px;
}

.comments-feed::-webkit-scrollbar-thumb,
.source-feed::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
}

.comment-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 0 8px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 214, 10, 0.1);
  color: var(--mts-yellow);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

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

.comment-body strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.comment-body p {
  margin: 0;
  color: rgba(245, 242, 234, 0.78);
  font-size: 13px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.comment-empty {
  margin: auto;
  padding: 24px 14px;
  color: var(--ink-mute);
  font-size: 13px;
  text-align: center;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(7, 7, 7, 0.88);
}

.comment-form input,
.comment-form button {
  min-width: 0;
  min-height: 38px;
  border-radius: 5px;
}

.comment-form input {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
  color: var(--ink);
  padding: 0 10px;
  font-size: 13px;
  outline: none;
}

.comment-form input:focus {
  border-color: rgba(255, 214, 10, 0.62);
  background: rgba(255, 214, 10, 0.08);
}

.comment-form button {
  border: 1px solid rgba(255, 214, 10, 0.82);
  border-radius: 4px;
  background: var(--mts-yellow);
  color: #000;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sponsors {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(90deg, rgba(29, 78, 216, 0.18), rgba(0, 0, 0, 0.72) 28%, rgba(230, 57, 70, 0.22) 78%, rgba(0, 0, 0, 0.78)),
    rgba(0, 0, 0, 0.6);
}

.sponsors::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 0 1px, transparent 1px 4px);
  opacity: 0.22;
}

.sponsors::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), transparent 20%, rgba(255, 255, 255, 0.08) 50%, transparent 80%, rgba(0, 0, 0, 0.72));
}

.sponsors-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding-top: 4px;
  color: rgba(245, 242, 234, 0.7);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}

.sponsors-viewport {
  position: relative;
  z-index: 1;
  overflow: hidden;
  min-height: 132px;
  display: flex;
  align-items: center;
  padding: 14px 0 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 11%, #000 89%, transparent 100%);
}

.sponsors-track {
  display: flex;
  align-items: center;
  gap: 86px;
  width: max-content;
  animation: aimts-ticker 45s linear infinite;
  will-change: transform;
}

.sponsor-tile {
  --focus-scale: 0.88;
  --focus-opacity: 0.34;
  --focus-brightness: 0.7;
  flex: 0 0 280px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 86px;
  color: rgba(245, 242, 234, 0.62);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0;
  text-align: center;
  opacity: var(--focus-opacity);
  transform: scale(var(--focus-scale));
  transform-origin: center;
  filter: brightness(var(--focus-brightness));
  text-shadow: 0 0 22px rgba(255, 255, 255, 0.08);
  transition: color 140ms linear;
  white-space: nowrap;
}

.sponsor-tile:nth-child(5n + 1) {
  color: var(--mts-yellow);
}

.sponsor-tile:nth-child(5n + 2) {
  color: rgba(255, 255, 255, 0.82);
}

.sponsor-tile:nth-child(5n + 3) {
  color: #9fb6ff;
}

.sponsor-tile:nth-child(5n + 4) {
  color: #ff9aa2;
}

.sponsor-tile.is-focused {
  color: #fff;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.22);
}

.source-digest {
  display: flex;
  flex-direction: column;
  gap: 22px;
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

.digest-sidebar {
  position: static;
}

.digest-sidebar h2 {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.35em;
  color: var(--ink);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.digest-sidebar h2 span {
  color: var(--mts-yellow);
}

.digest-rail {
  position: relative;
  min-width: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  padding-left: 22px;
}

.digest-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  color: var(--ink-mute);
  font-size: 11px;
  letter-spacing: 0;
}

.source-feed {
  max-height: 720px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-right: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.source-row {
  position: relative;
}

.source-row::before {
  content: "";
  position: absolute;
  left: -22px;
  top: 14px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: translateX(-50%);
}

.source-row:first-child::before,
.source-row.is-current::before {
  width: 8px;
  height: 8px;
  background: var(--mts-red);
  box-shadow: 0 0 16px rgba(255, 45, 45, 0.55);
}

.source-chip {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 2px;
  background: rgba(255, 214, 10, 0.13);
  color: var(--mts-yellow);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-row.is-current .source-chip {
  background: rgba(255, 45, 45, 0.14);
  color: #ff6b63;
}

.source-row.is-up-next .source-chip {
  background: rgba(31, 111, 235, 0.14);
  color: var(--mts-blue-bright);
}

.source-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.source-source {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

.source-meta {
  color: rgba(245, 242, 234, 0.4);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.source-title {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  color: rgba(245, 242, 234, 0.92);
  font-size: 15px;
  line-height: 1.5;
  text-wrap: pretty;
}

.source-title a {
  color: inherit;
}

.source-title a:hover {
  color: var(--mts-blue-bright);
}

.source-angle {
  margin: 10px 0 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.45;
}

.source-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

.source-open {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(245, 242, 234, 0.7);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.source-open:hover {
  border-color: var(--mts-yellow);
  color: var(--ink);
}

.source-empty {
  padding: 18px 0;
  color: var(--ink-dim);
  font-size: 14px;
}

@keyframes aimts-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.92);
  }
}

@keyframes aimts-ticker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.3333%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .sponsors-track,
  .live-badge::before,
  .chat-dot {
    animation: none;
  }
}

@media (max-width: 1024px) {
  .show-floor {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
    gap: 34px;
  }

  .stage-engage {
    min-height: 420px;
  }

  .live-chat {
    position: static;
    height: 420px;
    max-height: none;
  }
}

@media (max-width: 820px) {
  .stage-header {
    padding: 14px 16px;
  }

  .stage-main {
    gap: 22px;
    padding: 10px 16px 40px;
  }

  .aimts-logo {
    gap: 10px;
  }

  .aimts-mark {
    width: 68px;
    height: 28px;
  }

  .aimts-disc {
    width: 28px;
    height: 28px;
    margin-left: -8px;
    background-size: auto;
  }

  .aimts-word {
    font-size: 28px;
  }

  .broadcast-poster {
    padding: 18px;
  }

  .poster-copy h1 {
    font-size: 26px;
    letter-spacing: 0;
  }

  .poster-copy p {
    font-size: 13px;
  }

  .source-digest {
    padding: 0;
  }

  .digest-rail {
    padding-left: 18px;
  }

  .source-row::before {
    left: -18px;
  }
}

@media (max-width: 560px) {
  .aimts-word {
    font-size: 24px;
  }

  .aimts-mark {
    width: 58px;
    height: 24px;
  }

  .aimts-disc {
    width: 24px;
    height: 24px;
    margin-left: -7px;
  }

  .live-badge {
    min-height: 28px;
    padding: 5px 8px;
    font-size: 10px;
  }

  .broadcast-frame {
    aspect-ratio: auto;
    min-height: 320px;
  }

  .poster-center {
    gap: 12px;
  }

  .poster-play {
    width: 68px;
    height: 68px;
  }

  .poster-play svg {
    width: 28px;
    height: 28px;
  }

  .poster-copy h1 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 22px;
    line-height: 1.12;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .poster-copy p {
    display: none;
  }

  .sponsors-viewport {
    min-height: 104px;
    padding: 8px 0 16px;
  }

  .sponsor-tile {
    flex-basis: 214px;
    height: 68px;
    font-size: 18px;
  }

  .sponsors-track {
    gap: 54px;
  }
}
