:root {
  --ink: #0b1424;
  --ink-soft: #24354d;
  --paper: #f5f7fb;
  --surface: #ffffff;
  --line: #dce4ef;
  --muted: #708096;
  --blue: #1565d8;
  --blue-deep: #0b3c88;
  --cyan: #39c6db;
  --lime: #c9f26b;
  --red: #e84c5b;
  --shadow: 0 18px 50px rgba(21, 49, 88, .09);
  --radius: 20px;
}
[data-theme="dark"] {
  --ink: #f3f7ff;
  --ink-soft: #d3def0;
  --paper: #0c1422;
  --surface: #121e30;
  --line: #22344d;
  --muted: #9aabc2;
  --blue: #63a0ff;
  --blue-deep: #0a2d62;
  --shadow: 0 18px 50px rgba(0, 0, 0, .28);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { min-width: 320px; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; }
a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.skip-link { position: fixed; top: -100px; z-index: 1000; padding: 10px 16px; background: var(--lime); color: var(--ink); font-weight: 800; }
.skip-link:focus { top: 10px; left: 10px; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(8,17,31,.96); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.12); backdrop-filter: blur(16px); }
.header-container { width: min(1280px, 100%); margin: auto; display: flex; align-items: center; gap: 28px; padding: 14px 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-size: 1.35rem; font-weight: 900; letter-spacing: -.05em; white-space: nowrap; }
.brand-accent { color: var(--lime); }
.logo-img { width: 34px; height: 34px; }
.nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-link { padding: 8px 12px; border-radius: 999px; color: #b9c5d8; font-size: .86rem; font-weight: 800; text-decoration: none; white-space: nowrap; transition: background .18s ease, color .18s ease; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.1); color: #fff; }
.controls { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.icon-btn, .language-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; background: rgba(255,255,255,.08); color: #fff; cursor: pointer; text-decoration: none; font-size: .8rem; font-weight: 900; transition: transform .16s ease, background .16s ease; }
.language-btn { border-radius: 10px; width: 42px; }
.icon-btn:hover, .language-btn:hover { background: rgba(255,255,255,.16); transform: translateY(-1px); }
.page-shell { width: min(1280px, 100%); margin: auto; padding: 30px 28px 70px; }
.hero-panel { position: relative; display: flex; min-height: 330px; align-items: center; justify-content: space-between; overflow: hidden; border-radius: 28px; padding: 52px clamp(28px, 6vw, 86px); background: linear-gradient(120deg, #071427 0%, #0b315e 65%, #12618a 100%); color: #fff; box-shadow: 0 26px 60px rgba(7, 30, 67, .24); }
.hero-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .24; background-image: radial-gradient(circle at 80% 20%, var(--cyan) 0 1px, transparent 1px), radial-gradient(circle at 40% 80%, #fff 0 1px, transparent 1px); background-size: 38px 38px, 58px 58px; }
.hero-copy { position: relative; z-index: 1; max-width: 650px; }
.eyebrow, .section-kicker, .card-label { display: block; color: var(--lime); font-size: .68rem; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
.hero-copy h1 { margin: 12px 0 12px; font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: .98; letter-spacing: -.065em; }
.hero-copy h1 em { color: var(--cyan); font-style: normal; }
.hero-copy p { max-width: 560px; color: #c8d7eb; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 28px; }
.primary-btn, .outline-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; border: 0; border-radius: 11px; padding: 12px 18px; background: var(--lime); color: #132032; font-size: .86rem; font-weight: 900; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.primary-btn:hover, .outline-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(201,242,107,.18); }
.text-btn { color: #d8e6fa; font-size: .84rem; font-weight: 800; text-decoration: none; }
.text-btn:hover, .section-link:hover, .small-link:hover { color: var(--lime); }
.hero-mark { position: relative; z-index: 1; display: grid; place-items: center; width: 190px; height: 190px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transform: rotate(-11deg); color: var(--lime); }
.hero-mark span { font-size: 5rem; font-weight: 950; letter-spacing: -.12em; line-height: .8; }
.hero-mark small { position: absolute; bottom: 26px; color: #fff; font-size: .52rem; font-weight: 900; letter-spacing: .22em; line-height: 1.25; text-align: center; }
.status-strip { display: flex; align-items: center; gap: 10px; margin: 16px 0 28px; padding: 11px 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--muted); font-size: .76rem; }
.status-strip strong { color: var(--ink); }
.status-strip time { margin-inline-start: auto; color: var(--ink-soft); font-weight: 800; white-space: nowrap; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px rgba(201,242,107,.18); }
.search-container { margin-bottom: 30px; }
.search-container label { display: block; margin-bottom: 8px; color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.search-field { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: var(--surface); box-shadow: var(--shadow); }
.search-field span { color: var(--blue); font-size: 1.5rem; line-height: 1; }
.search-input, .search-field input { width: 100%; border: 0; outline: 0; padding: 15px 0; background: transparent; color: var(--ink); }
.search-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21,101,216,.12); }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; align-items: start; }
.main-column { min-width: 0; }
.content-section { scroll-margin-top: 90px; margin-bottom: 54px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 17px; }
.section-kicker { margin-bottom: 5px; color: var(--blue); font-size: .64rem; }
.section-heading h2 { color: var(--ink); font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.05; letter-spacing: -.045em; }
.section-link, .small-link { color: var(--blue); font-size: .8rem; font-weight: 900; text-decoration: none; white-space: nowrap; }
.matches-list { display: grid; gap: 10px; }
.league-header { display: flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--muted); }
.league-header:first-child { margin-top: 0; }
.league-header h3 { font-size: .71rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.league-header::before { content: ""; width: 5px; height: 18px; border-radius: 6px; background: var(--lime); }
.match-card { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 86px; border: 1px solid var(--line); border-radius: 15px; padding: 14px 16px; background: var(--surface); box-shadow: 0 8px 24px rgba(31,60,95,.05); cursor: pointer; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.match-card:hover { border-color: rgba(21,101,216,.45); box-shadow: var(--shadow); transform: translateY(-2px); }
.live-border { border-inline-start: 4px solid var(--red); }
.match-info-section { display: flex; flex: 1 1 auto; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.team-side { display: flex; flex: 1 1 0; align-items: center; gap: 8px; min-width: 0; overflow: hidden; }
.home-side { justify-content: flex-end; text-align: end; }
.away-side { justify-content: flex-start; text-align: start; }
.team-logo { display: grid; flex: 0 0 32px; place-items: center; width: 32px; height: 32px; font-size: 1.25rem; }
.team-badge { width: 30px; height: 30px; object-fit: contain; }
.modal-badge { width: 54px; height: 54px; object-fit: contain; }
.team-name { display: -webkit-box; min-width: 0; overflow: hidden; color: var(--ink-soft); font-size: .9rem; font-weight: 850; line-height: 1.2; overflow-wrap: anywhere; text-overflow: ellipsis; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.score-display { display: flex; flex: 0 0 clamp(70px, 12vw, 100px); min-width: 70px; flex-direction: column; align-items: center; justify-content: center; }
.score-num { color: var(--ink); font-size: 1.18rem; font-weight: 950; letter-spacing: .08em; }
.match-time { color: var(--ink); font-size: 1rem; font-weight: 950; }
.status-badge { margin-top: 3px; border-radius: 99px; padding: 2px 7px; background: var(--paper); color: var(--muted); font-size: .6rem; font-weight: 950; text-transform: uppercase; }
.live-pulse { color: var(--red); background: rgba(232,76,91,.1); }
.match-actions { flex: 0 0 auto; min-width: 28px; }
.fav-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.28rem; line-height: 1; padding: 4px 0; }
.fav-btn:hover, .fav-btn.active { color: #f3b735; }
.fixture-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.fixture-card { display: grid; grid-template-columns: 64px 1fr; gap: 13px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.fixture-date { color: var(--blue); font-size: .72rem; font-weight: 950; text-align: center; text-transform: uppercase; }
.fixture-date strong { display: block; color: var(--ink); font-size: 1.25rem; line-height: 1; }
.fixture-body { min-width: 0; }
.fixture-league { overflow: hidden; color: var(--muted); font-size: .63rem; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; text-transform: uppercase; }
.fixture-teams { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 6px; color: var(--ink-soft); font-size: .8rem; font-weight: 850; }
.fixture-team { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fixture-home { text-align: start; }
.fixture-away { text-align: end; }
.fixture-time { color: var(--blue); font-size: .72rem; text-align: center; white-space: nowrap; }
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px; }
.news-card { display: flex; flex-direction: column; min-height: 210px; border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: var(--surface); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.news-card .news-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: auto; color: var(--muted); font-size: .65rem; font-weight: 800; }
.news-tag { color: var(--blue); font-weight: 950; text-transform: uppercase; }
.news-card h3 { margin: 24px 0 8px; color: var(--ink); font-size: 1.12rem; line-height: 1.17; letter-spacing: -.03em; }
.news-card p { color: var(--muted); font-size: .78rem; }
.news-arrow { align-self: end; margin-top: 15px; color: var(--blue); font-size: 1.1rem; font-weight: 900; }
.sidebar { display: grid; gap: 14px; position: sticky; top: 88px; }
.sidebar-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--surface); box-shadow: 0 10px 30px rgba(31,60,95,.04); }
.highlight-card { border: 0; background: var(--blue-deep); color: #fff; }
.highlight-card .card-label { color: var(--lime); }
.highlight-card strong { display: block; margin: 22px 0 12px; font-size: 1.8rem; line-height: 1; letter-spacing: -.05em; }
.highlight-card p, .compact-card p { color: var(--muted); font-size: .8rem; }
.highlight-card p { color: #c5d8f1; }
.highlight-card .small-link { display: inline-block; margin-top: 25px; color: var(--lime); }
.card-heading { display: flex; align-items: center; justify-content: space-between; }
.card-icon { color: var(--blue); font-size: 1.7rem; }
.league-summary { display: grid; gap: 11px; margin: 20px 0; }
.league-summary a { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--ink-soft); font-size: .78rem; font-weight: 850; text-decoration: none; }
.league-summary a span { color: var(--muted); font-size: .68rem; }
.outline-btn { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--blue); }
.compact-card h3 { margin: 14px 0 5px; font-size: 1rem; }
.loading, .empty-state { border: 1px dashed var(--line); border-radius: 14px; padding: 30px; color: var(--muted); text-align: center; }
.table-league-title { margin: 28px 0 10px; font-size: 1.2rem; }
.table-container { overflow: hidden; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.standing-table { width: 100%; border-collapse: collapse; }
.standing-table th, .standing-table td { border-bottom: 1px solid var(--line); padding: 11px 10px; font-size: .8rem; text-align: center; }
.standing-team { display: flex; align-items: center; gap: 7px; min-width: 0; max-width: 190px; text-align: start !important; }
.standing-team strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standing-logo { width: 22px; height: 22px; object-fit: contain; flex: 0 0 22px; }
.standing-table th { background: var(--paper); color: var(--muted); font-size: .66rem; text-transform: uppercase; }
.standing-table tr:last-child td { border: 0; }
.highlight-pts { color: var(--blue); }
.form-list { letter-spacing: 2px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 18px; background: rgba(4,12,23,.76); backdrop-filter: blur(8px); }
.modal-card { width: min(600px, 100%); max-height: min(760px, 92vh); overflow: auto; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.modal-header { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 16px 20px; }
.modal-title { color: var(--muted); font-size: .8rem; font-weight: 900; }
.close-btn { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 1.6rem; }
.modal-body { padding: 20px; }
.modal-score-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; border-radius: 16px; padding: 18px; background: var(--paper); }
.modal-team { flex: 1 1 0; min-width: 0; text-align: center; }
.modal-logo { display: grid; place-items: center; min-height: 54px; font-size: 2rem; }
.modal-team h4 { margin-top: 4px; overflow-wrap: anywhere; font-size: .95rem; line-height: 1.2; }
.modal-center { text-align: center; }
.modal-score { font-size: 1.8rem; font-weight: 950; }
.modal-status { display: inline-block; border-radius: 99px; padding: 3px 8px; background: var(--blue); color: #fff; font-size: .65rem; font-weight: 900; }
.modal-tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 15px; }
.tab-btn { flex: 1; border: 0; border-bottom: 2px solid transparent; padding: 10px 5px; background: transparent; color: var(--muted); cursor: pointer; font-size: .8rem; font-weight: 850; }
.tab-btn.active { border-bottom-color: var(--blue); color: var(--blue); }
.tab-panel { display: none; max-height: 270px; overflow-y: auto; }
.tab-panel.active { display: block; }
.timeline-list, .stats-list { display: grid; gap: 11px; }
.timeline-item { display: flex; align-items: center; gap: 10px; }
.time-pin { min-width: 35px; border-radius: 6px; padding: 3px 5px; background: var(--paper); color: var(--blue); font-size: .7rem; font-weight: 900; text-align: center; }
.event-desc { color: var(--ink-soft); font-size: .8rem; font-weight: 700; }
.stat-row { display: flex; align-items: center; justify-content: space-between; color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
.stat-label { color: var(--muted); }
.stat-bar-container { display: flex; height: 6px; overflow: hidden; border-radius: 99px; background: var(--line); }
.stat-bar { height: 100%; }
.home-bar { background: var(--blue); }
.away-bar { margin-inline-start: auto; background: var(--muted); }
.lineup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.lineup-column h5 { margin-bottom: 8px; color: var(--blue); }
.lineup-column ul { list-style: none; color: var(--ink-soft); font-size: .78rem; }
.lineup-column li { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--line); padding: 7px 0; }
.lineup-column li small { color: var(--muted); font-size: .65rem; white-space: nowrap; }
.lineup-column h5 small { display: block; margin-top: 2px; color: var(--muted); font-size: .65rem; font-weight: 700; }
.match-meta-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin: 0 0 18px; }
.match-meta-item { display: flex; align-items: flex-start; gap: 8px; min-height: 76px; border: 1px solid var(--line); border-radius: 12px; padding: 11px; background: var(--surface); }
.match-meta-item > span { font-size: 1.05rem; }
.match-meta-item div { min-width: 0; }
.match-meta-item small { display: block; color: var(--muted); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.match-meta-item strong { display: block; margin-top: 3px; color: var(--ink-soft); font-size: .74rem; overflow-wrap: anywhere; }
.match-meta-item a { display: inline-block; margin-top: 4px; color: var(--blue); font-size: .64rem; font-weight: 850; text-decoration: none; }
.stats-team { border-bottom: 1px solid var(--line); padding: 0 0 12px; }
.stats-team + .stats-team { padding-top: 12px; }
.stats-team:last-child { border-bottom: 0; }
.stats-team h5 { margin-bottom: 8px; color: var(--blue); font-size: .78rem; }
.stats-team .stat-row { padding: 4px 0; }
.comparison-list { display: grid; gap: 14px; }
.comparison-row { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.comparison-row:last-child { border-bottom: 0; }
.comparison-values, .comparison-teams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.comparison-values strong:first-child, .comparison-teams small:first-child { text-align: start; }
.comparison-values strong:last-child, .comparison-teams small:last-child { text-align: end; }
.comparison-values span { color: var(--muted); font-size: .68rem; font-weight: 850; text-align: center; }
.comparison-values strong { color: var(--ink); font-size: .85rem; }
.comparison-bars { display: flex; gap: 3px; height: 7px; overflow: hidden; margin: 7px 0 4px; border-radius: 99px; background: var(--line); }
.comparison-bar { display: block; height: 100%; min-width: 2px; }
.home-comparison { background: var(--blue); }
.away-comparison { background: var(--cyan); }
.comparison-teams small { overflow: hidden; color: var(--muted); font-size: .62rem; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.goal-toast { position: fixed; right: 20px; bottom: 20px; z-index: 200; max-width: 340px; border-radius: 14px; padding: 15px; background: var(--blue-deep); color: #fff; box-shadow: 0 18px 45px rgba(0,0,0,.25); }
[dir="rtl"] .goal-toast { right: auto; left: 20px; }
.toast-body { display: grid; gap: 4px; }
.toast-body strong { font-size: .9rem; }
.toast-body span { color: #c6daf3; font-size: .76rem; }
.footer { border-top: 1px solid var(--line); padding: 40px 28px 24px; background: var(--surface); color: var(--muted); }
.footer-inner { width: min(1280px, 100%); margin: auto; display: flex; align-items: center; gap: 25px; }
.footer-brand { color: var(--ink); }
.footer-inner p { font-size: .78rem; }
.footer-links { display: flex; gap: 15px; margin-inline-start: auto; }
.footer-links a { color: var(--blue); font-size: .74rem; font-weight: 800; text-decoration: none; }
.copyright { width: min(1280px, 100%); margin: 24px auto 0; padding-top: 15px; border-top: 1px solid var(--line); font-size: .7rem; text-align: center; }
.article-page { width: min(850px, 100%); margin: auto; }
.article-header { margin-bottom: 28px; }
.article-back { display: inline-block; margin-bottom: 25px; color: var(--blue); font-size: .8rem; font-weight: 900; text-decoration: none; }
.article-header h1 { max-width: 780px; margin: 12px 0; font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; letter-spacing: -.06em; }
.article-dek { color: var(--muted); font-size: 1.05rem; }
.article-meta { display: flex; gap: 15px; color: var(--muted); font-size: .72rem; font-weight: 800; }
.article-fact-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9px; margin: 0 0 28px; }
.article-fact-grid > div { min-height: 70px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); }
.article-fact-grid small { display: block; color: var(--muted); font-size: .62rem; font-weight: 850; text-transform: uppercase; }
.article-fact-grid strong { display: block; margin-top: 5px; color: var(--ink-soft); font-size: .78rem; overflow-wrap: anywhere; }
.article-content { border-top: 1px solid var(--line); padding-top: 28px; }
.article-content p { margin: 0 0 22px; color: var(--ink-soft); font-size: 1.05rem; }
.article-content h2 { margin: 34px 0 12px; color: var(--ink); font-size: 1.5rem; }
.article-note { margin: 28px 0; border-inline-start: 4px solid var(--lime); padding: 16px 20px; background: var(--surface); color: var(--ink-soft); font-weight: 800; }
.article-content ul, .article-content ol { margin: 0 0 24px; padding-inline-start: 24px; color: var(--ink-soft); }
.article-content li { margin: 0 0 11px; font-size: 1rem; }
.article-checklist { display: grid; gap: 7px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 24px; background: var(--surface); }
.matchday-hub-list { list-style: none; padding-inline-start: 18px !important; }
.matchday-hub-list li { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin: 0; padding: 10px 0; border-bottom: 1px solid var(--line); }
.matchday-hub-list li:last-child { border-bottom: 0; }
.matchday-hub-list a { color: var(--ink); font-weight: 850; text-decoration: none; }
.matchday-hub-list a:hover { color: var(--blue); }
.matchday-hub-list span { color: var(--muted); font-size: .8rem; text-align: end; }
.article-links { display: grid; gap: 9px; margin: 0 0 25px; }
.article-links a { display: block; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px; background: var(--surface); color: var(--blue); font-size: .88rem; font-weight: 850; text-decoration: none; }
.article-links a:hover { border-color: var(--blue); }
@media (max-width: 900px) { .header-container { flex-wrap: wrap; padding: 12px 18px; gap: 10px 18px; } .nav { order: 3; width: 100%; } .page-shell { padding: 18px 18px 50px; } .dashboard-grid { grid-template-columns: 1fr; } .sidebar { position: static; grid-template-columns: repeat(3, minmax(0,1fr)); } .sidebar-card { padding: 17px; } .highlight-card strong { font-size: 1.45rem; } }
@media (max-width: 620px) { .hero-panel { min-height: 390px; align-items: flex-start; padding: 34px 24px; } .hero-mark { position: absolute; right: -35px; bottom: -40px; width: 170px; height: 170px; opacity: .55; } [dir="rtl"] .hero-mark { right: auto; left: -35px; } .hero-copy h1 { font-size: 3.2rem; } .hero-copy p { font-size: .92rem; } .status-strip { align-items: flex-start; flex-wrap: wrap; } .status-strip time { width: 100%; margin-inline-start: 18px; } .section-heading { align-items: flex-start; flex-direction: column; } .section-link { align-self: flex-end; margin-top: -8px; } .match-card { padding: 11px 9px; } .team-name { font-size: .75rem; line-height: 1.16; } .score-display { flex-basis: clamp(60px, 18vw, 74px); min-width: 60px; } .team-side { gap: 5px; } .team-logo { flex-basis: 28px; width: 28px; height: 28px; font-size: 1rem; } .match-actions { min-width: 25px; } .fav-btn { font-size: 1.1rem; } .fixture-list, .news-grid { grid-template-columns: 1fr; } .sidebar { grid-template-columns: 1fr; } .footer-inner { align-items: flex-start; flex-direction: column; gap: 12px; } .footer-links { margin-inline-start: 0; } .hide-mobile { display: none !important; } .modal-score-header { padding: 12px 7px; } .article-fact-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } .match-meta-grid { grid-template-columns: 1fr; } .match-meta-item { min-height: auto; } }
@media (max-width: 420px) { .match-card { gap: 5px; padding: 9px 7px; } .match-info-section { gap: 4px; } .team-side { gap: 4px; } .team-name { font-size: .68rem; line-height: 1.14; } .score-display { flex-basis: 54px; min-width: 54px; } .score-num { font-size: 1rem; } .match-time { font-size: .78rem; } .status-badge { max-width: 60px; overflow: hidden; padding-inline: 4px; text-overflow: ellipsis; white-space: nowrap; } .team-logo { flex-basis: 25px; width: 25px; height: 25px; } .team-badge { width: 24px; height: 24px; } .match-actions { min-width: 22px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Permanent match, team and competition pages */
.permanent-page { max-width: 1120px; }
.permanent-hero { margin: 18px 0 22px; padding: 32px; border-radius: 24px; background: linear-gradient(135deg, #101e35 0%, #172c4a 58%, #0b7285 100%); color: #fff; box-shadow: 0 18px 44px rgba(15, 35, 63, .16); }
.permanent-hero.compact { padding: 28px 32px; }
.permanent-kicker { color: #a7e56f; font-size: .76rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.permanent-hero h1 { max-width: 820px; margin: 9px 0 10px; color: #fff; font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.08; }
.permanent-hero p { max-width: 760px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.75; }
.match-scoreboard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(110px, .42fr) minmax(0, 1fr); align-items: center; gap: 20px; margin-top: 30px; padding: 20px; border: 1px solid rgba(255,255,255,.16); border-radius: 20px; background: rgba(255,255,255,.08); }
.match-team-panel { min-width: 0; display: grid; justify-items: center; gap: 10px; color: #fff; text-align: center; text-decoration: none; }
.match-team-panel strong { max-width: 100%; overflow-wrap: anywhere; font-size: clamp(1rem, 2vw, 1.3rem); line-height: 1.25; }
.match-team-panel:hover strong { color: #b7ef7b; }
.match-crest { display: grid; width: 64px; height: 64px; place-items: center; }
.match-crest img { width: 60px; height: 60px; object-fit: contain; }
.match-crest-fallback { font-size: 2.25rem; }
.match-score-column { min-width: 0; display: grid; justify-items: center; gap: 4px; text-align: center; }
.match-score-column strong { font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1; color: #fff; }
.match-score-column span { color: #b7ef7b; font-size: .8rem; font-weight: 900; }
.match-score-column small { color: rgba(255,255,255,.68); min-height: 1.1em; }
.permanent-fact-grid, .permanent-meta-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.permanent-fact-grid > div, .permanent-meta-card { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.permanent-fact-grid small, .permanent-meta-card small { display: block; color: var(--muted); font-size: .75rem; font-weight: 800; }
.permanent-fact-grid strong, .permanent-meta-card strong { display: block; margin-top: 5px; color: var(--ink); overflow-wrap: anywhere; line-height: 1.35; }
.permanent-meta-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.permanent-meta-card { display: grid; grid-template-columns: auto 1fr; column-gap: 11px; align-items: center; }
.permanent-meta-card > span { grid-row: span 2; font-size: 1.35rem; }
.permanent-meta-card a { grid-column: 2; margin-top: 8px; color: var(--blue); font-size: .8rem; font-weight: 850; text-decoration: none; }
.permanent-section { margin: 30px 0; }
.permanent-section .section-heading { margin-bottom: 13px; }
.permanent-section h2 { color: var(--ink); }
.permanent-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 14px; color: var(--muted); background: var(--surface); }
.permanent-event-list { display: grid; gap: 9px; }
.permanent-event-item { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; align-items: center; padding: 13px 16px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.permanent-event-item strong { color: var(--blue); font-variant-numeric: tabular-nums; }
.permanent-event-item span { color: var(--ink-soft); overflow-wrap: anywhere; }
.permanent-stat-list { display: grid; gap: 16px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.permanent-stat-row { display: grid; gap: 7px; }
.permanent-stat-values, .permanent-stat-teams { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; }
.permanent-stat-values strong:first-child, .permanent-stat-teams small:first-child { text-align: start; }
.permanent-stat-values strong:last-child, .permanent-stat-teams small:last-child { text-align: end; }
.permanent-stat-values span { color: var(--muted); font-size: .78rem; font-weight: 850; text-align: center; }
.permanent-stat-bars { display: flex; height: 8px; overflow: hidden; border-radius: 999px; background: #edf2f7; }
.permanent-stat-bars span:first-child { background: var(--blue); }
.permanent-stat-bars span:last-child { background: var(--lime); }
.permanent-stat-teams { color: var(--muted); font-size: .74rem; }
.permanent-lineup-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.permanent-lineup-column { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.permanent-lineup-column h3 { display: flex; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: var(--ink); overflow-wrap: anywhere; }
.permanent-lineup-column h3 small { color: var(--blue); font-size: .75rem; }
.permanent-lineup-column ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.permanent-lineup-column li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.permanent-lineup-column li:last-child { border-bottom: 0; }
.permanent-lineup-column li span { color: var(--ink-soft); overflow-wrap: anywhere; }
.permanent-lineup-column li small { color: var(--muted); white-space: nowrap; }
.permanent-link-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.permanent-link-grid a { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--blue); background: var(--surface); font-weight: 850; line-height: 1.35; overflow-wrap: anywhere; text-decoration: none; }
.permanent-link-grid a:hover { border-color: var(--blue); transform: translateY(-1px); }
.permanent-source-note { padding: 15px 18px; border-inline-start: 4px solid var(--lime); color: var(--muted); background: var(--surface); line-height: 1.65; }
.team-title-row { display: flex; align-items: center; gap: 15px; margin-top: 22px; }
.team-page-crest { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 16px; background: rgba(255,255,255,.12); font-size: 2rem; }
.team-title-row strong, .team-title-row small { display: block; }
.team-title-row strong { font-size: 1.25rem; }
.team-title-row small { margin-top: 4px; color: rgba(255,255,255,.7); }
.permanent-fixture-list { display: grid; gap: 9px; }
.permanent-fixture-row { display: grid; grid-template-columns: minmax(130px, .5fr) minmax(0, 1.4fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; color: var(--ink); background: var(--surface); text-decoration: none; }
.permanent-fixture-row:hover { border-color: var(--blue); }
.permanent-fixture-row span { color: var(--muted); font-size: .8rem; }
.permanent-fixture-row strong { min-width: 0; overflow-wrap: anywhere; }
.permanent-fixture-row em { color: var(--blue); font-size: .78rem; font-style: normal; font-weight: 850; }
.permanent-table { overflow-x: auto; }
.permanent-table table { min-width: 560px; }
.is-hidden { display: none !important; }
@media (max-width: 720px) {
  .permanent-hero, .permanent-hero.compact { padding: 24px 18px; border-radius: 18px; }
  .match-scoreboard { grid-template-columns: minmax(0, 1fr) 82px minmax(0, 1fr); gap: 8px; padding: 14px 8px; }
  .match-crest, .match-crest img { width: 48px; height: 48px; }
  .permanent-fact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .permanent-meta-grid, .permanent-lineup-grid { grid-template-columns: 1fr; }
  .permanent-link-grid { grid-template-columns: 1fr; }
  .permanent-fixture-row { grid-template-columns: 1fr; gap: 5px; }
  .permanent-fixture-row em { justify-self: start; }
}
@media (max-width: 380px) {
  .match-scoreboard { grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); }
  .match-team-panel strong { font-size: .82rem; }
  .match-score-column strong { font-size: 1.55rem; }
}

.modal-permanent-action { margin: 0 0 18px; }
.modal-permanent-action .primary-btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }

.fixture-league { display: inline-block; color: var(--blue); text-decoration: none; }
.fixture-league:hover, .fixture-team:hover { text-decoration: underline; }
.fixture-team { color: var(--ink); text-decoration: none; }
.fixture-time { display: grid; justify-items: center; gap: 3px; color: var(--blue); text-decoration: none; white-space: nowrap; }
.fixture-time small { color: var(--muted); font-size: .68rem; font-weight: 800; }
.fixture-time:hover { color: var(--ink); }
@media (max-width: 620px) { .fixture-time { justify-items: start; } }

/* Discovery search and player pages */
.discovery-page { max-width: 1120px; }
.discovery-hero { margin: 18px 0 28px; padding: 34px; border-radius: 24px; background: linear-gradient(135deg, #101e35 0%, #172c4a 58%, #0b7285 100%); color: #fff; box-shadow: 0 18px 44px rgba(15, 35, 63, .16); }
.discovery-hero h1 { max-width: 820px; margin: 9px 0 10px; color: #fff; font-size: clamp(1.9rem, 4vw, 3.2rem); line-height: 1.08; }
.discovery-hero p { max-width: 780px; margin: 0; color: rgba(255,255,255,.78); line-height: 1.75; }
.global-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 760px; margin-top: 24px; }
.global-search-form input { min-width: 0; padding: 14px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 12px; color: #fff; background: rgba(255,255,255,.12); font: inherit; outline: none; }
.global-search-form input::placeholder { color: rgba(255,255,255,.62); }
.global-search-form input:focus { border-color: #b7ef7b; box-shadow: 0 0 0 3px rgba(183,239,123,.16); }
.discovery-results, .discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.discovery-card { min-width: 0; position: relative; display: block; padding: 19px; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: var(--surface); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.discovery-card:hover { border-color: var(--blue); box-shadow: 0 10px 24px rgba(15,35,63,.08); transform: translateY(-2px); }
.discovery-card h3 { margin: 12px 0 8px; color: var(--ink); font-size: 1.05rem; line-height: 1.35; overflow-wrap: anywhere; }
.discovery-card p { margin: 0; color: var(--muted); line-height: 1.65; overflow-wrap: anywhere; }
.discovery-card .news-arrow { position: absolute; inset-inline-end: 18px; bottom: 16px; color: var(--blue); font-weight: 900; }
.discovery-card .news-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: .74rem; }
.player-card { min-height: 160px; }
.player-identity { display: flex; align-items: center; gap: 12px; }
.player-identity strong { color: inherit; font-size: 1.2rem; }
.player-hero .player-identity { margin-top: 23px; }
.player-analysis-card { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.player-analysis-block { padding: 0 0 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.player-analysis-block:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.player-analysis-block h2 { margin-bottom: 8px; color: var(--ink); font-size: 1.35rem; }
.player-analysis-block p { margin: 0; color: var(--ink-soft); line-height: 1.8; }
.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; }
@media (max-width: 800px) { .discovery-results, .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .discovery-hero { padding: 24px 18px; border-radius: 18px; } .global-search-form { grid-template-columns: 1fr; } .discovery-results, .discovery-grid { grid-template-columns: 1fr; } .player-analysis-card { padding: 18px; } }

/* Player performance dashboard */
.performance-panel { margin: 28px 0; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: linear-gradient(180deg, var(--surface) 0%, color-mix(in srgb, var(--surface) 88%, var(--blue) 12%) 100%); box-shadow: 0 12px 30px rgba(15,35,63,.07); }
.performance-panel .section-heading { margin-bottom: 8px; }
.performance-intro { max-width: 780px; margin: 0 0 16px; color: var(--muted); line-height: 1.7; }
.performance-status { display: inline-flex; min-height: 28px; align-items: center; padding: 6px 10px; border-radius: 999px; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, var(--surface)); font-size: .82rem; }
.performance-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 18px 0; }
.performance-kpi { min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.performance-kpi span { display: block; min-height: 2.4em; color: var(--muted); font-size: .78rem; line-height: 1.25; }
.performance-kpi strong { display: block; margin-top: 7px; color: var(--ink); font-size: 1.45rem; }
.performance-visuals { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: 14px; }
.performance-chart-card, .performance-radar-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.performance-chart-card h3, .performance-radar-card h3 { margin: 0 0 18px; color: var(--ink); font-size: 1rem; }
.performance-bar-row { margin: 0 0 16px; }
.performance-bar-row:last-child { margin-bottom: 0; }
.performance-bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; color: var(--ink-soft); font-size: .82rem; }
.performance-bar-label span { overflow-wrap: anywhere; }
.performance-bar-label strong { flex: 0 0 auto; color: var(--ink); }
.performance-bar-track { height: 9px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--blue) 12%, var(--surface)); }
.performance-bar-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), #28b9a4); transition: width .35s ease-out; }
.performance-radar { display: grid; place-items: center; min-height: 238px; color: var(--muted); }
.performance-radar svg { width: min(100%, 240px); height: auto; overflow: visible; }
.performance-radar-grid { fill: color-mix(in srgb, var(--blue) 5%, transparent); stroke: color-mix(in srgb, var(--blue) 25%, var(--line)); stroke-width: 1.4; }
.performance-radar-shape { fill: color-mix(in srgb, #28b9a4 40%, transparent); stroke: #159c91; stroke-width: 2; }
.performance-radar-label { fill: var(--muted); font-size: 9px; }
.performance-radar small { display: block; margin-top: -6px; color: var(--muted); font-size: .72rem; }
.performance-source { margin: 18px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.performance-source a { color: var(--blue); font-weight: 700; }
@media (max-width: 700px) { .performance-panel { padding: 18px; } .performance-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .performance-visuals { grid-template-columns: 1fr; } }
@media (max-width: 390px) { .performance-kpis { gap: 8px; } .performance-kpi { padding: 11px; } .performance-kpi strong { font-size: 1.2rem; } }

/* Player comparison */
.compare-hero { background: linear-gradient(135deg, #102f55 0%, #176b75 100%); color: #fff; }
.compare-hero h1, .compare-hero p, .compare-hero .section-kicker { color: inherit; }
.compare-panel { margin-top: 20px; }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; align-items: end; gap: 12px; margin-bottom: 18px; }
.compare-controls label { display: grid; gap: 7px; color: var(--muted); font-size: .78rem; font-weight: 700; }
.compare-controls select { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.compare-vs { align-self: center; margin-top: 20px; color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .12em; }
.compare-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.compare-player-card { min-width: 0; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare-player-card:first-child { border-top: 3px solid var(--blue); }
.compare-player-card:last-child { border-top: 3px solid #e58d4f; }
.compare-player-name { color: var(--ink); font-size: 1.15rem; font-weight: 800; }
.compare-player-team { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.compare-player-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.compare-player-kpis div { min-width: 0; padding: 9px; border-radius: 10px; background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.compare-player-kpis span { display: block; min-height: 2.4em; color: var(--muted); font-size: .68rem; line-height: 1.2; }
.compare-player-kpis strong { display: block; margin-top: 4px; color: var(--ink); font-size: 1.05rem; }
.compare-bar-row { margin: 0 0 18px; }
.compare-bar-row:last-child { margin-bottom: 0; }
.compare-bar-label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; color: var(--ink-soft); font-size: .82rem; }
.compare-bar-label strong { color: var(--ink); }
.compare-bar-label em { color: var(--muted); font-style: normal; }
.compare-bar-track { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; height: 9px; overflow: hidden; border-radius: 999px; background: color-mix(in srgb, var(--blue) 9%, var(--surface)); }
.compare-bar-track span { display: block; min-width: 8%; height: 100%; border-radius: 999px; transition: width .35s ease-out; }
.compare-bar-left { justify-self: end; background: linear-gradient(90deg, #28b9a4, var(--blue)); }
.compare-bar-right { background: linear-gradient(90deg, #e58d4f, #e05f79); }
.compare-radar-left { fill: color-mix(in srgb, var(--blue) 25%, transparent); stroke: var(--blue); stroke-width: 2; }
.compare-radar-right { fill: color-mix(in srgb, #e58d4f 23%, transparent); stroke: #e58d4f; stroke-width: 2; }
.compare-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2px; color: var(--muted); font-size: .72rem; }
.compare-legend span { display: inline-flex; align-items: center; gap: 5px; }
.compare-dot { width: 8px; height: 8px; border-radius: 50%; }
.compare-dot-left { background: var(--blue); }
.compare-dot-right { background: #e58d4f; }
.compare-disclaimer { padding-top: 12px; border-top: 1px solid var(--line); }
@media (max-width: 700px) { .compare-controls { grid-template-columns: 1fr; align-items: stretch; } .compare-vs { display: none; } .compare-controls .primary-btn { width: 100%; } .compare-player-grid { grid-template-columns: 1fr; } .compare-player-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 390px) { .compare-panel { padding: 14px; } .compare-player-card { padding: 14px; } .compare-player-kpis { gap: 6px; } }
