/* Torrent-Games forum-only CSS split, generated 2026-05-27. */
/* Torrent-Games forum styles (scoped) */
.tg-forum {
  --tg-forum-cyan: #35e8ff;
  --tg-forum-green: #67ffb6;
  --tg-forum-violet: #9b7cff;
  --tg-forum-panel: rgba(8, 16, 28, .92);
  --tg-forum-panel-soft: rgba(13, 25, 42, .82);
  --tg-forum-border: rgba(53, 232, 255, .22);
  color: #e9f7ff;
  display: block;
  width: 100%;
}
.tg-forum * { box-sizing: border-box; }
.tg-forum a { text-decoration: none; }
.tg-forum-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--tg-forum-border);
  border-radius: 14px;
  padding: 26px 28px;
  margin: 0 0 18px;
  background:
    linear-gradient(135deg, rgba(9, 21, 38, .96), rgba(18, 27, 54, .9)),
    radial-gradient(circle at 20% 0%, rgba(53, 232, 255, .16), transparent 38%);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}
.tg-forum-hero--compact { padding: 22px 24px; }
.tg-forum-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--tg-forum-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tg-forum-hero h1 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.12;
  color: #ffffff;
}
.tg-forum-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(232, 246, 255, .82);
  font-size: 15px;
  line-height: 1.55;
}
.tg-forum-stats,
.tg-forum-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.tg-forum-stats span,
.tg-forum-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(53, 232, 255, .24);
  padding: 8px 13px;
  color: #dffbff;
  background: rgba(3, 12, 22, .45);
}
.tg-forum-btn {
  cursor: pointer;
  font-weight: 700;
  transition: border-color .18s ease, color .18s ease, background .18s ease;
}
.tg-forum-btn:hover { border-color: rgba(103, 255, 182, .58); color: #ffffff; }
.tg-forum-btn--ghost { color: var(--tg-forum-cyan); }
.tg-forum-btn--disabled { opacity: .62; cursor: default; }
.tg-forum-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.tg-forum-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  min-height: 142px;
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(8, 18, 32, .94), rgba(14, 27, 46, .86));
  color: inherit;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
}
.tg-forum-card:hover { border-color: rgba(53, 232, 255, .42); }
.tg-forum-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(103, 255, 182, .24);
  background: rgba(2, 12, 22, .55);
  font-size: 25px;
}
.tg-forum-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 19px;
  line-height: 1.2;
}
.tg-forum-card p {
  margin: 0 0 12px;
  color: rgba(232, 246, 255, .76);
  font-size: 14px;
  line-height: 1.45;
}
.tg-forum-card__meta,
.tg-forum-topic__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: rgba(215, 238, 248, .7);
  font-size: 12px;
}
.tg-forum-card__meta span,
.tg-forum-topic__meta span {
  border: 1px solid rgba(53, 232, 255, .14);
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, .18);
}
.tg-forum-panel {
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 12px;
  background: var(--tg-forum-panel);
  overflow: hidden;
}
.tg-forum-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid rgba(53, 232, 255, .12);
}
.tg-forum-panel__head h2 { margin: 0; color: #fff; font-size: 20px; }
.tg-forum-panel__head span { color: rgba(232, 246, 255, .66); }
.tg-forum-topic {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(53, 232, 255, .08);
}
.tg-forum-topic h3 { margin: 0 0 6px; color: #fff; font-size: 17px; }
.tg-forum-topic p { margin: 0; color: rgba(232, 246, 255, .66); }
.tg-forum-empty {
  width: 100%;
  border: 1px dashed rgba(53, 232, 255, .22);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: rgba(5, 13, 24, .55);
}
.tg-forum-empty__icon { font-size: 30px; margin-bottom: 8px; }
.tg-forum-empty h3 { margin: 0 0 8px; color: #fff; }
.tg-forum-empty p { margin: 0 auto; max-width: 620px; color: rgba(232, 246, 255, .74); line-height: 1.5; }
@media (max-width: 760px) {
  .tg-forum-hero { padding: 20px 16px; }
  .tg-forum-hero h1 { font-size: 25px; }
  .tg-forum-grid { grid-template-columns: 1fr; }
  .tg-forum-card { grid-template-columns: 46px 1fr; padding: 14px; }
  .tg-forum-card__icon { width: 46px; height: 46px; font-size: 22px; }
  .tg-forum-topic { flex-direction: column; }
  .tg-forum-actions .tg-forum-btn { width: 100%; }
}

/* TG Forum sections layer */
.tg-forum-category {
  margin: 0 0 18px;
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(6, 15, 28, .94), rgba(11, 25, 43, .86));
  overflow: hidden;
}
.tg-forum-category__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(53, 232, 255, .12);
}
.tg-forum-category__head > div:first-child {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 12px;
  align-items: center;
}
.tg-forum-category__icon {
  grid-row: 1 / span 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(103, 255, 182, .24);
  background: rgba(0, 0, 0, .22);
  font-size: 22px;
}
.tg-forum-category__head h2 {
  margin: 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}
.tg-forum-category__head p {
  grid-column: 2;
  margin: 0;
  color: rgba(232, 246, 255, .74);
  line-height: 1.45;
}
.tg-forum-category__count {
  flex: 0 0 auto;
  border: 1px solid rgba(53, 232, 255, .2);
  border-radius: 999px;
  padding: 7px 11px;
  color: #dffbff;
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
}
.tg-forum-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}
.tg-forum-section-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 13px;
  min-height: 132px;
  border: 1px solid rgba(53, 232, 255, .15);
  border-radius: 12px;
  padding: 14px;
  background: rgba(3, 12, 23, .5);
  color: inherit;
}
.tg-forum-section-card:hover { border-color: rgba(103, 255, 182, .4); }
.tg-forum-section-card__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(53, 232, 255, .18);
  background: rgba(0, 0, 0, .24);
  font-size: 23px;
}
.tg-forum-section-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
}
.tg-forum-section-card p {
  margin: 0 0 11px;
  color: rgba(232, 246, 255, .74);
  line-height: 1.45;
}
@media (max-width: 760px) {
  .tg-forum-category__head { flex-direction: column; padding: 16px; }
  .tg-forum-category__head > div:first-child { grid-template-columns: 38px 1fr; }
  .tg-forum-category__icon { width: 38px; height: 38px; }
  .tg-forum-section-grid { grid-template-columns: 1fr; padding: 12px; }
  .tg-forum-section-card { grid-template-columns: 44px 1fr; min-height: 0; }
  .tg-forum-section-card__icon { width: 44px; height: 44px; }
}

