/* Design tokens. The layout prints the dashboard colours (Settings::cssVariables) after this file. */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("/assets/fonts/barlow-400.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("/assets/fonts/barlow-500.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-600.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-700.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("/assets/fonts/barlow-condensed-600.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-700.woff2?v=2026-10-06-f2fcfb9") format("woff2"); }

:root {
    /* Dashboard colours (style A defaults, M2 spec §8.1) */
    --color-primary: #C6F432;
    --color-on-primary: #000000;
    --color-accent: #D93036;
    --color-on-accent: #FFFFFF;
    --color-bg: #0B0F17;
    --color-surface: #131A26;
    --color-text: #EEF2F7;
    --color-muted: #8B97A8;

    /* Derived from the six above, so any dashboard palette stays coherent */
    --color-surface-2: color-mix(in srgb, var(--color-surface) 94%, var(--color-text));
    --color-border: color-mix(in srgb, var(--color-surface) 94%, var(--color-text));
    --color-border-strong: color-mix(in srgb, var(--color-surface) 86%, var(--color-text));
    --color-text-soft: color-mix(in srgb, var(--color-text) 65%, var(--color-muted));
    --color-live-text: color-mix(in srgb, var(--color-accent) 60%, var(--color-text));
    --color-footer: color-mix(in srgb, var(--color-bg) 70%, #000000);

    --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
    --font-head: "Barlow Condensed", "Barlow", system-ui, sans-serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-7: 28px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-14: 56px;
    --space-16: 64px;

    --radius-lg: 10px;
    --radius-md: 8px;
    --radius-sm: 6px;
    --radius-pill: 999px;

    --container: 1360px;
    --gutter: 16px;
    --header-h: 60px;
    --tabbar-h: 64px;
    --focus-ring: 0 0 0 3px color-mix(in srgb, var(--color-primary) 70%, transparent);
}

@media (min-width: 1024px) {
    :root { --gutter: 40px; --header-h: 68px; }
}
/* Reset and base typography. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--color-bg);
    color: var(--color-text);
    font: 400 16px/1.5 var(--font-body);
    padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; text-transform: uppercase; letter-spacing: 0.02em; }
h3 { line-height: 1.25; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--color-primary); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
/* The transparent outline is invisible normally but becomes a real outline in forced-colors mode,
   where box-shadow is dropped. */
:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); border-radius: var(--radius-sm); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--space-2); top: -60px; z-index: 100; display: inline-flex; align-items: center; min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }
.skip-link:focus, .skip-link:hover { top: var(--space-2); color: var(--color-on-primary); }
.icon { flex-shrink: 0; }
.site-main { display: block; min-height: 60vh; padding-bottom: var(--space-16); }

@media (min-width: 1024px) {
    body { padding-bottom: 0; }
}

@media (forced-colors: active) {
    .site-search:focus-within { outline: 2px solid; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}
/* Reusable components. Shell (header, ticker, footer, tab bar) styles are added below by Task 12. */

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid transparent; border-radius: var(--radius-md); background: transparent; color: var(--color-text); font-weight: 600; font-size: 14px; line-height: 1; white-space: nowrap; }
.btn--primary { background: var(--color-primary); color: var(--color-on-primary); font-weight: 700; }
.btn--primary:hover { color: var(--color-on-primary); filter: brightness(1.08); }
.btn--outline { border-color: var(--color-border-strong); }
.btn--outline:hover { border-color: var(--color-primary); color: var(--color-text); }
.btn--icon { width: 44px; padding: 0; }
.btn--sm { min-height: 44px; padding: 0 var(--space-3); }
.btn--block { width: 100%; }
.btn[aria-disabled="true"], .btn[aria-disabled="true"]:hover { opacity: 0.4; border-color: var(--color-border-strong); cursor: default; }

/* Pills */
.pill-row { display: flex; gap: var(--space-2); overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.pill-row::-webkit-scrollbar { display: none; }
.pill { flex-shrink: 0; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); color: var(--color-text); font-weight: 600; font-size: 14px; }
.pill[aria-current="true"] { background: var(--color-primary); border-color: var(--color-primary); color: var(--color-on-primary); }

