/* Polish: red only where it means something (one main action per view, the brand mark, errors and urgency).
   Everything else is white, grey and charcoal. Plus: border light that follows the pointer, offer banners,
   clipper home, analytics, read more. */

/* ---------- Red discipline ---------- */
.rail .rgrp a.nv[aria-current="page"] i, .rail a.nv[aria-current="page"] i { color: #fff; }
.tabbar [aria-current="page"] i { color: #fff; }
.ch-h h2 i, .ch-tabs button[aria-pressed="true"] i { color: #8E8E93; }
.ch-tabs button[aria-pressed="true"] i { color: #fff; }
.cc-t small i, .cc-t small .ph-seal-check { color: #8E8E93; }
.cc-pill.hot { background: rgb(12 12 14 / .82); color: #fff; }
.cc-pill.hot::before { content: ""; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #FF453A; }
.cc-bar i { background: #F5F5F7; }
.cc:hover .cc-odds > span:first-child { background: #26262B; }
.ch-hero { background: radial-gradient(70% 120% at 0% 0%, rgb(255 255 255 / .05), transparent 60%), #18181B; }
.ch-pat span:nth-child(3n) { -webkit-text-stroke-color: rgb(255 255 255 / .1); }
.un-ico, .cwait .un-ico { background: #26262B !important; box-shadow: inset 0 0 0 1px #34343A !important; color: #fff; }
.dk-ic, .dk-ic.red, .dk-ic.wine, .dk-ic.ink, .dk-ic.gray, .dk-ic.warm { background: #26262B !important; color: #fff !important; box-shadow: inset 0 0 0 1px #34343A; }
.badge.live { background: rgb(48 209 88 / .14); color: #30D158; }
.rv-dec .btn.primary { background: #fff; color: #111113; }
.ch-n { color: #A1A1A6; }

/* ---------- Border light that follows the pointer ---------- */
.pc::after, .cc::after, .cg-c::after, .dkpi::after, .cr .vc::before, .hm-earn::after, .hm-pay::after, .an-card::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; animation: none !important;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgb(255 255 255 / .85), rgb(255 255 255 / .18) 40%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity .3s; }
.hm-earn, .hm-pay, .an-card { position: relative; }
@media (hover: hover) {
  .pc:hover::after, .cc:hover::after, .cg-c:hover::after, .dkpi:hover::after, .cr .vc:hover::before, .hm-earn:hover::after, .hm-pay:hover::after, .an-card:hover::after { opacity: 1; }
}

/* ---------- Offer banner: wide photo fading into ink ---------- */
.pcg .pc, .pc { grid-template-columns: minmax(0, 1fr); min-height: 232px; padding: 22px; overflow: hidden; background: #141416; }
.pc-bg { position: absolute; inset: 0 0 0 28%; z-index: -1; background: #2A2A2E center / cover; -webkit-mask: linear-gradient(90deg, transparent, #000 48%); mask: linear-gradient(90deg, transparent, #000 48%);
  transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.pc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #141416 30%, rgb(20 20 22 / .55) 60%, transparent); pointer-events: none; }
.pc:hover .pc-bg { scale: 1.05; }
.pc-x { max-width: 64%; gap: 8px; }
.pc-h { gap: 4px; }
.pc-h span:first-child { font: 600 11.5px var(--body); letter-spacing: .08em; color: #A1A1A6; }
.pc-h span:last-child { font: 800 clamp(20px, 1.7vw, 24px)/1.05 var(--display); letter-spacing: -.02em; color: #fff; text-transform: none; }
.pc-d { font-size: 14.5px; color: #D1D1D6; }
.pc-b { gap: 8px; height: 38px; padding: 0 14px; border: 0; background: #fff; color: #111113; font-size: 13.5px; }
.pc-b i { transition: translate .25s; }
@media (hover: hover) { .pc:hover .pc-b { background: #E8202F; color: #fff; } .pc:hover .pc-b i { translate: 3px 0; } }
.pc > .pc-pl { position: absolute; top: 14px; right: 14px; left: auto; bottom: auto; }

/* ---------- Campaign header thumbnail and the clipper player ---------- */
.chd-im { aspect-ratio: 16 / 9; display: block; }
.chd-dur { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 5px; background: rgb(0 0 0 / .78); color: #fff; font-size: 11px; }
.player.yt { aspect-ratio: 16 / 9; }
.player.yt::before { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, rgb(0 0 0 / .7)); pointer-events: none; }
.yt-play { position: absolute; left: 50%; top: 45%; translate: -50% -50%; z-index: 2; width: 68px; height: 68px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgb(255 255 255 / .16); -webkit-backdrop-filter: blur(16px) saturate(1.6); backdrop-filter: blur(16px) saturate(1.6); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3); color: #fff; font-size: 26px; cursor: pointer;
  transition: scale .35s cubic-bezier(.34, 1.56, .64, 1), background .25s; }
.yt-play:hover { scale: 1.08; background: rgb(255 255 255 / .26); }
.player.yt .ctrls { z-index: 2; } .player.yt .play { display: none; }

/* ---------- Clipper home ---------- */
.hm-flag { margin-bottom: 18px; }
.hm-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hm-h p { font-size: 14px; color: #8E8E93; }
.hm-h h1 { margin-top: 4px; font: 700 clamp(26px, 2.6vw, 34px)/1.1 var(--display); letter-spacing: -.035em; color: #fff; }
.hm-h h1 span { font-weight: 400; color: #8E8E93; }
.hm-h h1 .r1, .hm-h h1 .r2 { font-weight: inherit; }
.hm-h .btn { background: #1C1C1F; border-color: #2A2A2F; color: #fff; border-radius: 12px; }
.hm-top { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.hm-earn, .hm-pay { border-radius: 14px; background: #1C1C1F; border: 1px solid #2A2A2F; padding: 18px; }
.hm-k { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hm-k > div { display: grid; gap: 2px; } .hm-k > div + div { padding-left: 14px; border-left: 1px solid #2A2A2F; }
.hm-k small { font-size: 12.5px; color: #8E8E93; } .hm-k b { font-size: 20px; font-weight: 600; letter-spacing: -.03em; color: #fff; } .hm-k .on b { font-size: 26px; } .hm-k span { font-size: 12px; color: #6E6E73; }
.hm-earn .dchart { margin-top: 10px; height: auto; max-height: 190px; }
.hm-pay { display: grid; gap: 8px; align-content: start; }
.hm-pk { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #8E8E93; }
.hm-pay > b { font-size: 22px; font-weight: 650; letter-spacing: -.03em; color: #fff; } .hm-pay > p { font: 500 13px var(--mono); color: #8E8E93; }
.hm-steps { margin: 6px 0 4px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.hm-steps span { display: grid; gap: 2px; justify-items: center; padding: 10px 4px; border-radius: 10px; background: #141416; font-size: 12px; color: #8E8E93; }
.hm-steps span b { font-size: 16px; color: #fff; } .hm-steps .on { box-shadow: inset 0 0 0 1px #3A3A41; }
.hm-pay .btn { margin-top: auto; height: 42px; border-radius: 11px; background: #26262B; border-color: transparent; color: #fff; }
.hm-sec { margin-top: 30px; }
.hm-all { font-size: 13.5px; color: #A1A1A6; text-decoration: none; } .hm-all:hover { color: #fff; }
.hm-todo { display: grid; gap: 8px; }
.hm-t { display: grid; grid-template-columns: 104px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; background: #1C1C1F; border: 1px solid #2A2A2F; }
.hm-th { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; background: #2A2A2E center 30% / cover; }
.hm-th i { position: absolute; left: 5px; bottom: 5px; padding: 2px; border-radius: 5px; background: rgb(0 0 0 / .7); color: #fff; font-size: 12px; }
.hm-tx { min-width: 0; display: grid; gap: 2px; } .hm-tx b { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hm-tx small { font-size: 12.5px; color: #8E8E93; }
.hm-clips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-c { display: grid; gap: 8px; color: #fff; text-decoration: none; min-width: 0; }
.hm-cth { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; background: #2A2A2E center 30% / cover; transition: scale .4s cubic-bezier(.34, 1.56, .64, 1); }
.hm-c:hover .hm-cth { scale: 1.03; }
.hm-cv { position: absolute; left: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgb(0 0 0 / .75); font-size: 11.5px; }
.hm-c > b { font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hm-cm { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: #D1D1D6; }

/* ---------- Analytics ---------- */
.an-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.an-top h1 { font: 700 clamp(26px, 2.6vw, 34px) var(--display); letter-spacing: -.035em; color: #fff; }
.an-top h1 .r1, .an-top h1 .r2 { font-weight: inherit; }
.an-f { display: flex; gap: 8px; flex-wrap: wrap; }
.an-seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: #0C0C0E; border: 1px solid #232327; }
.an-seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: #A1A1A6; font: 600 13px var(--body); cursor: pointer; transition: background .2s, color .2s; }
.an-seg button:hover { color: #fff; } .an-seg button[aria-pressed="true"] { background: #26262B; color: #fff; box-shadow: inset 0 0 0 1px #34343A; }
.an-card { border-radius: 14px; background: #1C1C1F; border: 1px solid #2A2A2F; padding: 18px; min-width: 0; }
.an-card h2 { font: 650 16px var(--body); letter-spacing: -.015em; color: #fff; }
.an-card h2 span { font-weight: 400; color: #8E8E93; }
.an-card h2 .r1, .an-card h2 .r2 { font-weight: inherit; }
.an-ks { margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.an-k { display: grid; gap: 4px; overflow: hidden; }
.an-k small { font-size: 12.5px; color: #8E8E93; }
.an-k b { font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.04em; color: #fff; }
.an-k > span { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; } .an-k .up { color: #30D158; } .an-k .dn { color: #FF453A; }
.an-k .dspark { position: absolute; right: 14px; top: 16px; width: 72px; height: 28px; opacity: .8; }
.an-k .dspark .ln { stroke: #A1A1A6; } .an-k .dspark .ar { fill: rgb(255 255 255 / .05); }
.an-main { margin-top: 12px; }
.an-mh { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.an-mh a { font-size: 13px; color: #A1A1A6; text-decoration: none; } .an-mh a:hover { color: #fff; }
.an-main .dchart { max-height: 260px; width: 100%; } .an-main .dchart .b { fill: #3A3A41; } .an-main .dchart .b.last { fill: #E8202F; } .an-main .dchart .b:hover { fill: #8E8E93; }
.an-2 { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.an-2b { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.an-pl2 { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.an-pl2 li { display: grid; grid-template-columns: 136px minmax(0, 1fr) 54px 74px; gap: 12px; align-items: center; font-size: 13.5px; }
.an-pn { display: inline-flex; align-items: center; gap: 7px; color: #D1D1D6; } .an-pn i { font-size: 16px; }
.an-bar { height: 8px; border-radius: 99px; background: #141416; overflow: hidden; } .an-bar i { display: block; height: 100%; border-radius: inherit; background: #D1D1D6; }
.an-pl2 b { text-align: right; font-weight: 600; color: #fff; } .an-pl2 small { text-align: right; color: #8E8E93; font-size: 12px; }
.an-tip { margin-top: 16px; padding-top: 12px; border-top: 1px solid #2A2A2F; display: flex; gap: 8px; font-size: 13px; line-height: 1.45; color: #A1A1A6; } .an-tip i { flex: none; font-size: 16px; color: #fff; }
.an-fn { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.an-fn li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto 44px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; color: #D1D1D6; overflow: hidden; }
.an-fn li::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #26262B; border-radius: inherit; z-index: 0; }
.an-fn li > * { position: relative; z-index: 1; } .an-fn b { color: #fff; } .an-fn small { text-align: right; color: #8E8E93; font-size: 12px; }
.an-cl { list-style: none; margin: 6px 0 0; padding: 0; }
.an-cl li { display: grid; grid-template-columns: 18px 88px minmax(0, 1fr) 64px 76px; gap: 12px; align-items: center; padding: 10px 0; }
.an-cl li + li { border-top: 1px solid #2A2A2F; }
.an-n { font-size: 12px; color: #6E6E73; }
.an-th { aspect-ratio: 16 / 9; border-radius: 7px; background: #2A2A2E center 30% / cover; }
.an-ct { min-width: 0; display: grid; gap: 2px; } .an-ct b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .an-ct small { display: flex; align-items: center; gap: 5px; font-size: 12px; color: #8E8E93; white-space: nowrap; overflow: hidden; }
.an-cv { display: grid; text-align: right; } .an-cv b { font-size: 14px; font-weight: 600; color: #fff; } .an-cv small { font-size: 11.5px; color: #8E8E93; }
.an-empty { margin-top: 14px; color: #8E8E93; font-size: 14px; }
.an-hr { margin-top: 16px; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; }
.an-hr i { height: 56px; border-radius: 4px; background: rgb(255 255 255 / calc(var(--o) * .85)); }
.an-hl { margin-top: 6px; display: flex; justify-content: space-between; font-size: 11px; color: #6E6E73; }

/* ---------- Read more ---------- */
.rm { display: -webkit-box; -webkit-line-clamp: var(--l, 2); -webkit-box-orient: vertical; overflow: hidden; }
.rm.open { display: block; -webkit-line-clamp: unset; }
.rm-b { margin-top: 2px; padding: 0; border: 0; background: none; color: #fff; font: 600 12.5px var(--body); cursor: pointer; justify-self: start; }
.rm-b:hover { text-decoration: underline; }

/* ---------- Smaller screens ---------- */
@media (max-width: 1100px) { .hm-clips { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-ks { grid-template-columns: repeat(2, minmax(0, 1fr)); } .an-2, .an-2b { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .hm-top { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .pc-x { max-width: 78%; } .pc-bg { inset: 0 0 0 20%; }
  .hm-k { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .hm-k > div:first-child { grid-column: 1 / -1; } .hm-k > div:nth-child(2) { border-left: 0; padding-left: 0; }
  .hm-t { grid-template-columns: 88px minmax(0, 1fr); row-gap: 8px; } .hm-t > .badge, .hm-t > .btn { grid-column: 2; justify-self: start; }
  .hm-clips { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 72%; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .an-pl2 li { grid-template-columns: 90px minmax(0, 1fr) 50px; } .an-pl2 small { display: none; }
  .an-cl li { grid-template-columns: 76px minmax(0, 1fr) 60px; } .an-n, .an-cl .an-cv:last-child { display: none; }
  .an-hr i { height: 40px; }
}
