/* Reader Pulse — quiet glass-card treatment. Monochrome by request: no
   per-tone accent colors, no timeline connector, no animated running
   border — depth comes from layered gradients/shadows instead of color. */
#tin-hieu.sig-wrap {
  padding: 1rem .72rem 2.6rem;
}

#tin-hieu .sig-board {
  position: relative;
  isolation: isolate;
  overflow: visible;
  padding: .75rem .2rem 1rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  clip-path: none;
  filter: none;
}

#tin-hieu .sig-board::before,
#tin-hieu .sig-board::after { content: none; }

#tin-hieu .sig-board.signal-window-ready { overflow: visible; }

/* Override the legacy shared glass frame: this section is intentionally open. */
#app #tin-hieu .sig-board,
#app #tin-hieu .sig-board.signal-window-ready {
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* raised-glass-v1.css also force-applies (!important) a cool blue-tinted
   box-shadow to .sig-card site-wide (it's in its generic "glass depth"
   selector list alongside .wide-card/.medal-pick/.res-card, unrelated to
   this redesign) — the .sig-board override above was already here for the
   exact same reason, .sig-card itself was just missed. That shadow is
   what was actually showing as a dark band between every pair of cards
   this whole time; every box-shadow change on .sig-main itself (a
   different element one level in) was never going to touch it. */
#app #tin-hieu .sig-card,
#app #tin-hieu .sig-card:hover {
  box-shadow: none !important;
}

@keyframes signal-wave {
  from { transform: scaleY(.58); opacity: .48; }
  to { transform: scaleY(1.08); opacity: 1; }
}

#tin-hieu .sig-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: .8rem;
  background: rgba(255, 255, 255, .025);
}

#tin-hieu .sig-tab {
  position: relative;
  min-width: 0;
  min-height: 2.65rem;
  padding: 0 .55rem;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, .08);
  border-radius: 0;
  background: transparent;
  color: #9c9c9c;
  font-family: Inter, system-ui, sans-serif;
  font-size: .76rem;
  font-weight: 600;
}

#tin-hieu .sig-tab:last-child { border-right: 0; }

#tin-hieu .sig-tab.on {
  color: #0d1117;
  background: #ffffff;
}

#tin-hieu .sig-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: .2rem 0 .35rem;
}

#tin-hieu .sig-card {
  position: relative;
  display: grid;
  grid-template-columns: 2.72rem minmax(0, 1fr);
  gap: .72rem;
  align-items: start;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

#tin-hieu .sig-card > .sig-ava {
  position: relative;
  width: 2.72rem;
  height: 2.72rem;
  margin-top: .1rem;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 .4rem 1rem rgba(0, 0, 0, .3);
}

#tin-hieu .sig-main {
  position: relative;
  min-width: 0;
  padding: .95rem 1.05rem .88rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.15rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015) 55%, rgba(255, 255, 255, .03));
  /* The real source of the old square-cornered bar was .sig-card (its
     unrounded parent, forced by raised-glass-v1.css — see the !important
     override above), not this element. .sig-main itself has its own
     border-radius, so an outer shadow placed directly on it renders with
     correctly rounded corners and, kept tight enough to fade out before
     the next card, stays contained within the gap. */
  box-shadow: inset 0 1px rgba(255, 255, 255, .08), 0 .4rem .9rem rgba(0, 0, 0, .4);
  transition: box-shadow .18s ease, border-color .18s ease;
  /* No backdrop-filter here either — same reasoning as .sig-tools above. */
}

#tin-hieu .sig-meta {
  display: flex;
  align-items: baseline;
  gap: .5rem;
  margin: 0 1.6rem .34rem 0;
}

#tin-hieu .sig-meta b {
  color: #26c2dc;
  font-family: Inter, system-ui, sans-serif;
  font-size: .92rem;
  font-weight: 760;
}

#tin-hieu .sig-meta time {
  margin: 0;
  color: #919191;
  font-size: .69rem;
}

#tin-hieu .sig-text {
  margin: 0 0 .62rem;
  color: #ececec;
  font-size: .88rem;
  line-height: 1.52;
}

#tin-hieu .sig-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem;
}

#tin-hieu .sig-chip,
#tin-hieu .sig-act {
  display: inline-flex;
  align-items: center;
  gap: .28rem;
  min-height: 1.7rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(238, 238, 238, .56);
  font-family: Inter, system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 620;
}

#tin-hieu .sig-chip::before,
#tin-hieu .sig-act::before {
  display: inline-grid;
  place-items: center;
  width: 1rem;
  color: rgba(238, 238, 238, .56);
  font-size: .82rem;
  line-height: 1;
}

