/*
Theme Name: 球汇 QiuHui
Theme URI: https://qiuhui.uk.com
Description: 专业中文足球资讯主题 - 实时比分、赛事分析、积分榜、射手榜，Google/Bing SEO 全优化
Author: QiuHui
Version: 2.1.1
Text Domain: qiuhui
*/

/* ============================================================
   CSS VARIABLES - 设计令牌
   ============================================================ */
:root {
  --bg:        #0d1117;
  --bg2:       #161b22;
  --bg3:       #1c2130;
  --card:      #1c2130;
  --border:    #30363d;
  --text:      #e6edf3;
  --muted:     #7d8590;
  --green:     #00d084;
  --green-d:   #00b371;
  --live:      #ff4757;
  --live-bg:   rgba(255,71,87,.12);
  --gold:      #f7b731;
  --blue:      #58a6ff;
  --ucl:       #2e86de;
  --uel:       #f39c12;
  --rel:       #e74c3c;
  --radius:    10px;
  --radius-sm: 6px;
  --shadow:    0 2px 12px rgba(0,0,0,.4);
  --font:      'Inter', 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-d); }
img { max-width: 100%; height: auto; display: block; }
/* Strict squad/card logo sizes override global img rule */
.tc-logos img { width: 26px !important; height: 26px !important; max-width: 26px !important; max-height: 26px !important; flex-shrink: 0 !important; }
.ac-teams img, .acard-v2 .ac-vs-wrap img { width: 32px !important; height: 32px !important; max-width: 32px !important; max-height: 32px !important; }
ul { list-style: none; }
table { border-collapse: collapse; width: 100%; }
button { cursor: pointer; font-family: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,.5);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; font-weight: 800; color: var(--text); flex-shrink: 0; }
.logo .logo-icon { font-size: 1.6rem; }
.logo .logo-text { background: linear-gradient(135deg, var(--green), var(--blue)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo:hover { color: var(--text); }

.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-menu a { color: var(--muted); padding: 6px 12px; border-radius: var(--radius-sm); font-size: .875rem; font-weight: 500; white-space: nowrap; transition: all .2s; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); background: var(--bg3); }
.nav-menu a.live-link { color: var(--live); font-weight: 700; }
.nav-menu a.live-link:hover { background: var(--live-bg); }

.has-dropdown { position: relative; }
.dropdown { display: none; position: absolute; top: calc(100% + 6px); left: 0; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px; min-width: 180px; box-shadow: var(--shadow); z-index: 200; }
.has-dropdown:hover .dropdown { display: block; }
.dropdown a { display: flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--muted); border-radius: var(--radius-sm); font-size: .85rem; }
.dropdown a:hover { background: var(--bg3); color: var(--text); }

.header-search { display: flex; align-items: center; background: var(--bg3); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; margin-left: auto; flex-shrink: 0; }
.header-search input { background: none; border: none; outline: none; padding: 7px 14px; color: var(--text); font-size: .85rem; width: 180px; }
.header-search input::placeholder { color: var(--muted); }
.header-search button { background: none; border: none; padding: 7px 12px; color: var(--muted); font-size: .95rem; }
.header-search button:hover { color: var(--green); }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu { display: none; position: fixed; inset: 0; background: var(--bg2); z-index: 999; flex-direction: column; overflow-y: auto; }
.mobile-menu.open { display: flex; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; padding: 16px; border-bottom: 1px solid var(--border); }
.close-menu { background: none; border: none; color: var(--muted); padding: 6px; }
.mobile-search { display: flex; margin: 12px 16px; background: var(--bg3); border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.mobile-search input { flex: 1; background: none; border: none; outline: none; padding: 10px 14px; color: var(--text); font-size: .9rem; }
.mobile-search button { background: none; border: none; padding: 10px 14px; color: var(--muted); }
.mobile-menu-nav { display: flex; flex-direction: column; padding: 8px 16px 24px; gap: 2px; }
.mobile-menu-nav a { color: var(--muted); padding: 11px 14px; border-radius: var(--radius-sm); font-size: .95rem; display: flex; align-items: center; gap: 10px; }
.mobile-menu-nav a:hover, .mobile-menu-nav a.highlight { color: var(--text); background: var(--bg3); }
.mobile-menu-nav a.highlight { color: var(--live); }
.mobile-section { font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; padding: 14px 14px 6px; }

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main-content { padding: 24px 0 48px; }
.home-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }
.home-main { display: flex; flex-direction: column; gap: 24px; }
.home-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 84px; }

