@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&family=Noto+Sans+SC:wght@400;500;700&display=swap');

:root {
  --white: #FFFFFF;
  --slate: #2C3E50;
  --news-red: #E74C3C;
  --tag-blue: #3498DB;
}

body.p3-body {
  margin: 0;
  font-family: 'Noto Sans SC', sans-serif;
  background: #f0f2f5;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .p3-display {
  font-family: 'Montserrat', 'Noto Sans SC', sans-serif;
  font-weight: 700;
}

.p3-header {
  background: var(--slate);
  color: #fff;
}

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

.p3-logo a {
  color: #fff;
  text-decoration: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.p3-nav {
  display: flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.p3-nav a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.p3-nav a:hover { color: var(--news-red); }

.p3-leagues-scroll {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 16px 20px;
  background: var(--white);
  border-bottom: 3px solid var(--news-red);
}

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

.p3-league-chip img { width: 44px; height: 44px; object-fit: contain; display: block; margin: 0 auto 4px; }
.p3-league-chip span { font-size: 0.7rem; color: var(--slate); font-weight: 600; }

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

.p3-news-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.p3-news-hero {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.p3-news-hero img { width: 100%; height: 220px; object-fit: cover; }
.p3-news-hero-body { padding: 14px; }
.p3-news-hero-body a { color: var(--slate); text-decoration: none; font-weight: 700; }

.p3-news-list-side { display: flex; flex-direction: column; gap: 8px; }

.p3-news-list-side a {
  background: var(--white);
  padding: 12px;
  border-radius: 6px;
  text-decoration: none;
  color: #333;
  font-size: 0.88rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.p3-section-title {
  font-size: 1.1rem;
  color: var(--slate);
  margin: 20px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--news-red);
}

.p3-video-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.p3-video-chip {
  min-width: 200px;
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.p3-video-chip-body { padding: 10px; font-size: 0.82rem; }

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

.p3-player-circle {
  text-align: center;
  text-decoration: none;
  color: inherit;
  width: 80px;
}

.p3-player-circle img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--tag-blue);
  margin-bottom: 6px;
}

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

.p3-team-box {
  background: var(--white);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.p3-team-box:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.p3-team-box img { width: 48px; height: 48px; object-fit: contain; }

.p3-tag-cloud a {
  display: inline-block;
  margin: 4px 8px;
  padding: 4px 12px;
  background: var(--white);
  color: var(--tag-blue);
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid var(--tag-blue);
}

.p3-body .site-subtitle { color: var(--news-red); font-weight: 500; }
.p3-body .match_filter_item.on a { background: var(--slate) !important; color: #fff !important; }
.p3-body .info_right.start a { background: var(--news-red) !important; color: #fff !important; }

.p3-footer.footer-wrapper { background: var(--slate); color: rgba(255,255,255,0.85); }
.p3-footer p, .p3-footer .footer-desc { text-align: center; color: rgba(255,255,255,0.85); }
.p3-footer a { color: var(--news-red); }

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

.p3-body .match_allinfo { background: #fff; border-radius: 8px; }

@media (max-width: 768px) {
  .p3-news-split { grid-template-columns: 1fr; }
}
