:root {
  --bg: #060813;
  --bg2: #10182b;
  --panel: rgba(13, 18, 34, 0.92);
  --panel2: rgba(18, 26, 45, 0.86);
  --line: rgba(73, 105, 153, 0.46);
  --line-hot: rgba(28, 241, 255, 0.48);
  --text: #f4f7ff;
  --muted: #9ba9c8;
  --cyan: #20e7ff;
  --pink: #ff3ce7;
  --violet: #8a5dff;
  --acid: #c6ff38;
  --orange: #ff9d36;
  --danger: #ff3e80;
  --radius: 8px;
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.46);
  --display: "Trebuchet MS", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  font-family: var(--display);
  background:
    linear-gradient(90deg, rgba(32, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(32, 231, 255, 0.045) 1px, transparent 1px),
    radial-gradient(circle at 18% 12%, rgba(138, 93, 255, 0.25), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(32, 231, 255, 0.16), transparent 28%),
    linear-gradient(135deg, #070713 0%, #081426 52%, #12091e 100%);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  padding-bottom: 122px;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 5px);
  mix-blend-mode: screen;
}

.top-shell,
.site-shell {
  width: min(1680px, calc(100vw - 44px));
  min-width: min(900px, calc(100vw - 44px));
  margin: 0 auto;
}

.top-shell {
  min-height: 86px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  gap: 14px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand-chip {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-hot);
  border-radius: 4px;
  color: var(--acid);
  font: 900 13px/1 var(--mono);
  background: linear-gradient(145deg, rgba(32,231,255,.14), rgba(138,93,255,.22));
  box-shadow: inset 0 0 22px rgba(32,231,255,.14), 0 0 26px rgba(32,231,255,.16);
}

.brand strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-family: var(--mono); }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 4px;
  padding: 10px 15px;
  background: rgba(7, 11, 22, .42);
}

.main-nav a.active,
.main-nav a:hover {
  color: var(--text);
  border-color: var(--line-hot);
  background: rgba(32, 231, 255, .09);
}

.user-mini {
  position: relative;
}
.user-mini-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  border: 1px solid rgba(32,231,255,.26);
  background: rgba(5,12,27,.68);
  border-radius: 4px;
  padding: 6px 10px;
  font: 800 13px/1 var(--sans);
  cursor: pointer;
}
.user-avatar {
  width: 26px;
  height: 26px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #061020;
  box-shadow: 0 0 18px rgba(198,255,56,.34);
  text-transform: uppercase;
}
.user-avatar.is-online::after {
  content: "";
  position: absolute;
}
.user-mini-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(310px, calc(100vw - 32px));
  display: none;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(32,231,255,.28);
  background: rgba(3,8,20,.96);
  box-shadow: 0 22px 55px rgba(0,0,0,.45), 0 0 30px rgba(32,231,255,.1);
}
.user-mini.is-open .user-mini-panel {
  display: grid;
}
.user-mini-panel strong {
  font-size: 16px;
}
.user-mini-panel em,
.user-mini-panel span {
  color: var(--muted);
  font-style: normal;
  font: 700 12px/1.35 var(--mono);
}
.user-mini-panel a,
.user-mini-panel button {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 9px 10px;
  text-decoration: none;
  text-align: left;
  font: 800 13px/1 var(--sans);
  cursor: pointer;
}
.user-mini-panel a:hover,
.user-mini-panel button:hover {
  border-color: var(--line-hot);
  background: rgba(32,231,255,.1);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, .85fr);
  gap: 22px;
  align-items: stretch;
}

.command-panel,
.side-card,
.news-lead,
.news-card,
.topic-card,
.player-dock,
.archive-modal {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--panel), rgba(7, 9, 19, 0.9));
  box-shadow: var(--shadow);
}

.command-panel {
  min-height: 650px;
  border-radius: 8px;
  padding: clamp(28px, 4vw, 54px);
  position: relative;
  overflow: hidden;
  border-width: 3px;
  box-shadow:
    inset 0 0 0 3px rgba(0,0,0,.72),
    inset 0 0 0 6px rgba(32,231,255,.08),
    0 18px 0 rgba(0,0,0,.42),
    var(--shadow);
}

.command-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 0 58%, rgba(32,231,255,.12) 58% 60%, transparent 60%),
    linear-gradient(160deg, rgba(198,255,56,.08), transparent 36%);
  pointer-events: none;
}

.command-panel::after {
  content: "";
  position: absolute;
  right: clamp(18px, 4vw, 62px);
  top: clamp(92px, 10vw, 150px);
  width: min(31vw, 360px);
  aspect-ratio: 1.16;
  z-index: 0;
  opacity: .34;
  transform: rotate(-4deg);
  background:
    linear-gradient(rgba(3,8,18,.96) 0 0) 50% 6% / 58% 33% no-repeat,
    linear-gradient(rgba(32,231,255,.38) 0 0) 50% 6% / 58% 3% no-repeat,
    linear-gradient(rgba(32,231,255,.24) 0 0) 50% 36% / 18% 7% no-repeat,
    linear-gradient(rgba(32,231,255,.2) 0 0) 50% 44% / 34% 5% no-repeat,
    linear-gradient(rgba(255,255,255,.18) 0 0) 14% 66% / 28% 11% no-repeat,
    linear-gradient(rgba(255,255,255,.2) 0 0) 18% 63% / 6% 22% no-repeat,
    linear-gradient(rgba(255,255,255,.16) 0 0) 10% 74% / 18% 5% no-repeat,
    linear-gradient(rgba(255,157,54,.78) 0 0) 14% 88% / 22% 5% no-repeat,
    linear-gradient(rgba(255,255,255,.14) 0 0) 45% 66% / 30% 14% no-repeat,
    radial-gradient(circle at 55% 67%, rgba(255,62,128,.82) 0 4%, transparent 4.5%),
    radial-gradient(circle at 64% 67%, rgba(32,231,255,.82) 0 4%, transparent 4.5%),
    linear-gradient(rgba(198,255,56,.75) 0 0) 47% 88% / 25% 5% no-repeat,
    repeating-linear-gradient(90deg, rgba(238,244,255,.45) 0 2px, transparent 2px 10px) 76% 66% / 32% 13% no-repeat,
    linear-gradient(rgba(32,231,255,.7) 0 0) 73% 88% / 18% 5% no-repeat;
  border: 2px solid rgba(32,231,255,.28);
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.75), 0 0 28px rgba(32,231,255,.16);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 90% 86%, 90% 100%, 0 100%);
}

.panel-cap,
.section-label {
  color: var(--acid);
  font: 900 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .22em;
}

.panel-cap {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(198,255,56,.22);
  border-radius: 4px;
  padding: 9px 12px;
  background: rgba(198,255,56,.06);
}

.retro-badges {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.cart-badge,
.pad-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #07111d;
  background: var(--acid);
  border: 3px solid #07111d;
  box-shadow: 4px 4px 0 rgba(32,231,255,.8);
  font: 900 12px/1 var(--mono);
  letter-spacing: .18em;
}
.pad-badge {
  min-width: 42px;
  background: var(--orange);
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 18px var(--danger);
}
.live-dot.is-online {
  background: var(--acid);
  box-shadow: 0 0 18px var(--acid);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: min(760px, 64%);
  margin-top: 36px;
}

.hero-copy h1 {
  margin: 14px 0 22px;
  max-width: 980px;
  font-size: clamp(44px, 5.8vw, 90px);
  line-height: .94;
  letter-spacing: -.08em;
  text-shadow: 3px 0 var(--cyan), -3px 0 var(--danger), 0 6px 0 rgba(0,0,0,.35);
}

.hero-copy p:not(.section-label) {
  max-width: 760px;
  color: var(--muted);
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
}

.now-console {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(360px, .95fr) minmax(190px, 260px);
  gap: 18px;
  margin-top: 44px;
  align-items: end;
}

.cover-terminal {
  min-height: 430px;
  border: 1px solid rgba(32,231,255,.32);
  border-radius: 6px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(111,105,94,.35), rgba(31,29,28,.92)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.035) 0 1px, transparent 1px 5px);
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.68),
    inset 0 0 38px rgba(255,157,54,.08),
    10px 10px 0 rgba(255,62,128,.16);
}