/* TG Forum Phase 2 topic prototype */
.tg-forum-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: rgba(232, 246, 255, .68);
  font-size: 13px;
}
.tg-forum-breadcrumbs a { color: var(--tg-forum-cyan); }
.tg-forum-breadcrumbs span { opacity: .86; }
.tg-forum-topic-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.tg-forum-topic-summary > span,
.tg-forum-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid rgba(53, 232, 255, .2);
  border-radius: 999px;
  padding: 5px 9px;
  color: rgba(232, 246, 255, .82);
  background: rgba(0, 0, 0, .18);
  font-size: 12px;
  line-height: 1;
}
.tg-forum-badge--pin { border-color: rgba(103, 255, 182, .36); color: var(--tg-forum-green); }
.tg-forum-badge--closed { border-color: rgba(255, 201, 77, .34); color: #ffd16a; }
.tg-forum-topic-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tg-forum-post-list {
  display: grid;
  gap: 14px;
}
.tg-forum-post {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(6, 15, 28, .94), rgba(11, 25, 43, .86));
}
.tg-forum-author {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 18px 14px;
  border-right: 1px solid rgba(53, 232, 255, .12);
  background: rgba(0, 0, 0, .16);
  text-align: center;
}
.tg-forum-author img {
  width: 66px;
  height: 66px;
  object-fit: cover;
  border-radius: 50%;
  border: 1px solid rgba(103, 255, 182, .34);
  background: rgba(0, 0, 0, .25);
}
.tg-forum-author strong { color: #fff; font-size: 15px; }
.tg-forum-author span,
.tg-forum-author small { color: rgba(232, 246, 255, .66); font-size: 12px; }
.tg-forum-post__body { padding: 16px 18px; }
.tg-forum-post__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: rgba(232, 246, 255, .62);
  font-size: 12px;
}
.tg-forum-post__content {
  color: rgba(244, 251, 255, .92);
  font-size: 15px;
  line-height: 1.62;
}
.tg-forum-post__edited {
  margin-top: 12px;
  color: rgba(232, 246, 255, .52);
  font-size: 12px;
}
.tg-forum-empty--reply { margin-top: 14px; }
.tg-forum-topic-list .tg-forum-topic { color: inherit; }
.tg-forum-topic:hover h3 { color: var(--tg-forum-cyan); }
@media (max-width: 760px) {
  .tg-forum-post { grid-template-columns: 1fr; }
  .tg-forum-author {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid rgba(53, 232, 255, .12);
  }
  .tg-forum-author img { width: 46px; height: 46px; }
  .tg-forum-post__body { padding: 14px; }
}

