/*
Theme Name:  LiveScore Pro
Theme URI:   https://example.com/livescore-pro
Author:      Smart Runner
Author URI:  https://example.com
Description: A modern dark-themed, fully SEO-optimized WordPress theme built for live football scores, fixtures, league standings, and sports news. Includes Schema.org JSON-LD, Open Graph, Twitter Cards, breadcrumbs, and full Yoast/RankMath compatibility.
Version:     1.0.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:     GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: livescore-pro
Tags: sports, livescore, football, seo, responsive, dark, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   0. CSS RESET & ROOT VARIABLES
============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-primary:   #00c853;
  --clr-secondary: #1a1a2e;
  --clr-accent:    #ff6f00;
  --clr-bg:        #0d0d1a;
  --clr-surface:   #16213e;
  --clr-surface2:  #1f2d50;
  --clr-border:    #2a3a60;
  --clr-text:      #e8eaf6;
  --clr-muted:     #8891b4;
  --clr-white:     #ffffff;
  --clr-live:      #ff1744;
  --clr-win:       #00c853;
  --clr-draw:      #ffd600;
  --clr-loss:      #ff1744;
  --font-main:     'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Courier New', monospace;
  --radius-sm:     4px;
  --radius-md:     8px;
  --radius-lg:     16px;
  --shadow:        0 4px 24px rgba(0,0,0,.4);
  --transition:    .2s ease;
  --header-h:      64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--clr-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--clr-accent); }
a:focus-visible { outline: 2px solid var(--clr-primary); outline-offset: 3px; border-radius: var(--radius-sm); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ============================================================
   1. ACCESSIBILITY
============================================================ */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: var(--clr-primary); color: #000;
  padding: 8px 16px; font-weight: 700; z-index: 99999;
  transition: top .2s;
}
.skip-link:focus { top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ============================================================
   2. LAYOUT
============================================================ */
.container       { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.container--wide { max-width: 1440px; }
.grid-main { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
.content-area { min-width: 0; }
.sidebar      { min-width: 0; }

/* ============================================================
   3. HEADER
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000; height: var(--header-h);
  background: var(--clr-secondary);
  border-bottom: 2px solid var(--clr-primary);
  box-shadow: 0 2px 16px rgba(0,0,0,.5);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 16px; }

/* Logo */
.site-branding { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-branding img { height: 40px; width: auto; }
.brand-name { font-size: 1.4rem; font-weight: 900; color: var(--clr-white); letter-spacing: -.5px; }
.brand-name span { color: var(--clr-primary); }

/* Ticker */
.live-ticker {
  flex: 1; height: 36px; border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; align-items: center;
}
.ticker-label {
  background: var(--clr-live); color: #fff; padding: 0 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: 1px;
  height: 100%; display: flex; align-items: center; white-space: nowrap; flex-shrink: 0;
}
.ticker-track { flex: 1; overflow: hidden; height: 100%; display: flex; align-items: center; }
.ticker-inner {
  display: flex; gap: 40px; white-space: nowrap;
  animation: ticker 35s linear infinite;
  font-size: .8rem; padding: 0 16px;
}
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.ticker-inner .t-score { color: var(--clr-primary); font-weight: 700; }

/* Nav */
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav a {
  color: var(--clr-muted); font-weight: 600; font-size: .88rem;
  padding: 6px 12px; border-radius: var(--radius-md);
  transition: all var(--transition);
}
.main-nav a:hover,
.main-nav .current-menu-item > a,
.main-nav .current-page-ancestor > a { color: var(--clr-white); background: rgba(255,255,255,.07); }
.main-nav .nav-live > a { color: var(--clr-live); }
.main-nav .nav-live > a::before { content: '● '; animation: blink 1s infinite; font-size: .6em; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* Hamburger */
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--clr-text); border-radius: 2px; transition: all var(--transition); }

/* ============================================================
   4. BREADCRUMBS
============================================================ */
.breadcrumbs { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); padding: 8px 0; font-size: .78rem; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; color: var(--clr-muted); }
.breadcrumbs li + li::before { content: '›'; margin-right: 4px; }
.breadcrumbs a { color: var(--clr-muted); }
.breadcrumbs a:hover { color: var(--clr-primary); }
.breadcrumbs .bc-current { color: var(--clr-text); }

/* ============================================================
   5. HERO
============================================================ */
.hero {
  padding: 48px 0 36px;
  background: linear-gradient(135deg, var(--clr-secondary) 0%, var(--clr-bg) 100%);
  border-bottom: 1px solid var(--clr-border);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,200,83,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; line-height: 1.1; margin-bottom: 12px; }
.hero-title em { font-style: normal; color: var(--clr-primary); }
.hero-sub { color: var(--clr-muted); font-size: 1.05rem; max-width: 520px; margin-bottom: 24px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   6. BUTTONS
============================================================ */
.btn { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; border-radius: var(--radius-md); transition: all var(--transition); cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--clr-primary); color: #000; padding: 10px 24px; }
.btn-primary:hover { background: #00e676; color: #000; }
.btn-outline { border: 1px solid var(--clr-border); color: var(--clr-muted); padding: 10px 24px; }
.btn-outline:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.btn-sm { padding: 5px 12px; font-size: .78rem; border-radius: var(--radius-sm); }

/* ============================================================
   7. LEAGUE TABS
============================================================ */
.league-tabs { background: var(--clr-surface); border-bottom: 1px solid var(--clr-border); }
.league-tabs-inner { display: flex; overflow-x: auto; scrollbar-width: none; }
.league-tabs-inner::-webkit-scrollbar { display: none; }
.league-tab {
  flex-shrink: 0; padding: 14px 18px; font-size: .84rem; font-weight: 600;
  color: var(--clr-muted); border-bottom: 3px solid transparent;
  cursor: pointer; white-space: nowrap; transition: all var(--transition);
}
.league-tab:hover { color: var(--clr-text); background: rgba(255,255,255,.03); }
.league-tab.active { color: var(--clr-primary); border-bottom-color: var(--clr-primary); }

/* ============================================================
   8. SECTION HEADERS
============================================================ */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; padding-bottom: 12px;
  border-bottom: 1px solid var(--clr-border);
}
.section-title { font-size: .95rem; font-weight: 800; color: var(--clr-white); display: flex; align-items: center; gap: 8px; }
.badge { font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge-live { background: var(--clr-live); color: #fff; animation: pulse 1.5s infinite; }
.badge-count { background: var(--clr-primary); color: #000; }
@keyframes pulse { 0%,100%{box-shadow: 0 0 0 0 rgba(255,23,68,.5)} 50%{box-shadow: 0 0 0 5px rgba(255,23,68,0)} }
.see-all { font-size: .78rem; color: var(--clr-primary); font-weight: 600; }
.see-all:hover { color: var(--clr-accent); }

/* ============================================================
   9. MATCH CARDS
============================================================ */
.scores-section { margin-bottom: 32px; }

.match-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); overflow: hidden; margin-bottom: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.match-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.match-card.is-live { border-left: 3px solid var(--clr-live); }

.mc-header {
  background: var(--clr-surface2); padding: 6px 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .72rem; font-weight: 600; color: var(--clr-muted);
}
.mc-status-live { color: var(--clr-live); display: flex; align-items: center; gap: 4px; }
.mc-status-live::before { content: '●'; animation: blink 1s infinite; font-size: .6em; }
.mc-status-ft { color: var(--clr-muted); }
.mc-status-up { color: var(--clr-primary); }

.mc-body { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }

.mc-team { display: flex; align-items: center; gap: 10px; }
.mc-team.away { flex-direction: row-reverse; text-align: right; }
.mc-logo {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: var(--clr-surface2); display: flex; align-items: center; justify-content: center;
  font-size: .65rem; color: var(--clr-muted); overflow: hidden;
}
.mc-logo img { width: 100%; height: 100%; object-fit: contain; }
.mc-name { font-size: .88rem; font-weight: 700; color: var(--clr-white); }

.mc-score { text-align: center; min-width: 80px; }
.mc-time-lbl { font-size: .7rem; color: var(--clr-muted); margin-bottom: 3px; }
.mc-result {
  font-size: 1.55rem; font-weight: 900; letter-spacing: 2px;
  color: var(--clr-white); font-family: var(--font-mono);
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.mc-result.live-score { color: var(--clr-live); }
.mc-result .sep { color: var(--clr-muted); margin: 0 3px; font-size: 1.2rem; }
.mc-ht { font-size: .68rem; color: var(--clr-muted); margin-top: 2px; }

.mc-footer {
  padding: 8px 16px; border-top: 1px solid var(--clr-border);
  display: flex; justify-content: flex-end; gap: 8px;
}

/* ============================================================
   10. STANDINGS TABLE
============================================================ */
.table-wrap { overflow-x: auto; }
.standings-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.standings-table thead th {
  background: var(--clr-surface2); padding: 9px 7px; text-align: center;
  color: var(--clr-muted); font-size: .7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .4px;
}
.standings-table thead th:first-child { text-align: left; padding-left: 12px; min-width: 28px; }
.standings-table thead th.th-team { text-align: left; }
.standings-table tbody tr { border-bottom: 1px solid var(--clr-border); transition: background var(--transition); }
.standings-table tbody tr:hover { background: rgba(255,255,255,.03); }
.standings-table td { padding: 9px 7px; text-align: center; }
.standings-table td:first-child { padding-left: 12px; }
.pos-num { color: var(--clr-muted); font-size: .78rem; font-weight: 700; }
.pos-cl  { color: #2979ff; }
.pos-clq { color: #00b0ff; }
.pos-uel { color: #ff6d00; }
.pos-rel { color: var(--clr-loss); }
.td-team { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.td-logo { width: 18px; height: 18px; border-radius: 50%; background: var(--clr-surface2); overflow: hidden; flex-shrink: 0; }
.td-logo img { width: 100%; height: 100%; object-fit: contain; }
.td-pts { font-weight: 900; color: var(--clr-white); }
.form-dots { display: flex; gap: 3px; justify-content: center; }
.fd { width: 14px; height: 14px; border-radius: 50%; font-size: .55rem; font-weight: 700; display: flex; align-items: center; justify-content: center; color: #fff; }
.fd-w { background: var(--clr-win); }
.fd-d { background: var(--clr-draw); color: #000; }
.fd-l { background: var(--clr-loss); }
.table-legend { padding: 8px 12px; font-size: .7rem; color: var(--clr-muted); border-top: 1px solid var(--clr-border); display: flex; gap: 12px; flex-wrap: wrap; }

/* ============================================================
   11. TOP SCORERS
============================================================ */
.scorer-row {
  display: grid; grid-template-columns: 22px 32px 1fr 36px;
  align-items: center; gap: 8px; padding: 9px 12px;
  border-radius: var(--radius-sm); transition: background var(--transition);
}
.scorer-row:hover { background: rgba(255,255,255,.04); }
.scorer-rank { font-size: .75rem; color: var(--clr-muted); font-weight: 700; text-align: center; }
.scorer-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--clr-surface2); overflow: hidden; }
.scorer-avatar img { width: 100%; height: 100%; object-fit: cover; }
.scorer-info .s-name { font-size: .83rem; font-weight: 700; color: var(--clr-white); }
.scorer-info .s-club { font-size: .7rem; color: var(--clr-muted); }
.scorer-goals { font-size: 1.1rem; font-weight: 900; color: var(--clr-primary); text-align: right; }

/* ============================================================
   12. NEWS GRID
============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; margin-top: 14px; }
.news-card {
  background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-md); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.nc-thumb { aspect-ratio: 16/9; overflow: hidden; background: var(--clr-surface2); flex-shrink: 0; }
.nc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .nc-thumb img { transform: scale(1.06); }
.nc-body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.nc-cat { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-primary); margin-bottom: 7px; }
.nc-title { font-size: .95rem; font-weight: 700; line-height: 1.4; color: var(--clr-white); flex: 1; margin-bottom: 10px; }
.nc-title a { color: inherit; }
.nc-title a:hover { color: var(--clr-primary); }
.nc-meta { font-size: .72rem; color: var(--clr-muted); display: flex; gap: 10px; align-items: center; padding-top: 10px; border-top: 1px solid var(--clr-border); flex-wrap: wrap; }

/* ============================================================
   13. WIDGETS
============================================================ */
.widget { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); overflow: hidden; margin-bottom: 22px; }
.widget-head { background: var(--clr-surface2); padding: 11px 14px; border-bottom: 2px solid var(--clr-primary); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: var(--clr-white); display: flex; align-items: center; gap: 7px; }
.widget-body { padding: 12px; }
.widget-body.no-pad { padding: 0; }
.w-icon { color: var(--clr-primary); }

/* Upcoming widget */
.upcoming-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: var(--radius-sm); gap: 8px; font-size: .78rem; transition: background var(--transition); }
.upcoming-row:hover { background: rgba(255,255,255,.04); }
.up-team { display: flex; align-items: center; gap: 6px; color: var(--clr-text); flex: 1; }
.up-team.right { flex-direction: row-reverse; text-align: right; }
.up-time { text-align: center; flex-shrink: 0; min-width: 52px; }
.up-time .t-time { color: var(--clr-primary); font-weight: 700; font-size: .75rem; }
.up-time .t-comp { font-size: .68rem; color: var(--clr-muted); }

/* ============================================================
   14. SINGLE POST / ARTICLE
============================================================ */
.article-wrap { max-width: 760px; }
.article-cat { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-primary); display: inline-block; margin-bottom: 10px; }
.article-title { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; line-height: 1.2; color: var(--clr-white); margin-bottom: 14px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--clr-muted); margin-bottom: 18px; }
.article-meta a { color: var(--clr-muted); }
.article-meta a:hover { color: var(--clr-primary); }
.article-thumb { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/9; margin-bottom: 24px; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }

.article-content { font-size: 1rem; line-height: 1.8; color: var(--clr-text); }
.article-content h2 { font-size: 1.5rem; font-weight: 800; color: var(--clr-white); margin: 28px 0 12px; }
.article-content h3 { font-size: 1.2rem; font-weight: 700; color: var(--clr-white); margin: 22px 0 10px; }
.article-content p { margin-bottom: 18px; }
.article-content ul { list-style: disc; padding-left: 22px; margin-bottom: 18px; }
.article-content ol { list-style: decimal; padding-left: 22px; margin-bottom: 18px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-left: 4px solid var(--clr-primary); padding: 14px 20px; background: var(--clr-surface); border-radius: 0 var(--radius-md) var(--radius-md) 0; font-style: italic; color: var(--clr-muted); margin: 24px 0; }
.article-content a { color: var(--clr-primary); text-decoration: underline; }
.article-content strong { color: var(--clr-white); }
.article-content code { background: var(--clr-surface2); padding: 2px 6px; border-radius: var(--radius-sm); font-family: var(--font-mono); font-size: .9em; }
.article-content table { width: 100%; border-collapse: collapse; margin-bottom: 18px; }
.article-content th, .article-content td { padding: 9px 12px; border: 1px solid var(--clr-border); text-align: left; }
.article-content th { background: var(--clr-surface2); font-weight: 700; }

/* Tags */
.post-tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 7px; }
.tag-pill { padding: 4px 12px; border: 1px solid var(--clr-border); border-radius: 999px; font-size: .76rem; color: var(--clr-muted); transition: all var(--transition); }
.tag-pill:hover { border-color: var(--clr-primary); color: var(--clr-primary); }

/* Author box */
.author-box { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 18px; display: flex; gap: 14px; margin-top: 28px; }
.author-box .av { width: 60px; height: 60px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--clr-surface2); }
.author-box .av img { width: 100%; height: 100%; object-fit: cover; }
.author-box .a-name { font-weight: 700; color: var(--clr-white); margin-bottom: 4px; }
.author-box .a-bio { font-size: .83rem; color: var(--clr-muted); }

/* Post navigation */
.post-nav { display: flex; gap: 16px; justify-content: space-between; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--clr-border); }
.post-nav a { flex: 1; }
.post-nav .nav-label { font-size: .7rem; color: var(--clr-muted); margin-bottom: 4px; display: block; }
.post-nav .nav-title { font-size: .88rem; font-weight: 700; color: var(--clr-white); }
.post-nav a:hover .nav-title { color: var(--clr-primary); }

/* Related posts */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }

/* Comments */
.comments-area { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--clr-border); }
.comments-title { font-size: 1.1rem; font-weight: 800; color: var(--clr-white); margin-bottom: 18px; }
.comment-item { background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 10px; }
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-meta img { width: 34px; height: 34px; border-radius: 50%; }
.comment-meta .c-name { font-weight: 700; font-size: .88rem; color: var(--clr-white); }
.comment-meta .c-date { font-size: .72rem; color: var(--clr-muted); }
.comment-text { font-size: .88rem; line-height: 1.7; }
.children { margin-left: 28px; }
.comment-form label { display: block; font-size: .8rem; font-weight: 600; color: var(--clr-muted); margin-bottom: 5px; }
.comment-form input[type=text],
.comment-form input[type=email],
.comment-form input[type=url],
.comment-form textarea {
  width: 100%; background: var(--clr-surface); border: 1px solid var(--clr-border);
  border-radius: var(--radius-sm); color: var(--clr-text); padding: 9px 13px;
  font-family: inherit; font-size: .88rem; transition: border-color var(--transition);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--clr-primary); }