.reel-deck { position: relative; padding: 14px; }
.reel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.24);
  font-family: var(--mono);
}
.deck-brand {
  color: rgba(238,244,255,.86);
  font-weight: 900;
  letter-spacing: .18em;
  text-shadow: 0 0 10px rgba(255,255,255,.18);
}
.deck-sub {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: .12em;
}
.reel-stage {
  position: relative;
  height: 190px;
  margin-top: 12px;
  border: 1px solid rgba(0,0,0,.55);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.08)),
    #393633;
}
.reel {
  position: absolute;
  top: 18px;
  width: 142px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 10px solid #191919;
  background:
    radial-gradient(circle, #d7d2c8 0 12%, #514f4a 13% 20%, transparent 21%),
    repeating-conic-gradient(from 0deg, #2b2a28 0 22deg, transparent 22deg 38deg),
    radial-gradient(circle, #55514b 0 62%, #1a1a1a 63% 100%);
  box-shadow: inset 0 0 16px rgba(255,255,255,.16), 0 12px 20px rgba(0,0,0,.48);
  animation: reelSpin 2.2s linear infinite;
}
.reel-left { left: 36px; }
.reel-right { right: 36px; animation-duration: 1.7s; }
.reel i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34%;
  height: 16%;
  border-radius: 999px;
  background: rgba(238,230,218,.72);
  transform-origin: 0 50%;
}
.reel i:nth-child(1) { transform: rotate(0deg) translateX(28px); }
.reel i:nth-child(2) { transform: rotate(60deg) translateX(28px); }
.reel i:nth-child(3) { transform: rotate(120deg) translateX(28px); }
.reel i:nth-child(4) { transform: rotate(180deg) translateX(28px); }
.reel i:nth-child(5) { transform: rotate(240deg) translateX(28px); }
.reel i:nth-child(6) { transform: rotate(300deg) translateX(28px); }
@keyframes reelSpin { to { transform: rotate(360deg); } }
.tape-line {
  position: absolute;
  left: 154px;
  right: 154px;
  height: 4px;
  background: linear-gradient(90deg, #1d120b, #7a421f, #1d120b);
  box-shadow: 0 0 8px rgba(255,157,54,.22);
}
.tape-top { top: 76px; animation: tapeMove 1.4s linear infinite; }
.tape-bottom { top: 122px; animation: tapeMove 1.4s linear infinite reverse; }
@keyframes tapeMove { 50% { filter: brightness(1.4); transform: translateX(2px); } }
.tape-head {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 82px;
  height: 52px;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #1f1d1b, #49433c);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 0 18px rgba(0,0,0,.55);
}
.deck-body {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, .55fr) minmax(240px, 1fr);
  gap: 12px;
  padding-top: 12px;
}
.cassette-panel {
  min-height: 96px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, rgba(0,0,0,.42), rgba(255,255,255,.08));
  font-family: var(--mono);
}
.cassette-panel span,
.cassette-panel em { display: block; color: var(--muted); font-size: 10px; font-style: normal; }
.cassette-panel strong { display: block; margin: 6px 0; font-size: 24px; color: rgba(238,244,255,.86); }
.deck-knobs {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: -4px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}
.deck-knobs b {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--acid), #0b3121);
  border: 1px solid rgba(0,0,0,.75);
  animation: lampBlink 1.8s steps(1, end) infinite;
}
.deck-knobs b:nth-child(2) { animation-delay: .35s; }
.deck-knobs b:nth-child(3) { animation-delay: .7s; background: radial-gradient(circle, var(--cyan), #0b2331); }
.deck-knobs b:nth-child(4) { animation-delay: 1s; background: radial-gradient(circle, var(--orange), #35200a); }
@keyframes lampBlink { 50% { filter: brightness(.45); } }
.deck-meters {
  height: 56px;
  border: 1px solid rgba(32,231,255,.18);
  background: rgba(0,0,0,.35);
}

.pixel-bars {
  height: 72px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32,231,255,.2);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px),
    rgba(3, 8, 18, .72);
  background-size: 28px 100%, 100% 18px, auto;
}
.audio-scope canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.signal-card {
  margin-top: 20px;
  padding: 18px;
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2, 5, 12, .76);
  min-width: 0;
}
.signal-card span,
.dock-meta span {
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.signal-card strong,
.signal-card em {
  display: block;
  margin-top: 7px;
  font-style: normal;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.signal-card strong { font-size: clamp(18px, 2.1vw, 26px); }
.signal-card em { color: var(--muted); }

.console-actions {
  display: grid;
  gap: 12px;
}
button,
.ghost-action {
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  font: 900 16px/1 var(--display);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 4px;
  padding: 16px 18px;
  background: rgba(255,255,255,.055);
}
.primary-action {
  color: #06101a;
  border-color: transparent;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  box-shadow: 6px 6px 0 rgba(0,0,0,.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  letter-spacing: .02em;
  text-shadow: none;
}
.primary-action i,
.primary-action span {
    color: inherit;
    line-height: 1;
}
.primary-action,
.primary-action:visited,
.primary-action:hover,
.primary-action:focus,
.primary-action *,
.primary-action:visited *,
.primary-action:hover *,
.primary-action:focus * {
    color: #06101a !important;
    text-shadow: none !important;
}
.primary-action > i,
.primary-action > span {
    font-family: var(--display);
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .02em;
    text-transform: none;
}

/* Home is a station showcase. Full live controls live on /air. */
.portal-grid-home {
  grid-template-columns: 1fr;
}
.portal-grid-home .right-stack {
  display: none;
}
.portal-grid-home .command-panel {
  min-height: 0;
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: center;
}
.portal-grid-home .command-panel::after,
.portal-grid-home .retro-badges {
  display: none;
}
.portal-grid-home .panel-cap {
  width: fit-content;
}
.portal-grid-home .hero-copy {
  max-width: 820px;
  margin-top: 20px;
}
.portal-grid-home .hero-copy h1 {
  max-width: 760px;
  font-size: clamp(38px, 4.8vw, 72px);
}
.portal-grid-home .hero-copy p:not(.section-label) {
  max-width: 680px;
  font-size: clamp(17px, 1.5vw, 22px);
}
.portal-grid-home .now-console {
  margin-top: 0;
  grid-template-columns: 1fr;
  align-self: stretch;
}
.portal-grid-home .cover-terminal {
  min-height: 220px;
}
.portal-grid-home .reel-stage,
.portal-grid-home .cassette-panel,
.portal-grid-home .vu-window,
.portal-grid-home .deck-knobs,
.portal-grid-home .olymp-knob,
.portal-grid-home .olymp-cover {
  display: none;
}
.portal-grid-home .reel-head {
  padding: 7px 9px;
}
.portal-grid-home .deck-body {
  min-height: 150px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
}
.portal-grid-home .deck-meters {
  min-height: 68px;
}
.portal-grid-home .deck-meters canvas {
  height: 68px;
}
.portal-grid-home .signal-card {
  min-height: 76px;
}
.portal-grid-home .console-actions {
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 980px) {
  .portal-grid-home .command-panel {
    grid-template-columns: 1fr;
  }
}

.right-stack {
  display: grid;
  gap: 18px;
}
.side-card {
  border-radius: 6px;
  padding: 22px;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
h2, h3, p { margin-top: 0; }
.muted,
.side-card p,
.news-card p,
.topic-card p { color: var(--muted); line-height: 1.55; }
.status-card > p.muted { display: none; }
.chat-widget {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}
.chat-log {
  min-height: 170px;
  max-height: 240px;
  overflow: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border: 1px solid rgba(32,231,255,.18);
  background: rgba(2, 8, 18, .58);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28);
  font-family: var(--mono);
}
.chat-empty,
.chat-note {
  color: var(--muted);
  font: 800 11px/1.45 var(--mono);
}
.chat-message {
  display: grid;
  gap: 4px;
  padding: 8px 9px;
  border: 1px solid rgba(32,231,255,.13);
  background: rgba(255,255,255,.035);
}
.chat-message-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--acid);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.chat-message-text {
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.chat-moderation-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 3px;
}
.chat-mod-button {
  border: 1px solid rgba(32,231,255,.18);
  border-radius: 3px;
  padding: 5px 7px;
  color: var(--text);
  background: rgba(2, 8, 18, .54);
  font: 900 9px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
}
.chat-mod-button:hover {
  border-color: rgba(164,255,56,.55);
  color: var(--acid);
}
.chat-mod-delete,
.chat-mod-ban {
  border-color: rgba(255, 64, 128, .34);
  color: #ff9ab8;
}
.chat-mod-mute {
  border-color: rgba(255, 169, 57, .34);
  color: #ffc46b;
}
.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
}
.chat-form input {
  min-width: 0;
  border: 1px solid rgba(32,231,255,.18);
  border-radius: 3px;
  padding: 11px 12px;
  color: var(--text);
  background: rgba(2, 8, 18, .62);
  font: 800 12px/1 var(--mono);
}
.chat-form button {
  padding: 0;
  display: grid;
  place-items: center;
  color: #07111d;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
}
.chat-form input:disabled,
.chat-form button:disabled {
  cursor: not-allowed;
  opacity: .52;
}
.topic-card small {
  display: inline-flex;
  width: max-content;
  margin-top: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(32,231,255,.2);
  color: var(--cyan);
  font: 800 11px/1 var(--mono);
}
.archive-widget ol {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 7px;
}
.archive-widget li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 10px;
  border: 1px solid rgba(32,231,255,.16);
  border-radius: 2px;
  background: rgba(2, 8, 18, .62);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.28);
  font-family: var(--mono);
}
.archive-widget li span {
  color: var(--acid);
  font-size: 11px;
}
.archive-widget li strong,
.archive-widget li em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.archive-widget li strong {
  color: var(--text);
  font-size: 12px;
}
.archive-widget li em {
  grid-column: 2;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}
