.intro { padding-block: 40px 16px; }
.eyebrow { color: var(--gold); letter-spacing: .22em; font-size: .75rem; text-transform: uppercase; margin: 0 0 10px; }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 3rem); line-height: 1.15; margin: 0 0 6px; text-wrap: balance; }
.date { color: var(--muted); margin: 0; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 20px; }
.tab { font: inherit; color: var(--muted); background: none; border: 0; padding: 10px 18px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--gold); border-bottom-color: var(--gold); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-block: 18px 6px; }
.chip { font: inherit; font-size: .85rem; color: var(--fg); background: transparent; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--gold); color: #04121f; border-color: var(--gold); font-weight: 600; }

.league { margin-top: 26px; }
.league h2 { font-family: var(--font-display); font-weight: 500; font-size: 1rem; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; color: var(--gold); }
.league h2 img { width: 24px; height: 24px; object-fit: contain; }
.league h2 small { color: var(--muted); font-family: var(--font-body); font-weight: 400; }
.rows { display: grid; gap: 6px; }
.m { display: grid; grid-template-columns: 56px minmax(0, 1fr) 84px minmax(0, 1fr); gap: 10px; align-items: center; padding: 11px 14px; background: var(--surface); border: 1px solid rgba(255,255,255,.07); border-radius: 10px; }
.m:hover { background: var(--surface-hi); border-color: var(--line); }
.m time { font-family: var(--font-display); font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }
.t { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.t span { overflow-wrap: anywhere; line-height: 1.25; }
.t img { width: 28px; height: 28px; object-fit: contain; flex: none; }
.t.away { flex-direction: row-reverse; text-align: right; }
.mid { text-align: center; font-family: var(--font-display); font-weight: 700; font-variant-numeric: tabular-nums; }
.mid.vs { color: var(--blue); font-size: .85rem; }
.mid small { display: block; font-family: var(--font-body); font-weight: 400; font-size: .7rem; color: var(--muted); }
.mid .live { color: #fff; background: var(--live); border-radius: 999px; padding: 0 8px; }
@media (max-width: 600px) {
  .m { grid-template-columns: 46px minmax(0, 1fr) 60px minmax(0, 1fr); gap: 6px; padding: 10px 8px; font-size: .85rem; }
  .t { flex-direction: column; text-align: center; gap: 2px; }
  .t.away { flex-direction: column; text-align: center; }
}

.state { margin-top: 24px; padding: 28px 18px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; }
.skeleton { height: 54px; margin-top: 8px; border-radius: 10px; background: linear-gradient(90deg, var(--surface), var(--surface-hi), var(--surface)); background-size: 200% 100%; animation: sh 1.4s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* ทายผล */
.vote-btn { display: block; margin: 4px auto 0; font: inherit; font-size: .7rem; line-height: 1.4; color: #04121f; background: linear-gradient(180deg, var(--gold-hi), var(--gold)); border: 0; border-radius: 999px; padding: 1px 10px; cursor: pointer; }
.vote-btn:hover { filter: brightness(1.08); }
dialog.vote {
  width: min(94vw, 520px); max-height: 92vh; overflow: auto; margin: auto; padding: 18px; position: relative; color: var(--fg);
  background: linear-gradient(160deg, #12233b, #0a0f18 60%); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 80px rgba(0, 0, 0, .65);
}
dialog.vote::backdrop { background: rgba(2, 4, 8, .72); backdrop-filter: blur(3px); }
.vote .x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; border: 0; font-size: 1.1rem; cursor: pointer; }
.vote .x:hover { background: rgba(255,255,255,.2); }
.v-note { margin: 28px 0 12px; padding: 7px 10px; background: #fff; color: #c62828; font-size: .78rem; text-align: center; border-radius: 6px; font-weight: 600; }
.v-meta { margin: 0 0 12px; text-align: center; color: var(--muted); font-size: .85rem; }
.v-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0; background: #07090d; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 14px; }
.v-home, .v-away { display: flex; align-items: center; gap: 8px; padding: 10px 16px; min-width: 0; font-weight: 600; font-size: .9rem; }
.v-home { background: linear-gradient(90deg, #1d4f8c, #0f2744); justify-content: flex-end; text-align: right; }
.v-away { justify-content: flex-start; }
.v-home img, .v-away img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.v-home span, .v-away span { overflow-wrap: anywhere; line-height: 1.2; }
.v-vs { display: grid; place-items: center; width: 36px; height: 36px; margin: 0 -6px; z-index: 1; border-radius: 50%; background: #07090d; border: 2px solid var(--gold); color: var(--gold); font-family: var(--font-display); font-weight: 700; font-size: .75rem; }
.v-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.v-opt { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 8px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; text-align: center; font-size: .85rem; line-height: 1.25; }
.v-opt:hover { border-color: var(--gold); }
.v-opt:has(input:checked) { background: rgba(47, 155, 255, .16); border-color: var(--gold); }
.v-opt input { accent-color: var(--gold); flex: none; }
.v-opt img { width: 26px; height: 26px; object-fit: contain; flex: none; }
.v-opt span { overflow-wrap: anywhere; }
.v-res { display: grid; gap: 10px; }
.v-row { padding: 10px 12px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 10px; }
.v-row.mine { border-color: var(--gold); background: rgba(47, 155, 255, .1); }
.v-rl { display: flex; justify-content: space-between; gap: 10px; font-size: .9rem; }
.v-rl b { color: var(--gold); font-family: var(--font-display); }
.v-bar { height: 8px; margin: 6px 0 2px; background: rgba(255,255,255,.1); border-radius: 999px; overflow: hidden; }
.v-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-soft), var(--gold-hi)); border-radius: 999px; }
.v-row small { color: var(--muted); font-size: .75rem; }
.v-submit { display: block; width: 100%; margin-top: 14px; }
.v-submit[disabled] { background: rgba(255,255,255,.1); color: var(--muted); cursor: not-allowed; transform: none; filter: none; }
.v-submit[hidden] { display: none; }
.v-hint { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: .8rem; }
.v-msg { min-height: 1.2em; margin: 10px 0 0; text-align: center; color: #ffb4b4; font-size: .85rem; }
@media (max-width: 520px) { .v-opts { grid-template-columns: 1fr; } .v-opt { justify-content: flex-start; padding: 10px 12px; } }
