/* assets/css/components.css */
/* =====================================================================
   components.css - cards, filter bar, sticky groups, search overlay,
   detail headers, lists, empty states, page sections.
   Uses only tokens from design-system.css. Animations: transform/opacity.
   ===================================================================== */

/* ---------- directive hosts ---------- */
.ct match-card, .ct series-card, .ct team-card, .ct news-card, .ct error-state, .ct empty-state, .ct filter-bar, .ct skeleton-list { display: block; min-width: 0; }
.ct skeleton-card, .ct skeleton-row { display: contents; }
.ct match-card > .card, .ct series-card > .card, .ct team-card > .card, .ct news-card > .card { height: 100%; }
body.has-overlay { overflow: hidden; }

.ct .icon-btn--soft { background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-2); }
.ct .spin { animation: ct-spin .9s linear infinite; }
@keyframes ct-spin { to { transform: rotate(360deg); } }
.ct .flip { transform: scaleX(-1); }

@media (hover: hover) {
  .ct a.card { transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
  .ct a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
}
.ct a.card:active { transform: scale(.985); }

/* ---------- flags / avatars ---------- */
.ct .flag { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--color-surface-3); flex: none; box-shadow: 0 0 0 1px var(--color-border); }
.ct .flag--ph { display: inline-grid; place-items: center; font-size: 9px; font-weight: 800; color: var(--color-muted); letter-spacing: .02em; }
.ct .avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--color-surface-3); flex: none; }

