.tf-start-watch-hide,
[data-testid="view-gate-error"] {
  display: none !important;
}

html.tf-cm-on [data-testid="watch-comments-section"] > ul:not(.tf-cm-list) {
  display: none !important;
}

.tf-cm-wrap,
.tf-cm-wrap .tf-cm-list {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

[data-testid="watch-comments-section"] p.mt-1.text-xs.text-slate-400 {
  display: none !important;
}

[data-testid="dual-wallets"] a[href="/services"] {
  font-size: 0 !important;
  line-height: 0 !important;
}
[data-testid="dual-wallets"] a[href="/services"]::after {
  content: "Top up";
  font-size: 0.875rem;
  line-height: 1.25;
  display: inline-block;
}

.tf-cm-note,
.tf-cm-tools p {
  display: none !important;
}

.tf-cm-wrap {
  margin-top: 1.25rem;
}

.tf-cm-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.tf-cm-tools button {
  border: 1px solid rgba(94, 234, 212, 0.3);
  background: rgba(45, 212, 191, 0.1);
  color: #ccfbf1;
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.tf-cm-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-cm-list.is-expanded {
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.35rem;
}

.tf-cm-list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.tf-cm-list li:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tf-cm-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.tf-cm-author {
  font-weight: 600;
  color: #fff;
}

.tf-cm-time {
  font-size: 0.75rem;
  color: #64748b;
}

.tf-cm-you {
  border-radius: 999px;
  border: 1px solid rgba(45, 212, 191, 0.28);
  background: rgba(45, 212, 191, 0.1);
  color: #ccfbf1;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
}

.tf-cm-body {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.tf-cm-tr {
  display: inline-block !important;
  visibility: visible !important;
  margin-top: 0.28rem;
  padding: 0;
  border: 0;
  background: none;
  color: #7dd3c7;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0.92;
}

.tf-cm-tr:hover {
  color: #99f6e4;
}

.tf-cm-tr-out {
  display: none;
  margin: 0.28rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #99f6e4;
  white-space: pre-wrap;
}

.tf-cm-tr-out.is-on {
  display: block !important;
}

.tf-cm-empty {
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: 1rem;
  padding: 1.5rem 1rem;
  text-align: center;
  color: #94a3b8;
  font-size: 0.875rem;
}

/* The thread is re-homed into the watch grid right after the player. On wide
   screens keep it in the left column under the video so the "Up next" rail
   stays top-right; on small screens the grid is one column and DOM order
   (player, comments, up next) already reads correctly. */
@media (min-width: 1280px) {
  .grid > [data-testid="watch-comments"] {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
}
