/* Reference-first home layout overrides. */
body { color: #000; }
.site-header { background: #2932e1; border-bottom: 0; }
.brand { width: 200px; font-size: 30px; }
.main-nav a { font-size: 13px; padding: 0 4px; }
.main-nav a:hover, .main-nav a.active { background: #4e6ef2; }
.page-shell { padding-top: 0; }
.portal-grid { align-items: start; }
.portal-main, .portal-sidebar { padding-top: 20px; }
.seo-h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.reference-title { width: 100%; height: 35px; border-bottom: 2px solid #2932e1; display: flex; align-items: flex-start; }
.reference-title span { min-width: 136px; height: 34px; line-height: 34px; padding: 0 30px; text-align: center; font-size: 16px; font-weight: 600; }
.reference-league-nav { display: flex; flex-wrap: wrap; gap: 5px; padding: 20px 0 14px; }
.reference-league-nav a { display: inline-block; padding: 0 10px; border-radius: 5px; background: #f0f0f0; line-height: 28px; color: #000; white-space: nowrap; }
.hot-live-label { position: relative; margin: 0 0 7px; padding: 0 0 0 18px; font-size: 14px; line-height: 28px; }
.hot-live-label::before { content: ""; position: absolute; left: 0; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: #000; }
.portal-main > .match-list { border: 0; }
.match-row { min-height: 61px; grid-template-columns: 205px 100px 150px 60px 150px 84px; padding: 15px 5px; border-bottom: 1px solid #dedede; font-size: 15px; }
.match-row:hover { background: #f7f7f7; color: #303030; }
.match-time { text-align: left; color: #9a9a9a; font-weight: 400; }
.match-time b { font-size: 15px; font-weight: 400; color: #000; white-space: nowrap; }
.match-time em { margin-left: 0; font-style: normal; font-weight: 400; }
.match-league { text-align: left; color: #9a9a9a; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.match-team { gap: 5px; color: #000; }
.match-team.home { justify-content: flex-end; }
.match-team.away { justify-content: flex-start; }
.match-team.home img { order: 2; margin-left: 5px; }
.match-team.away img { margin-right: 5px; }
.team-logo { width: 30px; height: 30px; }
.match-vs { color: #000; font-size: 16px; }
.match-action { color: #303030; border: 0; border-radius: 16px; padding: 0; line-height: 28px; background: #f0f0f0; }
.portal-sidebar .side-module { border: 0; margin-bottom: 20px; }
.side-title { height: 35px; line-height: 34px; padding: 0 30px; border: 0; border-bottom: 2px solid #2932e1; background: transparent; font-size: 16px; font-weight: 600; }
.league-links { grid-template-columns: repeat(4, 76px); gap: 0; justify-content: space-between; padding: 10px 0; }
.league-links a { width: 76px; margin: 10px 0; padding: 0; color: #000; }
.league-links .league-picture { display: flex; align-items: center; justify-content: center; width: 76px; height: 70px; padding: 10px; border: 1px solid #f2f2f2; }
.league-links img { width: 48px; height: 48px; border: 0; margin: 0; object-fit: contain; }
.league-links a > span:last-child { margin-top: 4px; font-size: 14px; }
.side-list { padding: 10px 0 0; }
.side-list li { height: auto; min-height: 37px; line-height: 1.4; padding: 9px 10px; border-bottom: 1px solid #f6f7f7; }
.side-list li:nth-child(even) { background: #f7f7f7; }
.side-list a { display: block; overflow: hidden; color: #000; }
.side-list.dated li { min-height: 58px; }
.side-list.dated a span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-list.dated time { display: block; padding-top: 5px; color: #a3a3a3; font-size: 12px; }
.hot-tags p { padding: 8px 0; }
.home-faq { margin-top: 30px; }
.home-faq details { padding: 10px 12px; border-bottom: 1px solid #dedede; }
.home-faq summary { cursor: pointer; font-weight: 600; }
.home-faq p { color: #666; line-height: 1.7; }
.friend-wrapper { height: 20px; padding: 10px 0; background: #17224d; }
.site-footer { padding: 20px 0; background: #2932e1; border-top: 0; color: #5b6b9e; }
.site-footer p { margin: 3px 0; }
.site-footer a { color: #17224d; }
.resource-links { display: flex; justify-content: center; gap: 12px; padding: 22px; }
.resource-links a { display: inline-block; padding: 9px 24px; border-radius: 18px; background: #2440b3; color: #fff; }
.resource-links a:hover { background: #2440b3; color: #fff; }

@media (max-width: 1240px) {
  .brand { width: 145px; font-size: 25px; }
  .main-nav a { font-size: 11px; padding: 0 2px; }
  .match-row { grid-template-columns: 160px 80px 120px 45px 120px 75px; }
  .league-links { grid-template-columns: repeat(3, 76px); }
}

@media (max-width: 780px) {
  .brand { width: auto; }
  .main-nav a { width: 33.333%; font-size: 13px; }
  .portal-main, .portal-sidebar { padding-top: 12px; }
  .reference-title span { padding: 0; min-width: 120px; text-align: left; }
  .reference-league-nav { padding: 12px 0; gap: 6px; }
  .match-row { grid-template-columns: 78px 58px 1fr 30px 1fr; min-height: 64px; padding: 8px 4px; }
  .match-time b { display: flex; flex-direction: column; font-size: 14px; }
  .match-time em { color: #999; font-size: 11px; }
  .match-league { font-size: 12px; }
  .match-team { font-size: 13px; }
  .team-logo { width: 27px; height: 27px; }
  .league-links { grid-template-columns: repeat(4, 76px); justify-content: space-around; }
  .side-title { padding-left: 0; }
}

@media (max-width: 380px) {
  .league-links { grid-template-columns: repeat(3, 76px); }
}
