:root {
  --bg: #eee9df;
  --surface: #f8f4ec;
  --surface-strong: #e4ddd1;
  --red: #a71930;
  --red-dark: #701321;
  --red-hover: #c1273d;
  --red-soft: #d9a4aa;
  --text: #211d1b;
  --muted: #706762;
  --border: #cfc5b8;
  --map: #d8d0c3;
  --map-border: #8e8277;
  --paper: #fcf9f2;
  --white: #fffdf8;
  --shadow: 0 24px 60px rgba(67, 36, 31, 0.14);
  --danger: #a71930;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
button, input, select { font: inherit; }
button, a { color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.site-header {
  height: 84px;
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(238, 233, 223, 0.86);
}
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 5px 16px rgba(112, 19, 33, 0.09);
}
.brand-mark::before,
.brand-mark::after { content: ""; position: absolute; background: var(--red); }
.brand-mark::before { left: 0; top: 50%; width: 100%; height: 8px; transform: translateY(-50%); }
.brand-mark::after { left: 50%; top: 0; width: 8px; height: 100%; transform: translateX(-50%); }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 15px Georgia, serif; letter-spacing: 0.04em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 10px; letter-spacing: 0.14em; }
.site-header nav { display: flex; gap: 34px; }
.site-header nav a { color: var(--text); text-decoration: none; font-size: 13px; transition: color 0.18s; }
.site-header nav a:hover { color: var(--red-dark); }
.lang-button {
  padding: 9px 13px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
}
.lang-button:hover { border-color: var(--red-soft); color: var(--red-dark); }

