/* Trang Các đội */
body { overflow-x: clip; }
.nav__links a[aria-current] { background: rgba(18,190,98,.16); color: var(--green); }

.thero { position: relative; overflow: hidden; padding: clamp(8rem, 16vw, 11rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.thero__glow { position: absolute; left: 50%; top: -30%; width: min(1100px, 150vw); height: 560px; transform: translateX(-50%); background: radial-gradient(ellipse at 50% 60%, rgba(18,190,98,.42), rgba(2,103,57,.2) 42%, transparent 70%); pointer-events: none; }
.thero__word { position: absolute; left: 50%; top: clamp(4.6rem, 9vw, 6rem); transform: translateX(-50%); white-space: nowrap; font-family: var(--display); font-weight: 900; font-size: clamp(5rem, 19vw, 17rem); line-height: 1; letter-spacing: -.03em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.08); pointer-events: none; animation: tword 1.6s var(--ease-out) both; }
@keyframes tword { from { opacity: 0; transform: translate(-50%, 30px) scale(.97); } }
.thero__in { position: relative; animation: tup 1s var(--ease-out) both; }
@keyframes tup { from { opacity: 0; transform: translateY(26px); } }
.thero__title { font-family: var(--display); font-weight: 800; font-size: clamp(2.1rem, 6.4vw, 4.8rem); line-height: 1.08; letter-spacing: -.02em; }
.thero__title em { font-style: normal; color: var(--green); display: inline-block; }
.thero__lead { margin-top: 1.1rem; max-width: 620px; color: var(--muted); font-size: clamp(.98rem, 1.3vw, 1.1rem); }

.tstats { display: flex; gap: clamp(1.6rem, 5vw, 3.4rem); margin-top: 2rem; }
.tstats[hidden] { display: none; }
.tstats div { display: grid; }
.tstats b { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.tstats div:last-child b { color: var(--orange); }
.tstats span { font-size: .78rem; color: var(--muted); }

.tlist { padding-bottom: clamp(4rem, 9vw, 7rem); }
.ttools { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: .8rem 1.2rem; align-items: center; margin-bottom: 1.6rem; }
.ttools[hidden] { display: none; }
.tsearch { display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.05); transition: border-color .5s var(--ease), box-shadow .5s var(--ease); }
.tsearch:focus-within { border-color: var(--green); box-shadow: 0 0 0 4px rgba(18,190,98,.15); }
.tsearch svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--muted); }
.tsearch input { flex: 1; min-width: 0; padding: .78rem 0; border: 0; outline: 0; background: none; color: var(--white); font: inherit; font-size: .92rem; }
.tsearch input::placeholder { color: var(--muted); }
.tpills { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding: .1rem; }
.tpills::-webkit-scrollbar { display: none; }
.tpill { flex: 0 0 auto; padding: .55rem .95rem; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted); background: rgba(255,255,255,.05); transition: background .5s var(--ease), color .5s var(--ease); }
.tpill small { opacity: .7; font-size: .76rem; }
.tpill:hover { color: var(--white); }
.tpill.is-active { background: var(--green); color: var(--ink); }

.tgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tcard { padding: .4rem; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid var(--line); opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out), border-color .6s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.tcard.is-in { opacity: 1; transform: none; }
.tcard:hover { border-color: rgba(18,190,98,.5); }
.tcard__in { display: grid; gap: .3rem; width: 100%; height: 100%; padding: 1.15rem; text-align: left; border-radius: calc(var(--r-lg) - .4rem); background: linear-gradient(160deg, var(--ink-3), var(--ink-2) 60%); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); transition: transform .7s var(--ease); }
.tcard__in:hover { transform: translateY(-3px); }
.tcard__in:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.tcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; margin-bottom: .7rem; }
.tlogo { display: grid; place-items: center; flex: 0 0 auto; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #fff; box-shadow: 0 0 0 4px rgba(18,190,98,.16), 0 14px 30px -14px rgba(18,190,98,.7); }
.tlogo img { width: 100%; height: 100%; object-fit: contain; }
.tlogo.is-empty { background: var(--green-deep); color: var(--white); font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.tlogo--lg { width: 88px; height: 88px; }
.tchip { flex: 0 0 auto; padding: .28rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--cream); background: rgba(255,255,255,.1); }
.tchip.is-ok { color: var(--ink); background: var(--green); }
.tchip.is-warn { color: var(--ink); background: var(--orange); }
.tcard__name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.25; color: var(--white); overflow-wrap: anywhere; }
.tcard__type { font-size: .84rem; color: var(--muted); }
.tcard__leader { margin-top: .5rem; font-size: .86rem; color: var(--cream); }
.tcard__leader small { display: block; font-size: .72rem; color: var(--muted); }
.tcard__foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.tfaces { display: flex; min-width: 0; }
.tfaces img, .tfaces i { width: 34px; height: 34px; border-radius: 50%; margin-left: -9px; border: 2px solid var(--ink-2); object-fit: cover; object-position: 50% 20%; }
.tfaces img:first-child { margin-left: 0; }
.tfaces i { display: grid; place-items: center; font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ink); background: var(--green); }
.tcard__go { flex: 0 0 auto; font-size: .84rem; font-weight: 600; color: var(--green); }
.tcard__go em { display: inline-block; font-style: normal; transition: transform .6s var(--ease); }
.tcard__in:hover .tcard__go em { transform: translateX(4px); }

