:root {
  --bg: #04070f;
  --bg-elevated: #070d19;
  --panel: rgba(10, 17, 31, 0.84);
  --panel-solid: #0b1221;
  --panel-soft: rgba(15, 24, 42, 0.66);
  --line: rgba(127, 158, 211, 0.14);
  --line-strong: rgba(127, 158, 211, 0.25);
  --text: #f2f6ff;
  --text-soft: #c9d4e8;
  --muted: #8897b4;
  --muted-2: #62708a;
  --blue: #4f86ff;
  --blue-bright: #72a2ff;
  --cyan: #63e6ff;
  --green: #42e3a3;
  --red: #ff637f;
  --amber: #ffc75a;
  --violet: #9f8cff;
  --radius-lg: 22px;
  --radius-md: 15px;
  --radius-sm: 10px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
  --font-sans: "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", system-ui, sans-serif;
  --font-mono: "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(68, 106, 255, 0.08), transparent 38rem),
    linear-gradient(180deg, #050913 0%, #04070f 44%, #050912 100%);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
}

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

img,
svg {
  display: block;
}

::selection {
  color: #fff;
  background: rgba(79, 134, 255, 0.6);
}

::-webkit-scrollbar {
  width: 10px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.025);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(119, 146, 195, 0.34);
  background-clip: content-box;
}

.ambient-grid {
  position: fixed;
  z-index: -3;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(112, 145, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(112, 145, 200, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 74%);
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  z-index: -2;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-glow-a {
  top: 80px;
  left: -210px;
  background: #2e64ff;
}

.ambient-glow-b {
  top: 280px;
  right: -220px;
  background: #1cc9ff;
}

.shell {
  width: min(1480px, calc(100% - 48px));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(124, 155, 207, 0.1);
  background: linear-gradient(180deg, rgba(4, 8, 17, 0.94), rgba(4, 8, 17, 0.72));
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  border-radius: var(--radius-sm);
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(104, 155, 255, 0.28);
  border-radius: 50%;
  color: var(--cyan);
  background: radial-gradient(circle, rgba(47, 110, 255, 0.2), rgba(7, 14, 28, 0.4));
  box-shadow:
    inset 0 0 18px rgba(60, 149, 255, 0.12),
    0 0 26px rgba(74, 132, 255, 0.12);
}

.brand-mark svg {
  width: 32px;
  height: 32px;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-copy strong {
  color: #edf3ff;
  font-size: 17px;
  font-weight: 720;
  letter-spacing: 0.14em;
}

.brand-copy strong i {
  color: var(--cyan);
  font-style: normal;
}

.brand-copy small {
  color: var(--muted-2);
  font-size: 11px;
  letter-spacing: 0.1em;
}

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

.translate-button {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #8e9bb3;
  background: rgba(10, 17, 31, 0.74);
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.translate-button svg {
  width: 17px;
  height: 17px;
}

.translate-button:hover {
  border-color: rgba(104, 160, 255, 0.32);
  color: #d8e7ff;
  background: rgba(27, 45, 76, 0.62);
}

.translate-button.is-active {
  border-color: rgba(92, 226, 255, 0.28);
  color: #bcefff;
  background: rgba(20, 94, 125, 0.18);
}

.translate-button.is-loading svg {
  animation: status-pulse 1.1s ease-in-out infinite;
}

.translate-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.connection-pill {
  display: inline-flex;
  min-height: 37px;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(10, 17, 31, 0.74);
  font-size: 13px;
  white-space: nowrap;
}

.status-orb {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(255, 199, 90, 0.1);
}

.connection-pill[data-state="streaming"] {
  border-color: rgba(66, 227, 163, 0.25);
  color: #b7f7db;
}

.connection-pill[data-state="streaming"] .status-orb {
  background: var(--green);
  box-shadow:
    0 0 0 4px rgba(66, 227, 163, 0.1),
    0 0 14px rgba(66, 227, 163, 0.55);
  animation: status-pulse 2.2s ease-in-out infinite;
}

.connection-pill[data-state="offline"] {
  border-color: rgba(255, 99, 127, 0.22);
  color: #ffc0cb;
}

.connection-pill[data-state="offline"] .status-orb {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(255, 99, 127, 0.1);
}

@keyframes status-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0.72);
    opacity: 0.62;
  }
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--muted);
  background: rgba(10, 17, 31, 0.72);
  cursor: pointer;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.icon-button svg {
  width: 19px;
  height: 19px;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  background: rgba(20, 34, 58, 0.86);
}

.icon-button.is-spinning svg {
  animation: spin 800ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
  gap: clamp(30px, 5vw, 84px);
  align-items: center;
  padding: 72px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid rgba(98, 219, 255, 0.16);
  border-radius: 999px;
  color: #9eeeff;
  background: rgba(36, 160, 204, 0.055);
  font-size: 12px;
  letter-spacing: 0.13em;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(99, 230, 255, 0.8);
}

.hero h1 {
  margin: 24px 0 20px;
  color: #f5f8ff;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 740;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #f4f8ff 3%, #8cb5ff 46%, #61ebff 92%);
  background-clip: text;
  -webkit-background-clip: text;
  font-style: normal;
}

.hero-lead {
  max-width: 690px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-badges span {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #9fadc7;
  background: rgba(13, 22, 39, 0.58);
  font-size: 12px;
  letter-spacing: 0.04em;
}

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

.stat-card {
  min-height: 128px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(20, 31, 52, 0.76), rgba(8, 14, 26, 0.88)),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.025);
}

