:root {
  --bg: #04070d;
  --bg2: #07111d;
  --bg3: #0a1726;
  --card: rgba(10, 20, 34, 0.82);
  --line: rgba(84, 145, 225, 0.16);
  --text: #edf5ff;
  --muted: #9ab0c9;
  --accent: #5ed8ff;
  --good: #57e39b;
  --warn: #ffd166;
  --bad: #ff7f7f;
  --shadow: 0 14px 44px rgba(0, 0, 0, 0.45);
  --radius: 22px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top left, rgba(94,216,255,0.08), transparent 24%),
    radial-gradient(circle at top right, rgba(122,150,255,0.07), transparent 20%),
    linear-gradient(180deg, var(--bg), var(--bg2) 35%, #03060b 100%);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

body {
  zoom: 0.95;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.85), transparent 96%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  top: 20px;
  left: -80px;
  background: #13bfff;
}

.bg-glow-2 {
  width: 340px;
  height: 340px;
  top: 120px;
  right: -80px;
  background: #4464ff;
}

.container,
.hero-inner {
  width: min(1320px, calc(100% - 28px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  padding: 28px 0 18px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(94,216,255,0.22);
  background: rgba(94,216,255,0.07);
  color: var(--accent);
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 10px;
  font-size: clamp(20px, 4vw, 45px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.lead {
  margin: 0;
  max-width: 980px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.metric {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(14, 24, 38, 0.95), rgba(8, 16, 28, 0.92));
  box-shadow: var(--shadow);
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 9px;
}

.metric-value {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}

.section {
  padding: 22px 0 4px;
}

.section-title {
  margin-bottom: 16px;
}

.section-title h2 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.section-title code {
  color: var(--accent);
  background: rgba(255,255,255,0.05);
  padding: 2px 7px;
  border-radius: 8px;
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

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

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

.card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.95), rgba(7, 14, 24, 0.92));
  box-shadow: var(--shadow);
  padding: 14px;
  overflow: hidden;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(95, 190, 255, 0.35), transparent);
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.card-kicker {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid rgba(255,255,255,0.11);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  white-space: nowrap;
}

.badge-live,
.badge-high {
  border-color: rgba(87,227,155,0.28);
  background: rgba(87,227,155,0.10);
  color: var(--good);
}

.badge-recent,
.badge-medium {
  border-color: rgba(255,209,102,0.28);
  background: rgba(255,209,102,0.10);
  color: var(--warn);
}

.badge-stale,
.badge-offline,
.badge-low {
  border-color: rgba(255,127,127,0.28);
  background: rgba(255,127,127,0.10);
  color: var(--bad);
}

.station-meta-grid,
.event-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.detail-metrics {
  margin-top: 16px;
}

.mini-stat {
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.mini-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mini-value {
  display: block;
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  word-break: break-word;
}

.image-frame {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.07);
  background: #04070d;
}

.live-frame {
  box-shadow: inset 0 0 0 1px rgba(94,216,255,0.04), 0 0 30px rgba(94,216,255,0.04);
}

.image-frame img {
  display: block;
  width: 100%;
  height: auto;
  background: #04070d;
}

.image-missing {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: var(--muted);
  padding: 20px;
}

.link-row {
  margin-top: 14px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.detail-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--accent);
  border: 1px solid rgba(94,216,255,0.18);
  background: rgba(94,216,255,0.06);
  transition: 0.18s ease;
}

.detail-link:hover {
  transform: translateY(-1px);
  border-color: rgba(94,216,255,0.38);
  background: rgba(94,216,255,0.10);
}

.detail-link-disabled {
  color: var(--muted);
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
}

.compare-hero {
  padding: 22px;
}

.compare-grid {
  display: grid;
  grid-template-columns: 220px 220px 1fr;
  gap: 16px;
  align-items: start;
}

.compare-block {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.06);
  background: rgba(255,255,255,0.025);
}

.compare-text p,
.notice-card p,
.concept-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.label {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.big-value {
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--accent);
}

.big-value-small {
  font-size: 28px;
}

.notice-card {
  border-color: rgba(255,209,102,0.18);
}

.notice-title {
  color: var(--warn);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.footer {
  margin-top: 30px;
  padding: 24px 0 42px;
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.1fr 1.4fr 1.2fr;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

strong {
  color: var(--text);
}

@media (max-width: 1100px) {
  .metrics,
  .cards.two,
  .cards.three,
  .compare-grid,
  .footer-inner,
  .station-meta-grid,
  .event-meta-grid {
    grid-template-columns: 1fr;
  }

  .big-value {
    font-size: 34px;
  }
}

.hero-actions {
  margin-top: 18px;
}

.detail-link-button {
  cursor: pointer;
  font: inherit;
}

.hero-actions {
  margin-top: 18px;
}

.detail-link-button {
  cursor: pointer;
  font: inherit;
}

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

.analysis-card h3 {
  margin: 0;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.025em;
}

.analysis-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 14px;
}

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

.eyebrow-link {
  text-decoration: none;
}

.eyebrow-link:hover {
  border-color: rgba(94,216,255,0.45);
  background: rgba(94,216,255,0.12);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.detail-link-button {
  cursor: pointer;
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.topbar-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.topbar-link {
  padding: 9px 14px;
}

.eyebrow-link {
  text-decoration: none;
}

.eyebrow-link:hover {
  border-color: rgba(94,216,255,0.45);
  background: rgba(94,216,255,0.12);
}

.hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.detail-link-button {
  cursor: pointer;
  font: inherit;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  width: 100%;
}

.topbar-links {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
}

.topbar-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  text-decoration: none;
  white-space: nowrap;
}

.eyebrow-link {
  text-decoration: none;
  white-space: nowrap;
}

.eyebrow-link:hover {
  border-color: rgba(94,216,255,0.45);
  background: rgba(94,216,255,0.12);
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
  }

  .topbar-links {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}
