:root {
  --font: "Be Vietnam Pro", system-ui, Arial, sans-serif;
  --title: "Barlow Condensed", "Be Vietnam Pro", sans-serif;
  --bg: #06100b;
  --bg2: #0a1711;
  --card: #0f1f17;
  --card2: #183024;
  --surface: rgba(16, 33, 25, 0.86);
  --line: rgba(170, 230, 195, 0.1);
  --line2: rgba(170, 230, 195, 0.18);
  --text: #eaf5ee;
  --muted: #8eab9a;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.045) inset, 0 14px 34px -18px rgba(0, 0, 0, 0.85);
  --accent: #3ddc84;
  --accent2: #1fa865;
  --gold: #ffd23f;
  --red: #ff5a5f;
  --orange: #ffa94d;
  --blue: #5cc8ff;
  --club1: #1fa865;
  --club2: #fff;
  --radius: 18px;
  --nav-h: 64px;
  --rail: 236px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  background:
    radial-gradient(1100px 520px at 50% -260px, color-mix(in srgb, var(--club1) 30%, transparent), transparent 70%),
    radial-gradient(900px 600px at 110% 110%, rgba(61, 220, 132, 0.06), transparent 60%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.012) 0 90px, transparent 90px 180px),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 14px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
::selection {
  background: rgba(61, 220, 132, 0.35);
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(170, 230, 195, 0.2) transparent;
}
button,
select,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
a {
  color: var(--accent);
}
.t {
  font-family: var(--title);
  letter-spacing: 0.02em;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.right {
  text-align: right;
}
.center {
  text-align: center;
}
.nowrap {
  white-space: nowrap;
}
.grow {
  flex: 1;
  min-width: 0;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.wrap {
  flex-wrap: wrap;
}
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#app {
  max-width: 820px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom));
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)), var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 2px 6px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  transition: transform 0.12s var(--ease), border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.btn:active:not(:disabled) {
  transform: scale(0.97);
}
.btn:hover:not(:disabled) {
  border-color: rgba(170, 230, 195, 0.36);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)), var(--card);
}
.btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.btn.primary {
  border-color: transparent;
  background: linear-gradient(180deg, #63f2a6, #22b56b);
  color: #03170b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.45) inset, 0 6px 18px -4px rgba(61, 220, 132, 0.45);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn.primary:hover:not(:disabled) {
  border-color: transparent;
  background: linear-gradient(180deg, #7af7b5, #27c476);
}
.btn.gold {
  border-color: transparent;
  background: linear-gradient(180deg, #ffe680, #f2ad0a);
  color: #2c1d00;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 6px 18px -6px rgba(255, 200, 40, 0.5);
}
.btn.danger {
  border-color: rgba(255, 90, 95, 0.4);
  color: var(--red);
}
.btn.sm {
  min-height: 32px;
  padding: 0 11px;
  font-size: 13px;
  border-radius: 10px;
}
.btn.block {
  width: 100%;
}
.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Thanh trên ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--club1) 26%, rgba(6, 16, 11, 0.9)), rgba(6, 16, 11, 0.86) 60%);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--club1), var(--club2) 35%, transparent 80%);
  opacity: 0.85;
}
.top .crest {
  width: 44px;
  height: 44px;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.5));
}
.crest {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  color: var(--c2);
  font: 800 11px/1 var(--title);
  letter-spacing: 0;
  text-align: center;
}
.club-logo {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  object-fit: contain;
}
.crest.no-logo {
  overflow: hidden;
  border: 2px solid var(--c2);
  border-radius: 10px 10px 18px 18px;
  background: linear-gradient(160deg, var(--c1), color-mix(in srgb, var(--c1) 60%, #000));
}
.crest-code {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}
.crest.sm {
  width: 26px;
  height: 26px;
  font-size: 8px;
}
.crest.no-logo.sm {
  border-width: 1.5px;
  border-radius: 7px 7px 12px 12px;
}
.crest.lg {
  width: 64px;
  height: 64px;
  font-size: 16px;
}
.crest.no-logo.lg {
  border-width: 3px;
}
.top .club {
  font: 800 21px/1.05 var(--title);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.top .sub {
  font-size: 12px;
  color: var(--muted);
}
.btn.go {
  min-height: 44px;
  padding: 0 20px;
  border-radius: 14px;
  font-size: 15px;
}

/* ---------- Thanh điều hướng dưới ---------- */
.nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 10;
  display: flex;
  width: min(820px, 100%);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom);
  transform: translateX(-50%);
  background: rgba(6, 14, 10, 0.88);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
}
.nav-brand {
  display: none;
}
.nav button {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  position: relative;
  transition: color 0.15s;
}
.nav button .ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 28px;
  border-radius: 14px;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav button .lbl-s {
  display: none;
}
@media (max-width: 640px) {
  .nav button .lbl {
    display: none;
  }
  .nav button .lbl-s {
    display: inline;
  }
}
.nav svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nav button:hover {
  color: var(--text);
}
.nav button.on {
  color: var(--accent);
}
.nav button.on .ic {
  background: rgba(61, 220, 132, 0.16);
  box-shadow: 0 0 18px -4px rgba(61, 220, 132, 0.6);
}
.nav button.on::before {
  content: none;
}
.badge {
  position: absolute;
  top: 5px;
  right: calc(50% - 24px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: linear-gradient(180deg, #ff6b70, #e5383e);
  box-shadow: 0 0 0 2px #06100b;
  color: #fff;
  font: 700 10px/17px var(--font);
  font-style: normal;
}

/* ---------- Thẻ ---------- */
.page {
  padding: 14px 12px;
  display: grid;
  gap: 14px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.008) 120px), var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card > h3,
.card-h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 700 16px/1.2 var(--title);
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #c3dccd;
}
.card > h3::before {
  content: "";
  flex: none;
  width: 4px;
  height: 15px;
  margin-right: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent2));
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.5);
}
.card-b {
  padding: 13px 16px;
}
.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 640px) {
  .grid2 {
    grid-template-columns: 1fr;
  }
}

