/*
Theme Name: Pronostico Futbol 247
Theme URI: https://pronosticofutbol247.com
Author: Pronostico Futbol 247
Description: Tema premium blanco y negro para pronosticos de futbol. Top 5 articulos + 10 ligas principales con partidos en vivo.
Version: 2.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: pf247
*/

/* ========== VARIABLES PREMIUM ========== */
:root {
  --white: #FFFFFF;
  --snow: #FAFAFA;
  --pearl: #F2F2F2;
  --silver: #E0E0E0;
  --ash: #ACACAC;
  --slate: #6B6B6B;
  --graphite: #3A3A3A;
  --charcoal: #1C1C1E;
  --ink: #111113;
  --pure-black: #000000;
  --emerald: #00C853;
  --emerald-soft: rgba(0,200,83,.12);
  --crimson: #FF1744;
  --crimson-soft: rgba(255,23,68,.10);
  --gold: #FFB300;
  --gold-soft: rgba(255,179,0,.10);
  --max-w: 1280px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.04), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.1), 0 4px 12px rgba(0,0,0,.05);
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ========== RESET ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { background: var(--snow); color: var(--graphite); font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; height: auto; }
ul, ol { list-style: none; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ========== HEADER ========== */
.site-header { background: var(--ink); position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(255,255,255,.06); }
.header-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; height: 68px; }
.site-brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { width: 38px; height: 38px; background: var(--white); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -1px; flex-shrink: 0; }
.brand-text { color: var(--white); font-weight: 800; font-size: 17px; letter-spacing: -0.5px; line-height: 1.2; }
.brand-text small { display: block; font-size: 10px; font-weight: 500; color: rgba(255,255,255,.35); letter-spacing: 2px; text-transform: uppercase; }
.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.5); transition: all .2s; padding: 7px 14px; border-radius: 8px; letter-spacing: -0.2px; }
.main-nav a:hover { color: rgba(255,255,255,.9); background: rgba(255,255,255,.07); }
.main-nav a:first-child, .main-nav .current-menu-item a, .main-nav .current_page_item a { color: var(--white); background: rgba(255,255,255,.1); }
.header-right { display: flex; align-items: center; gap: 12px; }
.live-badge { display: flex; align-items: center; gap: 6px; background: var(--emerald-soft); color: var(--emerald); font-size: 11px; font-weight: 700; padding: 6px 12px; border-radius: 20px; letter-spacing: .3px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.5s ease infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.3)} }
.header-search { position: relative; }
.header-search input { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); border-radius: var(--r-sm); padding: 8px 16px 8px 36px; color: var(--white); font-size: 13px; font-family: var(--font); width: 200px; outline: none; transition: all .25s; }
.header-search input::placeholder { color: rgba(255,255,255,.3); }
.header-search input:focus { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.15); width: 260px; }
.header-search .search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: rgba(255,255,255,.3); width: 16px; height: 16px; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 24px; cursor: pointer; padding: 8px; }