.comment-form .form-submit input { background: var(--clr-primary); color: #000; font-weight: 700; padding: 9px 22px; border-radius: var(--radius-md); cursor: pointer; width: auto; transition: background var(--transition); }
.comment-form .form-submit input:hover { background: #00e676; }

/* ============================================================
   15. PAGINATION
============================================================ */
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 36px; flex-wrap: wrap; }
.pagination .page-numbers { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--clr-border); border-radius: var(--radius-sm); font-size: .88rem; color: var(--clr-muted); transition: all var(--transition); }
.pagination .page-numbers:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.pagination .page-numbers.current { background: var(--clr-primary); color: #000; border-color: var(--clr-primary); font-weight: 700; }

/* ============================================================
   16. FOOTER
============================================================ */
.site-footer { background: var(--clr-secondary); border-top: 2px solid var(--clr-primary); padding: 48px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-brand .brand-name { font-size: 1.25rem; margin-bottom: 10px; display: inline-block; }
.footer-desc { font-size: .83rem; color: var(--clr-muted); line-height: 1.7; max-width: 280px; }
.footer-socials { display: flex; gap: 8px; margin-top: 14px; }
.social-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: center; color: var(--clr-muted); font-size: .78rem; transition: all var(--transition); }
.social-btn:hover { border-color: var(--clr-primary); color: var(--clr-primary); }
.footer-col-title { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--clr-white); margin-bottom: 14px; }
.footer-links { display: flex; flex-direction: column; gap: 7px; }
.footer-links a { font-size: .83rem; color: var(--clr-muted); transition: color var(--transition); }
.footer-links a:hover { color: var(--clr-primary); }
.footer-bottom { padding-top: 20px; border-top: 1px solid var(--clr-border); display: flex; align-items: center; justify-content: space-between; font-size: .76rem; color: var(--clr-muted); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: var(--clr-muted); }
.footer-bottom a:hover { color: var(--clr-primary); }