/* Torrent-Games Forum Phase 4 public posting forms (TEST) */
.tg-forum-form {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(53, 232, 255, .18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(8, 18, 28, .92), rgba(8, 12, 22, .96));
  box-shadow: 0 16px 34px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.04);
}
.tg-forum-form--inline { margin-top: 10px; padding: 14px; }
.tg-forum-form__head { margin-bottom: 14px; }
.tg-forum-form__head h3 { margin: 0 0 5px; color: #fff; font-size: 18px; }
.tg-forum-form__head p { margin: 0; color: rgba(232,246,255,.68); line-height: 1.45; }
.tg-forum-form label {
  display: block;
  margin: 12px 0 7px;
  color: rgba(232,246,255,.82);
  font-weight: 700;
  font-size: 13px;
}
.tg-forum-form input[type="text"],
.tg-forum-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(53, 232, 255, .2);
  border-radius: 10px;
  background: rgba(2, 8, 16, .72);
  color: #edf9ff;
  padding: 12px 13px;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.tg-forum-form textarea { resize: vertical; min-height: 150px; line-height: 1.55; }
.tg-forum-form input[type="text"]:focus,
.tg-forum-form textarea:focus {
  border-color: rgba(103, 255, 182, .54);
  box-shadow: 0 0 0 3px rgba(103, 255, 182, .08);
}
.tg-forum-form-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.tg-forum-form-actions span,
.tg-forum-note { color: rgba(232,246,255,.62); font-size: 13px; }
.tg-forum-edit-link {
  color: var(--tg-forum-cyan);
  text-decoration: none;
  font-weight: 700;
}
.tg-forum-edit-link:hover { color: #fff; }
.tg-forum-alert {
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 12px;
  border: 1px solid rgba(255, 90, 90, .3);
  background: rgba(80, 12, 18, .34);
  color: #ffe5e5;
}
.tg-forum-alert ul { margin: 8px 0 0 18px; padding: 0; }
@media (max-width: 640px) {
  .tg-forum-form { padding: 14px; }
  .tg-forum-form textarea { min-height: 130px; }
  .tg-forum-form-actions .tg-forum-btn { width: 100%; justify-content: center; }
}

/* Torrent-Games forum premium redesign overrides (scoped, 2026-05-25) */
.tg-forum {
  --tg-forum-bg: #06101c;
  --tg-forum-card: rgba(9, 20, 35, .94);
  --tg-forum-card-2: rgba(14, 30, 50, .88);
  --tg-forum-text: #f2fbff;
  --tg-forum-muted: rgba(214, 235, 246, .72);
  --tg-forum-soft: rgba(214, 235, 246, .56);
  max-width: 1180px;
  margin: 0 auto 28px;
  padding: 0 4px;
  color: var(--tg-forum-text);
  font-size: 16px;
  line-height: 1.62;
}
.tg-forum a { color: inherit; }
.tg-forum-hero {
  border-radius: 18px;
  padding: 34px 36px;
  margin-bottom: 24px;
  border: 1px solid rgba(53, 232, 255, .32);
  background:
    linear-gradient(135deg, rgba(6, 16, 30, .98), rgba(12, 24, 44, .94) 48%, rgba(8, 36, 48, .9)),
    radial-gradient(circle at 10% 12%, rgba(53, 232, 255, .22), transparent 35%),
    radial-gradient(circle at 86% 0%, rgba(103, 255, 182, .14), transparent 34%);
  box-shadow: 0 26px 60px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.05);
}
.tg-forum-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(53,232,255,.2), transparent 32%, transparent 68%, rgba(103,255,182,.12));
  opacity: .55;
}
.tg-forum-hero > * { position: relative; z-index: 1; }
.tg-forum-hero--compact { padding: 26px 30px; }
.tg-forum-kicker {
  margin-bottom: 10px;
  color: #7fffd1;
  font-size: 12px;
  letter-spacing: .11em;
}
.tg-forum-hero h1 {
  max-width: 960px;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(53,232,255,.22);
}
.tg-forum-hero--compact h1 { font-size: 32px; }
.tg-forum-hero p {
  max-width: 920px;
  color: rgba(238, 248, 255, .86);
  font-size: 16px;
  line-height: 1.65;
}
.tg-forum-stats span,
.tg-forum-topic-summary > span,
.tg-forum-badge {
  min-height: 32px;
  padding: 7px 11px;
  border-color: rgba(53,232,255,.28);
  background: rgba(2, 10, 20, .52);
  color: rgba(238,248,255,.9);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.tg-forum-btn {
  min-height: 40px;
  border-radius: 12px;
  border-color: rgba(53,232,255,.38);
  background: linear-gradient(135deg, rgba(20, 156, 216, .92), rgba(14, 92, 172, .9));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 190, 255, .15);
}
.tg-forum-btn:hover {
  background: linear-gradient(135deg, rgba(32, 202, 244, .96), rgba(27, 132, 212, .94));
  box-shadow: 0 16px 34px rgba(0, 220, 255, .22);
  transform: translateY(-1px);
}
.tg-forum-btn--ghost {
  background: rgba(2, 10, 20, .48);
  color: #8ef4ff;
}
.tg-forum-category {
  margin-bottom: 24px;
  border-radius: 18px;
  border-color: rgba(53,232,255,.24);
  background: linear-gradient(145deg, rgba(7, 17, 31, .98), rgba(12, 26, 45, .92));
  box-shadow: 0 18px 44px rgba(0,0,0,.28);
}
.tg-forum-category__head {
  align-items: center;
  padding: 22px 24px;
  background: linear-gradient(90deg, rgba(53,232,255,.08), transparent 54%, rgba(103,255,182,.06));
}
.tg-forum-category__icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: linear-gradient(145deg, rgba(0, 229, 255, .13), rgba(103,255,182,.08));
  box-shadow: 0 0 24px rgba(53,232,255,.12);
}
.tg-forum-category__head h2 {
  font-size: 25px;
  letter-spacing: 0;
}
.tg-forum-category__head p {
  max-width: 780px;
  color: var(--tg-forum-muted);
  font-size: 14px;
}
.tg-forum-category__count {
  border-color: rgba(103,255,182,.25);
  color: #bafbe0;
  background: rgba(8, 28, 30, .55);
}
.tg-forum-section-grid {
  grid-template-columns: repeat(2, minmax(300px, 1fr));
  gap: 14px;
  padding: 18px;
}
.tg-forum-section-card {
  min-height: 116px;
  border-radius: 16px;
  padding: 16px;
  border-color: rgba(53,232,255,.16);
  background: linear-gradient(145deg, rgba(5, 14, 26, .86), rgba(10, 25, 42, .76));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tg-forum-section-card:hover {
  transform: translateY(-2px);
  border-color: rgba(53,232,255,.44);
  background: linear-gradient(145deg, rgba(9, 24, 42, .95), rgba(10, 35, 48, .84));
  box-shadow: 0 16px 34px rgba(0,0,0,.26), 0 0 0 1px rgba(53,232,255,.08);
}
.tg-forum-section-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #c9fbff;
}
.tg-forum-section-card h3 {
  margin-bottom: 5px;
  color: #fff;
  font-size: 19px;
  line-height: 1.25;
}
.tg-forum-section-card p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  margin-bottom: 12px;
  color: rgba(225, 241, 250, .72);
  font-size: 14px;
  line-height: 1.5;
}
.tg-forum-card__meta,
.tg-forum-topic__meta {
  gap: 7px;
}
.tg-forum-card__meta span,
.tg-forum-topic__meta span {
  padding: 6px 9px;
  color: rgba(232,246,255,.8);
  border-color: rgba(53,232,255,.18);
  background: rgba(0,0,0,.24);
}
.tg-forum-section-card .tg-forum-card__meta span:last-child { display: none; }
.tg-forum-panel {
  border-radius: 18px;
  border-color: rgba(53,232,255,.22);
  background: linear-gradient(145deg, rgba(7, 17, 31, .98), rgba(10, 22, 38, .94));
  box-shadow: 0 18px 44px rgba(0,0,0,.26);
}
.tg-forum-panel__head {
  padding: 18px 22px;
  background: rgba(53,232,255,.045);
}
.tg-forum-panel__head h2 { font-size: 23px; }
.tg-forum-topic-list {
  display: grid;
  gap: 10px;
  padding: 14px;
}
.tg-forum-topic {
  align-items: center;
  border: 1px solid rgba(53,232,255,.12);
  border-radius: 15px;
  padding: 16px 18px;
  background: rgba(3, 12, 23, .55);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.tg-forum-topic:hover {
  transform: translateY(-1px);
  border-color: rgba(53,232,255,.34);
  background: rgba(8, 23, 39, .78);
}
.tg-forum-topic h3 {
  font-size: 19px;
  line-height: 1.28;
}
.tg-forum-topic p {
  color: var(--tg-forum-muted);
  font-size: 13px;
  line-height: 1.5;
}
.tg-forum-topic__meta {
  justify-content: flex-end;
  min-width: 220px;
  font-size: 12px;
}
.tg-forum-breadcrumbs {
  margin-bottom: 14px;
  padding: 9px 12px;
  border: 1px solid rgba(53,232,255,.12);
  border-radius: 12px;
  background: rgba(3, 12, 23, .42);
}
.tg-forum-post-list { gap: 18px; }
.tg-forum-post {
  grid-template-columns: 128px 1fr;
  border-radius: 18px;
  border-color: rgba(53,232,255,.22);
  background: linear-gradient(145deg, rgba(7, 17, 31, .98), rgba(10, 24, 40, .94));
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
.tg-forum-author {
  padding: 16px 10px;
  background: linear-gradient(180deg, rgba(53,232,255,.055), rgba(0,0,0,.16));
}
.tg-forum-author img {
  width: 54px;
  height: 54px;
  border-color: rgba(53,232,255,.34);
}
.tg-forum-author strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.tg-forum-author span,
.tg-forum-author small { font-size: 11px; line-height: 1.35; }
.tg-forum-post__body { padding: 20px 24px; }
.tg-forum-post__meta {
  margin-bottom: 15px;
  gap: 9px;
}
.tg-forum-post__meta > span,
.tg-forum-edit-link {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(53,232,255,.16);
  background: rgba(0,0,0,.18);
}
.tg-forum-edit-link { color: #8ef4ff; }
.tg-forum-post__content {
  max-width: 920px;
  color: rgba(247, 252, 255, .96);
  font-size: 16.5px;
  line-height: 1.78;
  overflow-wrap: anywhere;
}
.tg-forum-post__content br { line-height: 1.95; }
.tg-forum-post__edited { color: var(--tg-forum-soft); }
.tg-forum-form {
  border-radius: 18px;
  padding: 22px;
  border-color: rgba(53,232,255,.24);
  background: linear-gradient(145deg, rgba(7, 18, 32, .96), rgba(4, 10, 20, .97));
  box-shadow: 0 18px 42px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.tg-forum-form--inline {
  margin-top: 16px;
  padding: 18px;
  border-color: rgba(103,255,182,.22);
}
.tg-forum-form__head h3 { font-size: 21px; }
.tg-forum-form__head p { color: var(--tg-forum-muted); }
.tg-forum-form label {
  color: rgba(240,250,255,.9);
  font-size: 14px;
}
.tg-forum-form input[type="text"],
.tg-forum-form textarea {
  border-radius: 13px;
  border-color: rgba(53,232,255,.24);
  background: rgba(1, 8, 17, .82);
  color: #f4fbff;
  font-size: 15.5px;
  line-height: 1.6;
}
.tg-forum-form textarea { min-height: 190px; }
.tg-forum-empty {
  border-radius: 16px;
  background: rgba(4, 14, 25, .62);
}
.tg-forum-alert { border-radius: 14px; }
@media (min-width: 1200px) {
  .tg-forum { max-width: 1240px; }
}
@media (max-width: 900px) {
  .tg-forum { padding: 0; font-size: 15.5px; }
  .tg-forum-section-grid { grid-template-columns: 1fr; }
  .tg-forum-topic { align-items: flex-start; flex-direction: column; }
  .tg-forum-topic__meta { justify-content: flex-start; min-width: 0; }
}
@media (max-width: 640px) {
  .tg-forum { margin-bottom: 20px; }
  .tg-forum-hero,
  .tg-forum-hero--compact { padding: 22px 16px; border-radius: 16px; }
  .tg-forum-hero h1,
  .tg-forum-hero--compact h1 { font-size: 26px; }
  .tg-forum-hero p { font-size: 14.5px; }
  .tg-forum-category__head { padding: 16px; }
  .tg-forum-category__head h2 { font-size: 21px; }
  .tg-forum-category__head p { font-size: 13.5px; }
  .tg-forum-section-card { grid-template-columns: 40px 1fr; padding: 14px; }
  .tg-forum-section-card__icon { width: 40px; height: 40px; }
  .tg-forum-section-card h3 { font-size: 17px; }
  .tg-forum-post { grid-template-columns: 1fr; }
  .tg-forum-author { flex-direction: row; align-items: center; text-align: left; padding: 12px 14px; }
  .tg-forum-author img { width: 42px; height: 42px; }
  .tg-forum-post__body { padding: 16px; }
  .tg-forum-post__content { font-size: 15.5px; line-height: 1.72; }
  .tg-forum-form { padding: 16px; }
  .tg-forum-form textarea { min-height: 160px; }
  .tg-forum-form-actions { align-items: stretch; flex-direction: column; }
  .tg-forum-form-actions .tg-forum-btn { width: 100%; }
}

/* Torrent-Games forum unread/new indicators (scoped, 2026-05-26) */
.tg-forum .tg-forum-badge--new,
.tg-forum .tg-forum-new-dot,
.tg-forum .tg-forum-section-new {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid rgba(255, 205, 83, .44);
  background: linear-gradient(135deg, rgba(255, 205, 83, .18), rgba(255, 166, 36, .10));
  color: #ffe39a;
  box-shadow: 0 0 18px rgba(255, 190, 55, .12);
}
.tg-forum .tg-forum-new-dot {
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0;
  vertical-align: middle;
}
.tg-forum .tg-forum-section-new {
  margin-left: 9px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}
.tg-forum .tg-forum-topic--unread,
.tg-forum .tg-forum-section-card--unread {
  border-color: rgba(255, 205, 83, .34);
  box-shadow: inset 3px 0 0 rgba(255, 205, 83, .78), 0 14px 32px rgba(0,0,0,.22), 0 0 26px rgba(255, 190, 55, .08);
}
.tg-forum .tg-forum-topic--unread {
  background: linear-gradient(90deg, rgba(255, 205, 83, .075), rgba(3, 12, 23, .66));
}
.tg-forum .tg-forum-topic--unread h3 {
  color: #fff6d4;
}
.tg-forum .tg-forum-section-card--unread {
  background: linear-gradient(145deg, rgba(35, 26, 8, .56), rgba(8, 22, 38, .82));
}
.tg-forum .tg-forum-section-card--unread:hover,
.tg-forum .tg-forum-topic--unread:hover {
  border-color: rgba(255, 205, 83, .54);
  box-shadow: inset 3px 0 0 rgba(255, 205, 83, .9), 0 18px 38px rgba(0,0,0,.26), 0 0 30px rgba(255, 190, 55, .13);
}
@media (max-width: 640px) {
  .tg-forum .tg-forum-section-new {
    margin: 6px 0 0;
    padding: 4px 7px;
    font-size: 10.5px;
  }
  .tg-forum .tg-forum-new-dot {
    margin-left: 4px;
    padding: 3px 7px;
  }
}

/* Torrent-Games public forum moderation controls (scoped, 2026-05-26) */
.tg-forum .tg-forum-modbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 10px;
  border: 1px solid rgba(53,232,255,.14);
  border-radius: 14px;
  background: rgba(3, 12, 23, .52);
}
.tg-forum .tg-forum-modbar form,
.tg-forum .tg-forum-inline-form {
  display: inline-flex;
  margin: 0;
  padding: 0;
}
.tg-forum .tg-forum-modbtn,
.tg-forum .tg-forum-inline-form button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid rgba(53,232,255,.2);
  background: rgba(0,0,0,.22);
  color: rgba(235,248,255,.9);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}
.tg-forum .tg-forum-modbtn:hover,
.tg-forum .tg-forum-inline-form button:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(53,232,255,.42);
  background: rgba(53,232,255,.1);
}
.tg-forum .tg-forum-modbtn--edit { color: #9cefff; }
.tg-forum .tg-forum-modbtn--pin {
  border-color: rgba(255,205,83,.34);
  color: #ffe39a;
  background: rgba(255,205,83,.09);
}
.tg-forum .tg-forum-modbtn--state {
  border-color: rgba(255,205,83,.24);
  color: #ffd98f;
  background: rgba(255,205,83,.06);
}
.tg-forum .tg-forum-modbtn--danger,
.tg-forum .tg-forum-edit-link--danger {
  border-color: rgba(255,92,92,.34) !important;
  color: #ffb1b1 !important;
  background: rgba(255,92,92,.08) !important;
}
.tg-forum .tg-forum-edit-link--danger:hover {
  color: #fff !important;
  border-color: rgba(255,92,92,.55) !important;
  background: rgba(255,92,92,.14) !important;
}
@media (max-width: 640px) {
  .tg-forum .tg-forum-modbar { align-items: stretch; }
  .tg-forum .tg-forum-modbar form,
  .tg-forum .tg-forum-modbtn { width: 100%; }
  .tg-forum .tg-forum-modbar button { width: 100%; }
  .tg-forum .tg-forum-post__meta .tg-forum-inline-form { width: 100%; }
  .tg-forum .tg-forum-post__meta .tg-forum-inline-form button { width: 100%; }
}

/* Torrent-Games frontend moderation UI fix (scoped, 2026-05-26) */
.tg-forum .tg-forum-actionbar {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 12px 0 16px;
  padding: 9px;
  border: 1px solid rgba(53,232,255,.14);
  border-radius: 14px;
  background: rgba(3, 12, 23, .48);
}
.tg-forum .tg-forum-actionbar form,
.tg-forum .tg-forum-post-action-form {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tg-forum .tg-forum-action-btn {
  appearance: none;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0;
  min-height: 30px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(53,232,255,.22);
  background: rgba(0,0,0,.24);
  color: rgba(235,248,255,.92);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}
.tg-forum .tg-forum-action-btn:hover {
  transform: translateY(-1px);
  color: #fff;
  border-color: rgba(53,232,255,.46);
  background: rgba(53,232,255,.12);
}
.tg-forum .tg-forum-action-edit {
  color: #a9f4ff;
  border-color: rgba(53,232,255,.32);
  background: rgba(53,232,255,.09);
}
.tg-forum .tg-forum-action-danger {
  color: #ffc2c2 !important;
  border-color: rgba(255,92,92,.42) !important;
  background: rgba(255,92,92,.10) !important;
}
.tg-forum .tg-forum-action-danger:hover {
  color: #fff !important;
  border-color: rgba(255,92,92,.62) !important;
  background: rgba(255,92,92,.18) !important;
}
.tg-forum .tg-forum-action-close {
  color: #d9e6ef;
  border-color: rgba(180,205,220,.28);
  background: rgba(180,205,220,.07);
}
.tg-forum .tg-forum-action-pin {
  color: #ffe39a;
  border-color: rgba(255,205,83,.40);
  background: rgba(255,205,83,.10);
}
.tg-forum .tg-forum-post__meta .tg-forum-post-action-form {
  align-self: center;
}
.tg-forum .tg-forum-post__meta .tg-forum-action-btn,
.tg-forum .tg-forum-post__meta .tg-forum-edit-link {
  min-height: 27px;
  padding: 5px 9px;
  font-size: 12px;
}
@media (max-width: 640px) {
  .tg-forum .tg-forum-actionbar {
    gap: 7px;
  }
  .tg-forum .tg-forum-actionbar form,
  .tg-forum .tg-forum-actionbar .tg-forum-action-btn {
    flex: 0 1 auto !important;
    width: auto !important;
  }
  .tg-forum .tg-forum-action-btn {
    min-height: 34px;
    padding: 8px 10px;
    white-space: normal;
  }
  .tg-forum .tg-forum-post__meta .tg-forum-post-action-form {
    width: auto !important;
  }
}

/* Torrent-Games mobile moderation tap fix (scoped, 2026-05-26) */
.tg-forum .tg-forum-actionbar,
.tg-forum .tg-forum-actionbar form,
.tg-forum .tg-forum-post-action-form,
.tg-forum .tg-forum-action-btn {
  position: relative;
  z-index: 5;
  pointer-events: auto;
}

.tg-forum .tg-forum-action-btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(53,232,255,.18);
}

@media (max-width: 760px) {
  .tg-forum .tg-forum-actionbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .tg-forum .tg-forum-actionbar form,
  .tg-forum .tg-forum-actionbar .tg-forum-action-btn,
  .tg-forum .tg-forum-post__meta .tg-forum-post-action-form,
  .tg-forum .tg-forum-post__meta .tg-forum-post-action-form .tg-forum-action-btn {
    display: flex !important;
    width: 100% !important;
    max-width: 100%;
  }

  .tg-forum .tg-forum-actionbar .tg-forum-action-btn,
  .tg-forum .tg-forum-post__meta .tg-forum-post-action-form .tg-forum-action-btn {
    min-height: 44px;
    justify-content: center;
    white-space: normal;
  }

  .tg-forum .tg-forum-post__meta {
    position: relative;
    z-index: 4;
  }
}

/* Torrent-Games dedicated forum wide layout (scoped by forum wrapper, 2026-05-26) */
@supports selector(.cols:has(.tg-forum)) {
  .cols:has(.tg-forum) {
    display: block;
    width: min(100%, 1480px);
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(12px, 2vw, 28px);
    padding-right: clamp(12px, 2vw, 28px);
  }
  .cols:has(.tg-forum) .col-left,
  .cols:has(.tg-forum) .col-right,
  .cols:has(.tg-forum) aside.col-left,
  .cols:has(.tg-forum) aside.col-right {
    display: none !important;
  }
  .cols:has(.tg-forum) .col-main {
    width: 100% !important;
    max-width: none !important;
    min-width: 0;
    flex: none !important;
  }
  .cols:has(.tg-forum) .tg-forum {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
  }
  .cols:has(.tg-forum) .tg-forum-section-grid {
    grid-template-columns: repeat(3, minmax(280px, 1fr));
  }
  .cols:has(.tg-forum) .tg-forum-post__content {
    max-width: 1080px;
  }
}
@media (max-width: 1180px) {
  @supports selector(.cols:has(.tg-forum)) {
    .cols:has(.tg-forum) .tg-forum-section-grid {
      grid-template-columns: repeat(2, minmax(260px, 1fr));
    }
  }
}
@media (max-width: 760px) {
  @supports selector(.cols:has(.tg-forum)) {
    .cols:has(.tg-forum) {
      padding-left: 10px;
      padding-right: 10px;
    }
    .cols:has(.tg-forum) .tg-forum-section-grid {
      grid-template-columns: 1fr;
    }
  }
}

/* Torrent-Games forum author profile card stats and badges (scoped, 2026-05-26) */
.tg-forum .tg-forum-author--profile {
  gap: 7px;
  border-right: 1px solid rgba(53,232,255,.14);
}
.tg-forum .tg-forum-author--profile img {
  margin-bottom: 3px;
  box-shadow: 0 0 0 3px rgba(53,232,255,.06), 0 10px 22px rgba(0,0,0,.28);
}
.tg-forum .tg-forum-author__group {
  color: rgba(232,246,255,.72);
  font-size: 11px;
  line-height: 1.25;
}
.tg-forum .tg-forum-author__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  margin-top: 2px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid rgba(53,232,255,.20);
  background: rgba(53,232,255,.07);
  color: #c8f8ff;
  font-size: 10.5px;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}
.tg-forum .tg-forum-author__rank--admin {
  border-color: rgba(53,232,255,.45);
  background: linear-gradient(135deg, rgba(53,232,255,.18), rgba(66,118,255,.12));
  color: #bdf8ff;
  box-shadow: 0 0 18px rgba(53,232,255,.12);
}
.tg-forum .tg-forum-author__rank--moderator {
  border-color: rgba(154,132,255,.42);
  background: rgba(130,105,255,.13);
  color: #d7d0ff;
}
.tg-forum .tg-forum-author__rank--active,
.tg-forum .tg-forum-author__rank--advanced,
.tg-forum .tg-forum-author__rank--expert {
  border-color: rgba(255,205,83,.42);
  background: rgba(255,205,83,.11);
  color: #ffe49f;
}
.tg-forum .tg-forum-author__rank--newbie,
.tg-forum .tg-forum-author__rank--member {
  border-color: rgba(125,222,255,.22);
  background: rgba(125,222,255,.07);
  color: rgba(218,246,255,.9);
}
.tg-forum .tg-forum-author__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  width: 100%;
  margin-top: 5px;
}
.tg-forum .tg-forum-author__stats span {
  display: grid;
  gap: 1px;
  padding: 7px 6px;
  border: 1px solid rgba(53,232,255,.13);
  border-radius: 10px;
  background: rgba(0,0,0,.18);
}
.tg-forum .tg-forum-author__stats b {
  color: #fff;
  font-size: 15px;
  line-height: 1;
}
.tg-forum .tg-forum-author__stats small {
  color: rgba(232,246,255,.64);
  font-size: 10px;
  line-height: 1.2;
}
.tg-forum .tg-forum-author__since,
.tg-forum .tg-forum-author__site-comments {
  color: rgba(232,246,255,.56);
  font-size: 10.5px;
  line-height: 1.25;
}
@media (max-width: 640px) {
  .tg-forum .tg-forum-author--profile {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 4px 10px;
    border-right: 0;
    border-bottom: 1px solid rgba(53,232,255,.12);
  }
  .tg-forum .tg-forum-author--profile img {
    grid-row: span 4;
    margin: 0;
  }
  .tg-forum .tg-forum-author__rank {
    justify-self: start;
  }
  .tg-forum .tg-forum-author__stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 6px;
  }
  .tg-forum .tg-forum-author__since,
  .tg-forum .tg-forum-author__site-comments {
    grid-column: 1 / -1;
  }
}

