/* FPL Malaya. Fon disimpan sendiri (latin) supaya CSP kekal ketat dan tiada permintaan ke pihak ketiga. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 200 900; font-display: swap; src: url(/fonts/source-serif-4.woff2) format("woff2"); }
/* FPL Malaya: draf reka bentuk "Padang Senja". Statik, belum disambung ke backend. */
:root {
  --purple: #37003c;
  --deep: #240028;
  --green: #00ff85;
  --cyan: #04f5ff;
  --magenta: #e90052;
  --amber: #f5a623;
  --white: #ffffff;
  --mist: #f5f1f7;
  --line: #dcd2e2;
  --ink: #2a0830;
  --muted: #62546a;
  --leaf: #0b8a4a;
  --alert: #c62828;
  --display: "Archivo", "Arial Narrow", system-ui, sans-serif;
  --text: "Source Serif 4", Georgia, serif;
  --gutter: 16px;
  --wrap: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.65 var(--text); }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Semua teks UI dan data guna Archivo; Source Serif hanya untuk teks bacaan */
.ui, .strip, .site-head, .nav, .sec-h, .meta, .tab, .btn, table, .fx, .ad, .foot, .tag, .crumbs, .toc, .gloss-q, input, button { font-family: var(--display); }

/* Jalur atas */
.strip { background: var(--purple); color: #eadcf0; font-size: 14px; line-height: 1.3; }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 8px; padding-bottom: 8px; }
.strip b { color: var(--green); font-weight: 700; font-variant-numeric: tabular-nums; }
.strip a { text-decoration: none; border-bottom: 1px solid #ffffff44; }

/* Header: baris nav di desktop, butang Menu di bawah 1000px */
.site-head { border-bottom: 2px solid var(--purple); background: var(--white); position: sticky; top: 0; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 12px 28px; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand svg, .brand img { display: block; height: 50px; width: auto; }
/* Bola berpusing bila logo di-hover atau difokus. Pusatnya ialah asal koordinat SVG (0 0). */
.spin { transform-origin: 0 0; }
@keyframes fpl-roll { to { transform: rotate(360deg); } }
.brand:hover .spin, .brand:focus-visible .spin { animation: fpl-roll 1.3s linear infinite; }
@media (prefers-reduced-motion: reduce) { .brand:hover .spin, .brand:focus-visible .spin { animation: none; } }
.menu-btn { display: none; margin-left: auto; align-items: center; gap: 8px; background: var(--purple); color: #fff; border: 0; border-radius: 4px; padding: 10px 14px; font: 700 15px/1 var(--display); cursor: pointer; }
.menu-btn .bars { width: 18px; height: 12px; background: linear-gradient(#fff 0 0) 0 0 / 100% 2px no-repeat, linear-gradient(#fff 0 0) 0 50% / 100% 2px no-repeat, linear-gradient(#fff 0 0) 0 100% / 100% 2px no-repeat; }
.menu-btn[aria-expanded="true"] { background: var(--magenta); }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; font-size: 15px; font-weight: 600; }
.nav a { padding: 8px 14px; text-decoration: none; white-space: nowrap; border-radius: 4px; color: var(--purple); }
.nav a:hover { background: var(--mist); }
.nav a[aria-current="page"] { background: var(--green); font-weight: 700; }
.search { margin-left: auto; flex: none; }
.search input { width: 170px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 14px; }
@media (max-width: 1099px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; flex: 0 0 100%; flex-direction: column; align-items: stretch; gap: 0; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; border-top: 1px solid var(--line); max-height: calc(100vh - 80px); overflow-y: auto; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; font-size: 17px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .search { margin: 12px 0 0; }
  .search input { width: 100%; padding: 12px; font-size: 16px; }
}

/* Tajuk bahagian: garisan halus ala garisan padang */
.sec { padding: 36px 0 8px; }
.sec-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 18px; }
.sec-h h2 { margin: 0; font: 800 28px/1.1 var(--display); font-stretch: 78%; letter-spacing: -0.005em; }
.sec-h::after { content: ""; flex: 1; order: 2; height: 1px; background: var(--purple); align-self: center; }
.sec-h a { order: 3; font-size: 14px; font-weight: 600; white-space: nowrap; }

/* Hero senja di atas padang */
.hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 70% 90% at 92% 0%, rgba(233, 0, 82, 0.6), transparent 60%), radial-gradient(ellipse 55% 70% at 0% 100%, rgba(0, 255, 133, 0.2), transparent 60%), linear-gradient(180deg, #4d0e5c 0%, var(--purple) 55%, var(--deep) 100%); }
.hero .lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.4; }
.hero .wrap { display: grid; gap: 28px; padding-top: 72px; padding-bottom: 36px; }
.hero .kicker { font: 700 15px/1 var(--display); color: var(--purple); background: var(--green); display: inline-block; padding: 7px 10px; border-radius: 3px; }
.hero h1 { margin: 12px 0 10px; font: 800 clamp(2.5rem, 7.2vw, 5rem)/0.94 var(--display); font-stretch: 72%; letter-spacing: -0.01em; max-width: 14ch; text-wrap: balance; }
.hero .dek { font-size: 19px; line-height: 1.5; max-width: 52ch; margin: 0 0 18px; color: #f1e6f5; }
.hero .meta { font-size: 14px; color: #d9c3e0; }
.btn { display: inline-block; background: var(--green); color: var(--purple); text-decoration: none; font-weight: 700; font-size: 16px; padding: 12px 20px; border-radius: 4px; border: 0; cursor: pointer; }
.btn:hover { background: #fff; }
.btn.dark { background: var(--purple); color: #fff; }
.btn.dark:hover { background: var(--magenta); }
.lazy-box { background: var(--deep); border-top: 4px solid var(--green); padding: 18px 18px 8px; font-family: var(--display); }
.lazy-box h2 { margin: 0 0 4px; font: 800 20px/1.2 var(--display); font-stretch: 80%; }
.lazy-box .sub { margin: 0 0 8px; font-size: 14px; color: #c9b4d1; }
.lazy-box dl { margin: 0; }
.lazy-box dt { font-weight: 700; font-size: 14px; color: var(--green); margin-top: 12px; }
.lazy-box dd { margin: 2px 0 0; font-size: 16px; line-height: 1.4; padding-bottom: 12px; border-bottom: 1px solid #ffffff26; }
.lazy-box dd:last-child { border-bottom: 0; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.7fr 1fr; align-items: end; padding-top: 100px; padding-bottom: 44px; gap: 48px; } }

/* Iklan: saiz tetap supaya halaman tak melompat */
.ad { margin: 28px auto; background: var(--mist); border: 1px dashed var(--line); color: var(--muted); display: grid; place-items: center; font-size: 13px; text-align: center; }
.ad small { display: block; font-size: 12px; }
.ad.lead { width: min(100%, 728px); min-height: 90px; }
.ad.rect { width: 300px; min-height: 250px; }
.ad.inart { width: min(100%, 336px); min-height: 280px; }
@media (max-width: 600px) { .ad.lead { min-height: 100px; width: 320px; } }

/* Berita */
.news { display: grid; gap: 28px; }
@media (min-width: 900px) { .news { grid-template-columns: 1.35fr 1fr 0.8fr; } }
.pitchart { aspect-ratio: 16/9; background: radial-gradient(ellipse 80% 90% at 90% 0%, rgba(233, 0, 82, 0.65), transparent 65%), linear-gradient(180deg, #5a1468, var(--purple) 60%, var(--deep)); border-radius: 4px; position: relative; overflow: hidden; margin-bottom: 12px; }
.pitchart svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; }
.tag { font-size: 13px; font-weight: 700; color: var(--magenta); }
.tag::before { content: ""; display: inline-block; width: 9px; height: 9px; border: 2px solid currentColor; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.news h3 { margin: 4px 0 6px; font: 800 24px/1.12 var(--display); font-stretch: 85%; }
.news .lead h3 { font-size: 32px; font-stretch: 78%; }
.news p { margin: 0 0 6px; font-size: 16px; line-height: 1.55; color: #3d2c45; }
.news .meta, .meta { font-size: 13px; color: var(--muted); }
.stack > article { padding: 0 0 16px; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.stack > article:last-child { border-bottom: 0; margin: 0; }
.stack h3 { font-size: 20px; }
.outlinks { background: var(--mist); padding: 16px; border-radius: 4px; font-family: var(--display); align-self: start; }
.outlinks h3 { font-size: 18px; margin: 0 0 4px; }
.outlinks ul { list-style: none; margin: 10px 0 0; padding: 0; }
.outlinks li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; }
.outlinks li span { display: block; color: var(--muted); font-size: 12px; }

/* Jadual perlawanan (waktu Malaysia) */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tab { padding: 8px 14px; border: 1px solid var(--purple); background: #fff; font-weight: 700; font-size: 14px; cursor: pointer; border-radius: 999px; }
.tab[aria-selected="true"] { background: var(--purple); color: #fff; }
.fx { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 16px; }
.fx td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.fx .t { width: 92px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx .t small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.fx .h { text-align: right; font-weight: 700; }
.fx .a { text-align: left; font-weight: 700; }
.fx .v { width: 36px; text-align: center; color: var(--muted); font-size: 13px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; border: 1px solid #2a083066; margin: 0 7px; vertical-align: -1px; }
.fdr { font-size: 12px; font-weight: 700; padding: 2px 7px; border-radius: 3px; }
.fdr.e { background: #c9ead0; } .fdr.m { background: #fde9b0; } .fdr.h { background: #f6c7c0; }
.note { font-size: 13px; color: var(--muted); font-family: var(--display); margin-top: 8px; }
@media (max-width: 600px) { .fx .fdr, .fx .hide-s { display: none; } .fx .t { width: 74px; } }

/* Dua lajur */
.cols { display: grid; gap: 32px; }
@media (min-width: 900px) { .cols { grid-template-columns: 1.15fr 1fr; } }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 6px; border-bottom: 2px solid var(--purple); }
table.data td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
table.data .r { text-align: right; }
table.data td.pos { font-weight: 800; width: 28px; }
table.data tr.zone-ucl td.pos { box-shadow: inset 4px 0 0 var(--leaf); }
table.data tr.zone-rel td.pos { box-shadow: inset 4px 0 0 var(--alert); }
.form { display: inline-flex; gap: 3px; }
.form i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.form i.w { background: var(--leaf); } .form i.d { background: var(--amber); } .form i.l { background: var(--alert); }
.pill { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: #fde9b0; white-space: nowrap; }
.pill.out { background: #f6c7c0; }

/* Belajar FPL */
.guides { display: grid; gap: 0; border-top: 1px solid var(--ink); }
@media (min-width: 800px) { .guides { grid-template-columns: repeat(3, 1fr); } .guides a + a { border-left: 1px solid var(--line); } }
.guides a { text-decoration: none; padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); display: block; }
@media (min-width: 800px) { .guides a { padding: 22px 22px 22px 22px; } .guides a:first-child { padding-left: 0; } }
.guides h3 { margin: 4px 0 6px; font: 800 22px/1.15 var(--display); font-stretch: 85%; }
.guides p { margin: 0; font-size: 16px; color: #3d2c45; line-height: 1.5; }
.guides a:hover h3 { color: var(--magenta); }

/* Halaman artikel */
.crumbs { font-size: 14px; color: var(--muted); padding: 18px 0 0; }
.crumbs a { text-decoration: none; border-bottom: 1px solid var(--line); }
.article-head { padding: 14px 0 20px; }
.article-head h1 { margin: 6px 0 12px; font: 800 clamp(2.2rem, 5.6vw, 3.8rem)/1 var(--display); font-stretch: 74%; letter-spacing: -0.01em; max-width: 20ch; text-wrap: balance; }
.article-head .dek { font-size: 20px; line-height: 1.5; max-width: 60ch; margin: 0 0 14px; color: #3d2c45; }
.byline { display: flex; gap: 12px; align-items: center; font-family: var(--display); font-size: 14px; color: var(--muted); }
.byline img { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--ink); }
.byline b { color: var(--ink); }
.layout { display: grid; gap: 36px; padding-bottom: 40px; }
@media (min-width: 980px) { .layout { grid-template-columns: minmax(0, 1fr) 300px; } }
.prose { max-width: 66ch; }
.prose h2 { font: 800 30px/1.1 var(--display); font-stretch: 78%; margin: 40px 0 10px; scroll-margin-top: 90px; }
.prose p { margin: 0 0 1.1em; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: 0.4em; }
.prose .lazyline { font: 600 17px/1.5 var(--display); background: var(--mist); border-left: 4px solid var(--magenta); padding: 10px 14px; margin: 0 0 16px; border-radius: 0 4px 4px 0; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: center; border: 2px solid var(--ink); border-radius: 4px; padding: 14px 16px; margin: 0 0 18px; font-family: var(--display); }
.pick .name { font: 800 32px/1 var(--display); font-stretch: 76%; }
.pick .why { font-size: 15px; color: var(--muted); }
.toc { background: var(--mist); padding: 16px; border-radius: 4px; font-size: 15px; }
.toc h2 { font: 800 16px/1.2 var(--display); margin: 0 0 8px; }
.toc ol { margin: 0; padding-left: 1.2em; } .toc li { padding: 3px 0; } .toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.aside { display: grid; gap: 20px; align-content: start; }
@media (min-width: 980px) { .aside-sticky { position: sticky; top: 84px; } }
.author { border-top: 1px solid var(--ink); padding-top: 22px; margin-top: 36px; display: flex; gap: 14px; font-family: var(--display); max-width: 66ch; }
.author img { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--ink); flex: none; }
.author p { margin: 2px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.lineup-card { background: var(--purple); color: #fff; padding: 14px; border-radius: 4px; font-family: var(--display); font-size: 14px; }
svg.lineup { width: 100%; height: auto; max-width: 640px; border-radius: 4px; }
.lineup-card .shell { aspect-ratio: 4/5; border: 1px solid #ffffff55; border-radius: 3px; display: grid; place-items: center; text-align: center; padding: 20px; color: #c9b4d1; }

/* Panduan dan glosari */
.gloss-search, .input-lg { width: 100%; max-width: 480px; padding: 12px 14px; font-size: 16px; border: 2px solid var(--purple); border-radius: 4px; }
.gloss { margin: 20px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.gloss li { padding: 16px 0; border-bottom: 1px solid var(--line); display: grid; gap: 2px 24px; }
@media (min-width: 700px) { .gloss li { grid-template-columns: 220px 1fr; } }
.gloss-q { font-weight: 800; font-size: 19px; font-stretch: 85%; }
.gloss-q small { display: block; font-weight: 500; color: var(--muted); font-size: 13px; font-stretch: 100%; }
.gloss p { margin: 0; font-size: 16px; }
.path { counter-reset: step; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.path li { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 0 12px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.path li::before { content: counter(step); font: 800 36px/1 var(--display); font-stretch: 70%; color: var(--magenta); }
.path h3 { margin: 0 0 4px; font: 800 21px/1.2 var(--display); font-stretch: 85%; }
.path p { margin: 0; font-size: 16px; }

/* Jadual page */
.week { display: flex; gap: 8px; align-items: center; margin: 0 0 20px; font-family: var(--display); font-weight: 700; flex-wrap: wrap; }
.week button { border: 1px solid var(--ink); background: #fff; padding: 8px 14px; border-radius: 4px; font-weight: 700; cursor: pointer; }
.day-h { font: 800 20px/1.2 var(--display); font-stretch: 82%; margin: 28px 0 4px; padding-top: 6px; }

/* Kaki */
.foot { background: var(--purple); color: #cdb9d4; margin-top: 56px; font-size: 14px; line-height: 1.6; }
.foot .wrap { display: grid; gap: 24px; padding-top: 36px; padding-bottom: 36px; }
@media (min-width: 800px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot h2 { color: #fff; font: 700 15px/1.3 var(--display); margin: 0 0 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; } .foot li { padding: 3px 0; }
.foot a { text-decoration: none; } .foot a:hover { color: #fff; text-decoration: underline; }
.foot .brand img { height: 49px; }
.page { padding-bottom: 8px; }
.draft-banner { background: var(--deep); color: #fff; font: 600 13px/1.4 var(--display); text-align: center; padding: 7px var(--gutter); }
.draft-banner b { color: var(--green); }

@media (prefers-reduced-motion: no-preference) {
  .hero .lines .sweep { animation: sweep 2.4s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes sweep { from { stroke-dashoffset: 1400; } to { stroke-dashoffset: 0; } }
}
.hero .lines .sweep { stroke-dasharray: 1400; }

/* Waktu penting */
.keytimes { background: var(--mist); border-top: 4px solid var(--magenta); padding: 16px 18px; font-family: var(--display); align-self: start; }
.keytimes h3 { margin: 0 0 8px; font: 800 20px/1.2 var(--display); font-stretch: 85%; }
.keytimes dl { margin: 0; } .keytimes dt { font-size: 13px; color: var(--muted); margin-top: 12px; }
.keytimes dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.keytimes p { margin: 14px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

@media (max-width: 600px) { .fx .dot, table.data .dot { display: none; } }

/* Draf reka bentuk admin. Guna token dari styles.css. Lebih padat dan fokus pada tugas. */
body.adm { background: var(--mist); font-size: 16px; line-height: 1.5; }
.adm, .adm * { font-family: var(--display); }
.adm .prose, .adm .serif { font-family: var(--text); }

/* Bar atas */
.adm-top { background: var(--purple); color: #fff; }
.adm-top .wrap { display: flex; align-items: center; gap: 8px 24px; flex-wrap: wrap; padding-top: 10px; padding-bottom: 10px; }
.adm-top .brand img { height: 33px; width: auto; }
.adm-top .tag-admin { font-size: 12px; font-weight: 700; background: var(--green); color: var(--purple); padding: 3px 8px; border-radius: 3px; }
.adm-nav { display: flex; gap: 2px; flex: 1; }
.adm-nav a { color: #eadcf0; text-decoration: none; padding: 8px 14px; font-weight: 600; font-size: 15px; border-radius: 4px; }
.adm-nav a[aria-current="page"] { background: var(--green); color: var(--purple); font-weight: 700; }
.adm-nav a:hover { color: #fff; background: #ffffff1f; }
.adm-nav a[aria-current="page"]:hover { background: var(--green); color: var(--purple); }
.adm-user { font-size: 13px; color: #cdb9d4; display: flex; gap: 14px; align-items: center; }
.adm-user a { color: #fff; }
@media (max-width: 700px) { .adm-nav { order: 3; flex-basis: 100%; overflow-x: auto; } .adm-user span { display: none; } }

.adm-main { max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter) 60px; }
.adm-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 16px; }
.adm-title h1 { margin: 0; font: 800 32px/1.1 var(--display); font-stretch: 78%; color: var(--purple); }
.adm-title p { margin: 0; color: var(--muted); font-size: 15px; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 18px; }
.panel + .panel { margin-top: 16px; }
.panel > h2 { margin: 0 0 12px; font: 800 20px/1.2 var(--display); font-stretch: 85%; color: var(--purple); }
.panel-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 12px; }
.panel-h h2 { margin: 0; font: 800 20px/1.2 var(--display); font-stretch: 85%; color: var(--purple); }
.panel-h a { font-size: 14px; font-weight: 600; }

/* Kesihatan sistem */
.health { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 0 0 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
@media (min-width: 800px) { .health { grid-template-columns: repeat(4, 1fr); } }
.health > div { padding: 12px 16px; border-bottom: 1px solid var(--line); }
@media (min-width: 800px) { .health > div { border-bottom: 0; border-right: 1px solid var(--line); } .health > div:last-child { border-right: 0; } }
.health dt { font-size: 13px; color: var(--muted); }
.health dd { margin: 2px 0 0; font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.led { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--leaf); }
.led.warn { background: var(--amber); } .led.bad { background: var(--alert); }
.health small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }

/* Susun atur dashboard */
.adm-grid { display: grid; gap: 16px; align-items: start; }
@media (min-width: 980px) { .adm-grid { grid-template-columns: minmax(0, 1fr) 320px; } }

/* Langkah kerja: nombor sah kerana ini urutan sebenar */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.step { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 0 14px; padding: 0 0 22px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step::before { content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 800 15px/1 var(--display); background: var(--mist); color: var(--muted); border: 2px solid var(--line); z-index: 1; }
.step::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child::after { display: none; }
.step[data-state="done"]::before { background: var(--green); border-color: var(--green); color: var(--purple); }
.step[data-state="todo"]::before { background: #fff; border-color: var(--magenta); color: var(--magenta); }
.step-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.step-h h3 { margin: 0; font: 800 18px/1.25 var(--display); font-stretch: 90%; }
.step p { margin: 3px 0 0; font-size: 14px; color: var(--muted); }
.step .acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.step textarea { margin-top: 10px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.ok { background: #d3f5e3; color: #06532f; } .chip.todo { background: #fbd5df; color: #8c0035; }
.chip.warn { background: #fde9b0; color: #6b4700; } .chip.idle { background: var(--mist); color: var(--muted); border: 1px solid var(--line); }
.chip.bad { background: #fbd5df; color: #8c0035; }

.btn.sm { padding: 8px 14px; font-size: 14px; }
.btn.line { background: #fff; color: var(--purple); border: 2px solid var(--purple); padding: 6px 12px; }
.btn.line:hover { background: var(--purple); color: #fff; }
.btn.go { background: var(--green); color: var(--purple); }
.btn[disabled] { background: var(--mist); color: #9a8da1; cursor: not-allowed; border: 1px dashed var(--line); }

.mini-lineup { display: grid; grid-template-columns: 84px 1fr; gap: 14px; margin-top: 10px; align-items: center; }
.mini-lineup .ph { aspect-ratio: 4/5; background: var(--purple); border-radius: 4px; position: relative; overflow: hidden; }
.mini-lineup .ph svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.mini-lineup p { margin: 0; font-size: 14px; color: var(--ink); }

/* Borang */
.field { margin: 0 0 16px; }
.field label, .field .lbl { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 14px; margin: 0 0 5px; }
.field .count { font-weight: 500; color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.field input, .field textarea, .adm textarea { width: 100%; padding: 10px 12px; border: 1px solid #b9a9c2; border-radius: 4px; font: 400 16px/1.5 var(--display); background: #fff; color: var(--ink); }
.field textarea.serif { font-family: var(--text); }
.field input:focus, .field textarea:focus { border-color: var(--magenta); outline: 2px solid #e9005233; }
.field .hint { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.field.flag input, .field.flag textarea { border-color: var(--magenta); background: #fff7fa; }
.two { display: grid; gap: 0 16px; } @media (min-width: 700px) { .two { grid-template-columns: 1fr 1fr; } }
details.fs { background: #fff; border: 1px solid var(--line); border-radius: 6px; margin: 0 0 12px; }
details.fs > summary { cursor: pointer; list-style: none; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 800 18px/1.2 var(--display); font-stretch: 90%; color: var(--purple); }
details.fs > summary::-webkit-details-marker { display: none; }
details.fs > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--purple); border-bottom: 2px solid var(--purple); transform: rotate(45deg); margin-right: 4px; flex: none; transition: transform .15s; }
details.fs[open] > summary::after { transform: rotate(-135deg); }
details.fs > .body { padding: 2px 18px 8px; }

/* Papan sisi editor */
.side { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .side.sticky { position: sticky; top: 14px; } }
.warnbox { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--magenta); border-radius: 6px; padding: 14px 16px; }
.warnbox h2 { margin: 0 0 8px; font: 800 17px/1.2 var(--display); font-stretch: 90%; }
.warnbox ul { list-style: none; margin: 0; padding: 0; }
.warnbox li { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.45; }
.warnbox li:first-child { border-top: 0; }
.warnbox a { font-weight: 700; }
.warnbox.clear { border-left-color: var(--leaf); }
.pv { background: var(--deep); color: #fff; border-top: 4px solid var(--green); padding: 14px 16px; border-radius: 4px; }
.pv h2 { margin: 0 0 6px; font: 800 16px/1.2 var(--display); font-stretch: 85%; color: #fff; }
.pv dt { color: var(--green); font-weight: 700; font-size: 13px; margin-top: 10px; }
.pv dd { margin: 2px 0 0; font-size: 14px; line-height: 1.4; }
.facts summary { cursor: pointer; font-weight: 700; font-size: 14px; }
.facts pre { margin: 10px 0 0; max-height: 180px; overflow: auto; background: var(--mist); padding: 10px; border-radius: 4px; font: 12px/1.45 ui-monospace, Menlo, Consolas, monospace; }

/* Bar tindakan melekat di bawah */
.actionbar { position: sticky; bottom: 0; z-index: 15; background: #fff; border-top: 2px solid var(--purple); }
.actionbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-top: 12px; padding-bottom: 12px; max-width: var(--wrap); }
.actionbar .state { font-size: 14px; color: var(--muted); }
.actionbar .state b { color: var(--ink); }
.actionbar .btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Jadual artikel */
table.arts { width: 100%; border-collapse: collapse; font-size: 15px; }
table.arts th { text-align: left; font-size: 12px; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--purple); }
table.arts td { padding: 11px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.arts td.r, table.arts th.r { text-align: right; }
table.arts .sub { display: block; font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { table.arts .hide-s { display: none; } }

/* Dialog terbit */
dialog.dlg { border: 0; border-radius: 8px; padding: 0; width: min(520px, calc(100vw - 24px)); box-shadow: 0 20px 60px #240028aa; }
dialog.dlg::backdrop { background: #240028cc; }
.dlg form { padding: 22px; }
.dlg h2 { margin: 0 0 4px; font: 800 24px/1.15 var(--display); font-stretch: 80%; color: var(--purple); }
.dlg .sub { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.checks { list-style: none; margin: 0 0 14px; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.checks li:first-child { border-top: 0; }
.mark { width: 20px; height: 20px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 800; margin-top: 1px; }
.mark.ok { background: var(--green); color: var(--purple); } .mark.bad { background: var(--magenta); color: #fff; }
.ack { display: flex; gap: 10px; align-items: flex-start; background: #fff7e0; border: 1px solid #f0d58a; border-radius: 4px; padding: 10px 12px; font-size: 14px; margin: 0 0 16px; }
.ack input { margin-top: 3px; width: 18px; height: 18px; }
.dlg .btns { display: flex; justify-content: flex-end; gap: 8px; }
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--purple); color: #fff; padding: 12px 18px; border-radius: 6px; font-weight: 600; font-size: 15px; z-index: 40; box-shadow: 0 8px 30px #24002877; }
.toast[hidden] { display: none; }

/* Tambahan untuk laman sebenar */
.sub-h { margin: 0 0 8px; font: 800 20px/1.2 var(--display); font-stretch: 85%; color: var(--purple); }
.day-h.big { font-size: 28px; margin-top: 36px; }
.tips-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--purple); }
.tips-list li { border-bottom: 1px solid var(--line); }
.tips-list a { display: block; padding: 18px 0; text-decoration: none; }
.tips-list h3 { margin: 4px 0 4px; font: 800 24px/1.15 var(--display); font-stretch: 85%; color: var(--purple); }
.tips-list a:hover h3 { color: var(--magenta); }
.tips-list p { margin: 0 0 6px; font-size: 16px; color: #3d2c45; }
.prose a { color: var(--purple); }
.hero .lines { z-index: -1; }

/* Admin: tambahan */
.muted { color: var(--muted); } .small { font-size: 13px; }
.flash { border: 1px solid var(--line); border-left-width: 5px; border-radius: 6px; padding: 12px 16px; margin: 0 0 16px; background: #fff; font-family: var(--display); font-size: 15px; }
.flash.ok { border-left-color: var(--leaf); background: #effaf4; } .flash.bad { border-left-color: var(--alert); background: #fdf0f3; }
.flash.warn { border-left-color: var(--amber); background: #fff8e6; } .flash.info { border-left-color: var(--purple); background: #f6eefa; margin: 10px 0; }
.lineup-prev { max-width: 360px; margin: 10px 0; }
.euro { margin: 0 0 12px; } .euro ul { margin: 4px 0; padding-left: 1.2em; font-size: 15px; }
details.more { margin-top: 10px; font-size: 15px; } details.more > summary { cursor: pointer; font-weight: 700; }
details.more > :not(summary) { margin-top: 10px; }
.back { margin: 0 0 8px; font-size: 14px; }
.lbl { display: block; font-weight: 700; font-size: 14px; margin: 10px 0 5px; }
.adm .acts form, .acts form { display: inline; }

/* Fasa 2: skor, harga */
.fx .v.score { font: 800 15px/1 var(--display); color: var(--ink); width: 56px; background: var(--mist); border-radius: 4px; }
td.price { white-space: nowrap; font-variant-numeric: tabular-nums; }
td.price.up b { color: var(--leaf); } td.price.down b { color: var(--alert); }

/* Fasa 2: berita di homepage */
@media (min-width: 900px) { .news { grid-template-columns: 1.4fr 1fr; } }
.news.solo { grid-template-columns: minmax(0, 680px); }
.news h3 a { text-decoration: none; color: inherit; } .news h3 a:hover { color: var(--magenta); }
.news .stack h3 { margin: 4px 0 4px; }
.feed .kind { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.feed .kind.cedera { background: #fbd5df; color: #8c0035; } .feed .kind.pulih { background: #d3f5e3; color: #06532f; } .feed .kind.update { background: #fde9b0; color: #6b4700; }

/* Skor langsung dan kotak sertai liga */
.fx .v.score.live { background: #fde9b0; color: #6b4700; }
.joinbox { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; background: var(--mist); border-left: 5px solid var(--green); border-radius: 6px; padding: 16px 18px; margin: 0 0 20px; font-family: var(--display); }
.joinbox b { color: var(--purple); font-size: 17px; }
.joinbox p { margin: 4px 0 0; font-size: 15px; }
.joinbox code { font: 800 22px/1 var(--display); letter-spacing: 0.05em; background: #fff; padding: 3px 10px; border: 1px dashed var(--purple); border-radius: 4px; color: var(--purple); user-select: all; }

/* Butiran perlawanan: penjaring, assist, kad */
.fx tr.ev td { border-bottom: 1px solid var(--line); padding: 0 8px 12px; }
.fx tr.ev { background: #faf8fb; }
.fx tr:has(+ tr.ev) td { border-bottom: 0; }
.evgrid { display: grid; grid-template-columns: 1fr 56px 1fr; font-family: var(--display); font-size: 14px; line-height: 1.35; }
.evgrid ul { list-style: none; margin: 0; padding: 0; }
.evgrid li { display: flex; gap: 6px; align-items: baseline; padding: 2px 0; }
.evh li { flex-direction: row-reverse; text-align: right; }
.evgrid .min { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; min-width: 38px; white-space: nowrap; }
.evh .min { text-align: left; } .eva .min { text-align: right; }
.evgrid .ast { color: var(--muted); font-size: 12px; font-weight: 400; }
.ev-i { display: inline-block; flex: none; align-self: center; width: 11px; height: 11px; }
/* Ikon bola untuk gol (hitam), gol sendiri (merah) dan penalti terlepas (kelabu bergaris merah) */
.ev-i.goal, .ev-i.own, .ev-i.miss { width: 14px; height: 14px; border: 0; border-radius: 0; background-repeat: no-repeat; background-position: center; background-size: contain; }
.ev-i.goal { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-52 -52 104 104%22%3E%3Cdefs%3E%3CclipPath id=%22c%22%3E%3Ccircle r=%2248%22/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r=%2248%22 fill=%22%23ffffff%22/%3E%3Cg clip-path=%22url(%23c)%22%3E%3Cpath d=%22M0.00 -17.00 L0.00 -31.50 M12.84 -40.83 L34.86 -24.83 M16.17 -5.25 L29.96 -9.73 M42.80 -0.41 L34.39 25.48 M9.99 13.75 L18.52 25.48 M13.61 40.58 L-13.61 40.58 M-9.99 13.75 L-18.52 25.48 M-34.39 25.48 L-42.80 -0.41 M-16.17 -5.25 L-29.96 -9.73 M-34.86 -24.83 L-12.84 -40.83%22 fill=%22none%22 stroke=%22%232a0830%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0.00 -31.50 L-12.84 -40.83 L-7.94 -55.92 L7.94 -55.92 L12.84 -40.83Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M29.96 -9.73 L34.86 -24.83 L50.73 -24.83 L55.64 -9.73 L42.80 -0.41Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M18.52 25.48 L34.39 25.48 L39.29 40.58 L26.45 49.91 L13.61 40.58Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-18.52 25.48 L-13.61 40.58 L-26.45 49.91 L-39.29 40.58 L-34.39 25.48Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-29.96 -9.73 L-42.80 -0.41 L-55.64 -9.73 L-50.73 -24.83 L-34.86 -24.83Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0.00 -17.00 L16.17 -5.25 L9.99 13.75 L-9.99 13.75 L-16.17 -5.25Z%22 fill=%22%232a0830%22 stroke=%22%232a0830%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3Ccircle r=%2248%22 fill=%22none%22 stroke=%22%232a0830%22 stroke-width=%227%22/%3E%3C/svg%3E"); }
.ev-i.own { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-52 -52 104 104%22%3E%3Cdefs%3E%3CclipPath id=%22c%22%3E%3Ccircle r=%2248%22/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r=%2248%22 fill=%22%23ffe9ea%22/%3E%3Cg clip-path=%22url(%23c)%22%3E%3Cpath d=%22M0.00 -17.00 L0.00 -31.50 M12.84 -40.83 L34.86 -24.83 M16.17 -5.25 L29.96 -9.73 M42.80 -0.41 L34.39 25.48 M9.99 13.75 L18.52 25.48 M13.61 40.58 L-13.61 40.58 M-9.99 13.75 L-18.52 25.48 M-34.39 25.48 L-42.80 -0.41 M-16.17 -5.25 L-29.96 -9.73 M-34.86 -24.83 L-12.84 -40.83%22 fill=%22none%22 stroke=%22%23d4202a%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0.00 -31.50 L-12.84 -40.83 L-7.94 -55.92 L7.94 -55.92 L12.84 -40.83Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M29.96 -9.73 L34.86 -24.83 L50.73 -24.83 L55.64 -9.73 L42.80 -0.41Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M18.52 25.48 L34.39 25.48 L39.29 40.58 L26.45 49.91 L13.61 40.58Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-18.52 25.48 L-13.61 40.58 L-26.45 49.91 L-39.29 40.58 L-34.39 25.48Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-29.96 -9.73 L-42.80 -0.41 L-55.64 -9.73 L-50.73 -24.83 L-34.86 -24.83Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0.00 -17.00 L16.17 -5.25 L9.99 13.75 L-9.99 13.75 L-16.17 -5.25Z%22 fill=%22%23d4202a%22 stroke=%22%23d4202a%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3Ccircle r=%2248%22 fill=%22none%22 stroke=%22%23d4202a%22 stroke-width=%227%22/%3E%3C/svg%3E"); }
.ev-i.miss { background-image: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%22-52 -52 104 104%22%3E%3Cdefs%3E%3CclipPath id=%22c%22%3E%3Ccircle r=%2248%22/%3E%3C/clipPath%3E%3C/defs%3E%3Ccircle r=%2248%22 fill=%22%23ffffff%22/%3E%3Cg clip-path=%22url(%23c)%22%3E%3Cpath d=%22M0.00 -17.00 L0.00 -31.50 M12.84 -40.83 L34.86 -24.83 M16.17 -5.25 L29.96 -9.73 M42.80 -0.41 L34.39 25.48 M9.99 13.75 L18.52 25.48 M13.61 40.58 L-13.61 40.58 M-9.99 13.75 L-18.52 25.48 M-34.39 25.48 L-42.80 -0.41 M-16.17 -5.25 L-29.96 -9.73 M-34.86 -24.83 L-12.84 -40.83%22 fill=%22none%22 stroke=%22%238a7a92%22 stroke-width=%222.6%22 stroke-linecap=%22round%22/%3E%3Cpath d=%22M0.00 -31.50 L-12.84 -40.83 L-7.94 -55.92 L7.94 -55.92 L12.84 -40.83Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M29.96 -9.73 L34.86 -24.83 L50.73 -24.83 L55.64 -9.73 L42.80 -0.41Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M18.52 25.48 L34.39 25.48 L39.29 40.58 L26.45 49.91 L13.61 40.58Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-18.52 25.48 L-13.61 40.58 L-26.45 49.91 L-39.29 40.58 L-34.39 25.48Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M-29.96 -9.73 L-42.80 -0.41 L-55.64 -9.73 L-50.73 -24.83 L-34.86 -24.83Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3Cpath d=%22M0.00 -17.00 L16.17 -5.25 L9.99 13.75 L-9.99 13.75 L-16.17 -5.25Z%22 fill=%22%238a7a92%22 stroke=%22%238a7a92%22 stroke-width=%222%22 stroke-linejoin=%22round%22/%3E%3C/g%3E%3Ccircle r=%2248%22 fill=%22none%22 stroke=%22%238a7a92%22 stroke-width=%227%22/%3E%3Cpath d=%22M-40 40 L40 -40%22 stroke=%22%23d4202a%22 stroke-width=%229%22 stroke-linecap=%22round%22/%3E%3C/svg%3E"); }
.ev-i.yellow, .ev-i.red { width: 9px; height: 13px; border-radius: 2px; }
.ev-i.yellow { background: #f5c518; } .ev-i.red { background: #d4202a; }
@media (max-width: 600px) { .evgrid { grid-template-columns: 1fr 14px 1fr; font-size: 13px; } .evgrid .min { min-width: 34px; } }
.evgrid .ast.as { display: block; margin-top: 1px; }