.terminal-cursor em {
  color: var(--acid);
  animation: cursorBlink .8s steps(1, end) infinite;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.magazine-grid,
.community-grid {
  display: grid;
  grid-template-columns: 1.2fr .9fr .9fr;
  gap: 20px;
  margin-top: 22px;
}
.news-lead,
.news-card,
.topic-card {
  border-radius: 6px;
  padding: 24px;
}
.news-lead h2,
.section-title h2 { font-size: clamp(32px, 4vw, 56px); line-height: .98; }
.news-card span,
.topic-card span {
  color: var(--cyan);
  font: 900 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.news-card {
  display: grid;
  align-content: start;
  gap: 14px;
}
.news-card.is-pinned {
  border-color: rgba(198,255,56,.36);
  box-shadow: inset 0 0 0 1px rgba(198,255,56,.08);
}
.community-grid {
  grid-template-columns: 1.2fr repeat(3, minmax(0, 1fr));
}
.section-title { padding: 12px 0; }
.section-title p {
  color: var(--muted);
  line-height: 1.55;
}
.topic-card h3 a {
  color: inherit;
  text-decoration: none;
}
.topic-card h3 a:hover {
  color: var(--acid);
}
.community-notice {
  grid-column: 1 / -1;
  border: 1px solid rgba(154,255,63,.32);
  background: rgba(154,255,63,.08);
  color: var(--acid);
  padding: 14px 16px;
  border-radius: 6px;
  font: 800 13px/1.3 var(--mono);
}
.community-notice.is-bad {
  border-color: rgba(255,92,146,.42);
  background: rgba(255,92,146,.1);
  color: #ff7aa8;
}
.community-filter {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.community-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  padding: 8px 12px;
  border: 1px solid rgba(43,220,255,.24);
  border-radius: 4px;
  background: rgba(2,8,20,.66);
  color: var(--muted);
  font: 900 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
}
.community-filter a span {
  color: inherit;
}
.community-filter a b {
  min-width: 22px;
  padding: 3px 6px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: inherit;
  font: 900 10px/1 var(--mono);
  text-align: center;
}
.community-filter a:hover,
.community-filter a.active {
  border-color: rgba(154,255,63,.72);
  background: rgba(154,255,63,.1);
  color: var(--acid);
  box-shadow: 0 0 22px rgba(154,255,63,.08);
}
.community-category-panel,
.community-empty {
  grid-column: 1 / -1;
  border: 1px solid rgba(43,220,255,.22);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(43,220,255,.08) 1px, transparent 1px),
    linear-gradient(145deg, rgba(4,15,35,.88), rgba(3,8,18,.78));
  background-size: 28px 100%, auto;
  padding: 18px 20px;
}
.community-category-panel span,
.community-empty span {
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.community-category-panel h3,
.community-empty h3 {
  margin: 8px 0 8px;
  font-size: clamp(22px, 2vw, 32px);
}
.community-category-panel p,
.community-empty p {
  max-width: 760px;
  color: var(--muted);
  line-height: 1.55;
}
.community-category-panel small {
  display: inline-flex;
  margin-top: 12px;
  padding: 6px 9px;
  border: 1px solid rgba(154,255,63,.28);
  border-radius: 4px;
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.topic-card .topic-tag {
  display: inline-flex;
  width: max-content;
  color: var(--cyan);
  font: 900 12px/1 var(--mono);
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}
.topic-card .topic-tag:hover {
  color: var(--acid);
}
.topic-create-card {
  grid-column: span 2;
}
.community-form {
  display: grid;
  grid-template-columns: minmax(120px, .35fr) 1fr;
  gap: 12px;
  margin-top: 16px;
}
.community-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font: 800 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.community-form label.wide,
.community-form button {
  grid-column: 1 / -1;
}
.community-form input,
.community-form select,
.community-form textarea {
  width: 100%;
  border: 1px solid rgba(43,220,255,.26);
  border-radius: 5px;
  background: rgba(2,8,20,.72);
  color: var(--text);
  padding: 12px 13px;
  font: 700 15px/1.35 var(--font);
  outline: none;
}
.community-form select {
  appearance: none;
  cursor: pointer;
}
.community-form textarea {
  resize: vertical;
}
.community-form input:focus,
.community-form select:focus,
.community-form textarea:focus {
  border-color: rgba(154,255,63,.72);
  box-shadow: 0 0 0 3px rgba(154,255,63,.08);
}
.community-thread {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}
.thread-head,
.thread-post,
.topic-reply-card {
  border: 1px solid rgba(43,220,255,.22);
  background: linear-gradient(135deg, rgba(5,14,31,.94), rgba(3,8,18,.84));
  box-shadow: 0 18px 40px rgba(0,0,0,.24), inset 0 0 0 1px rgba(154,255,63,.03);
}
.thread-head {
  padding: 26px;
  border-radius: 8px;
}
.thread-head h1 {
  margin: 10px 0;
  font-size: clamp(34px, 5vw, 68px);
  line-height: .95;
}
.thread-head p,
.thread-head small {
  color: var(--muted);
}
.thread-posts {
  display: grid;
  gap: 12px;
}
.thread-post {
  border-radius: 7px;
  padding: 18px;
}
.thread-post header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(43,220,255,.14);
}
.thread-post header strong {
  color: var(--acid);
}
.thread-post header span {
  color: var(--muted);
  font: 800 11px/1.3 var(--mono);
}
.thread-post-body {
  color: var(--text);
  line-height: 1.65;
}
.thread-post-body p:last-child {
  margin-bottom: 0;
}

.ost-board {
  display: grid;
  gap: 22px;
  margin-top: 22px;
}
.ost-hero,
.ost-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(32,231,255,.08), transparent 34%),
    linear-gradient(160deg, rgba(7, 11, 24, .94), rgba(9, 13, 28, .78));
  box-shadow: var(--shadow);
}
.ost-hero {
  padding: clamp(28px, 4vw, 52px);
  min-height: 260px;
  display: grid;
  align-content: center;
  position: relative;
  overflow: hidden;
}
.ost-hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  background:
    linear-gradient(rgba(32,231,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 72%, transparent);
  opacity: .45;
}
.ost-hero h2 {
  max-width: 980px;
  margin: 14px 0;
  font-size: clamp(44px, 6vw, 88px);
  line-height: .94;
}
.ost-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}
.ost-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.ost-stats span,
.ost-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(32,231,255,.26);
  border-radius: 4px;
  padding: 8px 10px;
  background: rgba(0, 0, 0, .22);
  color: var(--muted);
  font: 800 12px/1 var(--mono);
}
.ost-stats strong {
  color: var(--acid);
  font-size: 16px;
}
.ost-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.ost-card {
  min-height: 320px;
  padding: 22px;
  display: grid;
  align-content: start;
  gap: 15px;
}
.ost-card.is-empty {
  min-height: 180px;
}
.ost-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ost-card-head span {
  max-width: 70%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ost-card-head em,
.ost-last {
  color: var(--muted);
  font: 800 11px/1.3 var(--mono);
  font-style: normal;
}
.ost-card h3 {
  margin: 0;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.05;
}
.ost-game-link {
  color: inherit;
  text-decoration: none;
  text-shadow: 2px 0 0 rgba(255,48,226,.85), -2px 0 0 rgba(32,231,255,.75);
}
.ost-game-link:hover {
  color: var(--acid);
}
.ost-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ost-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.ost-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ost-flags span {
  border: 1px solid rgba(32,231,255,.22);
  border-radius: 4px;
  padding: 6px 8px;
  background: rgba(0,0,0,.25);
  color: var(--muted);
  font: 800 11px/1 var(--mono);
}
.ost-flags .is-warn {
  border-color: rgba(255,157,54,.4);
  color: var(--orange);
}
.ost-flags .is-ok {
  border-color: rgba(198,255,56,.35);
  color: var(--acid);
}
.ost-tags span {
  padding: 6px 8px;
  color: var(--cyan);
}
.ost-track-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.ost-track-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  border: 1px solid rgba(32,231,255,.16);
  border-radius: 4px;
  padding: 10px 12px 16px;
  background: rgba(0, 0, 0, .25);
  position: relative;
  overflow: hidden;
}
.ost-track-list li > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.ost-track-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ost-track-list em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}
.ost-track-list button {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(198,255,56,.35);
  border-radius: 4px;
  background: rgba(198,255,56,.08);
  color: var(--acid);
  cursor: pointer;
  line-height: 1;
  padding: 0;
}
.ost-track-list button i {
  display: block;
  font-size: 15px;
  line-height: 1;
}
.ost-track-list button:hover,
.ost-track-list button.is-playing {
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #031018;
}
.ost-track-list button.is-error {
  border-color: rgba(255,84,140,.55);
  color: #ff548c;
}
.ost-track-list small {
  color: var(--muted);
  font: 800 10px/1 var(--mono);
}
.ost-seek {
  grid-column: 1 / -1;
  width: calc(100% + 24px);
  height: 10px;
  margin: 0 -12px -16px;
  appearance: none;
  background:
    linear-gradient(90deg, rgba(198,255,56,.9) var(--ost-progress, 0%), rgba(32,231,255,.16) var(--ost-progress, 0%)),
    rgba(2, 10, 18, .9);
  border-top: 1px solid rgba(32,231,255,.2);
  cursor: pointer;
}
.ost-seek:disabled {
  opacity: .35;
  cursor: not-allowed;
}
.ost-seek::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #031018;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(198,255,56,.55);
}
.ost-seek::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 2px solid #031018;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 14px rgba(198,255,56,.55);
}
.ost-last {
  margin: 0;
  color: var(--orange);
}