/* trận tới */
.next {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 22px 12px 18px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 45%, color-mix(in srgb, var(--hc, transparent) 34%, transparent), transparent 46%),
    radial-gradient(circle at 82% 45%, color-mix(in srgb, var(--ac, transparent) 34%, transparent), transparent 46%);
}
.next .crest.lg {
  width: 76px;
  height: 76px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.55));
}
.next .team {
  display: grid;
  justify-items: center;
  gap: 6px;
  font: 700 17px/1.15 var(--title);
  letter-spacing: 0.02em;
}
.next .vs {
  font: 800 34px/1 var(--title);
  background: linear-gradient(180deg, #fff, #8eab9a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 11px;
  font-weight: 700;
}
.pill.green {
  background: rgba(61, 220, 132, 0.15);
  color: var(--accent);
}
.pill.red {
  background: rgba(255, 90, 95, 0.15);
  color: var(--red);
}
.pill.gold {
  background: rgba(255, 210, 63, 0.15);
  color: var(--gold);
}
.pill.blue {
  background: rgba(92, 200, 255, 0.15);
  color: var(--blue);
}
.form {
  display: inline-flex;
  gap: 3px;
}
.form i {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 4px;
  font: 700 10px/1 var(--font);
  font-style: normal;
  color: #04170c;
}
.form .W {
  background: var(--accent);
}
.form .D {
  background: #b9c7be;
}
.form .L {
  background: var(--red);
  color: #fff;
}
.bar {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.5);
}

/* hộp thư */
.mail {
  border-top: 1px solid var(--line);
}
.mail:first-child {
  border-top: 0;
}
.mail summary:hover {
  background: rgba(255, 255, 255, 0.025);
}
.mail summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  list-style: none;
}
.mail summary::-webkit-details-marker {
  display: none;
}
.mail .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  font-size: 16px;
}
.mail.unread summary .ttl {
  font-weight: 700;
}
.mail.unread summary .ico {
  box-shadow: inset 0 0 0 2px var(--accent);
}
.mail .body {
  padding: 0 14px 12px 56px;
  white-space: pre-line;
  color: #cfe3d6;
}

/* ---------- Bảng ---------- */
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 7px 6px;
  text-align: center;
  white-space: nowrap;
}
th {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  background: rgba(0, 0, 0, 0.18);
}
tbody tr {
  border-top: 1px solid var(--line);
}
td.l,
th.l {
  text-align: left;
}
tr.me {
  background: linear-gradient(90deg, color-mix(in srgb, var(--club1) 32%, transparent), rgba(61, 220, 132, 0.08));
}
tr.me td {
  font-weight: 700;
}
tr.click {
  cursor: pointer;
}
tr.click:hover {
  background: rgba(255, 255, 255, 0.045);
}
tbody tr {
  transition: background 0.12s;
}
.zone-up td:first-child {
  box-shadow: inset 3px 0 0 var(--accent);
}
.zone-po td:first-child {
  box-shadow: inset 3px 0 0 var(--gold);
}
.zone-down td:first-child {
  box-shadow: inset 3px 0 0 var(--red);
}
.tclub {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 210px;
}
.scroll-x {
  overflow-x: auto;
}