/* Badges and small text */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 4px; background: var(--color-surface-2); font-weight: 700; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.badge--live { background: var(--color-accent); color: var(--color-on-accent); }
.badge--overlay { background: rgb(0 0 0 / 0.65); color: #FFFFFF; font-weight: 600; letter-spacing: 0; text-transform: none; }
.badge--count { padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-on-accent); letter-spacing: 0; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary); }
.kicker--muted { color: var(--color-muted); }
.meta { font-size: 13px; color: var(--color-muted); }
.live-text { color: var(--color-live-text); font-weight: 600; }

/* Cards and media */
.card { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.media { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: var(--color-surface-2); color: var(--color-muted); }
.media img { width: 100%; height: 100%; object-fit: cover; }
.media > .icon { position: absolute; }
.media__duration { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 4px; background: rgb(0 0 0 / 0.7); color: #FFFFFF; font-size: 12px; font-weight: 600; }
.crest { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-border-strong); color: var(--color-text); font-size: 10px; font-weight: 700; }
.crest--lg { width: 36px; height: 36px; font-size: 12px; }

/* Sections */
.section { margin-top: var(--space-12); }
.section-head { display: flex; align-items: center; gap: var(--space-4); margin-bottom: var(--space-4); }
.section-head__title { font-size: 24px; }
.section-head__more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-primary); font-weight: 600; font-size: 14px; white-space: nowrap; }
.section-head__more:hover { text-decoration: underline; }
.panel { padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.panel .section-head { margin-bottom: var(--space-1); }
.panel__more { display: block; margin-top: var(--space-4); text-align: center; color: var(--color-primary); font-weight: 600; font-size: 14px; }

/* Tabs */
.tabs { display: flex; gap: var(--space-5); margin-top: var(--space-3); border-bottom: 1px solid var(--color-border); }
.tabs__tab { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent; color: var(--color-muted); font-weight: 600; font-size: 14px; }
.tabs__tab[aria-selected="true"] { border-color: var(--color-primary); color: var(--color-text); }

/* Dropdown (<details>) */
.dropdown { position: relative; }
.dropdown > summary { list-style: none; cursor: pointer; }
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown__panel { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; min-width: 220px; padding: var(--space-2); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); box-shadow: 0 12px 32px rgb(0 0 0 / 0.4); }
.dropdown__panel--start { right: auto; left: 0; }
.dropdown__link { display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); border-radius: var(--radius-sm); color: var(--color-text); font-weight: 500; text-transform: none; letter-spacing: 0; }
.dropdown__link:hover, .dropdown__link[aria-selected="true"] { background: var(--color-surface-2); color: var(--color-text); }
.dropdown__link--more { color: var(--color-primary); font-weight: 600; }
/* The Liga menu: one column per area (football), then other sports; "Semua liga" spans the panel. */
/* Anchored to the sticky header (not the Liga item) and centred, so it never runs off the right edge. */
.dropdown:has(> .dropdown__panel--areas) { position: static; }
.dropdown__panel--areas { top: 100%; left: 50%; translate: -50% 0; display: grid; grid-template-columns: repeat(3, minmax(180px, 1fr)); gap: 0 var(--space-4); width: min(760px, calc(100vw - 2 * var(--gutter))); max-height: calc(100vh - var(--header-h) - 24px); overflow-y: auto; }
.dropdown__panel--areas > .dropdown__link--more { grid-column: 1 / -1; }
.dropdown__group .dropdown__link { min-height: 38px; }
.dropdown__heading { padding: var(--space-3) var(--space-3) var(--space-1); color: var(--color-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { padding: var(--space-2) 0; color: var(--color-muted); font-size: 12px; font-weight: 600; text-align: right; }
.table td { padding: 9px 0; border-top: 1px solid var(--color-border); text-align: right; }
.table th:first-child, .table td:first-child { text-align: left; }
.table__rank { display: inline-block; width: 24px; color: var(--color-muted); font-weight: 700; }
.table__rank--top { color: var(--color-primary); }
.table__team { display: inline-flex; align-items: center; gap: var(--space-2); }
.table__strong { font-weight: 700; }

/* Accordion (<details>) */
.accordion { display: grid; gap: var(--space-2); }
.accordion__item { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.accordion__q { display: flex; align-items: center; gap: var(--space-3); min-height: 56px; padding: 0 var(--space-4); font-weight: 700; list-style: none; cursor: pointer; }
.accordion__q::-webkit-details-marker { display: none; }
.accordion__q::after { content: "+"; margin-left: auto; color: var(--color-muted); font-size: 22px; font-weight: 400; }
.accordion__item[open] > .accordion__q::after { content: "–"; }
.accordion__no { color: var(--color-muted); font-size: 12px; }
.accordion__a { padding: 0 var(--space-4) var(--space-4) calc(var(--space-4) + 28px); color: var(--color-text-soft); font-size: 15px; line-height: 1.6; }

/* Empty state */
.empty-state { padding: var(--space-8) var(--space-4); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); color: var(--color-muted); text-align: center; }
.empty-state__title { margin-bottom: var(--space-2); color: var(--color-text); font-size: 18px; }

/* Breadcrumb */
.breadcrumb { margin-block: var(--space-4); color: var(--color-muted); font-size: 13px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: var(--space-2); color: var(--color-border-strong); }

@media (min-width: 1024px) {
    .section { margin-top: var(--space-14); }
    .section-head__title { font-size: 28px; }
    .panel .section-head__title { font-size: 24px; }
}

/* Site header */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.site-header__inner { display: flex; align-items: center; gap: var(--space-3); min-height: var(--header-h); }
.site-brand { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; font: 700 22px var(--font-head); letter-spacing: 0.02em; text-transform: uppercase; }
.site-brand img { width: 30px; height: 30px; }
.site-tagline { display: none; max-width: 130px; padding-left: var(--space-4); border-left: 1px solid var(--color-border-strong); color: var(--color-muted); font-size: 13px; line-height: 1.3; }
.site-nav { display: none; }
.site-nav ul { display: flex; gap: var(--space-5); margin: 0; padding: 0; list-style: none; }
.site-nav__link { display: flex; align-items: center; gap: 4px; min-height: var(--header-h); padding-top: 3px; border-bottom: 3px solid transparent; color: var(--color-text-soft); font-weight: 600; font-size: 15px; list-style: none; cursor: pointer; }
.site-nav__link::-webkit-details-marker { display: none; }
.site-nav__link[aria-current="page"] { border-color: var(--color-primary); color: var(--color-text); }
.site-header__actions { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; }
.site-search { display: none; align-items: center; gap: var(--space-2); width: 240px; min-height: 44px; padding: 0 var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); color: var(--color-muted); }
.site-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--color-text); font-size: 14px; }
.site-search:focus-within { box-shadow: var(--focus-ring); }
.nav-drawer > summary { list-style: none; }
.nav-drawer > summary::-webkit-details-marker { display: none; }
.nav-drawer__panel { position: fixed; inset: var(--header-h) 0 0; z-index: 50; overflow-y: auto; padding: var(--space-4) var(--gutter) calc(var(--tabbar-h) + var(--space-8)); background: var(--color-bg); }
.nav-drawer__link { display: flex; align-items: center; min-height: 48px; border-bottom: 1px solid var(--color-border); font-weight: 600; }
.nav-drawer__link[aria-current="page"] { color: var(--color-primary); }
.nav-drawer__heading { margin-top: var(--space-6); color: var(--color-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

/* Live-score ticker */
.ticker { background: var(--color-surface); border-bottom: 1px solid var(--color-border); font-size: 14px; }
.ticker__inner { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; overflow: hidden; }
.ticker__list { display: flex; margin: 0; padding: 0; overflow-x: auto; list-style: none; white-space: nowrap; scrollbar-width: none; }
.ticker__list::-webkit-scrollbar { display: none; }
/* The last visible item fades out instead of being cut (live streams spec §3.6 rule 7). */
.ticker__list { mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); }
.ticker__item { display: flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border-right: 1px solid var(--color-border-strong); }
.ticker__meta { color: var(--color-muted); }

/* Footer */
.site-footer { margin-top: var(--space-16); padding: var(--space-12) 0 var(--space-6); background: var(--color-footer); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-4); }
.site-footer__brand { grid-column: 1 / -1; }
.site-footer__desc { max-width: 320px; margin-top: var(--space-3); color: var(--color-muted); line-height: 1.55; }
.site-footer__social { display: flex; gap: var(--space-2); margin-top: var(--space-4); }
.site-footer__social a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--color-border-strong); border-radius: 50%; font-size: 12px; font-weight: 700; }
/* Links are 44px touch targets; their own height spaces them, so the column needs no gap. */
.site-footer__col { display: flex; flex-direction: column; }
.site-footer__col > a { display: inline-flex; align-self: flex-start; align-items: center; min-height: 44px; }
.site-footer__heading { margin-bottom: var(--space-1); color: var(--color-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.site-footer__apps { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-2); }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-10); padding-top: var(--space-4); border-top: 1px solid var(--color-border-strong); color: var(--color-muted); font-size: 13px; }