/* Torrent-Games forum internal search (scoped, 2026-05-26) */
.tg-forum .tg-forum-search {
  width: min(100%, 820px);
  margin: 18px auto 6px;
}
.tg-forum .tg-forum-search--compact {
  width: min(100%, 680px);
  margin-top: 14px;
}
.tg-forum .tg-forum-search--topic-top,
.tg-forum .tg-forum-search--home-top {
  width: min(100%, 760px);
  margin: 0 auto 20px;
}

.tg-forum .tg-forum-search--home-top {
  margin-bottom: 22px;
}

.tg-forum .tg-forum-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  width: 100%;
  padding: 7px;
  border: 1px solid rgba(53,232,255,.22);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(3,12,23,.72), rgba(8,22,38,.62));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 12px 30px rgba(0,0,0,.18);
}
.tg-forum .tg-forum-search-input {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 13px;
  background: rgba(0,0,0,.28);
  color: #f4fbff;
  font-size: 15px;
  outline: none;
}
.tg-forum .tg-forum-search-input::placeholder { color: rgba(232,246,255,.52); }
.tg-forum .tg-forum-search-input:focus {
  box-shadow: 0 0 0 1px rgba(53,232,255,.36), 0 0 24px rgba(53,232,255,.10);
}
.tg-forum .tg-forum-search-button {
  min-height: 42px;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: linear-gradient(135deg, #35e8ff, #33d17a);
  color: #041018;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.tg-forum .tg-forum-search-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.tg-forum .tg-forum-search-results {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(53,232,255,.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(4,14,25,.58);
}
.tg-forum .tg-forum-search-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, auto);
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid rgba(53,232,255,.13);
  border-radius: 15px;
  background: rgba(3,12,23,.58);
  color: inherit;
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}
.tg-forum .tg-forum-search-card:hover {
  transform: translateY(-1px);
  border-color: rgba(53,232,255,.36);
  background: rgba(8,23,39,.78);
}
.tg-forum .tg-forum-search-card h3 {
  margin: 0 0 7px;
  color: #fff;
  font-size: 18px;
  line-height: 1.28;
}
.tg-forum .tg-forum-search-card p {
  margin: 0;
  color: rgba(232,246,255,.72);
  font-size: 14px;
  line-height: 1.55;
}
.tg-forum .tg-forum-search-empty {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid rgba(53,232,255,.14);
  border-radius: 16px;
  background: rgba(4,14,25,.62);
  text-align: center;
}
.tg-forum .tg-forum-search-empty h3 { margin: 0 0 8px; color: #fff; }
.tg-forum .tg-forum-search-empty p { margin: 0; color: rgba(232,246,255,.68); }
@media (max-width: 700px) {
  .tg-forum .tg-forum-search-form,
  .tg-forum .tg-forum-search-card {
    grid-template-columns: 1fr;
  }
  .tg-forum .tg-forum-search-button {
    width: 100%;
  }
}

/* Torrent-Games forum visual polish: top spacing and mobile title safety (scoped, 2026-05-26) */
@supports selector(.wrapper-main:has(.tg-forum)) {
  .wrapper-main:has(.tg-forum) > .carousels {
    display: none;
  }

  .wrapper-main:has(.tg-forum) > .cols,
  .wrapper-main:has(.tg-forum) .cols:has(.tg-forum) {
    padding-top: clamp(14px, 2vw, 24px);
  }
}

.tg-forum,
.tg-forum *,
.tg-forum *::before,
.tg-forum *::after {
  min-width: 0;
}

.tg-forum h1,
.tg-forum h2,
.tg-forum h3,
.tg-forum p,
.tg-forum a,
.tg-forum span,
.tg-forum-breadcrumbs,
.tg-forum-topic,
.tg-forum-topic__meta,
.tg-forum-topic-summary,
.tg-forum-search-card {
  overflow-wrap: anywhere;
  word-break: normal;
}

.tg-forum-hero h1,
.tg-forum-hero--compact h1,
.tg-forum-topic h3,
.tg-forum-search-card h3,
.tg-forum-section-card h3 {
  white-space: normal;
  max-width: 100%;
}

.tg-forum-topic > div:first-child,
.tg-forum-search-card > div:first-child,
.tg-forum-section-card__body {
  min-width: 0;
}

.tg-forum-topic__meta,
.tg-forum-topic-summary {
  max-width: 100%;
}

@media (max-width: 760px) {
  @supports selector(body:has(.tg-forum)) {
    html:has(.tg-forum),
    body:has(.tg-forum) {
      width: 100%;
      max-width: 100%;
      overflow-x: hidden;
    }

    body:has(.tg-forum) .wrapper,
    body:has(.tg-forum) .wrapper-main {
      width: 100% !important;
      min-width: 0 !important;
      max-width: 100vw !important;
      overflow-x: hidden;
    }

    body:has(.tg-forum) .header {
      max-width: calc(100vw - 20px);
    }
  }

  @supports selector(.wrapper-main:has(.tg-forum)) {
    .wrapper-main:has(.tg-forum) {
      margin-top: 6px !important;
      overflow-x: hidden;
    }

    .wrapper-main:has(.tg-forum) > .cols,
    .wrapper-main:has(.tg-forum) .cols:has(.tg-forum) {
      width: 100% !important;
      max-width: 100% !important;
      padding-top: 10px;
      overflow-x: hidden;
    }

    .wrapper-main:has(.tg-forum) .col-main,
    .wrapper-main:has(.tg-forum) #dle-content,
    .wrapper-main:has(.tg-forum) .tg-forum {
      width: 100% !important;
      max-width: 100% !important;
      overflow-x: hidden;
    }
  }

  .tg-forum-hero,
  .tg-forum-hero--compact {
    margin-bottom: 14px;
  }

  .tg-forum-hero h1,
  .tg-forum-hero--compact h1 {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.14;
  }

  .tg-forum-topic,
  .tg-forum-search-card {
    width: 100%;
  }

  .tg-forum-topic h3,
  .tg-forum-search-card h3 {
    font-size: 17px;
    line-height: 1.3;
  }

  .tg-forum-topic__meta,
  .tg-forum-topic-summary {
    justify-content: flex-start;
  }

  .tg-forum-topic__meta span,
  .tg-forum-topic-summary > span,
  .tg-forum-badge {
    max-width: 100%;
    white-space: normal;
  }
}

@media (max-width: 430px) {
  .tg-forum-breadcrumbs {
    font-size: 12px;
    line-height: 1.5;
  }

  .tg-forum-hero,
  .tg-forum-hero--compact,
  .tg-forum-search-results,
  .tg-forum-panel,
  .tg-forum-category,
  .tg-forum-post,
  .tg-forum-form {
    border-radius: 14px;
  }

  .tg-forum-panel__head,
  .tg-forum-search-card,
  .tg-forum-topic {
    padding-left: 12px;
    padding-right: 12px;
  }

  .tg-forum-panel__head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .tg-forum-hero h1,
  .tg-forum-hero--compact h1 {
    display: block;
    width: 100%;
    font-size: 20px;
    line-height: 1.16;
    word-break: break-word;
  }

  .tg-forum-topic-summary {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .tg-forum-topic-summary > span,
  .tg-forum-badge {
    justify-content: flex-start;
    width: 100%;
  }
}


.tg-forum .tg-forum-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(74, 210, 255, .12);
}
.tg-forum .tg-forum-pagination__link,
.tg-forum .tg-forum-pagination__dots {
  min-width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(74, 210, 255, .18);
  background: linear-gradient(135deg, rgba(10, 29, 47, .92), rgba(5, 17, 31, .92));
  color: rgba(226, 245, 255, .86);
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.03), 0 10px 22px rgba(0, 0, 0, .18);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease, background .18s ease;
}
.tg-forum .tg-forum-pagination__link:hover,
.tg-forum .tg-forum-pagination__link:focus {
  color: #fff;
  border-color: rgba(67, 230, 255, .48);
  box-shadow: 0 0 18px rgba(0, 170, 255, .20), inset 0 0 0 1px rgba(67, 230, 255, .10);
  transform: translateY(-1px);
}
.tg-forum .tg-forum-pagination__link--active {
  color: #06121f;
  border-color: rgba(89, 255, 224, .55);
  background: linear-gradient(135deg, #59ffe0, #20b7ff);
  box-shadow: 0 0 24px rgba(32, 183, 255, .24);
  cursor: default;
}
.tg-forum .tg-forum-pagination__link--arrow {
  min-width: 104px;
}
.tg-forum .tg-forum-pagination__dots {
  min-width: 34px;
  padding: 0 8px;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: rgba(226, 245, 255, .48);
}
@media (max-width: 520px) {
  .tg-forum .tg-forum-pagination {
    gap: 6px;
    margin-top: 18px;
  }
  .tg-forum .tg-forum-pagination__link,
  .tg-forum .tg-forum-pagination__dots {
    min-width: 38px;
    height: 38px;
    padding: 0 11px;
    border-radius: 12px;
    font-size: 13px;
  }
  .tg-forum .tg-forum-pagination__link--arrow {
    min-width: auto;
  }
}


/* TG forum safe YouTube embed support: 20260526 */
.tg-forum .tg-forum-youtube {
    position: relative;
    width: 100%;
    max-width: 820px;
    aspect-ratio: 16 / 9;
    margin: 16px 0;
    overflow: hidden;
    border: 1px solid rgba(45, 244, 206, 0.18);
    border-radius: 16px;
    background: rgba(3, 8, 18, 0.82);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.tg-forum .tg-forum-youtube iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media screen and (max-width: 640px) {
    .tg-forum .tg-forum-youtube {
        margin: 12px 0;
        border-radius: 12px;
    }
}
/* TG forum safe YouTube embed support end */

/* TG forum YouTube editor insert helper: 20260526 visual polish */
.tg-forum .tg-forum-youtube-insert {
    position: relative;
    margin: 14px 0 4px;
    padding: 13px;
    border: 1px solid rgba(53, 214, 255, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 12% 0%, rgba(42, 225, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(6, 17, 35, 0.94), rgba(9, 35, 58, 0.9) 52%, rgba(5, 18, 38, 0.94));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.tg-forum .tg-forum-youtube-insert::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(45, 244, 206, 0.34), transparent 28%, transparent 72%, rgba(31, 143, 255, 0.24));
    opacity: 0.35;
}

.tg-forum .tg-forum-youtube-insert__label,
.tg-forum .tg-forum-youtube-insert__row,
.tg-forum .tg-forum-youtube-insert__hint {
    position: relative;
    z-index: 1;
}

.tg-forum .tg-forum-youtube-insert__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: #e8fbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tg-forum .tg-forum-youtube-insert__label::before {
    content: "▶";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1677ff, #2df4ce);
    color: #03101d;
    font-size: 10px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(45, 244, 206, 0.22);
}

.tg-forum .tg-forum-youtube-insert__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.tg-forum .tg-forum-youtube-insert__input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 0 14px;
    border: 1px solid rgba(139, 231, 255, 0.22);
    border-radius: 13px;
    background: rgba(2, 10, 24, 0.72);
    color: #f0fcff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.tg-forum .tg-forum-youtube-insert__input::placeholder {
    color: rgba(213, 239, 247, 0.58);
}

