:root {
  --bg: #f6f7f9;
  --ink: #202c36;
  --muted: #85909b;
  --accent: #237265;
  --line: #e9edf0;
  --radius: 16px;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 14px;
  line-height: 1.7;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 3px solid #86bdb0;
  outline-offset: 4px;
}
h1,
h2,
h3,
p,
figure {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.4;
}
a,
button,
input,
textarea,
p {
  overflow-wrap: anywhere;
}
.muted {
  color: var(--muted);
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  padding: 8px 12px;
  background: white;
  z-index: 100;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  height: 78px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1120px;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.brand img {
  flex-shrink: 0;
  border-radius: 10px;
}
.brand span {
  max-width: 310px;
  line-height: 1.4;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 36px;
  flex-shrink: 0;
}
.header-nav > a.active {
  font-size: 13px;
  color: var(--accent);
  position: relative;
}
.header-nav > a.active:after {
  content: "";
  position: absolute;
  bottom: -27px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--accent);
  color: white;
  padding: 11px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  transition: background 0.18s;
}
.button:hover {
  background: #18594f;
}
.button.small {
  padding: 9px 16px;
}
.button.secondary {
  background: #edf1f3;
  color: var(--ink);
}
.button.full {
  width: 100%;
}
.button[aria-disabled="true"] {
  opacity: 0.82;
  cursor: pointer;
}
.page-shell {
  max-width: 1120px;
  margin: auto;
  padding: 0 32px 64px;
}
.intro {
  padding: 52px 0 42px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--accent);
  font-weight: 700;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  background: #459984;
  border-radius: 100%;
}
.status-dot.amber {
  background: #c69a53;
}
.preview-label {
  letter-spacing: 0.3px;
  font-size: 10px;
  font-weight: 400;
  color: #8e979e;
  border-left: 1px solid #d4dcda;
  padding-left: 10px;
  margin-left: 3px;
}
.intro h1 {
  font-size: 34px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 14px 0 12px;
  overflow-wrap: anywhere;
  max-width: 850px;
}
.intro > p {
  color: #7d8890;
  font-size: 14px;
  max-width: 700px;
}
.content-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.channel-panel {
  min-width: 0;
  position: sticky;
  top: 24px;
}
.channel-cover {
  height: 105px;
  background: #e4efeb;
  border-radius: 14px 14px 0 0;
  position: relative;
  overflow: hidden;
  padding: 22px;
  color: #4c8071;
  font-size: 11px;
  letter-spacing: 2px;
}
.cover-orbit {
  position: absolute;
  width: 168px;
  height: 168px;
  border: 1px solid #a7c8ba;
  border-radius: 50%;
  top: 40px;
  right: -40px;
}
.cover-orbit:after,
.cover-orbit:before {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid #b2cebf;
  border-radius: 50%;
}
.cover-orbit:after {
  inset: 32px;
}
.channel-body {
  position: relative;
  background: white;
  padding: 0 24px 22px;
  border-radius: 0 0 14px 14px;
}
.channel-avatar {
  position: relative;
  top: -26px;
  margin-bottom: -13px;
  border: 4px solid white;
  border-radius: 19px;
}
.channel-body > .tag {
  position: absolute;
  right: 22px;
  top: 18px;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f0f4f3;
  color: #769087;
  padding: 3px 8px;
  border-radius: 5px;
  font-size: 10px;
  white-space: nowrap;
}
.channel-body h2 {
  font-size: 20px;
  margin-top: 7px;
}
.handle {
  font-size: 12px;
  margin-top: 3px;
}
.channel-body > p:not(.handle) {
  font-size: 12px;
  color: #819099;
  line-height: 1.95;
  margin: 17px 0 22px;
}
.channel-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 10px;
  color: #98a19e;
  margin-top: 14px;
}
.about-preview {
  padding: 28px 8px;
  color: #99a2a9;
}
.mini-label {
  font-size: 9px;
  letter-spacing: 1.7px;
}
.about-preview p {
  font-size: 12px;
  line-height: 2;
  margin: 10px 0 16px;
}
.about-preview > span:last-child {
  font-size: 10px;
}
.feed-section {
  min-width: 0;
}
.feed-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 15px;
}
.feed-heading > div {
  display: flex;
  gap: 13px;
  align-items: baseline;
  flex-wrap: wrap;
}
.feed-heading h2 {
  font-size: 18px;
}
.feed-heading .muted {
  font-size: 11px;
}
.notice {
  font-size: 11px;
  color: #82938c;
  background: #edf3f0;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
}
.post-card {
  background: white;
  border-radius: var(--radius);
  padding: 25px 28px 0;
  margin-bottom: 20px;
  box-shadow: 0 3px 16px #263a3004;
  min-width: 0;
  overflow: hidden;
  scroll-margin-top: 24px;
}
.post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 19px;
}
.post-avatar {
  border-radius: 10px;
}
.post-author {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.post-author strong {
  font-size: 12px;
  font-weight: 600;
}
.post-author time {
  font-size: 10px;
  color: #a0a8af;
  line-height: 1.7;
}
.post-type {
  font-size: 10px;
  color: #929da4;
  letter-spacing: 0.4px;
}
.post-text {
  font-size: 14px;
  line-height: 1.95;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.post-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.text-toggle {
  padding: 8px 0 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
}
.post-media {
  margin-top: 20px;
  overflow: hidden;
  border-radius: 9px;
}
.post-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1.66;
  object-fit: cover;
  background: #edf1ec;
}
.post-media.album {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.album figure:first-child {
  grid-column: 1/-1;
}
.album figure:first-child img {
  aspect-ratio: 2.1;
}
.album figure:not(:first-child) img {
  aspect-ratio: 1.4;
}
.video-placeholder {
  position: relative;
}
.video-placeholder:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #153e4921;
  pointer-events: none;
}
.play-symbol {
  display: grid;
  place-items: center;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  background: #fffffff0;
  color: var(--accent);
  padding-left: 3px;
  font-size: 18px;
  z-index: 1;
}
.video-label,
.video-duration {
  position: absolute;
  bottom: 12px;
  background: #18362e99;
  color: white;
  padding: 3px 8px;
  font-size: 10px;
  border-radius: 5px;
  z-index: 1;
}
.video-label {
  left: 12px;
}
.video-duration {
  right: 12px;
}
.post-footer {
  margin-top: 22px;
  padding: 14px 0 16px;
  border-top: 1px solid #f1f3f4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 10px;
  color: #a1a9af;
}
.original-link {
  font-size: 11px;
  background: transparent;
  color: #81978f;
  padding: 2px 0;
}
.load-more {
  width: 100%;
  background: #edf0f2;
  color: #7a868d;
  padding: 13px;
  border-radius: 10px;
  font-size: 12px;
}
.load-more:hover {
  background: #e4e9eb;
}
.empty-state {
  text-align: center;
  background: white;
  padding: 68px 24px;
  border-radius: var(--radius);
  color: #8b979f;
}
.empty-state h3 {
  font-size: 16px;
  color: #5b6e75;
  margin: 16px 0 9px;
}
.empty-state p {
  font-size: 12px;
  margin-bottom: 16px;
}
.empty-icon {
  font-size: 38px;
  color: #82a799;
}
.feed-end {
  text-align: center;
  color: #a3adb3;
  font-size: 11px;
  padding: 18px 0;
}
.site-footer {
  max-width: 1056px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid #e5e9ec;
  padding: 26px 0 34px;
  font-size: 10px;
  color: #9ca6ae;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100% - 32px);
  background: #243c36;
  color: white;
  padding: 11px 20px;
  border-radius: 10px;
  z-index: 1000;
  font-size: 13px;
  box-shadow: 0 5px 25px #20362c20;
}
dialog {
  border: 0;
  border-radius: 16px;
  max-width: min(680px, calc(100vw - 32px));
  width: 680px;
  max-height: 85vh;
  overflow: auto;
  padding: 24px;
  background: var(--bg);
  color: var(--ink);
}
dialog::backdrop {
  background: #16292380;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}
@media (min-width: 1600px) {
  .header-inner,
  .page-shell {
    max-width: 1200px;
  }
  .content-layout {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 48px;
  }
  .site-footer {
    max-width: 1136px;
  }
}
@media (max-width: 900px) {
  .header-inner,
  .page-shell {
    padding-left: 24px;
    padding-right: 24px;
  }
  .content-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
  }
  .channel-body {
    padding-left: 18px;
    padding-right: 18px;
  }
  .channel-cover {
    padding-left: 18px;
  }
  .post-card {
    padding: 22px 22px 0;
  }
  .site-footer {
    margin-left: 24px;
    margin-right: 24px;
  }
}
@media (max-width: 650px) {
  .site-header {
    height: 68px;
  }
  .header-inner {
    padding: 0 20px;
    gap: 10px;
  }
  .brand {
    font-size: 16px;
    gap: 8px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .brand span {
    max-width: 150px;
  }
  .header-nav {
    gap: 0;
  }
  .header-nav .active {
    display: none;
  }
  .button.small {
    font-size: 11px;
    padding: 8px 10px;
    max-width: 130px;
  }
  .page-shell {
    padding: 0 18px 36px;
  }
  .intro {
    padding: 33px 2px 27px;
  }
  .intro h1 {
    font-size: 27px;
    margin: 12px 0 11px;
    letter-spacing: -0.6px;
  }
  .intro > p {
    font-size: 12px;
    line-height: 1.9;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1.4px;
  }
  .content-layout {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .channel-panel {
    position: static;
    width: 100%;
  }
  .channel-cover {
    height: 79px;
    padding: 15px 21px;
  }
  .channel-body {
    padding: 0 21px 18px;
  }
  .channel-avatar {
    width: 58px;
    height: 58px;
    top: -25px;
    margin-bottom: -16px;
  }
  .channel-body h2 {
    font-size: 18px;
  }
  .channel-body > .tag {
    top: 14px;
  }
  .channel-body > p:not(.handle) {
    margin: 12px 0 16px;
    line-height: 1.8;
  }
  .channel-body .button {
    padding: 9px;
  }
  .channel-note {
    margin-top: 11px;
  }
  .about-preview {
    display: none;
  }
  .feed-section {
    width: 100%;
  }
  .feed-heading {
    margin-bottom: 12px;
  }
  .feed-heading h2 {
    font-size: 17px;
  }
  .feed-heading > div {
    gap: 10px;
  }
  .notice {
    font-size: 10px;
    line-height: 1.8;
    padding: 9px 12px;
    margin-bottom: 16px;
  }
  .post-card {
    padding: 20px 19px 0;
    border-radius: 13px;
    margin-bottom: 16px;
  }
  .post-header {
    margin-bottom: 16px;
  }
  .post-text {
    font-size: 13px;
    line-height: 1.95;
  }
  .post-media {
    margin-top: 16px;
    border-radius: 7px;
  }
  .post-footer {
    margin-top: 18px;
    padding: 12px 0 14px;
  }
  .site-footer {
    margin: 0 20px;
    padding: 22px 0 28px;
    gap: 8px;
    font-size: 9px;
  }
  .empty-state {
    padding: 45px 15px;
  }
  .video-label {
    max-width: 70%;
    font-size: 9px;
  }
  .toast {
    bottom: 18px;
    width: max-content;
    text-align: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}

/* Synced content: safe entities, native video, and Telegram-only fallbacks. */
.post-media video {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 640px;
  background: #182923;
  border-radius: 8px;
  aspect-ratio: 16/9;
}
.media-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #edf3f0;
  min-height: 145px;
  padding: 25px 16px;
  color: #6e887c;
  text-align: center;
  font-size: 12px;
}
.media-fallback small {
  color: #95a89e;
  font-size: 10px;
}
.post-text a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.post-text code {
  font-family: Consolas, monospace;
  background: #f0f3f1;
  padding: 1px 4px;
  border-radius: 4px;
  font-size: 0.95em;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.entity-tag {
  color: var(--accent);
}
.entity-spoiler {
  background: #a8b6ae;
  color: transparent;
  border-radius: 3px;
  cursor: pointer;
}
.entity-spoiler.revealed {
  background: #e5ece8;
  color: inherit;
}
.entity-blockquote,
.entity-expandable_blockquote {
  border-left: 2px solid #9ab9aa;
  padding-left: 8px;
  color: #6c8577;
}
.post-media.album video {
  height: 100%;
  object-fit: contain;
}
