/* XSERIES core components: the official look, built from ds/tokens.css only.
   Loaded LAST on every page, so these rules win over old CSS of the same specificity.
   Live examples + markup to copy: ds/index.html#components. Rules: ds/RULES.md.
   Change a component here and every page follows.
   Colours inside :where() are defaults: a page context (e.g. the match header) may restyle them; size and shape may not. */

/* ---------- Button ----------
   <a class="btn pri" href="…">Get tickets</a>
   Variants: pri (main action, one per section) · line (secondary) · live (watch live, match days only) · no variant = plain text button
   Add .full for full width. Disabled: <button disabled> or aria-disabled="true". */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-8);height:var(--control-h);
  border:0;border-radius:0;clip-path:var(--shape-s);
  font:var(--weight-heavy) var(--text-ui)/1 var(--font-body);letter-spacing:normal;text-transform:uppercase;text-decoration:none;white-space:nowrap;cursor:pointer;
  transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)}
:where(.btn){padding:0 18px;background:transparent;color:var(--color-text-strong)} /* ds-ok: 18px is what every live button uses */
.btn svg{width:16px;height:16px;flex:none}
.btn:focus-visible{outline:2px solid var(--color-text-strong);outline-offset:-4px}
.btn:disabled,.btn[aria-disabled=true]{opacity:.4;pointer-events:none}
.btn.full{width:100%}
.top .top-tix{font:var(--weight-heavy) var(--text-ui)/1 var(--font-body);letter-spacing:normal} /* top bar "Get tickets" uses button type on every page */
.btn.pri{background:var(--color-accent);color:var(--color-on-accent)}
.btn.pri:hover{background:var(--color-accent-2)}
:where(.btn.line){background:transparent;color:var(--color-text)}
.btn.line::after{content:"";position:absolute;inset:0;background:var(--color-line-strong);clip-path:var(--shape-s-ring);pointer-events:none}
.btn.line:hover{background:var(--color-hover)}
.btn.line:hover::after{background:var(--color-line-hover)}
.btn.live{background:var(--color-live);color:var(--color-text-strong)}
.btn.live:hover{filter:brightness(1.12)}

/* ---------- Status badge ----------
   <span class="ev-st s-on">On sale</span>
   States: s-cl coming soon · s-pre presale · s-on on sale · s-so sold out · s-live live · s-ft full time · s-tba TBA / phase note
   Live: <span class="ev-st s-live"><i class="lv-dot" aria-hidden="true"></i>Live</span> */
.ev-st{display:inline-flex;align-items:center;gap:var(--space-6);height:22px;padding:0 var(--space-12);clip-path:var(--shape-tag);
  background:var(--color-surface-3);color:var(--color-text);font:var(--weight-bold) var(--text-meta)/1 var(--font-body);white-space:nowrap}
.ev-st:where(.s-cl){color:var(--color-text-muted)}
.ev-st:where(.s-pre){background:var(--color-presale);color:var(--color-on-presale)}
.ev-st:where(.s-on){background:var(--color-sale);color:var(--color-on-sale)}
.ev-st:where(.s-so){background:var(--color-soldout);color:var(--color-text-strong)}
.ev-st:where(.s-live){background:var(--color-live);color:var(--color-text-strong)}
.ev-st:where(.s-tba){background:var(--color-note-bg);color:var(--color-note)}
.ev-st :where(.lv-dot){display:inline-block;flex:none;width:6px;height:6px;border-radius:var(--radius-round);background:currentColor}

/* ---------- Tabs ----------
   <div class="tabs" role="tablist"><button role="tab" aria-selected="true">Semifinal</button><button role="tab" aria-selected="false">Final</button></div> */
.tabs{display:flex;gap:var(--space-16);overflow-x:auto;scrollbar-width:none}
.tabs [role=tab]{display:inline-flex;align-items:center;gap:var(--space-6);height:var(--tab-h);padding:0;border:0;border-bottom:2px solid transparent;background:none;
  color:var(--color-text-muted);font:var(--weight-medium) var(--text-body)/1.45 var(--font-body);white-space:nowrap;cursor:pointer;transition:color var(--dur-fast) var(--ease-out)}
