:root {
  color-scheme: dark;
  --telegram: #249bdc;
  --telegram-hover: #1f8fca;
  --surface: #212121;
  --text: #f4f4f4;
  --muted: #a6a6ad;
  font-family: Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: #000 url("pattern.svg") center top / 520px 360px repeat;
}
button { font: inherit; }
.topbar {
  position: relative;
  z-index: 2;
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: #202020;
  border-top: 3px solid #111;
}
.telegram-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -.02em;
}
.telegram-brand img { width: 40px; height: 40px; }
.top-action,
.primary-action {
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: var(--telegram);
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.top-action {
  min-height: 42px;
  padding: 0 22px;
  font-size: .82rem;
}
.primary-action {
  min-width: 184px;
  min-height: 48px;
  padding: 0 24px;
  font-size: .88rem;
}
.top-action:hover,
.primary-action:hover { background: var(--telegram-hover); transform: translateY(-1px); }
.top-action:focus-visible,
.primary-action:focus-visible { outline: 3px solid rgba(36,155,220,.4); outline-offset: 3px; }
.stage {
  min-height: calc(100vh - 64px);
  padding: 32px 18px 56px;
  display: grid;
  place-items: start center;
}
.channel-card {
  width: min(100%, 360px);
  padding: 28px 32px 22px;
  text-align: center;
  background: var(--surface);
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(0,0,0,.44);
}
.channel-avatar {
  width: 112px;
  height: 112px;
  margin: 0 auto 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0,0,0,.38);
}
.channel-avatar img { display: block; width: 100%; height: 100%; }
h1 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.025em;
}
.channel-meta {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .98rem;
  font-weight: 500;
}
.description {
  margin: 20px 0 22px;
  text-align: left;
  color: #f3f3f3;
  font-size: .9rem;
  line-height: 1.5;
}
.description strong { font-weight: 400; }
.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #999da4;
  font-size: .86rem;
}
@media (max-width: 620px) {
  .topbar { height: 58px; padding: 0 14px; border-top-width: 2px; }
  .telegram-brand { gap: 9px; font-size: 1.25rem; }
  .telegram-brand img { width: 36px; height: 36px; }
  .top-action { min-height: 38px; padding: 0 14px; font-size: .68rem; }
  .stage { min-height: calc(100vh - 58px); padding: 22px 12px 38px; }
  .channel-card { padding: 26px 24px 20px; border-radius: 16px; }
  .channel-avatar { width: 104px; height: 104px; margin-bottom: 18px; }
  h1 { font-size: 1.45rem; }
  .channel-meta { font-size: .94rem; }
  .description { font-size: .88rem; }
  .primary-action { min-width: 0; width: 100%; }
}
@media (max-width: 400px) {
  .top-action { width: 44px; padding: 0; font-size: 0; }
  .top-action::before { content: "↗"; font-size: 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
