/* KoreaGoal — ธีมแดง/ดำ */
:root {
  --bg: #08080a;
  --panel: #131316;
  --panel-2: #1b1b20;
  --line: #2a2a31;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --accent: #e11d2a;        /* แดงหลักของแบรนด์ */
  --accent-2: #ff3b47;      /* แดงสว่าง สำหรับ hover / ตัวเลขเด่น */
  --on-accent: #ffffff;
  --blue: #2f5bd3;          /* น้ำเงินจากลูกบอลในโลโก้ ใช้แต้มเล็กน้อย */
  --live: #ff3b47;
  --radius: 14px;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(900px 380px at 85% -120px, rgba(225, 29, 42, .22), transparent 70%),
    radial-gradient(700px 300px at -10% -80px, rgba(225, 29, 42, .10), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  min-height: 100vh;
  color: var(--text);
  font-family: 'Prompt', system-ui, sans-serif;
  font-size: 15px;
}
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }

.topbar {
  position: sticky; top: 0; z-index: 5; background: rgba(8, 8, 10, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(225, 29, 42, .35), 0 10px 30px -20px rgba(225, 29, 42, .6);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { height: 52px; width: auto; display: block; filter: drop-shadow(0 4px 14px rgba(225, 29, 42, .35)); }
.brand span { color: var(--accent-2); }
.updated { color: var(--muted); font-size: 12px; }

.tabs { display: flex; gap: 6px; margin: 16px 0 12px; overflow-x: auto; scrollbar-width: none; }
.tab {
  flex: 0 0 auto; border: 1px solid var(--line); background: var(--panel); color: var(--muted);
  padding: 8px 14px; border-radius: 999px; font: inherit; cursor: pointer;
}
.tab:hover { color: var(--text); border-color: #3a3a42; }
.tab.active {
  background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: var(--on-accent);
  border-color: var(--accent); font-weight: 600; box-shadow: 0 6px 18px -8px rgba(225, 29, 42, .8);
}
.tab { display: inline-flex; align-items: center; gap: 6px; -webkit-tap-highlight-color: transparent; }
.tab .ic { width: 18px; height: 18px; flex: 0 0 18px; }
.tab .count:empty { display: none; }
.tab .count {
  min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 12px; line-height: 20px; text-align: center;
  background: var(--live); color: #fff;
}
.tab.active .count { background: #fff; color: var(--accent); }

/* ชิปเลือกลีก */
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 14px; padding: 2px 16px;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar, .tabs::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start; min-height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); color: var(--muted); font: inherit; font-size: 14px;
  cursor: pointer; white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.chip.active { color: #fff; border-color: var(--accent); background: rgba(225, 29, 42, .18); font-weight: 600; }
.chips { flex-direction: column; gap: 8px; overflow: visible; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row.leagues .chip { min-height: 32px; font-size: 13px; padding: 0 12px; background: transparent; }
.chip-row.leagues .chip.active { background: rgba(225, 29, 42, .18); }

.league-head { font-weight: 600; }
/* ---------- โปรแกรมบอลแบบตาราง (เดสก์ท็อป) ---------- */
.league-group {
  margin-bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.league-group .league-head {
  display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-left: 0; font-size: 14px;
  background: linear-gradient(90deg, rgba(225, 29, 42, .9), rgba(140, 14, 22, .85) 60%, rgba(40, 8, 10, .9));
  color: #fff;
}
.league-head small { color: rgba(255, 255, 255, .7); font-weight: 400; }
.lg-logo { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.lg-count { margin-left: auto; font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); }

.cols, .match {
  display: grid; grid-template-columns: 72px 1fr 64px 86px 1fr 70px 34px;
  grid-template-areas: "time home ht score away watch star"; align-items: center; column-gap: 10px;
}
.cols {
  padding: 7px 14px; font-size: 12px; color: var(--muted); background: var(--panel-2); text-align: center;
  border-bottom: 1px solid var(--line);
}
.cols .r { text-align: right; }
.cols .l { text-align: left; }
.match {
  background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  padding: 10px 14px; min-height: 52px; cursor: pointer; width: 100%; color: inherit; font: inherit; text-align: left;
  -webkit-tap-highlight-color: transparent; transition: background .15s;
}
.match:last-child { border-bottom: 0; }
.match:nth-of-type(even) { background: rgba(255, 255, 255, .015); }
.match:hover { background: var(--panel-2); }
.match .time { grid-area: time; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.match .home { grid-area: home; }
.match .ht { grid-area: ht; text-align: center; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.match .score { grid-area: score; justify-self: center; }
.match .away { grid-area: away; }
.match .watchcell { grid-area: watch; text-align: center; }
.match.is-live { box-shadow: inset 3px 0 0 var(--live); }
.match.is-done .nm { color: #d4d4d8; }

.time { color: var(--muted); font-size: 13px; }
.time .ko { color: var(--text); font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.time .st { font-size: 11px; }
.time .st:empty { display: none; }
.time .st.live { color: var(--live); font-weight: 700; }
.time .st.live::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--live); margin-right: 4px; vertical-align: middle; animation: pulse 1.4s infinite; }
.time .st.warn { color: #fbbf24; }
@keyframes pulse { 50% { opacity: .25; } }

.team { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team.home { justify-content: flex-end; text-align: right; }
.team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .rk { color: var(--muted); font-size: 11px; flex: 0 0 auto; }
.team img, .crest { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.crest { border-radius: 50%; background: var(--line); display: inline-grid; place-items: center; font-size: 11px; color: var(--muted); }
.score {
  font-weight: 700; font-size: 17px; min-width: 70px; text-align: center; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums;
}
.score .dash { font-style: normal; margin: 0 6px; color: var(--muted); }
.score .vs { color: var(--accent-2); font-weight: 700; font-size: 15px; }
.match.is-live .score { border-color: var(--live); color: var(--accent-2); }

/* ---------- ติดดาว / ติดตาม ---------- */
.star {
  grid-area: star; justify-self: center; align-self: center; grid-row: 1 / -1;
  display: grid; place-items: center; width: 32px; height: 32px; color: #52525b; cursor: pointer; border-radius: 8px;
  -webkit-tap-highlight-color: transparent; transition: transform .12s, color .12s;
}
.star:hover { color: #fbbf24; }
.star .ico { width: 19px; height: 19px; }
.star.on { color: #fbbf24; }
.star:active { transform: scale(1.3); }
.tab .count.fav { background: #fbbf24; color: #111; }

.follow { display: grid; gap: 14px; }
.team-search { position: relative; }
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 14px; border-radius: 10px;
  background: var(--panel); border: 1px solid var(--line); cursor: text;
}
.search-box:focus-within { border-color: #52525b; }
.search-box .ico { width: 18px; height: 18px; color: var(--muted); flex: 0 0 18px; }
.search-box input {
  flex: 1; min-width: 0; height: 44px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 16px;
}
.search-box input::-webkit-search-cancel-button { filter: invert(.6); }
#team-results { display: grid; gap: 6px; margin-top: 8px; }
#team-results:empty { display: none; }
.team-hit { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.team-hit img, .team-hit .crest { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.th-name { flex: 1; min-width: 0; display: grid; }
.th-name b, .th-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.th-name small { color: var(--muted); font-size: 12px; }
.follow-btn {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; font-size: 13px; cursor: pointer;
}
.follow-btn .ico { width: 15px; height: 15px; }
.follow-btn:hover { border-color: #52525b; }
.follow-btn.on { border-color: var(--accent); background: rgba(225, 29, 42, .14); color: #fff; }
.tr-empty { color: var(--muted); font-size: 14px; padding: 10px 4px; }
.fav-h { font-size: 15px; margin: 4px 2px 8px; }
.fav-empty { display: grid; justify-items: center; gap: 6px; line-height: 1.6; padding: 36px 20px; }
.fav-empty .ico { width: 28px; height: 28px; color: #52525b; }
.fav-empty b { color: var(--text); font-size: 15px; }
.fav-empty span { font-size: 13px; max-width: 300px; }

/* ไอคอนทั่วไป */
.ico { display: inline-block; vertical-align: middle; flex-shrink: 0; }
.live-badge { display: inline-flex; align-items: center; gap: 3px; }
.live-badge .ico { width: 10px; height: 10px; }
.watch h4 { display: flex; align-items: center; gap: 6px; }
.watch h4 .ico { width: 16px; height: 16px; color: var(--muted); }
.watch a .ico { width: 13px; height: 13px; }
.channel .crest .ico { width: 28px; height: 28px; }
.day-btn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.day-btn .ico { width: 18px; height: 18px; }

/* ไอคอนเหตุการณ์ในเกม */
.ev-ic { display: inline-flex; align-items: center; }
.ev-ic .ico { width: 18px; height: 18px; }
.ev-ball { display: inline-flex; color: #fff; }
.ev-ball.og { color: var(--accent-2); }
.ev-ball.miss { color: #71717a; position: relative; }
.ev-ball.miss::after { content: ''; position: absolute; left: -2px; right: -2px; top: 50%; height: 2px; background: var(--accent-2); transform: rotate(-35deg); }
.card-ic { display: inline-block; width: 11px; height: 15px; border-radius: 2px; vertical-align: middle; }
.card-ic.yellow { background: #facc15; }
.card-ic.red { background: #dc2626; }
.cards2 { display: inline-flex; }
.cards2 .card-ic + .card-ic { margin-left: -5px; transform: rotate(10deg); }
.var-badge { font-size: 10px; font-weight: 800; letter-spacing: .5px; border: 1.5px solid currentColor; border-radius: 4px; padding: 0 4px; color: var(--muted); }

/* ---------- แถบเลือกวัน ---------- */
.daybar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 0 0 12px;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px;
}
.day-title { text-align: center; min-width: 0; }
.day-title b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.day-title .t-short { display: none; }
.day-btn {
  min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text); font: inherit; font-size: 14px; cursor: pointer; white-space: nowrap;
}
.day-btn:hover:not(:disabled) { border-color: var(--accent); }
.day-btn:disabled { opacity: .35; cursor: default; }

.empty, .error { text-align: center; color: var(--muted); padding: 48px 16px; background: var(--panel); border-radius: var(--radius); border: 1px dashed var(--line); }
.error { color: #fca5a5; }

table { width: 100%; border-collapse: collapse; background: var(--panel); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 500; font-size: 13px; }
td.team-cell { text-align: left; }
td.team-cell div { display: flex; align-items: center; gap: 8px; min-width: 0; }
td.team-cell img, td.team-cell .crest { width: 22px; height: 22px; flex: 0 0 22px; object-fit: contain; }
td.team-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td.pts { font-weight: 700; color: var(--accent-2); }
tr:nth-child(-n+4) td:first-child { color: var(--accent-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }
tr:hover td { background: var(--panel-2); }
.table-wrap { overflow-x: auto; margin-bottom: 16px; }
.st-group { font-size: 15px; margin: 6px 2px 8px; padding-left: 10px; border-left: 3px solid var(--accent); }

dialog {
  width: min(480px, calc(100% - 32px)); border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); color: var(--text); padding: 20px;
}
dialog::backdrop { background: rgba(0,0,0,.6); }
.detail-league { color: var(--muted); font-size: 13px; text-align: center; }
.detail-score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0; text-align: center; }
.detail-score .big { font-size: 32px; font-weight: 700; }
.detail-score img, .detail-score .crest { width: 44px; height: 44px; margin: 0 auto 6px; display: block; }
.detail-meta { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 14px; }
.watch { background: var(--bg); border-radius: 10px; padding: 12px; }
.watch h4 { margin: 0 0 8px; font-size: 14px; }
.watch a { color: var(--accent-2); display: block; margin: 4px 0; }
.close { margin-top: 14px; width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel-2); color: var(--text); font: inherit; cursor: pointer; }

[hidden] { display: none !important; }
dialog.has-player { width: min(860px, calc(100% - 24px)); }
.player { margin: 4px 0 14px; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; display: block; }
.player-msg { color: var(--muted); font-size: 13px; text-align: center; margin-top: 6px; min-height: 1em; }
.stream-btns { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.stream-btn {
  border: 1px solid var(--live); background: transparent; color: var(--text); font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.stream-btn.active, .stream-btn:hover { background: var(--live); }
.live-badge { display: inline-block; background: var(--live); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.channels { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.channel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px;
  display: grid; justify-items: center; gap: 10px; cursor: pointer; color: inherit; font: inherit;
}
.channel:hover { border-color: var(--live); }
.channel img, .channel .crest { width: 56px; height: 56px; object-fit: contain; }
.channel .crest { font-size: 22px; }

.footer { color: var(--muted); font-size: 12px; text-align: center; padding: 32px 16px; border-top: 1px solid var(--line); margin-top: 32px; }
.footer img { height: 34px; display: block; margin: 0 auto 10px; opacity: .9; }
.chip:focus-visible, .tab:focus-visible, .match:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- หน้ารายละเอียดคู่ ---------- */
dialog.dt { width: min(760px, calc(100% - 32px)); max-height: 90vh; overflow-y: auto; padding: 18px 20px; }
.dt-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.dt-league { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dt-league img { width: 22px; height: 22px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px; }
.dt-date { color: var(--muted); font-size: 13px; }
.dt-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 18px 0 10px; text-align: center; }
.dt-team { display: grid; justify-items: center; gap: 5px; min-width: 0; }
.dt-team img, .dt-team .crest { width: 56px; height: 56px; }
.dt-team b { font-size: 16px; }
.dt-team small, .dt-mid small { color: var(--muted); font-size: 12px; }
.dt-mid { display: grid; justify-items: center; gap: 4px; }
.dt-score { font-size: 38px; font-weight: 800; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
.dt-score.live { color: var(--accent-2); }
.dt-st { font-size: 12px; color: var(--muted); }
.dt-st.live { color: var(--live); font-weight: 700; }
.dt-info { text-align: center; color: var(--muted); font-size: 12px; margin-bottom: 4px; }
.dots { display: flex; gap: 3px; }
.fd { width: 18px; height: 18px; border-radius: 50%; font-style: normal; font-size: 10px; font-weight: 700; display: grid; place-items: center; color: #fff; }
.fd-W { background: #16a34a; } .fd-D { background: #6b7280; } .fd-L { background: var(--accent); }

.dt-tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); margin: 14px -4px 14px; position: sticky; top: -18px;
  background: var(--panel); z-index: 2; padding: 6px 4px 0;
}
.dt-tabs button {
  flex: 0 0 auto; background: none; border: 0; color: var(--muted); font: inherit; font-size: 14px; padding: 10px 12px; cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.dt-tabs button.active { color: #fff; border-bottom-color: var(--accent); font-weight: 600; }
.dt-pane { min-height: 160px; }
.dt-empty { text-align: center; color: var(--muted); padding: 40px 12px; font-size: 14px; }
.dt-empty.small { padding: 16px; }
.dt-pane h5 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }

.dt-analysis {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; margin: 12px 0 0; padding: 10px 14px;
  border-radius: 12px; border: 1px solid rgba(225, 29, 42, .5); background: rgba(225, 29, 42, .1); color: var(--text); text-decoration: none;
}
.dt-analysis span { grid-column: 1; font-size: 12px; color: var(--accent-2); font-weight: 600; }
.dt-analysis b { grid-column: 1; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-analysis .ico { grid-column: 2; grid-row: 1 / span 2; width: 18px; height: 18px; color: var(--muted); }

/* เหตุการณ์ */
.ev-head { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 0 4px 8px; }
.ev-head span:first-child { border-left: 3px solid var(--blue); padding-left: 8px; }
.ev-head span:last-child { border-right: 3px solid var(--accent); padding-right: 8px; }
.events { display: grid; gap: 4px; }
.ev { display: grid; grid-template-columns: 1fr 44px 1fr; align-items: center; gap: 8px; font-size: 14px; }
.ev .ev-min { grid-column: 2; grid-row: 1; text-align: center; color: var(--muted); font-size: 12px; background: var(--bg); border-radius: 999px; padding: 2px 0; }
.ev-home .ev-ic { grid-column: 1; grid-row: 1; justify-self: end; }
.ev-home .ev-tx { grid-column: 1; grid-row: 1; text-align: right; margin-right: 26px; }
.ev-away .ev-ic { grid-column: 3; grid-row: 1; justify-self: start; }
.ev-away .ev-tx { grid-column: 3; grid-row: 1; margin-left: 26px; }
.ev-tx small { display: block; color: var(--muted); font-size: 11px; }
.ev-sep { text-align: center; color: var(--muted); font-size: 12px; margin: 6px 0; border-top: 1px dashed var(--line); padding-top: 6px; }

/* สถิติ */
.stats { display: grid; gap: 12px; }
.stat-row { display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; font-size: 14px; }
.stat-row span { text-align: center; color: var(--muted); font-size: 13px; }
.stat-row b:last-child { text-align: right; }
.stat-row b.lead { color: #fff; }
.stat-row b:not(.lead) { color: var(--muted); font-weight: 500; }
.bar { display: flex; gap: 3px; height: 6px; margin-top: 5px; }
.bar i { display: block; border-radius: 3px; }
.bar .bh { background: var(--blue); }
.bar .ba { background: var(--accent); }

/* รายชื่อผู้เล่น */
.lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lu-head { display: flex; align-items: center; gap: 8px; }
.lu-head img, .lu-head .crest { width: 24px; height: 24px; }
.lu-head .fm { margin-left: auto; background: var(--bg); border-radius: 6px; padding: 2px 8px; font-size: 12px; color: var(--accent-2); font-weight: 700; }
.lu-coach { color: var(--muted); font-size: 12px; margin-top: 4px; }
.lu ul, .squad { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.lu li, .squad li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; background: var(--bg); font-size: 14px; }
.lu .subs li { opacity: .8; }
.no { width: 24px; text-align: center; color: var(--accent-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.pn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps, .squad small { color: var(--muted); font-size: 12px; }
.squad img, .squad .crest { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--line); }
.sq-toggle { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.squad-count { font-weight: 600; margin: 4px 0; }

/* เจอกัน */
.h2h-sum { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--bg); border-radius: 12px; padding: 14px 8px; margin-bottom: 10px; }
.h2h-sum b { font-size: 26px; display: block; }
.h2h-sum small { color: var(--muted); font-size: 12px; }
.c-home { color: #6b8cff; } .c-away { color: var(--accent-2); }
.h2h-list { display: grid; }
.h2h-row { display: grid; grid-template-columns: 76px 1fr 54px 1fr; align-items: center; gap: 8px; padding: 9px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.h2h-row .d { color: var(--muted); font-size: 12px; }
.h2h-row b { text-align: center; background: var(--panel-2); border-radius: 6px; padding: 2px 0; }
.h2h-row .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.h2h-row .t.r { text-align: right; }
.h2h-row .t.win { color: #fff; font-weight: 600; }

.more-news { display: block; text-align: center; margin: 14px 0 4px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none; background: var(--panel); }
.more-news:hover { border-color: #52525b; }

/* ---------- หน้าโหลด ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: radial-gradient(420px 420px at 50% 42%, rgba(225, 29, 42, .28), transparent 70%), #08080a;
  transition: opacity .35s ease, visibility .35s;
}
.splash.done { opacity: 0; visibility: hidden; pointer-events: none; }
.splash > img:first-child {
  width: 132px; height: 132px; border-radius: 30px; object-fit: cover;
  box-shadow: 0 18px 50px -12px rgba(225, 29, 42, .7), 0 0 0 1px rgba(255, 255, 255, .06);
  animation: sp-pop .5s ease-out, sp-float 1.6s ease-in-out .5s infinite;
}
.sp-logo { width: 150px; height: auto; opacity: .95; }
.sp-bar { width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.sp-bar i { display: block; width: 40%; height: 100%; border-radius: 3px; background: var(--accent); animation: sp-load 1s ease-in-out infinite; }
@keyframes sp-pop { from { transform: scale(.8); opacity: 0; } }
@keyframes sp-float { 50% { transform: translateY(-6px); } }
@keyframes sp-load { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .splash > img:first-child, .sp-bar i { animation: none; } }

/* ---------- แจ้งเตือนประตู ---------- */
.hl-tag { display: inline-block; margin-top: 2px; font-size: 10px; font-weight: 700; color: #111; background: #fbbf24; border-radius: 4px; padding: 0 5px; line-height: 16px; }
.toasts { position: fixed; z-index: 120; left: 50%; top: calc(10px + env(safe-area-inset-top)); transform: translateX(-50%); width: min(460px, calc(100% - 20px)); display: grid; gap: 8px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 14px; border-radius: 14px; border: 1px solid rgba(225, 29, 42, .6); color: var(--text); font: inherit;
  background: linear-gradient(90deg, rgba(92, 10, 16, .97), rgba(20, 20, 24, .97)); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8);
  animation: toast-in .35s cubic-bezier(.2, 1.4, .4, 1); transition: opacity .4s, transform .4s;
}
.toast.out { opacity: 0; transform: translateY(-10px); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
.t-ball { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #111; animation: t-spin 1s ease-out; }
.t-ball .ico { width: 26px; height: 26px; }
@keyframes t-spin { from { transform: rotate(-200deg) scale(.6); } }
.t-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.t-body small { color: #fca5a5; font-size: 12px; font-weight: 600; }
.t-body b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-body .sc { color: #fbbf24; }
.toast > img, .toast > .crest { width: 30px; height: 30px; flex: 0 0 30px; object-fit: contain; }
.notify-prefs { display: grid; gap: 6px; }
.notify-prefs:empty { display: none; }
.np { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.np-sum { display: flex; align-items: center; gap: 8px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 14px; user-select: none; }
.np-sum::-webkit-details-marker { display: none; }
.np-sum b { font-weight: 600; }
.np-bell { width: 18px; height: 18px; flex: 0 0 18px; color: var(--muted); }
.np-state { margin-left: auto; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.np-state.on { color: #4ade80; }
.np-chev { width: 16px; height: 16px; flex: 0 0 16px; color: var(--muted); transition: transform .2s; }
.np[open] .np-chev { transform: rotate(180deg); }
.np-body { border-top: 1px solid var(--line); }
.np-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 14px; font-size: 13.5px; }
.np-row + .np-row { border-top: 1px solid var(--line); }
.np-row span { display: grid; }
.np-row small { color: var(--muted); font-size: 12px; }
.np-switch { position: relative; width: 42px; height: 24px; flex: 0 0 42px; border-radius: 12px; border: 0; background: #3f3f46; cursor: pointer; transition: background .2s; }
.np-switch i { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.np-switch.on { background: var(--accent); }
.np-switch.on i { transform: translateX(18px); }
.np-switch:disabled { opacity: .4; cursor: default; }

/* ---------- แถบติดตั้งแอป ---------- */
/* อยู่บนสุดของหน้า ดันเนื้อหาลง ไม่ทับหัวเว็บ */
.install-bar {
  position: relative; z-index: 6; display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top));
  background: linear-gradient(90deg, #5c0a10, #2a0608); border-bottom: 1px solid rgba(225, 29, 42, .55);
  animation: ib-in .25s ease-out;
}
@keyframes ib-in { from { opacity: 0; } }
.install-bar img { width: 40px; height: 40px; border-radius: 10px; flex: 0 0 40px; }
.ib-text { flex: 1; min-width: 0; display: grid; }
.ib-text b { font-size: 14px; }
.ib-text small { color: rgba(255, 255, 255, .72); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib-close { width: 28px; height: 28px; flex: 0 0 28px; border: 0; background: none; color: rgba(255, 255, 255, .7); cursor: pointer; padding: 4px; }
.ib-close svg { width: 100%; height: 100%; }
.ib-btn {
  flex: 0 0 auto; min-height: 36px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--accent); color: #fff; font: inherit; font-size: 14px; font-weight: 600;
}
.ib-btn:hover { background: var(--accent-2); }

.ios-guide h3 { margin: 0 0 12px; font-size: 17px; text-align: center; }
.ios-guide ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; font-size: 15px; line-height: 1.6; }
.ig-ic { width: 20px; height: 20px; vertical-align: -4px; color: #3b82f6; margin: 0 2px; }
.ig-note { color: var(--muted); font-size: 12px; text-align: center; margin: 14px 0 0; }

/* ---------- มือถือ ---------- */
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { padding: 0 12px; }
  .topbar-inner { height: 56px; }
  .brand img { height: 40px; }
  body { padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom)); }
  /* เว้นระยะจากเส้นแดงใต้หัวเว็บ (เมนูย้ายไปด้านล่างแล้ว) */
  main.wrap { padding-top: 16px; }

  /* แถบเมนูติดล่างจอ กดด้วยนิ้วโป้งได้ง่าย */
  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; margin: 0; gap: 0;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    background: rgba(12, 12, 14, .96); backdrop-filter: blur(12px);
    border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -15px rgba(225, 29, 42, .45);
  }
  .tab {
    position: relative; flex-direction: column; justify-content: center; gap: 3px; min-height: 52px;
    padding: 4px 2px; border: 0; border-radius: 12px; background: transparent; font-size: 11px; color: var(--muted);
  }
  .tab .ic { width: 22px; height: 22px; }
  .tab .lb { white-space: nowrap; }
  .tab.active { background: transparent; color: #fff; box-shadow: none; }
  .tab.active .ic { color: var(--accent-2); filter: drop-shadow(0 0 6px rgba(255, 59, 71, .7)); }
  .tab.active::before {
    content: ''; position: absolute; top: -7px; left: 30%; right: 30%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent);
  }
  .tab .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; line-height: 18px; font-size: 11px; padding: 0 5px; }
  .tab.active .count { background: var(--live); color: #fff; }

  /* ชิปลีกติดใต้หัวเว็บ */
  .chips {
    position: sticky; top: 56px; z-index: 4; margin: 0 -12px 12px; padding: 10px 12px;
    background: linear-gradient(var(--bg) 75%, transparent);
  }

  /* การ์ดคู่แข่ง: ทีมเรียงบน-ล่าง สกอร์อยู่ขวา แบบแอปผลบอล */
  .cols { display: none; }
  .league-group { margin: 0 -2px 14px; }
  .match {
    grid-template-columns: 52px 1fr auto 30px;
    grid-template-areas: "time home hs star" "watch away as star";
    column-gap: 10px; row-gap: 8px; padding: 12px; min-height: 72px;
  }
  .match .time { grid-row: 1 / span 2; align-self: center; }
  .match:has(.live-badge) .time { grid-row: 1; }
  .match .watchcell { align-self: end; }
  .match .live-badge { font-size: 10px; padding: 1px 6px; margin: 0; }
  .match .ht { display: none; }
  .team, .team.home { flex-direction: row; justify-content: flex-start; text-align: left; font-size: 15px; }
  .team.home { flex-direction: row-reverse; justify-content: flex-end; }
  .team.home .rk { order: -1; }
  .score { display: contents; }
  .score .vs { grid-area: hs; grid-row: 1 / span 2; align-self: center; font-size: 13px; }
  .daybar { grid-template-columns: 40px 1fr 40px; padding: 4px; gap: 6px; }
  .day-btn { padding: 0; font-size: 18px; min-height: 38px; }
  .day-btn span { display: none; }
  .day-title b { font-size: 15px; }
  .day-title .t-long { display: none; }
  .day-title .t-short { display: block; }
  /* ตารางคะแนน: ชิดขึ้น */
  td.team-cell img, td.team-cell .crest { width: 20px; height: 20px; flex-basis: 20px; }
  th, td { padding: 9px 4px; }
  .team img, .crest { width: 20px; height: 20px; flex-basis: 20px; }
  .score .hs, .score .as {
    font-size: 17px; min-width: 26px; text-align: center; font-variant-numeric: tabular-nums;
  }
  .score .hs { grid-area: hs; }
  .score .as { grid-area: as; }
  .score .dash { display: none; }
  .match.is-live .hs, .match.is-live .as { color: var(--accent-2); }

  /* ตาราง */
  th, td { padding: 10px 5px; font-size: 14px; }
  .hide-sm { display: none; }

  /* หน้าต่างรายละเอียด: แผ่นเลื่อนขึ้นจากล่าง */
  dialog, dialog.has-player {
    width: 100%; max-width: 100%; margin: auto 0 0; max-height: 92vh; overflow-y: auto;
    border-radius: 20px 20px 0 0; border-bottom: 0; padding: 18px 14px calc(14px + env(safe-area-inset-bottom));
    animation: sheet-up .22s ease-out;
  }

  .close { min-height: 48px; font-size: 15px; }
  dialog.dt { width: 100%; padding: 18px 12px calc(14px + env(safe-area-inset-bottom)); }
  .dt-team img, .dt-team .crest { width: 44px; height: 44px; }
  .dt-team b { font-size: 14px; }
  .dt-score { font-size: 30px; }
  .dt-tabs { top: -18px; }
  .dt-tabs button { padding: 10px 9px; font-size: 13px; }
  .lineups { grid-template-columns: 1fr; }
  .h2h-row { grid-template-columns: 58px 1fr 46px 1fr; font-size: 13px; }
  .ev { font-size: 13px; }
  .player { margin: 0 -14px 12px; }
  .player video { border-radius: 0; }

  .channels { grid-template-columns: repeat(2, 1fr); }
  .footer { margin-top: 16px; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* จอสัมผัส: ไม่ค้างสถานะ hover หลังแตะ */
@media (hover: none) {
  .match:hover { background: var(--panel); border-color: var(--line); }
  .match.is-live:hover { border-left-color: var(--live); }
}

/* ---------- หน้าคู่แบบเต็มจอ (ต้องอยู่ท้ายไฟล์เพื่อทับสไตล์หน้าต่างแบบเดิม) ---------- */
dialog.dt {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0;
  padding: 0; border: 0; border-radius: 0; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); animation: dt-in .2s ease-out;
}
dialog.dt::backdrop { background: var(--bg); }
@keyframes dt-in { from { opacity: 0; transform: translateX(24px); } }
.dt-bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px;
  min-height: 52px; padding: env(safe-area-inset-top) 12px 0; background: rgba(8, 8, 10, .94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(225, 29, 42, .3);
}
.dt-back {
  display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 10px 0 4px; border: 0; border-radius: 10px;
  background: none; color: var(--text); font: inherit; font-size: 15px; cursor: pointer;
}
.dt-back:hover { background: var(--panel-2); }
.dt-back .ico { width: 22px; height: 22px; }
.dt-bar-title { flex: 1; min-width: 0; text-align: center; margin-right: 64px; font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.dt-wrap { max-width: 820px; margin: 0 auto; padding: 14px 16px calc(92px + env(safe-area-inset-bottom)); }
dialog.dt .dt-tabs { top: calc(52px + env(safe-area-inset-top)); background: var(--bg); margin-left: -16px; margin-right: -16px; padding-left: 12px; padding-right: 12px; }
dialog.dt .player { margin: 0 -16px 12px; }
dialog.dt .player video { border-radius: 0; }
@media (min-width: 641px) { dialog.dt .player { margin: 0 0 14px; } dialog.dt .player video { border-radius: 12px; } }

/* ---------- กราฟแรงกดดัน + เรตติ้ง ---------- */
.pressure { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; margin-bottom: 14px; }
.p-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.p-head b { font-size: 14px; }
.p-legend { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.p-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.p-legend .lh { background: #6b8cff; } .p-legend .la { background: var(--accent-2); }
.p-chart { width: 100%; height: auto; display: block; }
.pb-h { fill: #6b8cff; opacity: .8; } .pb-a { fill: var(--accent-2); opacity: .8; }
.pb-h.cur, .pb-a.cur { opacity: 1; }
.p-mid { stroke: #3f3f46; stroke-width: 1; }
.p-ht { stroke: #52525b; stroke-dasharray: 3 3; }
.p-now { stroke: #fbbf24; stroke-width: 1.5; }
.p-tick { fill: #71717a; font-size: 9px; font-family: inherit; }
.pg circle { fill: #fff; } .pg text { font-size: 8px; }
.p-note { color: #71717a; font-size: 11px; margin: 4px 0 0; }

.potm { display: flex; align-items: center; gap: 12px; background: linear-gradient(90deg, rgba(251, 191, 36, .12), var(--panel)); border: 1px solid rgba(251, 191, 36, .45); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.potm-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--panel-2); flex: 0 0 48px; }
.potm-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.potm-body small { color: #fbbf24; font-size: 11px; font-weight: 700; }
.potm-body b { font-size: 15px; }
.potm-body span { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.potm-body span img, .potm-body span .crest { width: 16px; height: 16px; flex: 0 0 16px; }
.rt { flex: 0 0 auto; min-width: 34px; text-align: center; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 2px 6px; color: #111; font-variant-numeric: tabular-nums; }
.potm .rt { font-size: 15px; min-width: 44px; padding: 5px 8px; }
.r-top { background: #3b82f6; color: #fff; } .r-good { background: #22c55e; } .r-ok { background: #facc15; } .r-low { background: #f97316; }
.potm-row { box-shadow: inset 3px 0 0 #fbbf24; }
.potm-star { color: #fbbf24; font-style: normal; } .potm-star .ico { width: 13px; height: 13px; vertical-align: -1px; }

/* ---------- แชท ---------- */
.chat { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.chat-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.chat-head b { font-size: 15px; }
.chat-online { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.chat-online i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.chat-list { display: grid; gap: 8px; }
.chat-empty { text-align: center; color: var(--muted); font-size: 14px; padding: 18px 0; margin: 0; }
.cm { max-width: 86%; justify-self: start; background: var(--panel); border: 1px solid var(--line); border-radius: 4px 14px 14px 14px; padding: 7px 11px; }
.cm.mine { justify-self: end; background: rgba(225, 29, 42, .16); border-color: rgba(225, 29, 42, .4); border-radius: 14px 4px 14px 14px; }
.cm-meta { display: flex; align-items: baseline; gap: 8px; font-size: 12px; }
.cm-meta time { color: #71717a; font-size: 11px; }
.cm-text { font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.chat-rule { color: #52525b; font-size: 11px; text-align: center; margin: 12px 0 0; }

.dt-compose {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(12, 12, 14, .97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
}
.compose { max-width: 820px; margin: 0 auto; display: flex; gap: 8px; align-items: center; }
.compose textarea {
  min-height: 42px; max-height: 96px; border-radius: 21px; border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font: inherit; font-size: 16px; line-height: 22px; padding: 9px 14px; outline: none; resize: none; overflow-y: auto; display: block;
}
.compose textarea:focus { border-color: #52525b; }
.c-nick { width: 110px; flex: 0 0 110px; }
.c-text { flex: 1; min-width: 0; }
.c-me { flex: 0 0 auto; max-width: 90px; min-height: 34px; border-radius: 17px; border: 1px solid var(--line); background: var(--panel-2); color: var(--muted); font: inherit; font-size: 12px; padding: 0 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.c-send { flex: 0 0 42px; height: 42px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.c-send .ico { width: 20px; height: 20px; }
.c-send:disabled { opacity: .5; }
.c-err { max-width: 820px; margin: 4px auto 0; color: #fca5a5; font-size: 12px; min-height: 0; }
.c-err:empty { display: none; }

/* แท็บกำลังแข่งตอนยังไม่มีคู่: บอกเวลาคู่ถัดไป */
.live-next { display: grid; gap: 4px; text-align: center; background: var(--panel); border: 1px dashed var(--line); border-radius: 12px; padding: 14px 12px; margin-bottom: 14px; }
.live-next b { font-size: 15px; }
.live-next span { color: var(--muted); font-size: 13px; }

/* ---------- รายชื่อผู้เล่น: ผังสนาม ---------- */
.lu-pitch { max-width: 560px; margin: 0 auto; }
.lu-bar { display: flex; align-items: center; gap: 8px; padding: 10px 2px; flex-wrap: wrap; }
.lu-bar img, .lu-bar .crest { width: 24px; height: 24px; }
.lu-bar b { font-size: 15px; }
.lu-bar .fm { background: var(--panel-2); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; color: #e4e4e7; }
.lu-bar small { margin-left: auto; color: var(--muted); font-size: 12px; }
.pitch { position: relative; aspect-ratio: 68 / 118; border-radius: 14px; overflow: hidden;
  background: repeating-linear-gradient(0deg, #2f7d3a 0 8.33%, #2a7334 8.33% 16.66%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); }
.pitch-lines i { position: absolute; border: 2px solid rgba(255, 255, 255, .5); }
.pitch-lines .half { left: 0; right: 0; top: 50%; height: 0; border-width: 2px 0 0; }
.pitch-lines .circle { left: 50%; top: 50%; width: 26%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch-lines .box { left: 20%; right: 20%; height: 13%; }
.pitch-lines .box.top { top: 0; border-top: 0; } .pitch-lines .box.bottom { bottom: 0; border-bottom: 0; }
.pitch-lines .six { left: 36%; right: 36%; height: 5%; }
.pitch-lines .six.top { top: 0; border-top: 0; } .pitch-lines .six.bottom { bottom: 0; border-bottom: 0; }

.pl { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 2px; width: 74px; z-index: 1; }
.pl-ph { position: relative; width: 40px; height: 40px; }
.pl-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e5e7eb; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); display: block; }
.ph-none { display: grid; place-items: center; color: #111; font-weight: 700; font-size: 14px; }
.pl.pl-potm .pl-img { border-color: #fbbf24; box-shadow: 0 0 0 2px #fbbf24, 0 2px 6px rgba(0, 0, 0, .35); }
.pl-no { position: absolute; left: -6px; bottom: -3px; min-width: 17px; height: 17px; border-radius: 9px; background: #1d4ed8; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; border: 1.5px solid #fff; }
.pl-cap { position: absolute; left: -6px; top: -3px; width: 15px; height: 15px; border-radius: 50%; background: #7c3aed; color: #fff; font-size: 9px; font-weight: 800; display: grid; place-items: center; }
.pl-badges { position: absolute; right: -14px; top: -6px; display: flex; gap: 1px; }
.pl-badges > span { display: inline-flex; align-items: center; gap: 1px; background: #fff; color: #111; border-radius: 8px; font-size: 9px; font-weight: 800; padding: 1px 3px; line-height: 1.2; }
.pl-badges .ico { width: 11px; height: 11px; }
.pb-og { background: #fecaca !important; }
.pl-card { position: absolute; right: -2px; bottom: 2px; width: 8px; height: 11px; border-radius: 1.5px; background: #facc15; box-shadow: 0 0 0 1px rgba(0, 0, 0, .3); }
.pl-card.red { background: #ef4444; }
.pl-out { position: absolute; right: -16px; bottom: -4px; background: rgba(0, 0, 0, .75); color: #fca5a5; font-size: 9px; font-weight: 700; border-radius: 6px; padding: 0 3px; white-space: nowrap; }
.pl-nm { display: flex; align-items: center; gap: 3px; max-width: 74px; background: rgba(0, 0, 0, .6); border-radius: 6px; padding: 1px 4px 1px 1px; }
.pl-nm span:last-child { color: #fff; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-rt { flex: 0 0 auto; font-size: 10px; font-weight: 800; border-radius: 4px; padding: 0 3px; color: #111; line-height: 1.5; font-variant-numeric: tabular-nums; }
.pl-rt.r-top { color: #fff; }

.subs-box { margin-top: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.subs-box h4 { margin: 0 0 10px; font-size: 15px; }
.sb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sb-team { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.sb-team img, .sb-team .crest { width: 18px; height: 18px; }
.sb-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid #222228; }
.sb-img { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; object-fit: cover; background: #e5e7eb; }
.sb-row .ph-none { font-size: 11px; }
.sb-n { flex: 1; min-width: 0; display: grid; }
.sb-n b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-n em { font-style: normal; color: #60a5fa; }
.sb-n small { color: #71717a; font-size: 11px; }
.sb-row:not(.played) .sb-n b { color: #a1a1aa; }
.sb-in { color: #4ade80; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sb-ev { display: inline-flex; align-items: center; font-size: 10px; } .sb-ev .ico { width: 12px; height: 12px; }
.sb-row .pl-card { position: static; flex: 0 0 8px; }
.lu-legend { color: #71717a; font-size: 11px; line-height: 1.7; margin: 10px 2px 0; }
.lu-legend .ico { width: 11px; height: 11px; vertical-align: -1px; }
.lu-legend .pl-card { position: static; display: inline-block; vertical-align: -1px; }
@media (max-width: 420px) {
  .pl { width: 62px; } .pl-nm { max-width: 62px; }
  .pl-ph, .pl-img { width: 34px; height: 34px; }
  .sb-grid { grid-template-columns: 1fr; }
}