/* ---------- match card ---------- */
.ct .mc { display: flex; flex-direction: column; gap: 10px; min-height: 156px; padding: 14px 16px; }
.ct .mc.is-live { box-shadow: inset 3px 0 0 var(--color-live), var(--shadow); }
.ct .mc__top { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.ct .mc__series { font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-2); }
.ct .mc__meta { margin-top: -6px; font-size: var(--fs-xs); color: var(--color-muted); }
.ct .mc__body { display: flex; align-items: center; gap: var(--space-3); }
.ct .mc__teams { flex: 1; min-width: 0; display: grid; gap: 8px; }
.ct .mc__team { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 30px; }
.ct .mc__name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct .mc__short { display: none; }
.ct .mc__team.is-bat .mc__name::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 6px; vertical-align: middle; border-radius: 50%; background: var(--color-live); }
.ct .mc__team.is-lose { color: var(--color-muted); }
.ct .mc__team.is-win .mc__name, .ct .mc__team.is-win .mc__score { font-weight: 800; }
.ct .mc__score { font-size: var(--fs-md); font-weight: 700; text-align: right; white-space: nowrap; }
.ct .mc__score small { font-size: var(--fs-xs); font-weight: 500; color: var(--color-muted); }
.ct .mc__inn + .mc__inn::before { content: " & "; font-weight: 500; color: var(--color-muted); }
.ct .mc__yet { color: var(--color-muted); font-weight: 500; }
.ct .mc__when { flex: none; display: grid; justify-items: end; gap: 2px; padding-left: var(--space-3); border-left: 1px solid var(--color-border); min-width: 84px; }
.ct .mc__time { font-size: var(--fs-md); font-weight: 800; }
.ct .mc__day { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
.ct .mc__foot { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); padding-top: 10px; border-top: 1px dashed var(--color-border); }
.ct .mc__line { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-2); }
.ct .mc__line.is-live { color: var(--color-live); }
.ct .mc__line.is-result { color: var(--color-primary-strong); }
.ct .mc__rates { flex: none; font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
.ct .mc__venue { display: flex; align-items: center; gap: 5px; margin-top: auto; font-size: var(--fs-xs); color: var(--color-muted); min-width: 0; }
@media (max-width: 380px) {
  .ct .mc__team:has(.mc__inn + .mc__inn) .mc__full { display: none; }
  .ct .mc__team:has(.mc__inn + .mc__inn) .mc__short { display: inline; }
}

/* ---------- series card ---------- */
.ct .sc { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; min-height: 132px; padding: var(--space-4); }
.ct .sc__logo, .ct .dhead__logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--color-primary-soft), var(--color-surface-3)); color: var(--color-primary-strong); font-weight: 800; font-size: var(--fs-sm); letter-spacing: .02em; }
.ct .sc__logo img, .ct .dhead__logo img { width: 100%; height: 100%; object-fit: cover; }
.ct .sc__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; min-height: 100%; }
.ct .sc__name { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.ct .sc__dates { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
.ct .sc__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: auto; padding-top: 6px; font-size: var(--fs-xs); color: var(--color-text-2); }
.ct .sc__fact { display: inline-flex; align-items: center; gap: 4px; }

/* hero carousel */
.ct .hero { position: relative; }
.ct .hero__track { display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4); scroll-padding-inline: var(--space-4); }
.ct .hero__track::-webkit-scrollbar { display: none; }
.ct .hero__slide { scroll-snap-align: start; min-width: 0; }
.ct .hero__slide:only-child { grid-column: 1 / -1; }
.ct .hero__track:has(.hero__slide:only-child) { grid-auto-columns: 100%; }
.ct .hero__sk { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); }
.ct .hero__ctrl { display: flex; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.ct .hero__nav { display: none; }
.ct .hero__nav[disabled] { opacity: .4; }
.ct .hero__dots { display: flex; gap: 2px; }
.ct .hero__dots button { width: 22px; height: 22px; display: grid; place-items: center; }
.ct .hero__dots button::before { content: ""; width: 20px; height: 6px; border-radius: 3px; background: var(--color-border); transform: scaleX(.35); transition: transform var(--dur) var(--ease), background-color var(--dur); }
.ct .hero__dots button.is-on::before { transform: none; background: var(--color-primary); }

.ct .sh { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; color: #fff; background: var(--color-header); box-shadow: var(--shadow); isolation: isolate; }
.ct .sh__media, .ct .sh__media img, .ct .sh__art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ct .sh__media img { object-fit: cover; }
.ct .sh__art { display: grid; place-items: center; font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: rgba(255, 255, 255, .12); background: radial-gradient(120% 90% at 100% 0%, #13a86b 0%, transparent 55%), linear-gradient(135deg, #0b1220, #18304d); }
.ct .sh::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(5, 9, 16, 0) 30%, rgba(5, 9, 16, .88) 100%); }
.ct .sh__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: grid; gap: 6px; justify-items: start; padding: var(--space-4) var(--space-4) var(--space-5); }
.ct .sh__name { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; text-shadow: 0 1px 8px rgba(0, 0, 0, .35); }
.ct .sh__meta { font-size: var(--fs-xs); font-weight: 600; color: rgba(255, 255, 255, .82); }
.ct .sh .badge { background: rgba(255, 255, 255, .16); color: #fff; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ct .sh .badge--live { background: var(--color-live); }

/* ---------- team card ---------- */
.ct .tc { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 168px; padding: var(--space-5) var(--space-3) var(--space-4); text-align: center; }
.ct .tc__logo { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--color-surface-3); color: var(--color-muted); font-weight: 800; font-size: var(--fs-sm); box-shadow: 0 0 0 1px var(--color-border); }
.ct .tc__logo img { width: 100%; height: 100%; object-fit: cover; }
.ct .tc__name { margin-top: 4px; font-weight: 700; font-size: var(--fs-sm); line-height: 1.3; }
.ct .tc__sub { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
.ct .tc__stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: auto; }
.ct .tc__chip { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-surface-2); font-size: var(--fs-2xs); font-weight: 600; color: var(--color-text-2); }
.ct .tc__rank, .ct .rank-pill { display: inline-flex; align-items: baseline; gap: 3px; padding: 3px 8px; border-radius: var(--radius-pill); background: var(--color-warn-soft); color: var(--color-warn); font-size: var(--fs-xs); font-weight: 800; }
.ct .tc__rank { position: absolute; top: 8px; right: 8px; }
.ct .tc__rank small, .ct .rank-pill small { font-size: var(--fs-2xs); font-weight: 700; opacity: .8; }