.stat-card-primary {
  grid-column: 1 / -1;
  min-height: 150px;
  background:
    radial-gradient(circle at 100% 0, rgba(88, 140, 255, 0.16), transparent 60%),
    linear-gradient(145deg, rgba(24, 39, 68, 0.92), rgba(8, 14, 26, 0.94));
}

.stat-label {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.1em;
}

.stat-card strong {
  display: block;
  margin-top: 15px;
  color: #eff5ff;
  font-family: var(--font-mono);
  font-size: clamp(26px, 3vw, 39px);
  font-weight: 540;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.stat-card-primary strong {
  font-size: clamp(38px, 5vw, 58px);
}

.stat-card small {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
}

.dashboard {
  margin-bottom: 64px;
}

.filter-panel {
  position: relative;
  z-index: 5;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(8, 14, 26, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.filter-topline,
.filter-bottomline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.filter-topline {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(119, 148, 199, 0.1);
}

.filter-bottomline {
  gap: 24px;
  padding-top: 12px;
}

.time-tabs {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid rgba(117, 147, 198, 0.12);
  border-radius: 12px;
  background: rgba(4, 9, 18, 0.72);
}

.time-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  gap: 7px;
  padding: 0 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 13.5px;
  cursor: pointer;
  transition:
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.time-tab:hover {
  color: var(--text-soft);
  background: rgba(81, 113, 172, 0.09);
}

.time-tab.is-active {
  color: #f5f8ff;
  background: linear-gradient(135deg, rgba(55, 101, 214, 0.86), rgba(36, 72, 158, 0.8));
  box-shadow:
    inset 0 0 0 1px rgba(166, 198, 255, 0.18),
    0 5px 18px rgba(26, 68, 173, 0.2);
}

.time-tab-count {
  min-width: 18px;
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: 0.68;
}

.filter-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  width: clamp(210px, 26vw, 360px);
  height: 45px;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--muted-2);
  background: rgba(5, 10, 19, 0.7);
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(94, 151, 255, 0.46);
  background: rgba(8, 15, 28, 0.9);
}

.search-box svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 14.5px;
}

.search-box input::placeholder {
  color: #58657d;
}

.search-box kbd {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(120, 146, 190, 0.2);
  border-radius: 5px;
  color: #61708c;
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--font-mono);
  font-size: 11px;
}