/* ========== SECTIONS ========== */
.section-header { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-label { font-size: 11px; font-weight: 700; color: var(--ash); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.section-title { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.8px; line-height: 1.15; }
.section-subtitle { font-size: 13px; color: var(--ash); font-weight: 500; }
.section-link { font-size: 13px; font-weight: 600; color: var(--ink); padding: 8px 18px; border: 1.5px solid var(--silver); border-radius: var(--r-sm); transition: all .2s; white-space: nowrap; }
.section-link:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ========== HERO / TOP 5 ========== */
.hero-section { padding: 32px 0 16px; }
.featured-grid { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 480px; }
.fcard { position: relative; border-radius: var(--r-md); overflow: hidden; display: block; background: var(--charcoal); }
.fcard .thumb { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.25,.46,.45,.94); }
.fcard:hover .thumb { transform: scale(1.05); }
.fcard .overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.75) 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; color: var(--white); }
.fcard .tag-row { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fcard .tag { display: inline-block; background: var(--white); color: var(--ink); font-size: 9px; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 0; }
.fcard .tag.hot { background: var(--crimson); color: #fff; }
.fcard h3 { font-size: 15px; font-weight: 700; line-height: 1.35; letter-spacing: -0.3px; margin-bottom: 0; }
.fcard .date { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 8px; font-weight: 500; }
.fcard.main { grid-row: 1 / 3; }
.fcard.main h3 { font-size: 24px; letter-spacing: -0.6px; }
.fcard.main .tag { font-size: 10px; padding: 5px 12px; }
.fcard.side .thumb { min-height: 200px; }
.ph-1 { background: linear-gradient(145deg, #0d1117 0%, #161b22 40%, #1a2332 70%, #0f1923 100%); }
.ph-2 { background: linear-gradient(145deg, #111 0%, #1a1a2e 50%, #16213e 100%); }
.ph-3 { background: linear-gradient(145deg, #0a0a0a 0%, #1c1c1c 50%, #2d2d2d 100%); }
.ph-4 { background: linear-gradient(145deg, #0c1016 0%, #1a2a3a 60%, #0d1926 100%); }
.ph-5 { background: linear-gradient(145deg, #0e0b16 0%, #1b133c 50%, #100c22 100%); }

/* ========== STATS BAR ========== */
.stats-bar { display: flex; gap: 12px; padding: 20px 0 8px; overflow-x: auto; }
.stat-chip { display: flex; align-items: center; gap: 10px; background: var(--white); border: 1px solid var(--pearl); border-radius: var(--r-sm); padding: 12px 18px; white-space: nowrap; flex-shrink: 0; transition: all .2s; }
.stat-chip:hover { border-color: var(--silver); box-shadow: var(--shadow-sm); }
.stat-chip .stat-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.stat-chip .stat-num { font-size: 18px; font-weight: 800; color: var(--ink); font-family: var(--mono); letter-spacing: -1px; }
.stat-chip .stat-label { font-size: 11px; color: var(--ash); font-weight: 600; }

/* ========== LEAGUES ========== */
.leagues-section { padding: 40px 0; }
.leagues-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.league-card { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--pearl); overflow: hidden; transition: all .25s; }
.league-card:hover { border-color: var(--silver); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.league-card-header { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--pearl); }
.league-card-header img { width: 40px; height: 40px; border-radius: var(--r-sm); object-fit: contain; }
.league-card-header h3 { font-size: 15px; font-weight: 700; color: var(--ink); letter-spacing: -0.3px; }
.league-card-header .country { font-size: 12px; color: var(--ash); font-weight: 500; }
.league-card-header .match-count { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--ash); background: var(--pearl); padding: 4px 10px; border-radius: 6px; }
.match-row { display: flex; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--pearl); transition: background .15s; cursor: pointer; gap: 16px; }
.match-row:last-child { border-bottom: none; }
.match-row:hover { background: var(--snow); }
.match-row a { display: flex; align-items: center; width: 100%; color: var(--graphite); gap: 16px; }

/* ========== MATCH TEAMS CON LOGOS ========== */
.match-teams { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.match-teams .team { font-weight: 600; font-size: 13px; color: var(--ink); letter-spacing: -0.2px; display: flex; align-items: center; gap: 6px; }
.match-vs { font-size: 11px; color: var(--ash); font-weight: 400; padding-left: 26px; }
.team-logo { width: 18px !important; height: 18px !important; min-width: 18px; min-height: 18px; max-width: 18px; max-height: 18px; object-fit: contain; flex-shrink: 0; display: inline !important; vertical-align: middle; }

.match-info { text-align: right; flex-shrink: 0; }
.match-date { font-size: 11px; color: var(--ash); display: block; margin-bottom: 4px; }
.match-status { font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 6px; display: inline-block; letter-spacing: .3px; text-transform: uppercase; }
.match-status.live { background: var(--emerald-soft); color: var(--emerald); }
.match-status.upcoming { background: var(--pearl); color: var(--slate); }
.match-status.finished { background: var(--ink); color: var(--white); }
.league-card-footer { padding: 12px 20px; text-align: center; border-top: 1px solid var(--pearl); background: var(--snow); }
.league-card-footer a { font-size: 12px; font-weight: 700; color: var(--ink); letter-spacing: .3px; }
.league-card-footer a:hover { opacity: .6; }

/* ========== ARTICLE CARDS ========== */
.articles-section { padding: 40px 0 60px; }
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.article-card { background: var(--white); border-radius: var(--r-md); border: 1px solid var(--pearl); overflow: hidden; transition: all .25s; }
.article-card:hover { border-color: var(--silver); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.article-card .thumb { width: 100%; height: 180px; background-size: cover; background-position: center; position: relative; }
.article-card .tag { position: absolute; top: 12px; left: 12px; background: var(--ink); color: var(--white); font-size: 9px; font-weight: 800; padding: 4px 10px; border-radius: 6px; text-transform: uppercase; letter-spacing: .8px; }
.article-card .body { padding: 18px; }
.article-card h4 { font-size: 15px; font-weight: 700; color: var(--ink); line-height: 1.4; margin-bottom: 8px; letter-spacing: -0.3px; }
.article-card p { font-size: 13px; color: var(--slate); line-height: 1.55; margin-bottom: 14px; }
.article-card .meta-row { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--ash); font-weight: 600; border-top: 1px solid var(--pearl); padding-top: 12px; }
.article-card .meta-row .league-tag { background: var(--pearl); padding: 3px 8px; border-radius: 5px; font-size: 10px; font-weight: 700; color: var(--slate); }

/* ========== SINGLE POST ========== */
.single-wrap { max-width: 800px; margin: 48px auto; padding: 0 24px; }
.single-wrap .breadcrumb { font-size: 12px; color: var(--ash); margin-bottom: 20px; font-weight: 500; }
.single-wrap .breadcrumb a { color: var(--slate); }
.single-wrap .breadcrumb a:hover { color: var(--ink); }
.single-wrap .tag { display: inline-block; background: var(--ink); color: var(--white); font-size: 10px; font-weight: 800; padding: 5px 14px; border-radius: 6px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 16px; }
.single-wrap h1 { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 16px; }
.single-wrap .post-meta { font-size: 14px; color: var(--ash); margin-bottom: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--pearl); font-weight: 500; }
.single-wrap .featured-img { border-radius: var(--r-md); overflow: hidden; margin-bottom: 36px; }
.single-wrap .content { font-size: 17px; line-height: 1.8; color: var(--graphite); }
.single-wrap .content h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 40px 0 16px; letter-spacing: -0.5px; }
.single-wrap .content h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 32px 0 12px; }
.single-wrap .content p { margin-bottom: 20px; }
.single-wrap .content ul, .single-wrap .content ol { margin: 16px 0; padding-left: 24px; }
.single-wrap .content li { margin-bottom: 8px; list-style: disc; color: var(--graphite); }
.single-wrap .content ol li { list-style: decimal; }
.single-wrap .content blockquote { border-left: 4px solid var(--ink); padding: 20px 28px; margin: 28px 0; background: var(--pearl); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; color: var(--slate); }
.single-wrap .content img { border-radius: var(--r-md); margin: 28px 0; }
.single-wrap .content a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Related partido in single post */
.related-partido-box { background: var(--pearl); border-radius: var(--r-md); padding: 24px; margin-top: 40px; border: 1px solid var(--silver); }
.related-partido-box h2 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.related-partido-box .rp-link { display: inline-block; background: var(--ink); color: var(--white); padding: 10px 24px; border-radius: var(--r-sm); font-weight: 600; font-size: 13px; margin-top: 12px; transition: opacity .2s; }
.related-partido-box .rp-link:hover { opacity: .8; }

/* ========== SINGLE PARTIDO ========== */
.partido-wrap { max-width: 900px; margin: 40px auto; padding: 0 24px; }
.partido-header { background: var(--ink); color: var(--white); border-radius: var(--r-lg); padding: 44px; text-align: center; margin-bottom: 24px; }
.partido-league-row { display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 28px; }
.partido-league-logo { width: 20px; height: 20px; object-fit: contain; }
.partido-header .league-name { font-size: 12px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600; }
.league-round { font-size: 12px; color: rgba(255,255,255,.3); }
.partido-teams-display { display: flex; align-items: center; justify-content: center; gap: 40px; }
.partido-team { text-align: center; flex: 1; max-width: 200px; }
.partido-team img { width: 76px; height: 76px; margin: 0 auto 14px; object-fit: contain; }
.team-placeholder { width: 76px; height: 76px; margin: 0 auto 14px; background: rgba(255,255,255,.08); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 800; text-transform: uppercase; }
.partido-team .name { font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
.partido-score-center { text-align: center; min-width: 120px; }
.score-big { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: 52px; font-weight: 800; font-family: var(--mono); letter-spacing: -3px; line-height: 1; }
.score-sep { color: rgba(255,255,255,.2); }
.score-halftime { font-size: 12px; color: rgba(255,255,255,.35); margin-top: 8px; font-family: var(--mono); }
.partido-vs-badge { font-size: 32px; font-weight: 800; color: rgba(255,255,255,.15); font-family: var(--mono); }
.partido-status { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; padding: 5px 16px; border-radius: 20px; margin-top: 16px; text-transform: uppercase; letter-spacing: .5px; }
.partido-status--upcoming { background: rgba(255,255,255,.08); color: rgba(255,255,255,.5); }
.partido-status--live { background: var(--emerald-soft); color: var(--emerald); }
.partido-status--finished { background: rgba(255,255,255,.08); color: rgba(255,255,255,.4); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.5s ease infinite; }
.partido-meta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 24px; font-size: 13px; color: rgba(255,255,255,.35); }
.meta-item { white-space: nowrap; }

/* Partido sections */
.partido-section { background: var(--white); border-radius: var(--r-md); padding: 28px 32px; border: 1px solid var(--pearl); margin-bottom: 16px; }
.partido-section-title { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--pearl); letter-spacing: -0.3px; }
.stats-table { display: flex; flex-direction: column; gap: 16px; }
.stat-row { display: flex; align-items: center; gap: 12px; }
.stat-val { width: 50px; font-size: 14px; font-weight: 700; color: var(--ink); font-family: var(--mono); }
.stat-val.left { text-align: right; }
.stat-val.right { text-align: left; }
.stat-center { flex: 1; }
.stat-label { font-size: 10px; color: var(--ash); text-align: center; margin-bottom: 5px; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.stat-bar { display: flex; height: 5px; border-radius: 3px; overflow: hidden; background: var(--pearl); }
.stat-bar-home { background: var(--ink); border-radius: 3px 0 0 3px; transition: width .4s; }
.stat-bar-away { background: var(--ash); border-radius: 0 3px 3px 0; transition: width .4s; }
.partido-content-body h2 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 20px 0 10px; }
.partido-content-body p { margin-bottom: 16px; line-height: 1.7; }

/* Linked article */
.linked-article-card { display: flex; gap: 20px; background: var(--snow); border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--pearl); transition: all .2s; }
.linked-article-card:hover { border-color: var(--silver); box-shadow: var(--shadow-md); }
.linked-article-thumb { width: 200px; flex-shrink: 0; background-size: cover; background-position: center; min-height: 140px; }
.linked-article-body { padding: 20px; flex: 1; }
.linked-article-body h3 { font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.linked-article-body p { font-size: 13px; color: var(--slate); line-height: 1.5; margin-bottom: 12px; }
.linked-article-cta { font-size: 13px; font-weight: 700; color: var(--ink); }

/* Related matches */
.related-matches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related-match-card { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--snow); border: 1px solid var(--pearl); border-radius: var(--r-sm); transition: all .2s; }
.related-match-card:hover { border-color: var(--silver); background: var(--pearl); }
.related-match-teams { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 600; color: var(--ink); }
.related-match-teams .vs { font-size: 11px; color: var(--ash); font-weight: 400; }
.related-match-meta { text-align: right; }
.related-match-meta .match-date { display: block; font-size: 11px; color: var(--ash); margin-top: 4px; }

/* ========== PAGE TEMPLATE ========== */
.page-wrap { max-width: 800px; margin: 48px auto; padding: 0 24px; }
.page-wrap h1 { font-size: 38px; font-weight: 800; color: var(--ink); line-height: 1.15; letter-spacing: -1.2px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--pearl); }
.page-wrap .page-content { font-size: 17px; line-height: 1.8; color: var(--graphite); }
.page-wrap .page-content h2 { font-size: 24px; font-weight: 800; color: var(--ink); margin: 36px 0 14px; letter-spacing: -0.5px; }
.page-wrap .page-content h3 { font-size: 20px; font-weight: 700; color: var(--ink); margin: 28px 0 12px; }
.page-wrap .page-content p { margin-bottom: 20px; }
.page-wrap .page-content ul, .page-wrap .page-content ol { margin: 16px 0; padding-left: 24px; }
.page-wrap .page-content li { margin-bottom: 8px; list-style: disc; }
.page-wrap .page-content ol li { list-style: decimal; }
.page-wrap .page-content img { border-radius: var(--r-md); margin: 24px 0; }
.page-wrap .page-content blockquote { border-left: 4px solid var(--ink); padding: 20px 28px; margin: 28px 0; background: var(--pearl); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-style: italic; }

/* ========== ARCHIVE ========== */
.archive-header { padding: 48px 0 28px; }
.archive-header .section-label { margin-bottom: 6px; }
.archive-header h1 { font-size: 34px; font-weight: 800; color: var(--ink); letter-spacing: -0.8px; }
.archive-header p { font-size: 15px; color: var(--slate); margin-top: 8px; line-height: 1.6; }

/* ========== SEARCH ========== */
.search-hero { padding: 48px 0 40px; text-align: center; }
.search-hero h1 { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.6px; margin-bottom: 6px; }
.search-hero .search-query { color: var(--slate); font-weight: 400; }
.search-form-inline { display: flex; max-width: 560px; margin: 24px auto 0; gap: 10px; }
.search-form-inline input[type="search"] { flex: 1; padding: 12px 20px; border: 1.5px solid var(--silver); border-radius: var(--r-sm); font-size: 15px; font-family: var(--font); outline: none; transition: border-color .2s; background: var(--white); }
.search-form-inline input[type="search"]:focus { border-color: var(--ink); }
.search-form-inline button { background: var(--ink); color: var(--white); border: none; padding: 12px 24px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; font-family: var(--font); cursor: pointer; transition: opacity .2s; }
.search-form-inline button:hover { opacity: .85; }
.search-count { text-align: center; font-size: 13px; color: var(--ash); margin-bottom: 24px; font-weight: 500; }

/* ========== 404 ========== */
.page-404 { text-align: center; padding: 100px 24px 120px; }
.page-404 .error-code { font-size: 120px; font-weight: 800; color: var(--pearl); line-height: 1; font-family: var(--mono); letter-spacing: -6px; }
.page-404 h1 { font-size: 28px; font-weight: 800; color: var(--ink); margin: 16px 0 12px; letter-spacing: -0.5px; }
.page-404 p { font-size: 16px; color: var(--slate); margin-bottom: 32px; line-height: 1.6; }
.page-404 .btn-home { display: inline-block; background: var(--ink); color: var(--white); padding: 14px 32px; border-radius: var(--r-sm); font-weight: 700; font-size: 14px; transition: opacity .2s; letter-spacing: -0.2px; }
.page-404 .btn-home:hover { opacity: .85; }
.page-404 .search-404 { max-width: 400px; margin: 24px auto 0; }
.page-404 .search-404 input { width: 100%; padding: 12px 20px; border: 1.5px solid var(--silver); border-radius: var(--r-sm); font-size: 14px; font-family: var(--font); outline: none; text-align: center; }
.page-404 .search-404 input:focus { border-color: var(--ink); }

/* ========== FOOTER ========== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.6); margin-top: 0; }
.footer-top { max-width: var(--max-w); margin: 0 auto; padding: 56px 24px 40px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; border-bottom: 1px solid rgba(255,255,255,.06); }
.footer-brand-mark { width: 44px; height: 44px; background: var(--white); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 700; font-size: 18px; color: var(--ink); margin-bottom: 16px; }
.footer-brand-name { font-size: 18px; font-weight: 800; color: var(--white); margin-bottom: 10px; letter-spacing: -0.5px; }
.footer-desc { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.4); }
.footer-col h5 { font-size: 11px; font-weight: 700; color: rgba(255,255,255,.25); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 20px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,.5); padding: 5px 0; transition: color .2s; font-weight: 500; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: var(--max-w); margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.2); font-weight: 500; }

/* ========== PAGINATION ========== */
.nav-links { display: flex; justify-content: center; gap: 6px; padding: 40px 0; }
.nav-links a, .nav-links span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600; border: 1px solid var(--pearl); color: var(--graphite); transition: all .2s; }
.nav-links a:hover { border-color: var(--ink); color: var(--ink); }
.nav-links .current { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ========== LOADING ========== */
.loading-placeholder { background: linear-gradient(90deg, var(--pearl) 25%, var(--silver) 50%, var(--pearl) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .leagues-grid { grid-template-columns: 1fr; }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .featured-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .fcard.main { grid-row: auto; }
  .fcard .thumb { min-height: 200px !important; }
  .fcard.main h3 { font-size: 18px; }
  .stats-bar { gap: 8px; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 6px; text-align: center; }
  .main-nav { display: none; }
  .main-nav.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; background: var(--ink); padding: 20px; flex-direction: column; border-top: 1px solid rgba(255,255,255,.06); }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: block; }
  .header-search, .live-badge { display: none; }
  .section-title { font-size: 22px; }
  .single-wrap h1, .page-wrap h1 { font-size: 28px; }
  .partido-teams-display { gap: 20px; }
  .partido-team .name { font-size: 16px; }
  .partido-team img, .team-placeholder { width: 56px; height: 56px; }
  .score-big { font-size: 36px; }
  .linked-article-card { flex-direction: column; }
  .linked-article-thumb { width: 100%; min-height: 160px; }
  .related-matches { grid-template-columns: 1fr; }
  .stat-val { width: 40px; font-size: 12px; }
  .search-form-inline { flex-direction: column; }
  .page-404 .error-code { font-size: 80px; }
}