/* Mobile tab bar */
.tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--color-surface); border-top: 1px solid var(--color-border-strong); }
.tabbar__link { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-muted); font-size: 11px; font-weight: 600; }
.tabbar__link[aria-current="page"] { color: var(--color-primary); box-shadow: inset 0 3px 0 var(--color-primary); }

@media (min-width: 1024px) {
    .nav-drawer, .site-search__mobile, .tabbar { display: none; }
    .site-nav { display: block; }
    .site-search { display: flex; }
    .site-footer__grid { grid-template-columns: minmax(0, 1.7fr) repeat(4, minmax(0, 1fr)) minmax(0, 1.1fr); gap: var(--space-8); }
    .site-footer__brand { grid-column: auto; }
}

@media (min-width: 1280px) {
    .site-tagline { display: block; }
}
/* Score */
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; padding: 4px var(--space-2); border-radius: var(--radius-sm); background: var(--color-surface-2); font: 700 22px var(--font-head); white-space: nowrap; }
.score--live { color: var(--color-primary); }
.crest--img { object-fit: contain; background: transparent; border-radius: 0; }
/* Wide tables */
.table-wrap { overflow-x: auto; }
.table--full { min-width: 760px; }
.table--full :is(th, td):not(:first-child) { padding-left: var(--space-4); }
.table--full th:first-child, .table--full td:first-child { position: sticky; left: 0; z-index: 1; min-width: 190px; background: var(--color-bg); }
.form-row { display: inline-flex; gap: 3px; }
.form { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 4px; font-size: 11px; font-weight: 700; text-decoration: none; }
.form--m { background: var(--color-primary); color: var(--color-on-primary); }
.form--s { background: var(--color-border-strong); }
.form--k { background: var(--color-accent); color: var(--color-on-accent); }
.table-note { margin-top: var(--space-3); }
.table-note--top { margin: 0 0 var(--space-3); }
.section-foot { display: flex; justify-content: center; margin-top: var(--space-5); }
/* Pagination */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3); margin-top: var(--space-6); }
/* Mouse users can't swipe: thin visible scrollbars on horizontal scrollers (M2a follow-up). */
@media (hover: hover) and (pointer: fine) {
    /* :root outranks the "scrollbar hidden" rules in later files (sections.css .carousel__track). */
    :root :is(.pill-row, .carousel__track, .ticker__list, .day-strip__days, .table-wrap, .hub-tabs__list) { scrollbar-width: thin; scrollbar-color: var(--color-border-strong) transparent; }
    :root :is(.pill-row, .carousel__track, .ticker__list, .day-strip__days, .table-wrap, .hub-tabs__list)::-webkit-scrollbar { display: block; height: 6px; }
    :root :is(.pill-row, .carousel__track, .ticker__list, .day-strip__days, .table-wrap, .hub-tabs__list)::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 3px; }
}