.select-wrap {
  position: relative;
  display: flex;
  min-width: 134px;
  height: 45px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(5, 10, 19, 0.7);
}

.volume-select {
  min-width: 140px;
}

.probability-select {
  min-width: 140px;
}

.select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 34px 0 12px;
  border: 0;
  outline: 0;
  appearance: none;
  color: var(--text-soft);
  background: transparent;
  font-size: 13.5px;
  cursor: pointer;
}

.select-wrap select option {
  color: var(--text);
  background: #0b1221;
}

.select-wrap svg {
  position: absolute;
  right: 10px;
  width: 16px;
  height: 16px;
  color: var(--muted-2);
  pointer-events: none;
}

.exclude-filter {
  position: relative;
  min-width: 148px;
}

.exclude-summary {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text-soft);
  background: rgba(5, 10, 19, 0.7);
  font-size: 13px;
  cursor: pointer;
  list-style: none;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.exclude-summary::-webkit-details-marker {
  display: none;
}

.exclude-summary::marker {
  content: "";
}

.exclude-summary svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--muted-2);
  transition: transform 160ms ease;
}

.exclude-summary:hover {
  border-color: var(--line-strong);
  background: rgba(13, 23, 41, 0.86);
}

.exclude-filter[open] .exclude-summary {
  border-color: rgba(94, 151, 255, 0.4);
  background: rgba(13, 23, 41, 0.94);
}

.exclude-filter[open] .exclude-summary svg {
  transform: rotate(180deg);
}

.exclude-filter.has-selection .exclude-summary {
  border-color: rgba(89, 149, 255, 0.32);
  color: #dce9ff;
  background: rgba(46, 89, 176, 0.2);
}

.exclude-menu {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  width: min(280px, calc(100vw - 32px));
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(8, 15, 28, 0.98);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(16px);
}

.exclude-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1px 3px 9px;
  color: #aab8cf;
  font-size: 11px;
}

.exclude-menu-head strong {
  font-weight: 600;
}

.exclude-menu-head button {
  padding: 0;
  border: 0;
  color: #7fa4e6;
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.exclude-menu-head button:hover {
  color: #c2d9ff;
  text-decoration: underline;
}

.exclude-menu-head button:disabled {
  opacity: 0.4;
  cursor: default;
  text-decoration: none;
}

.exclude-options {
  display: grid;
  max-height: 260px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px 8px;
  overflow-y: auto;
}

.exclude-option {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border-radius: 7px;
  color: #93a1b9;
  font-size: 11px;
  cursor: pointer;
}

.exclude-option:hover {
  color: #e0eaff;
  background: rgba(64, 103, 170, 0.14);
}

.exclude-option input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--blue);
}

.exclude-option.is-disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.category-group {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
}