.game-profile {
  display: grid;
  gap: 22px;
}
.game-hero-card,
.game-panel {
  border: 1px solid rgba(32,231,255,.32);
  background:
    linear-gradient(135deg, rgba(32,231,255,.1), transparent 34%),
    linear-gradient(160deg, rgba(255,48,226,.1), transparent 52%),
    rgba(7, 13, 28, .88);
  box-shadow: 0 0 0 1px rgba(161,255,52,.08), 0 24px 80px rgba(0,0,0,.35);
}
.game-hero-card {
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  gap: 28px;
  padding: 28px;
  min-height: 420px;
}
.game-cover {
  position: relative;
  min-height: 360px;
  border: 1px solid rgba(32,231,255,.38);
  background: rgba(2,8,18,.72);
  overflow: hidden;
}
.game-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(32,231,255,.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,231,255,.1) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .5;
}
.game-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-cover-fallback {
  position: absolute;
  inset: 24px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(161,255,52,.25);
  background: radial-gradient(circle at 50% 42%, rgba(255,48,226,.28), rgba(32,231,255,.08) 46%, rgba(0,0,0,.25) 70%);
}
.game-cover-fallback span {
  font-family: var(--display);
  font-size: clamp(70px, 8vw, 150px);
  letter-spacing: -.08em;
  color: var(--text);
  text-transform: uppercase;
  text-shadow: 4px 0 0 var(--pink), -4px 0 0 var(--cyan);
}
.game-info {
  align-self: center;
}
.game-info h1 {
  margin: 14px 0 10px;
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 120px);
  line-height: .88;
  letter-spacing: -.05em;
}
.game-info p {
  max-width: 820px;
  color: var(--muted);
  line-height: 1.65;
}
.game-subtitle {
  font-size: clamp(18px, 1.6vw, 28px);
  color: var(--text) !important;
}
.game-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}
.game-meta-grid span {
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(32,231,255,.22);
  background: rgba(0,0,0,.24);
}
.game-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--acid);
  font: 800 10px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.game-signal-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.game-signal-strip span,
.game-tag-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(32,231,255,.22);
  background: rgba(0,0,0,.28);
  color: var(--muted);
  font: 800 11px/1.1 var(--mono);
}
.game-signal-strip b {
  color: var(--text);
}
.game-tag-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.game-tag-strip span {
  border-color: rgba(198,255,56,.25);
  color: var(--acid);
}
.game-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
  gap: 22px;
}
.game-panel {
  padding: 24px;
}
.game-track-list {
  margin-top: 18px;
}
.game-air-log {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(32,231,255,.18);
}
.game-air-log h3 {
  margin: 0 0 12px;
  font-size: 18px;
}
.game-air-log ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.game-air-log li {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(32,231,255,.14);
  background: rgba(0,0,0,.22);
}
.game-air-log time {
  color: var(--acid);
  font: 800 11px/1 var(--mono);
}
.game-air-log span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.content-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.content-filter a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(32,231,255,.22);
  background: rgba(0,0,0,.24);
  color: var(--text);
  text-decoration: none;
  font: 800 12px/1 var(--mono);
}
.content-filter a:hover,
.content-filter a.active {
  border-color: rgba(198,255,56,.55);
  background: rgba(198,255,56,.13);
  color: var(--acid);
}
.content-filter a em {
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(32,231,255,.22);
  border-radius: 999px;
  color: var(--cyan);
  font: 900 11px/1 var(--mono);
  font-style: normal;
  background: rgba(32,231,255,.08);
}
.content-filter a.active em,
.content-filter a:hover em {
  border-color: rgba(198,255,56,.42);
  color: var(--acid);
  background: rgba(198,255,56,.12);
}
.gate-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 18%, rgba(32,231,255,.14), transparent 30%),
    radial-gradient(circle at 82% 12%, rgba(255,48,226,.12), transparent 28%),
    var(--bg);
}
.gate-shell {
  width: min(720px, 100%);
}
.gate-card {
  border: 1px solid rgba(32,231,255,.34);
  background:
    linear-gradient(135deg, rgba(32,231,255,.12), transparent 42%),
    linear-gradient(160deg, rgba(255,48,226,.12), transparent 62%),
    rgba(7, 13, 28, .94);
  box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 46px);
}
.gate-card h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 72px);
}
.gate-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}
.gate-form label {
  display: grid;
  gap: 8px;
}
.gate-form label span {
  color: var(--cyan);
  font: 900 12px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}
.gate-form input {
  min-height: 46px;
  border: 1px solid rgba(32,231,255,.25);
  background: rgba(0,0,0,.35);
  color: var(--text);
  padding: 0 14px;
  font: 800 15px/1 var(--mono);
}
.gate-form button {
  min-height: 44px;
  border: 1px solid rgba(198,255,56,.4);
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  color: #06111a;
  font-weight: 900;
  cursor: pointer;
}
.gate-message {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(32,231,255,.2);
  background: rgba(0,0,0,.28);
}
.gate-message.ok { border-color: rgba(41,214,122,.45); color: #7df7a4; }
.gate-message.warn { border-color: rgba(255,170,43,.5); color: #ffd182; }
.gate-message.bad { border-color: rgba(255,84,140,.55); color: #ff8aa8; }
.game-extra {
  align-self: start;
}

.post-detail {
  margin-top: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(24px, 4vw, 46px);
  background:
    radial-gradient(circle at 20% 0%, rgba(138,93,255,.16), transparent 38%),
    rgba(5, 9, 21, .78);
}
.post-detail h1 {
  max-width: 980px;
  margin: 18px 0;
  font-size: clamp(44px, 6vw, 82px);
  line-height: .96;
}
.post-excerpt {
  max-width: 850px;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.6;
}
.post-body {
  max-width: 880px;
  margin-top: 28px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.75;
}
.post-body p {
  margin: 0 0 18px;
}
.post-source {
  margin-top: 24px;
  color: var(--muted);
}
.post-source a {
  color: var(--cyan);
}
.related-posts {
  max-width: 980px;
  margin-top: 34px;
  padding-top: 24px;
  border-top: 1px solid rgba(32,231,255,.18);
}
.related-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.related-post-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border: 1px solid rgba(32,231,255,.18);
  border-radius: 6px;
  background: rgba(2, 7, 18, .68);
  color: var(--text);
  text-decoration: none;
}
.related-post-card:hover {
  border-color: rgba(198,255,56,.42);
  background: rgba(198,255,56,.08);
}
.related-post-card span {
  color: var(--cyan);
  font: 900 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.related-post-card strong {
  font-size: 18px;
  line-height: 1.2;
}
.related-post-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}

.schedule-board {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32,231,255,.05) 1px, transparent 1px),
    rgba(4, 9, 22, .72);
  background-size: 34px 34px, 34px 34px, auto;
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}
.schedule-board .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .58fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 22px;
}
.schedule-board .section-title p:last-child {
  color: var(--muted);
  line-height: 1.6;
}
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.schedule-board-compact {
  padding: 22px;
}
.schedule-board-compact .section-title {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .65fr) auto;
  margin-bottom: 16px;
}
.schedule-board-compact .section-title h2 {
  font-size: clamp(28px, 3vw, 46px);
}
.schedule-board-compact .schedule-grid {
  grid-template-columns: 1fr;
  overflow: visible;
}
.schedule-board-compact .schedule-day {
  display: grid;
  grid-template-columns: 180px repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}
