:root {
  --accent: #ff6a00;
  --ink: #1a1a1a;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --bg: #f0f0f0;
  --card: #fff;
  --live: #e10600;
  --header: #111;
  --radius: 8px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.4;
}
a { color: inherit; }
img { max-width: 100%; }
button, input { font: inherit; }
.wrap { width: min(1240px, calc(100% - 24px)); margin: 0 auto; }

.top { position: relative; z-index: 20; }
.dark-bar { background: var(--header); color: #fff; }
.dark-row { display: flex; align-items: stretch; gap: 8px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; margin-right: 12px; }
.logo-mark { width: 36px; height: 36px; display: block; }
.logo-name { font-weight: 800; letter-spacing: .04em; font-size: 22px; color: #ff6a00; }
.dark-nav { display: flex; align-items: stretch; gap: 2px; }
.dark-nav a {
  display: inline-flex; align-items: center; gap: 8px;
  color: #d7d7d7; text-decoration: none; font-weight: 800;
  font-size: 13px; letter-spacing: .06em; text-transform: uppercase;
  padding: 0 16px; border-bottom: 3px solid transparent;
}
.dark-nav a svg { width: 16px; height: 16px; }
.dark-nav a.is-on { color: #fff; border-bottom-color: var(--accent); }
.top-tools { margin-left: auto; display: flex; align-items: center; position: relative; }
.icon-btn {
  width: 36px; height: 36px; border: 0; border-radius: 8px;
  background: #2a2a2a; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.search-pop {
  position: absolute; right: 0; top: 52px; background: #fff; border-radius: 8px;
  box-shadow: 0 10px 28px rgba(0,0,0,.2); padding: 8px; z-index: 30;
}
.search-pop input, .search-page input {
  border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 240px; outline: none;
}
.search-pop input:focus, .search-page input:focus { border-color: var(--accent); }

.sport-bar { background: #fff; border-bottom: 1px solid var(--line); }
.sport-row { display: flex; align-items: stretch; }
.sport-scroll { display: flex; flex: 1; min-width: 0; overflow-x: auto; }
.sport-scroll a, .sport-more-btn {
  flex: 0 0 auto; text-decoration: none; color: #444; font-weight: 700;
  font-size: 11px; letter-spacing: .01em; text-transform: uppercase;
  padding: 8px 8px 6px; border: 0; border-bottom: 2px solid transparent;
  background: transparent; white-space: nowrap; cursor: pointer;
}
.sport-scroll a.is-on, .sport-more.is-on .sport-more-btn { color: #111; border-bottom-color: var(--accent); }
.sport-scroll a:hover, .sport-more-btn:hover { color: #111; }
.sport-more { position: relative; flex: 0 0 auto; }
.sport-more-btn { display: inline-flex; align-items: center; gap: 3px; height: 100%; }
.sport-more-btn svg { width: 12px; height: 12px; }
.sport-more .menu {
  display: none; position: absolute; top: calc(100% - 1px); right: 0; z-index: 40;
  min-width: 200px; max-height: 320px; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 24px rgba(0,0,0,.12); padding: 6px;
}
.sport-more.open .menu, .sport-more:hover .menu { display: block; }
.sport-more .menu a { display: block; padding: 7px 10px; border-radius: 6px; text-decoration: none; color: #222; font-size: 13px; font-weight: 600; text-transform: none; letter-spacing: 0; }
.sport-more .menu a.is-on, .sport-more .menu a:hover { background: #fff4ec; color: #111; }

.page { padding: 16px 0 40px; }
.pitch { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; }
.comp-side {
  background: #fff; border-radius: var(--radius); border: 1px solid var(--line);
  position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow: auto; padding: 8px 0 12px;
}
.comp-label, .comp-sport {
  margin: 0; padding: 10px 14px 6px; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase; color: #9a9a9a;
}
.comp {
  display: flex; align-items: center; gap: 8px; padding: 7px 14px;
  text-decoration: none; color: #333; font-weight: 600; font-size: 13px;
}
.comp span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comp:hover { background: #fafafa; }
.comp.is-on { background: #fff4ec; color: #111; box-shadow: inset 3px 0 0 var(--accent); }
.main-col { min-width: 0; }

.page-head h1, .block-title, .leagues-card h2, .article h1 {
  margin: 0 0 8px; font-size: 22px; letter-spacing: -.02em;
}
.match-sheet h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.25; letter-spacing: -.02em; }
.match-sheet h2 { margin: 22px 0 8px; font-size: 18px; }
.match-sheet p, .sheet-prose p { line-height: 1.6; margin: 0 0 12px; }
.match-sheet .lead { font-size: 16px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 8px; }
.facts div { background: #fafafa; border-radius: 8px; padding: 8px 10px; }
.facts dt { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 700; }
.faq details { border-top: 1px solid var(--line); padding: 8px 0; }
.faq summary { font-weight: 800; cursor: pointer; }
.faq p { margin: 8px 0 0; }
.related a { display: flex; justify-content: space-between; gap: 12px; text-decoration: none; padding: 8px 0; border-top: 1px solid #f3f3f3; font-weight: 700; }
.related a:hover { color: var(--accent); }
.page-head { margin-bottom: 8px; }
.page-head p, .muted { color: var(--muted); margin: 0 0 12px; }
.page-head .flag, .league-h .ff { margin-right: 4px; }

.board-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.state-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.state-filters button, .tab {
  border: 0; background: #fff; color: #555; border-radius: 999px; padding: 7px 12px;
  font-weight: 800; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; cursor: pointer;
  text-decoration: none;
}
.state-filters button.is-on, .tab.is-on { background: var(--accent); color: #fff; }
.date-nav { display: inline-flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px; }
.date-nav a, .date-nav span { min-width: 32px; text-align: center; text-decoration: none; font-weight: 800; }
.date-nav a { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; }
.date-nav a:hover { background: #f4f4f4; }
.tabs { display: flex; gap: 8px; overflow: auto; margin: 0 0 14px; }

.card, .league, .news-card, .promo {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.league { margin-bottom: 10px; overflow: hidden; }
.league-h {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px;
  text-decoration: none; font-weight: 800; background: #fafafa; border-bottom: 1px solid var(--line);
}
.league-h .go { margin-left: auto; color: #c8c8c8; }
.match {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto 16px;
  column-gap: 10px; row-gap: 6px; align-items: center;
  padding: 10px 14px; border-top: 1px solid #f3f3f3; text-decoration: none; color: inherit;
}
.league .match:first-of-type { border-top: 0; }
.match:hover { background: #fffaf6; }
.when { font-weight: 800; color: #9a9a9a; font-size: 13px; }
.when.is-live { color: var(--live); }
.teams { display: flex; flex-direction: column; gap: 3px; font-weight: 700; min-width: 0; }
.team-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-line .name, .teams .name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm { width: 18px; height: 18px; object-fit: contain; flex: 0 0 auto; }
.tm-ph { display: inline-grid; place-items: center; border-radius: 50%; background: #f3f3f3; color: #888; font-size: 10px; font-weight: 800; }
.sheet-teams { display: flex; flex-direction: column; gap: 8px; }
.preds .event a { display: inline-flex; align-items: center; gap: 6px; }
.preds .vs { color: #bbb; }
.score { display: flex; flex-direction: column; align-items: flex-end; font-weight: 800; min-width: 16px; }
.match > .go { color: #ccc; font-size: 18px; }
.channels { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 6px 12px; }
.ch { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; color: #1a8f45; }
.ch svg { width: 14px; height: 14px; }
.ch.dazn { color: var(--live); }
.sport-block { display: flex; align-items: baseline; justify-content: space-between; margin: 16px 2px 8px; }
.sport-block h2 { margin: 0; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; }
.sport-block a { text-decoration: none; }
.sport-block .more { color: var(--accent); font-weight: 800; font-size: 12px; }

.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; text-decoration: none; border: 0;
  border-radius: 8px; padding: 8px 16px; font-weight: 800; cursor: pointer;
}
.text-link { margin-left: 12px; font-weight: 800; color: var(--accent); }
.news-card { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 8px; text-decoration: none; align-items: center; margin-bottom: 8px; }
.news-card img, .news-card .ph { width: 96px; height: 72px; object-fit: cover; border-radius: 6px; background: #eee; }
.news-card .ph { display: grid; place-items: center; font-weight: 800; color: var(--accent); }
.news-card strong { display: block; font-size: 14px; line-height: 1.3; margin-bottom: 4px; }
.news-card em { color: var(--muted); font-style: normal; font-size: 12px; }
.news-list { display: flex; flex-direction: column; gap: 8px; }
.leagues-card { padding: 8px 18px 16px; margin-bottom: 14px; }
.league-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.league-list { list-style: none; margin: 0; padding: 0; }
.league-list a { display: block; padding: 6px 0; text-decoration: none; }
.league-list a:hover { color: var(--accent); }
.empty { padding: 18px; }
.match-sheet, .article { padding: 18px 20px 22px; }
.kicker { color: var(--muted); font-weight: 700; margin: 0 0 8px; }
.kick { font-weight: 700; }
.big-score { font-size: 32px; font-weight: 800; margin: 8px 0 16px; }
.big-score small { font-size: 16px; margin-left: 8px; color: var(--live); }
.channel-list { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.article-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 8px; margin: 8px 0 14px; }
.lead { font-size: 17px; }
.crumb { font-weight: 700; margin-bottom: 10px; }
.crumb a { text-decoration: none; }

.pred-wrap { overflow-x: auto; }
.preds { width: 100%; border-collapse: collapse; min-width: 640px; }
.preds th { text-align: left; font-size: 12px; color: var(--muted); padding: 12px 10px; border-bottom: 1px solid var(--line); }
.preds td { padding: 10px; border-bottom: 1px solid #f3f3f3; vertical-align: middle; }
.preds .time { color: var(--muted); font-weight: 700; white-space: nowrap; }
.preds .event a { font-weight: 700; text-decoration: none; }
.preds .odd { font-weight: 800; color: #666; }
.preds .odd small, .preds td small { display: block; font-weight: 600; color: var(--muted); }
.preds .odd.pick { color: #c2410c; background: #fff4ec; }
.pred-league td { background: #fafafa; font-weight: 800; }
.pick { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 999px; background: #fff1e6; color: #c2410c; font-weight: 800; }
.go-link { text-decoration: none; color: #ccc; font-size: 20px; }
.search-page { display: flex; gap: 8px; margin-bottom: 16px; }
.search-page input { flex: 1; }

.flag-it, .ff {
  width: 16px; height: 11px; border-radius: 2px; display: inline-block;
  box-shadow: 0 0 0 1px rgba(0,0,0,.12); vertical-align: -1px; flex: 0 0 auto;
}
.flag-it, .ff-it { background: linear-gradient(90deg, #009246 33%, #fff 33% 66%, #ce2b37 66%); }
.ff-es { background: linear-gradient(#aa151b 25%, #f1bf00 25% 75%, #aa151b 75%); }
.ff-de { background: linear-gradient(#000 33%, #dd0000 33% 66%, #ffce00 66%); }
.ff-fr { background: linear-gradient(90deg, #0055a4 33%, #fff 33% 66%, #ef4135 66%); }
.ff-nl { background: linear-gradient(#ae1c28 33%, #fff 33% 66%, #21468b 66%); }
.ff-be { background: linear-gradient(90deg, #000 33%, #fdda24 33% 66%, #ef3340 66%); }
.ff-at { background: linear-gradient(#ed2939 33%, #fff 33% 66%, #ed2939 66%); }
.ff-ch { background: #d52b1e; }
.ff-pt { background: linear-gradient(90deg, #006600 40%, #ff0000 40%); }
.ff-eu { background: #003399; }
.ff-sa { background: linear-gradient(#006c35 70%, #fff 70%); }
.ff-ar { background: linear-gradient(#74acdf 33%, #fff 33% 66%, #74acdf 66%); }
.ff-br { background: linear-gradient(#009c3b 20%, #ffdf00 20% 80%, #009c3b 80%); }
.ff-gb {
  background:
    linear-gradient(#fff, #fff) center/100% 3px no-repeat,
    linear-gradient(#fff, #fff) center/3px 100% no-repeat,
    linear-gradient(#c8102e, #c8102e) center/100% 1.5px no-repeat,
    linear-gradient(#c8102e, #c8102e) center/1.5px 100% no-repeat,
    #012169;
}
.ff-ru { background: linear-gradient(#fff 33%, #0039a6 33% 66%, #d52b1e 66%); }
.ff-tr { background: #e30a17; }
.ff-gr { background: linear-gradient(#0d5eaf 44%, #fff 44% 56%, #0d5eaf 56%); }
.ff-mx { background: linear-gradient(90deg, #006847 33%, #fff 33% 66%, #ce1126 66%); }
.ff-us { background: linear-gradient(#3c3b6e 46%, #fff 46% 54%, #b22234 54%); }
.ff-jp { background: radial-gradient(circle at 50% 50%, #bc002d 28%, #fff 29%); }
.ff-kr { background: #fff; }
.ff-xx { background: #d5dde3; }
.ff-ca { background: linear-gradient(90deg, #d52b1e 25%, #fff 25% 75%, #d52b1e 75%); }
.ff-in { background: linear-gradient(#ff9933 33%, #fff 33% 66%, #138808 66%); }
.ff-cn { background: #de2910; }
.ff-au { background: #012169; }
.ff-int { background: linear-gradient(#4a90d9 50%, #6fbf73 50%); }

.site-footer { background: #111; color: #cfcfcf; padding: 22px 0 28px; }
.footer-row { display: flex; justify-content: space-between; gap: 24px; }
.footer-row p { margin: 6px 0 0; max-width: 460px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-links a { color: #fff; font-weight: 700; text-decoration: none; }
.footer-links a:hover { color: var(--accent); }

.stream-board {
  display: grid; grid-template-columns: 190px 1fr; gap: 28px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 18px 20px; margin: 14px 0 18px;
}
.stream-board h2 { margin: 0 0 12px; font-size: 15px; }
.stream-sites { display: flex; flex-direction: column; gap: 8px; }
.stream-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 16px; }
.stream-sites a, .stream-grid a { color: #163a70; font-weight: 600; font-size: 14px; text-decoration: none; }
.stream-sites a:hover, .stream-grid a:hover, .stream-board a.is-on { text-decoration: underline; }
.stream-board a.is-on { color: var(--accent); }
.crumb { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.crumb a { color: #163a70; }
.stream-note { margin-top: 14px; }
@media (max-width: 900px) {
  .pitch, .league-cols, .footer-row { grid-template-columns: 1fr; display: grid; }
  .pitch { gap: 10px; }
  .footer-row { display: grid; }
  .page { padding-top: 12px; }
  .comp-side {
    position: static; max-height: none; display: flex; align-items: stretch;
    overflow-x: auto; overflow-y: hidden; padding: 0; gap: 0;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 18px), transparent);
  }
  .comp-side::-webkit-scrollbar { display: none; }
  .comp-label { display: none; }
  .comp-sport {
    position: sticky; left: 0; z-index: 1; margin: 0; display: flex; align-items: center;
    padding: 0 10px; background: #fff; border-right: 1px solid var(--line); white-space: nowrap;
  }
  .comp {
    flex: 0 0 auto; padding: 11px 12px; white-space: nowrap;
  }
  .comp span { overflow: visible; text-overflow: unset; }
  .comp.is-on { box-shadow: inset 0 -3px 0 var(--accent); }
  .facts { grid-template-columns: 1fr; }
  .match-sheet h1 { font-size: 24px; }
  .match { padding: 10px 12px; column-gap: 8px; }
  .sport-scroll { scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .sport-scroll::-webkit-scrollbar { display: none; }
  .sport-scroll { mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 16px), transparent); }
}

@media (max-width: 760px) {
  .dark-row { flex-wrap: wrap; align-items: center; min-height: 0; gap: 0 8px; padding-top: 6px; }
  .brand { flex: 1; order: 1; margin-right: 0; min-height: 48px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-name { font-size: 18px; }
  .top-tools { order: 2; margin-left: 0; }
  .dark-nav {
    order: 3; flex: 1 0 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid #2a2a2a; margin: 6px 0 0;
  }
  .stream-board { grid-template-columns: 1fr; gap: 18px; }
  .stream-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dark-nav a { justify-content: center; padding: 10px 4px; font-size: 11px; letter-spacing: .03em; gap: 5px; }
  .search-pop { position: fixed; left: 12px; right: 12px; top: 108px; }
  .search-pop input { min-width: 0; width: 100%; }
}