/* ---------- Tabs ---------- */
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.3);
}
.tabs button {
  flex: 1;
  min-height: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  transition: color 0.15s, background 0.2s;
}
.tabs button:hover {
  color: var(--text);
}
.tabs button.on {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  color: var(--text);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 3px 10px rgba(0, 0, 0, 0.35);
}

/* ---------- Sân bóng & đội hình ---------- */
.pitch {
  position: relative;
  /* rộng cố định: các ô cầu thủ đặt tuyệt đối nên không tự tạo chiều rộng */
  width: min(100%, calc(62vh * 68 / 80), 520px);
  aspect-ratio: 68 / 80;
  justify-self: center;
  border-radius: 14px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 68 80' preserveAspectRatio='none'%3E%3Cg fill='none' stroke='white' stroke-opacity='.42' stroke-width='.35'%3E%3Crect x='1.5' y='1.5' width='65' height='77'/%3E%3Cpath d='M1.5 40h65'/%3E%3Ccircle cx='34' cy='40' r='7'/%3E%3Crect x='14' y='1.5' width='40' height='12.6'/%3E%3Crect x='24.8' y='1.5' width='18.4' height='4.2'/%3E%3Crect x='14' y='65.9' width='40' height='12.6'/%3E%3Crect x='24.8' y='74.3' width='18.4' height='4.2'/%3E%3Cpath d='M28.6 14.1a7 7 0 0 0 10.8 0M28.6 65.9a7 7 0 0 1 10.8 0'/%3E%3C/g%3E%3Cg fill='white' fill-opacity='.5'%3E%3Ccircle cx='34' cy='40' r='.6'/%3E%3Ccircle cx='34' cy='10' r='.45'/%3E%3Ccircle cx='34' cy='70' r='.45'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat,
    radial-gradient(ellipse at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.32)),
    repeating-linear-gradient(180deg, #23874a 0 8.33%, #1e7a42 8.33% 16.66%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 18px 40px -16px rgba(0, 0, 0, 0.8), inset 0 0 40px rgba(0, 0, 0, 0.25);
  overflow: hidden;
}
.slot {
  position: absolute;
  display: grid;
  justify-items: center;
  gap: 2px;
  width: 21%;
  transform: translate(-50%, -50%);
  border: 0;
  background: none;
  padding: 0;
}
.slot .shirt {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--club1);
  border: 2px solid var(--club2);
  color: var(--club2);
  font: 800 14px/1 var(--title);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s var(--ease), box-shadow 0.15s;
}
.slot:hover .shirt {
  transform: translateY(-2px) scale(1.04);
}
.slot.gk .shirt {
  background: #e8b400;
  border-color: #fff6cc;
  color: #2b2000;
}
.slot .shirt .no {
  font: inherit;
}
/* ảnh mặt: vòng tròn màu áo, số áo thành huy hiệu nhỏ ở góc */
.slot .shirt {
  position: relative;
}
.slot .shirt.has-face {
  width: 46px;
  height: 46px;
}
.shirt .face,
.pface .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 0;
  clip-path: circle(50%);
}
.face.sil {
  fill: currentColor;
  opacity: 0.85;
}
.playercell {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 155px;
}
.listface {
  position: relative;
  flex: none;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: linear-gradient(145deg, var(--club1), var(--club2));
  color: rgba(255, 255, 255, 0.82);
}
.listface .face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.slot .shirt.has-face .no {
  position: absolute;
  right: -7px;
  bottom: -3px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 3px;
  border-radius: 10px;
  background: var(--club1);
  border: 1.5px solid var(--club2);
  color: var(--club2);
  font: 800 10px/1 var(--title);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}
.slot.gk .shirt.has-face .no {
  background: #e8b400;
  border-color: #fff6cc;
  color: #2b2000;
}
.pface {
  position: relative;
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--c1);
  border: 2px solid var(--c2);
  color: var(--c2);
}
.slot .nm {
  max-width: 100%;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(4, 12, 8, 0.72);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slot .rl {
  font-size: 10px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
}
.slot.empty .shirt {
  background: rgba(0, 0, 0, 0.3);
  border-style: dashed;
  color: #fff;
}
.slot.sel .shirt {
  box-shadow: 0 0 0 3px var(--gold), 0 0 18px var(--gold);
}
.slot.warn .shirt {
  box-shadow: 0 0 0 3px var(--red);
}
.fitbar {
  width: 34px;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}
.fitbar i {
  display: block;
  height: 100%;
  background: var(--accent);
}
.bench {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  gap: 6px;
}
.benchslot {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  text-align: left;
  font-size: 12px;
  transition: border-color 0.15s;
}
.benchslot:hover {
  border-color: var(--line2);
}
.benchslot.sel {
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold);
}