.tg-forum .tg-forum-youtube-insert__input:hover {
    border-color: rgba(139, 231, 255, 0.34);
    background: rgba(4, 14, 31, 0.78);
}

.tg-forum .tg-forum-youtube-insert__input:focus {
    border-color: rgba(45, 244, 206, 0.68);
    background: rgba(4, 16, 34, 0.86);
    box-shadow: 0 0 0 3px rgba(45, 244, 206, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.tg-forum .tg-forum-youtube-insert__button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(97, 239, 255, 0.36);
    border-radius: 999px;
    background: linear-gradient(135deg, #1677ff 0%, #20b7ff 48%, #2df4ce 100%);
    color: #03101d;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.24);
    box-shadow: 0 12px 26px rgba(31, 143, 255, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.26);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.tg-forum .tg-forum-youtube-insert__button:hover,
.tg-forum .tg-forum-youtube-insert__button:focus {
    transform: translateY(-1px);
    filter: brightness(1.08) saturate(1.08);
    border-color: rgba(255, 255, 255, 0.55);
    box-shadow: 0 16px 32px rgba(45, 244, 206, 0.25), 0 8px 18px rgba(31, 143, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.tg-forum .tg-forum-youtube-insert__button:active {
    transform: translateY(0);
}

.tg-forum .tg-forum-youtube-insert__hint {
    margin-top: 8px;
    color: rgba(220, 241, 246, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

.tg-forum .tg-forum-youtube-insert--empty {
    border-color: rgba(255, 184, 64, 0.56);
    box-shadow: 0 0 0 3px rgba(255, 184, 64, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
    .tg-forum .tg-forum-youtube-insert {
        margin-top: 12px;
        padding: 11px;
        border-radius: 14px;
    }

    .tg-forum .tg-forum-youtube-insert__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tg-forum .tg-forum-youtube-insert__input,
    .tg-forum .tg-forum-youtube-insert__button {
        width: 100%;
    }

    .tg-forum .tg-forum-youtube-insert__button {
        min-height: 44px;
    }
}
/* TG forum YouTube editor insert helper end */

/* TG forum safe BBCode support: 20260526 stage 3A */
.tg-forum .tg-forum-quote {
    margin: 14px 0;
    padding: 13px 15px;
    border-left: 4px solid rgba(45, 244, 206, 0.72);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 24, 42, 0.84), rgba(10, 42, 62, 0.64));
    color: rgba(232, 251, 255, 0.92);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tg-forum .tg-forum-spoiler {
    margin: 14px 0;
    border: 1px solid rgba(53, 214, 255, 0.2);
    border-radius: 13px;
    background: rgba(4, 14, 31, 0.74);
    overflow: hidden;
}

.tg-forum .tg-forum-spoiler__title {
    padding: 11px 13px;
    color: #e8fbff;
    font-weight: 800;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(12, 40, 68, 0.9), rgba(7, 24, 45, 0.88));
    list-style: none;
}

.tg-forum .tg-forum-spoiler__title::-webkit-details-marker {
    display: none;
}

.tg-forum .tg-forum-spoiler__title::before {
    content: "+";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 7px;
    background: rgba(45, 244, 206, 0.16);
    color: #2df4ce;
}

.tg-forum .tg-forum-spoiler[open] .tg-forum-spoiler__title::before {
    content: "−";
}

.tg-forum .tg-forum-spoiler__body {
    padding: 13px;
    color: rgba(229, 244, 248, 0.9);
}

.tg-forum .tg-forum-code {
    margin: 14px 0;
    padding: 14px;
    border: 1px solid rgba(139, 231, 255, 0.18);
    border-radius: 12px;
    background: #06101e;
    color: #d9f8ff;
    font-family: Consolas, Monaco, Courier New, monospace;
    font-size: 13px;
    line-height: 1.55;
    white-space: pre-wrap;
    word-break: break-word;
    overflow-x: auto;
}

.tg-forum .tg-forum-code code {
    font-family: inherit;
    color: inherit;
}

.tg-forum .tg-forum-bbcode-link,
.tg-forum .tg-forum-post a.tg-forum-bbcode-link {
    color: #63e6ff;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(99, 230, 255, 0.42);
}

.tg-forum .tg-forum-bbcode-link:hover,
.tg-forum .tg-forum-post a.tg-forum-bbcode-link:hover {
    color: #9fffea;
    border-bottom-color: rgba(159, 255, 234, 0.72);
}

.tg-forum .tg-forum-bbcode-img,
.tg-forum .tg-forum-post img.tg-forum-bbcode-img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 14px 0;
    border: 1px solid rgba(53, 214, 255, 0.18);
    border-radius: 14px;
    background: rgba(2, 10, 24, 0.72);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

@media (max-width: 640px) {
    .tg-forum .tg-forum-quote,
    .tg-forum .tg-forum-spoiler,
    .tg-forum .tg-forum-code,
    .tg-forum .tg-forum-bbcode-img,
    .tg-forum .tg-forum-post img.tg-forum-bbcode-img {
        margin: 12px 0;
        border-radius: 11px;
    }

    .tg-forum .tg-forum-code {
        padding: 12px;
        font-size: 12px;
    }
}
/* TG forum safe BBCode support end */

/* TG forum admin image upload helper: 20260526 stage 3B */
.tg-forum .tg-forum-image-upload {
    position: relative;
    margin: 12px 0 4px;
    padding: 13px;
    border: 1px solid rgba(84, 173, 255, 0.22);
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 0%, rgba(79, 149, 255, 0.16), transparent 34%),
        linear-gradient(135deg, rgba(5, 17, 34, 0.94), rgba(10, 34, 58, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 14px 32px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

.tg-forum .tg-forum-image-upload::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(31, 143, 255, 0.26), transparent 28%, transparent 72%, rgba(45, 244, 206, 0.18));
    opacity: 0.38;
}

.tg-forum .tg-forum-image-upload__label,
.tg-forum .tg-forum-image-upload__row,
.tg-forum .tg-forum-image-upload__hint,
.tg-forum .tg-forum-image-upload__status {
    position: relative;
    z-index: 1;
}

.tg-forum .tg-forum-image-upload__label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 9px;
    color: #e8fbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tg-forum .tg-forum-image-upload__label::before {
    content: "IMG";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 31px;
    height: 22px;
    border-radius: 8px;
    background: linear-gradient(135deg, #1f8fff, #62d6ff);
    color: #03101d;
    font-size: 9px;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(31, 143, 255, 0.22);
}

.tg-forum .tg-forum-image-upload__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.tg-forum .tg-forum-image-upload__input {
    width: 100%;
    min-width: 0;
    height: 42px;
    padding: 8px 12px;
    border: 1px solid rgba(139, 231, 255, 0.22);
    border-radius: 13px;
    background: rgba(2, 10, 24, 0.72);
    color: #f0fcff;
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 8px 18px rgba(0, 0, 0, 0.12);
}

.tg-forum .tg-forum-image-upload__input::file-selector-button {
    margin-right: 10px;
    padding: 7px 10px;
    border: 0;
    border-radius: 10px;
    background: rgba(45, 244, 206, 0.14);
    color: #dffbff;
    font-weight: 800;
    cursor: pointer;
}

.tg-forum .tg-forum-image-upload__button {
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid rgba(97, 239, 255, 0.36);
    border-radius: 999px;
    background: linear-gradient(135deg, #235dff 0%, #1f8fff 54%, #62d6ff 100%);
    color: #f3fbff;
    font-size: 13px;
    font-weight: 950;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 12px 26px rgba(31, 143, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, opacity 0.18s ease;
}

.tg-forum .tg-forum-image-upload__button:hover,
.tg-forum .tg-forum-image-upload__button:focus {
    transform: translateY(-1px);
    filter: brightness(1.08) saturate(1.08);
    box-shadow: 0 16px 32px rgba(31, 143, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.tg-forum .tg-forum-image-upload__button:disabled {
    cursor: progress;
    opacity: 0.68;
    transform: none;
}

.tg-forum .tg-forum-image-upload__hint {
    margin-top: 8px;
    color: rgba(220, 241, 246, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

.tg-forum .tg-forum-image-upload__status {
    min-height: 18px;
    margin-top: 7px;
    font-size: 12px;
    font-weight: 800;
}

.tg-forum .tg-forum-image-upload__status--loading { color: #9bdcff; }
.tg-forum .tg-forum-image-upload__status--success { color: #77f7bd; }
.tg-forum .tg-forum-image-upload__status--error { color: #ffb48d; }

@media (max-width: 640px) {
    .tg-forum .tg-forum-image-upload {
        margin-top: 12px;
        padding: 11px;
        border-radius: 14px;
    }

    .tg-forum .tg-forum-image-upload__row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .tg-forum .tg-forum-image-upload__input,
    .tg-forum .tg-forum-image-upload__button {
        width: 100%;
    }

    .tg-forum .tg-forum-image-upload__button {
        min-height: 44px;
    }
}
/* TG forum admin image upload helper end */

/* TG forum BBCode editor toolbar: 20260526 stage 3C */
.tg-forum .tg-forum-bbcode-toolbar {
    position: relative;
    margin: 9px 0 10px;
    padding: 11px;
    border: 1px solid rgba(53, 214, 255, 0.2);
    border-radius: 15px;
    background:
        radial-gradient(circle at 8% 0%, rgba(45, 244, 206, 0.14), transparent 35%),
        linear-gradient(135deg, rgba(5, 17, 34, 0.92), rgba(9, 32, 56, 0.88));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.055), 0 12px 28px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.tg-forum .tg-forum-bbcode-toolbar::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(31, 143, 255, 0.22), transparent 35%, rgba(45, 244, 206, 0.16));
    opacity: 0.34;
}

.tg-forum .tg-forum-bbcode-toolbar__top,
.tg-forum .tg-forum-bbcode-toolbar__buttons {
    position: relative;
    z-index: 1;
}

.tg-forum .tg-forum-bbcode-toolbar__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 9px;
}

.tg-forum .tg-forum-bbcode-toolbar__label {
    color: #e8fbff;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.tg-forum .tg-forum-bbcode-toolbar__hint {
    color: rgba(220, 241, 246, 0.62);
    font-size: 12px;
}

.tg-forum .tg-forum-bbcode-toolbar__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.tg-forum .tg-forum-bbcode-btn {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid rgba(139, 231, 255, 0.22);
    border-radius: 11px;
    background: rgba(2, 10, 24, 0.66);
    color: #dff8ff;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tg-forum .tg-forum-bbcode-btn:hover,
.tg-forum .tg-forum-bbcode-btn:focus {
    transform: translateY(-1px);
    border-color: rgba(45, 244, 206, 0.56);
    background: rgba(10, 43, 70, 0.86);
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 143, 255, 0.18), 0 0 0 3px rgba(45, 244, 206, 0.08);
}

.tg-forum .tg-forum-bbcode-btn:active {
    transform: translateY(0);
}

.tg-forum .tg-forum-bbcode-btn--strong { font-weight: 1000; }
.tg-forum .tg-forum-bbcode-btn--italic { font-style: italic; }
.tg-forum .tg-forum-bbcode-btn--underline { text-decoration: underline; }
.tg-forum .tg-forum-bbcode-btn--strike { text-decoration: line-through; }

@media (max-width: 640px) {
    .tg-forum .tg-forum-bbcode-toolbar {
        padding: 10px;
        border-radius: 13px;
    }

    .tg-forum .tg-forum-bbcode-toolbar__top {
        display: block;
        margin-bottom: 8px;
    }

    .tg-forum .tg-forum-bbcode-toolbar__hint {
        display: block;
        margin-top: 3px;
    }

    .tg-forum .tg-forum-bbcode-btn {
        min-height: 38px;
        padding: 0 10px;
    }
}
/* TG forum BBCode editor toolbar end */

/* TG forum toolbar media integration: 20260526 */
.tg-forum .tg-forum-bbcode-file {
    display: none !important;
}

.tg-forum .tg-forum-bbcode-toolbar__status {
    position: relative;
    z-index: 1;
    min-height: 18px;
    margin-top: 8px;
    color: rgba(220, 241, 246, 0.7);
    font-size: 12px;
    font-weight: 800;
}

.tg-forum .tg-forum-bbcode-toolbar__status:empty {
    display: none;
}

.tg-forum .tg-forum-bbcode-toolbar__status--loading { color: #9bdcff; }
.tg-forum .tg-forum-bbcode-toolbar__status--success { color: #77f7bd; }
.tg-forum .tg-forum-bbcode-toolbar__status--error { color: #ffb48d; }

.tg-forum .tg-forum-bbcode-btn:disabled {
    cursor: progress;
    opacity: 0.65;
    transform: none;
}
/* TG forum toolbar media integration end */

/* TG forum reply-to-post button: 20260526 */
.tg-forum .tg-forum-reply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(45, 244, 206, 0.28);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(10, 38, 64, 0.92), rgba(8, 70, 100, 0.82));
    color: #dffbff;
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 8px 18px rgba(0, 0, 0, 0.14);
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.tg-forum .tg-forum-reply-btn:hover,
.tg-forum .tg-forum-reply-btn:focus {
    transform: translateY(-1px);
    border-color: rgba(45, 244, 206, 0.64);
    background: linear-gradient(135deg, rgba(24, 93, 145, 0.95), rgba(28, 162, 175, 0.88));
    color: #ffffff;
    box-shadow: 0 12px 24px rgba(31, 143, 255, 0.2), 0 0 0 3px rgba(45, 244, 206, 0.08);
}

.tg-forum .tg-forum-reply-btn:active {
    transform: translateY(0);
}

@media (max-width: 640px) {
    .tg-forum .tg-forum-reply-btn {
        min-height: 34px;
        padding: 0 12px;
    }
}
/* TG forum reply-to-post button end */