.schedule-board-compact .schedule-day header {
  margin: 0;
  padding: 0 14px 0 0;
  border-bottom: 0;
  border-right: 1px solid rgba(32,231,255,.16);
}
.schedule-board-compact .schedule-slot {
  margin-top: 0;
}
.schedule-day {
  min-width: 150px;
  border: 1px solid rgba(32,231,255,.22);
  border-radius: 6px;
  padding: 12px;
  background: rgba(2, 7, 18, .72);
}
.schedule-day.is-today {
  border-color: rgba(198,255,56,.72);
  box-shadow: inset 0 0 0 1px rgba(198,255,56,.2), 0 0 24px rgba(198,255,56,.08);
}
.schedule-day header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(32,231,255,.16);
}
.schedule-day header span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(32,231,255,.35);
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  text-transform: uppercase;
  background: rgba(32,231,255,.08);
}
.schedule-day header strong {
  font-size: 15px;
}
.schedule-slot {
  display: grid;
  gap: 5px;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255,255,255,.1);
  border-left: 3px solid var(--cyan);
  border-radius: 4px;
  background: rgba(255,255,255,.035);
}
.schedule-slot span {
  color: var(--acid);
  font: 900 11px/1 var(--mono);
}
.schedule-slot strong {
  font-size: 15px;
}
.schedule-slot em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}
.schedule-slot b {
  width: fit-content;
  padding: 4px 8px;
  border: 1px solid rgba(198,255,56,.35);
  border-radius: 999px;
  color: var(--acid);
  font: 900 10px/1 var(--mono);
  text-transform: uppercase;
  background: rgba(198,255,56,.08);
}
.schedule-slot.requests-open {
  border-left-color: var(--acid);
}
.schedule-slot.is-empty {
  border-left-color: rgba(255,255,255,.28);
  opacity: .76;
}
.ghost-action.compact {
  width: fit-content;
  padding: 10px 12px;
  margin-top: 8px;
}
.primary-action.compact {
  width: fit-content;
  min-width: 180px;
  padding: 12px 18px;
}

.request-board {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background:
    radial-gradient(circle at 12% 0%, rgba(198,255,56,.12), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(32,231,255,.12), transparent 34%),
    rgba(5, 9, 21, .78);
}
.request-board .section-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, .7fr);
  gap: 18px;
  align-items: end;
  margin-bottom: 20px;
}
.request-board .section-title p:last-child {
  color: var(--muted);
  line-height: 1.6;
}
.request-panel {
  display: grid;
  grid-template-columns: minmax(260px, .55fr) minmax(0, 1fr);
  gap: 18px;
}
.request-panel.is-closed {
  grid-template-columns: minmax(0, 1fr);
}
.request-panel.is-closed .request-form {
  display: none;
}
.request-status,
.request-form {
  border: 1px solid rgba(32,231,255,.2);
  border-radius: 6px;
  padding: 18px;
  background: rgba(2, 7, 18, .7);
}
.request-status span {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  margin-bottom: 14px;
  border: 1px solid rgba(198,255,56,.34);
  color: var(--acid);
  font: 900 11px/1 var(--mono);
  letter-spacing: .12em;
  background: rgba(198,255,56,.08);
}
.request-panel.is-closed .request-status span {
  border-color: rgba(255,157,54,.36);
  color: var(--orange);
  background: rgba(255,157,54,.08);
}
.request-status strong,
.request-status em {
  display: block;
}
.request-status strong {
  font-size: 20px;
  margin-bottom: 8px;
}
.request-status em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}
.request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.request-form label,
.request-form label span {
  display: grid;
  gap: 7px;
}
.request-form label span {
  color: var(--muted);
  font: 900 11px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.request-form input,
.request-form textarea {
  width: 100%;
  border: 1px solid rgba(32,231,255,.22);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0,0,0,.32);
  outline: none;
}
.request-form input:focus,
.request-form textarea:focus {
  border-color: rgba(198,255,56,.62);
  box-shadow: 0 0 0 3px rgba(198,255,56,.08);
}
.request-form input:disabled,
.request-form textarea:disabled {
  opacity: .55;
  cursor: not-allowed;
}
.request-message,
.request-form .form-note {
  grid-column: 1 / -1;
}
.request-form button {
  width: fit-content;
}
.form-note {
  min-height: 22px;
  color: var(--muted);
  margin: 0;
}
.form-note.is-ok { color: var(--acid); }
.form-note.is-bad { color: var(--orange); }
.is-hidden { display: none !important; }

.auth-board {
  min-height: 58vh;
  display: grid;
  place-items: center;
  padding: 48px 0 70px;
}
.auth-card {
  width: min(760px, 100%);
  padding: 34px;
  border: 1px solid rgba(32,231,255,.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(32,231,255,.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(198,255,56,.12), transparent 34%),
    rgba(4, 9, 22, .88);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
.auth-card h1 {
  margin: 0 0 12px;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .94;
}
.auth-card p {
  color: var(--muted);
  line-height: 1.65;
}
.auth-modal {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid rgba(32,231,255,.32);
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: transparent;
  box-shadow: 0 34px 120px rgba(0,0,0,.62);
}
.auth-modal::backdrop {
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(5px);
}
.auth-modal-card {
  width: 100%;
  padding: 28px;
}
.auth-modal-card h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 46px);
}
.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}
.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.auth-form label {
  display: grid;
  gap: 8px;
}
.auth-form label span {
  color: var(--muted);
  font: 900 11px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}
.auth-form input,
.auth-form textarea {
  width: 100%;
  border: 1px solid rgba(32,231,255,.26);
  border-radius: 5px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(0,0,0,.34);
  outline: none;
}
.auth-form input:focus,
.auth-form textarea:focus {
  border-color: rgba(198,255,56,.7);
  box-shadow: 0 0 0 3px rgba(198,255,56,.08);
}
.auth-form input:disabled {
  opacity: .7;
}
.auth-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.auth-switch {
  margin: 18px 0 0;
}
.auth-switch a {
  color: var(--acid);
  text-decoration: none;
}
.profile-card {
  width: min(900px, 100%);
}
.profile-view-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 18px;
}
.profile-view-card > div {
  border: 1px solid rgba(32,231,255,.18);
  border-radius: 5px;
  padding: 14px;
  background: rgba(2, 8, 18, .46);
}
.profile-view-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font: 900 10px/1 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.profile-view-card strong {
  color: var(--text);
  overflow-wrap: anywhere;
}
.profile-view-wide {
  grid-column: 1 / -1;
}
.profile-view-wide p {
  margin: 0;
}
.profile-edit-form {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(32,231,255,.14);
}
.profile-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.profile-flags span {
  border: 1px solid rgba(32,231,255,.18);
  background: rgba(32,231,255,.06);
  color: var(--muted);
  padding: 7px 9px;
  font: 800 11px/1 var(--mono);
}

.player-dock {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(880px, calc(100vw - 34px));
  border-radius: 6px;
  padding: 13px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 230px;
  gap: 14px;
  align-items: center;
  overflow: hidden;
}
.dock-wave {
  position: absolute;
  inset: 0;
  padding: 0;
  opacity: .28;
  pointer-events: none;
}
.dock-wave canvas { width: 100%; height: 100%; }
.is-audio-live .dock-wave { opacity: .38; }
.dock-play,
.dock-meta,
.volume { position: relative; z-index: 1; }
.dock-play {
  width: 62px;
  height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #06111d;
  background: linear-gradient(135deg, var(--acid), var(--cyan));
  clip-path: polygon(0 0, 78% 0, 100% 50%, 78% 100%, 0 100%);
  border: 0;
  border-radius: 0;
  padding-right: 8px;
}
.dock-meta strong,
.dock-meta em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}
.dock-meta em { color: var(--muted); margin-top: 3px; }
.volume {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
}
.volume input { width: 100%; accent-color: var(--cyan); }

.archive-modal {
  color: var(--text);
  width: min(760px, calc(100vw - 30px));
  border-radius: 6px;
  padding: 30px;
}
.archive-modal::backdrop { background: rgba(0,0,0,.7); }
.modal-close { float: right; padding: 10px 12px; }

@media (max-width: 1120px) {
  .top-shell,
  .site-shell { min-width: 0; width: min(100% - 26px, 920px); }
  .portal-grid,
  .now-console,
  .magazine-grid,
  .community-grid,
  .ost-grid,
  .game-hero-card,
  .game-content-grid,
  .auth-grid,
  .profile-view-card,
  .request-board .section-title,
  .request-panel,
  .request-form,
  .schedule-board .section-title { grid-template-columns: 1fr; }
  .schedule-grid { grid-template-columns: repeat(7, minmax(180px, 1fr)); }
  .schedule-board-compact .schedule-day { grid-template-columns: 1fr; }
  .schedule-board-compact .schedule-day header {
    padding: 0 0 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(32,231,255,.16);
  }
  .top-shell { display: grid; }
  .main-nav { justify-content: flex-start; }
  .command-panel { min-height: auto; }
  .command-panel::after { opacity: .14; width: 260px; }
  .hero-copy { max-width: 100%; }
  .deck-body { grid-template-columns: 1fr; }
  .reel-left { left: 8%; }
  .reel-right { right: 8%; }
}

@media (max-width: 620px) {
  body { padding-bottom: 160px; }
  .hero-copy { margin-top: 34px; }
  .hero-copy h1 { font-size: clamp(42px, 15vw, 72px); }
  .command-panel,
  .side-card,
  .news-lead,
  .news-card,
  .topic-card { padding: 18px; border-radius: 6px; }
  .game-hero-card,
  .game-panel { padding: 18px; }
  .game-cover { min-height: 240px; }
  .game-meta-grid { grid-template-columns: 1fr; }
  .command-panel::after { display: none; }
  .cover-terminal { min-height: 360px; }
  .reel-stage { height: 145px; }
  .reel { width: 104px; border-width: 8px; }
  .reel i { width: 30%; height: 14%; }
  .tape-line { left: 112px; right: 112px; }
  .tape-head { width: 62px; height: 40px; }
  .deck-sub { display: none; }
  .player-dock { grid-template-columns: auto 1fr; }
  .volume { grid-column: 1 / -1; }
}

