:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --bg-elevated: rgba(253, 254, 254, 0.84);
  --bg-strong: #ffffff;
  --text: #272c3e;
  --muted: #677182;
  --border: rgba(39, 44, 62, 0.12);
  --accent: #91278d;
  --accent-soft: rgba(146, 39, 141, 0.12);
  --accent-strong: #6f196c;
  --signal: #e30606;
  --shadow: 0 18px 50px rgba(39, 44, 62, 0.14);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --post-anchor-offset: 188px;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --sans: "Manrope", "Segoe UI", sans-serif;
}

/* Final post copy-button layout override: keep the first visible line aligned with the action */
.post-card__body {
  position: relative;
  padding: 22px 78px 16px 22px;
}

.post-card__head,
.post-card__meta {
  display: contents;
}

.post-card__copy {
  position: absolute;
  top: 22px;
  right: 22px;
  margin-top: 0;
}

.post-card__reply,
.post-card__forwarded,
.post-card__text {
  min-width: 0;
}

@media (max-width: 860px) {
  .post-card__body {
    padding: 16px 64px 16px 16px;
  }

  .post-card__copy {
    top: 16px;
    right: 16px;
  }
}

@media (max-width: 480px) {
  .post-card__body {
    padding: 16px 60px 16px 16px;
  }

  .post-card__copy {
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #1e2333;
  --bg-elevated: rgba(39, 44, 62, 0.92);
  --bg-strong: #272c3e;
  --text: #fdfefe;
  --muted: #c3c6cb;
  --border: rgba(206, 174, 226, 0.16);
  --accent: #ceaee2;
  --accent-soft: rgba(206, 174, 226, 0.18);
  --accent-strong: #ecc7eb;
  --signal: #f28181;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at top left, rgba(146, 39, 141, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(227, 6, 6, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(206, 174, 226, 0.18), transparent 18%),
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
}

a,
button,
input,
label,
[role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

@media (hover: none) and (pointer: coarse) {
  a:focus:not(:focus-visible),
  button:focus:not(:focus-visible),
  input:focus:not(:focus-visible),
  label:focus:not(:focus-visible),
  [role="button"]:focus:not(:focus-visible) {
    outline: none;
    box-shadow: none;
  }
}

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

.hero,
.contact-bar,
.content,
.site-footer {
  transition:
    opacity 300ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 520ms cubic-bezier(0.16, 1, 0.3, 1),
    filter 280ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.site-shell.is-channel-switching .hero,
.site-shell.is-channel-switching .contact-bar,
.site-shell.is-channel-switching .content,
.site-shell.is-channel-switching .site-footer {
  opacity: 0.1;
  transform: translateY(10px) scale(0.994);
  filter: blur(4px) saturate(0.94);
  pointer-events: none;
}

.site-shell.is-channel-switching-fast .hero,
.site-shell.is-channel-switching-fast .contact-bar,
.site-shell.is-channel-switching-fast .content,
.site-shell.is-channel-switching-fast .site-footer {
  transition-duration: 180ms, 240ms, 180ms;
  opacity: 0.16;
  transform: translateY(7px) scale(0.996);
  filter: blur(2px) saturate(0.96);
}

.site-shell.is-channel-switching-desktop .hero,
.site-shell.is-channel-switching-desktop .contact-bar,
.site-shell.is-channel-switching-desktop .site-footer {
  opacity: 0.18;
  transform: translateY(6px) scale(0.997);
  filter: blur(3px) saturate(0.95);
}

.site-shell.is-channel-switching-desktop .content {
  opacity: 0.08;
  transform: translateY(14px) scale(0.995);
  filter: blur(4px) saturate(0.93);
}

.channel-nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  margin-bottom: 18px;
  padding: 18px 18px 18px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(146, 39, 141, 0.08), transparent 36%),
    var(--bg-elevated);
  backdrop-filter: blur(24px);
  box-shadow: var(--shadow);
  overflow: clip;
  transition:
    transform 420ms cubic-bezier(0.16, 1, 0.3, 1),
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.channel-nav::before {
  content: none;
}

.channel-nav::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 10px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--accent) 42%, transparent) 0%,
    color-mix(in srgb, var(--accent) 96%, white 4%) 50%,
    color-mix(in srgb, var(--accent) 42%, transparent) 100%
  );
  background-size: 220% 100%;
  opacity: 0;
  transform: scaleX(0.16);
  transform-origin: center;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-shell.is-channel-switching .channel-nav::after {
  opacity: 0.95;
  transform: scaleX(1);
  animation: channel-nav-progress 1s linear infinite;
}

.site-shell.is-channel-switching-desktop .channel-nav {
  transform: translateY(2px);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--border) 80%);
  box-shadow: 0 20px 42px rgba(39, 44, 62, 0.16);
}

.site-shell.is-channel-switching-mobile .channel-nav {
  transform: translateY(1px);
  border-color: color-mix(in srgb, var(--accent) 24%, var(--border) 76%);
}

.channel-tabs {
  display: grid;
  grid-template-columns: repeat(var(--channel-count, 1), minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  padding: 0;
}

.channel-tabs::-webkit-scrollbar {
  display: none;
}

.channel-carousel {
  display: none;
  position: relative;
  overflow: visible;
  isolation: isolate;
  contain: layout paint;
}

.channel-carousel__stage {
  position: relative;
  min-height: 96px;
  overflow: hidden;
  isolation: isolate;
  contain: layout paint;
  border-radius: 24px;
}

.channel-carousel__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 58%),
    color-mix(in srgb, var(--bg-elevated) 96%, transparent 4%);
  z-index: 0;
  pointer-events: none;
}

.channel-carousel__stage--animating {
  pointer-events: none;
}

.channel-carousel__track {
  display: grid;
  width: 300%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  transform: translate3d(-100%, 0, 0);
  will-change: transform;
  backface-visibility: hidden;
  position: relative;
  z-index: 1;
}

