/* Clip Hero dashboard shell: 72px icon rail, credits ring, top bar, Home and hub
   pages. Loaded after app.css. Squarer 14px radii, hairlines instead of card
   fills, big Archivo headlines, Signal lime used boldly (active state, meter,
   key numbers). Tokens come from styles.css / app.css, so light and dark follow
   the system exactly as before. */

@keyframes shell-pop { from { opacity: 0; transform: translateX(-6px); } }
@keyframes shell-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes live-pulse { 0%, 100% { box-shadow: 0 0 0 0 var(--accent-line); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* ------------------------------------------------------------ icon rail (desktop) */
@media (min-width: 900px) {
  body.has-rail:not(.onboarding) .app { grid-template-columns: 72px minmax(0, 1fr); }
  .side.rail { width: 72px; padding: 14px 0 14px; gap: 14px; align-items: center; background: var(--bg); border-right: 1px solid var(--line); z-index: 50; overflow: visible; }
}
.rail-logo { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; flex: none; }
.rail-logo img { width: 30px; height: 30px; border-radius: 9px; }
.rail-body { position: relative; flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; align-items: center; }
.rail-nav { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail-group { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.rail-nav .rail-group + .rail-group { margin-top: 10px; padding-top: 10px; position: relative; }
.rail-nav .rail-group + .rail-group::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 1px; margin-left: -13px; background: var(--line-2); }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rail-foot .rail-group { padding-top: 10px; position: relative; }
.rail-foot .rail-group::before { content: ""; position: absolute; top: 0; left: 50%; width: 26px; height: 1px; margin-left: -13px; background: var(--line-2); }

.rail-item { position: relative; z-index: 1; width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--muted); background: none; border: 0; padding: 0; transition: color .18s; }
.rail-item svg { width: 21px; height: 21px; }
.rail-item:hover { color: var(--text); }
.rail-item.active, .rail-item.active:hover { color: var(--accent-ink); }
.rail-item:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; border-radius: 12px; }
.rail-ind { position: absolute; left: 0; top: 0; z-index: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); pointer-events: none; opacity: 0; transition: transform .32s var(--ease-out), opacity .2s; }
.rail-lb { position: absolute; left: calc(100% + 12px); top: 50%; z-index: 90; transform: translate(-10px, -50%); opacity: 0; pointer-events: none; white-space: nowrap; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 600; letter-spacing: -.005em; padding: 7px 12px; border-radius: 10px; transition: opacity .14s, transform .22s var(--ease-out); box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .5); }
.rail-item:hover .rail-lb, .rail-item:focus-visible .rail-lb { opacity: 1; transform: translate(0, -50%); }
.rail-item[aria-expanded="true"] .rail-lb { opacity: 0; }
.rail-badge { position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--text); color: var(--bg); font-family: var(--mono); font-size: 10px; font-weight: 600; display: grid; place-items: center; }
.rail-badge[hidden] { display: none; }
@media (max-height: 780px) {
  .side.rail { gap: 8px; padding: 10px 0; }
  .rail-item { width: 40px; height: 40px; }
  .rail-ind { width: 40px; height: 40px; }
  .rail-nav .rail-group + .rail-group { margin-top: 6px; padding-top: 6px; }
  .rail-foot { gap: 6px; }
}

/* credits meter ring */
.rail-ring { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: none; border: 0; padding: 0; color: var(--text); flex: none; }
.rail-ring svg { position: absolute; inset: 0; width: 44px; height: 44px; }
.rr-track { fill: none; stroke: var(--line-2); stroke-width: 3.5; }
.rr-arc { fill: none; stroke: var(--accent-text); stroke-width: 3.5; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .7s var(--ease-out), stroke .2s; }
.rail-ring.low .rr-arc { stroke: var(--warn); }
.rr-n { position: relative; font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: -.02em; line-height: 1; }
.rr-inf { width: 22px; height: 22px; stroke-width: 2.1; color: var(--accent-text); }
.rail-ring:hover .rr-track { stroke: var(--line-3); }
.rail-ring:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }

