/* ==========================================================
   DLS 26 TEAMS HOME  (players/team/teams.css) — same look as the player database home
   One idea: each card is tinted with its own team colour, the logo sits big in the middle.
   ========================================================== */
@font-face { font-family: 'DLSFont'; src: url('https://cdn.sakibpro.com/assets/fonts/dls_font.ttf') format('truetype'); font-display: swap; }
html { background: #12152a; }
body { margin: 0; background: #12152a; color: #eef0fa; font-family: 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; overflow-x: hidden; }
.th { --panel: #262b46; --panel2: #1e2239; --line: rgba(255,255,255,.07); --ink2: #a3aac8; --ink3: #6f7698; --acc: #00e5ff; --pink: #ff2a5f; --num: 'DLSFont', 'Segoe UI', sans-serif; }
.th *, .th *::before, .th *::after { box-sizing: border-box; }
.th a { color: inherit; text-decoration: none; }
.th :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

.th-hero { max-width: 1240px; margin: 0 auto; padding: 30px 16px 0; }
.th-crumbs { font-size: 13px; color: var(--ink3); margin-bottom: 10px; }
.th-crumbs a { color: var(--ink2); } .th-crumbs a:hover { color: #fff; }
.th-hero h1 { margin: 0; font: 400 clamp(30px, 4.6vw, 48px)/1.05 var(--num); color: #fff; }
.th-hero p { max-width: 70ch; margin: 10px 0 0; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.th-tabs { display: flex; gap: 28px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.th-tabs a { position: relative; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--ink2); }
.th-tabs a:hover, .th-tabs a[aria-current] { color: #fff; }
.th-tabs a[aria-current]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--acc); }

.th-wrap { max-width: 1240px; margin: 0 auto; padding: 24px 16px 70px; }
.th-filter { display: flex; margin-bottom: 14px; }
.th-filter .th-tools { width: 100%; }
.th-filter .th-find { flex: 1 1 220px; } .th-filter .th-find input { width: 100%; }
.th-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
.th-kinds a { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 6px; background: var(--panel2); color: var(--ink2); font-weight: 700; font-size: 14px; }
.th-kinds a small { color: var(--ink3); font-weight: 600; }
.th-kinds a:hover { color: #fff; }
.th-kinds a[aria-current] { background: var(--panel); color: #fff; box-shadow: inset 0 -3px 0 var(--pink); }
.th-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.th-find { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 6px; background: var(--panel); }
.th-find svg { width: 17px; height: 17px; fill: none; stroke: var(--ink2); stroke-width: 2.2; stroke-linecap: round; }
.th-find input { width: 170px; border: 0; outline: 0; background: none; color: #fff; font: 600 14px 'Segoe UI', sans-serif; }
.th-find input::placeholder { color: var(--ink3); }
.th-tools select { height: 42px; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; background: var(--panel); color: #fff; font: 600 14px 'Segoe UI', sans-serif; max-width: 220px; }
.th-tools button { height: 42px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--pink); color: #fff; font: 800 14px 'Segoe UI', sans-serif; cursor: pointer; }
.th-count { margin: 0 0 16px; font-size: 14px; color: var(--ink3); }
.th-count a { color: var(--acc); font-weight: 700; }

/* team cards */
.th-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.th-card { display: flex; flex-direction: column; height: 100%; border-radius: 8px; overflow: hidden; background: var(--panel2); transition: transform .2s ease; }
.th-card:hover { transform: translateY(-4px); }
.th-card.is-empty { opacity: .55; }
.th-card.is-empty:hover { transform: none; }
.th-top { position: relative; display: grid; place-items: center; height: 210px; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 10%, rgba(var(--tc), .55), rgba(var(--tc), .12) 60%, transparent), linear-gradient(160deg, #2a2f52, #171a2e); }
.th-bg { position: absolute; width: 330px; height: 330px; right: -90px; bottom: -110px; object-fit: contain; opacity: .09; filter: grayscale(1) brightness(2); pointer-events: none; }
.th-logo { position: relative; width: 124px; height: 124px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.5)); }
.th-ovr { --v: 70; position: absolute; top: 14px; right: 14px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--rc) calc(var(--v) * 1%), rgba(255,255,255,.12) 0); }
.th-ovr::before { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #161a2e; }
.th-ovr b, .th-ovr small { position: relative; }
.th-ovr b { font: 400 24px/1 var(--num); color: #fff; }
.th-ovr small { font-size: 9px; font-weight: 800; color: var(--ink2); letter-spacing: .08em; }
.th-body { display: grid; gap: 6px; padding: 16px 18px 18px; }
.th-name { font: 400 21px/1.15 var(--num); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-sub { font-size: 13px; color: var(--ink2); font-weight: 600; }
.th-rs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.th-r { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 6px; }
.th-r small { font-size: 11px; font-weight: 800; color: var(--ink3); }
.th-r b { font: 400 18px/1 var(--num); color: #fff; text-align: right; }
.th-r i { grid-column: 1 / -1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, rgb(var(--tc)) calc(var(--v) * 1%), rgba(255,255,255,.08) 0); }
.th-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 700; color: var(--ink2); }
.th-empty { padding: 60px 20px; text-align: center; border-radius: 8px; background: var(--panel2); }
.th-empty p { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.th-empty a { color: var(--acc); font-weight: 700; }

.th-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 8px; }
.th-pages a, .th-pages span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 6px; background: var(--panel); font-weight: 700; font-size: 14px; }
.th-pages a:hover { background: #333a5e; }
.th-pages span[aria-current] { background: var(--pink); color: #fff; }
.th-pages span:not([aria-current]) { background: none; }

.th-about { max-width: 80ch; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.th-about h2 { margin: 0 0 10px; font: 400 22px var(--num); color: #fff; }
.th-about p { margin: 0 0 12px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.th-about a { color: var(--acc); font-weight: 700; }
.th-about details { border-top: 1px solid var(--line); }
.th-about details:last-child { border-bottom: 1px solid var(--line); }
.th-about summary { padding: 14px 0; font-weight: 700; color: #fff; cursor: pointer; }

@media (max-width: 1000px) { .th-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .th-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .th-top { height: 180px; }
  .th-tools { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .th-find { grid-column: 1 / -1; min-width: 0; } .th-find input { width: 100%; min-width: 0; }
  .th-tools select { max-width: none; width: 100%; min-width: 0; } .th-tools button { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .th * { transition: none !important; } }