/* ---------- news card ---------- */
.ct .nc { display: flex; flex-direction: column; overflow: hidden; }
.ct .nc__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--color-surface-3); overflow: hidden; flex: none; }
.ct .nc__media img { width: 100%; height: 100%; object-fit: cover; }
.ct .nc__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 14px var(--space-4) var(--space-4); min-width: 0; }
.ct .nc__cat { font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--color-primary-strong); }
.ct .nc__title { font-size: var(--fs-md); font-weight: 700; line-height: 1.32; letter-spacing: -.005em; }
.ct .nc__excerpt { font-size: var(--fs-sm); color: var(--color-muted); }
.ct .nc__meta { display: flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 4px; font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; min-width: 0; }
.ct .nc__meta > :first-child { min-width: 0; }
.ct .nc__read { white-space: nowrap; }
.ct .nc--lead .nc__title { font-size: var(--fs-lg); }
.ct .nc--row { flex-direction: row; }
.ct .nc--row .nc__media { width: 120px; aspect-ratio: 1; }
.ct .nc--row .nc__body { padding: 12px 14px; }
.ct .nc--row .nc__title { font-size: var(--fs-base); }
@media (min-width: 600px) {
  .ct .news-grid__lead { grid-column: 1 / -1; }
  .ct .nc--lead { flex-direction: row; }
  .ct .nc--lead .nc__media { width: 54%; aspect-ratio: auto; min-height: 260px; }
  .ct .nc--lead .nc__media img { position: absolute; inset: 0; }
  .ct .nc--lead .nc__body { justify-content: center; padding: var(--space-6); gap: 10px; }
  .ct .nc--lead .nc__title { font-size: var(--fs-xl); }
  .ct .nc--lead .nc__meta { margin-top: 0; }
}

/* ---------- filter bar (sticky) ---------- */
.ct .page--upcoming { --filter-h: 98px; }
.ct filter-bar, .ct .page > .fbar { position: sticky; top: var(--sticky-top); z-index: 20; }
.ct .fbar { height: var(--filter-h); background: var(--color-bg); background: color-mix(in srgb, var(--color-bg) 94%, transparent); -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--color-border); }
.ct .fbar__in { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 38px 38px; gap: 6px var(--space-2); align-content: center; height: 100%; }
.ct .fbar__group { min-width: 0; display: flex; align-items: center; gap: var(--space-2); }
.ct .fbar__group:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
.ct .fbar__label { display: none; font-size: var(--fs-2xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-muted); }
.ct .fbar .chips { padding-block: 0; }
.ct .fbar .chip { min-height: 36px; }
.ct .fbar__status { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 600; color: var(--color-muted); white-space: nowrap; }
.ct .fbar__count { display: none; }
.ct .fbar .chips { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
.ct .fbar__reset { min-height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-pill); color: var(--color-primary); font-weight: 700; }
@media (min-width: 992px) {
  .ct .page--upcoming { --filter-h: 58px; }
  .ct .fbar__in { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: 38px; column-gap: var(--space-6); }
  .ct .fbar__group:nth-child(2) { grid-column: 2; grid-row: 1; }
  .ct .fbar__status { grid-column: 3; }
  .ct .fbar__label { display: inline; }
  .ct .fbar__count { display: inline; }
  .ct .fbar .chips { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- sticky groups (series -> date) ---------- */
.ct .sgroup + .sgroup { margin-top: var(--space-5); }
.ct .sgroup__head { position: sticky; top: calc(var(--sticky-top) + var(--filter-h)); z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); height: 44px; background: var(--color-bg); font-size: var(--fs-base); font-weight: 800; border-bottom: 1px solid var(--color-border); }
.ct .sgroup__name { min-width: 0; }
.ct a.sgroup__name:hover { color: var(--color-primary); }
.ct .sgroup__count { flex: none; min-width: 26px; height: 22px; padding: 0 8px; border-radius: var(--radius-pill); background: var(--color-surface-3); font-size: var(--fs-2xs); font-weight: 700; line-height: 22px; text-align: center; color: var(--color-text-2); }
.ct .day-group { margin-top: var(--space-2); }
.ct .day-head { position: sticky; top: var(--sticky-top); z-index: 8; display: flex; align-items: center; justify-content: space-between; height: 40px; background: var(--color-bg); font-size: var(--fs-sm); font-weight: 700; color: var(--color-text-2); }
.ct .day-head small { font-size: var(--fs-xs); color: var(--color-muted); font-weight: 600; }
.ct .day-head--sub { top: calc(var(--sticky-top) + var(--filter-h) + 44px); height: 36px; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-muted); z-index: 9; }

.ct .load-more { position: relative; display: flex; justify-content: center; padding: var(--space-6) 0 var(--space-2); }
.ct .load-more [infinite] { position: absolute; top: -200px; left: 0; width: 1px; height: 1px; }