#tin-hieu .sig-chip::before { content: "♥"; }
#tin-hieu [data-reply]::before { content: "◌"; }
#tin-hieu [data-quote]::before { content: "❞"; font-family: Georgia, serif; }
#tin-hieu [data-report-comment]::before { content: "⚑"; }
#tin-hieu .sig-chip.on { color: #fff; }
#tin-hieu .sig-chip.on::before { color: #fff; }

#tin-hieu .sig-reply {
  grid-template-columns: 1.85rem minmax(0, 1fr);
  gap: .55rem;
  margin-top: .72rem;
  padding: .65rem;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: .72rem;
  background: rgba(255, 255, 255, .02);
}

#tin-hieu .sig-reply .sig-meta { margin-right: 0; }
#tin-hieu .sig-reply .sig-text { margin-bottom: .25rem; }
#tin-hieu .sig-to { color: rgba(238, 238, 238, .56); }

#tin-hieu .sig-more-replies {
  color: rgba(238, 238, 238, .6);
  font-size: .72rem;
}

#tin-hieu .sig-scroll-status {
  color: #919191;
  font-size: .7rem;
}

#tin-hieu .sig-scroll-status::before {
  width: .38rem;
  height: .38rem;
  border-radius: 1px;
  background: rgba(238, 238, 238, .6);
  transform: rotate(45deg);
}

#tin-hieu .sig-board.signal-window-ready .sig-list {
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}
#tin-hieu .sig-board.signal-window-ready .sig-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, .2);
}
#tin-hieu .sig-scroll-status::before {
  background: rgba(238, 238, 238, .6);
  box-shadow: none;
}

#tin-hieu .sig-compose {
  margin-top: .6rem;
  padding: .42rem;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1rem;
  background: linear-gradient(165deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012));
}

#tin-hieu .sig-fake {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03);
}

#tin-hieu .sig-send {
  border-color: rgba(255, 255, 255, .16);
  background: #ffffff;
  color: #0d1117;
  box-shadow: 0 .3rem 1rem rgba(0, 0, 0, .3);
}

#tin-hieu .sig-login a { color: rgba(238, 238, 238, .85); }

/* (hover: hover) alone isn't a reliable "not a touchscreen" signal on
   iOS Safari — a tap can leave :hover stuck on a card after the finger
   lifts, until something else is tapped. With the translateY below that
   turned into a real bug: the stuck card would shift up and its edge
   would overlap the rounded top corner of the card right after it,
   reading as a flat/square seam between every pair of cards. Requiring
   (pointer: fine) too, and dropping the shift itself, removes the risk
   instead of chasing it. */
@media (hover: hover) and (pointer: fine) {
  #tin-hieu .sig-card:hover .sig-main {
    border-color: rgba(255, 255, 255, .18);
    box-shadow: inset 0 1px rgba(255, 255, 255, .1), 0 .5rem 1.05rem rgba(0, 0, 0, .48);
  }
  #tin-hieu .sig-chip:hover,
  #tin-hieu .sig-act:hover { color: #fff; }
  #tin-hieu .sig-chip:hover::before,
  #tin-hieu .sig-act:hover::before { color: #fff; }
}

@media (max-width: 640px) {
  #tin-hieu.sig-wrap { padding-left: .45rem; padding-right: .45rem; }
  #tin-hieu .sig-board {
    padding: .65rem .28rem .8rem;
    border-radius: 0;
  }

  #tin-hieu .sig-tab { padding: 0 .25rem; font-size: .66rem; }
  #tin-hieu .sig-list { gap: .7rem; }
  #tin-hieu .sig-card { grid-template-columns: 2.42rem minmax(0, 1fr); gap: .55rem; }
  #tin-hieu .sig-card > .sig-ava { width: 2.25rem; height: 2.25rem; }
  #tin-hieu .sig-main { padding: .82rem .78rem .76rem; border-radius: 1rem; }
  #tin-hieu .sig-meta { gap: .35rem; }
  #tin-hieu .sig-meta b { font-size: .84rem; }
  #tin-hieu .sig-meta time { font-size: .63rem; }
  #tin-hieu .sig-text { font-size: .82rem; }
  #tin-hieu .sig-acts { gap: .55rem; }
  #tin-hieu .sig-chip, #tin-hieu .sig-act { font-size: .63rem; }
}

@media (max-width: 390px) {

  #tin-hieu .sig-tab { font-size: .6rem; }
  #tin-hieu .sig-card { grid-template-columns: 2.2rem minmax(0, 1fr); gap: .42rem; }
  #tin-hieu .sig-card > .sig-ava { width: 2rem; height: 2rem; }
  #tin-hieu .sig-main { padding-left: .68rem; padding-right: .68rem; }
}

