:root {
  --bg: #0b1220;
  --bg-soft: #131c2e;
  --card: #18233a;
  --card-2: #1e2c47;
  --line: #2a3a5c;
  --text: #eaf0fb;
  --muted: #9fb0cc;
  --accent: #4f8cff;
  --gold: #f5b301;
  --green: #2ecc71;
  --teal: #1abc9c;
  --gray: #8a9bb8;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  background: radial-gradient(1200px 600px at 50% -10%, #16223a 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  min-height: 100vh;
}

#app { max-width: 720px; margin: 0 auto; padding: 0 16px 40px; }

/* Topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  max-width: 720px; margin: 0 auto;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, var(--bg) 70%, transparent);
  backdrop-filter: blur(6px);
}
.brand { font-size: 20px; margin: 0; cursor: pointer; letter-spacing: -0.3px; }
.tagline { color: var(--muted); font-size: 13px; margin-left: auto; }
.back-btn {
  background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; width: 36px; height: 36px; font-size: 18px; cursor: pointer;
}

/* Search */
.search-wrap { position: relative; padding: 6px 0 16px; }
.search {
  width: 100%; padding: 14px 44px 14px 16px; font-size: 16px;
  background: var(--bg-soft); color: var(--text);
  border: 1px solid var(--line); border-radius: 14px; outline: none;
}
.search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 140, 255, 0.18); }
.search-field { position: relative; display: block; }
.search-ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }

/* Home tabs (일정 / 조별) */
.tabs {
  display: flex; gap: 6px; margin: 0 0 4px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px;
}
.tabs[hidden] { display: none; }
.tab {
  flex: 1; min-height: 44px; padding: 10px 12px; font-size: 14px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: transparent; color: var(--muted);
  border: 1px solid transparent; border-radius: 10px; cursor: pointer;
  transition: color .15s ease, background .15s ease, box-shadow .15s ease;
}
.tab:active { transform: scale(0.98); }
.tab.active {
  color: var(--text); background: var(--card-2);
  border-color: var(--accent); box-shadow: 0 2px 10px rgba(79, 140, 255, 0.18);
}
@media (hover: hover) {
  .tab:not(.active):hover { color: var(--text); background: rgba(79, 140, 255, 0.08); }
}

/* Section titles */
.section-title { color: var(--muted); font-size: 13px; font-weight: 600; margin: 18px 4px 10px; letter-spacing: 0.3px; }

