/* ==========================================================
   DLS PLAYER DATABASE HOME  (players/home/home.css)
   One idea: every tile is tinted with its card's own colour (gold / silver / bronze or the special card's colour).
   Everything else stays quiet: indigo panels, white names, one cyan accent.
   ========================================================== */
@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; }
.hm { --bg: #12152a; --panel: #262b46; --panel2: #1e2239; --panel3: #181c30; --line: rgba(255,255,255,.07); --ink: #eef0fa; --ink2: #a3aac8; --ink3: #6f7698;
  --acc: #00e5ff; --pink: #ff2a5f; --num: 'DLSFont', 'Segoe UI', sans-serif; }
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm a { color: inherit; text-decoration: none; }
.hm :focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ── HERO: just the title, the line under it and three section links ── */
.hm-hero { max-width: 1320px; margin: 0 auto; padding: 34px 16px 0; }
.hm-hero h1 { margin: 0; font: 400 clamp(28px, 4.4vw, 46px)/1.05 var(--num); color: #fff; letter-spacing: .01em; }
.hm-hero p { max-width: 70ch; margin: 10px 0 0; color: var(--ink2); font-size: 15px; line-height: 1.6; }
.hm-tabs { display: flex; gap: 28px; margin-top: 22px; border-bottom: 1px solid var(--line); }
.hm-tabs a { position: relative; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--ink2); }
.hm-tabs a:hover { color: #fff; }
.hm-tabs a[aria-current] { color: #fff; }
.hm-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); }

.hm-wrap { max-width: 1320px; margin: 0 auto; padding: 24px 16px 70px; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 24px; align-items: start; }
.hm-main { position: relative; min-width: 0; }
.hm-main::before { content: ""; position: absolute; z-index: -1; inset: 120px -40px auto -40px; height: 900px; pointer-events: none;
  background: radial-gradient(40% 30% at 20% 20%, rgba(0,229,255,.07), transparent 70%), radial-gradient(35% 30% at 85% 45%, rgba(255,42,95,.06), transparent 70%); }

/* ── SIDEBAR ── */
.hm-side { border-radius: 8px; overflow: hidden; background: var(--panel2); }
.hm-side-top { display: none; }
.hm-acc { border-bottom: 1px solid var(--line); }
.hm-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; background: var(--panel); color: #fff; font: 800 13.5px/1 'Segoe UI', sans-serif; letter-spacing: .02em; cursor: pointer; list-style: none; }
.hm-acc summary::-webkit-details-marker { display: none; }
.hm-acc summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid #c6cbe2; border-bottom: 2px solid #c6cbe2; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
.hm-acc[open] summary::after { transform: rotate(-135deg); }
.hm-acc ul, .hm-flat { list-style: none; margin: 0; padding: 8px 0; }
.hm-flat { padding: 0; }
.hm-side li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 24px; font-size: 13.5px; font-weight: 600; color: var(--ink2); border-left: 3px solid transparent; }
.hm-side li a small { font-size: 12px; color: var(--ink3); }
.hm-side li a:hover { color: #fff; background: rgba(255,255,255,.03); }
.hm-side li a[aria-current] { color: #fff; border-left-color: var(--pink); background: rgba(255, 42, 95, .08); }
.hm-flat li a { padding: 18px 22px; background: var(--panel); color: #fff; font-weight: 800; border-bottom: 1px solid var(--line); }

.hm-filter { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 0 18px 22px; }
.hm-filter h2 { grid-column: 1 / -1; margin: 0 -18px 4px; padding: 18px 22px; background: var(--panel); border-left: 4px solid var(--pink); font: 800 14px 'Segoe UI', sans-serif; color: #fff; letter-spacing: .02em; }
.hm-f { display: grid; gap: 6px; min-width: 0; }
.hm-f--2 { grid-column: 1 / -1; }
.hm-f > span { font-size: 12px; font-weight: 700; color: #fff; }
.hm-filter input, .hm-filter select, .hm-bar select { width: 100%; height: 42px; padding: 0 12px; border-radius: 6px; border: 1px solid transparent; background: var(--panel); color: #fff; font: 600 14px 'Segoe UI', sans-serif; outline: none; }
.hm-filter input::placeholder { color: var(--ink3); }
.hm-filter input:focus, .hm-filter select:focus, .hm-bar select:focus { border-color: var(--acc); }
.hm-f-go { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 4px; }
.hm-f-go button, .hm-search button { height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: var(--pink); color: #fff; font: 800 14px 'Segoe UI', sans-serif; cursor: pointer; }
.hm-f-go button:hover, .hm-search button:hover { filter: brightness(1.1); }
.hm-f-go a { display: grid; place-items: center; padding: 0 16px; border-radius: 6px; background: var(--panel); color: var(--ink2); font-weight: 700; font-size: 14px; }
.hm-shade { display: none; }

/* ── SEARCH + BAR ── */
.hm-search { display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 16px; border-radius: 8px; background: var(--panel); margin-bottom: 18px; position: relative; isolation: isolate; }
.hm-search svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ink2); stroke-width: 2.2; stroke-linecap: round; }
.hm-search input { flex: 1; min-width: 0; height: 44px; border: 0; background: none; color: #fff; font-size: 16px; outline: none; }
.hm-search input::placeholder { color: var(--ink3); }
.hm-search iframe, .hm-search ins { display: none !important; }
.hm-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.hm-bar h2 { margin: 0; font: 400 24px/1.1 var(--num); color: #fff; }
.hm-bar h2 span { font: 600 14px 'Segoe UI', sans-serif; color: var(--ink3); margin-left: 6px; }
.hm-bar-r { display: flex; gap: 8px; }
.hm-bar select { width: auto; min-width: 150px; }
.hm-fbtn { display: none; height: 42px; padding: 0 16px; border: 0; border-radius: 6px; background: var(--panel); color: #fff; font: 700 14px 'Segoe UI', sans-serif; cursor: pointer; }
.hm-fbtn b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 10px; background: var(--pink); font-size: 11px; }
.hm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.hm-chips a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 6px; background: var(--panel); font-size: 13px; font-weight: 600; }
.hm-chips a b { font-size: 10px; color: var(--pink); }
.hm-note { margin: 0 0 14px; padding: 12px 16px; border-radius: 6px; background: var(--panel2); border-left: 3px solid var(--acc); color: var(--ink2); font-size: 14px; }
.hm-note a { color: var(--acc); font-weight: 700; }
.hm-empty { padding: 60px 20px; text-align: center; border-radius: 8px; background: var(--panel2); }
.hm-empty p { margin: 0 0 12px; font-size: 17px; font-weight: 700; }
.hm-empty a { color: var(--acc); font-weight: 700; }

/* ── PLAYER LIST: frosted-glass rows; the player's card colour only shows as a soft tint, a glow behind the card and a thin edge ── */
.hm-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hm .hm-row { color: #fff; }
.hm-row { position: relative; isolation: isolate; display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 12px 20px 12px 12px; border-radius: 16px; overflow: hidden;
  background:
    linear-gradient(105deg, color-mix(in srgb, var(--b) 16%, transparent) 0%, color-mix(in srgb, var(--b) 5%, transparent) 50%, rgba(255,255,255,.02) 100%),
    rgba(28, 33, 58, .55);
  border: 1px solid color-mix(in srgb, var(--b) 28%, rgba(255,255,255,.07));
  backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 20px 34px -24px rgba(0,0,0,.95);
  transition: border-color .2s ease, background-color .2s ease; }
.hm-row::before { content: ""; position: absolute; z-index: -1; left: -10px; top: 50%; width: 190px; height: 150px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--b) 45%, transparent), transparent); filter: blur(22px); opacity: .55; pointer-events: none; transition: opacity .2s ease; }
.hm-row:hover { border-color: color-mix(in srgb, var(--b) 55%, rgba(255,255,255,.1)); background-color: rgba(34, 40, 70, .6); }
.hm-row:hover::before { opacity: .85; }
.hm-row:focus-visible { outline: 2px solid color-mix(in srgb, var(--b) 70%, #fff); outline-offset: 3px; }
.hm-art { position: relative; z-index: 1; width: 96px; aspect-ratio: 420 / 520; padding: 8px; border-radius: 12px; background: rgba(8, 10, 22, .35); box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.hm-art canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity .3s, transform .2s ease; filter: drop-shadow(0 8px 10px rgba(0,0,0,.4)); }
.hm-art canvas.on { opacity: 1; }
.hm-row:hover canvas { transform: scale(1.04); }
.hm-ph { position: absolute; inset: 10% 14%; display: grid; place-content: center; justify-items: center; gap: 4px; border-radius: 10px 10px 40% 40% / 10px 10px 20% 20%; background: color-mix(in srgb, var(--b) 30%, rgba(255,255,255,.04)); transition: opacity .3s; }
.hm-ph b { font: 400 30px/1 var(--num); }
.hm-ph i { font-style: normal; font-size: 11px; font-weight: 800; }
canvas.on + .hm-ph { opacity: 0; }
.hm-txt { position: relative; z-index: 1; display: grid; gap: 5px; min-width: 0; padding: 14px 0; }
.hm-name { font: 400 21px/1.1 var(--num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-team { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13.5px; font-weight: 600; color: #b9bfd8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-team img { width: 20px; height: 20px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.hm-av { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #dde1f0; }
.hm-av::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #c7cce0; }
.hm-av--on::before { background: #39f07a; }
.hm-av--special::before { background: #ffd23f; }
.hm-av--off::before { background: #ff4560; }
.hm-big { position: relative; z-index: 1; font: 400 54px/1 var(--num); letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px color-mix(in srgb, var(--b) 60%, rgba(255,255,255,.5)); opacity: .55; }

/* ── PAGES ── */
.hm-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 32px 0 8px; }
.hm-pages a, .hm-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; }
.hm-pages a:hover { background: #333a5e; }
.hm-pages span[aria-current] { background: var(--pink); color: #fff; }
.hm-pages span:not([aria-current]) { background: none; }

/* ── ABOUT + FAQ (same text as before) ── */
.hm-about { max-width: 80ch; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line); }
.hm-about h2 { margin: 0 0 10px; font: 400 22px var(--num); color: #fff; }
.hm-about h3 { margin: 26px 0 8px; font-size: 16px; color: #fff; }
.hm-about p { margin: 0 0 12px; color: var(--ink2); font-size: 14.5px; line-height: 1.7; }
.hm-about a { color: var(--acc); font-weight: 700; }
.hm-about strong { color: #fff; }
.hm-about details { border-top: 1px solid var(--line); }
.hm-about details:last-of-type { border-bottom: 1px solid var(--line); }
.hm-about summary { padding: 14px 0; font-weight: 700; color: #fff; cursor: pointer; }
.hm-about details p { padding-bottom: 6px; }
footer, .site-footer { clear: both; position: relative; z-index: 10; }

/* ── RESPONSIVE ── */
@media (max-width: 1180px) { .hm-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1023px) {
  .hm-wrap { grid-template-columns: minmax(0, 1fr); }
  .hm-side { position: fixed; inset: 0 auto 0 0; z-index: 2150; width: min(360px, 90vw); border-radius: 0; overflow-y: auto; transform: translateX(-102%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 20px 0 50px rgba(0,0,0,.6); }
  .hm-side.open { transform: none; }
  .hm-side-top { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; padding: 14px 18px; background: var(--panel3); }
  .hm-side-top b { font: 400 17px var(--num); color: #fff; }
  .hm-side-top button { width: 38px; height: 38px; border: 0; border-radius: 6px; background: var(--panel); color: #fff; font-size: 15px; cursor: pointer; }
  .hm-shade { display: block; position: fixed; inset: 0; z-index: 2140; background: rgba(5,7,18,.65); opacity: 0; visibility: hidden; transition: .25s; }
  .hm-side.open + .hm-shade { opacity: 1; visibility: visible; }
  .hm-fbtn { display: inline-block; }
}
@media (max-width: 600px) {
  .hm-hero { padding-top: 24px; }
  .hm-hero p { font-size: 14px; }
  .hm-list { gap: 12px; }
  .hm-row { grid-template-columns: 80px minmax(0, 1fr) auto; gap: 12px; padding: 10px 14px 10px 10px; }
  .hm-art { width: 80px; padding: 6px; }
  .hm-name { font-size: 18px; }
  .hm-team { font-size: 12.5px; }
  .hm-big { font-size: 40px; }
  .hm-bar { flex-wrap: wrap; }
  .hm-bar h2 { font-size: 20px; width: 100%; }
  .hm-bar-r { width: 100%; } .hm-bar select { flex: 1; min-width: 0; }
  .hm-search button { padding: 0 14px; }
}
@media (prefers-reduced-motion: reduce) { .hm * { transition: none !important; } }
.hm-chips .hm-chip-go { background: none; color: var(--acc); font-weight: 700; }