.channel-carousel__slide {
  min-width: 0;
  padding-inline: 12px;
}

@media (max-width: 1180px) and (min-width: 861px) {
  .channel-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 1px 2px;
  }

  .channel-tab {
    flex: 0 0 150px;
    min-width: 150px;
    max-width: 150px;
  }
}

@media (max-width: 860px) and (min-width: 521px) {
  .channel-carousel__picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.channel-tab {
  appearance: none;
  position: relative;
  min-width: 0;
  border: 1px solid rgba(145, 39, 141, 0.12);
  border-radius: 22px;
  background: color-mix(in srgb, var(--bg-strong) 92%, transparent 8%);
  color: var(--muted);
  padding: 11px 10px 12px;
  font: inherit;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.channel-tab__meta {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  opacity: 0.78;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.22);
}

.channel-tab__title {
  display: block;
  overflow: hidden;
  width: 100%;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.12;
  color: var(--text);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.24);
}

.channel-tab__subtitle {
  display: block;
  overflow: hidden;
  margin-top: auto;
  width: 100%;
  font-size: 0.7rem;
  font-weight: 650;
  line-height: 1.16;
  color: var(--muted);
  white-space: nowrap;
  text-overflow: ellipsis;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.18);
}

.channel-tab:not(.is-active):hover {
  transform: translateY(-2px);
  border-color: rgba(145, 39, 141, 0.28);
  background: color-mix(in srgb, var(--bg-strong) 84%, var(--accent) 16%);
  box-shadow: 0 18px 34px rgba(145, 39, 141, 0.12);
}

.channel-tab:not(.is-active):hover .channel-tab__meta {
  color: var(--accent-strong);
}

.channel-tab:not(.is-active):hover .channel-tab__title {
  color: var(--text);
}

.channel-tab:not(.is-active):hover .channel-tab__subtitle {
  color: var(--muted);
}

