/* Дополнения к TG/MAX теме для зеркала Telegram */

.tgland-top-banner {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 8px 14px;
  text-align: center;
  font-size: 13px;
  line-height: 1.45;
  background: rgba(10, 14, 18, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #d8dee6;
  backdrop-filter: blur(8px);
}

.tgland-top-banner a {
  color: #8bc4ff;
}

@media (prefers-color-scheme: light) {
  html[data-lb-theme="1"]:not([data-lb-color-scheme-preview="dark"]) .tgland-top-banner {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #3d4a57;
  }

  html[data-lb-theme="1"]:not([data-lb-color-scheme-preview="dark"]) .tgland-top-banner a {
    color: #2481cc;
  }
}

html[data-lb-theme="1"][data-lb-color-scheme-preview="light"] .tgland-top-banner {
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: #3d4a57;
}

html[data-lb-theme="1"][data-lb-color-scheme-preview="light"] .tgland-top-banner a {
  color: #2481cc;
}

.tgland-muted {
  text-align: center;
  color: var(--lb-tgx-muted, #aaa);
  font-weight: 500;
}

.tgland-post-text {
  text-align: left;
  line-height: 1.55;
  font-size: 0.98rem;
  margin: 0.75em 0 1em;
  word-break: break-word;
}

.tgland-post-unsupported {
  margin: 1.25em 0 1.5em;
  padding: 1.25em 1em;
  text-align: center;
  border-radius: 14px;
  border: 1px dashed var(--lb-tgx-card-border, rgba(255, 255, 255, 0.18));
  background: rgba(0, 0, 0, 0.12);
}

.tgland-post-unsupported p {
  margin: 0;
  text-align: center;
  color: var(--lb-tgx-muted, #aaa);
  font-size: 0.95rem;
  line-height: 1.45;
}

.tgland-description {
  text-align: left;
  line-height: 1.55;
  font-size: 0.98rem;
  margin: 0.75em 0 1em;
  word-break: break-word;
}

.tgland-description a,
.tgland-post-text a {
  word-break: break-all;
}

.tgland-post-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
  text-align: left;
}

.tgland-post-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.tgland-post-author {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  color: var(--lb-tgx-text, #fff);
  text-decoration: none;
}

.tgland-post-author:hover {
  color: var(--lb-tgx-link-hover, #8bc4ff);
}

.tgland-post-avatar-link {
  flex-shrink: 0;
  line-height: 0;
}

.tgland-post-media {
  margin: 0 0 14px;
}

.tgland-post-media img,
.tgland-post-media video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

body[data-lb-theme="1"] .wrapper h3.tgland-muted {
  font-size: 0.95rem;
  font-weight: 500;
  margin-top: 0.25em;
}

.tgland-private-post {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.tgland-private-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0.25em 0 1.25em;
}

.tgland-private-icon__svg {
  display: block;
  width: 48px;
  height: 48px;
  color: #3390ec;
}

.tgland-private-description {
  text-align: center;
  line-height: 1.55;
  font-size: 1rem;
  margin: 0 0 1.5em;
  padding: 0 0.5em;
  max-width: 320px;
  color: var(--lb-tgx-text, #fff);
  word-break: break-word;
}

.tgland-private-description br {
  display: block;
  content: '';
  margin-top: 0.35em;
}

.tgland-private-actions {
  width: 100%;
}

.tgland-private-actions .lb-channel-buttons-row {
  justify-content: center;
}

body[data-lb-theme="1"] .wrapper .lb-channel-button {
  min-height: 36px;
  padding: 5px 16px;
}