/* rail popovers (More, credits) */
.rail-pop { position: fixed; z-index: 95; width: 240px; padding: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-float); animation: shell-pop .16s var(--ease-out); }
.rail-pop[hidden] { display: none; }
.pop-h { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); padding: 2px 8px 8px; }
.rail-credpop { width: 260px; padding: 16px; }
.rail-credpop .pop-h { padding-left: 0; }
.cp-line { margin: 0 0 4px; color: var(--text-2); font-size: 14px; line-height: 1.4; }
.pop-big { font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: 28px; letter-spacing: -.04em; color: var(--accent-text); margin-right: 3px; }
.cp-sub { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.cp-bar { height: 4px; border-radius: 9px; background: var(--surface-3); overflow: hidden; margin-bottom: 14px; }
.cp-bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.cp-act { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cp-plan { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.pop-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 8px; border-radius: 9px; border: 0; background: none; color: var(--text-2); font-size: 14px; font-weight: 500; text-align: left; transition: background-color .12s, color .12s; }
.pop-row svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.pop-row:hover, .pop-row:focus-visible { background: var(--hover); color: var(--text); }
.pop-row.on { color: var(--accent-text); }
.pop-row.on svg { color: var(--accent-text); }

/* ------------------------------------------------------------ top bar */
.topbar .auto-toggle { display: none; }
.topbar-right { gap: 10px; }
.tb-wrap { position: relative; }
.tb-btn { position: relative; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: none; display: grid; place-items: center; color: var(--text-2); transition: border-color .15s, color .15s; }
.tb-btn:hover, .tb-btn[aria-expanded="true"] { border-color: var(--line-3); color: var(--text); }
.tb-btn svg { width: 18px; height: 18px; }
.tb-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 10.5px; font-weight: 600; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--bg); }
.tb-count[hidden] { display: none; }
.topbar .avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); border: 0; font-family: var(--display); font-weight: 800; font-size: 14px; }
.topbar .avatar:hover { filter: brightness(1.06); }
.tb-pop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; width: 300px; padding: 10px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow-float); animation: shell-drop .16s var(--ease-out); }
.tb-pop[hidden] { display: none; }
.tb-menu { width: 260px; }
.mn-who { padding: 8px 8px 10px; }
.mn-who b { display: block; font-size: 14.5px; font-weight: 600; }
.mn-who small { display: block; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.mn-plan { display: flex; justify-content: space-between; gap: 8px; margin: 0 8px 8px; padding: 8px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mn-plan span:last-child { color: var(--accent-text); }
.tb-notes { width: 340px; }
.nt-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 8px; border-radius: 9px; font-size: 13.5px; }
a.nt-row:hover { background: var(--hover); }
.nt-row b { display: block; font-weight: 600; line-height: 1.35; }
.nt-row small { display: block; color: var(--muted); font-size: 12.5px; }
.nt-row + .nt-row { border-top: 1px solid var(--line); border-radius: 0; }
.nt-dot { width: 8px; height: 8px; margin-top: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.nt-dot.off { background: var(--surface-3); }
.nt-empty { padding: 18px 8px; text-align: center; color: var(--muted); font-size: 13px; }
.nt-empty b { display: block; color: var(--text); margin-bottom: 2px; font-size: 14px; }
.upsell { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 7px 44px 7px 16px; position: relative; background: var(--bg-2); border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 13px; text-align: center; flex-wrap: wrap; }
.upsell[hidden] { display: none; }
.upsell b { color: var(--text); font-weight: 600; }
.upsell a { color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.upsell button { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 8px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.upsell button:hover { color: var(--text); background: var(--hover); }
.upsell button svg { width: 15px; height: 15px; }
body.onboarding .upsell { display: none; }
body[data-route="home"] .page-title { display: none; }
@media (min-width: 900px) { body[data-route="home"] .topbar { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; } }
@media (max-width: 899px) { .tb-pop { position: fixed; left: 12px; right: 12px; top: calc(60px + env(safe-area-inset-top)); width: auto; } .topbar .topbar-right { margin-left: auto; } }

/* ------------------------------------------------------------ Home */
body[data-route="home"] .view { max-width: 1400px; }
@media (min-width: 900px) { body[data-route="home"] .view { padding-top: 12px; padding-left: 44px; padding-right: 44px; } }
.hm { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 56px; }
@media (min-width: 1100px) { .hm { grid-template-columns: minmax(0, 1fr) 340px; } }
.hm-wide { grid-column: 1 / -1; min-width: 0; }
.hm-main, .hm-today { min-width: 0; }
.hm-hero h1 { font-family: var(--display); font-stretch: 114%; font-weight: 900; font-size: clamp(34px, 4.6vw, 62px); line-height: .98; letter-spacing: -.045em; margin: 6px 0 16px; text-wrap: balance; max-width: 15em; }
.hm-status { display: flex; align-items: center; gap: 12px; margin: 0 0 30px; color: var(--text-2); font-size: 16px; line-height: 1.4; }
.hm-status b { color: var(--accent-text); font-weight: 600; font-family: var(--mono); font-size: .94em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; animation: live-pulse 2.4s ease-in-out infinite; }
.hm-nudge { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: -8px 0 26px; padding: 14px 16px; border: 1px solid var(--accent-line); border-radius: 14px; color: var(--text-2); font-size: 14px; }
.hm-nudge b { color: var(--text); font-weight: 600; margin-right: 4px; }
.hm-nudge-go { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-text); font-weight: 600; white-space: nowrap; }
.hm-nudge-go svg { width: 16px; height: 16px; }

/* command deck */
.deck { margin-bottom: 8px; }
.deck-tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.deck-tabs::-webkit-scrollbar { display: none; }
.deck-tab { position: relative; flex: none; padding: 0 0 12px; border: 0; background: none; color: var(--muted); font-size: 14.5px; font-weight: 600; letter-spacing: -.005em; transition: color .15s; }
.deck-tab:hover { color: var(--text-2); }
.deck-tab[aria-selected="true"] { color: var(--text); }
.deck-tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease-out); }
.deck-tab[aria-selected="true"]::after { transform: scaleX(1); }
.deck-bar { display: flex; align-items: center; gap: 12px; height: 68px; margin-top: 18px; padding: 0 9px 0 20px; border: 1px solid var(--line-3); border-radius: 14px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.deck-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.deck-bar.bad { border-color: var(--danger); box-shadow: none; }
.deck-ic { width: 22px; height: 22px; flex: none; color: var(--muted); display: grid; place-items: center; }
.deck-ic svg { width: 22px; height: 22px; }
.deck-in { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 17px; color: var(--text); }
.deck-in::placeholder { color: var(--faint); }
.deck-go { height: 50px; padding: 0 22px; flex: none; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700; letter-spacing: -.005em; transition: background-color .15s, transform .1s; }
.deck-go:hover { background: var(--accent-hover); }
.deck-go:active { transform: translateY(1px); }
.deck-go svg { width: 18px; height: 18px; }
.deck-msg { min-height: 22px; margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.deck-msg.bad { color: var(--danger); }
.deck-try { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.deck-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 30px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 8px; background: none; color: var(--text-2); font-size: 13px; font-weight: 500; transition: border-color .12s, color .12s; }
.chip:hover { border-color: var(--line-3); color: var(--text); }

/* sections */
.hm-sec { margin-top: 48px; }
.hm-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hm-head h2 { margin: 0; font-family: var(--display); font-stretch: 110%; font-weight: 800; font-size: 21px; letter-spacing: -.03em; display: flex; align-items: center; gap: 10px; }
.hm-head a { color: var(--muted); font-size: 13px; font-weight: 500; }
.hm-head a:hover { color: var(--text); }
.hm-n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 7px; background: var(--accent); color: var(--accent-ink); font-family: var(--mono); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; letter-spacing: 0; }
.hm-rail { padding-bottom: 4px; }
.hm-rail .acard { background: none; }
.hm-empty { display: grid; gap: 4px; justify-items: start; padding: 18px; border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.hm-empty b { color: var(--text); font-size: 14.5px; font-weight: 600; }
.hm-empty .btn { margin-top: 10px; }
.hm-empty.wide { justify-items: center; text-align: center; padding: 34px 18px; }

/* tool tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.tile { position: relative; display: flex; align-items: flex-start; gap: 13px; padding: 15px 14px; border: 1px solid var(--line); border-radius: 14px; background: none; transition: border-color .15s, background-color .15s, transform .18s var(--ease-out); }
.tile:hover { border-color: var(--accent); background: var(--hover); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; border-radius: 14px; }
.tile-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--text-2); transition: background-color .15s, color .15s, border-color .15s; }
.tile-ic svg { width: 19px; height: 19px; }
.tile:hover .tile-ic { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tile-t { min-width: 0; padding-top: 1px; }
.tile-t b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.tile-t span { display: block; margin-top: 2px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.tile-badge { position: absolute; top: 10px; right: 10px; padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: 9.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.tile-badge.new { background: var(--accent); color: var(--accent-ink); }
.tile-badge.beta { border: 1px solid var(--line-3); color: var(--text-2); }

/* continue */
.cc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 12px; }
.cc { display: flex; gap: 13px; padding: 10px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cc:hover { border-color: var(--line-3); background: var(--hover); }
.cc-job { cursor: default; border-color: var(--accent-line); }
.cc-job:hover { background: none; border-color: var(--accent-line); }
.cc-thumb { position: relative; width: 48px; height: 72px; flex: none; border-radius: 9px; overflow: hidden; }
.cc-thumb .poster, .td-thumb .poster { border-radius: inherit; aspect-ratio: auto; height: 100%; width: 100%; }
.cc-thumb .poster-cap, .cc-thumb .poster-top, .cc-thumb .poster-play, .cc-thumb .poster-dur,
.td-thumb .poster-cap, .td-thumb .poster-top, .td-thumb .poster-play, .td-thumb .poster-dur { display: none; }
.cc-spin { display: grid; place-items: center; background: var(--surface-2); color: var(--accent-text); }
.cc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; padding: 2px 0; }
.cc-t b { font-size: 13.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cc-t small { color: var(--muted); font-size: 12.5px; }
.cc-t .badge { align-self: flex-start; margin-top: auto; height: 20px; font-size: 11px; }
.cc-t .progress { margin-top: 6px; }

/* Today column */
.hm-today { padding-top: 6px; }
@media (min-width: 1100px) { .hm-today { border-left: 1px solid var(--line); padding-left: 32px; margin-left: -1px; } }
@media (max-width: 1099px) { .hm-today { margin-top: 48px; } }
.td-sec + .td-sec { margin-top: 26px; padding-top: 24px; border-top: 1px solid var(--line); }
.td-sec .hm-head { border: 0; padding: 0; margin-bottom: 12px; }
.td-sec .hm-head h2 { font-size: 18px; }
.td-date { font-family: var(--mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.td-row { display: grid; grid-template-columns: 40px 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; cursor: pointer; }
.td-row + .td-row { border-top: 1px solid var(--line); }
.td-time { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); }
.td-thumb { position: relative; width: 30px; height: 44px; border-radius: 6px; overflow: hidden; }
.td-t { min-width: 0; }
.td-t b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-t small { color: var(--muted); font-size: 12.5px; }
.td-state { font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.td-state.live { color: var(--accent-text); }
.td-auto-row { display: flex; align-items: center; gap: 12px; }
.td-auto-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--muted); }
.td-auto-ic.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); }
.td-auto-ic svg { width: 19px; height: 19px; }
.td-auto-t { flex: 1; min-width: 0; }
.td-auto-t b { display: block; font-size: 14.5px; font-weight: 600; }
.td-auto-t small { color: var(--muted); font-size: 12.5px; }
.td-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.td-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease-out); }
.td-link:hover { color: var(--accent-text); }
.td-link:hover svg { transform: translateX(3px); }
.td-best { display: grid; gap: 4px; cursor: pointer; }
.td-best b { font-size: 14.5px; font-weight: 600; line-height: 1.35; margin-top: 4px; }
.td-best small, .td-sub { color: var(--muted); font-size: 12.5px; line-height: 1.4; display: block; }
.td-big { font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 54px; line-height: 1; letter-spacing: -.05em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.td-big.inf svg { width: 54px; height: 54px; stroke-width: 1.6; }
.td-unit { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.td-best .td-unit { margin-bottom: 2px; }
.td-cnum { display: flex; align-items: baseline; gap: 10px; }
.td-bar { height: 4px; margin: 14px 0 10px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.td-bar i { display: block; height: 100%; background: var(--accent); border-radius: 9px; }
.td-cred .td-sub + .td-sub { margin-top: 4px; }

/* Learn strip */
.hm-wide > #homeTrending:empty { display: none; }
.hm-learn { margin-top: 48px; }
.guides { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 1099px) { .guides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .guides { gap: 12px; } .guide-art i { font-size: 40px; left: 10px; top: 6px; } .guide-t { font-size: 14px; } .guide-play { left: 10px; bottom: 10px; width: 32px; height: 32px; } }
.guide { display: grid; gap: 12px; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; }
.guide.soon { cursor: default; }
.guide-art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: linear-gradient(135deg, #2c3a12, #0f1408); transition: border-color .15s, transform .2s var(--ease-out); }
.guide.g1 .guide-art { background: linear-gradient(135deg, #12302b, #0a1614); }
.guide.g2 .guide-art { background: linear-gradient(135deg, #3a2a12, #140e08); }
.guide.g3 .guide-art { background: linear-gradient(135deg, #2a1e3a, #0e0814); }
.guide-art i { position: absolute; left: 14px; top: 8px; font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: normal; font-size: 64px; line-height: 1; letter-spacing: -.06em; color: rgba(206, 240, 71, .9); }
.guide-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.guide:not(.soon):hover .guide-art { border-color: var(--accent); transform: translateY(-2px); }
.guide:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 4px; border-radius: 14px; }
.guide-play { position: absolute; left: 14px; bottom: 14px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); transition: transform .2s var(--ease-out); }
.guide-play svg { width: 15px; height: 15px; margin-left: 2px; }
.guide:not(.soon):hover .guide-play { transform: scale(1.1); }
.guide.soon .guide-play { background: rgba(240, 236, 226, .16); color: rgba(240, 236, 226, .7); }
.guide-t { font-family: var(--display); font-stretch: 108%; font-weight: 800; font-size: 16.5px; line-height: 1.2; letter-spacing: -.025em; }
.guide-state { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); margin-top: -4px; }
.guide.soon .guide-state { color: var(--muted); }
.gmodal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: var(--scrim); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade .2s; }
.gm-box { position: relative; width: min(960px, 100%); background: #000; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-float); }
.gm-box video { width: 100%; max-height: calc(100dvh - 120px); background: #000; }
.gm-t { padding: 12px 16px; background: var(--surface); font-family: var(--display); font-weight: 800; font-stretch: 108%; letter-spacing: -.02em; }
.gm-x { position: absolute; right: 10px; top: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .2); background: rgba(10, 10, 8, .6); color: #fff; display: grid; place-items: center; }
.gm-x svg { width: 16px; height: 16px; }

/* ------------------------------------------------------------ hub pages */
.hub { max-width: 1040px; }
.hub-h h1 { font-family: var(--display); font-stretch: 114%; font-weight: 900; font-size: clamp(32px, 4vw, 52px); line-height: 1; letter-spacing: -.045em; margin: 4px 0 10px; }
.hub-h p { margin: 0 0 30px; color: var(--text-2); font-size: 16px; }
.hub-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 44px; }
.hub-links a { display: grid; gap: 3px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .15s, background-color .15s; }
.hub-links a:hover { border-color: var(--accent); background: var(--hover); }
.hub-links b { font-size: 14.5px; font-weight: 600; }
.hub-links span { color: var(--muted); font-size: 13px; }
.an-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 700px) { .an-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.an-stat { padding: 22px 18px 22px 0; }
.an-stat + .an-stat { padding-left: 22px; border-left: 1px solid var(--line); }
@media (max-width: 700px) { .an-stat:nth-child(3) { border-left: 0; padding-left: 0; } .an-stat:nth-child(n+3) { border-top: 1px solid var(--line); } }
.an-stat span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.an-stat b { display: block; margin-top: 8px; font-family: var(--display); font-stretch: 118%; font-weight: 900; font-size: 46px; line-height: 1; letter-spacing: -.05em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.an-row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 70px 70px; gap: 14px; align-items: center; padding: 13px 0; cursor: pointer; }
.an-row + .an-row { border-top: 1px solid var(--line); }
.an-i { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.an-t b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.an-t small, .an-v small { color: var(--muted); font-size: 12px; }
.an-v { text-align: right; }
.an-v b { display: block; font-family: var(--mono); font-size: 14px; font-weight: 500; }

/* ------------------------------------------------------------ phones */
@media (max-width: 899px) {
  .hm-hero h1 { font-size: 34px; margin-top: 0; }
  .hm-status { font-size: 14.5px; margin-bottom: 22px; align-items: flex-start; }
  .live-dot { margin-top: 7px; }
  .deck-bar { height: 58px; padding-left: 14px; }
  .deck-in { font-size: 16px; }
  .deck-go { height: 42px; padding: 0 14px; }
  .deck-ic { display: none; }
  .deck-tabs { gap: 20px; margin-right: -16px; padding-right: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { flex-direction: column; gap: 10px; }
  .tile-t span { display: none; }
  .hm-sec { margin-top: 38px; }
  .td-big { font-size: 46px; }
}
@media (max-width: 480px) { #deckGo { display: none; } .deck-go { padding: 0 13px; } }
@media (prefers-reduced-motion: reduce) {
  .rail-ind, .rail-lb, .rr-arc, .tile, .guide-art, .deck-tab::after { transition: none; }
  .live-dot { animation: none; }
}

/* ui-polish.css turns .poster-art into a grey shimmer; restore the hue art so Shorts without a thumbnail keep their colour */
.poster-art { position: absolute; inset: 0; animation: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px), linear-gradient(180deg, hsl(var(--h) 28% 30%) 0%, hsl(var(--h) 22% 16%) 55%, #0e0e0c 100%); }
