/* Base */
:root {
  --ink: #111827;
  --dark: #0b1220;
  --accent: #16a34a;
  --bg: #f7f8fa;
  --white: #fff;
  --muted: #6b7280;
  --live: #dc2626;
  --line: #e6e8ec;
  --soft: #f3f5f7;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 system-ui, "Segoe UI", Tahoma, sans-serif;
}
.wrap { width: min(1040px, calc(100% - 32px)); margin-inline: auto; }
a { color: inherit; }
img, .mark { display: block; object-fit: contain; flex: 0 0 auto; }
.s32 { width: 32px; height: 32px; }
.s64 { width: 64px; height: 64px; }
.crest { border-radius: 50%; background: var(--soft); padding: 3px; }
.mark {
  display: grid;
  place-items: center;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 50%;
}
.skip { position: absolute; inset-inline-start: 8px; top: -40px; background: var(--white); padding: 6px 10px; }
.skip:focus { top: 8px; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.top-in { padding: 10px 0 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-height: 44px; }
.brand b { display: block; font-size: 0.92rem; line-height: 1.25; font-weight: 800; letter-spacing: 0; white-space: normal; max-width: 13.5rem; }
.brand small { display: block; color: var(--muted); font-size: 0.75rem; margin-top: 2px; }
.menu {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 8px;
}
.menu a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--ink);
  text-decoration: none;
  text-align: center;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.25;
}
.menu a[aria-current="page"] { background: var(--accent); color: #fff; }

/* Board */
.page-head { padding-top: 26px; }
.eyebrow { margin: 0; color: var(--accent); font-size: 0.78rem; font-weight: 800; }
h1 { font-size: 1.55rem; line-height: 1.25; margin: 6px 0 0; font-weight: 800; }
.date { color: var(--muted); margin: 6px 0 0; font-size: 0.92rem; }
.days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.days a {
  display: grid;
  place-items: center;
  min-height: 40px;
  padding: 6px 2px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 700;
  text-align: center;
}
.days a[aria-current="page"] { background: var(--ink); color: var(--white); }
.now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 12px;
  padding: 0 12px;
  color: var(--live);
  font-weight: 800;
  text-decoration: none;
  background: #fef2f2;
  border-radius: 999px;
}
.day-label { margin: 26px 0 0; font-size: 1.05rem; font-weight: 800; }
.league {
  margin-top: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.league h2 {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  border-inline-start: 3px solid var(--accent);
  background: #f8faf9;
  font-size: 0.95rem;
}
.match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5.4rem minmax(0, 1fr);
  align-items: center;
  column-gap: 10px;
  direction: ltr;
  min-height: 68px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.league .match:last-child { border-bottom: 0; }
.match:hover { background: #fafbfc; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-away { justify-content: flex-end; text-align: end; }
.name { white-space: normal; overflow: visible; line-height: 1.35; font-weight: 650; }
.when, .score {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 1px;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 10px;
  background: var(--soft);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.when b, .score b { font-weight: 800; font-size: 0.95rem; }
.when.live, .score.live { background: #fef2f2; }
.min { font-size: 0.75rem; color: var(--muted); }
.live b, .live .min { color: var(--live); }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.6;
}
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge .dot { background: #fff; }
.now .dot { background: var(--live); }
.empty { color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }

/* Match */
.crumb { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.85rem; padding-top: 18px; }
.crumb a { color: var(--accent); text-decoration: none; font-weight: 700; }
.crumb span::before { content: "/"; margin-inline-end: 6px; color: #d1d5db; }
.panel, .prose {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  margin-top: 14px;
}
.hero {
  margin-top: 16px;
  background: var(--dark);
  color: #fff;
  border-radius: 18px;
  padding: 18px 16px 16px;
}
.hero .eyebrow { color: #4ade80; }
.hero h1 { color: #fff; font-size: 1.15rem; line-height: 1.45; margin: 6px 0 16px; font-weight: 800; }
.hero .name, .hero .score b { color: #fff; }
.hero .score { background: transparent; }
.hero .crest, .hero .mark { background: #fff; color: var(--ink); }
.hero .live, .hero .live b { color: var(--live); }
.hero-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.hero-meta li { background: #121a2b; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.hero-meta span { color: #94a3b8; font-size: 0.75rem; }
.hero-meta b { font-size: 0.92rem; line-height: 1.4; font-weight: 700; }
.brief {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px 20px;
  margin-top: 14px;
}
.brief h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.brief .lead, .brief p, .essay .lead, .essay p, .piece p { max-width: none; }
.essay {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 26px;
  margin-top: 14px;
}
.essay h2 { margin: 22px 0 0; font-size: 1.28rem; }
.essay h2:first-child { margin-top: 0; }
.essay .lead { margin: 12px 0 0; font-size: 1.2rem; line-height: 1.85; font-weight: 700; }
.essay p { margin: 14px 0 0; font-size: 1.06rem; line-height: 1.9; }
.essay a.term { color: #14532d; font-weight: 800; text-decoration: underline; text-decoration-color: #86efac; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.essay-band { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.essay-band div { background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.essay-band span { display: block; color: var(--muted); font-size: 0.78rem; }
.essay-band b { display: block; margin-top: 2px; line-height: 1.45; }
.scoreboard {
  background: var(--dark);
  color: #fff;
  border: 0;
  padding: 22px 16px;
}
.scoreboard .name, .scoreboard .score b { color: #fff; }
.scoreboard .state { color: #9ca3af; }
.scoreboard .crest, .scoreboard .mark { background: #fff; color: var(--ink); }
.scoreboard .when, .scoreboard .score { background: transparent; }
.face {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  direction: ltr;
}
.side { display: grid; justify-items: center; gap: 8px; min-width: 0; text-align: center; }
.side .name { white-space: normal; font-weight: 800; }
.score b { font-size: 1.85rem; }
.state { color: var(--muted); font-size: 0.85rem; }
h2 { font-size: 1.05rem; margin: 0; font-weight: 800; }
.prose h2 { padding-bottom: 8px; border-bottom: 1px solid var(--line); }
dl { margin: 10px 0 0; }
dl div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 8px;
  padding: 10px 8px;
  border-radius: 8px;
}
dl div:nth-child(odd) { background: var(--soft); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 650; }
.prose p { margin: 12px 0 0; }
a.term { font-weight: 800; text-underline-offset: 3px; }
.piece { margin-top: 4px; }
.piece p { line-height: 1.95; font-size: 1.02rem; }
.piece h2 { border: 0; padding: 0; }
.piece h3 { margin: 18px 0 0; font-size: 1rem; }
.piece-today .lead { font-size: 1.2rem; line-height: 1.85; color: var(--ink); }
.piece-today a.term { color: #14532d; text-decoration: underline; text-decoration-color: #86efac; text-decoration-thickness: 2px; }
.piece-alostora { background: var(--dark); color: #e5e7eb; border-radius: 16px; padding: 18px 18px 8px; }
.piece-alostora h2, .piece-alostora h3 { color: #fff; }
.piece-alostora a.term { color: #86efac; text-decoration: underline; text-decoration-color: #166534; }
.piece-brand { display: grid; gap: 12px; }
.piece-brand article { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 6px; }
.piece-brand a.term { color: #14532d; background: #f0fdf4; border-radius: 6px; padding: 0 4px; text-decoration: none; }
.piece-koora { border-inline-start: 4px solid var(--live); padding-inline-start: 14px; }
.piece-koora a.term { color: var(--live); text-decoration: underline; }
.piece-direct ol { margin: 12px 0 0; padding-inline-start: 1.2rem; }
.piece-direct li { margin-top: 10px; line-height: 1.9; }
.piece-direct a.term { color: #1d4ed8; text-decoration: underline; }
.piece-yesterday { background: var(--soft); border-radius: 16px; padding: 16px 16px 6px; }
.piece-yesterday a.term { color: var(--ink); border-bottom: 2px solid #d1d5db; text-decoration: none; }
.piece-tomorrow .step { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.piece-tomorrow a.term { color: #9a3412; text-decoration: underline; text-decoration-color: #fdba74; }
.piece-schedule { column-count: 1; }
.piece-schedule a.term { color: #0f766e; text-decoration: underline; }
.facts .clubs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-top: 12px;
}
.facts .clubs p { margin: 0; display: grid; gap: 4px; }
.facts .clubs span { color: var(--muted); font-size: 0.78rem; }
.facts .clubs b { font-size: 1.02rem; line-height: 1.35; }
.facts-score { justify-items: center; text-align: center; min-width: 4.5rem; }
.facts-score b { font-size: 1.4rem; }
.events { margin: 8px 0 0; padding: 0; list-style: none; }
.events li { padding: 8px 0; border-top: 1px solid var(--line); }
.events-title { margin-top: 16px; }
.keys { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.keys a {
  text-decoration: none;
  background: var(--soft);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  font-size: 0.86rem;
}
.keys a:hover { background: #e7f6ec; }
button {
  appearance: none;
  border: 0;
  background: var(--accent);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  width: 100%;
  min-height: 48px;
  padding: 8px 16px;
  margin-top: 12px;
  border-radius: 12px;
  cursor: pointer;
}
iframe { width: 100%; aspect-ratio: 16/9; border: 0; background: #070b14; margin-top: 12px; border-radius: 12px; }

/* Footer */
.site-foot {
  margin-top: 40px;
  background: var(--dark);
  color: #d1d5db;
  padding: 28px 0 32px;
  box-shadow: inset 0 3px 0 var(--accent);
}
.foot-grid { display: grid; gap: 16px; }
.site-foot strong { color: var(--white); font-size: 1.05rem; }
.site-foot p { margin: 6px 0 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-foot nav a {
  color: var(--white);
  text-decoration: none;
  min-height: 36px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  background: #121a2b;
  border-radius: 999px;
}
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 380px) {
  .days a { font-size: 0.75rem; }
  .match { grid-template-columns: minmax(0, 1fr) 4.8rem minmax(0, 1fr); padding: 10px; }
}
@media (min-width: 960px) {
  .top-in { display: flex; align-items: center; gap: 20px; min-height: 74px; padding: 0; }
  .menu { display: flex; flex: 1; justify-content: flex-end; gap: 4px; margin: 0; }
  .menu a { width: auto; background: transparent; font-size: 0.92rem; padding: 8px 12px; }
  .menu a[aria-current="page"] { background: #ecfdf3; color: #15803d; }
}
@media (min-width: 720px) {
  h1 { font-size: 2rem; }
  .hero { padding: 28px 28px 22px; }
  .hero h1 { font-size: 1.45rem; }
  .hero-meta, .essay-band { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1.3fr 1.4fr 1fr; align-items: start; }
  button { width: auto; min-width: 180px; }
  .score b { font-size: 2.4rem; }
}
@media (max-width: 719px) {
  .face { grid-template-columns: 1fr; justify-items: center; gap: 14px; }
  .side { grid-template-columns: auto auto; align-items: center; }
  .facts .clubs { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}
@media (prefers-reduced-motion: no-preference) {
  .dot { animation: pulse 1.6s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* Jadwal Live promo. The card opens the app; only .jadwal-site opens the website. */
.jadwal-slot { padding-top: 14px; }
.jadwal { position: relative; }
.jadwal-frame { margin: 2px 0 14px; }
.jadwal-app {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 14px 14px;
  padding-inline-end: 98px;
  color: #fff;
  text-decoration: none;
  border-radius: 22px;
  border: 1.5px solid transparent;
  background:
    linear-gradient(160deg, #102433 0%, #07131c 48%, #04140f 100%) padding-box,
    linear-gradient(135deg, #7dd3fc, #2dd4bf 38%, #16a34a 72%, #0e7490) border-box;
  box-shadow:
    0 16px 34px rgba(4, 16, 24, .22),
    inset 0 1px 0 rgba(255, 255, 255, .1);
}
.jadwal-app::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  inset-inline-start: -48px;
  top: -64px;
  background: radial-gradient(circle, rgba(45, 212, 191, .38), transparent 68%);
  pointer-events: none;
}
.jadwal-app::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 46%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), transparent);
  pointer-events: none;
}
.jadwal-app:hover { filter: brightness(1.08); }
.jadwal-icon {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, .45),
    0 0 0 1px rgba(255, 255, 255, .18);
}
.jadwal-copy { position: relative; z-index: 1; display: grid; gap: 1px; min-width: 0; }
.jadwal-copy strong {
  font-size: 1.12rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.jadwal-copy span { color: #d7efe8; font-size: .84rem; line-height: 1.4; }
.jadwal-store {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  color: #99f6e4;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .01em;
}
.jadwal-site {
  position: absolute;
  z-index: 3;
  inset-inline-end: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(6, 16, 24, .55);
  color: #fff;
  font-size: .78rem;
  font-weight: 800;
  text-decoration: none;
  backdrop-filter: blur(8px);
}
.jadwal-site:hover { border-color: #5eead4; color: #5eead4; background: rgba(6, 16, 24, .8); }
