/* ─── Stats page: season strip, leader cards, tabbed tables ─────────── */
.hst { display: flex; flex-direction: column; gap: 1.4rem; }
.hst .section { margin: 0; }

.hst-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.hst-summary div { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 12px; background: var(--bg-card); border: 1px solid var(--border); }
.hst-summary div::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); opacity: .7; }
.hst-summary b { font: 700 1.9rem/1 'Oswald', 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--text); }
.hst-summary span { font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.hst-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.hst-card { display: flex; flex-direction: column; border-radius: 14px; background: var(--bg-card); border: 1px solid var(--border); overflow: hidden; }
.hst-card header { display: flex; justify-content: space-between; align-items: center; padding: .65rem .85rem .2rem; }
.hst-card h3 { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--text-secondary); }
.hst-card header a { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-decoration: none; }
.hst-card header a:hover { color: var(--accent); }

.hst-lead { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .7rem; margin: .35rem .6rem .45rem; padding: .6rem .65rem; border-radius: 11px; text-decoration: none; color: var(--text);
    background: linear-gradient(120deg, var(--accent-subtle), transparent 75%); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); }
.hst-lead:hover { border-color: var(--accent); color: var(--text); }
.hst-face { width: 46px; height: 46px; border-radius: 10px; image-rendering: pixelated; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); }
.hst-face.is-team, .hst-face-sm.is-team { display: grid; place-items: center; background: var(--bg-input); box-shadow: none; font-weight: 800; font-size: .8rem; image-rendering: auto; }
.hst-face.is-team img { width: 38px; height: 38px; object-fit: contain; }
.hst-lead-info { display: flex; flex-direction: column; min-width: 0; }
.hst-lead-info b { font-size: .98rem; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hst-lead-info span { display: inline-flex; align-items: center; gap: .3rem; font-size: .7rem; color: var(--text-muted); overflow: hidden; white-space: nowrap; }
.hst-crest { width: 14px; height: 14px; object-fit: contain; }
.hst-lead-v { font: 700 2rem/1 'Oswald', 'Inter', sans-serif; font-variant-numeric: tabular-nums; color: var(--accent); text-align: right; }
.hst-lead-v small { display: block; margin-top: .15rem; font: 800 .56rem 'Inter', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }

.hst-rest { list-style: none; margin: 0; padding: 0 .85rem .7rem; display: flex; flex-direction: column; gap: .2rem; }
.hst-rest li { display: grid; grid-template-columns: 16px minmax(0, 1fr) 56px 38px; align-items: center; gap: .5rem; min-height: 28px; font-size: .8rem; }
.hst-n { font-size: .68rem; font-weight: 700; color: var(--text-muted); text-align: center; }
.hst-rest a { display: flex; align-items: center; gap: .45rem; min-width: 0; color: var(--text); text-decoration: none; }
.hst-rest a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hst-rest a:hover span { color: var(--accent); }
.hst-face-sm { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 5px; image-rendering: pixelated; }
.hst-face-sm.is-team img { width: 18px; height: 18px; object-fit: contain; }
.hst-face-sm.is-team span { font-size: .55rem; }
.hst-bar { height: 5px; border-radius: 3px; background: var(--bg-input); overflow: hidden; }
.hst-bar i { display: block; height: 100%; border-radius: 3px; background: color-mix(in srgb, var(--accent) 70%, transparent); }
.hst-rest b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 800; }

.hst-tabbar { display: flex; gap: .3rem; overflow-x: auto; margin-bottom: .7rem; padding-bottom: .15rem; scrollbar-width: thin; }
.hst-tabbar button { flex: 0 0 auto; min-height: 34px; padding: 0 .85rem; border-radius: 999px; border: 1px solid var(--border-light); background: var(--bg-input); color: var(--text-secondary); font: 700 .76rem 'Inter', sans-serif; cursor: pointer; }
.hst-tabbar button:hover { color: var(--text); }
.hst-tabbar button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #07140c; }
.hst-panel[hidden] { display: none !important; }

@media (max-width: 560px) {
    .hst-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .hst-summary b { font-size: 1.45rem; }
    .hst-summary span { font-size: .56rem; }
    .hst-grid { grid-template-columns: 1fr; }
}