.tabs [role=tab]:hover{color:var(--color-text)}
.tabs [role=tab][aria-selected=true]{color:var(--color-accent);border-bottom-color:var(--color-accent)}
.tabs [role=tab]:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px}
/* Tabs with timer: a carousel that moves on by itself. Each tab gets a track line; the open tab's line fills up while its story shows.
   <div class="tabs timer" role="tablist"><button role="tab" aria-selected="true"><span>Story one</span><i class="tmr"><i></i></i></button>…</div>
   The page JS listens for animationend on ".tmr i" to open the next tab; pause it with animation-play-state on hover. */
.tabs.timer [role=tab]{position:relative;flex:1 1 auto;border-bottom-color:var(--color-line-soft)}
.tabs.timer .tmr{position:absolute;left:0;right:0;bottom:-2px;height:2px;overflow:hidden}
.tabs.timer .tmr i{display:block;width:0;height:100%;background:var(--color-accent)}
.tabs.timer [aria-selected=true] .tmr i{animation:tabs-tm 8s linear forwards} /* ds-ok: one story = 8 seconds */
@keyframes tabs-tm{to{width:100%}}
@media (prefers-reduced-motion:reduce){.tabs.timer [aria-selected=true] .tmr i{animation:none;width:100%}}

/* ---------- Section header ----------
   <header class="sh"><h2 id="h-x"><img class="i3d" src="/img/rail/crest-off.webp?v=2" alt="">Teams</h2></header>
   Optional on the right: .tabs or a .btn.line. Same colour on every screen (desktop is the reference); only the size drops on phones.
   Hub and match pages put the same title straight in the section: <h2 class="ed-h" id="h-x"><img class="i3d" …>Matches</h2> (16px gap below). */
.sh{display:flex;align-items:center;flex-wrap:wrap;gap:var(--space-8) var(--space-12)}
.sh h2,.ed-h{display:flex;align-items:center;gap:var(--space-10);color:var(--color-text);
  font:var(--weight-bold) var(--section-title)/1 var(--font-display);letter-spacing:.01em;text-transform:uppercase}
.sh h2{margin:0}
.ed-h{margin:0 0 var(--space-16)}
:is(.sh h2,.ed-h) img.i3d{width:42px;height:42px;flex:none;object-fit:contain;margin:-10px -4px -10px -8px;filter:drop-shadow(0 3px 4px var(--color-scrim))}
@media (max-width:640px){
  :is(.sh h2,.ed-h){gap:var(--space-8);line-height:1.05}
  :is(.sh h2,.ed-h) img.i3d{width:28px;height:28px;margin:calc((1.05em - 28px) / 2) -2px calc((1.05em - 28px) / 2) -4px} /* ds-ok: centres the 3D icon on the first line */
}

/* ---------- Card ----------
   <article class="card">…</article>   big cut (match card, team card, panels)
   <a class="card m" href="…">…</a>     small cut (news item, leaderboard, small tiles)
   <div class="card s">…</div>          smallest cut (bracket rows, list rows)
   The cut corner and hairline are fixed. Surface, padding and layout are defaults a card type may change. */
.card{clip-path:var(--shape-l);text-decoration:none}
:where(.card){position:relative;display:block;padding:var(--card-pad);background:var(--color-surface-1);color:var(--color-text)}
.card::after{content:"";position:absolute;inset:0;z-index:5;clip-path:var(--shape-l-ring);pointer-events:none}
:where(.card)::after{background:var(--color-line-soft)}
.card.m{clip-path:var(--shape-m)}
.card.m::after{clip-path:var(--shape-m-ring)}
.card.s{clip-path:var(--shape-s)}
.card.s::after{clip-path:var(--shape-s-ring)}
:where(a.card:hover){background:var(--color-surface-2)}
/* <div class="card wrap">…sections…</div>   panel holding several sections (match page columns, Top players)
   Same surface, cut and hairline, but drawn behind the content instead of clipping it, so a sticky tab bar or title inside can stick.
   No padding of its own: each <section> directly inside gets the card padding and a hairline above the next one. */
.card.wrap{clip-path:none;isolation:isolate}
:where(.card.wrap){padding:0;background:none}
.card.wrap::before{content:"";position:absolute;inset:0;z-index:-1;clip-path:var(--shape-l);pointer-events:none}
:where(.card.wrap)::before{background:var(--color-surface-1)}
:where(.card.wrap>section){padding:var(--card-pad)}
:where(.card.wrap>section+section){border-top:1px solid var(--color-line-soft)}

/* ---------- Small button ----------
   <a class="btn line s" href="…">See all</a>   section "See all" links, small actions in a row
   28px tall, 12px text. Same variants as .btn. */
.btn.s{height:28px;gap:var(--space-4);padding:0 var(--space-10);font-size:var(--text-meta)}