.channel-tab.is-active {
  border-color: var(--channel-active-border, rgba(255, 255, 255, 0.16));
  background: linear-gradient(135deg, var(--channel-active, #91278d) 0%, var(--channel-active-strong, #6f196c) 100%);
  color: white;
  box-shadow:
    0 20px 38px var(--channel-active-glow, rgba(145, 39, 141, 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.channel-tab.is-active .channel-tab__meta,
.channel-tab.is-active .channel-tab__title,
.channel-tab.is-active .channel-tab__subtitle {
  color: white;
  text-shadow: 0 0 1px rgba(0, 0, 0, 0.36);
}

.channel-tab.is-active::after {
  content: "";
  position: absolute;
  top: 14px;
  right: 14px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px var(--channel-active-ring, rgba(255, 255, 255, 0.12));
  animation: active-tab-pulse 1.9s ease-in-out infinite;
}

.channel-carousel__surface {
  display: block;
  min-height: 96px;
  padding: 14px 60px;
  border: 1px solid var(--channel-active-border, rgba(255, 255, 255, 0.16));
  border-radius: 24px;
  background: linear-gradient(135deg, var(--channel-active, #91278d) 0%, var(--channel-active-strong, #6f196c) 100%);
  box-shadow:
    0 20px 38px var(--channel-active-glow, rgba(145, 39, 141, 0.28)),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  touch-action: pan-y;
  position: relative;
  z-index: 1;
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  transition:
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 220ms ease,
    box-shadow 240ms ease,
    filter 220ms ease;
}

.channel-carousel__content {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: center;
  justify-items: center;
}

.channel-carousel__toggle {
  appearance: none;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
}

.channel-carousel__toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.52);
  outline-offset: 6px;
}

.channel-carousel__disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 180ms ease;
}

.channel-carousel__disclosure svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.channel-carousel.is-list-open .channel-carousel__disclosure {
  transform: rotate(180deg);
  background: rgba(255, 255, 255, 0.18);
}

.channel-carousel__dropdown {
  max-height: 0;
  margin-top: 0;
  padding: 0 2px;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition:
    max-height 340ms cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 340ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 200ms ease,
    transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.channel-carousel.is-list-open .channel-carousel__dropdown {
  max-height: min(52dvh, 372px);
  margin-top: 10px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.channel-carousel__picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: min(52dvh, 372px);
  padding: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 34%),
    color-mix(in srgb, var(--bg-elevated) 96%, transparent 4%);
  box-shadow: 0 18px 32px rgba(39, 44, 62, 0.12);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.channel-carousel__picker::-webkit-scrollbar {
  display: none;
}

.channel-carousel__picker-item {
  appearance: none;
  min-width: 0;
  min-height: 74px;
  padding: 11px 13px 12px;
  border: 1px solid var(--channel-active-border, rgba(255, 255, 255, 0.16));
  border-radius: 18px;
  background: linear-gradient(135deg, var(--channel-active, #91278d) 0%, var(--channel-active-strong, #6f196c) 100%);
  box-shadow:
    0 14px 26px color-mix(in srgb, var(--channel-active) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  color: #fff;
  display: grid;
  align-content: start;
  gap: 5px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.channel-carousel__picker-item:active {
  transform: translateY(1px) scale(0.99);
}

.channel-carousel__picker-item.is-active {
  box-shadow:
    0 16px 30px color-mix(in srgb, var(--channel-active) 22%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 2px rgba(255, 255, 255, 0.12);
}

.channel-carousel__picker-meta {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.78;
}

.channel-carousel__picker-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.08;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-wrap: balance;
}

.channel-carousel__picker-subtitle {
  display: block;
  overflow: hidden;
  font-size: 0.68rem;
  font-weight: 640;
  line-height: 1.12;
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.9;
}

.channel-carousel__meta {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
  text-shadow: none;
}

.channel-carousel__title,
.channel-carousel__subtitle {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  overflow-wrap: anywhere;
  text-shadow: none;
}

.channel-carousel__title {
  display: -webkit-box;
  font-size: 1.14rem;
  font-weight: 800;
  line-height: 1.08;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.channel-carousel__subtitle {
  font-size: 0.72rem;
  font-weight: 650;
  line-height: 1.12;
  opacity: 0.9;
  white-space: normal;
}

.channel-carousel__nav {
  appearance: none;
  position: absolute;
  top: 50%;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-50%);
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.channel-carousel__nav--prev {
  left: 14px;
}

.channel-carousel__nav--next {
  right: 18px;
}

.channel-carousel__nav svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.channel-carousel__nav:active {
  transform: translateY(-50%) scale(0.97);
  background: rgba(255, 255, 255, 0.16);
}

.channel-carousel__nav:disabled {
  opacity: 0.45;
  cursor: default;
}

@keyframes channel-nav-progress {
  0% {
    background-position: 160% 0;
  }
  100% {
    background-position: -60% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-carousel__surface {
    transition: none !important;
  }

  .scroll-top-button {
    transition: opacity 0.01ms linear, transform 0.01ms linear;
  }

  .channel-nav::after {
    animation: none !important;
  }
}

.hero {
  display: grid;
  gap: 20px;
  grid-template-columns: 140px minmax(0, 1.5fr) minmax(280px, 0.85fr);
  align-items: center;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: none;
}

.hero__avatar {
  width: 132px;
  height: 132px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  align-self: center;
  background: var(--bg-strong);
}

.hero__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__copy {
  min-width: 0;
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--mono);
}

.hero h1,
.comments-toolbar h2 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(2rem, 4.55vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.05em;
  text-wrap: balance;
  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.04em;
}

.hero__title-line {
  display: block;
  max-width: 100%;
  font-size: 0.76em;
  line-height: 0.98;
}

.hero__title-line--lead {
  font-size: 1em;
  line-height: 1;
}

.hero__description {
  max-width: 48rem;
  margin: 18px 0 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--muted);
}

.hero__description a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
  word-break: break-word;
}

.hero__description a:hover {
  color: var(--accent-strong);
}

.hero__panel,
.feed-meta,
.status-banner,
.comments-toolbar,
.comment-card,
.post-card {
  border: 1px solid var(--border);
  background: var(--bg-strong);
  box-shadow: var(--shadow);
}

.hero__panel {
  display: grid;
  gap: 18px;
  align-content: start;
  align-self: center;
  justify-self: end;
  justify-items: center;
  width: min(100%, 320px);
  min-width: 0;
  padding: 24px 22px;
  border-radius: var(--radius-lg);
  text-align: center;
  background:
    linear-gradient(180deg, rgba(146, 39, 141, 0.08), transparent 34%),
    var(--bg-strong);
}

.contact-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
  margin-bottom: 22px;
}

.contact-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 76px;
  padding: 18px 20px;
  border: 1px solid color-mix(in srgb, var(--border) 94%, transparent);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(146, 39, 141, 0.085), transparent 42%),
    var(--bg-elevated);
  color: var(--text);
  text-decoration: none;
  box-shadow:
    0 20px 40px rgba(39, 44, 62, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
  -webkit-touch-callout: none;
  user-select: none;
}

.contact-bar__item:hover,
.contact-bar__item:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(145, 39, 141, 0.3);
  background:
    linear-gradient(180deg, rgba(146, 39, 141, 0.12), transparent 46%),
    color-mix(in srgb, var(--bg-elevated) 90%, var(--accent) 10%);
  color: var(--text);
  box-shadow:
    0 24px 42px rgba(145, 39, 141, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-bar__item:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 42%, transparent);
  outline-offset: 2px;
}

.contact-bar__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: var(--accent);
  flex: 0 0 auto;
}

.contact-bar__icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.85;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-bar__text {
  display: block;
  min-width: 0;
  text-align: center;
}

.contact-bar__value {
  display: block;
  min-width: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 1.04rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.site-footer {
  margin-top: 22px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(146, 39, 141, 0.04), transparent 48%),
    var(--bg-elevated);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  text-align: center;
}

.site-footer__copyright {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 80;
  transform: translateX(-50%) translateY(10px);
  min-width: 132px;
  max-width: min(92vw, 320px);
  padding: 12px 16px;
  border: 1px solid rgba(145, 39, 141, 0.18);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-strong) 94%, var(--accent) 6%);
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 16px 36px rgba(39, 44, 62, 0.16);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.scroll-top-button {
  position: fixed;
  right: max(24px, calc(env(safe-area-inset-right, 0px) + 16px));
  bottom: max(24px, calc(env(safe-area-inset-bottom, 0px) + 18px));
  z-index: 78;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 56px;
  height: 56px;
  padding: 0 18px 0 12px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, var(--accent) 30%);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 58%),
    color-mix(in srgb, var(--bg-elevated) 88%, var(--accent) 12%);
  color: var(--text);
  box-shadow:
    0 18px 34px rgba(39, 44, 62, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.38);
  backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 16px, 0) scale(0.94);
  transition:
    opacity 0.2s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.scroll-top-button.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0) scale(1);
}

.scroll-top-button:hover,
.scroll-top-button:focus-visible {
  border-color: color-mix(in srgb, var(--accent) 38%, rgba(255, 255, 255, 0.18));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent 58%),
    color-mix(in srgb, var(--bg-elevated) 82%, var(--accent) 18%);
  box-shadow:
    0 20px 38px rgba(39, 44, 62, 0.18),
    0 0 0 1px color-mix(in srgb, var(--accent) 16%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.scroll-top-button__icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 92%, white 8%),
    color-mix(in srgb, var(--accent) 72%, #1f1934 28%)
  );
  color: #fff;
  box-shadow:
    0 10px 20px color-mix(in srgb, var(--accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.scroll-top-button__icon svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.scroll-top-button__label {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 1499px) and (min-width: 861px) {
  .scroll-top-button {
    width: 56px;
    min-width: 56px;
    padding: 0;
    justify-content: center;
  }

  .scroll-top-button__label {
    display: none;
  }
}

.hero__row {
  display: grid;
  gap: 8px;
  justify-items: center;
}

.meta-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.channel-link {
  display: inline-block;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--accent);
  text-decoration: none;
  word-break: break-word;
}

#updatedText {
  display: block;
  max-width: 18ch;
  font-weight: 700;
  line-height: 1.3;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-top: 4px;
}