.hero {
  position: relative;
  isolation: isolate;
  max-width: 1440px;
  margin: auto;
  padding: 64px 5vw 36px;
}
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 55px;
  right: 3vw;
  width: 360px;
  height: 300px;
  pointer-events: none;
  background:
    linear-gradient(transparent 45%, rgba(167, 25, 48, 0.045) 45% 55%, transparent 55%),
    linear-gradient(90deg, transparent 45%, rgba(167, 25, 48, 0.045) 45% 55%, transparent 55%);
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.68fr);
  column-gap: 8vw;
  position: relative;
}
.eyebrow { grid-column: 1; color: var(--red); font-size: 11px; letter-spacing: 0.18em; }
.intro h1 {
  grid-column: 1;
  margin: 14px 0 24px;
  font: 400 clamp(42px, 5vw, 76px)/1.05 Georgia, "Songti SC", serif;
  letter-spacing: -0.035em;
}
.intro h1 em { color: var(--red-dark); font-style: italic; font-weight: 400; }
.title-zh { display: block; margin-top: 16px; color: var(--muted); font: 15px/1.6 "Noto Sans SC", "Microsoft YaHei", sans-serif; letter-spacing: 0.08em; }
.lead { grid-column: 1; max-width: 620px; margin: 0; color: var(--muted); line-height: 1.8; }
.lead small { display: block; margin-top: 5px; font-size: 12px; }
.search-wrap { grid-column: 2; grid-row: 1/5; align-self: center; position: relative; }
.search-wrap label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 11px; letter-spacing: 0.12em; }
.search-box {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 0 10px 28px rgba(67, 36, 31, 0.06);
}
.search-box:focus-within { border-color: var(--red-dark); box-shadow: 0 0 0 3px rgba(167, 25, 48, 0.08); }
.search-box > span { color: var(--red); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); }
.search-box input::placeholder { color: #998e86; }
.search-box kbd { padding: 2px 7px; border: 1px solid var(--border); border-radius: 4px; color: var(--muted); background: var(--surface); }
.search-results {
  position: absolute;
  z-index: 30;
  top: 88px;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.search-result { width: 100%; padding: 13px 16px; display: flex; justify-content: space-between; border: 0; border-bottom: 1px solid var(--border); background: transparent; text-align: left; }
.search-result:hover, .search-result.active { background: #f0e4e2; }
.search-result small { color: var(--muted); }
.no-result { padding: 18px; color: var(--muted); line-height: 1.6; }
.stats { grid-column: 1; display: flex; gap: 48px; margin-top: 35px; }
.stats div { display: flex; gap: 10px; align-items: center; }
.stats strong { color: var(--red); font: 400 28px Georgia, serif; }
.stats span { max-width: 60px; color: var(--muted); font-size: 11px; }
.stats span small { display: block; margin-top: 3px; color: var(--red-dark); font-size: 9px; }
.load-status { grid-column: 1 / -1; margin: 20px 0 0; padding: 10px 13px; border-left: 3px solid var(--border); color: var(--muted); background: rgba(248, 244, 236, 0.55); font-size: 11px; line-height: 1.55; }
.load-status.warning { border-color: #b37b24; color: #75521d; }
.load-status.error, .inline-error { border-color: var(--danger); color: var(--danger); }

.league-explorer { margin-top: 54px; }
.league-explorer-heading { margin-bottom: 18px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.league-explorer-heading div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.section-kicker { margin: 0; color: var(--red-dark); font: 700 12px Georgia, serif; letter-spacing: 0.18em; }
.league-explorer-heading > p { margin: 0; color: var(--text); text-align: right; font: 17px Georgia, serif; }
.league-explorer-heading > p small { display: block; margin-top: 5px; color: var(--muted); font: 11px Inter, "Noto Sans SC", sans-serif; }
.league-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.league-card { min-width: 0; padding: 18px; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--border); border-radius: 7px; background: var(--paper); color: var(--text); text-align: left; box-shadow: 0 10px 30px rgba(67, 36, 31, 0.05); transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; scroll-snap-align: start; }
.league-card:hover { transform: translateY(-2px); border-color: var(--red); box-shadow: 0 14px 34px rgba(67, 36, 31, 0.1); }
.league-card.active { border-color: var(--red-dark); box-shadow: inset 0 0 0 1px var(--red-dark), 0 12px 30px rgba(67, 36, 31, 0.08); }
.league-logo { position: relative; width: 64px; height: 64px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--league-color); }
.league-logo-fallback { font: 700 20px Georgia, serif; letter-spacing: 0.04em; }
.league-logo img { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); object-fit: contain; background: var(--white); }
.league-card-copy, .league-card-copy strong, .league-card-copy small { display: block; min-width: 0; }
.league-card-copy strong { min-height: 36px; font: 700 15px/1.2 Georgia, serif; }
.league-card-copy small { min-height: 32px; margin-top: 5px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.league-card-copy > span { margin-top: 9px; display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: 10px; text-transform: uppercase; }
.league-card-copy b { color: var(--red-dark); }
.league-card-copy i { font-style: normal; }
.league-arrow { color: var(--red); font-size: 20px; }

.atlas-shell { height: clamp(620px, 76vh, 710px); min-height: 0; margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.72fr); align-items: stretch; gap: 20px; }
.map-card, .region-panel { border: 1px solid var(--border); border-radius: 8px; background: var(--paper); box-shadow: 0 14px 42px rgba(67, 36, 31, 0.06); }
.map-card { min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.map-heading { height: 58px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 11px; letter-spacing: 0.16em; }
.map-heading > span { display: flex; align-items: center; gap: 11px; }
.map-heading > span::before { content: ""; width: 28px; height: 3px; background: var(--red); }
.map-actions { display: flex; align-items: center; gap: 14px; }
.map-heading button { border: 0; background: none; color: var(--red); font-size: 11px; }
.map-heading button:hover { color: var(--red-hover); }
#clear-league-filter { padding-right: 14px; border-right: 1px solid var(--border); color: var(--red-dark); font-weight: 700; letter-spacing: 0.06em; }
.map-stage { position: relative; min-height: 0; flex: 1; display: grid; place-items: center; overflow: hidden; background: #f1ece4; }
#england-map { height: 100%; max-width: 100%; filter: drop-shadow(0 12px 12px rgba(67, 36, 31, 0.12)); }
.region-group { cursor: pointer; outline: none; }
.region-group path {
  fill: var(--map);
  fill-rule: evenodd;
  stroke: var(--map-border);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  transition: fill 0.15s, stroke 0.15s, opacity 0.25s;
}
.region-group text { pointer-events: none; fill: #3b332f; text-anchor: middle; font-size: 10px; font-weight: 700; letter-spacing: 0.04em; transition: fill 0.15s; }
.region-group .label-line { pointer-events: none; stroke: #3b332f; stroke-width: 1; vector-effect: non-scaling-stroke; transition: stroke 0.15s; }
.region-group:hover path, .region-group:focus path { fill: var(--red-hover); stroke: var(--red-dark); stroke-width: 2; }
.region-group:hover text, .region-group:focus text { fill: var(--white); }
.region-group:hover .label-line, .region-group:focus .label-line { stroke: var(--white); }
.region-group.selected path { fill: var(--red-dark); stroke: var(--red); stroke-width: 2; }
.region-group.selected text { fill: var(--white); }
.region-group.selected .label-line { stroke: var(--white); }
.region-group.dimmed { opacity: 0.28; }
#map-status { fill: var(--muted); font-size: 12px; letter-spacing: 0.04em; }
.map-tooltip { position: absolute; z-index: 10; min-width: 168px; padding: 12px 14px; pointer-events: none; border: 1px solid var(--border); border-radius: 4px; background: var(--white); color: var(--text); box-shadow: var(--shadow); font-size: 12px; }
.map-tooltip strong, .map-tooltip span { display: block; }
.map-tooltip strong { color: var(--red-dark); }
.map-tooltip span { margin-top: 4px; color: var(--muted); }
.map-tooltip small { display: block; margin-top: 7px; color: var(--red); }
.map-hint { margin: 0; padding: 16px; border-top: 1px solid var(--border); color: var(--muted); text-align: center; font-size: 11px; }
.map-hint span { color: var(--red); }
.compass { position: absolute; right: 22px; top: 22px; color: var(--red-dark); font: 12px Georgia, serif; text-align: center; }
.compass i { display: block; width: 1px; height: 30px; margin: 4px auto; background: linear-gradient(var(--red) 50%, var(--map-border) 50%); }
.city-marker { cursor: pointer; }
.city-marker circle { fill: var(--white); stroke: var(--red-dark); stroke-width: 3; }
.city-marker text { pointer-events: none; fill: var(--red-dark); text-anchor: middle; font-size: 10px; font-weight: 700; }
.city-marker.selected circle { fill: var(--red-dark); }
.city-marker.selected text { fill: var(--white); }

.region-panel { min-height: 0; max-height: 100%; padding: 28px; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; scrollbar-color: var(--red-soft) transparent; scrollbar-width: thin; }
.region-panel::-webkit-scrollbar { width: 8px; }
.region-panel::-webkit-scrollbar-track { background: transparent; }
.region-panel::-webkit-scrollbar-thumb { border: 2px solid var(--paper); border-radius: 99px; background: var(--red-soft); }
.panel-sticky-heading { position: sticky; z-index: 4; top: -28px; margin: -28px -28px 18px; padding: 25px 28px 18px; border-bottom: 1px solid var(--border); background: rgba(252, 249, 242, 0.96); backdrop-filter: blur(10px); }
.panel-sticky-heading h2 { margin-bottom: 2px; }
.panel-sticky-heading .region-english { margin: 0; }
.panel-club-list { padding-bottom: 4px; }
.search-result-limit { padding: 10px 16px; color: var(--muted); background: var(--surface); font-size: 10px; text-align: center; }
.empty-panel { height: 100%; min-height: 350px; display: grid; place-content: center; color: var(--muted); text-align: center; }
.empty-panel .ball-icon { font-size: 38px; filter: grayscale(1); opacity: 0.45; }
.empty-panel p { margin: 16px 0 5px; color: var(--text); font: 22px Georgia, serif; }
.region-kicker { color: var(--red); font-size: 10px; letter-spacing: 0.18em; }
.region-panel h2 { margin: 8px 0 4px; color: var(--text); font: 400 33px Georgia, serif; }
.region-english { margin: 0 0 18px; color: var(--muted); }
.region-description { color: var(--muted); font-size: 13px; line-height: 1.75; }
.panel-meta { margin: 20px 0; padding: 16px 0; display: flex; justify-content: space-between; border-block: 1px solid var(--border); font-size: 12px; }
.panel-meta strong { color: var(--red); font: 25px Georgia, serif; }
.filter-row { margin-bottom: 18px; display: flex; gap: 8px; overflow: auto; }
.filter-chip { padding: 7px 11px; white-space: nowrap; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); color: var(--muted); font-size: 11px; }
.filter-chip:hover { border-color: var(--red-soft); color: var(--red-dark); }
.filter-chip.active { border-color: var(--red-dark); background: var(--red-dark); color: var(--white); }
.club-list { display: grid; gap: 10px; }
.club-card { width: 100%; padding: 14px; display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); text-align: left; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.club-card:hover { transform: translateY(-2px); border-color: var(--red-dark); background: var(--white); }
.club-badge { width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; background: var(--club); color: white; font: 700 17px Georgia, serif; box-shadow: 0 0 0 1px var(--border); }
.club-card strong, .club-card small { display: block; }
.club-card small { margin-top: 4px; color: var(--muted); font-size: 10px; }
.club-card i { color: var(--red); font-style: normal; }
.club-logo { position: relative; display: grid; flex: 0 0 auto; place-items: center; overflow: hidden; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--red-dark); }
.club-logo img { width: 78%; height: 78%; object-fit: contain; }
.club-logo-fallback { display: grid; width: 100%; height: 100%; place-items: center; background: var(--club, var(--red-dark)); color: var(--white); font: 700 15px Georgia, serif; letter-spacing: 0.03em; }
.club-logo-fallback[hidden] { display: none; }
.club-logo-small { width: 44px; height: 44px; }
.club-logo-search { width: 38px; height: 38px; margin-right: 10px; }
.club-logo-directory { width: 68px; height: 68px; box-shadow: 0 4px 14px rgba(67, 36, 31, 0.09); }
.club-logo-drawer { width: 82px; height: 82px; flex: 0 0 82px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--border); }
.club-logo-drawer .club-logo-fallback { font-size: 24px; }
.back-button { width: 100%; margin-top: 18px; padding: 10px; border: 1px solid var(--border); border-radius: 4px; background: transparent; color: var(--muted); }
.back-button:hover { border-color: var(--red-soft); color: var(--red-dark); }

.club-directory { padding: 72px 5vw 78px; border-top: 1px solid var(--border); background: var(--surface); }
.directory-heading { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.directory-heading > div > span { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; }
.directory-heading > p { max-width: 680px; margin: 0; color: var(--text); text-align: right; font: 18px/1.5 Georgia, serif; }
.directory-heading > p small { display: block; margin-top: 6px; color: var(--muted); font: 11px Inter, "Noto Sans SC", sans-serif; }
.directory-summary { margin-top: 26px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--border); background: var(--border); gap: 1px; }
.directory-summary span { padding: 14px 16px; background: var(--paper); color: var(--muted); font-size: 11px; }
.directory-summary strong { margin-right: 5px; color: var(--red-dark); font: 22px Georgia, serif; }
.directory-controls { position: sticky; z-index: 12; top: 0; margin: 20px 0 38px; padding: 16px; display: grid; grid-template-columns: 1fr 1fr 1fr minmax(240px, 1.5fr); gap: 12px; border: 1px solid var(--border); border-radius: 7px; background: rgba(248, 244, 236, 0.96); box-shadow: 0 9px 26px rgba(67, 36, 31, 0.07); backdrop-filter: blur(10px); }
.directory-controls label { min-width: 0; }
.directory-controls label > span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.directory-controls select, .directory-controls input { width: 100%; height: 42px; padding: 0 11px; border: 1px solid var(--border); border-radius: 4px; outline: 0; background: var(--white); color: var(--text); }
.directory-controls select:focus, .directory-controls input:focus { border-color: var(--red-dark); box-shadow: 0 0 0 3px rgba(167, 25, 48, 0.08); }
.directory-groups { display: grid; gap: 46px; }
.directory-group { scroll-margin-top: 110px; }
.directory-group-heading { margin-bottom: 18px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 2px solid var(--red-dark); }
.directory-group-heading > div { min-width: 0; display: flex; align-items: center; gap: 14px; }
.directory-group-heading .league-logo-directory { width: 54px; height: 54px; flex: 0 0 54px; }
.directory-group-heading h2 { margin: 0; color: var(--red-dark); font: 25px Georgia, serif; }
.directory-group-heading p { margin: 4px 0 0; color: var(--muted); font-size: 11px; }
.directory-group-heading > strong { color: var(--text); text-align: right; font-size: 12px; white-space: nowrap; }
.directory-group-heading > strong small { display: block; margin-top: 4px; color: #966a22; font-size: 9px; letter-spacing: 0.08em; }
.warning-group .directory-group-heading { border-color: #b37b24; }
.group-fallback { width: 54px; height: 54px; display: grid; flex: 0 0 54px; place-items: center; border-radius: 50%; background: var(--red-dark); color: var(--white); font: 700 13px Georgia, serif; }
.warning-group .group-fallback { background: #8b6627; }
.directory-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.directory-club-card { min-width: 0; padding: 18px; cursor: pointer; border: 1px solid var(--border); border-radius: 7px; background: var(--paper); box-shadow: 0 9px 25px rgba(67, 36, 31, 0.05); transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s; }
.directory-club-card:hover { transform: translateY(-2px); border-color: var(--red-soft); box-shadow: 0 14px 30px rgba(67, 36, 31, 0.09); }
.directory-card-top { min-height: 70px; display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.rank-tag { padding: 5px 8px; border-radius: 99px; background: var(--red-dark); color: var(--white); font: 700 11px Georgia, serif; }
.directory-club-card h3 { min-height: 42px; margin: 14px 0 3px; color: var(--text); font: 21px/1.1 Georgia, serif; }
.club-name-zh { min-height: 16px; margin: 0; color: var(--muted); font-size: 11px; }
.club-league-line { margin: 10px 0 15px; color: var(--red-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.directory-club-card dl { min-height: 166px; margin: 0; }
.directory-club-card dl > div { padding: 8px 0; border-top: 1px solid var(--border); }
.directory-club-card dt { color: var(--muted); font-size: 8px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.directory-club-card dd { margin: 4px 0 0; overflow-wrap: anywhere; color: var(--text); font-size: 11px; line-height: 1.4; }
.directory-club-card dd small { display: block; margin-top: 3px; color: var(--muted); }
.directory-detail-button { width: 100%; padding: 10px; border: 1px solid var(--red-dark); border-radius: 4px; background: transparent; color: var(--red-dark); font-size: 9px; font-weight: 700; letter-spacing: 0.1em; }
.directory-detail-button:hover { background: var(--red-dark); color: var(--white); }
.directory-empty, .directory-error, .directory-loading { padding: 42px; border: 1px dashed var(--border); color: var(--muted); background: var(--paper); text-align: center; }
.directory-error { border-color: var(--danger); color: var(--danger); }
.view-all-results { width: 100%; padding: 13px; border: 0; background: var(--red-dark); color: var(--white); font-size: 11px; font-weight: 700; }
.search-result { align-items: center; }
.search-result > span:nth-of-type(2) { flex: 1; }
.content-sources { padding-left: 18px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.drawer-content .zh-support { padding-left: 12px; border-left: 2px solid var(--red-soft); }

.about-strip { padding: 40px 5vw; display: flex; align-items: center; gap: 12vw; border-block: 1px solid var(--border); background: var(--surface); }
.about-strip span { color: var(--red-dark); white-space: nowrap; font: italic 25px Georgia, serif; }
.about-strip span small, .about-strip p small { display: block; margin-top: 6px; color: var(--muted); font: 11px/1.7 Inter, "Noto Sans SC", sans-serif; }
.about-strip p { max-width: 650px; color: var(--muted); line-height: 1.8; }
footer { max-width: none; margin: auto; padding: 30px 5vw 45px; display: flex; justify-content: space-between; gap: 30px; border-top: 3px solid var(--red-dark); background: var(--surface-strong); color: var(--muted); font-size: 10px; }
footer p:last-child { max-width: 760px; text-align: right; }

.drawer-backdrop { position: fixed; z-index: 40; inset: 0; background: rgba(33, 29, 27, 0.46); }
.club-drawer, .league-drawer { position: fixed; z-index: 50; right: 0; top: 0; width: min(520px, 100%); height: 100%; overflow: auto; border-left: 1px solid var(--border); background: var(--paper); color: var(--text); box-shadow: -30px 0 80px rgba(67, 36, 31, 0.2); transform: translateX(105%); transition: transform 0.3s; }
.club-drawer.open, .league-drawer.open { transform: translateX(0); }
.drawer-hero { min-height: 168px; padding: 34px 28px 28px; display: flex; align-items: flex-end; gap: 18px; border-top: 8px solid var(--club); border-bottom: 1px solid var(--border); background: var(--surface); }
.drawer-badge { width: 82px; height: 82px; display: grid; place-items: center; border: 3px solid var(--white); border-radius: 50%; background: var(--club); color: white; font: 700 28px Georgia, serif; box-shadow: 0 0 0 1px var(--border); }
.drawer-hero h2 { margin: 0; color: var(--red-dark); font: 32px Georgia, serif; }
.drawer-hero p { margin: 5px 0 0; color: var(--muted); }
.close-drawer { position: absolute; right: 18px; top: 18px; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--red-dark); font-size: 20px; }
.close-drawer:hover { border-color: var(--red); background: #f0e4e2; }
.drawer-content { padding: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.fact { padding: 14px; background: var(--surface); }
.fact small, .fact strong { display: block; }
.fact small { margin-bottom: 6px; color: var(--muted); font-size: 9px; }
.drawer-content h3 { margin: 30px 0 10px; color: var(--red-dark); font: 21px Georgia, serif; }
.drawer-content p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.honour { padding: 10px 0; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); font-size: 12px; }
.honour strong { color: var(--red); }
.official-link { display: block; margin-top: 28px; padding: 13px; border: 1px solid var(--red-dark); border-radius: 4px; color: var(--red-dark); text-align: center; text-decoration: none; }
.official-link:hover { background: var(--red-dark); color: var(--white); }
.website-pending { margin-top: 24px; padding: 12px; border: 1px dashed var(--border); border-radius: 4px; text-align: center; }

.league-drawer-hero { min-height: 190px; padding: 42px 28px 28px; display: flex; align-items: flex-end; gap: 20px; border-top: 8px solid var(--league-color); border-bottom: 1px solid var(--border); background: var(--surface); }
.league-logo-drawer { width: 86px; height: 86px; flex: 0 0 86px; }
.league-logo-drawer .league-logo-fallback { font-size: 27px; }
.league-drawer-hero > div > span { color: var(--red); font-size: 9px; font-weight: 700; letter-spacing: 0.14em; }
.league-drawer-hero h2 { margin: 7px 0 3px; color: var(--red-dark); font: 32px Georgia, serif; }
.league-drawer-hero p { margin: 0; color: var(--muted); font-size: 12px; }
.league-drawer-content { padding: 28px; }
.league-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--border); background: var(--border); }
.league-meta div { min-width: 0; padding: 13px; background: var(--surface); }
.league-meta small, .league-meta strong { display: block; }
.league-meta small { margin-bottom: 6px; color: var(--muted); font-size: 8px; letter-spacing: 0.08em; }
.league-meta strong { overflow-wrap: anywhere; font-size: 12px; }
.league-counts { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; border-block: 1px solid var(--border); }
.league-counts > div { padding: 17px 10px 17px 0; display: flex; align-items: center; gap: 12px; }
.league-counts > div + div { padding-left: 18px; border-left: 1px solid var(--border); }
.league-counts strong { color: var(--red); font: 35px Georgia, serif; }
.league-counts span, .league-counts small { display: block; }
.league-counts span { color: var(--text); font-size: 9px; font-weight: 700; letter-spacing: 0.08em; }
.league-counts small { margin-top: 4px; color: var(--muted); font-size: 10px; font-weight: 400; letter-spacing: 0; }
.league-drawer-content h3 { margin: 27px 0 9px; color: var(--red-dark); font: 20px Georgia, serif; }
.league-drawer-content p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.league-drawer-content .zh-support { margin-top: 8px; padding-left: 12px; border-left: 2px solid var(--red-soft); font-size: 11px; }
.explore-league-button { width: 100%; margin-top: 30px; padding: 14px; border: 1px solid var(--red-dark); border-radius: 4px; background: var(--red-dark); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; }
.explore-league-button small { display: block; margin-top: 5px; font-size: 10px; font-weight: 400; letter-spacing: 0; opacity: 0.78; }
.explore-league-button:hover { background: var(--red-hover); }
.league-website { display: block; margin-top: 12px; padding: 12px; color: var(--red-dark); text-align: center; text-decoration: none; font-size: 11px; }
.league-website:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .site-header nav { display: none; }
  .hero { padding-top: 38px; }
  .hero::before { width: 240px; height: 240px; }
  .intro { display: block; }
  .search-wrap { margin-top: 30px; }
  .stats { gap: 22px; }
  .league-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .atlas-shell { height: auto; grid-template-columns: 1fr; }
  .map-card { height: 620px; }
  .region-panel { height: min(520px, 70vh); min-height: 360px; }
  .map-stage { height: auto; }
  .about-strip { display: block; }
  .about-strip p { margin-top: 18px; }
  footer { display: block; }
  footer p:last-child { margin-top: 14px; text-align: left; }
  .directory-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-header { height: 70px; }
  .brand strong { font-size: 13px; }
  .lang-button { display: none; }
  .hero { padding-inline: 18px; }
  .intro h1 { font-size: 42px; }
  .lead { font-size: 14px; }
  .stats { justify-content: space-between; gap: 5px; }
  .stats strong { font-size: 23px; }
  .league-explorer { margin-top: 42px; }
  .league-explorer-heading { display: block; }
  .league-explorer-heading > p { margin-top: 12px; text-align: left; }
  .league-grid { margin-right: -18px; padding: 2px 18px 14px 0; display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(270px, 82vw); overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; scrollbar-width: thin; }
  .league-card { min-height: 122px; }
  .atlas-shell { margin-top: 36px; }
  .map-heading { height: auto; min-height: 58px; padding-block: 12px; align-items: flex-start; gap: 12px; }
  .map-actions { flex-direction: column; align-items: flex-end; gap: 7px; }
  #clear-league-filter { padding: 0; border-right: 0; }
  .map-card { height: 520px; }
  .map-stage { height: auto; }
  .region-panel { padding: 20px; }
  .region-group text { font-size: 8px; }
  .about-strip, footer { padding-inline: 20px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .drawer-hero { min-height: 155px; padding: 28px 22px 22px; }
  .drawer-content { padding: 22px; }
  .league-drawer-hero { min-height: 170px; padding: 34px 22px 22px; }
  .league-drawer-content { padding: 22px; }
  .club-directory { padding: 52px 18px 60px; }
  .directory-heading { display: block; }
  .directory-heading > p { margin-top: 15px; text-align: left; }
  .directory-summary { grid-template-columns: 1fr; }
  .directory-controls { position: static; grid-template-columns: 1fr; }
  .directory-grid { grid-template-columns: 1fr; }
  .directory-group-heading { align-items: flex-start; }
  .directory-group-heading > strong { white-space: normal; }
  .directory-club-card dl { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