/* ---------- Icon button ----------
   <button class="ic-btn" type="button" aria-label="Search"><svg class="i" aria-hidden="true"><use href="#i-search"/></svg></button>
   Always give it an aria-label. Variants: .line (outline, e.g. slider arrows) · .s (30px). Disabled: <button disabled>. */
.ic-btn{position:relative;display:inline-grid;place-items:center;flex:none;width:36px;height:36px;padding:0;border:0;border-radius:0;clip-path:var(--shape-s);cursor:pointer;
  transition:background-color var(--dur-fast) var(--ease-out),color var(--dur-fast) var(--ease-out)}
:where(.ic-btn){background:var(--color-field);color:var(--color-text-muted)}
:where(.ic-btn:hover){color:var(--color-text-strong)}
.ic-btn:focus-visible{outline:2px solid var(--color-text-strong);outline-offset:-4px}
.ic-btn.s{width:30px;height:30px}
:where(.ic-btn.line){background:transparent;color:var(--color-text)}
.ic-btn.line::after{content:"";position:absolute;inset:0;background:var(--color-line-strong);clip-path:var(--shape-s-ring);pointer-events:none}
:where(.ic-btn.line:hover){background:var(--color-hover);color:var(--color-text)}
.ic-btn.line:hover::after{background:var(--color-line-hover)}
.ic-btn:disabled{cursor:default}
:where(.ic-btn.line:disabled){background:transparent;color:var(--color-surface-4)}
.ic-btn.line:disabled::after{background:var(--color-line-soft)}

/* ---------- Segmented control ----------
   <div class="seg" role="group" aria-label="Language"><button type="button" aria-pressed="true">EN</button><button type="button" aria-pressed="false">ID</button></div>
   One choice out of 2–4 (language, edition, email/WhatsApp, 3D/list view). Buttons may hold an icon or flag before the text. */
.seg{display:inline-flex;align-items:stretch;gap:var(--space-2);flex:none;width:auto;height:auto;padding:var(--space-4);border-radius:0;clip-path:var(--shape-s)}
:where(.seg){background:var(--color-field)}
.seg button{position:relative;isolation:isolate;display:inline-flex;align-items:center;justify-content:center;gap:var(--space-6);flex:none;width:auto;height:32px;padding:0 var(--space-10);
  border:0;border-radius:0;clip-path:var(--shape-s);background:none;box-shadow:none;
  font:var(--weight-semibold) var(--text-meta)/1 var(--font-body);letter-spacing:normal;text-transform:none;white-space:nowrap;cursor:pointer;
  transition:color var(--dur-fast) var(--ease-out)}
:where(.seg button){color:var(--color-text-muted)}
:where(.seg button:hover){color:var(--color-text)}
.seg button[aria-pressed=true]{background:var(--color-selected-line);color:var(--color-accent)}
.seg button[aria-pressed=true]::after{content:"";position:absolute;inset:1px;z-index:-1;background:var(--color-selected-fill);clip-path:var(--shape-s);pointer-events:none}
.seg button:focus-visible{outline:2px solid var(--color-text-strong);outline-offset:2px}
.seg button svg{width:16px;height:16px;flex:none}
.seg.full{display:flex}.seg.full button{flex:1}
/* .seg.l: tall uppercase button labels, e.g. the edition switch in the Stats Centre: <div class="seg l full">…</div> */
.seg.l button{height:38px;padding:0 var(--space-12);font:var(--weight-heavy) var(--text-meta)/1 var(--font-body);text-transform:uppercase}

/* ---------- Text field ----------
   <label class="sr" for="email">Email</label><input class="field" id="email" type="email" placeholder="name@email.com"> */
.field{flex:none;min-width:0;height:var(--control-h);padding:0 14px;border:0;border-radius:0;outline:0;clip-path:var(--shape-s); /* ds-ok: 14px inset, what every live field uses */
  font:var(--weight-regular) var(--text-body)/1 var(--font-body);transition:background-color var(--dur-fast) var(--ease-out),box-shadow var(--dur-fast) var(--ease-out)}
:where(.field){background:var(--color-field);color:var(--color-text-strong)}
.field::placeholder{color:var(--color-text-faint)}
:where(.field:focus){background:var(--color-hover);box-shadow:inset 0 0 0 1.5px var(--color-accent)}

/* ---------- Tag ----------
   <span class="tag">Semifinal</span>   small label inside a card (round, phase)
   <span class="tag tbc">TBA</span>    not confirmed yet */
