/* v69 clean layer: clearer Home, real Tracking tab, You switch */

/* less stacked stuff on top of Home */
#follow-strip, #fx-pk-nudge { display: none !important; }

.home-intro, .track-intro { margin: 2px 2px 14px; }
.home-intro h2, .track-intro h2 {
  font-family: var(--font-c); font-weight: 700; font-size: 27px; line-height: 1.05;
  margin: 0 0 6px; letter-spacing: -.005em; text-wrap: balance;
}
.home-intro p, .track-intro p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.45; max-width: 60ch; }
@media (min-width: 960px) {
  .home-intro h2, .track-intro h2 { font-size: 40px; }
  .home-intro p, .track-intro p { font-size: 16px; }
}
#live-tape { margin-bottom: 14px; }

/* Tracking: the people you track, as a scrollable row */
.track-people { margin-bottom: 16px; }
.track-people:empty { display: none; }
.tp-row { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 8px; scrollbar-width: none; }
.tp-row::-webkit-scrollbar { display: none; }
.tp-chip {
  flex: 0 0 auto; width: 74px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text); font: inherit;
}
.tp-ava {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--brand-soft); color: var(--brand); font-family: var(--font-c); font-weight: 700; font-size: 22px;
  border: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
}
.tp-chip.locked .tp-ava { background: var(--gold-soft); color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.tp-add .tp-ava { background: transparent; border-style: dashed; color: var(--muted); border-color: var(--line-strong); }
.tp-name { font-size: 12.5px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-add .tp-name { color: var(--muted); }

.tp-empty {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; box-shadow: var(--shadow);
}
.tp-empty > b { font-size: 17px; display: block; }
.tp-empty > p { margin: 4px 0 10px; line-height: 1.45; }
.tp-s-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); }
.tp-s-row .tp-ava { width: 38px; height: 38px; font-size: 16px; border-width: 1.5px; }
.tp-s-who { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tp-s-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tp-sugg > .link-btn { margin-top: 10px; }

/* Tracking layout: bets first, managing traders second */
#alerts .follow-grid { flex-direction: column; }
body.tracking-none #alerts .follow-main { display: none; }
@media (max-width: 959px) {
  #alerts .wallet-list { max-height: none; }
}

/* You = My bets + Account */
.you-switch { margin-bottom: 14px; }
@media (min-width: 700px) { .you-switch { max-width: 360px; } }
body.tracking-none #alerts .follow-side > h3, body.tracking-none #wallet-list, body.tracking-none #follow-limit { display: none; }
.tp-row + .tp-empty{margin-top:10px}

/* v70: lighter Home */
.tsearch-folded { display: none !important; }
#search-toggle.on { background: var(--brand-soft); color: var(--brand); }
#win-board:not(.all) > .lead-row:nth-of-type(n+9) { display: none; }
.board-more { margin: 10px 0 4px; }
.rg-note .link-btn { font-size: inherit; margin-left: 6px; }
@media (max-width: 959px) {
  #winners .win-side { display: none; }
}
.back-home{margin:0 0 10px;display:inline-block}
@media (max-width: 600px) {
  #win-board .bx-row { grid-template-columns: 20px minmax(0,1fr) 40px 84px 66px; }
  #win-board .lead-row .bx-pnl { font-size: 15px; white-space: nowrap; }
  #win-board .bx-who { overflow: hidden; }
  #win-board .bx-who > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (min-width: 700px) {
  #search-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  #winners .toolbar #search-toggle { order: 2; margin-left: auto; }
  #winners .toolbar #tool-selects { order: 3; }
}

/* v71: light/dark switch back in the header on phones too */
@media (max-width: 959px) {
  .header-actions .theme-switch { display: inline-grid !important; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
}
@media (max-width: 959px) {
  header .brand:not(.welcome-brand) { gap: 7px; }
  header .brand:not(.welcome-brand) .wordmark { font-size: 16px !important; letter-spacing: .01em; overflow: visible; }
  header .brand:not(.welcome-brand) .logo { width: 28px; height: 28px; }
  .header-actions { gap: 6px; }
  .header-actions .premium-btn { padding: 0 10px; }
}
@media (max-width: 430px) {
  .header-actions .premium-btn { font-size: 0; width: 40px; height: 40px; padding: 0; justify-content: center; gap: 0; }
  .header-actions .premium-btn .i { width: 20px; height: 20px; }
}

/* v71: Viral right now (Home) */
.clips { margin: 0 0 16px; }
.clips-head { margin: 0 2px 8px; font-size: 17px; }
.clips-row { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.clips-row::-webkit-scrollbar { display: none; }
.clip-card {
  flex: 0 0 auto; width: 210px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 0; text-align: left; color: var(--text); font: inherit; cursor: pointer;
}
.clip-thumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16/9; background: var(--card-2, #0b1a2c); }
.clip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.clip-play { position: absolute; inset: 0; margin: auto; width: 42px; height: 42px; border-radius: 50%; background: rgba(0,0,0,.55); }
.clip-play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 14px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.clip-views { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 6px; border-radius: 6px; }
.clip-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-src { font-size: 12px; color: var(--muted); }
@media (min-width: 960px) { .clip-card { width: 250px; } }

.clip-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(4,10,20,.82); display: grid; place-items: center; padding: 16px; }
.clip-sheet { position: relative; width: min(900px, 100%); background: var(--card); border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.clip-sheet.tall { width: min(420px, 100%); }
.clip-frame { position: relative; aspect-ratio: 16/9; background: #000; }
.clip-sheet.tall .clip-frame { aspect-ratio: 9/16; max-height: 72vh; margin: 0 auto; }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.clip-info { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.clip-info b { line-height: 1.3; }
.clip-info .link-btn { align-self: flex-start; margin-top: 4px; }
.clip-x { position: absolute; top: 8px; right: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; cursor: pointer; }

/* v72: Trending in sports = clips (when YouTube answers) + top headlines (always) */
.clips-top { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.clips-top .clips-head { margin: 0; }
.clips-row { margin-bottom: 8px; }
.home-news { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg, 14px); overflow: hidden; }
.hn-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); color: var(--text); text-decoration: none; }
.hn-item:first-child { border-top: 0; }
.hn-img { width: 64px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: var(--line); }
.hn-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hn-title { font-size: 14px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hn-meta { font-size: 12px; color: var(--muted); }
.home-news .skeleton { margin: 8px 12px; border-radius: 8px; }
.home-news > p { margin: 12px; }
/* v74: clips row sits at the very top of Home */
#winners > .clips:first-child { margin-top: 2px; }