.tskel { height: 268px; border-radius: var(--r-lg); background: linear-gradient(100deg, rgba(255,255,255,.04) 30%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 70%) 0 0 / 220% 100%; animation: tskel 1.4s var(--ease) infinite; }
@keyframes tskel { to { background-position: -220% 0; } }
.tempty { grid-column: 1 / -1; display: grid; justify-items: center; gap: .5rem; padding: clamp(2.6rem, 7vw, 4.4rem) 1.4rem; text-align: center; border-radius: var(--r-xl); background: rgba(255,255,255,.03); border: 1px solid var(--line); }
.tempty b { font-family: var(--display); font-weight: 700; font-size: clamp(1.05rem, 2.4vw, 1.4rem); }
.tempty p { max-width: 460px; color: var(--muted); }
.tempty .btn { margin-top: .9rem; }
.tempty--slim { padding: 2.4rem 1.2rem; }

.tsheet { width: min(980px, 100% - 2rem); max-width: none; max-height: calc(100dvh - 2rem); margin: auto; padding: clamp(1rem, 3vw, 1.8rem); border: 1px solid var(--line-2); border-radius: var(--r-xl); background: var(--ink-2); color: var(--cream); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(18,190,98,.55) transparent; }
.tsheet[open] { animation: tsheet .7s var(--ease-out) both; }
@keyframes tsheet { from { opacity: 0; transform: translateY(36px) scale(.985); } }
.tsheet::backdrop { background: rgba(2,10,6,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.tsheet__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1rem; align-items: start; }
.tsheet__title h2 { margin-top: .45rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.2rem, 3.2vw, 1.8rem); line-height: 1.2; color: var(--white); overflow-wrap: anywhere; }
.tsheet__title .tchip { display: inline-block; }
.tsheet__title p { margin-top: .2rem; font-size: .88rem; color: var(--muted); }
.tsheet__title p b { color: var(--cream); font-weight: 600; }
.tclose { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--white); background: rgba(255,255,255,.08); transition: background .5s var(--ease), transform .5s var(--ease); }
.tclose:hover { background: rgba(255,255,255,.16); transform: rotate(90deg); }
.tclose svg { width: 20px; height: 20px; }
.tchecks { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; margin-top: 1.2rem; }
.tcheck { display: grid; gap: .05rem; padding: .7rem .8rem; border-radius: var(--r-md); background: rgba(18,190,98,.1); border: 1px solid rgba(18,190,98,.3); }
.tcheck span { font-size: .74rem; color: var(--muted); }
.tcheck b { font-family: var(--display); font-weight: 700; font-size: .98rem; color: var(--white); }
.tcheck small { font-size: .72rem; color: var(--green); }
.tcheck.is-bad { background: rgba(243,130,43,.12); border-color: rgba(243,130,43,.5); }
.tcheck.is-bad small { color: var(--orange); }
.tplayers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; margin-top: 1.2rem; }
.tplayer { position: relative; display: grid; align-content: start; border-radius: var(--r-md); overflow: hidden; background: rgba(255,255,255,.04); border: 1px solid var(--line); animation: tup .8s var(--ease-out) both; animation-delay: calc(var(--i) * 40ms); }
.tplayer__ph { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: var(--ink-3); cursor: zoom-in; }
.tplayer__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform .9s var(--ease); }
.tplayer__ph:hover img { transform: scale(1.05); }
.tplayer__ph.is-empty { cursor: default; font-family: var(--display); font-weight: 800; font-size: 1.5rem; color: var(--muted); }
.tplayer__no { position: absolute; top: .5rem; left: .5rem; min-width: 32px; padding: .12rem .4rem; border-radius: .6rem; text-align: center; font-family: var(--display); font-weight: 800; font-size: .84rem; color: var(--ink); background: var(--orange); }
.tplayer figcaption { display: grid; gap: .08rem; padding: .6rem .7rem .7rem; min-width: 0; }
.tplayer figcaption b { font-weight: 700; font-size: .9rem; line-height: 1.3; color: var(--white); overflow-wrap: anywhere; }
.tplayer figcaption span { font-size: .78rem; color: var(--muted); }
.tkind { justify-self: start; margin-top: .3rem; padding: .1rem .5rem; border-radius: 999px; font-style: normal; font-size: .7rem; font-weight: 600; color: var(--green); background: rgba(18,190,98,.14); }
.tkind.is-foreign { color: var(--ink); background: var(--orange); }
.tkind.is-intl { color: var(--ink); background: #ffe08a; }
.tsheet__note { margin-top: 1.2rem; font-size: .82rem; color: var(--muted); }
.tsheet__note a { color: var(--green); font-weight: 600; }
.tzoom { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 1rem; border: 0; background: rgba(2,10,6,.94); cursor: zoom-out; }
.tzoom[open] { display: grid; place-content: center; justify-items: center; gap: .7rem; animation: tfade .35s var(--ease-out) both; }
@keyframes tfade { from { opacity: 0; } }
.tzoom::backdrop { background: transparent; }
.tzoom img { max-width: min(92vw, 720px); max-height: calc(100dvh - 5rem); border-radius: var(--r-md); }
.tzoom span { font-weight: 600; color: var(--white); text-align: center; }
.footer { padding-top: 1.6rem; }
.footer__bottom a[href^="tel"] { color: var(--green); }

@media (max-width: 1024px) { .tgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tplayers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .tgrid { grid-template-columns: minmax(0, 1fr); }
  .ttools { grid-template-columns: minmax(0, 1fr); }
  .tchecks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tplayers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
  .tsheet { width: 100%; max-height: 100dvh; height: 100dvh; margin: 0; border: 0; border-radius: 0; padding-bottom: 2rem; }
  .tsheet__head { grid-template-columns: minmax(0, 1fr) auto; }
  .tsheet__head .tlogo { grid-column: 1; grid-row: 1; width: 68px; height: 68px; }
  .tsheet__head .tclose { grid-column: 2; grid-row: 1; }
  .tsheet__title { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) {
  .thero__word, .thero__in, .tsheet[open], .tplayer, .tskel { animation: none; }
  .tcard { opacity: 1; transform: none; transition: none; }
}
.tedit { display: inline-block; margin-top: .8rem; font-size: .9rem; font-weight: 600; color: var(--green); }
.tposter { margin-top: 1rem; }

/* đội hình gọn như ảnh đội hình: thẻ nhỏ, có sẵn dòng phân loại */
.tgroup { margin-top: 1.1rem; font-family: var(--display); font-weight: 700; font-size: .92rem; text-align: center; color: var(--white); }
.tplayers { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: .6rem; }
.tplayer { flex: 0 0 calc((100% - 2.4rem) / 5); min-width: 0; border-radius: .9rem; }
.tplayer__ph { aspect-ratio: 1 / 1.08; }
.tplayer__no { top: .35rem; left: .35rem; min-width: 26px; padding: .05rem .3rem; border-radius: .5rem; font-size: .74rem; }
.tplayer figcaption { gap: .02rem; padding: .4rem .45rem .5rem; text-align: center; }
.tplayer figcaption b { font-size: .8rem; line-height: 1.25; text-transform: uppercase; }
.tplayer figcaption span { font-size: .7rem; line-height: 1.3; }
.tkind, .tkind.is-foreign { justify-self: center; margin: 0; padding: 0; border-radius: 0; font-size: .68rem; background: none; }
.tkind { color: #3fdc8a; }
.tkind.is-foreign { color: #ff9a3c; }
.tkind.is-staff { color: #ffe08a; }
@media (max-width: 1024px) { .tplayer { flex-basis: calc((100% - 1.8rem) / 4); } }
@media (max-width: 680px) { .tplayers { gap: .45rem; } .tplayer { flex-basis: calc((100% - .9rem) / 3); } }