/* Live streams: host avatars and the "Pilih siaran" buttons (hero and watch pages; they wrap, so the active one shows). */
.avatar { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.servers { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.servers__label { color: var(--color-muted); font-size: 13px; }
.servers__list { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.server { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; padding: 0 var(--space-4); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); font-size: 14px; font-weight: 600; }
.server small { color: var(--color-muted); font-weight: 500; }
.server--active { border-color: var(--color-primary); color: var(--color-primary); }
/* Homepage section styles, one block per section type (Tasks 13–17). */

/* Player: the homepage hero, the watch and stream pages (the hero itself is in home.css) */
.player { position: relative; margin-inline: calc(var(--gutter) * -1); aspect-ratio: 16 / 9; overflow: hidden; background: #05070B; }
.player__poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.player__badges { position: absolute; left: var(--space-3); top: var(--space-3); display: flex; gap: var(--space-2); }
.player__play { position: absolute; left: 50%; top: 50%; display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%; background: var(--color-primary); color: var(--color-on-primary); }
.player__message { position: absolute; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: rgb(0 0 0 / 0.75); font-weight: 600; text-align: center; }
.player__wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-4); background: rgb(0 0 0 / 0.45); text-align: center; }
.player__wait strong + span { color: var(--color-text-soft); font-size: 13px; }
.player__spinner { width: 40px; height: 40px; border: 4px solid rgb(255 255 255 / 0.25); border-top-color: var(--color-primary); border-radius: 50%; animation: player-spin 1s linear infinite; }
@keyframes player-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .player__spinner { animation: none; } }
.player__host { position: absolute; left: var(--space-3); bottom: var(--space-3); }
.player__empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: var(--space-6); color: var(--color-muted); text-align: center; }
.live-card { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3); }
.live-card:hover { border-color: var(--color-primary); color: inherit; }
.live-card .media { width: 92px; flex-shrink: 0; border-radius: var(--radius-sm); }
.live-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.live-card__comp { color: var(--color-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.live-card__match { font-weight: 700; font-size: 15px; }
/* Stale-data note: the homepage live list and the watch pages' side list. */
.live-list__stale { color: var(--color-muted); font-size: 12px; }
[aria-busy="true"] { opacity: 0.6; transition: opacity 0.2s; }

@media (min-width: 640px) {
    .player { margin-inline: 0; border-radius: var(--radius-lg); }
}

@media (min-width: 1024px) {
    .player__play { width: 96px; height: 96px; margin: -48px 0 0 -48px; }
}

/* Schedule */
.schedule__pills { margin-bottom: var(--space-6); }
.schedule__head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-4); margin-bottom: var(--space-4); }
.schedule__date { margin-top: var(--space-1); color: var(--color-muted); font-size: 14px; }
.day-nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.day-nav__form { display: flex; gap: var(--space-2); }
.day-nav__form input { min-height: 44px; padding: 0 var(--space-3); background: transparent; border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); }
.match-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.match-card { display: flex; flex-direction: column; gap: var(--space-3); height: 100%; padding: var(--space-4); }
.match-card__top { display: flex; justify-content: space-between; gap: var(--space-2); font-size: 13px; }
.match-card__comp { color: var(--color-muted); font-weight: 600; }
.match-card__status { font-weight: 700; }
.match-card__team { display: flex; align-items: center; gap: var(--space-3); font-weight: 600; }
.match-card__name { flex: 1; }
.match-card__teams { display: grid; gap: var(--space-3); }
.match-card__score { font-weight: 700; }
.match-card__action { margin-top: auto; }
.schedule__more { display: flex; justify-content: center; margin-top: var(--space-5); }