/* ---------- empty / error ---------- */
.ct .empty { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-7) var(--space-5); text-align: center; }
.ct .empty__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-surface-3); color: var(--color-muted); margin-bottom: var(--space-1); }
.ct .empty__title { font-size: var(--fs-md); font-weight: 700; }
.ct .empty__text { max-width: 42ch; font-size: var(--fs-sm); color: var(--color-muted); }
.ct .empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); margin-top: var(--space-2); }
.ct .empty__actions:empty { display: none; }
.ct .empty--error .empty__ico { background: var(--color-live-soft); color: var(--color-live); }

/* ---------- chips extras ---------- */
.ct .chips--wrap { flex-wrap: wrap; overflow: visible; }
.ct .chips--bleed { margin-inline: calc(var(--space-4) * -1); padding-inline: var(--space-4); scroll-padding-inline: var(--space-4); }
.ct .chip small { color: var(--color-muted); font-weight: 600; }
.ct .chip.is-active small { color: inherit; opacity: .7; }
.ct .chip-sk { display: flex; gap: var(--space-2); }
.ct .seg__n { margin-left: 4px; font-size: var(--fs-2xs); color: var(--color-muted); }

/* ---------- search overlay ---------- */
.ct .so { position: fixed; inset: 0; z-index: 1200; visibility: hidden; pointer-events: none; transition: visibility 0s .2s; }
.ct .so.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.ct .so__scrim { position: absolute; inset: 0; background: var(--color-scrim); opacity: 0; transition: opacity .2s var(--ease); }
.ct .so.is-open .so__scrim { opacity: 1; }
.ct .so__panel { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--color-surface); padding-top: var(--safe-t); opacity: 0; transform: translateY(16px); transition: transform .24s var(--ease), opacity .2s var(--ease); }
.ct .so.is-open .so__panel { opacity: 1; transform: none; }
.ct .so__bar { display: flex; align-items: center; gap: var(--space-1); min-height: 60px; padding: 0 var(--space-2); border-bottom: 1px solid var(--color-border); }
.ct .so__glass { color: var(--color-muted); margin-left: 2px; }
.ct .so__input { flex: 1; min-width: 0; height: var(--touch); padding: 0 var(--space-2); border: 0; background: transparent; font-size: 16px; outline: none; }
.ct .so__input::-webkit-search-cancel-button { display: none; }
.ct .so__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: var(--space-2) var(--space-3) calc(var(--space-6) + var(--safe-b)); }
.ct .so__title { padding: var(--space-3) var(--space-1) 6px; font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--color-muted); }
.ct .so__intro .chips { padding-inline: 2px; }
.ct .so__item { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 6px 10px; border-radius: var(--radius-sm); }
.ct .so__item.is-active { background: var(--color-surface-2); }
.ct .so__ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--color-surface-3); color: var(--color-muted); flex: none; overflow: hidden; }
.ct .so__ico img { width: 100%; height: 100%; object-fit: cover; }
.ct .so__txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ct .so__name { font-size: var(--fs-sm); font-weight: 600; }
.ct .so__sub { font-size: var(--fs-xs); color: var(--color-muted); }
.ct .so__sub.is-live { color: var(--color-live); font-weight: 700; }
.ct .so__go { color: var(--color-muted); opacity: 0; transition: opacity var(--dur); }
.ct .so__item.is-active .so__go { opacity: 1; }
.ct .so__sk .sk-row { min-height: 56px; padding: 0 10px; }
.ct .so__empty { display: grid; gap: 4px; padding: var(--space-7) var(--space-4); text-align: center; font-size: var(--fs-sm); color: var(--color-muted); }
.ct .so__empty strong { color: var(--color-text); font-size: var(--fs-base); }
.ct .so__hint { display: none; }
@media (min-width: 992px) {
  .ct .so__scrim { background: rgba(6, 10, 18, .28); }
  .ct .so__panel { inset: auto; top: calc(var(--appbar-h) + var(--safe-t) + 8px); right: max(var(--space-4), calc((100vw - var(--container)) / 2 + var(--space-4))); width: 560px; max-height: min(72vh, 640px); padding-top: 0; border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); transform: translateY(-8px); overflow: hidden; }
  .ct .so__back { display: none; }
  .ct .so__bar { padding-left: var(--space-4); }
  .ct .so__body { padding-bottom: var(--space-3); }
  .ct .so__hint { display: flex; align-items: center; gap: 6px; padding: 10px var(--space-4); border-top: 1px solid var(--color-border); font-size: var(--fs-xs); color: var(--color-muted); }
  .ct .so__hint kbd { padding: 1px 6px; border-radius: 5px; border: 1px solid var(--color-border); background: var(--color-surface-2); color: var(--color-text-2); box-shadow: none; font: 600 var(--fs-2xs) var(--font); }
  .ct .so__hint kbd + kbd { margin-left: -2px; }
}