/* Date section header (일정) */
.date-head {
  display: flex; align-items: baseline; gap: 10px;
  margin: 22px 4px 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.date-head .d { font-size: 15px; font-weight: 800; }
.date-head .dow { color: var(--muted); font-size: 12.5px; }

/* Fixture (경기) card */
.fixture {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px; margin-bottom: 12px;
  transition: transform .08s ease, border-color .15s ease;
}
.fixture.clickable { cursor: pointer; }
.fixture.clickable:active { transform: scale(0.99); }
.fixture.clickable:hover { border-color: var(--accent); }
.fx-side { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fx-side.away { flex-direction: row-reverse; text-align: right; }
.fx-flag { font-size: 26px; flex: none; }
.fx-team { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fx-time { font-weight: 800; font-size: 14px; }
.fx-vs { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: 0.5px; }
.fx-stage {
  font-size: 10.5px; font-weight: 700; color: var(--accent);
  background: rgba(79,140,255,.12); border: 1px solid rgba(79,140,255,.28);
  border-radius: 999px; padding: 2px 7px;
}
.fx-meta { grid-column: 1 / -1; color: var(--muted); font-size: 12px; text-align: center; margin-top: 4px; }
/* 라이브 경기 */
.fixture.is-live { border-color: rgba(229,72,77,.55); box-shadow: 0 0 0 1px rgba(229,72,77,.25); }
.fx-score { font-size: 22px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: 1px; }
.fx-score i { color: var(--muted); font-style: normal; margin: 0 3px; font-weight: 700; }
.fx-live { display: inline-flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 10.5px; font-weight: 800; color: #fff; background: #e5484d; padding: 2px 8px; border-radius: 999px; letter-spacing: .3px; }
.fx-live .lv-dot { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: lvblink 1.1s infinite ease-in-out; }
@keyframes lvblink { 50% { opacity: .2; } }
.fx-final { margin-top: 1px; font-size: 10.5px; font-weight: 800; color: var(--muted); }
.fx-goals { grid-column: 1 / -1; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: #c7d3e0; font-size: 12px; text-align: center; }

/* Group block (조별) */
.group-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.group-card h3 { margin: 0 0 10px; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.group-letter {
  display: inline-grid; place-items: center; width: 26px; height: 26px;
  border-radius: 8px; font-size: 13px; font-weight: 800; color: #cfe0ff;
  background: linear-gradient(135deg, #26324f, #1b2640);
}
.group-teams { display: grid; gap: 8px; }
.group-team {
  display: flex; align-items: center; gap: 10px;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px;
  padding: 9px 11px; cursor: pointer;
}
.group-team:hover { border-color: var(--accent); }
.group-team .team-flag { font-size: 22px; }
.group-team .gt-name { font-weight: 600; font-size: 14px; }
.group-team .gt-rank { color: var(--muted); font-size: 11.5px; margin-left: auto; }
.group-empty { color: var(--muted); font-size: 12.5px; padding: 4px 2px; }
/* 조별 순위표 */
.stand-note { color: var(--muted); font-size: 12px; margin: 2px 0 12px; }
table.stand { width: 100%; border-collapse: collapse; font-size: 13px; }
table.stand th { color: var(--muted); font-weight: 700; font-size: 11px; padding: 4px 3px; text-align: center; border-bottom: 1px solid var(--line); }
table.stand th:nth-child(2) { text-align: left; }
table.stand td { padding: 9px 3px; text-align: center; border-bottom: 1px solid rgba(255,255,255,.05); font-variant-numeric: tabular-nums; }
table.stand tr:last-child td { border-bottom: 0; }
table.stand td.tm { text-align: left; }
table.stand .tm { display: flex; align-items: center; gap: 8px; }
table.stand .tm .team-flag { font-size: 20px; flex: none; }
table.stand .tm-n { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.stand td.rk { color: var(--muted); font-weight: 800; width: 20px; }
table.stand td.pts { font-weight: 900; color: #fff; }
table.stand tr.qual td.rk { color: var(--accent); }
table.stand tr.qual { background: rgba(46,230,166,.06); }
table.stand tr[data-team] { cursor: pointer; }
table.stand tr[data-team]:active { background: rgba(255,255,255,.05); }

/* Grids */
.grid { display: grid; gap: 12px; }
.teams-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.players-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

/* Team chip card */
.team-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; cursor: pointer; transition: transform .08s ease, border-color .15s ease;
}
.team-card:active { transform: scale(0.98); }
.team-card:hover { border-color: var(--accent); }
.team-flag { font-size: 30px; }
.team-name { font-weight: 700; font-size: 16px; }
.team-rank { color: var(--muted); font-size: 12px; }

/* Player list row */
.player-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; cursor: pointer; transition: transform .08s ease, border-color .15s ease;
}
.player-row:active { transform: scale(0.985); }
.player-row:hover { border-color: var(--accent); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 16px;
  color: #cfe0ff;
  background: linear-gradient(135deg, #26324f, #1b2640);
}
.player-main { flex: 1; min-width: 0; }
.player-name { font-weight: 700; font-size: 15px; }
.player-sub { color: var(--muted); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Grade badge */
.badge {
  flex: none; font-size: 11.5px; font-weight: 800; padding: 5px 9px; border-radius: 999px;
  border: 1px solid transparent;
}
.badge .score { opacity: .8; font-weight: 700; }
.g-월드클래스 { background: rgba(245,179,1,.14); color: var(--gold); border-color: rgba(245,179,1,.35); }
.g-주전급 { background: rgba(46,204,113,.13); color: var(--green); border-color: rgba(46,204,113,.32); }
.g-로테이션 { background: rgba(26,188,156,.12); color: var(--teal); border-color: rgba(26,188,156,.3); }
.g-유망주 { background: rgba(138,155,184,.13); color: var(--gray); border-color: rgba(138,155,184,.3); }

/* Player detail card */
.detail {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: 20px; padding: 20px; box-shadow: var(--shadow);
}
.detail-head { display: flex; align-items: center; gap: 14px; }
.detail .avatar { width: 60px; height: 60px; font-size: 22px; }
.detail-name { font-size: 22px; font-weight: 800; line-height: 1.15; }
.detail-name-en { color: var(--muted); font-size: 13px; }
.detail-badge { margin-left: auto; }

.oneliner { margin: 14px 0 4px; font-size: 15px; color: #dbe6fb; line-height: 1.5; }

.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0; }
.fact { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.fact .k { color: var(--muted); font-size: 11.5px; margin-bottom: 3px; }
.fact .v { font-size: 14.5px; font-weight: 600; }

.score-bar { height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; margin: 6px 0 0; border: 1px solid var(--line); }
.score-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }

.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 6px; }
.tag { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
.tag.weak { color: #ffb4b4; border-color: rgba(255,120,120,.3); background: rgba(255,90,90,.08); }

.block { margin-top: 16px; }
.block h3 { font-size: 13px; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.honours { margin: 0; padding-left: 18px; }
.honours li { margin: 4px 0; font-size: 14px; }
.transfer { font-size: 13.5px; color: var(--muted); }

.team-link { display: inline-block; margin-top: 4px; color: var(--accent); font-size: 13px; cursor: pointer; }

/* Team detail */
.team-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.team-hero .team-flag { font-size: 44px; }
.team-hero h2 { margin: 0; font-size: 24px; }
.style-list { margin: 10px 0 0; padding-left: 18px; }
.style-list li { margin: 6px 0; font-size: 14.5px; line-height: 1.45; }

.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

/* Footer */
.foot { max-width: 720px; margin: 0 auto; padding: 0 16px 28px; color: #6f80a0; font-size: 11.5px; text-align: center; }
.foot b { color: var(--muted); }

/* ===== 와이어프레임 컴포넌트 (색상은 기존 변수 사용) ===== */
body { padding-bottom: 64px; } /* 하단 탭바 공간 */
.muted-note { color: var(--muted); font-size: 11px; font-weight: 600; }
.sec-h { color: var(--muted); font-size: 13px; font-weight: 700; margin: 20px 4px 10px; letter-spacing: .2px; }

/* 날짜 스트립 */
.datestrip { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.datestrip::-webkit-scrollbar { display: none; }
.dchip {
  flex: none; width: 52px; padding: 9px 0; border-radius: 14px; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line); color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.dchip-dow { font-size: 11px; }
.dchip-day { font-size: 17px; font-weight: 800; color: var(--text); }
.dchip-mo { font-size: 10px; }
.dchip.on { background: var(--text); border-color: var(--text); }
.dchip.on .dchip-dow, .dchip.on .dchip-day, .dchip.on .dchip-mo { color: var(--bg); }

/* 빅매치 히어로 */
.hero {
  position: relative; overflow: hidden; cursor: pointer; margin-bottom: 8px;
  border-radius: 22px; padding: 18px 16px 16px;
  background: linear-gradient(135deg, var(--accent), #2a5bd0);
  box-shadow: var(--shadow);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
  background-size: 26px 26px;
}
.hero-tag { position: relative; font-size: 11.5px; font-weight: 800; color: #eaf2ff; display: flex; align-items: center; gap: 6px; }
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: #ff5e63; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-match { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 14px 0 6px; }
.hero-side { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hero-flag { font-size: 38px; }
.hero-team { font-weight: 800; font-size: 14px; color: #fff; text-align: center; }
.hero-mid { display: flex; flex-direction: column; align-items: center; }
.hero-kick { font-size: 19px; font-weight: 900; color: #fff; }
.hero-vs { font-size: 11px; font-weight: 800; color: #d8e4ff; }
.hero-meta { position: relative; text-align: center; color: #dbe7ff; font-size: 11.5px; margin-top: 2px; }
.hero-cta { position: relative; text-align: center; margin-top: 10px; font-size: 13px; font-weight: 800; color: #fff; }

/* 하단 탭바 */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; max-width: 720px; margin: 0 auto;
  background: rgba(11,18,32,.92); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.tabbar-btn {
  flex: 1; background: none; border: 0; cursor: pointer; padding: 8px 0 9px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted);
}
.tabbar-btn .tb-ic { font-size: 18px; filter: grayscale(.4) opacity(.8); }
.tabbar-btn .tb-l { font-size: 10.5px; font-weight: 700; }
.tabbar-btn.active { color: var(--accent); }
.tabbar-btn.active .tb-ic { filter: none; }

/* 지수 막대 (전력지표 / 스카우터 지수) */
.idx-row { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 10px; margin: 9px 0; }
.idx-k { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.idx-track { height: 9px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.idx-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); }
.idx-v { font-size: 13px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }

/* 포지션 태그 */
.pos { font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 6px; vertical-align: middle; }
.pos.gk { background: rgba(229,147,58,.16); color: #e5933a; }
.pos.df { background: rgba(63,140,255,.16); color: #5b9bff; }
.pos.mf { background: rgba(46,204,113,.16); color: var(--green); }
.pos.fw { background: rgba(255,94,99,.16); color: #ff6a6f; }

/* 칩 */
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-size: 12.5px; padding: 7px 11px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); cursor: default; }
.chip.solid { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.rchip { cursor: pointer; }

/* 포메이션 피치 */
.pitch {
  position: relative; width: 100%; max-width: 300px; margin: 4px auto 0; aspect-ratio: 5 / 6; border-radius: 14px;
  background: linear-gradient(160deg, #15402a, #0e2c1d); border: 1px solid var(--line);
  overflow: hidden;
}
.pitch-line.halfway { position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(255,255,255,.18); }
.pitch-circle { position: absolute; left: 50%; top: 50%; width: 60px; height: 60px; transform: translate(-50%,-50%); border: 1px solid rgba(255,255,255,.18); border-radius: 50%; }
.pd { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.pd-dot {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 800; color: #fff; border: 2px solid rgba(255,255,255,.9);
  background: #2a3a5c;
}
.pd.gk .pd-dot { background: #e5933a; }
.pd.df .pd-dot { background: #3f8cff; }
.pd.mf .pd-dot { background: #15a85a; }
.pd.fw .pd-dot { background: #e5484d; }
.pd-name { font-size: 10px; color: #fff; font-weight: 800; text-shadow: 0 1px 3px rgba(0,0,0,.8); white-space: nowrap; margin-top: 0; }

/* 핵심 선수 가로 스크롤 */
.core-scroll { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.core-scroll::-webkit-scrollbar { display: none; }
.corecard {
  flex: none; width: 120px; cursor: pointer; text-align: center;
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.corecard:hover { border-color: var(--accent); }
.corecard .avatar { width: 40px; height: 40px; }
.cc-name { font-weight: 700; font-size: 13px; }
.cc-club { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

/* 감독 */
.manager { display: flex; align-items: center; gap: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.mgr-name { font-weight: 700; font-size: 14.5px; }
.mgr-nat { color: var(--muted); font-size: 12px; font-weight: 600; }
.mgr-note { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

/* 선수 히어로 + OVR */
.pl-hero { display: flex; align-items: center; gap: 14px; }
.avatar.lg { width: 64px; height: 64px; font-size: 24px; }
.pl-meta { flex: 1; min-width: 0; }
.pl-sub { color: var(--muted); font-size: 12px; }
.pl-name { font-size: 22px; font-weight: 800; line-height: 1.1; }
.pl-badges { margin-top: 6px; }
.ovr { display: flex; flex-direction: column; align-items: center; }
.ovr-l { font-size: 10px; font-weight: 800; color: var(--muted); }
.ovr-v { font-size: 33px; font-weight: 900; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.quote { margin: 14px 0; padding: 10px 12px; background: var(--bg-soft); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; font-size: 14px; color: #dbe6fb; line-height: 1.5; }

/* 강점/약점 2단 */
.sw { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.swbox { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.swbox h4 { margin: 0 0 8px; font-size: 12.5px; }
.swbox.pos h4 { color: var(--green); }
.swbox.neg h4 { color: #ff6a6f; }

/* 커리어 타임라인 */
.tl { position: relative; }
.tl-item { display: grid; grid-template-columns: 46px 16px 1fr; align-items: start; gap: 6px; padding: 6px 0; }
.tl-year { font-size: 12px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.tl-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin: 4px auto 0; box-shadow: 0 0 0 3px rgba(79,140,255,.15); }
.tl-text { font-size: 13.5px; line-height: 1.4; }

/* 검색 보조 */
.grade-browse { display: grid; gap: 8px; }
.grade-row { display: flex; align-items: center; justify-content: space-between; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.grade-row:hover { border-color: var(--accent); }
.grade-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.search-hint { color: var(--muted); font-size: 12.5px; text-align: center; padding: 24px 0; }

/* 컨트리 히어로 */
.country-hero { position: relative; display: flex; align-items: center; gap: 14px; padding: 6px 0 10px; }
.country-hero .ch-grid {
  position: absolute; inset: -20px -20px auto -20px; height: 90px; opacity: .07; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px);
  background-size: 24px 24px;
}
.team-flag.lg { font-size: 48px; position: relative; }
.ch-meta { position: relative; }
.ch-meta h2 { margin: 0; font-size: 24px; }

/* 경기 예상(매치업) */
.match-meta-top { color: var(--muted); font-size: 12.5px; text-align: center; margin-bottom: 14px; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.vs-team { display: flex; flex-direction: column; align-items: center; gap: 5px; cursor: pointer; }
.vs-flag { font-size: 42px; }
.vs-name { font-weight: 800; font-size: 15px; text-align: center; }
.vs-rank { color: var(--muted); font-size: 11.5px; }
.vs-center { display: flex; flex-direction: column; align-items: center; }
.pred-score { font-size: 30px; font-weight: 900; font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 8px; }
.pred-score span { color: var(--muted); font-size: 22px; }
.pred-label { color: var(--muted); font-size: 11px; font-weight: 700; margin-top: 2px; }

.prob { display: flex; height: 26px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.prob-seg { display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; min-width: 0; transition: width .3s var(--ease, ease); }
.prob-seg.a { background: linear-gradient(90deg, var(--accent), #3a6fd8); }
.prob-seg.d { background: var(--surface-3, #2a3a5c); color: var(--muted); }
.prob-seg.b { background: linear-gradient(90deg, #c0473f, #e5484d); }
.prob-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; margin-top: 6px; }
.prob-legend span:nth-child(2) { color: var(--muted); }

.cmp-row { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-v { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; color: var(--muted); }
.cmp-v.hi { color: var(--accent); }
.cmp-k { text-align: center; font-size: 12.5px; color: var(--muted); }

.match-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.mbtn { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 12px 10px; font-size: 13px; font-weight: 700; cursor: pointer; }
.mbtn:hover { border-color: var(--accent); }

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

/* 감독 카드 클릭 가능 + 상세 */
.manager { cursor: pointer; }
.manager:hover { border-color: var(--accent); }
.mgr-main { flex: 1; min-width: 0; }
.mgr-chev { color: var(--muted); font-size: 22px; flex: none; }

/* 포메이션 선수 점 탭 가능 */
.pd.tappable { cursor: pointer; }
.pd.tappable:hover .pd-dot { transform: scale(1.12); box-shadow: 0 0 0 3px rgba(79,140,255,.4); }

/* 나라 최신 뉴스 */
.news-list { display: grid; gap: 8px; }
.news-item { display: block; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; text-decoration: none; color: var(--text); }
.news-item:hover { border-color: var(--accent); }
.news-title { font-weight: 700; font-size: 13.5px; line-height: 1.35; }
.news-sum { color: var(--muted); font-size: 12.5px; margin-top: 3px; line-height: 1.4; }
.news-meta { color: var(--accent); font-size: 11px; margin-top: 5px; font-weight: 600; }

/* 포지션 배지 (이름 첫글자 아바타 대체) */
.posb {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 12.5px; letter-spacing: .3px;
  border: 1px solid transparent;
}
.posb.lg { width: 60px; height: 60px; border-radius: 15px; font-size: 15px; }
.posb.gk { background: rgba(229,147,58,.16); color: #e5933a; border-color: rgba(229,147,58,.35); }
.posb.df { background: rgba(63,140,255,.16); color: #5b9bff; border-color: rgba(63,140,255,.35); }
.posb.mf { background: rgba(46,204,113,.16); color: var(--green); border-color: rgba(46,204,113,.32); }
.posb.fw { background: rgba(255,94,99,.16); color: #ff6a6f; border-color: rgba(255,94,99,.32); }
.posb.mgr { background: var(--bg-soft); color: var(--muted); border-color: var(--line); font-size: 11px; }
.posb.mgr.lg { font-size: 13px; }

/* 매치업 중앙 VS (예상 스코어 제거) */
.vs-x { font-size: 24px; font-weight: 900; color: var(--muted); letter-spacing: 1px; }

/* twemoji 이모지 이미지(국기 등) */
img.emoji { height: 1em; width: 1em; margin: 0 .05em 0 .08em; vertical-align: -0.12em; display: inline-block; }

/* 메인 하단 주요 소식 */
.home-news .hn-head { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.hn-flag { font-size: 16px; }
.hn-team { font-size: 11.5px; color: var(--muted); font-weight: 700; }

/* 뉴스 AI 요약 라벨 */
.ai-tag { display:inline-block; font-size:9.5px; font-weight:800; color:var(--accent); background:rgba(79,140,255,.14); border:1px solid rgba(79,140,255,.3); border-radius:5px; padding:0 5px; margin-right:5px; vertical-align:1px; }
.news-sum { color: var(--text); }

/* KST 표기 + 경기 프리뷰 */
.kst-note { color: var(--muted); font-size: 11px; font-weight: 600; }
.watch-list { margin: 0; padding-left: 18px; }
.watch-list li { margin: 6px 0; font-size: 14px; line-height: 1.45; }
.strat { display: grid; gap: 10px; }
.strat-box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.strat-team { font-weight: 800; font-size: 13px; color: var(--accent); margin-bottom: 4px; }
.strat-txt { font-size: 13.5px; line-height: 1.5; color: #dbe6fb; }

/* 나라 뉴스 3개 + 더보기 */
.news-collapsed .news-item:nth-child(n+4) { display: none; }
.more-btn { width: 100%; margin-top: 8px; padding: 11px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; color: var(--accent); font-size: 13px; font-weight: 700; cursor: pointer; }
.more-btn:hover { border-color: var(--accent); }

/* VAR 경기분석 타이틀 */
.var-title { display:flex; align-items:center; justify-content:center; gap:8px; font-size:13px; font-weight:800; color:var(--muted); margin-bottom:10px; }
.var-tag { font-family: ui-monospace, Menlo, monospace; letter-spacing:1px; font-size:12px; font-weight:900; color:#0b1220; background:linear-gradient(135deg,var(--gold),#ffd34d); border-radius:5px; padding:2px 7px; }
