
:root {
  --bg: #ececec;
  --panel: #ffffff;
  --panel-soft: #f5f7fa;
  --line: #d8dce3;
  --line-dark: #c8ced8;
  --text: #172235;
  --muted: #5e6a79;
  --header: #082b57;
  --header-deep: #041d3d;
  --accent: #ff1f57;
  --accent-soft: #ffe6ee;
  --yellow: #ffd341;
  --green: #0f9d58;
  --red: #d93025;
  --shadow: 0 10px 28px rgba(17, 34, 68, .08);
  --radius: 10px;
  --container: 1240px;
  --font: Inter, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.55;
  min-width: 320px;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 18px; }
.skip-link {
  position: absolute; left: -999px; top: -999px; background: #fff; color: #000; padding: 10px 14px; z-index: 9999;
}
.skip-link:focus { left: 12px; top: 12px; }
.site-header {
  background: linear-gradient(180deg, var(--header), var(--header-deep));
  color: #fff;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 4px 20px rgba(0,0,0,.14);
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 16px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 800; letter-spacing: .02em;
}
.brand-mark {
  width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, #ffffff 10%, #7fa5ff 10% 30%, #ff2858 30% 55%, #ffffff 55%);
  clip-path: polygon(50% 0%, 84% 16%, 100% 50%, 84% 84%, 50% 100%, 16% 84%, 0% 50%, 16% 16%);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.18);
}
.brand-text { display: flex; align-items: baseline; gap: 0; }
.brand-text strong { font-size: 1.6rem; font-weight: 800; letter-spacing: .03em; color: #fff; }
.brand-text span { color: var(--accent); font-weight: 700; }
.header-tools { display: flex; align-items: center; gap: 10px; }
.tool-btn, .lang-switch a {
  min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06); color: #fff; padding: 0 14px; transition: .2s ease;
}
.tool-btn:hover, .lang-switch a:hover { background: rgba(255,255,255,.12); }
.tool-btn svg { width: 18px; height: 18px; }
.lang-switch { display: inline-flex; gap: 8px; }
.lang-switch a.active { background: #fff; color: var(--header); border-color: #fff; font-weight: 700; }
.top-tabs {
  background: #f2f2f2; border-bottom: 1px solid var(--line-dark);
}
.tabs-row {
  display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding: 0 2px;
}
.tabs-row a {
  white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding: 16px 14px 14px; font-size: .93rem; font-weight: 700; letter-spacing: .02em; color: #394a5f;
  border-bottom: 3px solid transparent; text-transform: uppercase;
}
.tabs-row a.active { color: var(--accent); border-color: var(--accent); }
.page-shell { padding: 24px 0 40px; }
.page-grid {
  display: grid; grid-template-columns: 250px minmax(0,1fr); gap: 20px;
}
.sidebar-card, .panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.sidebar-card { padding: 18px; }
.sidebar-card h2, .sidebar-card h3 {
  margin: 0 0 14px; font-size: .88rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
}
.nav-list, .small-list {
  list-style: none; padding: 0; margin: 0;
}
.nav-list li, .small-list li { margin: 0; }
.nav-list a, .small-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: .97rem; color: #22334a;
}
.flag {
  width: 16px; height: 12px; border-radius: 2px; background: linear-gradient(180deg, #fff 0 33%, #d11c1c 33% 66%, #fff 66%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.1);
}
.flag.es { background: linear-gradient(180deg, #b80e18 0 25%, #f6c300 25% 75%, #b80e18 75%); }
.flag.fr { background: linear-gradient(90deg, #1a4ba3 0 33%, #fff 33% 66%, #e33d3d 66%); }
.flag.de { background: linear-gradient(180deg, #111 0 33%, #c6161e 33% 66%, #f5ce33 66%); }
.flag.it { background: linear-gradient(90deg, #148548 0 33%, #fff 33% 66%, #d33a3a 66%); }
.flag.nl { background: linear-gradient(180deg, #be1d2d 0 33%, #fff 33% 66%, #233ea8 66%); }
.flag.pt { background: linear-gradient(90deg, #0b7f3b 0 40%, #d1202f 40%); }
.flag.eu { background: #2240b6; }
.flag.br { background: #1f8f45; }
.hero-banner {
  overflow: hidden; padding: 0;
}
.hero-media {
  position: relative; min-height: 320px; background: #000;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; min-height: 320px;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2,14,33,.82) 0%, rgba(2,14,33,.48) 44%, rgba(2,14,33,.18) 100%);
}
.hero-copy {
  position: absolute; left: 26px; bottom: 26px; width: min(620px, calc(100% - 40px)); color: #fff;
}
.hero-copy h1 {
  margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -.02em;
}
.hero-copy p {
  margin: 0 0 18px; font-size: 1.02rem; color: rgba(255,255,255,.92);
}
.quick-actions {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
}
.quick-actions a {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 8px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.18); font-weight: 700;
}
.quick-actions a.primary { background: var(--accent); border-color: var(--accent); }
.hero-mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 18px;
}
.hero-mini-card {
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.hero-mini-card h2 {
  margin: 0 0 8px; font-size: .95rem; text-transform: uppercase; letter-spacing: .04em;
}
.hero-mini-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.section-panel { padding: 18px; margin-top: 18px; }
.section-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.section-head h2, .section-head h3 { margin: 0; font-size: 1.3rem; }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 760px; }
.text-note { color: var(--muted); font-size: .95rem; margin-bottom: 14px; }
.filter-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-pills button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; height: 36px; padding: 0 14px; font-weight: 700; color: #394a5f; cursor: pointer;
}
.filter-pills button.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.matches-table { border-top: 1px solid var(--line); }
.league-block { border-bottom: 1px solid var(--line); }
.league-title {
  display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap;
  background: #f3f6fb; padding: 12px 14px; font-weight: 700; color: #20304a; font-size: .98rem;
}
.league-title small { color: var(--muted); font-weight: 600; }
.match-row {
  display: grid; grid-template-columns: 84px 1.1fr 1fr 90px; gap: 16px; padding: 12px 14px; align-items: center; background: #fff; border-top: 1px solid var(--line);
}
.match-row:hover { background: #fbfcfe; }
.match-time, .match-status { font-weight: 700; color: #33445c; }
.match-time small, .match-status small { display: block; font-weight: 500; color: var(--muted); }
.match-teams { display: grid; gap: 6px; }
.team-line { display: flex; align-items: center; gap: 10px; }
.team-dot { width: 12px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #24447a, #2eb8ff); }
.match-meta { color: var(--muted); font-size: .94rem; }
.score-box {
  display: inline-flex; align-items: center; justify-content: center; min-width: 70px; height: 34px; border-radius: 8px; background: #f7f8fb; border: 1px solid var(--line); font-weight: 800;
}
.score-box.live { color: var(--green); border-color: rgba(15,157,88,.25); background: rgba(15,157,88,.08); }
.score-box.finished { color: #122033; }
.score-box.scheduled { color: var(--muted); }
.grid-two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.standings-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.standings-tabs button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; min-height: 36px; padding: 0 12px; font-weight: 700; cursor: pointer;
}
.standings-tabs button.active { background: var(--header); color: #fff; border-color: var(--header); }
.standings-table { width: 100%; border-collapse: collapse; }
.standings-table th, .standings-table td { padding: 10px 9px; border-bottom: 1px solid var(--line); font-size: .95rem; text-align: left; }
.standings-table th { color: var(--muted); font-weight: 700; background: #f7f9fc; }
.pos { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 8px; background: #edf2ff; color: #233b76; font-weight: 800; }
.leagues-grid, .info-cards, .faq-grid, .status-grid {
  display: grid; gap: 14px;
}
.leagues-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
.info-cards { grid-template-columns: repeat(3, minmax(0,1fr)); }
.faq-grid { grid-template-columns: 1fr; }
.status-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.info-card, .league-card, .faq-item, .status-card, .article-card {
  background: var(--panel-soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px;
}
.info-card h3, .league-card h3, .faq-item h3, .status-card h3, .article-card h3 { margin: 0 0 8px; font-size: 1rem; }
.info-card p, .league-card p, .faq-item p, .status-card p, .article-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.article-strip {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
}
.article-card img { border-radius: 8px; margin-bottom: 12px; border: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; color: var(--muted); font-size: .9rem; }
.cta-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border-radius: 8px; background: var(--header); color: #fff; font-weight: 700; margin-top: 14px;
}
.subtle-link { color: var(--header); font-weight: 700; }
.last-updated { color: var(--muted); font-size: .9rem; }
.notice-box {
  background: #edf5ff; border: 1px solid #cfe0ff; border-radius: 10px; padding: 14px 16px; color: #2a4365; font-size: .95rem; margin-bottom: 14px;
}
.footer {
  margin-top: 34px; background: #061a36; color: rgba(255,255,255,.92); padding: 34px 0 26px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 18px; }
.footer h2, .footer h3 { margin: 0 0 10px; font-size: 1rem; }
.footer p, .footer li, .footer a { color: rgba(255,255,255,.82); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-bottom { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: .92rem; color: rgba(255,255,255,.66); }
.breadcrumbs {
  display: flex; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: .94rem; margin-bottom: 14px;
}
.breadcrumbs a { color: var(--muted); }
.page-intro { margin-bottom: 18px; }
.page-intro h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.page-intro p { margin: 0; color: var(--muted); max-width: 820px; }
.sticky-side { position: sticky; top: 104px; }
.mobile-top-actions { display: none; }
@media (max-width: 1100px) {
  .page-grid, .grid-two, .article-strip, .footer-grid { grid-template-columns: 1fr; }
  .sticky-side { position: static; }
}
@media (max-width: 860px) {
  .sidebar { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  .mobile-top-actions { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
  .mobile-top-actions a {
    display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-weight: 700;
  }
  .match-row { grid-template-columns: 72px 1.2fr .9fr 82px; gap: 10px; }
  .hero-mini-grid, .info-cards, .leagues-grid, .status-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .header-bar { min-height: 70px; }
  .brand-text strong { font-size: 1.28rem; }
  .tool-btn.login-btn { display: none; }
  .tabs-row a { padding: 14px 10px 12px; font-size: .83rem; }
  .hero-copy { left: 18px; right: 18px; width: auto; }
  .hero-copy h1 { font-size: 1.85rem; }
  .match-row {
    grid-template-columns: 1fr; align-items: flex-start;
  }
  .section-panel { padding: 16px; }
}
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.nav-list a.active { color: var(--accent); font-weight: 800; }
.nav-list a.active .flag { outline: 2px solid rgba(255,31,87,.35); outline-offset: 2px; }

/* Vertical layout for compact league standings to prevent table overlap */
.standings-vertical {
  grid-template-columns: 1fr !important;
}
.standings-vertical .info-card {
  overflow-x: auto;
  width: 100%;
}
.standings-vertical .standings-table {
  width: 100%;
  min-width: 620px;
}
@media (max-width: 760px) {
  .standings-vertical .standings-table {
    min-width: 560px;
  }
}
