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

:root {
  --navy: #1A3A5C;
  --event-red: #E63946;
  --bg-gray: #F5F5F5;
  --tag-orange: #FF6B35;
}

body.p1-body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--bg-gray);
  color: #333;
  line-height: 1.6;
}

h1, h2, h3, .p1-display {
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
}

.p1-header {
  background: var(--navy);
  color: #fff;
}

.p1-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;
}

.p1-logo a { color: #fff; text-decoration: none; font-size: 1.5rem; font-weight: 700; }

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

.p1-nav a { color: rgba(255,255,255,0.9); text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.p1-nav a:hover { color: var(--event-red); }

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

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

.p1-league-item img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.p1-league-item span { font-size: 0.75rem; color: var(--navy); font-weight: 600; }

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

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

.p1-news-featured {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  min-height: 280px;
  background: var(--navy);
}

.p1-news-featured img { width: 100%; height: 280px; object-fit: cover; opacity: 0.85; }
.p1-news-featured-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(26,58,92,0.95));
  color: #fff;
}

.p1-news-side { display: flex; flex-direction: column; gap: 10px; }

.p1-news-side a {
  background: #fff;
  padding: 14px;
  border-left: 4px solid var(--event-red);
  text-decoration: none;
  color: #333;
  border-radius: 4px;
  transition: transform 0.2s;
}

.p1-news-side a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }

.p1-score-bar {
  background: var(--navy);
  padding: 12px 0;
  overflow: hidden;
  margin-bottom: 20px;
}

.p1-score-track {
  display: flex;
  gap: 16px;
  animation: p1-scroll 30s linear infinite;
  width: max-content;
}

@keyframes p1-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.p1-score-item {
  background: rgba(255,255,255,0.1);
  padding: 10px 16px;
  border-radius: 6px;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  font-size: 0.85rem;
  min-width: 180px;
}

.p1-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 20px 0;
}

.p1-video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.p1-video-card:hover { transform: translateY(-4px); }

.p1-video-card-body { padding: 12px; font-size: 0.85rem; }
.p1-video-meta { font-size: 0.75rem; color: #888; margin-top: 6px; }

.p1-cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.p1-player-card, .p1-team-card {
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.p1-player-card:hover, .p1-team-card:hover { transform: translateY(-3px); }
.p1-player-card img, .p1-team-card img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 6px;
}

.p1-section-title {
  font-size: 1.2rem;
  color: var(--navy);
  border-left: 4px solid var(--event-red);
  padding-left: 12px;
  margin: 24px 0 12px;
}

.p1-tag-cloud {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  text-align: center;
  margin-top: 20px;
}

.p1-tag-cloud a {
  display: inline-block;
  margin: 6px 8px;
  color: var(--tag-orange);
  text-decoration: none;
  font-weight: 600;
}

.p1-tag-cloud a:nth-child(3n) { font-size: 1.3rem; }
.p1-tag-cloud a:nth-child(3n+1) { font-size: 0.9rem; }
.p1-tag-cloud a:nth-child(3n+2) { font-size: 1.1rem; }

.p1-body .site-subtitle { color: var(--event-red); font-weight: 600; }
.p1-body .match_filter_item.on a { background: var(--navy) !important; color: #fff !important; }
.p1-body .info_right.start a { background: var(--event-red) !important; color: #fff !important; }

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

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

.p1-body .match_allinfo { background: #fff; border-radius: 8px; }
.p1-body .position a { color: var(--navy); }