@media (min-width: 1024px) {
    .day-nav { margin-left: auto; }
    .match-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Berita */
.news { display: grid; gap: var(--space-6); }
.news-feature { display: flex; flex-direction: column; gap: var(--space-2); }
.news-feature:hover .news-feature__title { color: var(--color-primary); }
.news-feature__title { font: 700 26px/1.12 var(--font-head); text-transform: uppercase; }
.news-feature__excerpt { color: var(--color-muted); font-size: 15px; line-height: 1.5; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.news-item .media { width: 120px; flex-shrink: 0; border-radius: var(--radius-sm); }
.news-item__body { display: flex; flex-direction: column; gap: var(--space-1); }
.news-item__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

@media (min-width: 1024px) {
    .news { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-7); }
    .news-feature__title { font-size: 28px; }
}

/* Klasemen & statistik panels */
.league-switch, .panel .section-head > .meta { margin-left: auto; }
.league-switch > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 var(--space-3); border: 1px solid var(--color-border-strong); border-radius: var(--radius-pill); font-weight: 600; font-size: 13px; }
.stat-player { display: inline-flex; flex-direction: column; line-height: 1.25; }
.stat-player__name { font-weight: 600; }
.panel__more { display: flex; align-items: center; justify-content: center; min-height: 44px; }

