: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.3;
}
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
}
a {
  text-decoration: none;
}
.jbl4-main-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2px;
}
.jbl4-seo-title {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.jbl4-block {
  margin-bottom: 2px;
}
.jbl4-block-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2px;
}
.jbl4-block-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--brown-text);
}
.jbl4-block-more {
  font-size: 14px;
  color: var(--brown-accent);
}
@media (min-width: 1024px) {
  .jbl4-block-title {
    font-size: 16px;
  }
  .jbl4-block-more {
    font-size: 14px;
  }
}
.jbl4-live-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  width: 100%;
}
.jbl4-live-item {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.jbl4-live-time {
  font-size: 14px;
  color: var(--brown-muted);
  margin-bottom: 2px;
}
.jbl4-live-vs {
  display: flex;
  align-items: center;
  width: 100%;
}
.jbl4-live-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}
.jbl4-live-logo-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.jbl4-live-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.jbl4-live-name {
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 45px;
  color: var(--brown-primary);
  font-weight: bold;
}
.jbl4-live-vs-text {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-accent);
  padding: 0 2px;
}
.jbl4-live-league {
  font-size: 14px;
  color: var(--brown-muted);
  margin-top: 2px;
}
.jbl4-live-container {
  width: 100%;
  height: 260px;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.jbl4-live-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
}
.jbl4-live-card {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 2px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
}
.jbl4-card-time {
  font-size: 14px;
  color: var(--brown-muted);
  line-height: 1.1;
}
.jbl4-card-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-width: 0;
}
.jbl4-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}
.jbl4-card-logo {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}
.jbl4-card-name {
  width: 100%;
  font-size: 14px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  color: var(--brown-primary);
  font-weight: bold;
  line-height: 1.15;
}
.jbl4-card-vs {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-accent);
  padding: 0 4px;
  line-height: 1.15;
}
.jbl4-card-league {
  font-size: 14px;
  color: var(--brown-muted);
  line-height: 1.1;
}
.jbl4-live-container::-webkit-scrollbar {
  width: 4px;
}
.jbl4-live-container::-webkit-scrollbar-thumb {
  background: var(--brown-border);
  border-radius: 4px;
}
.jbl4-news-list {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
}
.jbl4-news-row {
  display: flex;
  align-items: center;
  padding: 1px;
  border-bottom: 1px solid var(--brown-border);
}
.jbl4-news-row:last-child {
  border-bottom: none;
}
.jbl4-news-index {
  width: 18px;
  height: 18px;
  background: var(--brown-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  flex-shrink: 0;
}
.jbl4-news-title {
  flex: 1;
  margin-left: 2px;
  font-size: 14px;
  color: var(--brown-text);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jbl4-news-time {
  font-size: 14px;
  color: var(--brown-muted);
  flex-shrink: 0;
  margin-left: 2px;
}
.jbl4-news-swiper {
  width: 100%;
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  overflow: hidden;
}
.jbl4-news-swiper .swiper {
  width: 100%;
}
.jbl4-swiper-link {
  position: relative;
  display: block;
  width: 100%;
  height: 180px;
  color: #fff;
  overflow: hidden;
}
.jbl4-swiper-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.jbl4-swiper-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 8px 10px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(61,41,20,0.82) 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jbl4-news-swiper .swiper-pagination-bullet {
  width: 6px;
  height: 6px;
  background: rgba(255,255,255,0.75);
  opacity: 1;
}
.jbl4-news-swiper .swiper-pagination-bullet-active {
  background: #fff;
}
.jbl4-active-board {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  overflow: hidden;
}
.jbl4-active-row {
  display: flex;
  align-items: center;
  padding: 1px;
  border-bottom: 1px solid var(--brown-border);
  color: var(--brown-text);
  min-width: 0;
}
.jbl4-active-row:last-child {
  border-bottom: none;
}
.jbl4-active-status {
  display: block;
  width: 3px;
  height: 3px;
  background: #e53935;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
  margin-right: 2px;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}
.jbl4-active-team {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
  justify-content: space-between;
}
.jbl4-active-team-inner {
  display: flex;
  align-items: center;
  min-width: 0;
}
.jbl4-active-team-inner:first-child {
  flex: 1;
  justify-content: flex-start;
}
.jbl4-active-team-inner:last-child {
  flex: 1;
  justify-content: flex-end;
}
.jbl4-active-logo-wrap {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jbl4-active-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.jbl4-active-name {
  font-size: 14px;
  color: var(--brown-primary);
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 50px;
}
.jbl4-active-team-inner:first-child .jbl4-active-name {
  margin-left: 2px;
}
.jbl4-active-team-inner:last-child .jbl4-active-name {
  margin-right: 2px;
}
.jbl4-active-vs {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-accent);
  padding: 0 2px;
  flex-shrink: 0;
}
.jbl4-active-btn {
  background: var(--brown-gradient);
  color: #fff;
  border: none;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jbl4-topic-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
}
.jbl4-topic-card {
  background: #fff;
  border: 1px solid var(--brown-border);
  border-radius: 2px;
  padding: 2px;
}
.jbl4-topic-header {
  display: flex;
  align-items: center;
}
.jbl4-topic-tag {
  width: 2px;
  height: 18px;
  background: var(--brown-gradient);
  margin-right: 2px;
}
.jbl4-topic-title {
  font-size: 14px;
  font-weight: bold;
  color: var(--brown-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jbl4-topic-info {
  font-size: 14px;
  color: var(--brown-muted);
  margin-top: 1px;
}
@media (min-width: 768px) {
  .jbl4-block-title {
    font-size: 16px;
  }
  .jbl4-live-logo-wrap {
    width: 32px;
    height: 32px;
  }
  .jbl4-live-logo {
    width: 28px;
    height: 28px;
  }
  .jbl4-active-logo-wrap {
    width: 32px;
    height: 32px;
  }
  .jbl4-active-logo {
    width: 28px;
    height: 28px;
  }
}
@media (min-width: 1024px) {
  body {
    font-size: 16px;
  }
  .jbl4-live-container {
    height: auto;
    overflow: visible;
  }
  .jbl4-live-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .jbl4-live-card {
    padding: 6px 10px;
    gap: 4px;
  }
  .jbl4-card-teams {
    display: flex;
  }
  .jbl4-card-team {
    flex-direction: row;
    flex: 1;
    gap: 4px;
  }
  .jbl4-block-title {
    font-size: 16px;
  }
  .jbl4-block-more {
    font-size: 14px;
  }
  .jbl4-live-time, .jbl4-card-time {
    font-size: 16px;
  }
  .jbl4-live-name, .jbl4-card-name {
    font-size: 16px;
    max-width: 180px;
  }
  .jbl4-live-vs-text, .jbl4-card-vs {
    font-size: 16px;
    padding: 0 10px;
  }
  .jbl4-live-league, .jbl4-card-league {
    font-size: 16px;
  }
  .jbl4-live-logo, .jbl4-card-logo {
    width: 44px;
    height: 44px;
  }
  .jbl4-news-index {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  .jbl4-news-title {
    font-size: 14px;
  }
  .jbl4-news-time {
    font-size: 16px;
  }
  .jbl4-swiper-link {
    height: 360px;
  }
  .jbl4-swiper-title {
    padding: 14px 18px;
    font-size: 16px;
  }
  .jbl4-active-board {
    height: auto;
    overflow: hidden;
  }
  .jbl4-active-row {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px;
  }
  .jbl4-active-status {
    display: block;
    margin-right: 4px;
  }
  .jbl4-active-team {
    display: flex;
    flex: 1;
    justify-content: space-between;
    gap: 0;
  }
  .jbl4-active-team-inner {
    flex-direction: row;
    flex: 1;
  }
  .jbl4-active-team-inner:first-child {
    justify-content: flex-start;
  }
  .jbl4-active-team-inner:last-child {
    justify-content: flex-end;
  }
  .jbl4-active-name {
    font-size: 16px;
    max-width: 180px;
    text-align: left;
  }
  .jbl4-active-team-inner:first-child .jbl4-active-name {
    margin-left: 4px;
  }
  .jbl4-active-team-inner:last-child .jbl4-active-name {
    margin-right: 4px;
    text-align: right;
  }
  .jbl4-active-vs {
    font-size: 16px;
    padding: 0 8px;
  }
  .jbl4-active-btn {
    font-size: 16px;
    padding: 4px 12px;
    width: auto;
  }
  .jbl4-active-logo {
    width: 36px;
    height: 36px;
  }
  .jbl4-topic-title {
    font-size: 16px;
  }
  .jbl4-topic-info {
    font-size: 16px;
  }
}
@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,
.jbl4-swiper-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;
  }
}