/* danh sách cầu thủ */
.plist td {
  padding: 6px 5px;
}
.pos {
  display: inline-block;
  min-width: 36px;
  padding: 2px 5px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}
.pos.GK {
  background: #e8b40033;
  color: #ffd84d;
}
.pos.DF {
  background: #5cc8ff26;
  color: #7fd6ff;
}
.pos.MF {
  background: #3ddc8426;
  color: #6ff0a8;
}
.pos.FW {
  background: #ff5a5f26;
  color: #ff8a8e;
}
.stars {
  color: var(--gold);
  letter-spacing: -1px;
  font-size: 12px;
}
.stars .half {
  opacity: 0.5;
}
.stars .off {
  color: rgba(255, 255, 255, 0.15);
}
.flag {
  font-size: 11px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}
.flag.fs {
  background: rgba(255, 169, 77, 0.18);
  color: var(--orange);
}
.status-inj {
  color: var(--red);
  font-weight: 800;
}
.status-sus {
  color: var(--orange);
  font-weight: 800;
}
tr.inxi {
  background: rgba(61, 220, 132, 0.08);
}
tr.onbench {
  background: rgba(92, 200, 255, 0.06);
}
tr.picked {
  background: rgba(255, 210, 63, 0.15);
}

/* ---------- Lựa chọn chiến thuật ---------- */
.seg {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.seg button {
  flex: 1 1 auto;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 600;
  font-size: 13px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.seg button:hover {
  border-color: var(--line2);
}
.seg button.on {
  border-color: rgba(61, 220, 132, 0.7);
  background: linear-gradient(180deg, rgba(61, 220, 132, 0.24), rgba(61, 220, 132, 0.1));
  color: #8af7bd;
  box-shadow: 0 0 14px -4px rgba(61, 220, 132, 0.55);
}
.field {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}
.field:first-of-type {
  border-top: 0;
}
.field label {
  font-weight: 700;
}

/* ---------- Hộp thoại ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(2, 7, 4, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: fade 0.2s ease-out;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.sheet {
  width: min(580px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line2);
  border-radius: 22px;
  background: linear-gradient(180deg, #132a1e, #0a1711 260px);
  box-shadow: 0 30px 80px -10px rgba(0, 0, 0, 0.75), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
  animation: pop 0.26s var(--ease);
}
@keyframes pop {
  from {
    transform: translateY(12px) scale(0.98);
    opacity: 0;
  }
}
.sheet-h {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(19, 42, 30, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* hồ sơ cầu thủ: đầu thẻ kiểu thẻ cầu thủ, nền màu CLB */
.sheet-h.ph {
  align-items: flex-end;
  padding: 18px 16px 14px;
  background:
    radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--c1) 70%, transparent), transparent 62%),
    linear-gradient(120deg, color-mix(in srgb, var(--c1) 38%, #0b1812), rgba(14, 30, 22, 0.97) 70%);
}
.sheet-h.ph .pface {
  width: 84px;
  height: 84px;
  border-width: 3px;
  box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.7);
}
.sheet-h.ph .x {
  align-self: flex-start;
}
.ph-ovr {
  display: grid;
  justify-items: center;
  align-self: center;
  min-width: 54px;
  padding: 6px 8px 4px;
  border-radius: 12px;
  background: linear-gradient(170deg, #ffe680, #d99a06);
  color: #2a1a00;
  box-shadow: 0 6px 16px -4px rgba(255, 200, 40, 0.5), 0 1px 0 rgba(255, 255, 255, 0.6) inset;
  font: 800 28px/1 var(--title);
}
.ph-ovr small {
  font: 800 11px/1.2 var(--title);
  letter-spacing: 0.08em;
}
.ph-ovr.silver {
  background: linear-gradient(170deg, #f1f5f3, #9fb0a7);
  color: #17211c;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5), 0 1px 0 #fff inset;
}
.ph-ovr.bronze {
  background: linear-gradient(170deg, #f3c08a, #a86a32);
  color: #2b1605;
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.5), 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}
.ph-ovr.fog {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  box-shadow: none;
}
.sheet-b {
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr); /* nội dung dài không kéo rộng sheet (tràn ngang trên điện thoại) */
  gap: 12px;
}
.x {
  margin-left: auto;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.25);
  font-size: 16px;
  transition: background 0.15s;
}
.x:hover {
  background: rgba(255, 255, 255, 0.1);
}
.attrs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px 18px;
}
.attrs h4 {
  margin: 0 0 4px;
  font: 700 13px var(--title);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.attr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.05);
  font-size: 13px;
}
.attr b {
  min-width: 30px;
  padding: 1px 4px;
  border-radius: 7px;
  text-align: center;
  font: 800 14px var(--title);
  background: rgba(255, 255, 255, 0.04);
}
.a1 {
  color: #ff8a8e;
}
.a2 {
  color: #ffd84d;
}
.a3 {
  color: #b7f0c9;
}
.a4 {
  background: rgba(61, 220, 132, 0.2);
  color: #6ff0a8;
}
.kv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}
.kv div {
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.3));
}
.kv small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.kv b {
  font-size: 14px;
}
textarea.code {
  width: 100%;
  min-height: 120px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.3);
  font: 12px/1.4 ui-monospace, Consolas, monospace;
  word-break: break-all;
  resize: vertical;
}