/* ============================================================
   17. 404 / SEARCH
============================================================ */
.error-page { text-align: center; padding: 72px 0; }
.error-num { font-size: 7rem; font-weight: 900; color: var(--clr-surface2); line-height: 1; }
.error-msg { font-size: 1.5rem; color: var(--clr-white); margin-bottom: 10px; }
.error-sub { color: var(--clr-muted); margin-bottom: 24px; }
.search-bar { display: flex; gap: 8px; max-width: 480px; margin: 0 auto 28px; }
.search-bar input[type=search] { flex: 1; background: var(--clr-surface); border: 1px solid var(--clr-border); border-radius: var(--radius-md); color: var(--clr-text); padding: 10px 16px; font-size: .95rem; font-family: inherit; }
.search-bar input:focus { outline: none; border-color: var(--clr-primary); }
.search-bar button { background: var(--clr-primary); color: #000; font-weight: 700; padding: 10px 20px; border-radius: var(--radius-md); }

/* ============================================================
   18. UTILITIES
============================================================ */
.site-main { padding: 30px 0 60px; }
.mb-28 { margin-bottom: 28px; }
.text-primary { color: var(--clr-primary); }
.text-muted { color: var(--clr-muted); }
.text-white { color: var(--clr-white); }

/* ============================================================
   19. RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
  .grid-main { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --header-h: 56px; }
  .live-ticker { display: none; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--clr-secondary); flex-direction: column; align-items: flex-start;
    padding: 8px 12px; border-bottom: 1px solid var(--clr-border); z-index: 999;
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .news-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
  .post-nav { flex-direction: column; }
}
@media (max-width: 480px) {
  .mc-body { grid-template-columns: 1fr; gap: 8px; }
  .mc-team, .mc-team.away { justify-content: center; flex-direction: row; }
  .mc-score { order: -1; }
  .hero-title { font-size: 1.5rem; }
}

/* ============================================================
   20. PRINT
============================================================ */
@media print {
  .site-header, .site-footer, .sidebar, .live-ticker, .league-tabs, .breadcrumbs, .hero-btns { display: none; }
  body { background: #fff; color: #000; }
  .article-content { color: #000; }
  a { color: #000; text-decoration: underline; }
}