.sidebar-layout { display: grid; grid-template-columns: 1fr 280px; gap: 24px; align-items: start; }
.main-col { display: flex; flex-direction: column; gap: 20px; }
.sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 84px; }
.single-layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

/* ============================================================
   CARDS & BOXES
   ============================================================ */
.box, .sidebar-box, .section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

.box-header, .sb-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.box-header h2, .sb-header h3 { font-size: 1rem; font-weight: 700; flex: 1; display: flex; align-items: center; gap: 8px; }
.sb-header h3 { font-size: .9rem; }
.section-title { font-size: .95rem; font-weight: 700; padding: 14px 16px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.section-title a { font-size: .8rem; color: var(--muted); font-weight: 400; }
.section-title a:hover { color: var(--green); }
.count { background: var(--bg3); border-radius: 20px; padding: 2px 10px; font-size: .78rem; font-weight: 600; color: var(--muted); }

/* ============================================================
   LIVE DOT ANIMATION
   ============================================================ */
.live-dot { width: 9px; height: 9px; background: var(--live); border-radius: 50%; display: inline-block; box-shadow: 0 0 0 0 var(--live); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(255,71,87,.6)} 70%{box-shadow:0 0 0 8px rgba(255,71,87,0)} 100%{box-shadow:0 0 0 0 rgba(255,71,87,0)} }
.live-stats { display: flex; gap: 8px; font-size: .78rem; flex-wrap: wrap; }
.st-live { background: var(--live-bg); color: var(--live); padding: 3px 9px; border-radius: 20px; font-weight: 700; }
.st-up { background: rgba(0,208,132,.1); color: var(--green); padding: 3px 9px; border-radius: 20px; }
.st-fin { background: var(--bg3); color: var(--muted); padding: 3px 9px; border-radius: 20px; }

/* ============================================================
   MATCH ROWS (Homepage)
   ============================================================ */
