:root {
  --bg: #0f1717;
  --surface: rgba(26, 36, 37, 0.82);
  --surface-strong: rgba(15, 24, 24, 0.96);
  --surface-soft: rgba(34, 48, 49, 0.82);
  --line: rgba(157, 186, 162, 0.18);
  --text: #dce7d8;
  --muted: #90a598;
  --accent: #d58b1d;
  --accent-strong: #8fd58b;
  --good: #86df7b;
  --warn: #ffb347;
  --danger: #ff6d4d;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "Avenir Next", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(86, 129, 80, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(213, 139, 29, 0.12), transparent 22%),
    linear-gradient(180deg, #111817 0%, #0a0f0f 42%, #151e1d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(140, 170, 144, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 144, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 30%, rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      180deg,
      transparent 0,
      transparent 3px,
      rgba(111, 140, 118, 0.03) 3px,
      rgba(111, 140, 118, 0.03) 4px
    );
}

.shell {
  width: min(1400px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
}

.hero,
.panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  padding: 28px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(143, 213, 139, 0.08), transparent 38%),
    radial-gradient(circle at right center, rgba(213, 139, 29, 0.12), transparent 34%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--accent);
}

.hero__panel-tag,
.hero__readout,
.stat strong,
.badge,
.field span,
.status-list strong,
.pill,
.card h3,
.button,
.signal-panel__label {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
}

.hero__panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 8px 12px;
  border: 1px solid rgba(143, 213, 139, 0.22);
  border-radius: 999px;
  background: rgba(15, 24, 24, 0.82);
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
}

.hero h1,
.panel h2,
.now-playing h3 {
  margin: 0;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", sans-serif;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(2.4rem, 3vw, 4.3rem);
  max-width: 12ch;
}