/* Revert failed reel-to-reel experiment back to the compact terminal widget. */
.reel-deck {
  min-height: 270px;
  padding: 0;
  border: 1px solid var(--line-hot);
  border-radius: 6px;
  overflow: hidden;
  background: #060a16;
  box-shadow:
    inset 0 0 0 4px rgba(0,0,0,.65),
    inset 0 0 36px rgba(32,231,255,.08),
    10px 10px 0 rgba(255,62,128,.16);
}
.reel-deck .reel-head {
  height: 44px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(32,231,255,.18);
  background: rgba(255,255,255,.035);
}
.reel-deck .deck-brand,
.reel-deck .deck-sub {
  display: inline-flex;
  width: auto;
  height: auto;
  padding: 5px 7px;
  border: 1px solid rgba(32,231,255,.35);
  background: rgba(32,231,255,.15);
  color: var(--cyan);
  font: 900 9px/1 var(--mono);
  letter-spacing: .12em;
  text-shadow: none;
}
.reel-deck .deck-sub {
  color: var(--orange);
  border-color: rgba(255,157,54,.45);
  background: rgba(255,157,54,.12);
}
.reel-deck .reel-stage,
.reel-deck .cassette-panel,
.reel-deck .deck-knobs,
.reel-deck .olymp-knob,
.reel-deck .olymp-cover,
.reel-deck .vu-window {
  display: none;
}
.reel-deck .deck-body {
  min-height: 232px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  gap: 0;
  padding: 22px;
  background:
    linear-gradient(rgba(32,231,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px),
    radial-gradient(circle at 75% 18%, rgba(138,93,255,.22), transparent 36%);
  background-size: 38px 38px, 38px 38px, auto;
}
.reel-deck .deck-meters {
  height: 72px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(32,231,255,.2);
  border-radius: 4px;
  background:
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255,255,255,.08) 1px, transparent 1px),
    rgba(3, 8, 18, .72);
  background-size: 28px 100%, 100% 18px, auto;
}

/* Real retro hardware image slot. Put the supplied collage at this path. */
.command-panel::after {
  right: clamp(14px, 3vw, 48px);
  top: clamp(92px, 9vw, 140px);
  width: min(35vw, 430px);
  aspect-ratio: 1.15;
  opacity: .46;
  transform: rotate(-4deg);
  border: 0;
  box-shadow: none;
  clip-path: none;
  background: url("/site/assets/img/retro-hardware.png") center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,.42)) drop-shadow(0 0 24px rgba(32,231,255,.18));
}

.telegram-link-box {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(46, 252, 255, 0.22);
  background: rgba(4, 12, 24, 0.74);
  box-shadow: inset 0 0 0 1px rgba(168, 255, 62, 0.08);
}
.telegram-link-box strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}
.telegram-link-box p {
  margin: 0;
  color: var(--muted);
}
.telegram-link-box code {
  color: var(--acid);
  background: rgba(168, 255, 62, 0.10);
  border: 1px solid rgba(168, 255, 62, 0.22);
  padding: 2px 6px;
}
.telegram-link-box .form-note a {
  color: var(--cyan);
}

/* Final home layout: compact broadcast widget, full controls stay on /air. */
.portal-grid-home .command-panel {
  min-height: 330px;
  padding: clamp(22px, 2.6vw, 34px);
  display: grid;
  grid-template-columns: minmax(520px, 1.15fr) minmax(320px, .85fr);
  grid-template-rows: auto auto 1fr;
  grid-template-areas:
    "console console"
    "cap ."
    ". copy";
  gap: 16px 34px;
  align-items: start;
}
.portal-grid-home .command-panel::after {
  display: none;
}
.portal-grid-home .panel-cap {
  grid-area: cap;
  align-self: start;
  margin-top: 0;
}
.portal-grid-home .hero-copy {
  grid-area: copy;
  justify-self: start;
  align-self: start;
  max-width: 620px;
  margin: 0;
  padding: 16px 0 0;
}
.portal-grid-home .hero-copy h1 {
  max-width: 620px;
  margin: 8px 0 10px;
  font-size: clamp(28px, 3vw, 48px);
  line-height: .96;
}
.portal-grid-home .hero-copy p:not(.section-label) {
  max-width: 600px;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.42;
}
.portal-grid-home .now-console {
  grid-area: console;
  width: 100%;
  margin: 0;
  align-self: end;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.portal-grid-home .cover-terminal.reel-deck {
  min-height: 76px;
  border-color: rgba(32,231,255,.36);
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.65),
    inset 0 0 18px rgba(32,231,255,.07);
}
.portal-grid-home .reel-deck .reel-head {
  display: none;
}
.portal-grid-home .reel-deck .deck-brand,
.portal-grid-home .reel-deck .deck-sub {
  padding: 4px 6px;
  font-size: 8px;
}
.portal-grid-home .reel-deck .deck-body {
  min-height: 76px;
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
  background:
    linear-gradient(rgba(32,231,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,231,255,.07) 1px, transparent 1px),
    rgba(2, 8, 18, .58);
  background-size: 30px 30px, 30px 30px, auto;
}
.portal-grid-home .reel-deck .deck-meters {
  height: 100%;
  min-height: 58px;
  margin: 0;
  border-color: rgba(32,231,255,.18);
}
.portal-grid-home .reel-deck .deck-meters canvas {
  height: 100%;
}
.portal-grid-home .signal-card {
  min-height: 58px;
  padding: 11px 16px;
  align-self: stretch;
  display: grid;
  align-content: center;
}
.portal-grid-home .signal-card strong {
  font-size: clamp(18px, 1.65vw, 24px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-grid-home .signal-card em {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-grid-home .console-actions {
  display: none;
}
@media (max-width: 1120px) {
  .portal-grid-home .command-panel {
    min-height: 0;
    grid-template-columns: 1fr;
    grid-template-areas:
      "console"
      "cap"
      "copy";
  }
  .portal-grid-home .panel-cap {
    margin-top: 0;
  }
  .portal-grid-home .hero-copy {
    justify-self: start;
    max-width: 760px;
  }
  .portal-grid-home .hero-copy h1,
  .portal-grid-home .hero-copy p:not(.section-label) {
    max-width: 760px;
  }
}
@media (max-width: 620px) {
  .portal-grid-home .cover-terminal.reel-deck {
    min-height: 170px;
  }
  .portal-grid-home .reel-deck .deck-body {
    grid-template-columns: 1fr;
  }
  .portal-grid-home .reel-deck .deck-meters,
  .portal-grid-home .signal-card {
    min-height: 82px;
  }
}

/* Fixed home composition by marked layout: top strip + lower copy. */
.portal-grid-home .command-panel {
  position: relative;
  min-height: 500px;
  padding: 30px;
  display: block;
}
.portal-grid-home .now-console {
  position: absolute;
  left: 30px;
  right: 30px;
  top: 30px;
  height: 70px;
  width: auto;
  margin: 0;
  display: block;
}
.portal-grid-home .cover-terminal.reel-deck {
  min-height: 70px;
  height: 70px;
  border: 1px solid rgba(32,231,255,.45);
  background:
    linear-gradient(rgba(32,231,255,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,231,255,.075) 1px, transparent 1px),
    rgba(2, 8, 18, .7);
  background-size: 28px 28px, 28px 28px, auto;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.55);
}
.portal-grid-home .reel-deck .deck-body {
  min-height: 68px;
  height: 68px;
  padding: 6px;
  display: grid;
  grid-template-columns: minmax(190px, 24%) minmax(0, 1fr);
  gap: 10px;
  background: transparent;
}
.portal-grid-home .reel-deck .deck-meters {
  min-height: 54px;
  height: 54px;
  border: 1px solid rgba(32,231,255,.32);
  background:
    linear-gradient(90deg, rgba(32,231,255,.08) 1px, transparent 1px),
    rgba(3, 8, 18, .74);
  background-size: 26px 100%, auto;
  position: relative;
  top: 18px;
}
.portal-grid-home .reel-deck .deck-meters canvas {
  height: 54px;
}
.portal-grid-home .signal-card {
  min-height: 54px;
  height: 54px;
  padding: 8px 14px;
  display: grid;
  align-content: center;
  background: rgba(3, 8, 18, .78);
  border: 1px solid rgba(32,231,255,.22);
}
.portal-grid-home .signal-card span {
  font-size: 9px;
}
.portal-grid-home .signal-card strong {
  font-size: clamp(18px, 1.4vw, 24px);
}
.portal-grid-home .signal-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  overflow: hidden;
}
.portal-grid-home .signal-card span,
.portal-grid-home .signal-card strong,
.portal-grid-home .signal-card em {
  display: inline-block;
  margin: 0;
  white-space: nowrap;
  line-height: 1;
}
.portal-grid-home .signal-card span {
  flex: 0 0 auto;
  font-size: 9px;
  letter-spacing: .18em;
}
.portal-grid-home .signal-card strong {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 52%;
  font-size: clamp(15px, 1.1vw, 18px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-grid-home .signal-card em {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--muted);
  font-size: clamp(13px, .95vw, 16px);
  overflow: hidden;
  text-overflow: ellipsis;
}
.portal-grid-home .panel-cap {
  position: absolute;
  left: 30px;
  top: 150px;
  margin: 0;
}
.portal-grid-home .hero-copy {
  position: absolute;
  left: clamp(35px, 17vw, 35px);
  right: auto;
  top: 208px;
  width: min(720px, 48vw);
  max-width: 720px;
  padding: 0;
}
.portal-grid-home .hero-copy h1 {
  margin: 8px 0 14px;
  max-width: 720px;
  font-size: clamp(42px, 4.5vw, 78px);
  line-height: .92;
}
.portal-grid-home .hero-copy p:not(.section-label) {
  max-width: 560px;
  font-size: clamp(16px, 1.25vw, 20px);
}
.portal-grid-home .console-actions {
  display: none;
}
@media (max-width: 1120px) {
  .portal-grid-home .command-panel {
    min-height: 0;
    display: grid;
    gap: 16px;
  }
  .portal-grid-home .now-console,
  .portal-grid-home .panel-cap,
  .portal-grid-home .hero-copy {
    position: static;
    width: auto;
    max-width: none;
  }
  .portal-grid-home .now-console {
    height: auto;
  }
}

/* Home polish: make lower blocks behave like a real landing page, not a stacked draft. */
.schedule-board-compact,
.portal-grid-home ~ .magazine-grid,
.portal-grid-home ~ .community-grid {
  width: 100%;
}
.schedule-board-compact {
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr) auto;
  gap: clamp(18px, 2vw, 34px);
  align-items: stretch;
  padding: clamp(24px, 2.5vw, 38px);
}
.schedule-board-compact .section-title {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: 1 / -1;
  align-content: center;
  gap: 12px;
  padding: 0;
}
.schedule-board-compact .section-title h2 {
  margin: 0;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: .9;
}
.schedule-board-compact .section-title p:not(.section-label) {
  max-width: 720px;
  margin: 0;
}
.schedule-board-compact .section-title .section-label,
.schedule-board-compact .section-title h2,
.schedule-board-compact .section-title .ghost-action {
  grid-column: 1;
}
.schedule-board-compact .section-title p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
}
.schedule-board-compact .schedule-grid {
  margin: 0;
  display: grid;
  align-content: center;
  grid-column: 1 / -1;
}
.schedule-board-compact .schedule-day {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 96px;
}
.schedule-board-compact .schedule-day header {
  min-width: 0;
}
.schedule-board-compact .schedule-slot {
  min-width: 0;
}
.portal-grid-home ~ .magazine-grid {
  grid-template-columns: minmax(300px, .95fr) repeat(2, minmax(260px, 1fr));
  align-items: stretch;
}
.portal-grid-home ~ .magazine-grid .news-lead,
.portal-grid-home ~ .magazine-grid .news-card,
.portal-grid-home ~ .community-grid .section-title,
.portal-grid-home ~ .community-grid .topic-card {
  min-height: 220px;
}
.portal-grid-home ~ .magazine-grid .news-lead {
  display: grid;
  align-content: space-between;
}
.portal-grid-home ~ .magazine-grid .news-card h3,
.portal-grid-home ~ .community-grid .topic-card h3 {
  overflow-wrap: anywhere;
}
.portal-grid-home ~ .community-grid {
  grid-template-columns: minmax(300px, .95fr) repeat(3, minmax(220px, 1fr));
  align-items: stretch;
}
.portal-grid-home ~ .community-grid .section-title {
  display: grid;
  align-content: space-between;
}
.portal-grid-home ~ .community-grid .section-title h2 {
  font-size: clamp(34px, 3.4vw, 58px);
}

