@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@500;600;700&family=Roboto:wght@400;500;700&display=swap');

:root {
  --light: #F8F9FA;
  --forest: #1B4332;
  --orange: #FF6D00;
  --tag-purple: #7B2D8E;
}

body.p4-body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: var(--light);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .p4-display {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.p4-header {
  background: var(--forest);
  color: #fff;
  padding: 12px 0;
}

.p4-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.p4-logo a { color: #fff; text-decoration: none; font-family: 'Oswald', sans-serif; font-size: 1.5rem; }

.p4-nav {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.p4-nav a {
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: none;
  font-family: 'Roboto', sans-serif;
  letter-spacing: 0;
}

.p4-nav a:hover { color: var(--orange); }

.p4-leagues-bar {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 3px solid var(--orange);
}

.p4-league-chip {
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 72px;
  flex-shrink: 0;
}

.p4-league-chip img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
}

.p4-league-chip span {
  font-size: 0.75rem;
  color: var(--forest);
  font-weight: 600;
  text-transform: none;
  font-family: 'Roboto', sans-serif;
}

.p4-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.p4-news-carousel {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.p4-news-carousel img { width: 100%; height: 240px; object-fit: cover; }
.p4-news-carousel-body { padding: 16px; }
.p4-news-carousel-body a { color: var(--forest); text-decoration: none; font-size: 1.1rem; font-weight: 700; text-transform: none; font-family: 'Roboto', sans-serif; }

.p4-news-list { background: #fff; border-radius: 8px; padding: 16px; margin-bottom: 20px; }
.p4-news-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
  color: #333;
  font-size: 0.9rem;
  text-transform: none;
  font-family: 'Roboto', sans-serif;
}
.p4-news-list a:last-child { border: none; }

.p4-section-label {
  font-size: 1.1rem;
  color: var(--forest);
  margin: 0 0 12px;
  padding-left: 10px;
  border-left: 4px solid var(--orange);
}

.p4-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}

.p4-record-row {
  display: flex;
  gap: 12px;
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.p4-record-row img { width: 48px; height: 48px; object-fit: contain; background: var(--light); border-radius: 4px; }
.p4-record-title { font-size: 0.88rem; font-weight: 500; text-transform: none; font-family: 'Roboto', sans-serif; }
.p4-record-time { font-size: 0.75rem; color: #888; margin-top: 4px; text-transform: none; font-family: 'Roboto', sans-serif; }

.p4-players-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.p4-rank-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #fff;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  font-size: 0.85rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  text-transform: none;
  font-family: 'Roboto', sans-serif;
}

.p4-rank-num {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  color: var(--orange);
  min-width: 24px;
}

.p4-rank-item img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

.p4-teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.p4-team-box {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.p4-team-box img { width: 48px; height: 48px; object-fit: contain; }
.p4-team-box div { font-size: 0.85rem; margin-top: 6px; text-transform: none; font-family: 'Roboto', sans-serif; }

.p4-tags a {
  display: inline-block;
  margin: 4px 6px;
  padding: 4px 10px;
  background: rgba(123,45,142,0.08);
  color: var(--tag-purple);
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
  text-transform: none;
  font-family: 'Roboto', sans-serif;
}

.p4-body .site-subtitle { color: var(--orange); font-weight: 500; text-transform: none; font-family: 'Roboto', sans-serif; }
.p4-body .match_filter_item.on a { background: var(--forest) !important; color: #fff !important; }
.p4-body .info_right.start a { background: var(--orange) !important; color: #fff !important; }

.p4-footer.footer-wrapper { background: var(--forest); color: rgba(255,255,255,0.85); }
.p4-footer p, .p4-footer .footer-desc { text-align: center; color: rgba(255,255,255,0.85); }
.p4-footer a { color: var(--orange); }

.p4-body .container {
  width: 100% !important;
  max-width: 1200px;
  box-sizing: border-box;
}

.p4-body .match_allinfo { background: #fff; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