/* ---------- Trận đấu trực tiếp ---------- */
.live {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  max-width: 820px;
  margin: 0 auto;
  background: radial-gradient(900px 400px at 50% -120px, rgba(61, 220, 132, 0.1), transparent 70%), var(--bg);
  box-shadow: 0 0 0 100vmax rgba(2, 6, 4, 0.75);
}
.scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 14px 12px 12px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--hc, #1fa865) 42%, transparent), transparent 38%, transparent 62%, color-mix(in srgb, var(--ac, #1565c0) 42%, transparent)),
    linear-gradient(180deg, #102a1d, #08140e);
  border-bottom: 1px solid var(--line2);
}
.scoreboard .tm {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-weight: 700;
  text-align: center;
}
.scoreboard .sc {
  padding: 6px 14px 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.35));
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
  font: 800 44px/1 var(--title);
  letter-spacing: 0.05em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.scoreboard .min {
  display: block;
  margin-top: 4px;
  font: 700 13px var(--font);
  letter-spacing: 0.04em;
  color: var(--accent);
}
.livestats {
  display: grid;
  gap: 5px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.livestats .ls {
  display: grid;
  grid-template-columns: 34px 1fr 34px;
  align-items: center;
  gap: 8px;
}
.dual {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.dual i {
  display: block;
  background: linear-gradient(90deg, var(--accent2), var(--accent));
}
.dual i + i {
  background: linear-gradient(90deg, var(--blue), #2f9fe0);
}
.feed {
  flex: 1;
  overflow-y: auto;
  padding: 8px 12px;
}
.ev {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 8px;
  padding: 7px 4px;
  border-bottom: 1px solid var(--line);
  animation: slide 0.25s ease-out;
}
@keyframes slide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.ev .m {
  font: 700 15px var(--title);
  color: var(--muted);
  text-align: right;
}
.ev.goal {
  background: linear-gradient(90deg, rgba(61, 220, 132, 0.22), rgba(61, 220, 132, 0.04));
  border-radius: 10px;
  box-shadow: inset 3px 0 0 var(--accent);
}
.ev.goal .txt {
  font-weight: 700;
}
.ev.red .txt {
  color: var(--red);
  font-weight: 700;
}
.ev.yellow .txt::before {
  content: "🟨 ";
}
.ev.red .txt::before {
  content: "🟥 ";
}
.ev.injury .txt::before {
  content: "🚑 ";
}
.ev.sub .txt::before {
  content: "🔄 ";
}
.ev.save .txt::before {
  content: "🧤 ";
}
.ev.half,
.ev.full,
.ev.kickoff {
  color: var(--gold);
  font-weight: 700;
}
.ev .home-ev {
  border-left: 3px solid var(--accent);
  padding-left: 6px;
}
.ev .away-ev {
  border-left: 3px solid var(--blue);
  padding-left: 6px;
}
.livebar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(6, 14, 10, 0.92);
}
.subpanel {
  max-height: 46vh;
  overflow-y: auto;
  border-top: 1px solid var(--line);
  background: #102419;
}
.subrow {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.subrow.sel {
  background: rgba(255, 210, 63, 0.15);
}
.subrow.off {
  opacity: 0.4;
  cursor: default;
}

/* ---------- Màn mở đầu ---------- */
.hero {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 16px 22px;
  text-align: center;
  isolation: isolate;
}
.hero-pitch {
  position: absolute;
  inset: -10px 0 auto;
  z-index: -1;
  width: min(760px, 120vw);
  height: 360px;
  margin: 0 auto;
  justify-self: center;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(closest-side, #000 35%, transparent);
  mask-image: radial-gradient(closest-side, #000 35%, transparent);
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.hero-chips span {
  padding: 4px 11px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 12px;
  font-weight: 600;
  color: #cfe5d8;
}
.hero-chips b {
  color: var(--accent);
}
.hero h1 {
  margin: 0;
  font: 800 54px/0.92 var(--title);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff 30%, #a9c7b5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.6));
}
.hero h1 em {
  display: block;
  background: linear-gradient(180deg, #8affc1, #22b56b);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: normal;
}
.hero p {
  margin: 0;
  max-width: 440px;
  color: var(--muted);
}
.ball {
  width: 84px;
  height: 84px;
  filter: drop-shadow(0 10px 24px rgba(61, 220, 132, 0.45));
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  50% {
    transform: translateY(-6px) rotate(14deg);
  }
}
.clubpick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
}
.clubbtn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.01)), var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition: border-color 0.15s, transform 0.12s var(--ease);
}
.clubbtn:hover {
  border-color: var(--line2);
  transform: translateY(-1px);
}
.clubbtn.on {
  border-color: var(--accent);
  background: linear-gradient(120deg, rgba(61, 220, 132, 0.2), rgba(61, 220, 132, 0.05)), var(--surface);
  box-shadow: 0 0 0 1px var(--accent), 0 8px 24px -10px rgba(61, 220, 132, 0.5);
}
.back {
  display: inline-block;
  padding: 10px 14px 0;
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + 18px);
  z-index: 60;
  max-width: 90vw;
  padding: 11px 18px;
  border-radius: 14px;
  background: rgba(24, 52, 37, 0.95);
  border: 1px solid var(--line2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  font-weight: 600;
  transform: translateX(-50%);
  animation: toast 0.25s var(--ease);
}
@keyframes toast {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
}

/* tuyển trạch */
.stars.est {
  opacity: 0.6;
  font-style: italic;
}
.attr b.range {
  min-width: 44px;
  font-size: 12px;
  opacity: 0.85;
}
.attr b.fog {
  color: var(--muted);
}
.scoutbox {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 10px;
}
.pill.grade {
  font-weight: 800;
  min-width: 22px;
  text-align: center;
}
.pill.gA {
  background: rgba(61, 220, 132, 0.25);
  color: #6ff0a8;
}
.pill.gB {
  background: rgba(120, 190, 255, 0.2);
  color: #9fd0ff;
}
.pill.gC {
  background: rgba(255, 216, 77, 0.18);
  color: #ffd84d;
}
.pill.gD {
  background: rgba(255, 90, 95, 0.18);
  color: #ff8a8e;
}
/* thanh tab nhiều mục: điện thoại thì cuộn ngang thay vì xuống dòng */
@media (max-width: 520px) {
  .tabs {
    overflow-x: auto;
    scrollbar-width: none;
  }
  .tabs button {
    flex: 1 0 auto;
    padding: 0 10px;
    white-space: nowrap;
  }
}
.attr b .up {
  font-style: normal;
  font-size: 9px;
  margin-right: 2px;
  color: #6ff0a8;
  vertical-align: 1px;
}
.flag.loan {
  background: rgba(120, 190, 255, 0.18);
  color: #9fd0ff;
}
table.career {
  font-size: 12px;
}
table.career td,
table.career th {
  padding: 4px 6px;
}
.kv > div > span {
  display: block;
  font-weight: 600;
}
/* chỉ số tổng */
.ovr {
  display: inline-block;
  min-width: 26px;
  padding: 1px 5px;
  border-radius: 6px;
  font: 800 13px/1.3 var(--title);
  text-align: center;
  vertical-align: middle;
}
.ovr.o4 {
  background: rgba(61, 220, 132, 0.22);
  color: #6ff0a8;
}
.ovr.o3 {
  background: rgba(183, 240, 201, 0.14);
  color: #b7f0c9;
}
.ovr.o2 {
  background: rgba(255, 216, 77, 0.14);
  color: #ffd84d;
}
.ovr.o1 {
  background: rgba(255, 138, 142, 0.14);
  color: #ff8a8e;
}
.ovr.est {
  opacity: 0.75;
  font-style: italic;
}

/* ---------- Trận đấu 2D ---------- */
.lv-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lv-side {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.lv-pitch {
  flex: none;
  background: #1f5f2c;
}
.lv-pitch canvas {
  display: block;
  width: 100%;
  aspect-ratio: 113 / 74.4;
}
.live.has2d .scoreboard {
  padding: 8px 12px 6px;
}
.live.has2d .scoreboard .sc {
  font-size: 34px;
}
.live.has2d .livestats {
  gap: 3px;
  padding: 6px 14px;
}
@media (min-width: 980px) {
  .live.has2d {
    max-width: 1240px;
  }
  .live.has2d .lv-main {
    flex-direction: row;
  }
  .live.has2d .lv-pitch {
    flex: 1.6;
    align-self: flex-start;
    padding: 10px;
    background: none;
  }
  .live.has2d .lv-side {
    flex: 1;
    border-left: 1px solid var(--line);
  }
}

/* ---------- Tài chính & nhân sự (tab CLB) ---------- */
.fintable td,
.fintable th {
  white-space: nowrap;
}
.fintable tr.grp td {
  padding-top: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.finbudget {
  display: flex;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}
.finbudget i {
  display: block;
  background: var(--accent);
}
.finbudget i.st {
  background: var(--gold);
}
.finchart {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 120px;
}
.finchart .bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 3px;
}
.finchart .bar i {
  display: block;
  width: 100%;
  border-radius: 3px 3px 0 0;
}
.finchart .bar small {
  font-size: 10px;
  color: var(--muted);
}
.qbar {
  display: inline-block;
  width: 54px;
  height: 6px;
  margin-right: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
  vertical-align: middle;
}
.qbar i {
  display: block;
  height: 100%;
}
.scorers {
  display: grid;
  gap: 1px;
  line-height: 1.35;
}

/* ---------- Bố cục điện thoại: hộp thoại trượt lên từ đáy ---------- */
@media (max-width: 640px) {
  .modal {
    place-items: end center;
    padding: 0;
  }
  .sheet {
    width: 100%;
    max-height: 92vh;
    border-radius: 22px 22px 0 0;
    border-bottom: 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: sheet-up 0.3s var(--ease);
  }
  .sheet::before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 2;
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto -4px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(6px);
  }
  .hero h1 {
    font-size: 46px;
  }
}
@keyframes sheet-up {
  from {
    transform: translateY(40%);
    opacity: 0.4;
  }
}

/* ---------- Máy tính: thanh điều hướng thành cột bên trái ---------- */
@media (min-width: 1100px) {
  #app.ingame {
    max-width: 1320px;
    padding: 0 0 28px var(--rail);
  }
  #app.ingame .page {
    padding: 20px 22px;
    gap: 16px;
  }
  #app.ingame .top {
    padding: 14px 22px;
  }
  .nav {
    left: max(0px, calc(50% - 660px));
    top: 0;
    bottom: 0;
    width: var(--rail);
    height: 100vh;
    flex-direction: column;
    gap: 4px;
    padding: 18px 14px;
    transform: none;
    border-top: 0;
    border-right: 1px solid var(--line);
    background: linear-gradient(180deg, color-mix(in srgb, var(--club1) 14%, rgba(5, 12, 9, 0.9)), rgba(5, 12, 9, 0.9) 40%);
  }
  .nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 8px 18px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    font: 800 20px/0.95 var(--title);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .nav-brand svg {
    width: 34px;
    height: 34px;
    flex: none;
    stroke: none;
  }
  .nav-brand em {
    display: block;
    font-style: normal;
    color: var(--accent);
  }
  .nav button {
    flex: none;
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    height: 46px;
    padding: 0 10px 0 6px;
    border-radius: 14px;
    font-size: 14px;
  }
  .nav button .ic {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .nav button.on {
    background: linear-gradient(90deg, rgba(61, 220, 132, 0.16), rgba(61, 220, 132, 0.03));
    color: #8af7bd;
  }
  .nav button.on::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 4px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
  }
  .nav button:hover:not(.on) {
    background: rgba(255, 255, 255, 0.04);
  }
  .badge {
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
  }
  .toast {
    bottom: 28px;
    margin-left: calc(var(--rail) / 2);
  }
}

