/* ═══════════════════════════════════════════════════════════════════════
   HIT HOOT — design system
   Source of truth: the HIT HOOT prototype (claude.ai artifact). Every
   rebuilt page uses these hh-* classes; style.css only carries the legacy
   pages until they are rebuilt, and its tokens are aligned to these.
   ═══════════════════════════════════════════════════════════════════════ */

:root {
    --ink: #07090D;
    --panel: #10141B;
    --panel2: #161B24;
    --line: #232B38;
    --text: #F2F6FB;
    --mut: #8D99AB;
    --blue: #0080FF;
    --blue-d: #0068D6;
    --live: #FF3B30;
    --ok: #2BD576;
    --warn: #FFB020;
    --r: 14px;
    --hh-head: "Barlow Condensed", Barlow, system-ui, sans-serif;
    --hh-body: Barlow, system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

body.hh {
    margin: 0; padding: 0 !important; background: var(--ink); color: var(--text);
    font-family: var(--hh-body); font-size: 16px; line-height: 1.5;
}
:where(.hh) :where(h1, h2, h3, h4) {
    font-family: var(--hh-head); text-transform: uppercase; letter-spacing: .02em; margin: 0; text-wrap: balance;
}
:where(.hh) :where(a) { color: inherit; text-decoration: none; }
:where(.hh) :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:where(.hh) :where(canvas) { display: block; max-width: 100%; }
.num { font-variant-numeric: tabular-nums; }

/* ── top bar ── */
.hh-bar {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; gap: 18px;
    padding: 10px 20px; background: rgba(7,9,13,.92); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.hh-logo { display: flex; align-items: center; flex: none; }
.hh-logo img { height: 27px; width: auto; display: block; }
.hh-logo-channel { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hh-logo-channel img.mark { height: 34px; width: 34px; border-radius: 9px; object-fit: cover; border: 1px solid var(--line); }
.hh-logo-channel b { font-family: var(--hh-head); font-size: 19px; text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hh-logo-channel .on { font-size: 12px; color: var(--mut); padding-left: 10px; border-left: 1px solid var(--line); display: flex; align-items: center; gap: 6px; }
.hh-logo-channel .on img { height: 13px; width: auto; }
.hh-nav { display: flex; gap: 4px; margin-left: 6px; }
.hh-nav a {
    font-family: var(--hh-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 13px; border-radius: 9px; color: var(--mut);
}
.hh-nav a.on, .hh-nav a:hover { color: var(--text); background: var(--panel2); }
.hh-search { flex: 1; max-width: 420px; margin-left: auto; position: relative; }
.hh-search input {
    width: 100%; padding: 10px 14px 10px 40px; border-radius: 11px; border: 1px solid var(--line);
    background: var(--panel); color: var(--text); font: inherit; font-size: 15px;
}
.hh-search input::placeholder { color: var(--mut); }
.hh-search input:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.hh-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); opacity: .55; }
.hh-golive {
    flex: none; display: flex; align-items: center; gap: 9px;
    background: var(--blue); color: #fff; font-family: var(--hh-head); font-weight: 800; font-size: 19px;
    text-transform: uppercase; letter-spacing: .06em; padding: 10px 20px; border-radius: 11px;
}
.hh-golive:hover { background: var(--blue-d); }
.hh-golive .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.hh-me { position: relative; flex: none; }
.hh-me > button {
    width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; overflow: hidden;
    background: var(--panel2); border: 1px solid var(--line); font-family: var(--hh-head); font-weight: 800; font-size: 17px;
}
.hh-me > button img { width: 100%; height: 100%; object-fit: cover; }
.hh-signin { flex: none; font-family: var(--hh-head); font-weight: 700; font-size: 18px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); padding: 8px 6px; }
.hh-signin:hover { color: var(--text); }
.hh-menu {
    position: absolute; right: 0; top: calc(100% + 8px); width: 250px; display: none; z-index: 60;
    background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 8px;
    box-shadow: 0 20px 60px #000a;
}
.hh-menu.open { display: block; }
.hh-menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.hh-menu .who b { display: block; font-size: 15px; }
.hh-menu .who span { color: var(--mut); font-size: 12.5px; }
.hh-menu a { display: block; padding: 9px 10px; border-radius: 9px; font-weight: 600; font-size: 14.5px; color: var(--mut); }
.hh-menu a:hover { background: var(--panel2); color: var(--text); }
.hh-menu a, .hh-drawer a:has(.am-i) { display: flex; align-items: center; gap: 10px; }
.hh-menu .am-i, .hh-drawer .am-i { flex: none; opacity: .8; }
.hh-menu a:hover .am-i { opacity: 1; color: var(--blue); }
.hh-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.hh-burger { display: none; flex: none; width: 42px; height: 42px; border-radius: 11px; place-items: center; background: var(--panel2); border: 1px solid var(--line); }
.hh-drawer { display: none; }

/* ── shell ── */
.hh-wrap { max-width: 1240px; margin: 0 auto; padding: 26px 20px 80px; }
.hh-flash { max-width: 1240px; margin: 16px auto 0; padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.hh-flash.success { background: #2BD57618; color: var(--ok); border: 1px solid #2BD57640; }
.hh-flash.error { background: #FF3B3018; color: #FF6B62; border: 1px solid #FF3B3040; }
.hh-flash.info { background: #0080FF18; color: #4DA3FF; border: 1px solid #0080FF40; }
.hh-flash.warn { background: #FFB30018; color: #FFC34D; border: 1px solid #FFB30040; }
.hh-eyebrow { font-family: var(--hh-head); font-weight: 700; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--mut); }
.hh-rowhead { display: flex; align-items: baseline; gap: 14px; margin: 34px 0 14px; flex-wrap: wrap; }
.hh-rowhead h2 { font-size: 30px; }
.hh-rowhead .all { margin-left: auto; color: var(--blue); font-weight: 600; font-size: 15px; }
.hh-lead { color: var(--mut); max-width: 66ch; margin: -4px 0 0; }
.hh-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 300px; gap: 16px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; }
.hh-rail > * { scroll-snap-align: start; }
.hh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; }
.hh-empty { color: var(--mut); margin-top: 40px; }

/* ── event card ── */
.hh-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; text-align: left; }
.hh-card:hover { border-color: #334054; }
.hh-card:hover .hh-thumb > svg, .hh-card:hover .hh-thumb > img { transform: scale(1.04); }
.hh-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: #0B0F15; }
.hh-thumb > svg, .hh-thumb > img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .35s ease; }
.hh-badge {
    position: absolute; top: 10px; left: 10px; display: flex; align-items: center; gap: 6px;
    font-family: var(--hh-head); font-weight: 800; font-size: 15px; letter-spacing: .09em;
    padding: 3px 10px; border-radius: 7px; color: #fff;
}
.hh-badge.live { background: var(--live); }
.hh-badge.live .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: hh-pulse 1.4s infinite; }
.hh-badge.up, .hh-badge.replay { background: rgba(10,14,20,.78); border: 1px solid #ffffff2e; }
.hh-badge.ppv { left: auto; right: 10px; background: var(--blue); }
.hh-badge.static { position: static; }
.hh-badge.feat { top: auto; bottom: 10px; background: linear-gradient(90deg, #FFC800, #FF7A1A); color: #111; }
.hh-hero.spot .art { align-self: stretch; position: relative; min-height: 260px; }
.hh-hero.spot .art img, .hh-hero.spot .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hh-hero.spot .art::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, #0A101B 0%, transparent 35%); }
.hh-hero.spot .feat { display: inline-flex; gap: 8px; align-items: center; font-family: var(--hh-head); font-weight: 800; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 999px; background: linear-gradient(90deg, #FFC800, #FF7A1A); color: #111; }
.hh-hero.spot .who { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--mut); font-size: 15px; }
@media (max-width: 760px) { .hh-hero.spot .art { min-height: 200px; order: -1; } .hh-hero.spot .art::before { background: linear-gradient(0deg, #0A101B 0%, transparent 45%); } }
.hh-viewers {
    position: absolute; bottom: 10px; right: 10px; display: flex; align-items: center; gap: 6px;
    background: rgba(7,9,13,.75); padding: 3px 9px; border-radius: 7px; font-size: 13px; font-weight: 600;
}
.hh-viewers.static { position: static; }
@keyframes hh-pulse { 50% { opacity: .35; } }
.hh-card .meta { padding: 12px 14px 14px; display: flex; gap: 11px; align-items: flex-start; }
.hh-avatar { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; overflow: hidden; font-family: var(--hh-head); font-weight: 800; font-size: 16px; color: #fff; }
.hh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hh-card .t { font-weight: 600; font-size: 16px; line-height: 1.3; display: block; }
.hh-card .s { color: var(--mut); font-size: 13.5px; margin-top: 3px; display: block; }

/* ── hero ── */
.hh-hero {
    border: 1px solid var(--line); border-radius: 20px; overflow: hidden; position: relative;
    background: linear-gradient(115deg, #0D1C31 0%, #0A101B 55%, #0B0F16 100%);
    display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr); align-items: center; gap: 20px;
}
.hh-hero .txt { padding: 44px 20px 44px 40px; }
.hh-hero h1 { font-size: clamp(42px, 6vw, 68px); line-height: .95; }
.hh-hero h1 .b { color: var(--blue); }
.hh-hero p { color: var(--mut); max-width: 44ch; margin: 16px 0 24px; font-size: 17px; }
.hh-hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hh-hero .owl { justify-self: center; padding: 20px; }
.hh-hero .owl img { width: min(320px, 34vw); height: auto; filter: drop-shadow(0 24px 60px #0080FF2E); }

/* ── buttons ── */
.hh-btn {
    display: inline-flex; align-items: center; gap: 9px; justify-content: center; cursor: pointer;
    font-family: var(--hh-head); font-weight: 800; font-size: 19px; text-transform: uppercase; letter-spacing: .06em;
    padding: 12px 24px; border-radius: 12px; background: var(--blue); color: #fff; border: 0; line-height: 1.2;
}
.hh-btn:hover { background: var(--blue-d); }
.hh-btn.ghost { background: var(--panel2); border: 1px solid var(--line); }
.hh-btn.ghost:hover { background: #1B2230; }
.hh-btn.big { font-size: 22px; padding: 15px 32px; }
.hh-btn.sm { font-size: 16px; padding: 8px 16px; }
.hh-btn.danger { background: var(--live); }
.hh-btn.danger:hover { background: #E0332A; }
.hh-btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ── category chips ── */
.hh-cats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hh-chip {
    font-family: var(--hh-head); font-weight: 700; font-size: 17px; text-transform: uppercase; letter-spacing: .05em;
    padding: 8px 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--panel); color: var(--mut);
}
.hh-chip.on, .hh-chip:hover { color: #fff; border-color: var(--blue); background: #0080FF1C; }

/* ── watch ── */
.hh-watch { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 22px; }
.hh-player { position: relative; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--line); aspect-ratio: 16/9; }
.hh-player video, .hh-player canvas, .hh-player > img, .hh-player > svg { width: 100%; height: 100%; display: block; object-fit: cover; background: #000; }
.hh-pstate { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; z-index: 3; }
.hh-scorebug {
    position: absolute; left: 16px; bottom: 16px; display: flex; align-items: stretch; z-index: 3;
    border-radius: 10px; overflow: hidden; font-family: var(--hh-head); font-weight: 800; font-size: 20px;
    box-shadow: 0 8px 24px #0009;
}
.hh-scorebug .team { display: flex; align-items: center; gap: 9px; padding: 7px 14px; background: rgba(10,13,19,.92); }
.hh-scorebug .team i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.hh-scorebug .pts { padding: 7px 12px; background: rgba(22,28,38,.94); min-width: 44px; text-align: center; }
.hh-scorebug .clock { display: flex; flex-direction: column; justify-content: center; padding: 4px 14px; background: var(--blue); color: #fff; font-size: 15px; line-height: 1.15; text-align: center; }
.hh-gate {
    position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    background: linear-gradient(180deg, #07090Dcc, #07090Df2); text-align: center; padding: 24px;
}
.hh-gate h2 { font-size: clamp(26px, 3.4vw, 40px); }
.hh-gate p { color: var(--mut); max-width: 46ch; margin: 0; }
.hh-gate .row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hh-countdown { display: flex; gap: 10px; }
.hh-countdown div { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; min-width: 76px; text-align: center; }
.hh-countdown b { display: block; font-family: var(--hh-head); font-weight: 800; font-size: 34px; line-height: 1; }
.hh-countdown span { font-size: 11px; color: var(--mut); text-transform: uppercase; letter-spacing: .1em; }
.hh-watch .info h1 { font-size: 34px; margin-top: 16px; }
.hh-chanrow { display: flex; align-items: center; gap: 13px; margin-top: 14px; flex-wrap: wrap; }
.hh-chanrow .hh-avatar { width: 46px; height: 46px; font-size: 19px; }
.hh-chanrow .who b { display: block; font-size: 16px; }
.hh-chanrow .who span { color: var(--mut); font-size: 13.5px; }
.hh-chanrow .hh-btn { font-size: 17px; padding: 9px 20px; }
.hh-sidebox { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.hh-sidebox + .hh-sidebox { margin-top: 16px; }
.hh-sidebox h3 { font-size: 21px; margin-bottom: 12px; }
.hh-uplist { display: flex; flex-direction: column; gap: 6px; }
.hh-upitem { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 11px; }
.hh-upitem:hover { background: var(--panel2); }
.hh-upitem .when { flex: none; width: 58px; text-align: center; background: var(--panel2); border: 1px solid var(--line); border-radius: 9px; padding: 5px 2px; font-family: var(--hh-head); font-weight: 700; line-height: 1.1; }
.hh-upitem .when b { display: block; font-size: 17px; }
.hh-upitem .when span { font-size: 12px; color: var(--mut); text-transform: uppercase; }
.hh-upitem .t { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.hh-upitem .s { color: var(--mut); font-size: 12.5px; }

/* ── channel ── */
.hh-chanhero { border-radius: 20px; overflow: hidden; border: 1px solid var(--line); }
.hh-chanhero .cover { height: 170px; position: relative; background-size: cover; background-position: center; }
.hh-chanhero .cover svg { width: 100%; height: 100%; display: block; }
.hh-chanhero .row { display: flex; align-items: center; gap: 16px; padding: 16px 22px; background: var(--panel); flex-wrap: wrap; }
.hh-chanhero .hh-avatar { width: 64px; height: 64px; font-size: 26px; margin-top: -46px; border: 4px solid var(--panel); border-radius: 16px; box-sizing: content-box;
    position: relative; z-index: 2; } /* the cover is positioned, so a static avatar would paint under it */
.hh-chanhero h1 { font-size: 32px; }
.hh-chanhero .sub { color: var(--mut); font-size: 14px; }
.hh-chanhero .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.hh-about { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 22px; margin-top: 18px; color: #C7D2E0; }
.hh-about h3 { font-size: 21px; margin-bottom: 8px; color: var(--text); }

/* ── plans ── */
.hh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 24px; }
.hh-plan { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.hh-plan.hot { border-color: var(--blue); background: linear-gradient(180deg, #0080FF14, var(--panel) 40%); }
.hh-plan h3 { font-size: 26px; }
.hh-plan .price { font-family: var(--hh-head); font-weight: 800; font-size: 46px; line-height: 1; }
.hh-plan .price span { font-size: 17px; color: var(--mut); font-weight: 700; }
.hh-plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; color: #C7D2E0; font-size: 15px; }
.hh-plan li { display: flex; gap: 10px; align-items: flex-start; }
.hh-plan li svg { flex: none; margin-top: 3px; }
.hh-plan .hh-btn { margin-top: auto; }
.hh-plan .current { margin-top: auto; text-align: center; font-family: var(--hh-head); font-weight: 800; font-size: 17px; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); padding: 12px; border: 1px dashed #2BD57655; border-radius: 12px; }
.hh-strip { margin-top: 22px; border: 1px dashed #2E3A4D; border-radius: 16px; padding: 20px 24px; display: flex; gap: 18px; align-items: center; flex-wrap: wrap; background: var(--panel); }
.hh-strip h3 { font-size: 23px; }
.hh-strip p { margin: 2px 0 0; color: var(--mut); font-size: 15px; max-width: 62ch; }
.hh-note { margin-top: 14px; color: var(--mut); font-size: 13px; }

/* ── studio (broadcaster portal) ── */
.hh-studio { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 24px; }
.hh-snav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 84px; align-self: start; }
.hh-snav a.tab {
    display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 11px; text-align: left;
    font-weight: 600; font-size: 15px; color: var(--mut); width: 100%;
}
.hh-snav a.tab.on { background: var(--panel2); color: var(--text); }
.hh-snav a.tab:hover { color: var(--text); }
.hh-snav .chan { display: flex; align-items: center; gap: 10px; padding: 6px 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.hh-snav .chan .hh-avatar { width: 36px; height: 36px; font-size: 15px; }
.hh-snav .chan b { font-size: 14.5px; line-height: 1.2; display: block; }
.hh-snav .chan span { font-size: 12px; color: var(--mut); }
.hh-snav .hh-btn { margin-top: 14px; font-size: 17px; padding: 11px 16px; }
.hh-statrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 22px; }
.hh-stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.hh-stat .k { color: var(--mut); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.hh-stat .v { font-family: var(--hh-head); font-weight: 800; font-size: 32px; line-height: 1.1; margin-top: 2px; }
.hh-stat .d { font-size: 12.5px; color: var(--ok); font-weight: 600; }
.hh-stat .d.mut { color: var(--mut); }
.hh-monitor { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.hh-monitor .mhead { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.hh-monitor .mhead h3 { font-size: 20px; }
.hh-monitor .mhead .r { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hh-monitor .mbody { display: grid; grid-template-columns: minmax(0,1fr) 190px; }
.hh-monitor .mbody.one { grid-template-columns: 1fr; position: relative; }
.hh-monitor .prog { width: 100%; aspect-ratio: 16/9; background: #000; display: block; object-fit: cover; }
.hh-monitor .idle { aspect-ratio: 16/9; display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; background: #05070A; color: var(--mut); text-align: center; padding: 20px; }
.hh-monitor .idle b { font-family: var(--hh-head); font-size: 26px; color: var(--text); text-transform: uppercase; letter-spacing: .03em; }
.hh-mside { border-left: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.hh-mside .kv { display: flex; justify-content: space-between; gap: 12px; color: var(--mut); }
.hh-mside .kv b { color: var(--text); font-weight: 600; text-align: right; }
.hh-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.hh-pill.live { background: #FF3B3022; color: #FF6B62; }
.hh-pill.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: hh-pulse 1.4s infinite; }
.hh-pill.ok { background: #2BD57622; color: var(--ok); }
.hh-pill.idle { background: #8D99AB22; color: var(--mut); }
.hh-pill.warn { background: #FFB02022; color: var(--warn); }
.hh-pill.blue { background: #0080FF22; color: #4DA3FF; }
.hh-studio h2.sec { font-size: 26px; margin: 26px 0 12px; }
.hh-pagehead { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 6px; }
.hh-pagehead h2 { font-size: 32px; }
.hh-pagehead .r { margin-left: auto; display: flex; gap: 10px; }
.hh-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hh-tbl th { font-family: var(--hh-head); font-weight: 700; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.hh-tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hh-tbl tr:hover td { background: var(--panel); }
.hh-tbl a.go { color: var(--blue); font-weight: 600; }
.hh-tblwrap { overflow-x: auto; }
.hh-devgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 16px; }
.hh-dev { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hh-dev .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--panel2); border: 1px solid var(--line); }
.hh-dev h3 { font-size: 20px; }
.hh-dev p { margin: 0; color: var(--mut); font-size: 13.5px; flex: 1; }
.hh-dev .hh-btn { font-size: 16px; padding: 9px 16px; }
.hh-tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ok); background: #2BD57618; padding: 2px 8px; border-radius: 6px; }
.hh-keybox { display: flex; gap: 8px; align-items: center; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; overflow: hidden; }
.hh-keybox span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.hh-keybox button { color: var(--blue); font-weight: 700; font-size: 12px; flex: none; }

/* ── forms / go-live wizard ── */
.hh-wiz { max-width: 860px; margin: 0 auto; }
.hh-steps { display: flex; margin: 10px 0 26px; }
.hh-steps .st { flex: 1; text-align: center; position: relative; padding-top: 26px; color: var(--mut); font-family: var(--hh-head); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .06em; }
.hh-steps .st::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--panel2); border: 2px solid var(--line); }
.hh-steps .st::after { content: ""; position: absolute; top: 14px; left: calc(50% + 12px); right: calc(-50% + 12px); height: 2px; background: var(--line); }
.hh-steps .st:last-child::after { display: none; }
.hh-steps .st.done, .hh-steps .st.now { color: var(--text); }
.hh-steps .st.done::before { background: var(--blue); border-color: var(--blue); }
.hh-steps .st.now::before { border-color: var(--blue); }
.hh-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.hh-field label { font-weight: 600; font-size: 14.5px; }
.hh-field .hint { color: var(--mut); font-size: 13px; }
.hh-field input, .hh-field select, .hh-field textarea, .hh-input {
    background: var(--panel); border: 1px solid var(--line); border-radius: 11px; padding: 12px 14px; color: var(--text); font: inherit; font-size: 15.5px; width: 100%; box-sizing: border-box;
}
.hh-field input:focus, .hh-field select:focus, .hh-field textarea:focus, .hh-input:focus { outline: 2px solid var(--blue); border-color: transparent; }
.hh-f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hh-srcgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hh-src { border: 1px solid var(--line); background: var(--panel); border-radius: 15px; padding: 17px; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; }
.hh-src input { position: absolute; opacity: 0; pointer-events: none; }
.hh-src.on, .hh-src:has(input:checked) { border-color: var(--blue); background: #0080FF12; }
.hh-src h3 { font-size: 19px; }
.hh-src p { margin: 0; color: var(--mut); font-size: 13px; }
.hh-wiznav { display: flex; gap: 12px; margin-top: 26px; }
.hh-wiznav .hh-btn { min-width: 150px; }
.hh-wiznav .next { margin-left: auto; }
.hh-panel { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.hh-panel + .hh-panel { margin-top: 16px; }
.hh-panel h3 { font-size: 21px; margin-bottom: 12px; }

/* ── auth pages ── */
.hh-auth { max-width: 440px; margin: 40px auto; }
.hh-auth .hh-panel { padding: 28px; }
.hh-auth h1 { font-size: 36px; margin-bottom: 6px; }
.hh-auth .alt { margin-top: 16px; color: var(--mut); font-size: 14px; text-align: center; }
.hh-auth .alt a { color: var(--blue); font-weight: 600; }

/* ── tools ── */
.hh-toolgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-top: 20px; }
.hh-toolcard { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.hh-toolcard.inplan { border-color: #0080FF55; }
.hh-toolcard .hd { display: flex; align-items: center; gap: 10px; }
.hh-toolcard .hd .ic { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: #0080FF14; border: 1px solid #0080FF44; color: var(--blue); font-size: 19px; }
.hh-toolcard h3 { font-size: 22px; }
.hh-toolcard p { margin: 0; color: var(--mut); font-size: 13.5px; flex: 1; }
.hh-toolcard .price { font-family: var(--hh-head); font-weight: 800; font-size: 18px; color: var(--blue); }
.hh-toolcard .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hh-tpill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 10px; border-radius: 99px; margin-left: auto; white-space: nowrap; }
.hh-tpill.inc { background: #2BD57618; color: var(--ok); border: 1px solid #2BD57640; }
.hh-tpill.add { background: #8D99AB18; color: var(--mut); border: 1px solid #8D99AB33; }
.hh-tpill.soon { background: #FFB02018; color: var(--warn); border: 1px solid #FFB02040; }
.hh-subnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 20px; }
.hh-subnav a { font-family: var(--hh-head); font-weight: 700; font-size: 16px; text-transform: uppercase; letter-spacing: .05em; padding: 7px 14px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel); color: var(--mut); }
.hh-subnav a.on { border-color: var(--blue); color: #fff; background: #0080FF1A; }
.hh-toolwrap { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 20px; }
.hh-ctl { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.hh-ctl h4 { font-size: 15px; letter-spacing: .08em; color: var(--mut); margin: 0 0 10px; }
.hh-ctl.dashed { border-style: dashed; }

/* ── footer ── */
.hh-footer { border-top: 1px solid var(--line); margin-top: 70px; padding: 26px 20px; color: var(--mut); font-size: 13.5px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; max-width: 1240px; margin-left: auto; margin-right: auto; }
.hh-footer .fl { display: flex; gap: 16px; flex-wrap: wrap; }
.hh-footer a:hover { color: var(--text); }
.hh-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 720px; margin: 0 auto; display: none; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: 0 16px 50px #000b; font-size: 14px; color: #C7D2E0; }
.hh-cookie.show { display: flex; }
.hh-cookie p { margin: 0; flex: 1; min-width: 220px; }
.hh-cookie a { color: var(--blue); }

/* ── responsive ── */
@media (max-width: 960px) {
    .hh-nav, .hh-search { display: none; }
    .hh-burger { display: grid; }
    .hh-bar { gap: 10px; padding: 10px 16px; }
    .hh-golive { margin-left: auto; font-size: 16px; padding: 9px 14px; }
    .hh-drawer.open { display: flex; flex-direction: column; gap: 4px; position: fixed; inset: 61px 0 0 0; z-index: 49; background: var(--ink); padding: 16px; overflow-y: auto; }
    .hh-drawer a { font-family: var(--hh-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: .05em; padding: 12px 10px; border-bottom: 1px solid var(--line); color: var(--mut); }
    .hh-drawer a.on { color: var(--text); }
    .hh-drawer form { margin-bottom: 8px; }
    .hh-wrap { padding: 18px 16px 60px; }
    .hh-hero { grid-template-columns: 1fr; }
    .hh-hero .owl { display: none; }
    .hh-hero .txt { padding: 34px 24px; }
    .hh-watch { grid-template-columns: 1fr; }
    .hh-studio { grid-template-columns: 1fr; }
    .hh-snav { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
    .hh-snav .chan { display: none; }
    .hh-snav a.tab { flex: none; width: auto; }
    .hh-snav .hh-btn { margin-top: 0; flex: none; }
    .hh-monitor .mbody { grid-template-columns: 1fr; }
    .hh-mside { border-left: 0; border-top: 1px solid var(--line); }
    .hh-f2 { grid-template-columns: 1fr; }
    .hh-toolwrap { grid-template-columns: 1fr; }
    .hh-chanrow form { margin-left: 0 !important; }
    .hh-rail { grid-auto-columns: 78%; }
}
@media (max-width: 520px) {
    .hh-me { display: none; }
    .hh-scorebug { font-size: 15px; left: 8px; bottom: 8px; }
    .hh-scorebug .team { padding: 5px 8px; gap: 6px; }
    .hh-scorebug .pts { padding: 5px 8px; min-width: 30px; }
}
/* A player in a narrow column (the Fast/Studio side monitors) gets the
   compact scorebug too, whatever the window width. */
.hh-player, .hh-monitor .mbody { container-type: inline-size; }
@container (max-width: 420px) {
    .hh-scorebug { font-size: 14px; left: 8px; bottom: 8px; }
    .hh-scorebug .team { padding: 4px 7px; gap: 5px; }
    .hh-scorebug .pts { padding: 4px 7px; min-width: 28px; }
    .hh-scorebug .clock { padding: 3px 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .hh * { animation: none !important; transition: none !important; }
}

/* ── tool demos (/tools/*) ── */
.hh-l3 { position: absolute; left: 14px; bottom: 64px; z-index: 3; background: rgba(10,13,19,.92); border-left: 4px solid var(--blue); padding: 7px 14px; border-radius: 6px; max-width: 70%; opacity: 0; transform: translateY(8px); transition: .3s; }
.hh-l3.show { opacity: 1; transform: none; }
.hh-l3 b { font-family: var(--hh-head); font-size: 17px; letter-spacing: .02em; display: block; }
.hh-l3 span { display: block; color: var(--mut); font-size: 12px; }
.hh-sbug { position: absolute; right: 14px; bottom: 14px; z-index: 3; background: rgba(10,13,19,.85); border: 1px solid #ffffff22; border-radius: 8px; padding: 6px 12px; font-family: var(--hh-head); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: #DCE6F2; display: none; }
.hh-sbug.show { display: block; }
.hh-scorectl { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.hh-scorectl .side { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 6px; text-align: center; min-width: 0; }
.hh-scorectl .nm { font-family: var(--hh-head); font-weight: 700; font-size: 14px; letter-spacing: .05em; }
.hh-scorectl .sc { font-family: var(--hh-head); font-weight: 800; font-size: 36px; line-height: 1; }
.hh-scorectl .row { display: flex; gap: 4px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.hh-bump { width: 31px; height: 29px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); font-family: var(--hh-head); font-weight: 800; font-size: 14px; }
.hh-bump:hover { border-color: var(--blue); color: var(--blue); }
.hh-themes { display: flex; gap: 8px; flex-wrap: wrap; }
.hh-thm { padding: 7px 13px; border-radius: 9px; border: 1px solid var(--line); background: var(--panel2); font-family: var(--hh-head); font-weight: 700; font-size: 14px; letter-spacing: .05em; color: var(--mut); }
.hh-thm.on { border-color: var(--blue); color: #fff; background: #0080FF1A; }
.hh-tvgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hh-tv { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.hh-tv canvas { width: 100%; aspect-ratio: 16/9; display: block; background: #000; }
.hh-tv .foot { display: flex; align-items: center; gap: 8px; padding: 9px 12px; font-size: 13px; }
.hh-tv .foot .pr { font-size: 10.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #4DA3FF; background: #0080FF1A; border: 1px solid #0080FF3d; padding: 2px 7px; border-radius: 6px; }
.hh-tv .foot .on { margin-left: auto; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.hh-paircode { font-family: var(--hh-head); font-weight: 800; font-size: 32px; letter-spacing: .28em; background: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 5px 16px 5px 22px; color: var(--blue); margin-left: auto; }
.hh-epg { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.hh-epg .erow { display: grid; grid-template-columns: 140px 1fr; border-bottom: 1px solid var(--line); }
.hh-epg .erow:last-child { border-bottom: 0; }
.hh-epg .ch { padding: 11px 13px; border-right: 1px solid var(--line); }
.hh-epg .ch b { font-family: var(--hh-head); font-size: 15.5px; letter-spacing: .03em; display: block; }
.hh-epg .ch span { color: var(--mut); font-size: 11px; }
.hh-lane { display: flex; overflow-x: auto; }
.hh-slot { flex: none; border-right: 1px solid var(--line); padding: 9px 12px; min-width: 145px; }
.hh-slot.now { background: #0080FF14; box-shadow: inset 0 2px 0 var(--blue); }
.hh-slot b { display: block; font-size: 13px; line-height: 1.25; }
.hh-slot span { color: var(--mut); font-size: 11px; }
.hh-srcrow { display: flex; gap: 10px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 9px 11px; cursor: pointer; }
.hh-srcrow.onair { border-color: #FF3B3066; }
.hh-srcrow .mini { width: 84px; flex: none; border-radius: 7px; overflow: hidden; background: #000; }
.hh-srcrow .mini canvas { width: 100%; aspect-ratio: 16/9; display: block; }
.hh-srcrow b { font-size: 14px; display: block; }
.hh-srcrow span { color: var(--mut); font-size: 11.5px; }
.hh-srcrow .take { margin-left: auto; font-family: var(--hh-head); font-weight: 800; font-size: 13px; letter-spacing: .06em; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--mut); }
.hh-srcrow:hover .take { border-color: var(--blue); color: var(--blue); }
.hh-srcrow.onair .take { background: var(--live); border-color: var(--live); color: #fff; }
.hh-demo-note { color: var(--mut); font-size: 13px; margin-top: 10px; }

/* ── form fixes ── */
.hh [hidden] { display: none !important; }
.hh-field input[type=checkbox], .hh-field input[type=radio] { width: 18px; height: 18px; padding: 0; margin: 0 8px 0 0; vertical-align: -3px; accent-color: var(--blue); background: none; border: 0; }
.hh-field label:has(> input[type=checkbox]) { display: flex; align-items: center; font-weight: 500; }
.hh-field input[type=file] { padding: 9px 12px; }

/* ── phone fixes ── */
@media (max-width: 960px) {
    .hh-hero, .hh-watch, .hh-studio, .hh-toolwrap, .hh-monitor .mbody { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    .hh-signin { display: none; }
    .hh-logo img { height: 22px; }
    .hh-hero h1 { font-size: 38px; overflow-wrap: anywhere; }
    .hh-hero .cta .hh-btn { width: 100%; }
    .hh-rowhead h2 { font-size: 26px; }
    .hh-player:has(.hh-gate) { aspect-ratio: auto; min-height: 380px; }
    .hh-player:has(.hh-gate) > img, .hh-player:has(.hh-gate) > svg { position: absolute; inset: 0; }
    .hh-gate .hh-btn.big { font-size: 19px; padding: 13px 22px; }
    .hh-watch .info h1 { font-size: 28px; }
    .hh-chanrow .hh-btn { font-size: 15px; padding: 8px 14px; }
    .hh-plan { padding: 20px; }
    .hh-steps .st { font-size: 13px; }
}

/* ── Tool colours ─────────────────────────────────────────────────────
   Each HIT HOOT tool keeps the colour of the brand it grew from; buttons
   and links everywhere stay HIT HOOT blue. Put .tool-<name> on anything
   that belongs to one tool and use var(--tool) inside it. */
.tool-graphics { --tool: #11A3E4; --tool-rgb: 17,163,228; }
.tool-display  { --tool: #FFC800; --tool-rgb: 255,200,0; }
.tool-studio   { --tool: #00FF46; --tool-rgb: 0,255,70; }
.tool-fast     { --tool: #CE578D; --tool-rgb: 206,87,141; }
.hh-toolcard[class*="tool-"] { border-top: 3px solid var(--tool); }
.hh-toolcard[class*="tool-"] .hd .ic { color: var(--tool); background: rgba(var(--tool-rgb), .10); border-color: rgba(var(--tool-rgb), .35); }
.hh-toolcard[class*="tool-"].inplan { border-color: rgba(var(--tool-rgb), .45); border-top-color: var(--tool); }
.hh-subnav a[class*="tool-"].on { border-color: var(--tool); background: rgba(var(--tool-rgb), .12); }
.tool-name { color: var(--tool); }

/* Inside HIT HOOT STUDIO: the page is the tool, nothing around it */
.hh-embed .hh-studio { grid-template-columns: minmax(0,1fr); }
.hh-embed main > .hh-wrap, .hh-embed .hh-wrap { padding-top: 16px; }