.tag{display:inline-flex;align-items:center;flex:none;height:16px;padding:0 var(--space-8);clip-path:var(--shape-tag);
  font:var(--weight-bold) var(--text-micro)/1 var(--font-body);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
:where(.tag){background:var(--color-surface-3);color:var(--color-text)}
:where(.tag.tbc){background:var(--color-note-bg);color:var(--color-note)}

/* ---------- Rank ----------
   <i class="rank" title="Ace">A</i>   player rank letter: A Ace · K Kings · Q Queens · J Jack · P Prodigy
   30 Nov ("component rank pake font ini, shape wrapper pake ini"): Rye letter in the slanted tag shape of the squad grid badge */
.rank{--skew:var(--space-8);display:inline-grid;place-items:center;flex:none;width:32px;height:24px;border-radius:0;clip-path:var(--shape-tag);
  font:var(--weight-regular) var(--text-lead)/1 var(--font-rank);font-style:normal;text-transform:uppercase}
:where(.rank){background:var(--color-surface-3);color:var(--color-text)}

/* ---------- Eyebrow ----------
   <span class="eyebrow">Venue</span>   small label above a value or a title */
.eyebrow{display:block;font:var(--weight-bold) var(--text-caption)/1.2 var(--font-body);letter-spacing:.08em;text-transform:uppercase}
:where(.eyebrow){color:var(--color-text-muted)}

/* ---------- Fine print ----------
   <small class="fine">Prices include tax.</small>   source notes, captions, legal */
.fine{font-size:var(--text-meta)}
:where(.fine){color:var(--color-text-faint)}

/* ---------- Dots ----------
   <i class="lv-dot" aria-hidden="true"></i>   pulsing live dot (next to "Live")
   <i class="dot" aria-hidden="true"></i>      static accent dot */
.dot,.lv-dot{display:inline-block;flex:none;border-radius:var(--radius-round)}
.dot{width:8px;height:8px}
:where(.dot){background:var(--color-accent)}
.lv-dot{width:8px;height:8px;animation:lv-p 1.6s ease-out infinite}
:where(.lv-dot){background:var(--color-live)}
@keyframes lv-p{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--color-live) 60%,transparent)}70%,100%{box-shadow:0 0 0 7px transparent}}
@media (prefers-reduced-motion:reduce){.lv-dot{animation:none}}

/* ---------- Breadcrumb ----------
   <nav class="crumb" aria-label="Breadcrumb"><a href="schedule.html">Schedule</a><span aria-hidden="true">/</span><span aria-current="page">Match 1</span></nav> */
.crumb{display:flex;align-items:center;gap:var(--space-8);min-width:0;font-size:var(--text-ui);font-weight:var(--weight-semibold)}
.crumb a{text-decoration:none}
/* 27 Nov: real specificity (was :where), so a page's own link colour can't change the breadcrumb */
.crumb a{color:var(--color-text)}
.crumb a:hover{color:var(--color-text-strong)}
.crumb [aria-hidden]{color:var(--color-text-faint)}
.crumb [aria-current]{color:var(--color-text-strong)}

/* ---------- Sub-nav ----------
   <nav class="subnav" aria-label="On this page"><a href="#matches" aria-current="true">Matches</a><a href="#teams">Teams</a></nav>
   Jump links inside one page; sticks under the top bar (sticky position is set by the page). */
.subnav{display:flex;align-items:center;gap:var(--space-4);overflow-x:auto;scrollbar-width:none}
.subnav a{flex:none;padding:var(--space-16) var(--space-10) 14px;border-bottom:2px solid transparent;font-size:var(--text-body);font-weight:var(--weight-semibold);white-space:nowrap;text-decoration:none} /* ds-ok: 16 + 14 + 2 line = 52 tall */
/* 27 Nov: real specificity (not :where), page link colours (a{color:inherit}, .info a) otherwise win */
.subnav a{color:var(--color-text)}
.subnav a:hover{color:var(--color-text-strong)}
.subnav a[aria-current]{color:var(--color-accent);border-bottom-color:var(--color-accent)}

/* ---------- Countdown ----------
   <p class="hx-cd" role="timer" aria-label="Countdown to kick-off"><span class="hx-cd-in"><span class="hx-cd-k">Kickoff in</span><b>57</b><small>d</small><b>06</b><small>h</small>…</span></p>
   One look on Home (presale) and the match pages (kick-off): body font, label 12px caps, numbers 14px.
   27 Nov ("kok bisa beda? bukannya udah dibikin design sistem?"): the match copy still had the old Dharma Gothic numbers on desktop.
   The box (bar under the ticket button) is page layout and stays in css/hero-pitch.css. */
