/* K77HTK — giao diện ưu tiên điện thoại.
   Đặt biến màu ở :root, bản tối chỉ đổi biến chứ không viết lại thành phần. */

:root {
  --nen: #f4f6f8;
  --the: #ffffff;
  --vien: #e3e8ee;
  --chu: #16202b;
  --chu-nhat: #667487;
  --chinh: #0f766e;
  --chinh-nhat: #d7f0eb;
  --chinh-dam: #0b5b55;
  --thang: #16a34a;
  --thua: #dc2626;
  --vang: #d97706;
  --vang-nhat: #fef3c7;
  --bong: 0 1px 2px rgba(16, 32, 43, .06), 0 4px 14px rgba(16, 32, 43, .05);
  --bo: 14px;
  --duoi: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --nen: #0d1117;
    --the: #161b22;
    --vien: #26303c;
    --chu: #e6edf3;
    --chu-nhat: #8b97a6;
    --chinh: #2dd4bf;
    --chinh-nhat: #10312e;
    --chinh-dam: #5eead4;
    --thang: #4ade80;
    --thua: #f87171;
    --vang: #fbbf24;
    --vang-nhat: #3a2c0a;
    --bong: 0 1px 2px rgba(0, 0, 0, .4);
  }
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  padding-bottom: calc(var(--duoi) + env(safe-area-inset-bottom));
  overflow-wrap: break-word;
}

a { color: var(--chinh); text-decoration: none; }