/* Highlight carousel */
.carousel__nav { display: flex; gap: var(--space-2); }
.carousel__track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 80%); gap: var(--space-4); margin: 0; padding: 0 0 var(--space-2); overflow-x: auto; list-style: none; scroll-snap-type: x mandatory; scrollbar-width: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__item { scroll-snap-align: start; }
.video-card { display: flex; flex-direction: column; gap: 6px; }
.video-card .media > .icon { color: #FFFFFF; }
.video-card__title { font-weight: 700; font-size: 15px; line-height: 1.3; }

/* Jelajahi Liga */
.league-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.league-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; }
.league-card:hover { border-color: var(--color-primary); color: inherit; }
.league-card__logo { display: flex; align-items: center; justify-content: center; height: 96px; background: var(--color-surface-2); }
.league-card__logo span { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border: 2px solid var(--color-border-strong); border-radius: 50%; background: var(--color-bg); font: 700 17px var(--font-head); }
.league-card__body { display: flex; flex-direction: column; gap: 2px; padding: var(--space-3); }
.league-card__name { font-weight: 700; }

/* Teks (SEO copy) */
.teks__title { font-size: 26px; line-height: 1.15; }
.prose { margin-top: var(--space-3); color: var(--color-text-soft); font-size: 15px; line-height: 1.65; }
.prose > * + * { margin-top: var(--space-3); }
.prose h2, .prose h3 { margin-top: var(--space-5); color: var(--color-text); font-family: var(--font-body); font-size: 17px; letter-spacing: 0; text-transform: none; }
.prose a { color: var(--color-primary); text-decoration: underline; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose blockquote { margin: 0; padding-left: var(--space-4); border-left: 3px solid var(--color-primary); }

/* FAQ */
.faq__title { margin-bottom: var(--space-4); }

/* Row container (M2 spec §4.3) */
.row { display: grid; gap: var(--space-12); margin-top: var(--space-12); }
.row__slot > .section { margin-top: 0; }

@media (min-width: 640px) {
    .carousel__track { grid-auto-columns: calc((100% - var(--space-4) * 2) / 3); }
}

@media (min-width: 1024px) {
    .carousel__track { grid-auto-columns: calc((100% - var(--space-4) * 4) / 5); }
    .league-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .row { margin-top: var(--space-14); gap: var(--space-8); }
    .row--wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
    .row--half { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-14); }
    .row--single { grid-template-columns: minmax(0, 1fr); }
}
.league-card__logo img { width: 56px; height: 56px; object-fit: contain; }
/* Schedule: grouped (league hub) and round */
.dot-live { width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--color-accent); }
.fixtures__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-2); margin: var(--space-6) 0 var(--space-4); }
.fixtures__title { font-size: 24px; }
.fixture-group + .fixture-group { margin-top: var(--space-4); }
.fixture-group__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-4); border-bottom: 1px solid var(--color-border); font-weight: 700; }
.fixture-group__more { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; color: var(--color-primary); font-size: 13px; }
.fixture-list, .round-list { margin: 0; padding: 0; list-style: none; }
.fixture { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-top: 1px solid var(--color-border); }
.fixture:first-child { border-top: 0; }
.fixture__when { font-size: 13px; font-weight: 700; }
.fixture__teams, .round-list__item { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: var(--space-3); font-weight: 700; }
.fixture__team { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.fixture__team--home { justify-content: flex-end; text-align: right; }
.fixture__name { overflow-wrap: anywhere; }
.fixture__title { grid-column: 1 / -1; }
.fixture__action .btn { width: 100%; }
.fixtures__more { display: flex; justify-content: center; margin-top: var(--space-5); }
.round-list__item { padding: var(--space-3) 0; border-top: 1px solid var(--color-border); font-size: 14px; }
.round-list__when { display: flex; flex-direction: column; align-items: center; }
@media (min-width: 1024px) {
    .fixture { grid-template-columns: 150px minmax(0, 1fr) 190px; align-items: center; }
}
/* Sidebar headlines */
.headline-list { margin: 0; padding: 0; list-style: none; }
.headline { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: var(--space-3) 0; border-top: 1px solid var(--color-border); }
.headline__title { font-weight: 700; line-height: 1.3; }
/* Statistik: leaders, table, list */
.leader-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
.leader { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4); }
.leader__player { display: flex; align-items: center; gap: var(--space-3); }
.leader__value { font: 700 36px/1 var(--font-head); }
.avatar { display: inline-block; flex-shrink: 0; width: 32px; height: 32px; margin-right: var(--space-2); border-radius: 50%; background: var(--color-border-strong); object-fit: cover; }
.avatar--lg { width: 48px; height: 48px; }
.stat-list__rows { margin: 0; padding: 0; list-style: none; }
.stat-list__row { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) 0; border-top: 1px solid var(--color-border); }
.stat-list__value { margin-left: auto; font: 700 20px var(--font-head); }
/* Highlight: featured player, grid, ranked */
.featured-video__grid { display: grid; gap: var(--space-6); }
.video-frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius-lg); background: #05070B; }
.video-frame iframe, .video-frame img { width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-frame img { opacity: 0.55; }
.video-frame__note { position: absolute; inset: auto var(--space-3) var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: rgb(0 0 0 / 0.75); font-weight: 600; text-align: center; }
.featured-video__kicker { margin-top: var(--space-4); }
.featured-video__title { margin-top: var(--space-2); font: 700 26px/1.1 var(--font-head); text-transform: uppercase; }
.featured-video__bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); }
.featured-video__bar .meta { margin-right: auto; }
.featured-video__desc { margin-top: var(--space-3); color: var(--color-text-soft); }
.featured-video__next { margin-bottom: var(--space-3); font-size: 20px; }
.next-list, .video-grid__list, .ranked-grid { margin: 0; padding: 0; list-style: none; }
.next-item { display: flex; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--color-border); }
.next-item .media { width: 140px; flex-shrink: 0; border-radius: var(--radius-sm); }
.next-item__title { display: block; font-weight: 700; font-size: 14px; line-height: 1.3; }
.video-grid__list, .ranked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-5) var(--space-4); }
.ranked__no { position: absolute; left: 10px; top: 6px; color: var(--color-primary); font: 700 32px var(--font-head); }
@media (min-width: 1024px) {
    .featured-video__grid { grid-template-columns: minmax(0, 1fr) 360px; }
    .video-grid__list, .ranked-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .featured-video__title { font-size: 32px; }
}