.content {
  margin-top: 24px;
}

.icon-button {
  appearance: none;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--accent) 92%, white 8%) 0%,
    color-mix(in srgb, var(--accent) 72%, #1f1934 28%) 100%
  );
  color: #fff;
  box-shadow:
    0 12px 24px color-mix(in srgb, var(--accent) 24%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    filter 0.18s ease,
    border-color 0.18s ease;
}

.icon-button:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.18));
  box-shadow:
    0 16px 30px color-mix(in srgb, var(--accent) 30%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  filter: saturate(1.03);
}

.icon-button:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
}

.icon-button svg,
.theme-toggle svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-button--refresh svg {
  width: 20px;
  height: 20px;
  transform: translate(0.15px, 0.15px);
}

.icon-button--install svg {
  width: 20px;
  height: 20px;
  transform: translateY(0.1px);
}

.icon-button--install.is-installed {
  border-color: rgba(72, 170, 116, 0.3);
  background: linear-gradient(145deg, rgba(72, 170, 116, 0.92), rgba(56, 134, 89, 0.92));
  color: #fff;
  box-shadow:
    0 12px 24px rgba(72, 170, 116, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] .icon-button--install.is-installed {
  border-color: rgba(135, 223, 177, 0.26);
  background: linear-gradient(145deg, rgba(63, 132, 95, 0.96), rgba(40, 92, 66, 0.96));
  box-shadow:
    0 12px 24px rgba(63, 132, 95, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.theme-toggle {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.theme-toggle__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.theme-toggle__track {
  position: relative;
  width: 86px;
  height: 48px;
  display: block;
  border: 1px solid color-mix(in srgb, var(--border) 72%, rgba(145, 39, 141, 0.16));
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 239, 247, 0.98));
  box-shadow:
    0 12px 24px rgba(39, 44, 62, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.theme-toggle:hover .theme-toggle__track {
  border-color: rgba(145, 39, 141, 0.24);
  box-shadow:
    0 14px 26px rgba(39, 44, 62, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.theme-toggle__icon {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: color-mix(in srgb, var(--muted) 68%, var(--text) 32%);
  opacity: 0.84;
  transition: color 0.18s ease, opacity 0.18s ease;
}

.theme-toggle__icon--sun {
  left: 13px;
}

.theme-toggle__icon--moon {
  right: 13px;
}

.theme-toggle__thumb {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(145, 39, 141, 0.16);
  background: linear-gradient(145deg, #fffefe 0%, #f1e6f2 100%);
  color: #91278d;
  box-shadow:
    0 9px 18px rgba(39, 44, 62, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.76);
  transform: translateX(0);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.theme-toggle__thumb svg {
  display: none;
}

.theme-toggle__input:checked + .theme-toggle__track {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg-strong) 97%, #2c3245 3%), color-mix(in srgb, var(--bg-strong) 93%, #111624 7%));
  border-color: rgba(206, 174, 226, 0.24);
}

.theme-toggle__input:checked + .theme-toggle__track .theme-toggle__thumb {
  transform: translateX(40px);
  border-color: rgba(255, 255, 255, 0.05);
  background: linear-gradient(145deg, #434b66 0%, #22283a 100%);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.theme-toggle__input:checked + .theme-toggle__track .theme-toggle__icon--moon,
.theme-toggle__input:not(:checked) + .theme-toggle__track .theme-toggle__icon--sun {
  color: var(--accent);
  opacity: 1;
}

.theme-toggle__input:focus-visible + .theme-toggle__track,
.icon-button:focus-visible {
  outline: 2px solid rgba(145, 39, 141, 0.46);
  outline-offset: 3px;
}

.button {
  appearance: none;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

.button--primary {
  background: linear-gradient(135deg, #91278d 0%, #6f196c 100%);
  color: white;
  border-color: transparent;
}

.button--primary:hover {
  background: linear-gradient(135deg, #6f196c 0%, #561453 100%);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.4);
}

.button:disabled {
  cursor: default;
  transform: none;
}

.status-banner,
.feed-meta,
.comments-toolbar,
.empty-state {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}

.status-banner,
.feed-meta {
  margin-bottom: 18px;
}

.status-banner {
  color: var(--muted);
}

.feed-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  align-items: stretch;
  padding: 10px 14px;
  text-align: center;
  color: var(--muted);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 54%),
    var(--bg-strong);
}

.feed-meta__item {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  min-width: 0;
  padding: 16px 18px;
}

.feed-meta__item + .feed-meta__item {
  border-left: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.feed-meta__label,
.feed-meta__hint {
  display: block;
  max-width: 100%;
}

.feed-meta__label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.feed-meta__value {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  text-wrap: balance;
}

.feed-meta__hint {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.3;
  color: color-mix(in srgb, var(--muted) 82%, var(--text) 18%);
  text-wrap: balance;
}

.post-feed,
.comments-list {
  display: grid;
  gap: 18px;
}

.post-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  scroll-margin-top: var(--post-anchor-offset);
  content-visibility: auto;
  contain-intrinsic-size: 640px;
}

.post-card__body {
  padding: 22px 22px 16px;
}

.post-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.post-card__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.post-card__meta--empty {
  min-height: 0;
}

.post-card__title {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: color-mix(in srgb, var(--text) 92%, white 8%);
}

.post-card__reply,
.post-card__forwarded {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.post-card__meta > :last-child {
  margin-bottom: 0;
}

.post-card__copy {
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-strong) 86%);
  color: var(--accent);
  box-shadow: none;
  flex: 0 0 auto;
  align-self: start;
  transform: none;
  border-color: color-mix(in srgb, var(--accent) 14%, transparent);
  margin-top: 4px;
  touch-action: manipulation;
}

.post-card__copy.icon-button:hover {
  background: color-mix(in srgb, var(--accent) 20%, var(--bg-strong) 80%);
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
  border-color: color-mix(in srgb, var(--accent) 18%, transparent);
}

.post-card__copy.icon-button:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 2px;
  box-shadow: none !important;
}

.post-card__copy svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.post-card__reply a,
.post-card__forwarded a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.post-card__reply a:hover,
.post-card__forwarded a:hover {
  color: var(--accent-strong);
}

.post-card--targeted {
  box-shadow:
    0 0 0 1px rgba(145, 39, 141, 0.22),
    0 20px 44px rgba(145, 39, 141, 0.12);
}

.post-card__text {
  font-size: 1rem;
  line-height: 1.72;
  color: var(--text);
  word-break: break-word;
}

.post-card__text a,
.comment-card__text a {
  color: var(--accent);
  font-weight: 650;
  text-decoration-line: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 34%, transparent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  background-image: linear-gradient(color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 12%, transparent));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 0%;
  border-radius: 0.35em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  transition:
    color 0.18s ease,
    text-decoration-color 0.18s ease,
    text-decoration-thickness 0.18s ease,
    background-size 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.post-card__text a:hover,
.post-card__text a:focus-visible,
.comment-card__text a:hover,
.comment-card__text a:focus-visible {
  color: var(--accent-strong);
  text-decoration-color: color-mix(in srgb, var(--accent) 58%, transparent);
  text-decoration-thickness: 1.5px;
  background-size: 100% 100%;
}

.post-card__link-preview {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, var(--border) 84%);
  border-radius: 18px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 6%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg-elevated) 88%, transparent 12%);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(39, 44, 62, 0.08);
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.post-card__link-preview:hover,
.post-card__link-preview:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 28%, var(--border) 72%);
  box-shadow: 0 16px 34px rgba(39, 44, 62, 0.12);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 58%),
    color-mix(in srgb, var(--bg-elevated) 90%, transparent 10%);
}

.post-card__link-preview-media {
  position: relative;
  flex: 0 0 clamp(184px, 24vw, 220px);
  width: clamp(184px, 24vw, 220px);
  min-width: clamp(184px, 24vw, 220px);
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 88%, black 12%);
}

.post-card__link-preview-media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  background: transparent;
}

.post-card__link-preview-media--unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
}