@media (max-width: 1120px) {
  .schedule-board-compact,
  .portal-grid-home ~ .magazine-grid,
  .portal-grid-home ~ .community-grid {
    grid-template-columns: 1fr;
  }
  .schedule-board-compact .section-title {
    display: grid;
    grid-template-columns: 1fr;
  }
  .schedule-board-compact .section-title .section-label,
  .schedule-board-compact .section-title h2,
  .schedule-board-compact .section-title p:not(.section-label),
  .schedule-board-compact .section-title .ghost-action {
    grid-column: auto;
    grid-row: auto;
  }
  .schedule-board-compact .schedule-day {
    grid-template-columns: 1fr;
  }
  .portal-grid-home ~ .magazine-grid .news-lead,
  .portal-grid-home ~ .magazine-grid .news-card,
  .portal-grid-home ~ .community-grid .section-title,
  .portal-grid-home ~ .community-grid .topic-card {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .portal-grid-home .command-panel {
    padding: 16px;
  }
  .portal-grid-home .reel-deck .deck-body {
    grid-template-columns: 1fr;
    height: auto;
  }
  .portal-grid-home .reel-deck .deck-meters {
    top: 0;
  }
  .portal-grid-home .signal-card {
    height: auto;
    min-height: 56px;
    flex-wrap: wrap;
    row-gap: 7px;
  }
  .portal-grid-home .signal-card strong,
  .portal-grid-home .signal-card em {
    max-width: 100%;
    flex-basis: auto;
  }
  .portal-grid-home .hero-copy h1 {
    font-size: clamp(38px, 13vw, 62px);
  }
  .schedule-board-compact,
  .portal-grid-home ~ .magazine-grid,
  .portal-grid-home ~ .community-grid {
    padding: 18px;
  }
  .schedule-board-compact .section-title h2,
  .portal-grid-home ~ .community-grid .section-title h2 {
    font-size: clamp(32px, 12vw, 48px);
  }
}

/* Air page: dedicated broadcast workspace, not a repeated homepage promo. */
.portal-grid-air {
  grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr);
  align-items: start;
}
.portal-grid-air .command-panel {
  min-height: 520px;
  padding: clamp(22px, 2.4vw, 34px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
}
.portal-grid-air .hero-copy,
.portal-grid-air .retro-badges {
  display: none;
}
.portal-grid-air .panel-cap {
  width: fit-content;
  margin: 0;
}
.portal-grid-air .now-console {
  margin: 0;
  grid-template-columns: 1fr;
  align-self: stretch;
}
.portal-grid-air .cover-terminal.reel-deck {
  min-height: 410px;
  height: 100%;
}
.portal-grid-air .reel-deck .reel-head {
  display: flex;
}
.portal-grid-air .reel-deck .deck-body {
  min-height: 330px;
  display: grid;
  grid-template-columns: 1fr;
  align-content: end;
}
.portal-grid-air .reel-deck .deck-meters {
  min-height: 92px;
}
.portal-grid-air .reel-deck .deck-meters canvas {
  height: 92px;
}
.portal-grid-air .signal-card {
  min-height: 128px;
}
.portal-grid-air .signal-card strong {
  font-size: clamp(28px, 3.2vw, 52px);
  line-height: 1;
}
.portal-grid-air .signal-card em {
  font-size: clamp(16px, 1.2vw, 20px);
}
.portal-grid-air .right-stack {
  display: grid;
  gap: 18px;
}
.portal-grid-air .status-card .chat-log {
  min-height: 300px;
}
.portal-grid-air + .schedule-board-compact {
  margin-top: 22px;
}

@media (max-width: 1120px) {
  .portal-grid-air {
    grid-template-columns: 1fr;
  }
  .portal-grid-air .cover-terminal.reel-deck,
  .portal-grid-air .command-panel {
    min-height: 0;
  }
  .portal-grid-air .reel-deck .deck-body {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  .portal-grid-air .command-panel {
    padding: 16px;
  }
  .portal-grid-air .reel-deck .deck-body {
    min-height: 220px;
  }
  .portal-grid-air .signal-card strong {
    font-size: clamp(26px, 10vw, 42px);
  }
}

/* Full inner pages: keep them readable and prevent homepage layout bleed. */
.schedule-board-full {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: clamp(24px, 2.4vw, 36px);
}
.schedule-board-full .section-title {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: end;
  margin-bottom: 24px;
  padding: 0;
}
.schedule-board-full .section-title .section-label,
.schedule-board-full .section-title h2 {
  grid-column: 1;
}
.schedule-board-full .section-title h2 {
  margin: 0;
  font-size: clamp(36px, 3.6vw, 60px);
  line-height: .94;
}
.schedule-board-full .section-title p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 760px;
  margin: 0;
}
.schedule-board-full .schedule-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
}
.schedule-board-full .schedule-day {
  display: block;
  min-width: 150px;
}