.filter-label {
  flex: 0 0 auto;
  color: #677590;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.category-tabs {
  display: flex;
  min-width: 0;
  flex: 1;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.category-tab {
  display: inline-flex;
  min-height: 34px;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #7f8ca5;
  background: transparent;
  font-size: 12.5px;
  cursor: pointer;
  transition:
    color 150ms ease,
    border-color 150ms ease,
    background 150ms ease;
}

.category-tab:hover {
  color: var(--text-soft);
  border-color: var(--line);
  background: rgba(32, 54, 91, 0.18);
}

.category-tab.is-active {
  border-color: rgba(89, 149, 255, 0.3);
  color: #dce9ff;
  background: rgba(46, 89, 176, 0.24);
}

.category-tab-count {
  color: currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px;
  opacity: 0.55;
}

.price-mode-group {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.price-modes {
  display: flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid rgba(117, 147, 198, 0.1);
  border-radius: 9px;
  background: rgba(4, 9, 18, 0.56);
}

.price-mode {
  min-height: 31px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #6f7d96;
  background: transparent;
  font-size: 11.5px;
  cursor: pointer;
}

.price-mode:hover {
  color: var(--text-soft);
}

.price-mode.is-active {
  color: #e5efff;
  background: rgba(68, 109, 190, 0.34);
}

.notice-stack {
  display: grid;
  gap: 8px;
  margin: 14px 0;
}

.notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 13px;
  border: 1px solid rgba(255, 199, 90, 0.18);
  border-radius: 10px;
  color: #d8c899;
  background: rgba(111, 78, 15, 0.11);
  font-size: 13px;
}

.notice[data-tone="error"] {
  border-color: rgba(255, 99, 127, 0.2);
  color: #ffc1cc;
  background: rgba(120, 25, 46, 0.12);
}

.notice button {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  color: currentColor;
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

.results-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 5px 15px;
}

.results-kicker {
  margin: 0 0 3px;
  color: #53637f;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.results-title-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.results-title-row h2 {
  margin: 0;
  font-size: 23px;
  font-weight: 620;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.results-count {
  color: var(--muted-2);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.results-meta {
  color: #687690;
  font-size: 11.5px;
  text-align: right;
}

.list-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr) 152px;
  gap: 28px;
  padding: 12px 19px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: #5f6d85;
  font-size: 11px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.list-head span:nth-child(3) {
  text-align: right;
}

.event-list {
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.event-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(121, 152, 204, 0.13);
  border-radius: 14px;
  background:
    linear-gradient(115deg, rgba(16, 26, 45, 0.78), rgba(7, 13, 24, 0.9)),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.02);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.event-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 2px;
  content: "";
  background: linear-gradient(to bottom, rgba(91, 145, 255, 0.8), transparent 72%);
  opacity: 0;
  transition: opacity 180ms ease;
}

.event-card:hover {
  border-color: rgba(108, 155, 235, 0.26);
  background:
    linear-gradient(115deg, rgba(19, 32, 56, 0.86), rgba(8, 15, 28, 0.94)),
    var(--panel);
}

.event-card:hover::before,
.event-card.is-expanded::before {
  opacity: 1;
}

.event-card.is-expanded {
  border-color: rgba(99, 151, 241, 0.31);
}

.event-card-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr) 152px;
  gap: 28px;
  align-items: center;
  padding: 19px 21px;
}

.event-identity {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  gap: 13px;
}

.event-icon-wrap {
  position: relative;
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(119, 155, 216, 0.18);
  border-radius: 10px;
  color: #9ac5ff;
  background:
    radial-gradient(circle at 30% 20%, rgba(97, 148, 255, 0.22), transparent 60%),
    #0c1729;
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 650;
}

.event-icon-wrap img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-icon-fallback {
  user-select: none;
}

.event-copy {
  min-width: 0;
}