.post-card__link-preview-media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-card__link-preview-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 80%, rgba(15, 23, 42, 0.18) 20%);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 10px 18px rgba(13, 17, 27, 0.18);
}

.post-card__link-preview-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.post-card__link-preview-caption {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
  opacity: 0.82;
}

.post-card__link-preview-title {
  display: -webkit-box;
  overflow: hidden;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.22;
  color: var(--text);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-card__link-preview-description {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.48;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.post-card__media {
  display: grid;
  gap: 2px;
  background: color-mix(in srgb, var(--bg) 92%, black 8%);
}

.post-card__media--round-video {
  display: flex;
  justify-content: center;
  padding: 22px 22px 10px;
  background: transparent;
}

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

.post-card__media--gallery > .media-trigger:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.post-card__media button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: var(--media-fill, rgba(0, 0, 0, 0.08));
  cursor: pointer;
  touch-action: manipulation;
}

.post-card__media--round-video .media-trigger {
  width: auto;
  background: transparent;
}

.media-trigger--unavailable {
  cursor: default;
  min-height: 120px;
  background: color-mix(in srgb, var(--bg) 88%, black 12%);
}

.media-trigger__fallback,
.viewer__fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  width: 100%;
  padding: 20px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  text-align: center;
}

.post-card__media:not(.post-card__media--gallery) img,
.post-card__media:not(.post-card__media--gallery) video {
  display: block;
  width: min(100%, var(--media-max-inline-size, 100%));
  max-width: 100%;
  margin-inline: auto;
  height: clamp(280px, 34vw, 460px);
  object-fit: contain;
  object-position: center;
  background: var(--media-fill, rgba(0, 0, 0, 0.08));
}

.post-card__media--gallery img,
.post-card__media--gallery video {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  object-position: center;
  background: var(--media-fill, rgba(0, 0, 0, 0.08));
}

.post-card__media--gallery > .media-trigger:last-child:nth-child(odd) img,
.post-card__media--gallery > .media-trigger:last-child:nth-child(odd) video {
  aspect-ratio: 8 / 3;
}

.post-card__media--round-video video {
  width: 100%;
  max-width: none;
  margin: 0;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: transparent;
}

.media-video-note {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(220px, 28vw, 308px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 34%, rgba(255, 255, 255, 0.28) 66%);
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 28%, rgba(255, 255, 255, 0.08) 72%), transparent 58%),
    color-mix(in srgb, var(--bg-strong) 94%, black 6%);
  box-shadow:
    0 22px 48px rgba(13, 17, 27, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.media-video-note video,
.media-video-note img,
.media-video-note__placeholder,
.post-card__round-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: color-mix(in srgb, var(--bg) 84%, black 16%);
}

.media-video-note video,
.media-video-note img {
  border-radius: 50%;
  max-width: none;
  margin: 0;
  max-height: none;
}

.media-video-note__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: color-mix(in srgb, var(--text) 82%, white 18%);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 34% 24%, color-mix(in srgb, var(--accent) 40%, rgba(255, 255, 255, 0.16) 60%), transparent 42%),
    linear-gradient(160deg, color-mix(in srgb, var(--accent) 42%, var(--bg-strong) 58%), color-mix(in srgb, var(--bg-strong) 88%, black 12%));
}