/* sơ đồ: lưới ô đều nhau thay vì hàng co giãn */
.seg.forms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
  grid-auto-flow: dense; /* ô rộng 2 không vừa cuối hàng thì ô nhỏ phía sau lấp chỗ trống */
}
.seg.forms button {
  padding: 0 6px;
  font-family: var(--title);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* tên sơ đồ dài ("3-4-3 kim cương") chiếm 2 ô */
.seg.forms button.wide {
  grid-column: span 2;
}
.lineup {
  display: grid;
  gap: 10px;
}
.lineup-side {
  display: grid;
  align-content: start;
  gap: 10px;
}
@media (max-width: 520px) {
  .seg.forms {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
  .seg.forms button {
    min-height: 36px;
    font-size: 14px;
    line-height: 1.05;
  }
}
.hero-pitch svg {
  display: block;
  width: 100%;
  height: 100%;
}
@media (min-width: 900px) {
  .lineup {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 18px;
  }
  .lineup .pitch {
    width: min(calc(74vh * 68 / 80), 470px);
  }
}

/* ghế dự bị: phần thông tin thêm chỉ hiện khi đủ chỗ (máy tính) */
.benchslot .bs-face,
.benchslot .bs-sub,
.benchslot .bs-info {
  display: none;
}
.benchslot .bs-name {
  display: grid;
  min-width: 0;
}
@media (min-width: 900px) {
  .lineup .bench {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lineup .benchslot {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 7px 12px 7px 8px;
    font-size: 13px;
  }
  .lineup .benchslot.empty {
    justify-content: center;
    border-style: dashed;
  }
  .lineup .benchslot .bs-face {
    display: block;
    flex: none;
  }
  .lineup .benchslot .bs-face .listface {
    display: block;
  }
  .lineup .benchslot .pos {
    flex: none;
  }
  .lineup .benchslot .bs-name {
    flex: 1;
    display: grid;
  }
  .lineup .benchslot .bs-name b {
    font-size: 14px;
  }
  .lineup .benchslot .bs-sub {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
  }
  .lineup .benchslot .bs-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: none;
  }
  .lineup .benchslot .bs-info small {
    min-width: 32px;
    color: var(--muted);
    font-size: 11.5px;
  }
  .bs-fit {
    display: block;
    width: 54px;
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
  }
  .bs-fit i {
    display: block;
    height: 100%;
    border-radius: 3px;
  }
}

/* hồ sơ cầu thủ: sơ đồ vị trí (kiểu eFootball) cạnh bảng thông tin */
.pinfo {
  display: grid;
  gap: 10px;
}
@media (min-width: 520px) {
  .pinfo {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
  }
}
.posmap {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-rows: repeat(6, 38px);
  gap: 4px;
  width: min(100%, 260px);
  justify-self: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.32);
}
.pm {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(234, 245, 238, 0.45);
  line-height: 1;
}
.pm small {
  font: 700 10px/1 var(--title);
  letter-spacing: 0.06em;
}
.pm b {
  font: 800 16px/1 var(--title);
}
.pm.ok {
  background: linear-gradient(180deg, #14a46c, #0d8256);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}
.pm.main {
  background: linear-gradient(180deg, #3cf0a8, #13c47f);
  color: #03170b;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 0 14px -2px rgba(61, 220, 132, 0.6);
}

/* lối chơi + PlayStyles trong hồ sơ cầu thủ */
.pstyle {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line2);
  border-radius: 14px;
  background: linear-gradient(120deg, rgba(61, 220, 132, 0.12), rgba(61, 220, 132, 0.02) 60%), rgba(0, 0, 0, 0.2);
}
.ps-main {
  display: grid;
  gap: 1px;
}
.ps-main small {
  font: 700 11px var(--title);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ps-main b {
  font: 800 22px/1.1 var(--title);
  letter-spacing: 0.02em;
  color: #8af7bd;
}
.ps-main em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
}
.pschips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pschip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border: 1px solid var(--line2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
  font-weight: 600;
  cursor: help;
}
.pschip.plus {
  border-color: rgba(255, 210, 63, 0.55);
  background: linear-gradient(180deg, rgba(255, 210, 63, 0.2), rgba(255, 210, 63, 0.06));
  color: #ffe58a;
}
.pschip b {
  color: var(--gold);
}

/* tên CLB bấm được (cúp châu Âu): chữ thường, gạch chân khi rê chuột */
.tclub .clk {
  font-weight: 600;
  cursor: pointer;
}
.tclub .clk:hover {
  color: var(--accent);
  text-decoration: underline;
}
