/* Replies as flat rows (Bryan, Oct 23, option A): no box and no purple bar, a divider between
   replies, the time beside the name, React and Reply always there as quiet text. */
.news-replies:has(.cb-msg) {
  gap: 0;
}
.news-reply.cb-msg,
.news-reply.cb-msg.mine {
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.cb-msg .cb-avatar {
  width: 40px;
  height: 40px;
  font-size: 15px;
}
.cb-msg .news-reply-head {
  gap: 4px 8px;
}
.cb-msg .news-reply-head .cb-name {
  font-size: 15px;
}
.cb-msg .news-reply-head .pixel-badge {
  margin-left: 0;
}
.cb-msg .news-reply-head small {
  margin-left: 0;
  font-size: 12px;
}
.cb-msg .news-reply-head small::before {
  content: '· ';
}
.cb-msg > .cb-msg-main > p {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.55;
}
.cb-msg .news-reply-tools {
  gap: 14px;
  margin-top: 8px;
}
.cb-msg .news-reply-tools .text-button {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
@media (hover: hover) {
  .cb-msg .news-reply-tools .text-button {
    opacity: 1;
  }
}
@media (max-width: 600px) {
  .news-reply.cb-msg,
  .news-reply.cb-msg.mine {
    gap: 12px;
    padding: 14px 0;
  }
  .cb-msg .cb-avatar {
    width: 34px;
    height: 34px;
  }
}

/* Founder: Bryan's holo foil badge, shifting slowly through foil colours like a trading card. */
.pixel-badge.badge-founder {
  font-size: 11px;
  background: linear-gradient(110deg, #f7d774, #f3a6c8, #9fd3f2, #b9f0c4, #f7d774);
  background-size: 300% 100%;
  animation: founder-holo 5s linear infinite;
}
@keyframes founder-holo {
  to {
    background-position: 300% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pixel-badge.badge-founder {
    animation: none;
  }
}

/* Find my match: the creator's profile picture beside their name on each result (Bryan, Oct 23). */
.match-who {
  display: flex;
  align-items: center;
  gap: 10px;
}
.match-face {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--accent, var(--soft));
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.match-face:has(img) {
  background: var(--soft);
}
.match-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Protected preview switch on each uploaded track (Bryan, Oct 23): easy to find and tap on a phone. */
.protect-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 6px 0 4px;
  padding: 0 12px 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}
.protect-switch:hover {
  border-color: var(--ink);
}
.ps-track {
  position: relative;
  flex: none;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--line);
  transition: background 0.15s;
}
.ps-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
  transition: transform 0.15s;
}
.protect-switch[aria-checked='true'] .ps-track {
  background: var(--green);
}
.protect-switch[aria-checked='true'] .ps-knob {
  transform: translateX(16px);
}
@media (prefers-reduced-motion: reduce) {
  .ps-track,
  .ps-knob {
    transition: none;
  }
}