.media-video-note__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  transform: translate(-50%, -50%);
  background: color-mix(in srgb, var(--accent) 78%, rgba(255, 255, 255, 0.18) 22%);
  color: #fff;
  box-shadow:
    0 14px 28px rgba(13, 17, 27, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.media-video-note__play svg {
  width: 22px;
  height: 22px;
  margin-left: 2px;
  fill: currentColor;
}

.post-card__footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 16px;
  align-items: center;
  padding: 0 22px 20px;
}

.post-card__stats,
.post-card__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, rgba(255, 255, 255, 0.18));
  background: color-mix(in srgb, var(--accent) 14%, var(--bg-elevated) 86%);
  color: color-mix(in srgb, var(--accent) 74%, white 26%);
  padding: 7px 12px;
  font-size: 0.86rem;
  font-weight: 700;
}

.post-card__link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.post-card__date {
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  background: var(--bg-strong);
  border: 1px dashed var(--border);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid rgba(15, 118, 110, 0.15);
  border-top-color: var(--accent);
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

#loadMoreButton {
  min-width: 178px;
  border-color: rgba(145, 39, 141, 0.18);
  background: linear-gradient(180deg, rgba(145, 39, 141, 0.12), rgba(145, 39, 141, 0.06));
  color: var(--accent-strong);
  box-shadow: 0 14px 28px rgba(39, 44, 62, 0.08);
}

#loadMoreButton:hover:not(:disabled) {
  border-color: rgba(145, 39, 141, 0.32);
  background: linear-gradient(180deg, rgba(145, 39, 141, 0.18), rgba(145, 39, 141, 0.1));
  color: var(--accent);
}

#loadMoreButton:disabled {
  border-color: rgba(145, 39, 141, 0.14);
  background: linear-gradient(180deg, rgba(145, 39, 141, 0.1), rgba(145, 39, 141, 0.05));
  color: color-mix(in srgb, var(--accent-strong) 78%, white 22%);
  opacity: 1;
  box-shadow: none;
}

:root[data-theme="dark"] #loadMoreButton {
  border-color: rgba(206, 174, 226, 0.22);
  background: linear-gradient(180deg, rgba(52, 58, 80, 0.98), rgba(30, 35, 51, 0.98));
  color: rgba(253, 254, 254, 0.92);
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

:root[data-theme="dark"] #loadMoreButton:hover:not(:disabled) {
  border-color: rgba(236, 199, 235, 0.46);
  background: linear-gradient(180deg, rgba(78, 62, 98, 0.98), rgba(38, 43, 61, 0.98));
  color: white;
}

:root[data-theme="dark"] #loadMoreButton:disabled {
  border-color: rgba(206, 174, 226, 0.18);
  background: linear-gradient(180deg, rgba(47, 52, 72, 0.96), rgba(30, 35, 51, 0.94));
  color: rgba(253, 254, 254, 0.66);
  box-shadow: none;
}