/* Pinned news (M3b2 spec §5.5) */
.pin-label { display: inline-block; width: fit-content; margin-right: var(--space-2); padding: 1px var(--space-2); border-radius: var(--radius-sm); background: var(--color-primary); color: var(--color-on-primary); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* Page-level styles: error page and the M2b sports pages. */
.error-page { max-width: 560px; margin-block: var(--space-16); text-align: center; }
.error-page__code { color: var(--color-primary); font: 700 88px/1 var(--font-head); }
.error-page h1 { margin: var(--space-3) 0; font-size: 32px; }
.error-page p:not(.error-page__code) { margin-bottom: var(--space-6); color: var(--color-muted); }

/* Sports pages (M2b): header with filters, main + side column. */
.page-head { padding-bottom: var(--space-6); border-bottom: 1px solid var(--color-border); }
.page-head__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3); }
.page-head__title { font-size: 34px; }
.page-head__sub { margin-top: var(--space-2); color: var(--color-muted); font-size: 14px; }
.page-head__hub { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-primary); font-weight: 700; font-size: 14px; }
.page-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); margin-top: var(--space-5); }
.page-filters__field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 170px; }
.page-filters__label { color: var(--color-muted); font-size: 12px; font-weight: 600; }
.page-filters select { min-height: 44px; padding: 0 var(--space-3); background: var(--color-surface); border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); }
.page-body > :first-child, .page-grid { margin-top: var(--space-8); }
.page-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-8); }
.page-grid__main > .section, .page-grid__aside > .section { margin-top: 0; }
.page-grid__aside { display: grid; gap: var(--space-6); align-content: start; }
.liga-group__title { margin-bottom: var(--space-4); font-size: 22px; }
@media (min-width: 1024px) {
    .page-head__title { font-size: 48px; }
    .page-grid { grid-template-columns: minmax(0, 1fr) 340px; }
}
.panel-grid { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
.panel-grid > .section { margin-top: 0; }
@media (min-width: 1024px) {
    .panel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* League hub (M2b spec §3.5). */
.liga-header { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); }
.liga-header__logo { display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--radius-lg); background: var(--color-surface); font-family: var(--font-head); font-size: 24px; }
.liga-header__logo img { width: 72px; height: 72px; object-fit: contain; }
.liga-header__text { flex: 1 1 260px; }
.liga-header__kicker { color: var(--color-primary); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.liga-header__title { font-size: 34px; }
.liga-header__tagline { color: var(--color-text-soft); }
.liga-header__actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--space-3); }
.liga-header__actions .page-filters { margin-top: 0; }
.hub-tabs { position: sticky; top: var(--header-h); z-index: 20; margin-top: var(--space-6); background: var(--color-bg); border-bottom: 1px solid var(--color-border); }
.hub-tabs__list { display: flex; gap: var(--space-5); overflow-x: auto; margin: 0; padding: 0; list-style: none; }
.hub-tabs__link { display: flex; align-items: center; min-height: 44px; border-bottom: 3px solid transparent; color: var(--color-text-soft); font-weight: 600; white-space: nowrap; }
.hub-tabs__link[aria-current] { border-color: var(--color-primary); color: var(--color-text); }
.liga-hub-page [id] { scroll-margin-top: calc(var(--header-h) + 60px); }
.sejarah { display: grid; gap: var(--space-6); }
.sejarah__text > * + * { margin-top: var(--space-3); }
.sejarah__more summary { display: flex; align-items: center; min-height: 44px; color: var(--color-primary); font-weight: 700; cursor: pointer; }
.fakta { align-self: start; padding: var(--space-5); background: var(--color-surface); border-radius: var(--radius-lg); }
.fakta__title { margin-bottom: var(--space-3); font-size: 18px; }
.fakta dl { display: grid; grid-template-columns: auto 1fr; gap: var(--space-2) var(--space-4); margin: 0; }
.fakta dt { color: var(--color-muted); }
.fakta dd { margin: 0; font-weight: 600; }
@media (min-width: 1024px) {
    .liga-header__title { font-size: 48px; }
    .sejarah { grid-template-columns: minmax(0, 1fr) 320px; }
}
/* Homepage only (loaded by the homepage through the layout's styles): the hero, its match bar, the live list and the next-match card. */
.hero { padding-top: var(--space-6); }
.hero__title { max-width: 1100px; font-size: 28px; }
.hero__intro { max-width: 900px; margin-top: var(--space-3); color: var(--color-muted); font-size: 15px; line-height: 1.55; }
.hero__grid { display: grid; gap: var(--space-8); margin-top: var(--space-6); }
.match-bar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); margin-top: var(--space-4); }
.match-bar__info { flex: 1 1 320px; }
.match-bar__teams { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); margin-top: var(--space-2); font-weight: 700; font-size: 17px; }
.match-bar__score { padding: 0 var(--space-1); font: 700 30px var(--font-head); white-space: nowrap; }
/* Narrow screens: crest | home | score | away | crest stays one row, long names wrap in place. */
.match-bar__teams--versus { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: var(--space-2); font-size: 15px; line-height: 1.25; }
.match-bar__teams--versus .match-bar__score { font-size: 24px; }
.match-bar__name { overflow-wrap: anywhere; }
.match-bar__name--away { text-align: right; }
.match-bar__room { margin-top: var(--space-2); font: 700 22px var(--font-head); }
.match-bar__host { color: var(--color-muted); font-size: 14px; }
.match-bar__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.live-list { display: flex; flex-direction: column; gap: var(--space-2); }
.live-list__head { display: flex; align-items: center; gap: var(--space-2); }
.live-list__title { font-size: 22px; }
/* Every card in one column; once "Tampilkan semua" is open the whole list is a box about five cards tall with its own scroll bar. */
.live-list__items { display: flex; flex-direction: column; gap: var(--space-2); }
.live-list__items:has(> .live-list__more[open]) { max-height: 39rem; overflow-y: auto; overscroll-behavior: contain; padding-right: var(--space-1); }
.live-list__more[open] summary { display: none; }
.live-list__more .live-card { margin-top: var(--space-2); }
.next-card { padding: var(--space-4); }
.next-card__when { margin-top: 2px; font-weight: 700; font-size: 14px; }
.next-card__team { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-2); font-size: 14px; }
@media (min-width: 640px) {
    .match-bar__teams--versus { display: flex; flex-wrap: nowrap; gap: var(--space-3); font-size: 17px; line-height: inherit; }
    .match-bar__teams--versus .match-bar__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .match-bar__teams--versus .match-bar__score { font-size: 30px; }
    .match-bar__name--away { text-align: left; }
}

@media (min-width: 1024px) {
    .hero__title { font-size: 40px; }
    .hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-6); }
}