/* ---------- detail headers ---------- */
.ct .back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--touch); margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: 600; color: var(--color-muted); }
.ct .back:hover { color: var(--color-text); }
.ct .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--color-muted); }
.ct .crumbs a:hover { color: var(--color-text); }
.ct .dhead { padding-top: var(--space-1); }
.ct .dhead__card { display: flex; align-items: center; gap: 14px; min-height: 104px; padding: var(--space-4); }
.ct .dhead__logo { width: 64px; height: 64px; flex: none; font-size: var(--fs-md); }
.ct .dhead__logo--round { border-radius: 50%; }
.ct .dhead__title { font-size: var(--fs-lg); font-weight: 800; letter-spacing: -.01em; }
.ct .dhead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; font-size: var(--fs-xs); font-weight: 600; color: var(--color-muted); }
.ct .dhead__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 8px; font-size: var(--fs-sm); color: var(--color-text-2); }
.ct .dhead__facts { min-height: 24px; }
.ct .dhead__links { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; margin-top: var(--space-3); }
.ct .dhead__links::-webkit-scrollbar { display: none; }
.ct .form { display: inline-flex; gap: 4px; }
.ct .form__dot { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: var(--fs-2xs); font-weight: 800; color: #fff; background: var(--color-muted); }
.ct .form__dot--W { background: var(--color-primary); color: var(--color-on-primary); }
.ct .form__dot--L { background: var(--color-live); }
@media (min-width: 600px) {
  .ct .dhead__title { font-size: var(--fs-xl); }
  .ct .dhead__logo { width: 80px; height: 80px; }
}

/* ---------- lists / kv / prose / players ---------- */
.ct .list { padding: 4px 0; overflow: hidden; }
.ct .list__row { display: flex; align-items: center; gap: var(--space-3); min-height: 60px; padding: 8px var(--space-4); border-bottom: 1px solid var(--color-border); }
.ct .list__row:last-child { border-bottom: 0; }
.ct a.list__row:hover { background: var(--color-surface-2); }
.ct .list__title { display: block; font-size: var(--fs-sm); font-weight: 600; }
.ct .list__sub { display: block; font-size: var(--fs-xs); color: var(--color-muted); }
.ct .list__ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary-strong); flex: none; }
.ct .role-group + .role-group { margin-top: var(--space-3); }
.ct .kv { padding: var(--space-4); }
.ct .kv__row { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.ct .kv__row:last-child { border-bottom: 0; }
.ct .kv__row span { color: var(--color-muted); }
.ct .prose { padding: var(--space-4); }
.ct .prose p { color: var(--color-text-2); line-height: 1.65; white-space: pre-line; }
.ct .players--scroll { display: flex; gap: var(--space-3); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.ct .players--scroll::-webkit-scrollbar { display: none; }
.ct .player { flex: none; width: 108px; display: grid; justify-items: center; gap: 8px; padding: var(--space-3) var(--space-2); text-align: center; font-size: var(--fs-xs); font-weight: 600; }
.ct .player img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--color-surface-3); }

/* ---------- teams tools ---------- */
.ct .tools { display: grid; gap: var(--space-3); }
.ct .field { display: flex; align-items: center; gap: var(--space-2); height: var(--touch); padding: 0 var(--space-4); border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-muted); }
.ct .field:focus-within { border-color: var(--color-primary); }
.ct .field__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font-size: 16px; color: var(--color-text); }
@media (min-width: 992px) { .ct .tools { grid-template-columns: 320px minmax(0, 1fr); align-items: center; } }

