/* Hockey betas: power rankings, team of the week, records & Hall of Fame, live scoring. */

.hkx-beta { display: inline-block; vertical-align: middle; font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: .15rem .45rem; border-radius: 99px; background: #f5c542; color: #1a1a1a; }
.hkx-muted { color: var(--text-muted); }
.hkx-note { font-size: .8rem; margin-top: .8rem; }
.hkx-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: .6rem 1rem; margin: 1rem 0; }
.hkx-head h1 { margin: 0; font-size: 1.6rem; }
.hkx-head p { margin: .3rem 0 0; color: var(--text-secondary); max-width: 640px; flex-basis: 100%; }
.hkx-crest { width: 30px; height: 30px; object-fit: contain; flex: none; }
.hkx-crest-text { display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; background: var(--c); color: #fff; font-weight: 800; font-size: .7rem; text-transform: uppercase; }
.hkx-head-img { width: 22px; height: 22px; border-radius: 4px; image-rendering: pixelated; }
.hkx-tag { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .1rem .4rem; border-radius: 99px; background: rgba(192, 132, 252, .18); color: #d8b4fe; vertical-align: 1px; }

/* Power rankings */
.hkx-table-card { padding: 0; overflow: hidden; }
.hkx-table { width: 100%; font-size: .88rem; }
.hkx-table th { font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); text-align: left; }
.hkx-table td { vertical-align: middle; }
.hkx-rank { white-space: nowrap; }
.hkx-rank b { font-family: 'Oswald', sans-serif; font-size: 1.2rem; margin-right: .3rem; }
.hkx-up { color: #4ade80; font-size: .72rem; font-weight: 700; }
.hkx-down { color: #f87171; font-size: .72rem; font-weight: 700; }
.hkx-team { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; }
.hkx-team span { display: flex; flex-direction: column; line-height: 1.2; }
.hkx-team small { color: var(--text-muted); font-size: .74rem; }
.hkx-rating b { font-family: 'Orbitron', 'Oswald', monospace; font-size: 1rem; }
.hkx-rating small { display: block; }
.hkx-spark { width: 80px; height: 24px; display: block; }
.hkx-form { white-space: nowrap; }
.hkx-form i { font-style: normal; display: inline-block; width: 18px; text-align: center; font-size: .62rem; font-weight: 800; border-radius: 3px; margin-right: 2px; color: #0d1117; background: #f87171; }
.hkx-form i.is-W { background: #4ade80; }
.hkx-next a { display: flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-size: .82rem; }
.hkx-prob { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 20px; border-radius: 99px; background: linear-gradient(90deg, rgba(74,222,128,.35) var(--p), rgba(255,255,255,.07) var(--p)); }
.hkx-prob b { font-size: .72rem; }
.hkx-table tr.is-former td { opacity: .6; }
.hkx-divider td { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); background: rgba(255,255,255,.03); }
@media (max-width: 720px) { .hkx-hide-sm { display: none; } }

/* Team of the week */
.hkx-totw .section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.hkx-totw-nav { display: flex; align-items: center; gap: .6rem; font-size: .85rem; color: var(--text-secondary); }
.hkx-totw-nav a, .hkx-totw-nav > span:empty { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border); color: inherit; text-decoration: none; font-size: 1.1rem; }
.hkx-totw-nav > span:empty { visibility: hidden; }
.hkx-totw-div { fill: var(--text-muted); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; text-anchor: middle; }
.hkx-totw-badge rect { fill: #475569; }
.hkx-totw-badge text { fill: #fff; font-size: 11px; font-weight: 800; text-anchor: middle; }
.hkx-totw-badge.hkx-tone-good rect { fill: #16a34a; } .hkx-totw-badge.hkx-tone-warn rect { fill: #b45309; }
.hkx-totw-bench { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); }
.hkx-totw-bench > div + div { border-left: 1px solid var(--border); }
.hkx-totw-bench-head { padding: .6rem 1rem .2rem; font-size: .72rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }
.hkx-totw-bench .bench-player { display: flex; align-items: center; gap: .5rem; padding: .4rem 1rem; }
.hkx-totw-bench-r { margin-left: auto; font-size: .72rem; font-weight: 800; padding: .05rem .4rem; border-radius: 5px; background: #475569; color: #fff; }
.hkx-totw-bench-r.hkx-tone-good { background: #16a34a; } .hkx-totw-bench-r.hkx-tone-warn { background: #b45309; }
.hkx-totw-bench .hkx-muted { padding: 0 1rem .6rem; font-size: .82rem; }

/* Records & Hall of Fame */
.hkx-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.hkx-switch a { padding: .4rem .8rem; font-size: .85rem; font-weight: 600; color: var(--text-secondary); text-decoration: none; }
.hkx-switch a.is-on { background: var(--accent); color: #fff; }
.hkx-records { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.hkx-rec-group { padding: 1rem 1.1rem; }
.hkx-rec-group h2 { margin: 0 0 .6rem; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-muted); }
.hkx-rec { display: grid; grid-template-columns: 70px 1fr; gap: .8rem; align-items: center; padding: .6rem 0; border-bottom: 1px solid var(--border); }
.hkx-rec:last-child { border-bottom: 0; }
.hkx-rec-val { text-align: center; font-family: 'Oswald', sans-serif; font-size: 1.7rem; line-height: 1; }
.hkx-rec-val small { display: block; font-family: inherit; font-size: .62rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-top: .2rem; }
.hkx-rec-label { font-weight: 700; font-size: .9rem; }
.hkx-rec-holder { font-size: .88rem; }
.hkx-rec-ctx { font-size: .76rem; color: var(--text-muted); }
.hkx-hof { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.hkx-hof-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; padding: 1rem .8rem; color: inherit; text-decoration: none; background: radial-gradient(circle at 50% 0%, rgba(245, 197, 66, .18), transparent 60%), var(--bg-card); border-color: rgba(245, 197, 66, .35); transition: transform .15s; }
.hkx-hof-card:hover { transform: translateY(-2px); }
.hkx-hof-card img { width: 96px; height: 96px; image-rendering: pixelated; }
.hkx-hof-card b { font-size: 1.05rem; }
.hkx-hof-line { font-size: .76rem; color: var(--text-secondary); }
.hkx-hof-card em { font-size: .8rem; color: var(--text-muted); }
.hkx-ballot { margin-top: 1rem; padding: 1rem 1.1rem; }
.hkx-ballot h2 { margin: 0 0 .3rem; font-size: 1rem; }

/* Live scoring */
.hkx-live-list { display: grid; gap: .5rem; }
.hkx-live-item { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .8rem 1rem; color: inherit; text-decoration: none; }
.hkx-live-when { min-width: 130px; font-size: .8rem; color: var(--text-muted); }
.hkx-live-teams { flex: 1; font-weight: 700; }
.hkx-live-dot { color: #fff; background: #dc2626; padding: .1rem .45rem; border-radius: 5px; font-size: .7rem; animation: hkxPulse 1s infinite alternate; }
@keyframes hkxPulse { to { opacity: .55; } }
.hkx-live { user-select: none; -webkit-user-select: none; }
.hkx-live-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }
.hkx-live-top span { display: block; color: var(--text-muted); font-size: .82rem; }
.hkx-setup { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hkx-setup-team { border: 1px solid var(--border); border-top: 4px solid var(--tc); border-radius: 14px; padding: .9rem; background: var(--bg-card); }
.hkx-setup-team h2 { margin: 0 0 .4rem; font-size: 1.1rem; }
.hkx-setup-count { display: flex; gap: .6rem; font-size: .78rem; font-weight: 700; margin-bottom: .6rem; }
.hkx-setup-count span { padding: .15rem .5rem; border-radius: 99px; background: rgba(255,255,255,.06); color: var(--text-muted); }
.hkx-setup-count .ok { background: rgba(74, 222, 128, .18); color: #4ade80; }
.hkx-setup-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: .4rem; }
.hkx-chip { position: relative; display: flex; align-items: center; gap: .5rem; padding: .7rem .6rem; border-radius: 12px; border: 2px solid var(--border); background: rgba(255,255,255,.03); color: inherit; font: inherit; font-weight: 700; cursor: pointer; text-align: left; min-height: 56px; }
.hkx-chip img { width: 30px; height: 30px; border-radius: 5px; image-rendering: pixelated; }
.hkx-chip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hkx-chip em { font-style: normal; font-size: .62rem; font-weight: 800; padding: .1rem .35rem; border-radius: 4px; }
.hkx-chip.role-B { border-color: #64748b; } .hkx-chip.role-B em { background: #64748b; color: #fff; }
.hkx-chip.role-A { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 22%, transparent); } .hkx-chip.role-A em { background: #ef4444; color: #fff; }
.hkx-chip.role-D { border-color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); } .hkx-chip.role-D em { background: #3b82f6; color: #fff; }
.hkx-add { display: flex; gap: .4rem; margin-top: .7rem; }
.hkx-add input { flex: 1; }
.hkx-setup-go { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1.2rem 0; }
.hkx-big { font: inherit; font-weight: 900; font-size: 1.15rem; letter-spacing: .02em; border: 0; border-radius: 16px; padding: 1rem 1.2rem; cursor: pointer; color: #fff; background: #334155; min-height: 64px; touch-action: manipulation; }
.hkx-big:disabled { opacity: .4; cursor: not-allowed; }
.hkx-big:active { transform: scale(.97); }
.hkx-go { background: #16a34a; font-size: 1.3rem; padding: 1.1rem 2.4rem; }
.hkx-board { position: sticky; top: 56px; z-index: 5; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; padding: .8rem 1rem; margin: 1rem 0; border-radius: 16px; background: linear-gradient(180deg, #121a2b, #0b1220); border: 1px solid var(--border); }
.hkx-board-team { display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 4px solid var(--tc); padding-bottom: .3rem; }
.hkx-board-team span { font-weight: 800; font-size: 1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hkx-board-team b { font-family: 'Orbitron', monospace; font-size: 2.6rem; color: #fff; }
.hkx-board-mid { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.hkx-board-mid small { font-size: .66rem; color: var(--text-muted); }
.hkx-clock { font-family: 'Orbitron', monospace; font-size: 2rem; color: #fbbf24; background: #000; border: 2px solid #334155; border-radius: 12px; padding: .2rem 1rem; cursor: pointer; min-width: 140px; }
.hkx-clock.is-on { border-color: #16a34a; box-shadow: 0 0 0 3px rgba(22, 163, 74, .3); }
.hkx-periods { display: flex; gap: .25rem; }
.hkx-periods button { font: inherit; font-size: .8rem; font-weight: 800; padding: .35rem .7rem; border-radius: 8px; border: 1px solid var(--border); background: none; color: var(--text-secondary); cursor: pointer; }
.hkx-periods button.is-on { background: #fbbf24; color: #111; border-color: #fbbf24; }
.hkx-final { text-align: center; margin: -.4rem 0 1rem; font-weight: 700; }
.hkx-teams { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hkx-team-col { border: 1px solid var(--border); border-top: 4px solid var(--tc); border-radius: 14px; padding: .8rem; background: var(--bg-card); }
.hkx-team-col h2 { margin: 0 0 .6rem; font-size: 1.05rem; }
.hkx-big-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; margin-bottom: .8rem; }
.hkx-goal { background: #16a34a; font-size: 1.4rem; min-height: 84px; }
.hkx-pen { background: #b45309; }
.hkx-ice { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
.hkx-tile { display: flex; flex-direction: column; align-items: center; gap: .3rem; padding: .6rem .3rem; border-radius: 12px; border: 2px solid var(--border); background: rgba(255,255,255,.03); color: inherit; font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; min-height: 84px; touch-action: manipulation; }
.hkx-tile img { width: 40px; height: 40px; border-radius: 6px; image-rendering: pixelated; }
.hkx-tile span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hkx-tile.is-ice { border-color: color-mix(in srgb, var(--tc, #3b82f6) 70%, transparent); background: color-mix(in srgb, var(--tc, #3b82f6) 15%, transparent); }
.hkx-tile.is-sel { border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251, 191, 36, .35); }
.hkx-bench-label { margin: .8rem 0 .4rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }
.hkx-bench-label small { text-transform: none; font-weight: 500; }
.hkx-bench { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: .4rem; }
.hkx-bench .hkx-tile { min-height: 70px; }
.hkx-feed-wrap { margin: 1rem 0; border: 1px solid var(--border); border-radius: 14px; padding: .8rem; background: var(--bg-card); }
.hkx-feed-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .5rem; }
.hkx-feed-head b { margin-right: auto; }
.hkx-feed { list-style: none; margin: 0; padding: 0; max-height: 320px; overflow: auto; }
.hkx-feed li { display: flex; gap: .7rem; padding: .45rem .5rem; border-left: 4px solid var(--tc, transparent); border-bottom: 1px solid var(--border); font-size: .88rem; }
.hkx-feed li span { min-width: 3.4rem; color: var(--text-muted); font-family: 'Orbitron', monospace; font-size: .72rem; }
.hkx-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .7); }
.hkx-modal-card { width: min(560px, 100%); max-height: 92vh; overflow: auto; padding: 1.2rem; border-radius: 18px; background: var(--bg-card); border: 1px solid var(--border); }
.hkx-modal-card h3 { margin: 0 0 .8rem; }
.hkx-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.hkx-pick .hkx-tile { min-height: 110px; font-size: .95rem; }
.hkx-pick .hkx-tile img { width: 52px; height: 52px; }
.hkx-pick-bench { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); margin-top: .5rem; }
.hkx-pick-bench .hkx-tile { min-height: 72px; font-size: .8rem; }
.hkx-pick-bench .hkx-tile img { width: 30px; height: 30px; }
.hkx-noassist { width: 100%; margin-top: .6rem; }
.hkx-infr { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.hkx-infr .hkx-big { font-size: .95rem; min-height: 60px; }
.hkx-cancel { width: 100%; margin-top: .8rem; }
.hkx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 1100; padding: .7rem 1.1rem; border-radius: 12px; background: #16a34a; color: #fff; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.4); transition: opacity .4s, transform .4s; }
.hkx-toast.is-bad { background: #dc2626; }
.hkx-toast.is-out { opacity: 0; transform: translate(-50%, 10px); }
@media (max-width: 760px) {
    .hkx-setup, .hkx-teams { grid-template-columns: 1fr; }
    .hkx-board { top: 50px; padding: .6rem; gap: .4rem; }
    .hkx-board-team b { font-size: 1.9rem; }
    .hkx-board-team span { font-size: .8rem; }
    .hkx-clock { font-size: 1.5rem; min-width: 110px; padding: .15rem .6rem; }
    .hkx-totw-bench { grid-template-columns: 1fr; }
    .hkx-totw-bench > div + div { border-left: 0; border-top: 1px solid var(--border); }
}
.hkx-setup-count .bad { background: rgba(248, 113, 113, .18); color: #f87171; }
.hkx-new { font-size: .58rem; font-weight: 800; color: #93c5fd; letter-spacing: .05em; }
.hkx-recent { white-space: nowrap; }
.hkx-recent i { font-style: normal; display: inline-block; min-width: 26px; text-align: center; font-size: .66rem; font-weight: 800; padding: .1rem .2rem; margin-right: 2px; border-radius: 4px; color: #fff; background: #475569; }
.hkx-recent i.hkx-tone-good { background: #16a34a; } .hkx-recent i.hkx-tone-warn { background: #b45309; }