.match-list { padding: 0; }
.match-row { display: grid; grid-template-columns: 48px 1fr 56px 1fr 90px; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--bg3); }
.match-row.live { background: rgba(255,71,87,.04); }
.mr-status { font-size: .72rem; font-weight: 800; text-align: center; border-radius: 4px; padding: 3px 5px; }
.mr-status.live { color: var(--live); animation: blink 1s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.5} }
.mr-status.ft { color: var(--muted); }
.mr-team { display: flex; align-items: center; gap: 6px; }
.mr-team.home { justify-content: flex-end; flex-direction: row-reverse; }
.mr-team.away { justify-content: flex-start; }
.mr-team img { width: 22px; height: 22px; object-fit: contain; }
.mr-team span { font-size: .85rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.mr-team a { color: var(--text); }
.mr-team a:hover { color: var(--green); }
.mr-team.win span { font-weight: 700; color: var(--green); }
.mr-score { text-align: center; }
.mr-score strong { font-size: 1rem; font-weight: 800; background: var(--bg3); padding: 4px 10px; border-radius: 6px; display: inline-block; min-width: 52px; }
.mr-vs { text-align: center; color: var(--muted); font-size: .85rem; font-weight: 700; }
.mr-time { font-size: .78rem; text-align: center; color: var(--muted); line-height: 1.3; }
.mr-time small { display: block; font-size: .7rem; color: var(--muted); }
.mr-league { font-size: .72rem; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.subsection { padding: 14px 0 0; }
.subsection h3 { font-size: .88rem; font-weight: 700; padding: 0 16px 10px; color: var(--muted); }

/* ============================================================
   MATCH ITEMS (Templates)
   ============================================================ */
.matches-container { display: flex; flex-direction: column; }
.match-item { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); transition: background .15s; }
.match-item:last-child { border-bottom: none; }
.match-item:hover { background: var(--bg3); }
.match-item.live { border-left: 3px solid var(--live); }
.match-item.finished { border-left: 3px solid var(--border); }
.team-info { display: flex; align-items: center; gap: 8px; }
.team-info.home { justify-content: flex-start; }
.team-info.away { justify-content: flex-end; flex-direction: row-reverse; }
.team-logo { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
.team-name { font-size: .88rem; font-weight: 600; }
.team-name a { color: var(--text); }
.team-name a:hover { color: var(--green); }
.match-center { text-align: center; min-width: 90px; }
.match-score { font-size: 1.1rem; font-weight: 900; letter-spacing: .02em; }
.match-score.live { color: var(--live); }
.match-time { font-size: .75rem; color: var(--muted); margin-top: 2px; }
.match-time.live { color: var(--live); font-weight: 700; animation: blink 1s infinite; }
.match-status { display: inline-block; font-size: .68rem; font-weight: 800; padding: 2px 7px; border-radius: 4px; margin-top: 4px; }
.match-status.live { background: var(--live-bg); color: var(--live); }
.match-status.ft { background: var(--bg3); color: var(--muted); }
.match-status.ht { background: rgba(247,183,49,.15); color: var(--gold); }
.match-status.ns { background: var(--bg3); color: var(--muted); }
.match-league { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .72rem; color: var(--muted); margin-top: 3px; }
.match-league img { width: 14px; height: 14px; object-fit: contain; }

/* ============================================================
   ODDS BOX
   ============================================================ */
.keo-list { padding: 8px 0; }
.keo-row { display: grid; grid-template-columns: 70px 1fr auto 100px; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--border); }
.keo-row:last-child { border-bottom: none; }
.kr-time { font-size: .75rem; color: var(--muted); }
.kr-match { display: flex; align-items: center; gap: 6px; font-size: .85rem; overflow: hidden; }
.kr-match img { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.kr-home, .kr-away { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90px; color: var(--text); font-weight: 500; }
.kr-vs { color: var(--muted); font-size: .8rem; }
.kr-odds { display: flex; gap: 6px; }
.odd { background: var(--bg3); border: 1px solid var(--border); padding: 3px 10px; border-radius: 6px; font-size: .8rem; font-weight: 700; color: var(--gold); cursor: default; white-space: nowrap; }
.kr-league { font-size: .72rem; color: var(--muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============================================================
   ARTICLE CARDS
   ============================================================ */
.article-grid, .news-grid-full { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 14px; }
.article-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; display: flex; flex-direction: column; text-decoration: none; transition: transform .2s, border-color .2s; }
.article-card:hover { transform: translateY(-2px); border-color: var(--green); }
.article-card .ac-teams { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 10px; background: var(--bg2); min-height: 60px; max-height: 70px; }
.article-card .ac-teams img { width: 36px !important; height: 36px !important; max-width: 36px !important; max-height: 36px !important; object-fit: contain; }
.article-card .ac-vs { color: var(--muted); font-weight: 700; font-size: .85rem; }
.article-card h4 { font-size: .82rem; padding: 10px; color: var(--text); line-height: 1.4; flex: 1; }
.article-card .ac-date { font-size: .72rem; color: var(--muted); padding: 0 10px 10px; }
.article-card .ac-icon, .article-card .no-logo { font-size: 2rem; display: flex; justify-content: center; align-items: center; height: 70px; }
.article-card .ac-thumb img { width: 100%; height: 100px; object-fit: cover; }

.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px; }
.review-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); text-decoration: none; overflow: hidden; transition: transform .2s, border-color .2s; }
.review-card:hover { transform: translateY(-2px); border-color: var(--green); }
.rc-teams { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px; background: var(--bg2); }
.rc-teams img { width: 30px; height: 30px; object-fit: contain; }
.rc-score { font-size: 1rem; font-weight: 900; background: var(--card); padding: 4px 10px; border-radius: 6px; color: var(--text); }
.review-card h4 { font-size: .8rem; padding: 8px 10px; color: var(--text); line-height: 1.4; }
.rc-date { font-size: .72rem; color: var(--muted); padding: 0 10px 10px; display: block; }

/* ============================================================
   NEWS CARDS (Tiles)
   ============================================================ */