.comments-toolbar {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.comments-toolbar h2 {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
}

.comment-card {
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  content-visibility: auto;
  contain-intrinsic-size: 220px;
}

.comment-card__header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.comment-card__author {
  font-weight: 800;
}

.comment-card__date {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-card__text {
  line-height: 1.65;
  word-break: break-word;
}

.post-shell {
  padding-top: 40px;
}

.post-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.post-header__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.post-page-title {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.viewer {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding:
    max(12px, calc(env(safe-area-inset-top, 0px) + 8px))
    max(12px, calc(env(safe-area-inset-right, 0px) + 8px))
    max(12px, calc(env(safe-area-inset-bottom, 0px) + 8px))
    max(12px, calc(env(safe-area-inset-left, 0px) + 8px));
  background: rgba(3, 7, 18, 0.88);
  z-index: 120;
  overscroll-behavior: contain;
}

.viewer__content {
  width: min(92vw, 1200px);
  max-height: min(88dvh, 88vh);
  overflow: hidden;
  position: relative;
  overscroll-behavior: contain;
}

.viewer__viewport {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
  user-select: none;
  overscroll-behavior: contain;
}

.viewer__track {
  display: flex;
  width: 100%;
  will-change: transform;
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
}

.viewer__slide {
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.viewer__slide img,
.viewer__slide video {
  display: block;
  max-width: 100%;
  max-height: min(88dvh, 88vh);
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.viewer__slide video[data-round-video="true"] {
  aspect-ratio: 1 / 1;
  width: min(72dvh, 72vh, 520px);
  max-width: min(88vw, 520px);
  object-fit: cover;
  border-radius: 28px;
}

.post-card--round-video-only .post-card__body {
  padding-top: 12px;
}

.post-card--round-video-only .post-card__content:empty {
  display: none;
}

.post-card--round-video-only .post-card__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
  padding: 22px 22px 0;
}

.post-card--round-video-only .post-card__meta {
  display: block;
  min-width: 0;
  flex: 1 1 auto;
}

.post-card--round-video-only .post-card__copy {
  position: static;
  top: auto;
  right: auto;
  z-index: auto;
  margin-top: 0;
  justify-self: auto;
  align-self: start;
}

.post-card--round-video-only .post-card__title {
  margin-bottom: 14px;
  font-size: 1.08rem;
}

.viewer__fallback {
  max-width: min(520px, 100%);
  min-height: min(48dvh, 48vh, 420px);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.88);
}

.viewer__close,
.viewer__nav {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  font-size: 2rem;
  cursor: pointer;
  touch-action: manipulation;
}

.viewer__close {
  top: 18px;
  right: 18px;
}

.viewer__nav {
  top: 50%;
  transform: translateY(-50%);
}

.viewer__nav:first-of-type {
  left: 18px;
}

.viewer__nav:last-of-type {
  right: 18px;
}

.viewer__nav:disabled {
  opacity: 0.35;
  cursor: default;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes active-tab-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
    opacity: 0.96;
  }

  50% {
    transform: scale(1.12);
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.06);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .channel-tab.is-active::after {
    animation: none;
  }
}

@media (max-width: 860px) {
  .hero,
  .contact-bar,
  .content,
  .site-footer {
    will-change: auto;
  }

  .site-shell.is-channel-switching .hero,
  .site-shell.is-channel-switching .contact-bar,
  .site-shell.is-channel-switching .content,
  .site-shell.is-channel-switching .site-footer {
    opacity: 0.14;
    transform: translateY(7px) scale(0.996);
    filter: none;
  }

  .site-shell.is-channel-switching-fast .hero,
  .site-shell.is-channel-switching-fast .contact-bar,
  .site-shell.is-channel-switching-fast .content,
  .site-shell.is-channel-switching-fast .site-footer {
    opacity: 0.22;
    transform: translateY(3px) scale(0.998);
    filter: none;
  }

  .site-shell.is-channel-switching-mobile .hero,
  .site-shell.is-channel-switching-mobile .contact-bar,
  .site-shell.is-channel-switching-mobile .site-footer {
    opacity: 0.22;
    transform: translateY(4px) scale(0.998);
    filter: none;
  }

  .site-shell.is-channel-switching-mobile .content {
    opacity: 0.1;
    transform: translateY(10px) scale(0.997);
    filter: none;
  }

  .site-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 12px;
    padding-bottom: 28px;
  }

  .channel-nav {
    top: 8px;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    overflow: visible;
  }

  .channel-nav::after {
    left: 12px;
    right: 12px;
    bottom: -8px;
  }

  .channel-carousel__stage::before {
    content: none;
  }

  .site-shell.is-channel-switching-mobile .channel-carousel__surface--current {
    transform: scale(0.988);
    opacity: 0.96;
    filter: saturate(0.97) brightness(0.98);
  }

  .channel-tabs {
    display: none;
  }

  .channel-carousel {
    display: block;
  }

  .channel-carousel__stage {
    width: 100%;
  }

  .channel-carousel__slide {
    padding-inline: 0;
  }

  .channel-carousel.is-list-open .channel-carousel__dropdown {
    max-height: min(50dvh, 360px);
  }

  .channel-carousel__picker {
    max-height: min(50dvh, 360px);
  }

  .channel-tab {
    flex-basis: 148px;
    min-width: 148px;
    max-width: 148px;
    min-height: 94px;
    padding: 13px 13px 14px;
  }

  .channel-tab__title {
    font-size: 1.02rem;
  }

  .channel-tab__subtitle {
    font-size: 0.74rem;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px;
    border-radius: 24px;
    backdrop-filter: none;
    box-shadow: 0 12px 30px rgba(39, 44, 62, 0.1);
  }

  .hero__avatar {
    justify-self: center;
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .hero__copy {
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(1.9rem, 9vw, 2.8rem);
    line-height: 1.02;
    align-items: center;
    text-align: center;
  }

  .hero__description {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.55;
  }

  .hero__panel {
    justify-self: stretch;
    width: 100%;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 18px;
  }

  .hero__actions {
    width: 100%;
    justify-content: center;
  }

  .contact-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
    margin-bottom: 16px;
  }

  .contact-bar__item {
    justify-content: center;
    min-height: 62px;
    padding: 14px;
    border-radius: 18px;
  }

  .contact-bar__text {
    display: none;
  }

  .site-footer {
    margin-top: 20px;
    padding: 11px 16px;
    backdrop-filter: none;
    box-shadow: 0 12px 28px rgba(39, 44, 62, 0.08);
  }

  .feed-meta {
    grid-template-columns: 1fr;
    padding: 8px 14px;
  }

  .feed-meta__item {
    padding: 16px 12px;
  }

  .feed-meta__item + .feed-meta__item {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  }

  .post-card__body,
  .post-card__footer,
  .comment-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .post-card__footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-bottom: 16px;
  }

  .post-card__stats,
  .post-card__links {
    width: 100%;
  }

  .post-card__stats {
    justify-content: center;
  }

  .post-card__links {
    justify-content: space-between;
    gap: 12px;
  }

  .post-card__link-preview {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 16px;
    padding: 12px;
    border-radius: 16px;
  }

  .post-card__link-preview-media {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
    aspect-ratio: 16 / 10;
  }

  .comments-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-shell {
    padding-top: 18px;
  }

  .post-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 18px;
  }

  .post-header__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: calc(100% - 12px);
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .channel-nav {
    top: 6px;
    padding: 0;
    border-radius: 20px;
    box-shadow: none;
  }

  .channel-carousel__surface {
    min-height: 88px;
    padding: 10px 52px;
    border-radius: 20px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
  }

  .channel-carousel.is-list-open .channel-carousel__dropdown {
    max-height: min(56dvh, 344px);
    margin-top: 8px;
  }

  .channel-carousel__stage {
    min-height: 88px;
  }

  .channel-carousel__slide {
    padding-inline: 0;
  }

  .channel-carousel__nav {
    width: 40px;
    height: 40px;
  }

  .channel-carousel__nav--prev {
    left: 10px;
  }

  .channel-carousel__nav--next {
    right: 16px;
  }

  .channel-carousel__title {
    font-size: 1.04rem;
  }

  .channel-carousel__subtitle {
    font-size: 0.68rem;
  }

  .channel-carousel__meta {
    font-size: 0.58rem;
  }

  .channel-carousel__disclosure {
    width: 18px;
    height: 18px;
  }

  .channel-carousel__picker {
    gap: 8px;
    max-height: min(56dvh, 344px);
    padding: 10px;
    border-radius: 20px;
  }

  .channel-carousel__picker-item {
    min-height: 66px;
    padding: 10px 11px;
    border-radius: 16px;
  }

  .channel-carousel__picker-meta {
    font-size: 0.52rem;
  }

  .channel-carousel__picker-title {
    font-size: 0.88rem;
  }

  .channel-carousel__picker-subtitle {
    font-size: 0.62rem;
  }

  .hero {
    gap: 14px;
    padding: 14px;
    border-radius: 20px;
  }

  .hero__avatar {
    width: 80px;
    height: 80px;
    border-radius: 20px;
  }

  .eyebrow {
    margin-bottom: 8px;
    font-size: 11px;
    letter-spacing: 0.18em;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero__description {
    font-size: 0.94rem;
  }

  .hero__panel {
    padding: 16px 14px;
  }

  #updatedText {
    max-width: none;
  }

  .hero__actions {
    width: 100%;
    justify-content: center;
  }

  .contact-bar {
    gap: 10px;
    margin-top: 12px;
    margin-bottom: 14px;
  }

  .contact-bar__item {
    min-height: 58px;
    gap: 0;
    padding: 12px;
    border-radius: 18px;
  }

  .contact-bar__icon {
    width: 22px;
    height: 22px;
  }

  .contact-bar__icon svg {
    width: 22px;
    height: 22px;
  }

  .site-footer {
    margin-top: 18px;
    padding: 10px 14px;
  }

  .site-footer__copyright {
    font-size: 0.84rem;
  }

  .copy-toast {
    bottom: 16px;
    padding: 11px 14px;
    font-size: 0.88rem;
  }

  .scroll-top-button {
    right: max(16px, calc(env(safe-area-inset-right, 0px) + 10px));
    bottom: max(16px, calc(env(safe-area-inset-bottom, 0px) + 12px));
    width: 56px;
    min-width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }

  .scroll-top-button__icon {
    width: 36px;
    height: 36px;
  }

  .scroll-top-button__label {
    display: none;
  }

  .status-banner,
  .feed-meta,
  .comments-toolbar,
  .empty-state {
    padding: 14px 16px;
  }

  .feed-meta {
    padding: 6px 10px;
  }

  .feed-meta__item {
    gap: 4px;
    padding: 14px 10px;
  }

  .feed-meta__label {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
  }

  .feed-meta__value {
    font-size: 1.2rem;
  }

  .feed-meta__hint {
    font-size: 0.84rem;
  }

  .post-feed,
  .comments-list {
    gap: 14px;
  }

  .post-card {
    border-radius: 18px;
  }

  .post-card__link-preview-title {
    font-size: 0.96rem;
  }

  .post-card__link-preview-description {
    font-size: 0.88rem;
  }

  .post-card__media:not(.post-card__media--gallery) img,
  .post-card__media:not(.post-card__media--gallery) video {
    width: min(100%, var(--media-max-inline-size, 100%));
    max-width: 100%;
    margin-inline: auto;
    height: auto;
    max-height: none;
    object-fit: cover;
    background: transparent;
  }

  .post-card__media:not(.post-card__media--gallery),
  .post-card__media:not(.post-card__media--gallery) button {
    background: transparent;
  }

  .post-card__media:not(.post-card__media--gallery) button {
    display: block;
  }

  .post-card__media--round-video {
    padding: 18px 18px 6px;
  }

  .media-video-note {
    width: min(248px, calc(100vw - 88px));
  }

  .media-video-note__play {
    width: 50px;
    height: 50px;
  }

  .post-card--round-video-only .post-card__body {
    padding-top: 10px;
  }

  .post-card--round-video-only .post-card__content:empty {
    display: none;
  }

  .post-card--round-video-only .post-card__head {
    padding: 16px 16px 0;
  }

  .post-card--round-video-only .post-card__copy {
    top: auto;
    right: auto;
  }

  .post-card__media--gallery {
    grid-template-columns: 1fr;
  }

  .post-card__media--gallery img,
  .post-card__media--gallery video {
    aspect-ratio: 16 / 10;
  }

  .post-card__media--gallery > .media-trigger:last-child:nth-child(odd) img,
  .post-card__media--gallery > .media-trigger:last-child:nth-child(odd) video {
    aspect-ratio: 16 / 10;
  }

  .post-card__text {
    font-size: 0.96rem;
    line-height: 1.62;
  }

  .chip {
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .post-card__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px 12px;
  }

  .post-card__stats,
  .post-card__links {
    width: auto;
  }

  .post-card__stats {
    grid-column: 1;
    justify-content: flex-start;
  }

  .post-card__links {
    grid-column: 2;
    display: grid;
    justify-items: end;
    align-items: center;
    gap: 10px;
  }

  .post-card__links .comments-trigger {
    width: 100%;
    justify-self: stretch;
  }

  .post-card__link {
    width: auto;
    text-align: right;
    line-height: 1.15;
    white-space: nowrap;
  }

  .comment-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-header__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .post-page-title {
    font-size: 1.7rem;
    line-height: 1.02;
  }

  .viewer__close,
  .viewer__nav {
    width: 42px;
    height: 42px;
  }
}

body.viewer-open {
  overflow: hidden;
}

body.viewer-open .channel-nav {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.viewer-open .scroll-top-button {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, 14px, 0) scale(0.94);
}

/* Final post copy-button layout override */
.post-card__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0 16px;
  padding: 22px 22px 16px;
}

.post-card__content {
  min-width: 0;
}

.post-card__copy {
  position: static;
  margin-top: 2px;
  justify-self: end;
  align-self: start;
}

.post-card__head,
.post-card__meta {
  display: block;
}

.post-card__reply,
.post-card__forwarded,
.post-card__text {
  min-width: 0;
}

.post-card__copy.icon-button:hover,
.post-card__copy.icon-button:focus-visible {
  box-shadow: none !important;
  filter: none !important;
}

@media (max-width: 860px) {
  .post-card__body {
    padding: 16px;
    gap: 0 12px;
  }

  .post-card__copy {
    margin-top: 1px;
  }
}

@media (max-width: 480px) {
  .post-card__body {
    padding: 16px;
    gap: 0 10px;
  }

  .post-card__copy {
    width: 36px;
    height: 36px;
    min-width: 36px;
  }
}