.request-board {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  padding: clamp(24px, 2.4vw, 36px);
}
.request-board .section-title {
  display: grid;
  grid-template-columns: minmax(220px, 380px) minmax(0, 1fr);
  gap: clamp(18px, 2.2vw, 34px);
  align-items: end;
  margin-bottom: 24px;
  padding: 0;
}
.request-board .section-title .section-label,
.request-board .section-title h2 {
  grid-column: 1;
}
.request-board .section-title h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 56px);
  line-height: .94;
}
.request-board .section-title p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  max-width: 760px;
  margin: 0;
}
.request-panel.is-closed {
  max-width: none;
}
.request-panel.is-closed .request-status {
  min-height: 92px;
  display: grid;
  align-content: center;
}

@media (max-width: 1120px) {
  .schedule-board-full .section-title,
  .request-board .section-title {
    grid-template-columns: 1fr;
  }
  .schedule-board-full .section-title .section-label,
  .schedule-board-full .section-title h2,
  .schedule-board-full .section-title p:not(.section-label),
  .request-board .section-title .section-label,
  .request-board .section-title h2,
  .request-board .section-title p:not(.section-label) {
    grid-column: auto;
    grid-row: auto;
  }
}

.page-schedule .site-shell,
.page-requests .site-shell {
  padding-top: clamp(20px, 3vw, 42px);
}
.page-schedule .schedule-board-full,
.page-requests .request-board {
  margin-top: 0;
}
.page-schedule .schedule-board-full .section-title {
  grid-template-columns: minmax(240px, 360px) minmax(420px, 1fr);
  align-items: center;
}
.page-schedule .schedule-board-full .section-title p:not(.section-label) {
  align-self: center;
  font-size: clamp(15px, 1.05vw, 18px);
}
.page-schedule .schedule-board-full .schedule-grid {
  grid-template-columns: repeat(7, minmax(145px, 1fr));
  align-items: stretch;
}
.page-schedule .schedule-board-full .schedule-day {
  min-height: 300px;
}
.page-schedule .schedule-board-full .schedule-slot {
  min-height: 118px;
}

.page-requests .request-board {
  display: grid;
  gap: 24px;
}
.page-requests .request-board .section-title {
  grid-template-columns: minmax(240px, 380px) minmax(420px, 1fr);
  align-items: center;
  margin-bottom: 0;
}
.page-requests .request-board .section-title h2 {
  font-size: clamp(38px, 3.8vw, 64px);
}
.page-requests .request-board .section-title p:not(.section-label) {
  align-self: center;
  font-size: clamp(15px, 1.05vw, 18px);
}
.page-requests .request-panel {
  width: 100%;
}
.page-requests .request-panel.is-closed .request-status {
  min-height: 104px;
  padding: 20px 22px;
}

@media (max-width: 980px) {
  .page-schedule .schedule-board-full .section-title,
  .page-requests .request-board .section-title {
    grid-template-columns: 1fr;
  }
  .page-schedule .schedule-board-full .section-title p:not(.section-label),
  .page-requests .request-board .section-title p:not(.section-label) {
    grid-column: auto;
    grid-row: auto;
  }
  .page-schedule .schedule-board-full .schedule-grid {
    grid-template-columns: repeat(7, minmax(190px, 1fr));
  }
}

/* Stable final layout for schedule/request pages. Keep it scoped: earlier home
   hero rules must not leak into functional pages. */
.schedule-board-compact {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: stretch;
}
.schedule-board-compact .section-title {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr) auto;
  gap: clamp(16px, 2vw, 28px);
  align-items: center;
  margin: 0;
}
.schedule-board-compact .section-title .section-label,
.schedule-board-compact .section-title h2 {
  grid-column: 1;
}
.schedule-board-compact .section-title h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: .9;
}
.schedule-board-compact .section-title p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 760px;
  margin: 0;
  font-size: clamp(15px, 1vw, 18px);
}
.schedule-board-compact .section-title .ghost-action {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: center;
}
.schedule-board-compact .schedule-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}
.schedule-board-compact .schedule-day {
  display: grid;
  grid-template-columns: minmax(140px, 190px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 96px;
}
.schedule-board-full .section-title,
.request-board .section-title {
  display: grid;
  grid-template-columns: minmax(240px, 380px) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 32px);
  align-items: center;
}
.schedule-board-full .section-title .section-label,
.schedule-board-full .section-title h2,
.request-board .section-title .section-label,
.request-board .section-title h2 {
  grid-column: 1;
}
.schedule-board-full .section-title p:not(.section-label),
.request-board .section-title p:not(.section-label) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  max-width: 780px;
  margin: 0;
}

@media (max-width: 1000px) {
  .schedule-board-compact,
  .schedule-board-compact .section-title,
  .schedule-board-full .section-title,
  .request-board .section-title {
    grid-template-columns: 1fr;
  }
  .schedule-board-compact .section-title .section-label,
  .schedule-board-compact .section-title h2,
  .schedule-board-compact .section-title p:not(.section-label),
  .schedule-board-compact .section-title .ghost-action,
  .schedule-board-full .section-title .section-label,
  .schedule-board-full .section-title h2,
  .schedule-board-full .section-title p:not(.section-label),
  .request-board .section-title .section-label,
  .request-board .section-title h2,
  .request-board .section-title p:not(.section-label) {
    grid-column: auto;
    grid-row: auto;
  }
  .schedule-board-compact .schedule-day {
    grid-template-columns: 1fr;
  }
}

/* Request page: show the next scheduled request window without affecting home layout. */
.page-requests .request-panel.is-closed {
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(260px, .95fr);
  gap: 18px;
  align-items: stretch;
}
.page-requests .request-next-window {
  border: 1px solid rgba(198,255,56,.22);
  border-radius: 6px;
  padding: 20px 22px;
  background:
    linear-gradient(90deg, rgba(198,255,56,.06) 1px, transparent 1px),
    rgba(2, 7, 18, .7);
  background-size: 24px 100%, auto;
  display: grid;
  align-content: center;
  gap: 8px;
}
.page-requests .request-next-window span {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(32,231,255,.28);
  color: var(--cyan);
  font: 900 11px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  background: rgba(32,231,255,.06);
}
.page-requests .request-next-window strong,
.page-requests .request-next-window em,
.page-requests .request-next-window p,
.page-requests .request-next-window small {
  display: block;
  margin: 0;
}
.page-requests .request-next-window strong {
  font-size: 20px;
}
.page-requests .request-next-window em {
  color: var(--acid);
  font-style: normal;
  font-weight: 800;
}
.page-requests .request-next-window p {
  color: var(--text);
  font-weight: 800;
}
.page-requests .request-next-window small {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .page-requests .request-panel.is-closed {
    grid-template-columns: 1fr;
  }
  .related-post-grid {
    grid-template-columns: 1fr;
  }
}

.contacts-board {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, .72fr) minmax(420px, 1fr);
  gap: clamp(18px, 2.4vw, 34px);
  align-items: start;
}
.contacts-hero,
.contact-card,
.contact-rules {
  border: 1px solid rgba(32,231,255,.2);
  background:
    linear-gradient(90deg, rgba(32,231,255,.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(10,20,42,.92), rgba(3,8,18,.86));
  background-size: 32px 100%, auto;
  box-shadow: 0 18px 60px rgba(0,0,0,.26);
}
.contacts-hero {
  min-height: 360px;
  padding: clamp(26px, 3vw, 46px);
}
.contacts-hero h1 {
  max-width: 720px;
  margin: 0 0 18px;
  font-size: clamp(46px, 6vw, 96px);
  line-height: .88;
  letter-spacing: -.06em;
}
.contacts-hero p:not(.section-label) {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 20px);
  line-height: 1.65;
}
.contact-channel-grid {
  display: grid;
  gap: 14px;
}
.contact-card {
  min-height: 138px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 18px;
}
.contact-card.is-live {
  border-color: rgba(198,255,56,.28);
}
.contact-card.is-pending {
  border-style: dashed;
}
.contact-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(32,231,255,.28);
  background: linear-gradient(135deg, rgba(32,231,255,.16), rgba(198,255,56,.1));
  color: var(--acid);
  font-size: 22px;
}
.contact-card small,
.contact-rules .section-label {
  color: var(--cyan);
}
.contact-card h2 {
  margin: 3px 0 8px;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1;
}
.contact-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.contact-card em,
.contact-card b {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  padding: 5px 8px;
  border: 1px solid rgba(198,255,56,.24);
  color: var(--acid);
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
}
.contact-card b {
  align-self: center;
  margin-top: 0;
  color: var(--orange);
  border-color: rgba(255,138,43,.32);
  background: rgba(255,138,43,.08);
}
.contact-rules {
  grid-column: 1 / -1;
  padding: clamp(22px, 2.6vw, 36px);
}
.contact-rules h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3vw, 52px);
  line-height: .95;
}
.contact-rules ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  list-style: none;
}
.contact-rules li {
  padding: 14px 16px;
  border: 1px solid rgba(32,231,255,.15);
  background: rgba(3,8,18,.54);
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 980px) {
  .contacts-board,
  .contact-rules ul {
    grid-template-columns: 1fr;
  }
  .contact-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .contact-card .ghost-action,
  .contact-card b {
    grid-column: 2;
    justify-self: start;
  }
}
