html, body { width: 100%; height: 100%; overflow: hidden; background: var(--page); }
body { cursor: none; }
body.pointer { cursor: default; }

#stage {
  position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; transform-origin: 0 0;
  display: grid; grid-template-rows: 104px 1fr 44px; padding: 0 48px;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0, 58, 112, .55), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(228, 30, 46, .10), transparent 60%),
    var(--page);
}

/* ---------- header ---------- */
.top { position: relative; display: flex; align-items: center; gap: 32px; }
.mark { display: flex; align-items: center; gap: 18px; flex: 1; }
.mark .bar { width: 8px; height: 56px; border-radius: 4px; background: linear-gradient(var(--red) 0 50%, #fff 50% 100%); }
.kicker { font-size: 15px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.title { font-size: 38px; font-weight: 800; font-stretch: 85%; letter-spacing: -0.01em; }
#dots { display: flex; gap: 10px; }
#dots button { all: unset; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink-3);
               padding: 8px 14px; border-radius: 999px; letter-spacing: .02em; }
#dots button.on { color: var(--ink-1); background: var(--surface-2); }
.clock { text-align: right; min-width: 260px; }
#clock-time { font-size: 36px; line-height: 1; }
#clock-date { font-size: 15px; color: var(--ink-3); margin-top: 4px; }
#progress { position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; background: var(--grid); border-radius: 2px; overflow: hidden; }
#progress span { display: block; height: 100%; width: 0; background: var(--red); }

/* ---------- footer ---------- */
.foot { display: flex; align-items: center; gap: 24px; font-size: 14px; color: var(--ink-3); }
#warn { display: flex; gap: 10px; margin-left: auto; }
#warn span { color: var(--ink-1); background: color-mix(in srgb, var(--paid) 25%, transparent);
             padding: 4px 12px; border-radius: 999px; font-weight: 600; }
#warn span::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 8px;
                     border-radius: 50%; background: var(--paid); color: #000; font-size: 11px; font-weight: 800; }

/* ---------- boards ---------- */
#boards { position: relative; min-height: 0; }
.board { position: absolute; inset: 8px 0 12px; opacity: 0; transform: translateY(14px);
         transition: opacity .7s ease, transform .7s ease; pointer-events: none; }
.board.on { opacity: 1; transform: none; pointer-events: auto; }
.card { background: var(--surface-1); border: 1px solid var(--hair); border-radius: 20px; box-shadow: var(--shadow); }
.label { font-size: 15px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
h2.label { margin: 0 0 14px; }

/* overview */
.ov { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 236px 1fr; gap: 24px; height: 100%; }
.hero { padding: 26px 30px; display: flex; flex-direction: column; }
.hero .big { font-size: 84px; line-height: 1; margin: 14px 0 10px; }
.hero .sub { display: flex; align-items: baseline; gap: 12px; color: var(--ink-2); font-size: 16px; }
.hero .split { margin-top: auto; }
.ov-chart { grid-column: span 3; padding: 26px 30px 18px; display: flex; flex-direction: column; }
.ov-chart .head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.ov-chart .chart { flex: 1; }
.ov-side { display: grid; grid-template-rows: repeat(4, 1fr); gap: 14px; }
.pf { padding: 16px 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.pf .pfh { grid-column: span 2; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.pf .cell { display: flex; flex-direction: column; gap: 2px; }
.pf .who { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pf .v { font-size: 30px; line-height: 1.1; }
.pf .cell svg { margin-top: 2px; }

/* post gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; gap: 24px; height: 100%; }
.post { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.post .pic { height: 46%; flex: none; position: relative; background: var(--surface-2); overflow: hidden; }
.post .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post .body { padding: 16px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; min-height: 0; }
.post .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.post .who .avatar { width: 32px; height: 32px; }
.post .who .date { margin-left: auto; color: var(--ink-3); font-weight: 600; font-size: 13px; }
.post .text { font-size: 17px; line-height: 1.42; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3;
              -webkit-box-orient: vertical; overflow: hidden; }
.post.noimg .pic { display: none; }
.post.noimg .text { font-size: 24px; line-height: 1.4; color: var(--ink-1); -webkit-line-clamp: 7; font-weight: 600; }
.post.noimg .body { padding-top: 22px; }
.post .stats { margin-top: auto; display: flex; align-items: flex-end; gap: 18px; }
.post .stats .m { display: flex; flex-direction: column; }
.post .stats .m .v { font-size: 32px; line-height: 1.05; }
.post .stats .m .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.post .stats .badge { margin-left: auto; margin-bottom: 6px; }
.post .split-bar { height: 6px; }

/* show board */
.show { display: grid; grid-template-columns: 960px 1fr; grid-template-rows: 1fr 214px; gap: 24px; height: 100%; }
.ep { overflow: hidden; display: flex; flex-direction: column; }
.ep .pic { position: relative; aspect-ratio: 16 / 9; flex: none; background: var(--surface-2); }
.ep .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ep .info { padding: 14px 26px 0; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.ep h3 { margin: 0; font-size: 24px; line-height: 1.25; font-weight: 800; font-stretch: 88%;
         display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.ep .row { display: flex; align-items: baseline; gap: 34px; }
.ep .row .v { font-size: 34px; line-height: 1; margin-right: 8px; }
.ep .row .k { font-size: 13px; color: var(--ink-3); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ep .row .when { margin-left: auto; display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-weight: 600; font-size: 15px; }
.show-side { display: grid; grid-template-rows: auto 1fr; gap: 24px; min-height: 0; }
.ystats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ystats .card { padding: 18px 22px; }
.ystats .v { font-size: 46px; line-height: 1.05; margin-top: 6px; }
.ystats .s { color: var(--ink-3); font-size: 14px; margin-top: 4px; }
.yt-chart { padding: 22px 26px 14px; display: flex; flex-direction: column; min-height: 0; }
.yt-chart .chart { flex: 1; }
.strip { grid-column: span 2; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.vid { overflow: hidden; display: flex; flex-direction: column; }
.vid .thumb { position: relative; aspect-ratio: 16 / 9; background: var(--surface-2); flex: none; }
.vid .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid .meta { padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; min-height: 0; }
.vid .t { font-size: 14px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.vid .v { font-size: 22px; }

/* platform boards */
.pboard { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; height: 100%; }
.pcol { display: grid; grid-template-rows: auto auto 1fr auto; gap: 18px; min-height: 0; }
.pcol .ph { display: flex; align-items: center; gap: 16px; }
.pcol .ph .avatar { width: 64px; height: 64px; }
.pcol .ph .n { font-size: 30px; font-weight: 800; font-stretch: 88%; }
.pcol .ph .f { color: var(--ink-3); font-size: 16px; }
.pcol .ph .fbig { margin-left: auto; text-align: right; }
.pcol .ph .fbig .v { font-size: 46px; line-height: 1; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpis .card { padding: 16px 20px; }
.kpis .v { font-size: 40px; line-height: 1.05; margin: 6px 0 2px; }
.pchart { padding: 20px 24px 12px; display: flex; flex-direction: column; min-height: 0; }
.pchart .head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.pchart .chart { flex: 1; }
.minis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; height: 196px; }
.mini { display: grid; grid-template-columns: 120px 1fr; overflow: hidden; }
.mini .pic { background: var(--surface-2); }
.mini .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini .b { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.mini .t { font-size: 14px; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.mini .v { font-size: 26px; margin-top: auto; }
.mini .k { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.mini.noimg { grid-template-columns: 1fr; }
.mini.noimg .pic { display: none; }
.cov { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.pf .vrow { display: flex; align-items: baseline; gap: 10px; }
.pf .vrow .delta { font-size: 14px; }
.pf { padding: 12px 18px; gap: 2px 16px; }
.pf .v { font-size: 28px; }
.ov { grid-template-rows: 250px 1fr; }
.chart { min-height: 0; }
.ov-chart .chart, .yt-chart .chart, .pchart .chart { position: relative; }

/* shorts & reels */
.shorts { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; height: 100%; }
.half { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.half-head { display: flex; align-items: center; gap: 12px; }
.half-head .icon { width: 28px; height: 28px; color: var(--ink-1); }
.half-head h2 { margin: 0; font-size: 28px; font-weight: 800; font-stretch: 88%; }
.half-head .muted { margin-left: auto; font-size: 16px; font-weight: 600; }
.reels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; flex: 1; min-height: 0; }
.reel { overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
.reel .pic { position: relative; flex: 1; min-height: 0; background: linear-gradient(160deg, var(--surface-2), var(--navy)); overflow: hidden; }
.reel .pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel .fallback { display: none; }
.reel.noimg .fallback { display: block; position: absolute; inset: 70px 24px auto; font-size: 22px; line-height: 1.35; font-weight: 700; color: #fff;
                        display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.reel.noimg .b .t { display: none; }
.reel .val { display: flex; align-items: baseline; gap: 10px; }
.reel .val .v { font-size: 40px; line-height: 1; }
.reel .val .k { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.reel .b { padding: 12px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: none; }
.reel .who { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; min-width: 0; }
.reel .who .avatar { width: 26px; height: 26px; }
.reel .who span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reel .who .date { margin-left: auto; color: var(--ink-3); font-size: 13px; font-weight: 600; white-space: nowrap; }
.reel .t { font-size: 14px; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.8em; }
.reel .foot { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; min-height: 24px; }
.reel .foot .badge { margin-left: auto; }

/* show leaders */
.leaders { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; height: calc(100% - 34px); }
.lcol { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow: hidden; }
.lhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.lhead .label { margin: 0; font-size: 17px; color: var(--ink-1); }
.lhead .muted { font-size: 14px; font-weight: 600; }
.lhero { flex: none; display: flex; flex-direction: column; gap: 8px; }
.lhero .pic { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.lhero .pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lhero .t { font-size: 18px; font-weight: 800; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lhero .row { display: flex; align-items: baseline; gap: 10px; }
.lhero .row .v { font-size: 32px; line-height: 1; }
.lhero .row .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.lhero .row .badge { margin-left: auto; align-self: center; }
.lrows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; counter-reset: r 1; min-height: 0; }
.lrows li { display: grid; grid-template-columns: 30px 112px 1fr; gap: 12px; align-items: center; counter-increment: r; }
.lrows li::before { content: counter(r); font-size: 26px; font-weight: 800; font-stretch: 80%; color: var(--ink-3); text-align: center; }
.lrows .th { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--surface-2); }
.lrows .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lrows .info { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lrows .t { font-size: 14px; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lrows .barrow { display: flex; align-items: center; gap: 10px; }
.lrows .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--grid); overflow: hidden; }
.lrows .bar span { display: block; height: 100%; border-radius: 4px; background: var(--brand-1); }
.lrows .v { font-size: 20px; min-width: 64px; text-align: right; }
.lrows .meta { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.lrows .spend { color: var(--paid); }
.lnote { margin: 12px 0 0; font-size: 14px; color: var(--ink-3); }

/* corner chips: the only things allowed on top of a thumbnail */
.chip { position: absolute; z-index: 1; display: inline-grid; place-items: center; border-radius: 10px;
        background: rgba(6, 16, 31, .82); color: #fff; font-weight: 800; box-shadow: 0 2px 8px rgba(0, 0, 0, .35); }
.chip.plat { left: 12px; top: 12px; width: 38px; height: 38px; }
.chip.plat svg { width: 20px; height: 20px; }
.chip.rank-chip { left: 12px; top: 12px; min-width: 42px; height: 42px; padding: 0 10px; font-size: 24px; font-stretch: 80%; }
.chip.rank-chip.first { background: var(--red); }
.chip.dur { right: 10px; bottom: 10px; font-size: 13px; padding: 3px 8px; border-radius: 6px; font-weight: 700; }
.chip.live { left: 14px; top: 14px; background: var(--red); padding: 5px 12px; border-radius: 6px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.vid .thumb .chip.dur { right: 8px; bottom: 8px; }

/* range picker */
#ranges { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface-1); border: 1px solid var(--hair); }
#ranges button { all: unset; cursor: pointer; font-size: 14px; font-weight: 800; color: var(--ink-3); padding: 7px 14px; border-radius: 999px; letter-spacing: .04em; }
#ranges button.on { background: var(--red); color: #fff; }
/* eight boards + the range picker share the header with the title: keep the title on one line */
.mark { min-width: 0; }
.mark > div { min-width: 0; }
.title { font-size: 34px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top { gap: 20px; }
#dots { gap: 4px; }
#dots button { font-size: 13px; padding: 7px 10px; }
.clock { min-width: 200px; }
.vs { color: var(--ink-3); font-size: 15px; font-weight: 600; }
.hero .sub { flex-wrap: wrap; row-gap: 2px; }
.ov-chart .head { gap: 16px; }
.ov-chart .head .label { margin: 0; white-space: nowrap; }
.ov-chart .legend { flex-wrap: nowrap; white-space: nowrap; gap: 14px; font-size: 13px; }

/* cards are links: keep them looking like cards, and lift on hover when a mouse is in use */
a.card, a.lhero, .lrows li > a { color: inherit; text-decoration: none; }
.lrows li > a { display: contents; }
a.card, a.lhero { transition: transform .15s ease, box-shadow .15s ease; }
body.pointer a.card:hover, body.pointer a.lhero:hover { transform: translateY(-3px); }
body.pointer .lrows li:hover .t { text-decoration: underline; }
