:root {
  --bg: #ffe4c4;
  --header: #efd6b8;
  --card: #f6e3c8;
  --card-2: #fbe9d4;
  --primary: #1a3a5f;
  --primary-dark: #122943;
  --text: #1a1a1a;
  --muted: #515151;
  --border: #f0d4b0;
  --white: #fff;
  --live: #1a3a5f;
  --wait: #8a7a68;
  --radius: 12px;
  --width: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; overflow-x: hidden; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; vertical-align: middle; border: 0; }
button { font-family: inherit; }

.wrap {
  width: min(var(--width), calc(100% - 24px));
  max-width: 100%;
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--header);
  box-shadow: 0 6px 1px -5px var(--header);
}
.header-inner {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
  white-space: nowrap;
}
.logo img, .logo svg { height: 44px; width: auto; object-fit: contain; }
.nav { display: flex; gap: 8px; flex: 1; }
.nav a {
  position: relative;
  padding: 8px 12px;
  color: #222;
  font-size: 15px;
}
.nav a.is-active { font-weight: 700; }
.nav a.is-active:after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 0;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.header-clock {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-size: 13px;
  white-space: nowrap;
}
.header-clock img { width: 22px; height: 15px; border-radius: 2px; }

.top-desc {
  padding: 8px 0 4px;
  color: var(--muted);
  font-size: 13px;
}

.league-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 16px;
}
.pill {
  padding: 6px 18px;
  border-radius: 20px;
  background: #f3d7b6;
  color: #333;
  font-size: 14px;
}
.pill.is-active {
  background: var(--primary);
  color: #fff;
  font-weight: 700;
}

.panel {
  background: #f4ddc0;
  border-radius: 16px;
  padding: 8px 8px 4px;
  margin-bottom: 18px;
  min-width: 0;
}

.date-strip {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  min-width: 0;
  max-width: 100%;
}
.date-track {
  flex: 1;
  min-width: 0;
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.date-track::-webkit-scrollbar { display: none; }
.date-item {
  flex: 0 0 110px;
  min-width: 110px;
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  color: #666;
  line-height: 1.35;
  cursor: pointer;
}
.date-item span { display: block; font-size: 13px; }
.date-item b { font-size: 15px; font-weight: 600; }
.date-item.is-active {
  background: #f8ecda;
  color: #111;
  box-shadow: inset 0 0 0 1px #edd4b3;
}
.date-arrow {
  width: 28px;
  height: 40px;
  cursor: pointer;
  position: relative;
  opacity: .55;
}
.date-arrow:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid #555;
  border-right: 2px solid #555;
}
.date-arrow.prev:before { transform: translate(-30%, -50%) rotate(-135deg); }
.date-arrow.next:before { transform: translate(-70%, -50%) rotate(45deg); }

#matchHolder.is-loading {
  opacity: .45;
  pointer-events: none;
}
.match-list { padding: 0 6px; min-width: 0; }
.match-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 118px;
  align-items: center;
  min-height: 62px;
  min-width: 0;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255,255,255,.35);
  color: inherit;
}
.match-row:hover { background: rgba(255,255,255,.28); }
.match-row.is-more { display: none; }
.match-row.is-more.show { display: grid; }