.event-title {
  display: -webkit-box;
  overflow: hidden;
  color: #e7edf9;
  font-size: 16px;
  font-weight: 590;
  letter-spacing: -0.01em;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.event-title:hover {
  color: #fff;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 7px;
  border: 1px solid rgba(104, 152, 232, 0.14);
  border-radius: 5px;
  color: #91a8cc;
  background: rgba(55, 88, 144, 0.1);
  font-size: 10px;
}

.event-market-count {
  color: #596880;
  font-family: var(--font-mono);
  font-size: 10px;
}

.event-volume {
  color: #7f92ae;
}

.event-lead-prob {
  color: #9ebce8;
}

.event-price {
  padding: 5px 10px;
  border: 1px solid rgba(94, 218, 195, 0.18);
  border-radius: 5px;
  color: #8fe9d5;
  background: rgba(31, 125, 107, 0.12);
  font-size: 16px;
  font-weight: 760;
  line-height: 1.35;
}

.event-price.is-live {
  border-color: rgba(94, 218, 195, 0.3);
}

.event-price.is-up {
  color: var(--green);
}

.event-price.is-down {
  color: var(--red);
}

.event-probabilities {
  display: grid;
  gap: 10px;
}

.outcome-row {
  min-width: 0;
}

.outcome-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.outcome-label {
  overflow: hidden;
  color: #a9b5ca;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outcome-value-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}

.outcome-value {
  color: #f2f7ff;
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.outcome-source {
  color: #61708a;
  font-size: 9px;
}

.outcome-source.is-live {
  color: #6bdbc2;
}

.outcome-price-line {
  margin-top: 6px;
  color: #88a1c2;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
}

.outcome-bar-track {
  height: 4px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(129, 153, 196, 0.09);
}

.outcome-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #396ad8, #66dfff);
  box-shadow: 0 0 10px rgba(86, 199, 255, 0.2);
  transition:
    width 380ms cubic-bezier(0.2, 0.75, 0.25, 1),
    background 180ms ease;
}

.outcome-row.is-up .outcome-value {
  color: var(--green);
}

.outcome-row.is-down .outcome-value {
  color: var(--red);
}

.event-side {
  display: grid;
  justify-items: end;
  gap: 9px;
  border-left: 1px solid rgba(115, 143, 188, 0.09);
  padding-left: 18px;
  text-align: right;
}

.end-countdown {
  color: #b8c9e4;
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.end-countdown.is-soon {
  color: var(--amber);
}

.end-countdown.is-urgent {
  color: var(--red);
}

.end-date {
  color: #5d6b83;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
}

.event-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.expand-button,
.external-link {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  border: 1px solid rgba(113, 145, 197, 0.14);
  border-radius: 7px;
  color: #7787a2;
  background: rgba(9, 16, 29, 0.54);
  font-size: 10px;
  cursor: pointer;
}

.expand-button {
  padding: 0 8px;
}

.external-link {
  width: 28px;
  justify-content: center;
  padding: 0;
}

.expand-button:hover,
.external-link:hover {
  border-color: rgba(119, 167, 250, 0.3);
  color: #dce9ff;
  background: rgba(41, 72, 127, 0.18);
}

.expand-button svg,
.external-link svg {
  width: 13px;
  height: 13px;
}

.expand-button svg {
  transition: transform 170ms ease;
}

.event-card.is-expanded .expand-button svg {
  transform: rotate(180deg);
}

.event-detail {
  padding: 2px 19px 18px;
  border-top: 1px solid rgba(114, 145, 195, 0.11);
  animation: detail-in 180ms ease-out both;
}

@keyframes detail-in {
  from {
    transform: translateY(-3px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.event-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 1px 10px;
  color: #65738d;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.event-detail-head strong {
  color: #8c9ab2;
  font-weight: 500;
}

.detail-outcomes {
  display: grid;
  max-height: 430px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
  overflow-y: auto;
  padding: 2px 8px 2px 1px;
}

.detail-outcomes .outcome-row {
  padding: 10px 0;
  border-bottom: 1px solid rgba(112, 142, 190, 0.075);
}

.detail-outcomes .outcome-label {
  color: #b9c5d9;
  font-size: 13px;
}

.detail-outcomes .outcome-value {
  font-size: 15px;
}

.event-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  color: #5e6c84;
  font-size: 10px;
}

.event-footnote a {
  color: #83a7e4;
}

.event-footnote a:hover {
  color: #b7d1ff;
  text-decoration: underline;
}

.skeleton-list {
  display: grid;
  gap: 9px;
  padding-top: 10px;
}

.skeleton-card {
  display: grid;
  min-height: 96px;
  grid-template-columns: 42px minmax(0, 1fr) minmax(240px, 0.6fr);
  gap: 14px;
  align-items: center;
  padding: 17px 19px;
  border: 1px solid rgba(121, 152, 204, 0.1);
  border-radius: 14px;
  background: rgba(10, 17, 29, 0.62);
}

.skeleton-block {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(121, 152, 204, 0.085);
}

.skeleton-block::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(180, 207, 255, 0.07), transparent);
  transform: translateX(-100%);
  animation: shimmer 1.5s infinite;
}

.skeleton-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.skeleton-lines {
  display: grid;
  gap: 9px;
}

.skeleton-line {
  height: 10px;
}

.skeleton-line.short {
  width: 42%;
}

.skeleton-line.medium {
  width: 72%;
}

.skeleton-probs {
  display: grid;
  gap: 10px;
}

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

.state-panel {
  display: grid;
  min-height: 280px;
  place-items: center;
  padding: 42px 24px;
  border: 1px dashed rgba(117, 149, 200, 0.2);
  border-radius: 15px;
  background: rgba(9, 15, 27, 0.55);
  text-align: center;
}

.state-panel-inner {
  max-width: 520px;
}

.state-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  place-items: center;
  border: 1px solid rgba(101, 150, 236, 0.22);
  border-radius: 50%;
  color: #84aef6;
  background: rgba(34, 67, 123, 0.17);
}

.state-icon svg {
  width: 22px;
  height: 22px;
}

.state-panel h3 {
  margin: 0 0 8px;
  color: #dce6f8;
  font-size: 18px;
  font-weight: 600;
}

.state-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.primary-button {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 0 15px;
  border: 1px solid rgba(109, 163, 255, 0.38);
  border-radius: 8px;
  color: #e9f2ff;
  background: linear-gradient(135deg, rgba(55, 101, 214, 0.9), rgba(34, 70, 154, 0.9));
  font-size: 12.5px;
  cursor: pointer;
}

.primary-button:hover {
  border-color: rgba(156, 194, 255, 0.55);
  background: linear-gradient(135deg, rgba(68, 118, 236, 0.96), rgba(42, 83, 177, 0.95));
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 25px 0 5px;
}

.page-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 5px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8d9cb7;
  background: rgba(9, 16, 29, 0.7);
  font-size: 11.5px;
  cursor: pointer;
}

