:root {
  --brown-primary: #3d2914;
  --brown-accent: #6b4423;
  --brown-light: #8b6914;
  --brown-bg: #faf8f5;
  --brown-text: #3d2914;
  --brown-muted: #8a7355;
  --brown-border: #d4c4a8;
  --brown-gradient: linear-gradient(135deg, #3d2914 0%, #6b4423 100%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  color: var(--brown-text);
  background: var(--brown-bg);
  line-height: 1.4;
}
a {
  text-decoration: none;
}
.jbl4-main-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px;
}
.jbl4-page-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--brown-text);
  margin-bottom: 2px;
}
.jbl4-filter-bar {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
  overflow-x: auto;
  padding-bottom: 1px;
}
.jbl4-filter-item {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 2px 6px;
  font-size: 14px;
  color: var(--brown-text);
  cursor: pointer;
  flex-shrink: 0;
}
.jbl4-filter-item.active {
  background: var(--brown-gradient);
  color: #fff;
  border-color: var(--brown-accent);
}
.jbl4-live-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.jbl4-live-card {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 2px;
}
.jbl4-live-league {
  font-size: 14px;
  color: var(--brown-muted);
  margin-bottom: 2px;
}
.jbl4-live-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.jbl4-live-left {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.jbl4-live-status {
  width: 3px;
  height: 3px;
  background: #e53935;
  border-radius: 50%;
  margin-right: 2px;
  flex-shrink: 0;
}
.jbl4-live-match {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.jbl4-team-home, .jbl4-team-away {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}
.jbl4-team-home {
  justify-content: flex-end;
}
.jbl4-team-away {
  justify-content: flex-start;
}
.jbl4-team-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}
.jbl4-team-home .jbl4-team-logo {
  margin-left: 2px;
}
.jbl4-team-away .jbl4-team-logo {
  margin-right: 2px;
}
.jbl4-team-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}
.jbl4-live-vs {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-accent);
  padding: 0 4px;
  flex-shrink: 0;
}
.jbl4-live-time {
  font-size: 14px;
  color: var(--brown-muted);
  margin-top: 2px;
}
.jbl4-live-btn {
  background: var(--brown-gradient);
  color: #fff;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  flex-shrink: 0;
  margin-left: 4px;
}
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
  .jbl4-page-title {
    font-size: 16px;
  }
  .jbl4-filter-item {
    font-size: 14px;
    padding: 4px 12px;
  }
  .jbl4-live-league {
    font-size: 16px;
  }
  .jbl4-team-name {
    font-size: 16px;
    max-width: 100px;
  }
  .jbl4-live-vs {
    font-size: 16px;
    padding: 0 8px;
  }
  .jbl4-live-time {
    font-size: 16px;
  }
  .jbl4-live-btn {
    font-size: 16px;
    padding: 4px 12px;
  }
  .jbl4-team-logo {
    width: 36px;
    height: 36px;
  }
  .jbl4-live-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
  }
}
.jbl4-live-card.is-hidden {
  display: none;
}
.jbl4-live-empty {
  display: none;
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 8px;
  text-align: center;
  color: var(--brown-muted);
}
.jbl4-live-empty.show {
  display: block;
}
@media (min-width: 1024px) {
  body, body * {
    font-size: 16px;
  }
  .jbl4-block-title,
.jbl4-page-title,
.jbl4-section-title,
.jbl4-match-title,
.jbl4-news-header > .jbl4-news-title,
.jbl4-topic-header > .jbl4-topic-title{
    font-size: 22px;
  }
}

/* PC font size overrides */
@media (min-width: 1024px) {
  body, body * {
    font-size: 16px !important;
  }
  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .jbl4-block-title,
  .jbl4-page-title,
  .jbl4-section-title,
  .jbl4-match-title,
  .jbl4-news-title,
  .jbl4-topic-title,
  .jbl4-swiper-title,
  .jbl4-site-brand {
    font-size: 22px !important;
  }
}