.info-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #555;
}
.info-left img, .league-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}
.left-title { font-size: 13px; white-space: nowrap; }
.left-time { color: #777; font-size: 13px; }

.info-center {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 120px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.team span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}
.team img { width: 30px; height: 30px; object-fit: contain; }
.team.home { justify-content: flex-end; }
.team.away { justify-content: flex-start; }
.score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.status {
  font-size: 13px;
  color: var(--wait);
  white-space: nowrap;
}
.status.is-live { color: var(--primary); font-weight: 700; }
.status.is-over { color: #666; }
.hscore, .vscore { min-width: 14px; font-weight: 700; }

.info-right { text-align: right; }
.btn-live {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 92px;
  justify-content: center;
  height: 32px;
  border-radius: 18px;
  font-size: 13px;
  padding: 0 12px;
}
.btn-live.is-live {
  background: var(--primary);
  color: #fff;
}
.btn-live.is-wait {
  background: transparent;
  color: #8a8a8a;
}
.btn-live.is-over {
  background: #d9c4aa;
  color: #666;
}
.ico-play {
  width: 1em;
  height: 1em;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='black' d='M141 906h742c90 0 135-45 135-133V250c0-88-45-133-135-133H141C52 117 6 162 6 250v523c0 89 45 133 135 133zm286-225c-21 12-44-1-44-23V364c0-21 24-34 44-23l247 147a27 27 0 0 1 0 47z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='black' d='M141 906h742c90 0 135-45 135-133V250c0-88-45-133-135-133H141C52 117 6 162 6 250v523c0 89 45 133 135 133zm286-225c-21 12-44-1-44-23V364c0-21 24-34 44-23l247 147a27 27 0 0 1 0 47z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.more-matches {
  display: block;
  text-align: center;
  padding: 14px;
  color: #666;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  margin-bottom: 24px;
  min-width: 0;
}
.layout > * { min-width: 0; }
.side-card, .block {
  background: rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 18px;
  margin-bottom: 12px;
}
.block-title h3 { font-size: 18px; font-weight: 700; }
.block-title a { font-size: 13px; color: #777; }

.news-feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 14px;
}
.news-big {
  position: relative;
  display: block;
  border-radius: 10px;
  overflow: hidden;
  min-height: 220px;
  background: #d9c4aa;
}
.news-big img { width: 100%; height: 220px; object-fit: cover; display: block; }
.news-big span {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(transparent, #000);
  font-size: 16px;
  font-weight: 700;
}
.news-mini a {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.news-mini img {
  width: 92px;
  height: 62px;
  object-fit: cover;
  border-radius: 6px;
  background: #e6d0b4;
  flex-shrink: 0;
}
.news-mini h4 { font-size: 14px; font-weight: 600; line-height: 1.45; }
.news-mini time { color: #888; font-size: 12px; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.video-card {
  display: block;
  background: rgba(255,255,255,.25);
  border-radius: 10px;
  overflow: hidden;
}
.thumb {
  position: relative;
  height: 124px;
  background: linear-gradient(160deg, #1a3a5f, #3d5d82);
  overflow: hidden;
}
.thumb img.cover, .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cover-fallback {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  padding: 8px;
  text-align: center;
}
.cover-fallback b { opacity: .7; }
.play-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(26,58,95,.92);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.video-card p, .video-card h4 {
  padding: 8px 10px 12px;
  font-size: 13px;
  line-height: 1.4;
  height: 54px;
  overflow: hidden;
}

.side-list a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.05);
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-list time { color: #999; font-size: 12px; margin-left: 6px; }

.tags a {
  display: inline-block;
  margin: 0 8px 8px 0;
  padding: 4px 12px;
  border-radius: 14px;
  background: #f3d7b6;
  font-size: 13px;
}

.crumb { padding: 8px 0 12px; color: #777; font-size: 13px; }
.crumb a { color: #555; }

.signal-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.signal-label { color: #555; }
.signal-empty { color: #888; }
.signal-row a, .signal-btn {
  border: 0;
  background: #f3d7b6;
  color: #333;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 14px;
}
.watch-jump {
  display: block;
  text-align: center;
  background: var(--primary);
  color: #fff !important;
  padding: 16px 12px;
  border-radius: 12px;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 700;
}
.player-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  color: #888;
  font-size: 15px;
  margin-bottom: 16px;
}
.match-detail {
  background: rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 16px 18px;
  margin-bottom: 16px;
  line-height: 1.9;
  color: #333;
  font-size: 15px;
}
.match-detail h2 { font-size: 16px; margin-bottom: 8px; }
.match-detail p { margin: 0 0 4px; }

.board {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: rgba(255,255,255,.22);
  border-radius: 12px;
  padding: 18px 12px;
  margin-bottom: 16px;
  text-align: center;
}
.board .side { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.board img { width: 56px; height: 56px; object-fit: contain; }
.board .name { font-size: 16px; font-weight: 700; }
.board .mid .league { color: #777; font-size: 13px; }
.board .mid .nums { font-size: 28px; font-weight: 800; letter-spacing: 4px; }
.board .mid .st { color: var(--primary); font-weight: 700; }

.article-body {
  background: rgba(255,255,255,.28);
  border-radius: 12px;
  padding: 20px 22px 28px;
}
.article-body h1 { font-size: 22px; line-height: 1.45; margin-bottom: 10px; }
.article-meta { color: #888; font-size: 13px; margin-bottom: 16px; }
.article-cover { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.article-content { font-size: 16px; line-height: 1.9; color: #222; }
.article-content p { margin: 0 0 14px; }
.article-content img { display: block; margin: 12px auto; max-width: 100%; border-radius: 6px; }

.news-list a.item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.news-list img {
  width: 180px;
  height: 112px;
  object-fit: cover;
  border-radius: 8px;
  background: #e6d0b4;
}
.news-list h3 { font-size: 18px; margin-bottom: 8px; }
.news-list p { color: #666; font-size: 13px; }
.news-list time { color: #999; font-size: 12px; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 18px 0; }
.pager a {
  min-width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #f3d7b6;
}
.pager a.on { background: var(--primary); color: #fff; }

.empty { text-align: center; padding: 40px 10px; color: #888; }

.page-404 {
  text-align: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 20px 48px;
  margin: 24px 0;
}
.page-404 strong {
  display: block;
  font-size: 72px;
  line-height: 1;
  color: var(--primary);
  letter-spacing: 4px;
}
.page-404 h1 {
  margin: 12px 0 8px;
  font-size: 22px;
  color: var(--primary);
}
.page-404 p { color: var(--muted); margin-bottom: 12px; }
.page-404-jump { font-size: 14px; color: #555 !important; margin-bottom: 22px !important; }
.page-404-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.page-404-links a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
}

.footer {
  background: var(--header);
  padding: 24px 0 30px;
  margin-top: 20px;
  color: #555;
}
.footer-friends {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  text-align: left;
  margin-bottom: 12px;
}
.friend-label {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  flex: 0 0 auto;
}
.friend-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.footer a { color: #555; }
.friend-links a {
  display: inline-block;
  padding: 0;
  white-space: nowrap;
}
.footer-bottom {
  text-align: center;
  font-size: 13px;
  line-height: 1.8;
  color: #666;
  padding-top: 8px;
  border-top: 1px solid rgba(0,0,0,.06);
}
.footer-bottom p { margin: 4px 0; }
.footer-bottom a { display: inline; padding: 0; color: #444; }

.backtop {
  position: fixed;
  right: 18px;
  bottom: 24px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.backtop img { width: 16px; height: 16px; }

@media (max-width: 992px) {
  .layout { grid-template-columns: 1fr; }
  .news-feature { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .match-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 8px; }
  .info-right { text-align: left; }
  .info-center { grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1fr); }
  .news-list a.item { grid-template-columns: 120px 1fr; }
  .news-list img { width: 120px; height: 80px; }
}
@media (max-width: 640px) {
  .header-inner { gap: 10px; }
  .logo { font-size: 18px; }
  .nav a { padding: 8px 6px; font-size: 14px; }
  .header-clock { display: none; }
  .team span { font-size: 13px; }
  .left-title { display: none; }
  .video-grid { grid-template-columns: 1fr 1fr; }
}
