:root {
  --ink: #132420;
  --muted: #6e7d77;
  --green-950: #08241b;
  --green-900: #0d3528;
  --green-800: #12513b;
  --green-700: #1c7352;
  --green-100: #e8f5ec;
  --cream: #f5f4ed;
  --card: #ffffff;
  --line: #dce5de;
  --gold: #f3c757;
  --coral: #e55e4d;
  --blue: #e3efff;
  --shadow: 0 14px 35px rgba(10, 38, 28, .12);
}

* { box-sizing: border-box; }
body { margin: 0; background: #d9e4dd; color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; background: var(--cream); position: relative; padding-bottom: 95px; overflow: hidden; }
.page { min-height: calc(100dvh - 95px); }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 14px; }
.brand { display: flex; align-items: center; gap: 9px; color: var(--green-950); font-size: 19px; font-weight: 900; letter-spacing: -.5px; }
.brand-mark { width: 31px; height: 31px; border-radius: 10px 10px 10px 3px; display: grid; place-items: center; background: var(--green-900); color: var(--gold); box-shadow: 0 6px 15px rgba(8,36,27,.2); }
.avatar { width: 39px; height: 39px; border-radius: 50%; border: 2px solid white; display: grid; place-items: center; background: #1f6048; color: white; font-weight: 800; box-shadow: 0 4px 10px rgba(8,36,27,.12); }
.section { padding: 0 20px; margin-top: 20px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; }
.section-title { margin: 0; font-size: 17px; letter-spacing: -.4px; }
.link-btn, .text-btn { border: 0; background: transparent; color: var(--green-700); font-weight: 800; padding: 5px 0; }
.hero { margin: 0 20px; padding: 22px; color: white; border-radius: 25px; background: linear-gradient(135deg, #0c3427 0%, #145942 63%, #227b58 100%); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero:before, .hero:after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.hero:before { width: 220px; height: 220px; right: -110px; top: -145px; }
.hero:after { width: 150px; height: 150px; left: -110px; bottom: -105px; }
.eyebrow { position: relative; z-index: 1; color: #cce7d7; font-size: 12px; font-weight: 700; }
.team-name { position: relative; z-index: 1; margin: 6px 0 20px; font-size: 27px; line-height: 1; letter-spacing: -1px; }
.hero-stats { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1px 1fr; gap: 15px; align-items: center; }
.hero-stat span { display: block; color: #cce7d7; font-size: 12px; }
.hero-stat strong { display: block; margin-top: 3px; font-size: 21px; }
.hero-divider { width: 1px; height: 35px; background: rgba(255,255,255,.24); }
.rank-up { color: var(--gold); font-size: 12px; font-weight: 800; }
.next-match { border: 1px solid var(--line); border-radius: 19px; background: var(--card); padding: 16px; box-shadow: 0 3px 10px rgba(17,36,29,.04); }
.match-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.match-meta b { color: var(--green-700); }
.match-teams { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 8px; padding: 16px 0 10px; }
.match-team { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 800; min-width: 0; }
.match-team.right { justify-content: flex-end; text-align: right; }
.match-team span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.club-badge { width: 35px; height: 35px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; font-size: 12px; color: white; font-weight: 900; }
.badge-falcon { background: linear-gradient(135deg, #f5ca54, #c77923); color: #173527; }
.badge-blue { background: linear-gradient(135deg, #243c78, #658ee6); }
.badge-red { background: linear-gradient(135deg, #9a1b32, #e75955); }
.badge-black { background: linear-gradient(135deg, #171e23, #59626d); }
.badge-teal { background: linear-gradient(135deg, #05676e, #44b4ab); }
.match-vs { text-align: center; font-weight: 900; color: var(--green-900); }
.match-foot { border-top: 1px solid #edf1ee; padding-top: 10px; color: var(--muted); font-size: 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.action-card { border: 0; border-radius: 19px; text-align: left; color: var(--ink); background: white; padding: 15px; box-shadow: 0 4px 14px rgba(17,36,29,.07); }
.action-card i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; font-size: 19px; font-style: normal; background: var(--green-100); }
.action-card.gold i { background: #fff2ca; }
.action-card strong { display: block; margin-top: 12px; font-size: 15px; }
.action-card small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.news-list { display: grid; gap: 9px; }
.news-item { display: flex; gap: 11px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border: 0; }
.news-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.news-copy { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.news-copy b { font-weight: 800; }
.news-time { color: var(--muted); font-size: 11px; }
.bottom-nav { position: fixed; z-index: 20; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 520px); display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; padding: 10px 13px max(13px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(12px); }
.nav-btn { border: 0; background: transparent; color: #82918b; padding: 4px 0; display: grid; gap: 3px; justify-items: center; font-size: 10px; font-weight: 800; }
.nav-btn .nav-icon { width: 30px; height: 30px; font-size: 19px; display: grid; place-items: center; border-radius: 10px; }
.nav-btn.active { color: var(--green-800); }
.nav-btn.active .nav-icon { background: var(--green-100); }
.page-title { padding: 4px 20px 8px; font-size: 27px; letter-spacing: -1px; margin: 0; }
.subhead { padding: 0 20px; color: var(--muted); font-size: 13px; }
.segmented { display: flex; gap: 7px; overflow-x: auto; padding: 16px 20px 4px; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display:none; }
.seg-btn { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 13px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; }
.seg-btn.active { border-color: var(--green-800); background: var(--green-800); color: white; }
.auction-note { margin: 14px 20px 0; padding: 12px 14px; display: flex; align-items: center; gap: 9px; border-radius: 15px; background: #fff3cf; color: #765215; font-size: 12px; line-height: 1.4; }
.auction-lot { margin: 13px 20px; background: white; border-radius: 19px; padding: 15px; box-shadow: 0 3px 12px rgba(17,36,29,.06); }
.lot-top { display: flex; gap: 12px; }
.player-photo { width: 50px; height: 50px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 15px; color: white; font-weight: 900; font-size: 15px; background: linear-gradient(135deg, #355c4d, #96bea6); }
.player-photo.star { background: linear-gradient(135deg, #f1bd41, #bd6329); }
.player-photo.blue { background: linear-gradient(135deg, #2d65aa, #89b2e7); }
.player-photo.red { background: linear-gradient(135deg, #8b2542, #e76d58); }
.lot-main { flex: 1; min-width: 0; }
.player-line { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.player-line strong { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.position { border-radius: 6px; padding: 3px 5px; background: #e7f5ec; color: var(--green-800); font-size: 10px; font-weight: 900; }
.rating { color: #b37318; font-size: 13px; font-weight: 900; }
.player-sub { margin-top: 3px; color: var(--muted); font-size: 11px; }
.lot-bottom { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px; border-top: 1px solid #edf1ee; margin-top: 13px; padding-top: 12px; }
.price-label, .tiny-label { color: var(--muted); font-size: 10px; }
.price { margin-top: 3px; color: var(--green-900); font-size: 17px; font-weight: 900; }
.countdown { color: var(--coral); font-size: 11px; font-weight: 800; }
.primary-btn { border: 0; border-radius: 12px; padding: 10px 13px; color: white; background: var(--green-800); font-size: 12px; font-weight: 900; box-shadow: 0 6px 12px rgba(18,81,59,.18); }
.primary-btn:active { transform: translateY(1px); }
.outline-btn { border: 1px solid var(--green-800); border-radius: 12px; padding: 9px 12px; color: var(--green-800); background: white; font-size: 12px; font-weight: 900; }
.bundle { border: 1px solid #ebd794; background: linear-gradient(120deg, #fffdf4, white); }
.bundle-list { display: flex; gap: 6px; margin-top: 8px; }
.bundle-mini { flex: 1; padding: 6px; border-radius: 9px; background: #f2f6f3; color: var(--muted); text-align: center; font-size: 10px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-wrap { margin: 14px 20px 0; padding: 12px; border-radius: 24px; background: #0f694a; box-shadow: var(--shadow); }
.pitch { min-height: 382px; position: relative; border: 1px solid rgba(255,255,255,.55); border-radius: 15px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.04) 0 13%, transparent 13% 26%); overflow: hidden; }
.pitch:before { content:""; position:absolute; width:100px; height:100px; left:50%; top:50%; transform:translate(-50%,-50%); border:1px solid rgba(255,255,255,.55); border-radius:50%; }
.pitch:after { content:""; position:absolute; left:0; right:0; top:50%; border-top:1px solid rgba(255,255,255,.55); }
.field-player { position: absolute; z-index: 2; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 3px; border: 0; background: transparent; color: white; font-size: 9px; font-weight: 800; padding: 0; }
.field-player span { width: 35px; height: 35px; border-radius: 50%; display: grid; place-items:center; color: #173527; background: var(--gold); box-shadow: 0 2px 7px rgba(0,0,0,.2); font-size: 10px; }
.field-player.gk span { background: #9bd4ee; }
.squad-card { margin: 14px 20px; border-radius: 18px; padding: 14px; background: white; }
.squad-card h3 { margin: 0 0 10px; font-size: 14px; }
.bench { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; }
.bench-player { border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; padding: 7px 3px; text-align: center; font-size: 10px; color: var(--muted); }
.bench-player b { display: block; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.select-row { display: flex; align-items:center; justify-content:space-between; gap:10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.select-row:last-child { border-bottom:0; padding-bottom:0; }
.select-label { font-size: 13px; font-weight: 800; }
.select-options { display: flex; gap: 5px; overflow-x:auto; justify-content:flex-end; }
.mini-option { border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; padding: 6px 8px; color: var(--muted); background:white; font-size: 10px; font-weight:800; }
.mini-option.active { border-color: var(--green-800); background: var(--green-100); color: var(--green-800); }
.lock-status { margin: 0 20px; border-radius: 13px; padding: 10px 12px; display:flex; align-items:center; justify-content:space-between; background:#e8f5ec; color:#1c7352; font-size:11px; font-weight:800; }
.fixture-round { margin: 15px 20px; border-radius: 19px; overflow:hidden; background:white; box-shadow: 0 3px 12px rgba(17,36,29,.06); }
.round-title { display:flex; justify-content:space-between; align-items:center; padding: 12px 14px; background:#eff5f0; color:var(--green-900); font-size:12px; font-weight:900; }
.fixture { width:100%; border:0; display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:8px; padding: 13px 14px; background:white; color:var(--ink); text-align:left; border-bottom:1px solid #edf1ee; }
.fixture:last-child { border-bottom:0; }
.fixture-team { font-size:12px; font-weight:800; min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.fixture-team.away { text-align:right; }
.score { min-width:43px; text-align:center; color:var(--green-900); font-size:13px; font-weight:900; }
.score.upcoming { color:var(--muted); font-size:10px; }
.table-card { margin: 14px 20px; padding: 6px 0; border-radius: 19px; background:white; box-shadow: 0 3px 12px rgba(17,36,29,.06); }
.table-header, .table-row { display:grid; grid-template-columns: 29px 1fr 29px 29px 29px; align-items:center; padding: 10px 14px; gap:5px; font-size:11px; }
.table-header { color:var(--muted); border-bottom:1px solid var(--line); font-weight:800; }
.table-row { font-weight:800; border-bottom:1px solid #eff3f0; }
.table-row:last-child { border-bottom:0; }
.table-row.me { background:#f0f8f2; color:var(--green-800); }
.pos-num { color:var(--muted); }
.pos-num.top { color:#bd7912; }
.table-team { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.stat-card { margin:14px 20px; border-radius:19px; overflow:hidden; background:white; box-shadow:0 3px 12px rgba(17,36,29,.06); }
.stat-row { display:grid; grid-template-columns:28px 39px 1fr 35px; gap:10px; align-items:center; padding:11px 13px; border-bottom:1px solid #eef2ef; }
.stat-row:last-child { border:0; }
.stat-rank { color:var(--muted); font-size:12px; font-weight:900; text-align:center; }
.stat-name { min-width:0; }
.stat-name b { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
.stat-name small { color:var(--muted); font-size:10px; }
.stat-value { color:var(--green-800); text-align:right; font-size:16px; font-weight:900; }
.search-box { position:relative; margin: 16px 20px 3px; }
.search-box input { width:100%; padding:14px 14px 14px 39px; border:1px solid var(--line); border-radius:15px; color:var(--ink); outline:0; background:white; box-shadow:0 3px 12px rgba(17,36,29,.04); }
.search-box input:focus { border-color:var(--green-700); }
.search-icon { position:absolute; left:14px; top:12px; font-size:17px; }
.search-hint { padding:10px 20px; color:var(--muted); font-size:11px; }
.result-list { margin:0 20px; border-radius:18px; overflow:hidden; background:white; box-shadow:0 3px 12px rgba(17,36,29,.06); }
.result { width:100%; border:0; background:white; display:flex; align-items:center; gap:11px; padding:12px; color:var(--ink); text-align:left; border-bottom:1px solid #edf1ee; }
.result:last-child { border:0; }
.result-main { flex:1; min-width:0; }
.result-main b { display:block; font-size:13px; }
.result-main small { display:block; margin-top:3px; color:var(--muted); font-size:10px; }
.result-tag { color:var(--green-700); font-size:10px; font-weight:900; }
.backbar { display:flex; align-items:center; gap:12px; padding: 19px 20px 7px; }
.back-btn { width:35px; height:35px; border:0; border-radius:11px; background:white; color:var(--ink); font-size:20px; }
.detail-hero { margin:12px 20px 0; border-radius:23px; padding:20px; color:white; background:linear-gradient(135deg,#183f32,#277a58); position:relative; overflow:hidden; }
.detail-hero:after { content:""; position:absolute; width:170px; height:170px; right:-75px; bottom:-95px; border:1px solid rgba(255,255,255,.18); border-radius:50%; }
.detail-photo { width:76px; height:76px; border:3px solid rgba(255,255,255,.4); border-radius:23px; display:grid; place-items:center; background:linear-gradient(135deg,#e7b74d,#b66729); color:#17402e; font-size:20px; font-weight:900; }
.detail-title { margin:13px 0 3px; font-size:24px; letter-spacing:-.8px; }
.detail-copy { color:#cde7d8; font-size:12px; }
.overall { position:absolute; z-index:2; right:20px; top:24px; text-align:center; }
.overall strong { display:block; color:var(--gold); font-size:36px; line-height:1; }
.overall small { color:#cde7d8; font-size:10px; font-weight:800; }
.info-grid { margin:14px 20px; display:grid; grid-template-columns:repeat(2,1fr); gap:9px; }
.info-item { padding:12px; border-radius:15px; background:white; }
.info-item span { display:block; color:var(--muted); font-size:10px; }
.info-item b { display:block; margin-top:4px; font-size:13px; }
.detail-section { margin: 0 20px 14px; border-radius:18px; background:white; padding:15px; }
.detail-section h3 { margin:0 0 11px; font-size:14px; }
.detail-stats { display:grid; grid-template-columns:repeat(4,1fr); text-align:center; }
.detail-stats div { border-right:1px solid var(--line); }
.detail-stats div:last-child { border:0; }
.detail-stats b { display:block; font-size:17px; color:var(--green-800); }
.detail-stats span { display:block; color:var(--muted); font-size:10px; margin-top:3px; }
.modal-scrim { position:fixed; z-index:50; inset:0; display:flex; align-items:flex-end; background:rgba(5,24,17,.45); }
.modal { width:min(100%,520px); margin:0 auto; padding:20px 20px max(25px, env(safe-area-inset-bottom)); border-radius:24px 24px 0 0; background:var(--cream); animation:up .2s ease-out; }
@keyframes up { from{transform:translateY(25px);opacity:.5} to{transform:translateY(0);opacity:1} }
.modal-head { display:flex; align-items:center; justify-content:space-between; }
.modal-head h2 { margin:0; font-size:19px; }
.modal-close { width:30px; height:30px; border:0; border-radius:50%; background:#e7eee9; color:var(--muted); font-size:18px; }
.bid-summary { margin:15px 0; border-radius:15px; padding:13px; background:white; }
.bid-summary div { display:flex; justify-content:space-between; padding:5px 0; font-size:12px; }
.bid-summary span { color:var(--muted); }
.bid-input { width:100%; padding:13px; border:1px solid var(--line); border-radius:12px; outline:0; font-size:17px; font-weight:800; }
.bid-input:focus { border-color:var(--green-700); }
.modal-actions { display:grid; grid-template-columns:1fr 1.4fr; gap:9px; margin-top:13px; }
.modal-actions button { min-height:45px; }
.toast { position:fixed; z-index:80; left:50%; bottom:95px; transform:translate(-50%, 20px); opacity:0; pointer-events:none; padding:10px 14px; border-radius:999px; background:#183f32; color:white; font-size:12px; font-weight:800; box-shadow:0 8px 20px rgba(0,0,0,.2); transition:.2s ease; }
.toast.show { opacity:1; transform:translate(-50%,0); }

@media (min-width: 700px) { .app-shell { box-shadow: 0 0 45px rgba(9,37,27,.16); } }