.page-button:hover:not(:disabled) {
  border-color: var(--line-strong);
  color: var(--text);
}

.page-button-primary {
  border-color: rgba(91, 144, 247, 0.27);
  color: #cfe0ff;
  background: rgba(44, 85, 169, 0.22);
}

.page-button:disabled {
  opacity: 0.34;
  cursor: default;
}

.page-button svg {
  width: 14px;
  height: 14px;
}

.page-status {
  color: #6e7d96;
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.site-footer {
  border-top: 1px solid rgba(117, 146, 195, 0.1);
  background: rgba(4, 8, 16, 0.68);
}

.footer-inner {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #596780;
  font-size: 11.5px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 16px;
}

.footer-links a:hover {
  color: #b7c9e6;
}

.footer-links span {
  color: #45516a;
  font-family: var(--font-mono);
}

.toast {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 11px 14px;
  border: 1px solid rgba(105, 153, 234, 0.28);
  border-radius: 10px;
  color: #d9e6fb;
  background: rgba(12, 23, 43, 0.96);
  box-shadow: var(--shadow);
  font-size: 12.5px;
}

.toast[data-tone="error"] {
  border-color: rgba(255, 99, 127, 0.28);
  color: #ffc1cc;
}

.noscript {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  left: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 99, 127, 0.3);
  border-radius: 10px;
  color: #ffd4dc;
  background: #201019;
  font-size: 14px;
  text-align: center;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(117, 170, 255, 0.85);
  outline-offset: 2px;
}

@media (max-width: 1220px) {
  .shell {
    width: min(100% - 36px, 1180px);
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 44px;
  }

  .filter-bottomline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .category-group,
  .price-mode-group {
    width: 100%;
  }

  .price-mode-group {
    justify-content: flex-end;
  }

  .event-card-inner,
  .list-head {
    grid-template-columns: minmax(0, 1.08fr) minmax(250px, 0.82fr) 140px;
    gap: 20px;
  }
}