.ncard { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ncard:hover { border-color: var(--green); }
.ncard.featured { grid-column: span 2; }
.ncard-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.ncard.featured .ncard-link { flex-direction: row; }
.ncard-visual { position: relative; background: var(--bg2); }
.ncard.featured .ncard-visual { width: 260px; flex-shrink: 0; }
.ncard-img, .ncard-visual img { width: 100%; height: 100px; object-fit: cover; }
.ncard.featured .ncard-img, .ncard.featured .ncard-visual img { height: 100%; }
.ncard-placeholder { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.ncard-match { display: flex; align-items: center; justify-content: center; gap: 10px; height: 72px; padding: 10px 14px; background: var(--bg2); }
.ncard-match img { width: 32px !important; height: 32px !important; max-width: 32px !important; object-fit: contain; }
.ncard-vs, .ncard-score { font-size: 1rem; font-weight: 900; color: var(--text); }
.ncard-tag { position: absolute; bottom: 8px; left: 8px; font-size: .68rem; font-weight: 800; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.ncard-tag.preview { background: rgba(0,208,132,.2); color: var(--green); }
.ncard-tag.review { background: rgba(88,166,255,.2); color: var(--blue); }
.ncard-tag.news { background: rgba(247,183,49,.2); color: var(--gold); }
.ncard-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.ncard-body h3 { font-size: .88rem; font-weight: 600; line-height: 1.45; color: var(--text); flex: 1; margin-bottom: 8px; }
.ncard-excerpt { font-size: .82rem; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.ncard-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.ncard-date { font-size: .72rem; color: var(--muted); }
.ncard-league { font-size: .72rem; color: var(--muted); background: var(--bg3); padding: 2px 8px; border-radius: 4px; }
.filter-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.fc { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; transition: border-color .2s; }
.fc:hover, .fc.active { border-color: var(--green); }
.fc.active .fc-label { color: var(--green); }
.fc-icon { font-size: 1.3rem; }
.fc-count { font-size: 1.1rem; font-weight: 800; color: var(--text); display: block; }
.fc-label { font-size: .78rem; color: var(--muted); display: block; }

/* ============================================================
   STANDINGS TABLE
   ============================================================ */
.standings-table { font-size: .83rem; }
.standings-table thead th { background: var(--bg2); padding: 9px 12px; text-align: center; color: var(--muted); font-weight: 600; font-size: .75rem; border-bottom: 1px solid var(--border); }
.standings-table thead th:nth-child(2) { text-align: left; }
.standings-table td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--border); }
.standings-table td:nth-child(2) { text-align: left; }
.standings-table tbody tr:last-child td { border-bottom: none; }
.standings-table tbody tr:hover { background: var(--bg3); }
.standings-table .ucl td:first-child { border-left: 3px solid var(--ucl); }
.standings-table .uel td:first-child { border-left: 3px solid var(--uel); }
.standings-table .rel td:first-child { border-left: 3px solid var(--rel); }
.rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; font-size: .78rem; font-weight: 700; }
.rank.ucl { background: rgba(46,134,222,.2); color: var(--ucl); }
.rank.uel { background: rgba(243,156,18,.2); color: var(--uel); }
.rank.rel { background: rgba(231,76,60,.2); color: var(--rel); }
.team-cell { display: flex; align-items: center; gap: 8px; }
.team-cell img { width: 22px; height: 22px; object-fit: contain; }
.team-cell a { color: var(--text); font-weight: 500; }
.team-cell a:hover { color: var(--green); }
.form-icons { display: flex; gap: 3px; justify-content: center; }
.form-icons span { width: 16px; height: 16px; border-radius: 3px; font-size: .6rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.form-icons .w { background: #10b981; }
.form-icons .d { background: #6b7280; }
.form-icons .l { background: #ef4444; }

/* ============================================================
   SIDEBAR ELEMENTS
   ============================================================ */
.sb-table { font-size: .8rem; }
.sb-table thead th { background: var(--bg2); padding: 7px 10px; color: var(--muted); font-size: .72rem; }
.sb-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.sb-table tr:last-child td { border-bottom: none; }
.sb-table .top td { font-weight: 700; }
.sb-empty { color: var(--muted); font-size: .82rem; padding: 14px; text-align: center; }

.sb-scorers { padding: 6px 0; }
.scorer-row { display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-bottom: 1px solid var(--border); }
.scorer-row:last-child { border-bottom: none; }
.scorer-row img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.sc-rank { font-size: .78rem; font-weight: 800; color: var(--muted); min-width: 18px; text-align: center; }
.sc-info { flex: 1; overflow: hidden; }
.sc-info a { font-size: .82rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.sc-info small { font-size: .72rem; color: var(--muted); }
.sc-goals { font-size: .9rem; font-weight: 800; color: var(--gold); min-width: 24px; text-align: right; }

.sb-leagues { display: flex; flex-direction: column; padding: 8px 0; }
.sb-leagues a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); transition: .15s; }
.sb-leagues a:last-child { border-bottom: none; }
.sb-leagues a:hover { background: var(--bg3); color: var(--text); }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header { padding: 24px 0 20px; margin-bottom: 20px; }
.page-header h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.page-header p { color: var(--muted); font-size: .9rem; }
.page-header.red h1 { color: var(--live); }
.page-header.green h1 { color: var(--green); }
.page-header.gold h1 { color: var(--gold); }
.page-header.blue h1 { color: var(--blue); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--muted); margin-bottom: 14px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb .sep { opacity: .4; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab { padding: 10px 18px; font-size: .88rem; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: .2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--green); border-bottom-color: var(--green); }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.team-header { display: flex; align-items: flex-start; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.team-header .logo-wrap img { width: 90px; height: 90px; object-fit: contain; }
.team-header .info h1 { font-size: 1.4rem; font-weight: 900; }
.team-header .meta { font-size: .82rem; color: var(--muted); margin: 6px 0 14px; }
.team-header .stats { display: flex; gap: 20px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat .val { font-size: 1.3rem; font-weight: 900; color: var(--text); }
.stat .lbl { font-size: .72rem; color: var(--muted); margin-top: 2px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px; }

.player-card { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.player-card .photo { position: relative; background: var(--bg2); }
.player-card .photo img { width: 100%; height: 90px; object-fit: cover; }
.player-card .number { position: absolute; bottom: 4px; right: 6px; font-size: .7rem; font-weight: 900; color: var(--text); background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 4px; }
.player-card .info { padding: 8px; }
.player-card .name a { font-size: .8rem; font-weight: 600; color: var(--text); }
.player-card .name a:hover { color: var(--green); }
.player-card .position { font-size: .72rem; color: var(--muted); margin-top: 2px; }

/* ============================================================
   PLAYER HERO
   ============================================================ */
.player-hero { display: grid; grid-template-columns: 180px 1fr auto; gap: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; align-items: center; }
.player-photo-frame { width: 140px; height: 140px; border-radius: var(--radius); overflow: hidden; background: var(--bg2); margin: 0 auto; }
.player-photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.no-photo { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 3rem; }
.player-number { text-align: center; margin-top: 8px; font-size: 1.1rem; font-weight: 900; color: var(--gold); }
.player-name { font-size: 1.4rem; font-weight: 900; margin-bottom: 10px; }
.player-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: .75rem; padding: 4px 10px; border-radius: 20px; font-weight: 600; }
.tag.position { background: rgba(0,208,132,.15); color: var(--green); }
.tag.nationality { background: var(--bg3); color: var(--text); }
.tag.age { background: var(--bg3); color: var(--muted); }
.player-team-link { display: inline-flex; align-items: center; gap: 8px; background: var(--bg3); padding: 8px 14px; border-radius: var(--radius-sm); }
.player-team-link img { width: 24px; height: 24px; object-fit: contain; }
.player-team-link span { font-size: .85rem; font-weight: 600; color: var(--text); }
.player-team-link .season { font-size: .75rem; color: var(--muted); }
.player-stats-section { display: flex; flex-direction: column; gap: 12px; }
.quick-stat { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; text-align: center; min-width: 80px; }
.quick-stat.highlight-gold .qs-value { color: var(--gold); }
.quick-stat.highlight-green .qs-value { color: var(--green); }
.qs-value { font-size: 1.4rem; font-weight: 900; display: block; }
.qs-label { font-size: .72rem; color: var(--muted); margin-top: 2px; display: block; }

.player-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.info-list { padding: 8px 0; }
.info-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 16px; border-bottom: 1px solid var(--border); font-size: .84rem; }
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--muted); }
.info-value { font-weight: 600; }
.info-value.highlight { color: var(--green); }
.stat-gold { color: var(--gold); font-weight: 700; }
.stat-green { color: var(--green); font-weight: 700; }
.stat-yellow { color: #f7b731; font-weight: 700; }
.stat-red { color: var(--live); font-weight: 700; }

/* ============================================================
   SCORER ITEMS
   ============================================================ */
.scorer-item { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--border); }
.scorer-item:last-child { border-bottom: none; }
.scorer-item .rank { min-width: 24px; font-size: .82rem; font-weight: 800; }
.scorer-item .photo img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.scorer-item .info { flex: 1; overflow: hidden; }
.scorer-item .name a { font-size: .88rem; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.scorer-item .team { font-size: .75rem; color: var(--muted); }
.scorer-item .goals { font-size: 1rem; font-weight: 900; color: var(--gold); }

/* ============================================================
   NO DATA / EMPTY
   ============================================================ */
.no-data { text-align: center; padding: 40px 20px; color: var(--muted); }
.no-data .icon { font-size: 2.5rem; margin-bottom: 12px; display: block; }
.no-data p { font-size: .9rem; }
.no-data a { color: var(--green); }
.empty-box { text-align: center; padding: 32px 20px; }
.empty-box .empty-icon { font-size: 2rem; display: block; margin-bottom: 10px; }
.empty-box p { font-size: .88rem; color: var(--muted); margin-bottom: 10px; }
.empty-box a { color: var(--green); font-size: .85rem; }
.empty-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.empty-links a { background: var(--bg3); border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; font-size: .82rem; color: var(--muted); }
.empty-links a:hover { color: var(--green); border-color: var(--green); }
.empty-state { text-align: center; padding: 60px 20px; }
.es-icon { font-size: 3rem; display: block; margin-bottom: 16px; }
.empty-state h2 { font-size: 1.1rem; margin-bottom: 8px; }
.empty-state p { color: var(--muted); font-size: .88rem; }
.es-btn { display: inline-block; margin-top: 16px; background: var(--bg3); border: 1px solid var(--border); padding: 8px 20px; border-radius: 8px; color: var(--muted); font-size: .85rem; }
.es-btn:hover { border-color: var(--green); color: var(--green); }

/* ============================================================
   SINGLE ARTICLE
   ============================================================ */
.article-content h1 { font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; line-height: 1.3; }
.article-cats { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.cat-link { background: rgba(0,208,132,.15); color: var(--green); font-size: .75rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.article-meta { display: flex; gap: 16px; color: var(--muted); font-size: .82rem; margin: 10px 0 20px; flex-wrap: wrap; }
.article-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.article-thumb img { width: 100%; max-height: 400px; object-fit: cover; }
.content-body { line-height: 1.8; font-size: .95rem; }
.content-body h2 { font-size: 1.2rem; font-weight: 800; margin: 28px 0 12px; color: var(--green); }
.content-body h3 { font-size: 1rem; font-weight: 700; margin: 20px 0 10px; }
.content-body p { margin-bottom: 14px; }
.content-body ul, .content-body ol { margin: 10px 0 14px 20px; }
.content-body li { margin-bottom: 6px; }
.content-body table { margin: 16px 0; font-size: .85rem; }
.content-body table th { background: var(--bg2); padding: 8px 12px; text-align: left; font-size: .8rem; }
.content-body table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.content-body .match-summary-box, .content-body .prediction-box, .content-body .form-section, .content-body .h2h-section { background: var(--bg3); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin: 20px 0; }
.content-body .match-summary-box h2, .content-body .prediction-box h2, .content-body .form-section h2, .content-body .h2h-section h2 { font-size: .95rem; margin: 0 0 12px; }
.content-body .info-table td { padding: 6px 10px; border-bottom: 1px solid var(--border); font-size: .85rem; }
.content-body .info-table td:first-child { color: var(--muted); width: 120px; }
.content-body .disclaimer { background: rgba(255,71,87,.07); border: 1px solid rgba(255,71,87,.2); border-radius: var(--radius-sm); padding: 12px 16px; font-size: .82rem; color: var(--muted); margin-top: 24px; }
.article-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0; align-items: center; }
.tags-label { color: var(--muted); font-size: .82rem; }
.tag-link { background: var(--bg3); border: 1px solid var(--border); padding: 3px 10px; border-radius: 4px; font-size: .78rem; color: var(--muted); }
.tag-link:hover { border-color: var(--green); color: var(--green); }
.article-share { display: flex; align-items: center; gap: 10px; margin: 20px 0; padding: 16px; background: var(--bg3); border-radius: var(--radius-sm); }
.share-label { font-size: .82rem; color: var(--muted); }
.share-btn { padding: 6px 16px; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.share-btn.facebook { background: #1877f2; color: #fff; }
.share-btn.twitter { background: #1da1f2; color: #fff; }
.post-navigation { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.nav-prev, .nav-next { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 16px; }
.nav-next { text-align: right; }
.nav-label { font-size: .75rem; color: var(--muted); display: block; margin-bottom: 4px; }
.nav-title { font-size: .85rem; font-weight: 600; color: var(--text); }
.nav-prev:hover, .nav-next:hover { border-color: var(--green); }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.sidebar-widget h3 { font-size: .9rem; font-weight: 700; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.widget-links { display: flex; flex-direction: column; padding: 8px 0; }
.wl-item { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); }
.wl-item:last-child { border-bottom: none; }
.wl-item:hover { background: var(--bg3); color: var(--text); }
.wl-item.preview:hover { color: var(--green); }
.wl-item.review:hover { color: var(--blue); }
.wl-count { margin-left: auto; font-size: .72rem; color: var(--muted); background: var(--bg3); padding: 2px 7px; border-radius: 10px; }
.widget-leagues { display: flex; flex-direction: column; padding: 6px 0; }
.widget-leagues a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; color: var(--muted); font-size: .85rem; border-bottom: 1px solid var(--border); }
.widget-leagues a:last-child { border-bottom: none; }
.widget-leagues a:hover { background: var(--bg3); color: var(--text); }
.related-list { display: flex; flex-direction: column; }
.related-item { display: flex; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.related-item:last-child { border-bottom: none; }
.related-item:hover { background: var(--bg3); }
.related-item img { width: 52px; height: 40px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.ri-icon { width: 52px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg2); border-radius: 4px; flex-shrink: 0; }
.ri-content h4 { font-size: .82rem; font-weight: 600; color: var(--text); line-height: 1.4; }
.ri-date { font-size: .72rem; color: var(--muted); }

/* ============================================================
   SEO SECTION
   ============================================================ */
.seo-section { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-top: 24px; }
.seo-section h2 { font-size: 1rem; font-weight: 700; margin-bottom: 10px; }
.seo-section p { font-size: .85rem; color: var(--muted); line-height: 1.7; margin-bottom: 8px; }

/* ============================================================
   ADMIN BAR
   ============================================================ */
.admin-bar { display: flex; align-items: center; gap: 10px; background: rgba(0,208,132,.08); border: 1px solid rgba(0,208,132,.2); border-radius: var(--radius); padding: 10px 16px; margin-bottom: 16px; flex-wrap: wrap; }
.admin-bar button, .admin-bar a { background: var(--green); color: #0d1117; border: none; padding: 7px 16px; border-radius: 6px; font-size: .82rem; font-weight: 700; }
.admin-bar .btn-clear { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); }
#admin-msg { font-size: .82rem; color: var(--muted); }

/* ============================================================
   MISC ELEMENTS
   ============================================================ */
.btn-link { font-size: .8rem; color: var(--muted); margin-left: auto; white-space: nowrap; }
.btn-link:hover { color: var(--green); }
.update-time { font-size: .75rem; color: var(--muted); }
.news-quick-links { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.nql-section h3 { font-size: .88rem; font-weight: 700; margin-bottom: 10px; }
.nql-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nql-links a { background: var(--bg3); border: 1px solid var(--border); padding: 5px 12px; border-radius: 6px; font-size: .8rem; color: var(--muted); }
.nql-links a:hover, .nql-links a.live { border-color: var(--live); color: var(--live); }
.nql-links a:hover { border-color: var(--green); color: var(--green); }
.news-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.news-header h1 { font-size: 1.1rem; font-weight: 800; }
.news-hero { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.nh-icon { font-size: 2.5rem; }
.nh-info h1 { font-size: 1.15rem; font-weight: 800; }
.nh-info p { font-size: .85rem; color: var(--muted); margin-top: 4px; }
.stat-item { font-size: .82rem; color: var(--muted); }
.stat-item strong { color: var(--text); }

/* 404 */
.page-404 { text-align: center; padding: 80px 20px; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--border); line-height: 1; margin-bottom: 10px; }
.error-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.error-desc { color: var(--muted); font-size: .9rem; max-width: 480px; margin: 0 auto 24px; }
.error-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.error-btn { display: flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius); font-size: .9rem; font-weight: 700; }
.error-btn.primary { background: var(--green); color: #0d1117; }
.error-btn.secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.error-suggestions h3 { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.suggestion-links { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.suggestion-links a { background: var(--card); border: 1px solid var(--border); padding: 6px 14px; border-radius: 6px; font-size: .82rem; color: var(--muted); }
.suggestion-links a:hover { border-color: var(--green); color: var(--green); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 24px 0; }
.pg-prev, .pg-next { background: var(--card); border: 1px solid var(--border); padding: 8px 16px; border-radius: 8px; font-size: .85rem; color: var(--muted); }
.pg-prev:hover, .pg-next:hover { border-color: var(--green); color: var(--green); }
.pg-nums { display: flex; gap: 4px; }
.pg-nums a { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: .85rem; border: 1px solid var(--border); color: var(--muted); background: var(--card); }
.pg-nums a.current, .pg-nums a:hover { border-color: var(--green); color: var(--green); }

/* Ad Banner */
.ad-banner { position: fixed; bottom: 0; left: 0; right: 0; z-index: 90; }
.ad-toggle-wrap { text-align: right; padding: 2px 8px; background: rgba(0,0,0,.7); }
.ad-toggle-wrap button { background: var(--bg3); color: var(--muted); border: 1px solid var(--border); padding: 2px 10px; border-radius: 4px; font-size: .75rem; }
.ad-content img { width: 100%; display: block; max-height: 90px; object-fit: cover; }
.ad-content.collapsed { display: none; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--bg2); border-top: 1px solid var(--border); padding: 48px 0 24px; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.fcol h4 { font-size: .9rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.fcol p { font-size: .82rem; color: var(--muted); line-height: 1.7; }
.fcol a { display: block; font-size: .82rem; color: var(--muted); padding: 4px 0; }
.fcol a:hover { color: var(--green); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; background: var(--bg3); border: 1px solid var(--border); border-radius: 8px; color: var(--muted); }
.social-links a:hover { border-color: var(--green); color: var(--green); }
.footer-disclaimer { background: rgba(255,71,87,.06); border: 1px solid rgba(255,71,87,.15); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-size: .8rem; color: var(--muted); line-height: 1.7; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.footer-links a { color: var(--muted); margin: 0 6px; font-size: .78rem; }
.footer-links a:hover { color: var(--green); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .home-layout { grid-template-columns: 1fr 280px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  /* nav+search hidden by header.php inline styles */
  .hamburger { display: flex; margin-left: auto; }
  .home-layout, .sidebar-layout, .single-layout { grid-template-columns: 1fr; }
  .home-sidebar, .sidebar { position: static; }
  .player-hero { grid-template-columns: 1fr; text-align: center; }
  .player-stats-section { flex-direction: row; justify-content: center; }
  .team-header { flex-direction: column; text-align: center; }
  .team-header .stats { justify-content: center; }
  .grid-2, .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .player-detail-grid { grid-template-columns: 1fr; }
  .ncard.featured { grid-column: span 1; }
  .ncard.featured .ncard-link { flex-direction: column; }
  .ncard.featured .ncard-visual { width: 100%; }
  .filter-cards { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .tabs { overflow-x: auto; }
  .match-row { grid-template-columns: 40px 1fr 50px 1fr 0; }
  .mr-league { display: none; }
  .keo-row { grid-template-columns: 55px 1fr auto; }
  .kr-league { display: none; }
  .post-navigation { grid-template-columns: 1fr; }
  .news-quick-links { grid-template-columns: 1fr; }
  .standings-table { font-size: .78rem; }
  .standings-table th:nth-child(n+6), .standings-table td:nth-child(n+6) { display: none; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .error-code { font-size: 4rem; }
  .header-inner { gap: 10px; }
}