.hero__text {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero__readout {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr;
  gap: 8px 14px;
  width: fit-content;
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(157, 186, 162, 0.18);
  background: rgba(8, 14, 14, 0.64);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.hero__readout strong {
  color: var(--accent-strong);
  font-weight: 700;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-content: start;
}

.stat,
.card,
.status-list,
.now-playing,
.field input,
.field__row,
.chip,
.button,
.badge {
  border-radius: 20px;
}

.stat {
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(38, 55, 55, 0.86), rgba(14, 22, 22, 0.92));
  border: 1px solid rgba(157, 186, 162, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.stat__label {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  margin-bottom: 10px;
}

.stat strong {
  font-size: 1.25rem;
  color: var(--accent-strong);
  letter-spacing: 0.08em;
}

.layout {
  display: grid;
  grid-template-columns: 370px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.panel {
  border-radius: 28px;
  padding: 22px;
  background:
    linear-gradient(180deg, rgba(23, 34, 34, 0.96), rgba(11, 18, 18, 0.96));
}

.panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.hint,
.badge,
.field span,
.status-list span,
.card__meta,
.empty-state {
  color: var(--muted);
}

.badge {
  padding: 8px 12px;
  border: 1px solid rgba(143, 213, 139, 0.18);
  background: rgba(12, 20, 20, 0.84);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.field {
  display: block;
  margin-bottom: 16px;
}

.field span {
  display: block;
  margin-bottom: 9px;
  font-size: 0.92rem;
}

.field input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(157, 186, 162, 0.14);
  background: rgba(7, 14, 14, 0.86);
  color: var(--text);
  font: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.field input:focus {
  outline: 1px solid rgba(143, 213, 139, 0.4);
  border-color: rgba(143, 213, 139, 0.35);
}

.field__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.button {
  border: 0;
  padding: 0 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.button:hover,
.chip:hover,
.card:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: #101514;
  background: linear-gradient(135deg, #d0f18a, #8fd58b);
}

.button--ghost {
  color: var(--text);
  background: linear-gradient(180deg, rgba(43, 54, 54, 0.92), rgba(18, 27, 27, 0.92));
  border: 1px solid rgba(157, 186, 162, 0.14);
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.chip {
  border: 1px solid rgba(157, 186, 162, 0.12);
  background: linear-gradient(180deg, rgba(34, 47, 47, 0.92), rgba(14, 21, 21, 0.92));
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.now-playing,
.status-list,
.signal-panel {
  border: 1px solid rgba(51, 37, 24, 0.08);
  background: linear-gradient(180deg, rgba(8, 15, 15, 0.98), rgba(16, 24, 24, 0.94));
}

.now-playing {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  margin-bottom: 16px;
  border-color: rgba(143, 213, 139, 0.16);
  box-shadow: inset 0 0 0 1px rgba(143, 213, 139, 0.05);
}

.now-playing__meta p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.signal-panel {
  margin-bottom: 16px;
  padding: 14px 18px 18px;
  border-radius: 20px;
  border-color: rgba(157, 186, 162, 0.12);
}

.signal-panel__label {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.signal-panel__bars {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  align-items: end;
  gap: 6px;
  min-height: 72px;
}

.signal-panel__bars span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(143, 213, 139, 0.95), rgba(53, 114, 59, 0.7));
  box-shadow: 0 0 12px rgba(143, 213, 139, 0.16);
  animation: meterPulse 1.6s ease-in-out infinite alternate;
}

.signal-panel__bars span:nth-child(1) { height: 16%; animation-delay: 0s; }
.signal-panel__bars span:nth-child(2) { height: 22%; animation-delay: 0.08s; }
.signal-panel__bars span:nth-child(3) { height: 32%; animation-delay: 0.16s; }
.signal-panel__bars span:nth-child(4) { height: 40%; animation-delay: 0.24s; }
.signal-panel__bars span:nth-child(5) { height: 48%; animation-delay: 0.32s; }
.signal-panel__bars span:nth-child(6) { height: 54%; animation-delay: 0.4s; }
.signal-panel__bars span:nth-child(7) { height: 62%; animation-delay: 0.48s; }
.signal-panel__bars span:nth-child(8) { height: 76%; animation-delay: 0.56s; }
.signal-panel__bars span:nth-child(9) { height: 88%; animation-delay: 0.64s; background: linear-gradient(180deg, #ffd364, #d58b1d); }
.signal-panel__bars span:nth-child(10) { height: 100%; animation-delay: 0.72s; background: linear-gradient(180deg, #ff9862, var(--danger)); }

.status-list {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-color: rgba(157, 186, 162, 0.12);
}

.status-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(157, 186, 162, 0.08);
}

.status-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.feed-stage {
  display: block;
}

.room {
  display: grid;
  gap: 18px;
}

.room__hero,
.history-list,
.history-item {
  border-radius: 24px;
}

.room__hero {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(143, 213, 139, 0.18);
  background:
    radial-gradient(circle at top right, rgba(143, 213, 139, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(17, 28, 28, 0.98), rgba(8, 14, 14, 0.98));
}

.room__hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #d0f18a, #8fd58b);
}

.room__eyebrow,
.history-item__time,
.history-item__meta,
.room__grid-label {
  font-family: "SFMono-Regular", "Consolas", "Liberation Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.room__eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
}

.room__hero h3 {
  margin: 0 0 10px;
  font-family: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2.2vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.room__lead {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1rem;
}

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

.room__grid-cell {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(157, 186, 162, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.room__grid-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.74rem;
}

.room__grid-value {
  display: block;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 700;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  display: grid;
  grid-template-columns: 108px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid rgba(157, 186, 162, 0.12);
  background: linear-gradient(180deg, rgba(23, 34, 34, 0.9), rgba(10, 16, 16, 0.96));
}

.history-item--live {
  border-color: rgba(143, 213, 139, 0.28);
  box-shadow: inset 0 0 0 1px rgba(143, 213, 139, 0.08);
}

.history-item__time {
  color: var(--accent-strong);
  font-size: 0.82rem;
}

.history-item__main h4 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.history-item__lead {
  margin: 0 0 6px;
  color: var(--text);
}

.history-item__meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.history-item__state {
  justify-self: end;
}

.card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(157, 186, 162, 0.12);
  background:
    linear-gradient(180deg, rgba(31, 43, 43, 0.96), rgba(11, 17, 17, 0.96));
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, rgba(143, 213, 139, 0.2), rgba(143, 213, 139, 0.85));
}

.card:hover {
  border-color: rgba(143, 213, 139, 0.38);
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.2);
}

.card--active {
  border-color: rgba(213, 139, 29, 0.6);
  box-shadow: inset 0 0 0 1px rgba(213, 139, 29, 0.24), 0 0 0 1px rgba(213, 139, 29, 0.14);
}

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

.card h3 {
  margin: 4px 0 8px;
  font-size: 1.35rem;
  color: var(--accent-strong);
}

.card__title {
  margin: 0 0 12px;
  color: var(--muted);
  min-height: 2.7em;
}

.card__source {
  font-weight: 700;
  margin-bottom: 4px;
}

.card__meta {
  font-size: 0.88rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(157, 186, 162, 0.12);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pill--live {
  color: var(--good);
}

.pill--idle {
  color: var(--warn);
}

.empty-state {
  padding: 40px 24px;
  text-align: center;
  border: 1px dashed rgba(157, 186, 162, 0.18);
  border-radius: 24px;
  background: rgba(8, 14, 14, 0.55);
}

@keyframes meterPulse {
  from {
    opacity: 0.42;
    transform: scaleY(0.82);
  }

  to {
    opacity: 1;
    transform: scaleY(1);
  }
}

@media (max-width: 960px) {
  .hero,
  .layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 640px) {
  .shell {
    width: min(100vw - 20px, 1400px);
    padding-top: 14px;
  }

  .hero,
  .panel {
    border-radius: 24px;
    padding: 18px;
  }

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

  .field__row,
  .now-playing {
    grid-template-columns: 1fr;
    display: grid;
  }

  .button {
    min-height: 48px;
  }

  .history-item {
    grid-template-columns: 1fr;
  }

  .history-item__state {
    justify-self: start;
  }

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