@media (max-width: 1500px) {
  .filter-topline {
    flex-wrap: wrap;
  }

  .filter-actions {
    width: 100%;
  }

  .filter-actions .search-box {
    width: auto;
    flex: 1 1 280px;
  }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 56px 0 42px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stat-card-primary {
    grid-column: auto;
    min-height: 128px;
  }

  .stat-card-primary strong {
    font-size: clamp(30px, 5vw, 44px);
  }

  .filter-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-actions {
    justify-content: space-between;
  }

  .search-box,
  .filter-actions .search-box {
    width: 100%;
    flex: 0 0 45px;
  }

  .list-head {
    display: none;
  }

  .event-list {
    padding-top: 12px;
  }

  .event-card-inner {
    grid-template-columns: minmax(0, 1fr) 140px;
    gap: 15px 20px;
    align-items: start;
  }

  .event-probabilities {
    grid-column: 1 / -1;
    padding-top: 11px;
    border-top: 1px solid rgba(114, 145, 195, 0.1);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .event-side {
    grid-column: 2;
    grid-row: 1;
  }

  .detail-outcomes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .skeleton-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .skeleton-probs {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .header-actions {
    gap: 7px;
  }

  .translate-button {
    width: 34px;
    min-height: 34px;
    justify-content: center;
    padding: 0;
  }

  .translate-button span {
    display: none;
  }
}

@media (max-width: 700px) {
  .shell {
    width: calc(100% - 24px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-copy strong {
    font-size: 13px;
  }

  .brand-copy small {
    display: none;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
  }

  .brand-mark svg {
    width: 28px;
    height: 28px;
  }

  .connection-pill {
    min-height: 32px;
    padding: 0 10px;
    font-size: 11px;
  }

  .icon-button {
    width: 33px;
    height: 33px;
  }

  .hero {
    padding-top: 41px;
  }

  .hero h1 {
    margin-top: 19px;
    font-size: clamp(37px, 10vw, 50px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-badges {
    margin-top: 19px;
  }

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

  .stat-card {
    min-height: 91px;
    padding: 12px;
  }

  .stat-card-primary {
    grid-column: auto;
    min-height: 91px;
  }

  .stat-card strong,
  .stat-card-primary strong {
    margin-top: 9px;
    font-size: clamp(20px, 6vw, 28px);
  }

  .stat-card small {
    margin-top: 4px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .stat-label {
    font-size: 9px;
    letter-spacing: 0.04em;
  }

  .filter-panel {
    padding: 10px;
    border-radius: 16px;
  }

  .time-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .time-tab {
    min-width: max-content;
    flex: 1;
    justify-content: center;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .select-wrap {
    width: 100%;
  }

  .exclude-filter {
    width: 100%;
  }

  .exclude-summary {
    width: 100%;
  }

  .exclude-menu {
    width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .filter-label {
    display: none;
  }

  .price-mode-group {
    justify-content: flex-start;
  }

  .price-modes {
    width: 100%;
  }

  .price-mode {
    flex: 1;
  }

  .results-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
    padding-top: 17px;
  }

  .results-meta {
    text-align: left;
  }

  .event-card-inner {
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .event-identity {
    gap: 10px;
  }

  .event-icon-wrap {
    width: 38px;
    height: 38px;
    flex-basis: 38px;
  }

  .event-probabilities {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .event-side {
    display: flex;
    grid-column: 1;
    grid-row: auto;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 0 0;
    border-top: 1px solid rgba(114, 145, 195, 0.09);
    border-left: 0;
    text-align: left;
  }

  .event-side-copy {
    display: grid;
    gap: 2px;
  }

  .event-actions {
    margin-left: auto;
  }

  .detail-outcomes {
    grid-template-columns: 1fr;
    max-height: 460px;
  }

  .event-detail {
    padding: 2px 14px 15px;
  }

  .event-detail-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .event-footnote {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 20px 0;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 500px) {
  .connection-pill {
    width: 34px;
    min-width: 34px;
    padding: 0;
    justify-content: center;
  }

  .connection-pill #connectionText {
    display: none;
  }
}

@media (max-width: 430px) {
  .brand-copy strong {
    letter-spacing: 0.08em;
  }

  .pagination {
    gap: 8px;
  }

  .page-button {
    padding: 0 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