/* ---------- news categories index ---------- */
.ct .cat-grid { display: grid; gap: var(--space-3); }
.ct .cat { padding: var(--space-4); }
.ct .cat__head { display: flex; align-items: center; gap: var(--space-2); min-height: var(--touch); }
.ct .cat__name { flex: 1; font-size: var(--fs-md); font-weight: 700; }
.ct .cat__count { padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-surface-3); font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-2); }
.ct .cat__desc { margin-bottom: var(--space-3); font-size: var(--fs-sm); color: var(--color-muted); }
.ct .cat .chip { min-height: 34px; font-size: var(--fs-xs); }
@media (min-width: 600px) { .ct .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 992px) { .ct .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- about ---------- */
.ct .about-hero { padding: var(--space-7) 0 var(--space-8); background: radial-gradient(120% 120% at 100% 0%, rgba(19, 168, 107, .35) 0%, transparent 50%), var(--color-header); color: var(--color-header-text); }
.ct .about-hero__kicker { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #4bd699; }
.ct .about-hero__title { margin-top: var(--space-2); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.ct .about-hero__intro { max-width: 62ch; margin-top: var(--space-3); font-size: var(--fs-md); line-height: 1.6; color: rgba(243, 246, 251, .78); }
.ct .about > .section:first-child { margin-top: var(--space-6); }
.ct .about__h { margin-bottom: var(--space-3); font-size: var(--fs-lg); font-weight: 800; }
.ct .about__card { padding: var(--space-5); }
.ct .about__num { font-size: var(--fs-sm); font-weight: 800; color: var(--color-primary); }
.ct .about__card h3 { margin-top: 6px; font-size: var(--fs-md); }
.ct .about__card p { margin-top: 6px; font-size: var(--fs-sm); color: var(--color-text-2); }
.ct .about__person { display: grid; justify-items: center; padding: var(--space-5) var(--space-3); text-align: center; }
.ct .about__avatar { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-primary-soft); color: var(--color-primary-strong); font-weight: 800; }
.ct .about__person h3 { margin-top: 10px; font-size: var(--fs-sm); }
.ct .about__person p { font-size: var(--fs-xs); color: var(--color-muted); }
.ct .social { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.ct .social__btn { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 var(--space-4); font-weight: 600; }
@media (min-width: 600px) {
  .ct .about-hero { padding: var(--space-8) 0 calc(var(--space-8) + var(--space-4)); }
  .ct .about-hero__title { font-size: var(--fs-3xl); }
  .ct .social { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- desktop niceties ---------- */
@media (min-width: 992px) {
  .ct .hero__track { grid-auto-columns: 86%; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
  .ct .hero__nav { display: inline-grid; }
  .ct .chips--bleed { margin-inline: 0; padding-inline: 0; }
  .ct .sh__name { font-size: var(--fs-xl); }
  .ct .nc--lead .nc__media { min-height: 320px; }
}
@media (min-width: 600px) and (max-width: 991px) { .ct .hero__track { grid-auto-columns: 70%; } }


/* =====================================================================
   DESKTOP (>= 992px, same breakpoint as the shared header): flat cards,
   search panel laid exactly over the header search bar.
   ===================================================================== */
.ct .so__cat, .ct .so__submit { display: none; }
@media (min-width: 992px) {
  .ct a.card:hover { transform: none; box-shadow: var(--shadow-lg); border-color: #d5d9d9; }
  :root[data-theme="dark"] .ct a.card:hover { border-color: #484f58; }
  .ct .mc { min-height: 148px; padding: 12px 14px; gap: 8px; }
  .ct .mc__score { font-size: 16px; }
  .ct .nc__cat { color: var(--color-live); }
  .ct a.nc:hover .nc__title, .ct a.sc:hover .sc__name, .ct a.tc:hover .tc__name { color: var(--color-hover); }
  .ct .day-head { border-bottom: 1px solid var(--color-border); margin-bottom: 10px; height: 38px; }
  .ct .day-head--sub { border-bottom: 0; margin-bottom: 0; }
  .ct .fbar { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--color-bg); }

  .ct .so__scrim { background: rgba(15, 17, 17, .45); }
  .ct .so__panel { top: var(--so-top, 10px); left: var(--so-left, auto); right: auto; width: var(--so-w, 600px); max-height: min(78vh, 680px); border-radius: 8px; border: 0; transform: none; }
  .ct .so__bar { height: 40px; min-height: 40px; padding: 0; gap: 0; border-bottom: 0; background: #fff; color: #0f1111; box-shadow: 0 0 0 3px var(--color-accent-2); border-radius: 8px 8px 0 0; }
  .ct .so__glass, .ct .so__back { display: none; }
  .ct .so__cat { display: block; height: 100%; padding: 0 22px 0 10px; border: 0; border-right: 1px solid #cdcdcd; border-radius: 8px 0 0 0; -webkit-appearance: none; appearance: none;
    background: #e6e6e6 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23555'/%3E%3C/svg%3E") no-repeat right 8px center; color: #555; font-size: 12px; cursor: pointer; }
  .ct .so__input { height: 40px; padding: 0 12px; font-size: 15px; color: #0f1111; }
  .ct .so__clear { width: 36px; height: 36px; color: #565959; }
  .ct .so__submit { display: grid; place-items: center; flex: 0 0 48px; height: 100%; background: var(--color-accent); color: #131921; border-radius: 0 8px 0 0; }
  :root[data-theme="dark"] .ct .so__bar { background: #21262d; color: #c9d1d9; }
  :root[data-theme="dark"] .ct .so__input { color: #c9d1d9; }
  :root[data-theme="dark"] .ct .so__cat { background-color: #30363d; border-color: #30363d; color: #c9d1d9; }
  .ct .so__body { border-top: 1px solid var(--color-border); }
}
.ct .so__all { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 44px; margin-top: 6px; border-top: 1px solid var(--color-border); color: var(--color-primary); font-size: var(--fs-sm); font-weight: 600; }
.ct .so__all:hover { color: var(--color-hover); }
.ct .list__sub.is-live { color: var(--color-live); font-weight: 700; }

/* =====================================================================
   NEWS page (same building blocks as the home page news section:
   .ux-hero-grid / .ux-top-story / .ux-news-item / .ux-sidebar-card)
   ===================================================================== */
.ct .nw-head { padding-top: 6px; }
.ct .nw-head .crumbs { margin-bottom: 0; }
.ct .nw-titlebar { padding-top: 6px; margin-bottom: 8px; gap: 12px; }
.ct .nw-titlebar .ux-latest-title { font-size: 20px; font-weight: 800; }
.ct .nw-desc { margin: -2px 0 10px; color: var(--color-muted); font-size: var(--fs-sm); max-width: 70ch; }
.ct .nw-chips { margin: 0 0 16px; }
.ct .nw-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ct .nw-hero { margin-bottom: 20px; border-radius: var(--radius); }
.ct .nw-sub { padding-top: 0; margin-bottom: 4px; }
.ct .nw-sub .ux-latest-title { font-size: 18px; font-weight: 800; }
.ct .nw-sk-hero { width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: var(--radius); }
.ct .nw-sk-sq { width: 100px; height: 100px; border-radius: 6px; }
.ct .nw-more { min-width: 200px; }
.ct .nw-side { display: grid; gap: 16px; align-content: start; }
.ct .nw-side .ux-sidebar-card { margin: 0; padding: 14px 14px 6px; }
.ct .nw-dot-teal { background: var(--color-primary); }
.ct .nw-most li { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--color-border); }
.ct .nw-most li:first-child { border-top: 0; padding-top: 0; }
.ct .nw-most a { font-size: 13.5px; font-weight: 600; line-height: 1.4; color: var(--color-text); }
.ct .nw-most a:hover { color: var(--color-hover); }
.ct .nw-most small { font-size: 11px; color: var(--color-muted); }
.ct .nw-cats li a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; border-top: 1px solid var(--color-border); font-size: 13.5px; font-weight: 600; color: var(--color-text-2); }
.ct .nw-cats li:first-child a { border-top: 0; }
.ct .nw-cats a:hover, .ct .nw-cats a.is-active { color: var(--color-hover); }
.ct .nw-cats b { min-width: 26px; padding: 1px 7px; border-radius: 999px; background: var(--color-surface-3); font-size: 11px; text-align: center; color: var(--color-muted); }
@media (min-width: 992px) {
  .ct .nw-titlebar .ux-latest-title { font-size: 26px; }
}
@media (max-width: 599px) {
  .ct .nw-hero { margin-inline: -16px; border-radius: 0; padding: 14px 16px; }
  .ct .nw-chips { margin-inline: -16px; padding-inline: 16px; }
}