.hx-cd .hx-cd-in{display:flex;align-items:baseline}
:where(.hx-cd .hx-cd-in){gap:0;padding:var(--space-6) var(--space-12);background:var(--color-chrome-2)}
.hx-cd .hx-cd-k{align-self:center;margin-right:var(--space-10);font:var(--weight-bold) var(--text-caption)/1 var(--font-body);letter-spacing:normal;text-transform:uppercase;white-space:nowrap}
.hx-cd .hx-cd-in b{font:var(--weight-bold) var(--text-ui)/1 var(--font-body);letter-spacing:normal;font-variant-numeric:tabular-nums}
.hx-cd .hx-cd-in small{margin:0 var(--space-6) 0 1px;font:var(--weight-regular) var(--text-caption)/1 var(--font-body)}
.hx-cd .hx-cd-in small:last-child{margin-right:0}
:where(.hx-cd .hx-cd-k){color:var(--color-accent)}
.hx-cd .hx-cd-in b{color:var(--color-text-strong)} /* numbers white everywhere (match pages had grey) */
:where(.hx-cd .hx-cd-in small){color:var(--color-text-muted)}

/* ---------- Top bar ----------
   <header class="top">search · ID/EN · Get Your Tickets</header> (copy the markup from index.html; one top bar for every page)
   27 Nov ("harusnya ada separator line seperti homepage"): the 1px separator under the bar is part of the bar, the same on every page,
   at every width and in both states (at rest and the scrolled glass). It ends at the panel edge: on desktop the bar runs 12px past the
   panel under .app's right padding (--app-pr, season.css). Page CSS sets only the bar's background-color, never the line. */
:is(.top,.top.scr){background-image:linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12));background-position:left bottom;background-size:calc(100% - var(--app-pr,0px)) 1px;background-repeat:no-repeat} /* ds-ok: Home's separator (20 Nov), no matching token */

/* ---------- One-line name ----------
   <b class="one-line">Muhammad Dafa Erlangga</b>
   27 Nov ("yg namanya panjang jangan dibikin 2 baris … pake titik2 aja, biar cardnya tetap rapi"): a player, team, coach or partner name
   never wraps. If it does not fit, it ends in "…" so every row and card in a list keeps the same height.
   New markup: add .one-line (block or grid/flex item). The list below covers the name slots that already exist.
   The full name shows on hover (ds/components.js sets title); screen readers already read the whole text.
   Text that sits straight inside a flex box (team label with a logo) is clipped without "…"; put the name in its own element if it can be long. */
:is(.one-line,
  .lbx-1 span b, .lbx-1 small, .lbx-c li>span:not(.lbx-av), .lbx-c li>span:not(.lbx-av) small, /* leaderboard */
  .lu-nm, .lu-bn>span, /* match lineup */
  .mt-potm span b, .mt-potm small, .mt-ex>span>b, .mt-ex>span>small, .mt-pen b, /* match result */
  .mr-tl, .xpc-nm small, .sg-t b, .sg-t small /* match row, player card, guest stars */
){white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}

/* 30 Nov ("hapus close button disemua search bar"): hide the browser's built-in clear (×) in every search field */
input[type=search]::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none;display:none}
/* 30 Nov: partner logos are not links (v3.js holds /partners/<name>), so no hand cursor */
a[data-page^="/partners/"]{cursor:default}

/* 30 Nov ("hapus semua cta add to calendar", "icon button jadi dikiri", "button font pake schibsted grotesk"):
   match-card buttons (.ob): icon before the label (arrows stay after it), label in the .btn type, a lone button fills the row.
   The :not(#_) chains only lift specificity over the page sheets' id-scoped .ob rules. */
.ob>svg.i:not(:has(use[href="#i-chev"])){order:-1}
.ob:has(>svg.i):not(:has(use[href="#i-chev"])):not(#_):not(#__):not(#___){justify-content:center;gap:var(--space-8)}
.ob small,.ob b{font-family:var(--font-body);font-weight:var(--weight-heavy);font-size:var(--text-ui);letter-spacing:normal}
.ev-b:not(:has(>:nth-child(2))):not(#_):not(#__):not(#___){grid-template-columns:1fr}