/* ---------------------------------------------------------------- Đầu trang */
.dau {
  position: sticky; top: 0; z-index: 30;
  background: var(--chinh);
  color: #fff;
  padding: env(safe-area-inset-top) 0 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .12);
}
.dau-tren {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 8px;
}
.hieu { color: #fff; font-weight: 700; font-size: 17px; letter-spacing: .2px; }
.dau-tren .phai, .dau-tren > a:last-child { margin-left: auto; }
.dau-tren form.phai { display: flex; align-items: center; gap: 8px; }
.nut-tho {
  background: rgba(255, 255, 255, .16); color: #fff; border: 0;
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit;
}
.the-nhat {
  background: rgba(255, 255, 255, .16); color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 12px;
}

.tab-chinh { display: flex; }
.tab-chinh a {
  flex: 1; text-align: center; padding: 11px 4px 10px;
  color: rgba(255, 255, 255, .72); font-weight: 600; font-size: 15px;
  border-bottom: 3px solid transparent;
}
.tab-chinh a.chon { color: #fff; border-bottom-color: #fff; }
.tab-chinh span { margin-right: 4px; }

/* -------------------------------------------------------------- Thanh dưới */
.thanh-duoi {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: var(--the);
  border-top: 1px solid var(--vien);
  padding-bottom: env(safe-area-inset-bottom);
}
.thanh-duoi a {
  flex: 1; text-align: center; padding: 8px 2px 7px;
  color: var(--chu-nhat); font-size: 11px; font-weight: 600;
}
.thanh-duoi a b { display: block; font-size: 19px; line-height: 1.25; font-weight: 400; }
.thanh-duoi a.chon { color: var(--chinh); }

/* ------------------------------------------------------------------- Khung */
.than { max-width: 720px; margin: 0 auto; padding: 12px 12px 24px; }

.the {
  background: var(--the); border: 1px solid var(--vien);
  border-radius: var(--bo); box-shadow: var(--bong);
  padding: 14px; margin-bottom: 12px;
}
.the > h2, .the > h3 { margin: 0 0 10px; font-size: 15px; }
h1 { font-size: 20px; margin: 4px 0 12px; }
h2 { font-size: 16px; }
.nhat { color: var(--chu-nhat); }
.nho { font-size: 13px; }
.rat-nho { font-size: 12px; }
.giua { text-align: center; }
.phai-le { text-align: right; }
.hang { display: flex; align-items: center; gap: 8px; }
.hang-deu { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gian { flex: 1; }
.bo-tren { margin-top: 12px; }

/* ------------------------------------------------------------------- Thông báo */
.bao {
  border-radius: 12px; padding: 10px 12px; margin-bottom: 12px;
  font-size: 14px; border: 1px solid transparent;
}
.bao-vui { background: var(--chinh-nhat); color: var(--chinh-dam); border-color: var(--chinh); }
.bao-loi { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.bao-nhac { background: var(--vang-nhat); color: var(--vang); border-color: var(--vang); }
@media (prefers-color-scheme: dark) {
  .bao-loi { background: #3b1414; color: #fca5a5; border-color: #7f1d1d; }
}

/* ------------------------------------------------------------------- Nút */
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--chinh); color: #fff; border: 0; border-radius: 11px;
  padding: 11px 16px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; min-height: 44px;
}
.nut:disabled { opacity: .45; cursor: not-allowed; }
.nut-phu { background: var(--the); color: var(--chinh); border: 1px solid var(--chinh); }
.nut-xam { background: var(--the); color: var(--chu-nhat); border: 1px solid var(--vien); }
.nut-do { background: var(--the); color: var(--thua); border: 1px solid var(--thua); }
.nut-rong { width: 100%; }
.nut-be { padding: 6px 11px; min-height: 34px; font-size: 13px; border-radius: 9px; }

/* ------------------------------------------------------------------- Biểu mẫu */
label.nhan { display: block; font-size: 13px; font-weight: 600; margin: 0 0 5px; color: var(--chu-nhat); }
input[type=text], input[type=month], input[type=date], input[type=number], input[type=tel],
input[type=password], input[type=search], input[type=url], select, textarea {
  width: 100%; padding: 11px 12px; font-size: 16px; font-family: inherit;
  border: 1px solid var(--vien); border-radius: 11px;
  background: var(--nen); color: var(--chu); min-height: 44px;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--chinh); outline-offset: -1px; border-color: var(--chinh);
}
input[type=file] { padding: 9px; font-size: 14px; }
.o { margin-bottom: 11px; }
.luoi2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.luoi3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }

/* ------------------------------------------------------------------- Bộ lọc kỳ */
.loc-ky { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.loc-ky::-webkit-scrollbar { display: none; }
.loc-ky a {
  flex: 0 0 auto; padding: 7px 14px; border-radius: 999px;
  background: var(--the); border: 1px solid var(--vien);
  color: var(--chu-nhat); font-size: 13px; font-weight: 600;
}
.loc-ky a.chon { background: var(--chinh); border-color: var(--chinh); color: #fff; }

.dieu-huong-ky { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dieu-huong-ky .ten-ky { flex: 1; text-align: center; font-weight: 700; font-size: 15px; }
.dieu-huong-ky a.mui {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: var(--the); border: 1px solid var(--vien); border-radius: 11px;
  color: var(--chu-nhat); font-size: 17px;
}

/* ------------------------------------------------------------------- Bảng xếp hạng */
.bxh { display: flex; flex-direction: column; }
.dong-bxh {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 4px; border-bottom: 1px solid var(--vien);
}
.dong-bxh:last-child { border-bottom: 0; }
.so-hang {
  flex: 0 0 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; background: var(--nen); color: var(--chu-nhat);
}
.h1 { background: #fde68a; color: #92400e; }
.h2 { background: #e5e7eb; color: #374151; }
.h3 { background: #fed7aa; color: #9a3412; }
.ten-vdv { flex: 1; min-width: 0; }
.ten-vdv b { display: block; font-size: 15px; }
.ten-vdv a { color: inherit; }
.ten-vdv .phu { font-size: 12px; color: var(--chu-nhat); }
.diem-lon { font-size: 20px; font-weight: 800; color: var(--chinh); min-width: 34px; text-align: right; }

.phong-do { display: inline-flex; gap: 3px; vertical-align: middle; }
.phong-do i {
  width: 15px; height: 15px; border-radius: 4px; font-style: normal;
  font-size: 10px; font-weight: 700; color: #fff; display: grid; place-items: center;
}
.pT { background: var(--thang); }
.pB { background: var(--thua); }

/* ------------------------------------------------------------------- Thẻ số liệu */
.o-so { display: grid; grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 8px; }
.o-so > div {
  background: var(--nen); border-radius: 11px; padding: 9px 6px; text-align: center;
}
.o-so b { display: block; font-size: 19px; }
.o-so span { font-size: 11px; color: var(--chu-nhat); }

/* ------------------------------------------------------------------- Trận */
.tran {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 0; border-bottom: 1px solid var(--vien);
}
.tran:last-child { border-bottom: 0; }

/* Ẩn là phải ẩn. Thuộc tính `hidden` chỉ đặt display:none ở mức mặc định của
   trình duyệt nên mọi khai báo display của ta đều đè lên nó — bộ lọc gán
   `hidden` mà hàng vẫn hiện nguyên. */
[hidden] { display: none !important; }
.tran .stt {
  flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--nen);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--chu-nhat);
}
.tran .doi { flex: 1; min-width: 0; font-size: 14px; }
.tran .doi.thang { font-weight: 700; color: var(--thang); }
.tran .ti-so {
  flex: 0 0 auto; font-weight: 800; font-size: 15px; padding: 3px 9px;
  background: var(--nen); border-radius: 8px; white-space: nowrap;
}

/* ------------------------------------------------------------------- Chọn VĐV */
.chon-vdv { display: flex; flex-wrap: wrap; gap: 7px; }
.chon-vdv label {
  position: relative; cursor: pointer;
}
.chon-vdv input { position: absolute; opacity: 0; width: 0; height: 0; }
.chon-vdv span {
  display: inline-block; padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--vien); background: var(--the);
  font-size: 14px; font-weight: 600; color: var(--chu);
}
.chon-vdv input:checked + span { background: var(--chinh); border-color: var(--chinh); color: #fff; }
.chon-vdv input:disabled + span { opacity: .35; }
.chon-vdv.ben-b input:checked + span { background: #7c3aed; border-color: #7c3aed; }

.doi-mat { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.doi-mat .vs { align-self: center; font-weight: 800; color: var(--chu-nhat); padding-top: 6px; }

/* ------------------------------------------------------------------- Danh sách */
.ds-the { display: flex; flex-direction: column; gap: 10px; }
.muc-ds {
  display: flex; align-items: center; gap: 10px;
  background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo);
  padding: 12px 14px; box-shadow: var(--bong); color: inherit;
}
.muc-ds .gian b { display: block; font-size: 15px; }
.muc-ds .mui-phai { color: var(--chu-nhat); font-size: 18px; }

.chu-cai {
  flex: 0 0 38px; height: 38px; border-radius: 50%;
  background: var(--chinh-nhat); color: var(--chinh-dam);
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
}

.the-nho {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 700; background: var(--nen); color: var(--chu-nhat);
}
.the-xanh { background: var(--chinh-nhat); color: var(--chinh-dam); }
.the-do { background: #fee2e2; color: #991b1b; }
.the-vang { background: var(--vang-nhat); color: var(--vang); }
@media (prefers-color-scheme: dark) { .the-do { background: #3b1414; color: #fca5a5; } }

/* ------------------------------------------------------------------- Media */
.luoi-media { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 600px) { .luoi-media { grid-template-columns: 1fr 1fr; } }
.the-media { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; box-shadow: var(--bong); }
.the-media video, .the-media img { width: 100%; display: block; background: #000; max-height: 60vh; }
.the-media .khung-nhung { position: relative; padding-top: 56.25%; background: #000; }
.the-media .khung-nhung iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.the-media .than-media { padding: 10px 12px 12px; }
.the-media .than-media b { font-size: 15px; }

/* ------------------------------------------------------------------- Khác */
.gap-lai > summary {
  cursor: pointer; font-weight: 700; font-size: 15px; padding: 4px 0;
  list-style: none; display: flex; align-items: center; gap: 6px;
}
.gap-lai > summary::-webkit-details-marker { display: none; }
.gap-lai > summary::before { content: "▸"; color: var(--chu-nhat); }
.gap-lai[open] > summary::before { content: "▾"; }
.gap-lai > summary + * { margin-top: 12px; }

.trong { text-align: center; color: var(--chu-nhat); padding: 26px 12px; }
.trong .to { font-size: 34px; display: block; margin-bottom: 6px; }
hr { border: 0; border-top: 1px solid var(--vien); margin: 14px 0; }
.sao { color: var(--vang); letter-spacing: 1px; }
.thanh-tien { display: flex; gap: 8px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ Giao diện 2026
   Lớp hoàn thiện mang tinh thần câu lạc bộ thể thao cao cấp. */
:root {
  --nen: #f3f7f6;
  --the: #ffffff;
  --vien: #dfe9e6;
  --chu: #102523;
  --chu-nhat: #697c79;
  --chinh: #087f70;
  --chinh-nhat: #d9f3ed;
  --chinh-dam: #05665b;
  --bong: 0 1px 2px rgba(5,40,36,.04), 0 12px 32px rgba(5,40,36,.07);
  --bo: 18px;
  --duoi: 74px;
}

body { font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
.dau { background: linear-gradient(135deg, #061d1b 0%, #0a3833 58%, #087f70 140%); box-shadow: 0 8px 32px rgba(3,24,22,.2); }
.dau-tren { max-width: 920px; margin: 0 auto; padding: 12px 18px 10px; }
.hieu { display: flex; align-items: center; gap: 10px; }
.dau-logo { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: #087f70; font-size: 12px; font-weight: 900; letter-spacing: -.3px; box-shadow: 0 7px 18px rgba(0,0,0,.18); transform: rotate(-3deg); }
.dau-ten { display: flex; flex-direction: column; line-height: 1.05; }
.dau-ten strong { font-size: 16px; letter-spacing: -.2px; }
.dau-ten small { margin-top: 5px; font-size: 8px; font-weight: 800; letter-spacing: 2px; color: rgba(255,255,255,.56); }
.nut-tho { padding: 7px 13px; font-size: 12px; font-weight: 700; }
.tab-chinh { max-width: 920px; margin: 0 auto; padding: 0 12px; }
.tab-chinh a { color: rgba(255,255,255,.6); font-weight: 700; font-size: 14px; }

.thanh-duoi { background: color-mix(in srgb, var(--the) 94%, transparent); backdrop-filter: blur(18px); padding: 5px max(4px, calc((100% - 720px)/2)) env(safe-area-inset-bottom); box-shadow: 0 -8px 28px rgba(5,40,36,.06); }
.thanh-duoi a { padding: 6px 2px 5px; }
.thanh-duoi a b { display: grid; place-items: center; width: 32px; height: 28px; margin: 0 auto 1px; font-size: 17px; line-height: 1; border-radius: 10px; }
.thanh-duoi a.chon b { background: var(--chinh-nhat); }

.than { max-width: 920px; padding: 22px 16px 34px; }
.the { padding: 18px; margin-bottom: 14px; }
h1 { font-size: clamp(23px, 4vw, 30px); line-height: 1.2; letter-spacing: -.7px; margin: 2px 0 18px; }
.nut { padding-inline: 17px; font-size: 14px; font-weight: 750; }
.nut:hover { filter: brightness(1.04); transform: translateY(-1px); }
.nut:active { transform: translateY(0); }
input[type=text], input[type=month], input[type=date], input[type=number], input[type=tel], input[type=password], input[type=search], input[type=url], select, textarea { border-radius: 12px; background: color-mix(in srgb, var(--nen) 72%, var(--the)); min-height: 46px; }
.o-so > div { background: linear-gradient(145deg, var(--chinh-nhat), color-mix(in srgb, var(--chinh-nhat) 38%, var(--the))); border: 1px solid color-mix(in srgb, var(--chinh) 15%, transparent); border-radius: 14px; padding: 13px 8px; }
.o-so b { font-size: 23px; line-height: 1.2; color: var(--chinh-dam); letter-spacing: -.5px; }
.dong-bxh { padding: 12px 6px; border-radius: 12px; }
.dong-bxh:hover { background: color-mix(in srgb, var(--chinh-nhat) 38%, transparent); }
.muc-ds { padding: 15px 16px; }
.muc-ds:hover { border-color: color-mix(in srgb, var(--chinh) 35%, var(--vien)); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(5,40,36,.1); }
.chu-cai { background: linear-gradient(145deg, var(--chinh), var(--chinh-dam)); color: #fff; }
a, button, .muc-ds, .dong-bxh { transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease; }

@media (prefers-color-scheme: dark) {
  :root { --nen:#071311; --the:#10201e; --vien:#243a37; --chu:#eef8f5; --chu-nhat:#95aaa6; --chinh:#2ed2b6; --chinh-nhat:#123a34; --chinh-dam:#65e6cf; }
}
@media (min-width: 760px) {
  .than { padding-top: 30px; }
  .the { padding: 22px; }
  .ds-the { display: grid; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 420px) {
  .dau-tren { padding-inline: 12px; }
  .dau-ten small { display: none; }
  .the-nhat { max-width: 88px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .than { padding-inline: 12px; }
  .the { padding: 15px; }
  .luoi2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}

/* Icon nét riêng cho bộ môn và các cúp — không phụ thuộc emoji hệ điều hành. */
.bo-icon { position: absolute; width: 0; height: 0; overflow: hidden; }
.tab-chinh a span:has(.icon-tab) { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 5px; vertical-align: middle; border-radius: 9px; background: rgba(255,255,255,.08); }
.tab-chinh a.chon span:has(.icon-tab) { background: rgba(255,255,255,.17); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.icon-tab { width: 23px; height: 23px; display: block; fill: none; stroke: currentColor; stroke-width: 2.15; stroke-linecap: round; stroke-linejoin: round; }
.icon-tab circle { fill: currentColor; stroke: none; }
.icon-tab.icon-bong { width:24px; height:24px; }
.icon-tab.icon-bong .vo-bong { fill:none; stroke:currentColor; }
.icon-tab.icon-bong .mui-bong { fill:currentColor; stroke:currentColor; }
.tab-chinh a span.khung-bong { display:inline-grid; place-items:center; width:31px; height:31px; margin-right:5px; vertical-align:middle; border-radius:50%; background:rgba(255,255,255,.1); }
.tab-chinh a.chon span.khung-bong { background:rgba(255,255,255,.18); box-shadow:inset 0 0 0 1px rgba(255,255,255,.14); }
.bong-da-chuan { display:block; font-family:"Segoe UI Emoji","Apple Color Emoji","Noto Color Emoji",sans-serif; font-size:23px; line-height:1; filter:drop-shadow(0 2px 3px rgba(0,0,0,.18)); transform:translateY(-.5px); }
.tieu-de-cup { display: flex; align-items: center; gap: 10px; }
.huy-hieu-cup { flex: 0 0 auto; width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; font-size: 20px; }
.huy-hieu-cup.vang { background: linear-gradient(145deg,#fff4b8,#f4c84d); box-shadow: inset 0 0 0 1px rgba(146,100,0,.14); }
.huy-hieu-cup.go { color: #7a4b2a; background: linear-gradient(145deg,#f5d2a7,#c98a50); box-shadow: inset 0 0 0 1px rgba(92,51,21,.16), 0 6px 14px rgba(92,51,21,.12); }
.huy-hieu-cup svg { width: 23px; height: 23px; fill: rgba(255,255,255,.22); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.huy-hieu-cup .van-go { fill: none; stroke-width: 1.2; opacity: .7; }
.icon-cup-go { width: 16px; height: 16px; display: inline-block; vertical-align: -3px; fill: rgba(201,138,80,.2); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-cup-go .van-go { fill: none; stroke-width: 1.2; }
.icon-rong { width: 42px; height: 42px; fill: rgba(201,138,80,.18); stroke: #a86937; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon-rong .van-go { fill: none; stroke-width: 1.1; }
.icon-rong.icon-chinh { fill:none; stroke:var(--chinh); stroke-width:1.65; }
.icon-avatar { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.gap-lai > summary::after { content:"+"; margin-left:auto; width:25px; height:25px; display:grid; place-items:center; border-radius:8px; color:var(--chinh); background:var(--chinh-nhat); font-size:19px; line-height:1; transition:transform .2s ease; }
.gap-lai[open] > summary::after { transform:rotate(45deg); }

/* ---------------------------------------------------------------- Sport energy */
body { background-image: radial-gradient(circle at 8% 0%, color-mix(in srgb,var(--chinh) 9%,transparent), transparent 28rem); }
.dau { isolation: isolate; overflow: hidden; }
.dau::after { content:""; position:absolute; z-index:-1; width:240px; height:140px; right:8%; top:-76px; transform:skewX(-24deg); background:linear-gradient(110deg,transparent,rgba(255,255,255,.08)); }
.tab-chinh a { position:relative; border-bottom:0; }
.tab-chinh a::after { content:""; position:absolute; left:22%; right:22%; bottom:0; height:3px; border-radius:3px 3px 0 0; background:#51e7ca; transform:scaleX(0); transition:transform .2s ease; }
.tab-chinh a.chon::after { transform:scaleX(1); }
.tab-chinh a.chon { border-bottom-color:transparent; }
.the, .muc-ds, .the-media { position:relative; overflow:hidden; }
.the::before, .muc-ds::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:3px; border-radius:0 4px 4px 0; background:var(--chinh); opacity:0; transform:scaleY(.35); transition:.2s ease; }
.the:hover::before, .muc-ds:hover::before { opacity:1; transform:scaleY(1); }
.the > h2, .the > h3 { letter-spacing:-.2px; }
.nut { box-shadow:0 7px 18px color-mix(in srgb,var(--chinh) 22%,transparent); }
.nut-phu, .nut-xam, .nut-do { box-shadow:none; }

.thanh-duoi a { position:relative; font-weight:750; letter-spacing:.1px; }
.thanh-duoi a b { width:38px; height:34px; }
.thanh-duoi a b svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.85; stroke-linecap:round; stroke-linejoin:round; }
.thanh-duoi a.chon { color:var(--chinh); }
.thanh-duoi a.chon b { color:#fff; background:linear-gradient(145deg,var(--chinh),var(--chinh-dam)); box-shadow:0 7px 15px color-mix(in srgb,var(--chinh) 28%,transparent); transform:translateY(-2px); }
.thanh-duoi a.chon::after { content:""; position:absolute; left:35%; right:35%; bottom:1px; height:2px; border-radius:4px; background:var(--chinh); }

.so-hang { border-radius:50%; }
.diem-lon { font-variant-numeric:tabular-nums; }
.phong-do i { border-radius:50%; box-shadow:inset 0 -1px 2px rgba(0,0,0,.15); }
@media (hover:none) { .the::before, .muc-ds::before { display:none; } }

/* Thanh dưới của Pickleball có sáu mục. Giữ mỗi nhãn gọn trên một dòng để
   thanh không cao gấp đôi trên máy màn hình hẹp. */
.thanh-duoi a { white-space: nowrap; font-size: 10.5px; }
/* Quỹ tháng: dùng màu và thẻ của giao diện hiện có. */
.qr-so-tien {font-size:30px;font-weight:800;margin:16px 0;color:var(--thua)}
.qr-so-tien small {font-size:14px;font-weight:400;color:var(--chu-nhat)}
.qr-breakdown {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:9px 16px;font-size:14px}
.qr-breakdown dd {margin:0;text-align:right;font-weight:600}
.qr-breakdown dt {color:var(--chu-nhat)}
.qr-thanh-toan {display:flex;gap:20px;align-items:start;margin-top:18px}
.qr-anh {width:240px;max-width:100%;height:auto;flex-shrink:0;background:white;border-radius:12px}
.qr-thong-tin {flex:1;min-width:0;overflow-wrap:anywhere}
.qr-mobile {display:none}
.qr-doi-soat {padding:14px 0;border-bottom:1px solid var(--vien)}
/* Ô bấm để chép: số tài khoản, số tiền, nội dung chuyển khoản. */
.o-chep {display:flex;align-items:center;gap:8px;padding:9px 12px;margin-bottom:8px;border:1px solid var(--vien);border-radius:11px;background:var(--nen);cursor:pointer}
.o-chep .gian {min-width:0;overflow-wrap:anywhere}
.o-chep .rat-nho {display:block}
.o-chep b {font-size:16px;letter-spacing:.2px}
.dau-chep {flex:0 0 auto;color:var(--chinh);font-size:12px;font-weight:700}
.o-chep.vua-chep {border-color:var(--thang);background:color-mix(in srgb,var(--thang) 10%,var(--the))}
.o-chep.vua-chep .dau-chep {color:var(--thang)}

/* Thẻ công nợ bấm chỗ nào cũng mở được sổ riêng. */
.co-the-bam {cursor:pointer}
.co-the-bam .quy-tien-no::after {content:" ›";color:var(--chu-nhat);font-weight:400}

/* Chọn ngân hàng: danh sách dài nên phải gõ tìm được, thay cho <select>. */
.chon-bank #khung-ds-bank {margin-top:8px}
.chon-bank #tim-bank {margin-bottom:6px}
.ds-bank {max-height:280px;overflow-y:auto;border:1px solid var(--vien);border-radius:12px}
.mot-bank {display:flex;align-items:center;gap:8px;width:100%;text-align:left;padding:10px 12px;background:var(--the);border:0;border-bottom:1px solid var(--vien);color:inherit;font:inherit;cursor:pointer}
.mot-bank:last-child {border-bottom:0}
.mot-bank:hover {background:color-mix(in srgb,var(--chinh) 8%,var(--the))}
.mot-bank.dang-chon {background:color-mix(in srgb,var(--chinh) 14%,var(--the));font-weight:700}
.mot-bank .gian {display:block;min-width:0}
.mot-bank .rat-nho {display:block}
/* "Xem chi tiết" của từng kỳ: đóng thì mời bấm, mở thì đổi chữ. */
.ky-no > summary .mo-chi-tiet {color:var(--chinh);font-weight:700}
.ky-no[open] > summary .mo-chi-tiet::after {content:" ▴"}
.ky-no:not([open]) > summary .mo-chi-tiet::after {content:" ▾"}

/* Số tiền trong sổ: còn nợ thì đỏ, đã đóng hoặc đóng dư thì xanh. */
.so-no {color:var(--thua)}
.so-du {color:var(--thang)}
.quy-mau-du {--quy-mau:var(--thang)}
.quy-mau-no {--quy-mau:var(--thua)}
.quy-mau-cho {--quy-mau:var(--vang)}
.quy-mau-trong {--quy-mau:var(--chu-nhat)}
.quy-hang,.quy-ca-nhan {border:1px solid color-mix(in srgb,var(--quy-mau) 30%,var(--vien));border-left:4px solid var(--quy-mau);border-radius:12px;background:color-mix(in srgb,var(--quy-mau) 8%,var(--the));padding:12px;margin-top:10px}
.quy-trang-thai {display:inline-block;color:var(--quy-mau);background:color-mix(in srgb,var(--quy-mau) 12%,var(--the));border:1px solid color-mix(in srgb,var(--quy-mau) 35%,var(--vien));border-radius:999px;padding:3px 8px;font-size:12px;font-weight:700;line-height:1.5;margin:4px 0}
.quy-tien-no {font-size:17px;color:var(--quy-mau);white-space:nowrap}
.quy-ca-nhan .qr-so-tien {color:var(--quy-mau);margin-bottom:0}
.quy-ca-nhan .hang-deu {flex-wrap:wrap;gap:6px;margin-top:0}

/* Ô thu tiền trong thẻ công nợ. Nhãn quỹ ghi một lần ở đầu cột, mỗi người một
   dòng, hai quỹ luôn cạnh nhau kể cả trên điện thoại — thẻ ngắn đi một nửa so
   với kiểu xếp dọc bốn ô. Giữ chữ 16px để iOS không tự phóng khi gõ. */
.thu-luoi {display:grid;grid-template-columns:1fr 1fr;gap:5px 8px;align-items:center;margin-top:8px}
.thu-luoi-ho {grid-template-columns:minmax(0,auto) 1fr 1fr}
.thu-nhan {font-size:11px;font-weight:600;line-height:1.3;color:var(--chu-nhat)}
.thu-ten {font-size:13px;font-weight:600;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.thu-luoi .o-tien {max-width:none;min-height:38px;padding:7px 10px}
@media(max-width:600px) {
  .qr-thanh-toan {flex-direction:column}
  .qr-thong-tin {order:-1;width:100%}
  .qr-anh {align-self:center}
  .qr-mobile {display:block}
}

/* ================================================================
   Chữ mảnh, nhấn ít mà đúng chỗ.
   Bớt đậm ở những chỗ đậm theo thói quen (tiêu đề, nhãn, nút, tab), dồn
   sức nhấn vào ba thứ người ta thật sự tìm: con số điểm, hạng ba người
   đầu, và màu thắng/bại. Khối này để cuối tệp nên đè lên phần trên.
   ================================================================ */
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}
h1 { font-weight: 600; letter-spacing: -.012em; }
h2, .the > h2, .the > h3 { font-weight: 600; letter-spacing: -.006em; }
b, strong { font-weight: 600; }
.hieu { font-weight: 600; }
.nut { font-weight: 500; }
.nut-tho { font-weight: 500; }
label.nhan { font-weight: 500; }
.tab-chinh a { font-weight: 500; }
.thanh-duoi a { font-weight: 500; }
.loc-ky a { font-weight: 500; }
.chon-vdv span { font-weight: 500; }
.ten-vdv b { font-weight: 500; }
.the-nho { font-weight: 500; }
.dieu-huong-ky .ten-ky { font-weight: 600; }

/* Ba chỗ được giữ nhấn: điểm số, số hạng, và bên thắng trong một trận. */
.diem-lon { font-weight: 700; letter-spacing: -.02em; }
.so-hang { font-weight: 600; }
.tran .doi.thang { font-weight: 600; }

/* Ô chức năng của trang Quỹ: mỗi ô một việc, bấm vào mở màn hình riêng. */
.o-chuc-nang {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px;
}
.chuc-nang {
  display: block; padding: 14px 12px; text-align: center; color: var(--chu);
  background: var(--the); border: 1px solid var(--vien);
  border-radius: var(--bo); box-shadow: var(--bong);
}
.chuc-nang svg {
  width: 26px; height: 26px; display: block; margin: 0 auto 8px;
  fill: none; stroke: var(--chinh); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.chuc-nang b { display: block; font-size: 14px; font-weight: 600; }
.chuc-nang span { display: block; font-size: 11px; color: var(--chu-nhat); margin-top: 3px; }

/* Huy hiệu đầu trang giờ là tệp ảnh, không còn là chữ CSS. Đổi logo chỉ cần
   thay tệp trong static, không phải sửa khuôn mẫu. */
.dau-logo {
  display: block; object-fit: contain; background: transparent;
  box-shadow: 0 7px 18px rgba(0, 0, 0, .18); transform: none;
  border-radius: 11px;
}

/* ---------------------------------------------------------------- Bóng đá
   Bảng kết quả và hai bảng xếp hạng của trang Đội bóng. Mỗi bảng chỉ hiện
   vài dòng đầu, phần còn lại mang lớp .an-bot và bung ra khi bấm Xem thêm. */
.bd-tran-hang { color: inherit; }
.bd-tran-hang:hover .doi b { color: var(--chinh); }
.bd-ti-so { font-size: 17px; font-weight: 700; letter-spacing: -.02em; }
.bd-thang { color: var(--thang); }
.bd-bai   { color: var(--thua); }
.bd-hoa   { color: var(--chu-nhat); }

.bd-hang { padding: 8px 0; border-bottom: 1px solid var(--vien); gap: 10px; }
.bd-hang:last-of-type { border-bottom: 0; }
.bd-thu-hang {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 12px; font-weight: 700;
  background: var(--vien); color: var(--chu-nhat);
}
.bd-hang:nth-of-type(1) .bd-thu-hang { background: #f5c518; color: #4a3a00; }

/* Chọn đội hình: tích tên rồi gõ số bàn ngay bên cạnh. */
.bd-chon-hang {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 0; border-bottom: 1px solid var(--vien);
}
.bd-chon-hang label { flex: 1; display: flex; align-items: center; gap: 8px; margin: 0; }
.bd-o-ban { max-width: 74px; text-align: center; }

/* Bốn ô số trên một dòng. `auto-fit` chỉ nhét vừa ba ô trên điện thoại nên
   ô thứ tư rơi xuống hàng riêng, nhìn lệch hẳn; chỗ nào đúng bốn số thì ép
   bốn cột và thu nhỏ lại một chút cho vừa màn hình hẹp. */
.o-so-4 { grid-template-columns: repeat(4, 1fr); gap: 6px; }
.o-so-4 > div { padding: 10px 4px; }
.o-so-4 b { font-size: 19px; }
.o-so-4 span { font-size: 10px; }
@media (max-width: 340px) { .o-so-4 b { font-size: 17px; } }

/* Bốn số tiền thì không nhét nổi một dòng: "1.500.000" dài gấp mấy lần "12".
   Xếp 2×2 cho cân, hơn là để ba ô một dòng rồi ô thứ tư lẻ loi. */
.o-so-2x2 { grid-template-columns: repeat(2, 1fr); }

/* Bộ chọn gọn: bốn vị trí sở trường vừa đúng một hàng ngang trên điện thoại,
   thay vì tràn xuống dòng thứ hai rồi nhìn như hai nhóm rời nhau. */
.chon-vdv-gon { flex-wrap: nowrap; gap: 5px; }
.chon-vdv-gon label { flex: 1; }
.chon-vdv-gon span {
  display: block; text-align: center; padding: 8px 4px;
  font-size: 13px; white-space: nowrap;
}
@media (max-width: 360px) { .chon-vdv-gon span { font-size: 12px; padding: 8px 2px; } }

/* ------------------------------------------------- Dòng trận, ba cột
   Mỗi bên một cột, hai người xếp chồng nên bỏ được dấu "&" và tên dài không
   phải chen ngang. Cột giữa là tỉ số với chữ "vs" xen giữa hai con số, tự căn
   vào đúng giữa hai dòng tên. */
.tran-doc { align-items: center; gap: 10px; }
.tran-doc .tran-giua {
  flex: 1; min-width: 0;
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 14px;
}
.tran-doc .doi { min-width: 0; font-size: 14px; line-height: 1.4; }
.tran-doc .ten1 { display: block; }
.tran-doc .ben-trai { text-align: right; }
.tran-doc .ben-phai { text-align: left; }
/* Tỉ số để trần như tên vận động viên, không khoanh ô nền. */
.tran-doc .ti-so {
  background: none; padding: 0; white-space: nowrap;
  display: flex; align-items: baseline; gap: 7px;
}
/* Bên thắng đậm, bên thua chữ thường: liếc qua là biết ai ăn. */
.tran-doc .ti-so b { font-size: 16px; }
.tran-doc .so-thang { font-weight: 800; color: var(--chu); }
.tran-doc .so-thua { font-weight: 400; color: var(--chu-nhat); }
.tran-doc .vs-nho { color: var(--chu-nhat); font-size: 12px; font-weight: 400; }
.tran-doc .tran-nut { flex: none; display: flex; gap: 5px; align-self: center; }
/* Nút Media thu gọn lại cho khỏi choán chỗ của tên. */
.tran-doc .tran-nut .nut { padding: 5px 8px; gap: 4px; }
/* Trong danh sách trận không tô đậm bên thắng: nhìn cả bảng cho đều mắt,
   ai thắng đã có tỉ số nói rồi. */
.tran-doc .doi.thang { font-weight: inherit; color: inherit; }
/* Tên khớp ô lọc thì làm nổi lên, khỏi phải dò mắt từng dòng. */
.tran-doc mark {
  display: inline; background: color-mix(in srgb, var(--chinh) 22%, transparent);
  color: inherit; border-radius: 4px; padding: 0 3px; font-weight: 600;
}

/* Trận đã có video hay ảnh: viền nút sáng lên để nhìn lướt là thấy. */
.nut.co-media {
  border-color: var(--chinh); color: var(--chinh-dam);
  background: var(--chinh-nhat); font-weight: 600;
}

/* Gợi ý tên khi lọc trận: gõ không dấu, chạm vào tên là lọc luôn. */
.goi-y-vdv { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.goi-y-vdv button {
  padding: 5px 11px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--chinh); background: var(--chinh-nhat);
  color: var(--chinh-dam); cursor: pointer;
}

/* Ảnh đại diện: lấp kín đúng vòng tròn của .chu-cai, chưa có ảnh thì vẫn là
   chữ cái đầu như cũ. */
.chu-cai { overflow: hidden; }
.chu-cai img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Ô nhập tiền: hiện số có dấu ngăn hàng nghìn nên phải là ô chữ, không dùng
   được input[type=number]. Máy chủ tự bỏ dấu chấm khi đọc. */
.o-tien { max-width: 130px; text-align: right; font-weight: 600; }


/* Hai cách chuyển khoản đứng cạnh nhau khi màn đủ rộng. */
.cach-ck { display: grid; gap: 14px; }
@media (min-width: 560px) { .cach-ck { grid-template-columns: 1fr auto; } }
.anh-qr {
  width: 100%; max-width: 220px; border-radius: 12px;
  border: 1px solid var(--vien); background: #fff;
}
