@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@400;500;600&display=swap');

:root {
  --dark: #0D1117;
  --neon: #00E5FF;
  --highlight: #FF4655;
  --tag-gold: #F7C948;
}

body.p2-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: #c9d1d9;
  line-height: 1.5;
}

h1, h2, h3, .p2-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.p2-header { background: #161b22; border-bottom: 2px solid var(--highlight); }
.p2-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;
}
.p2-logo a { color: var(--neon); text-decoration: none; font-family: 'Bebas Neue', sans-serif; font-size: 1.8rem; }
.p2-nav { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.p2-nav a { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9rem; }
.p2-nav a:hover { color: var(--neon); }

.p2-live-banner {
  background: linear-gradient(90deg, #161b22, #21262d);
  border-bottom: 1px solid var(--highlight);
  padding: 10px 0;
  overflow: hidden;
}

.p2-live-track {
  display: flex;
  gap: 20px;
  animation: p2-scroll 25s linear infinite;
  width: max-content;
}

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

.p2-live-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  white-space: nowrap;
}

.p2-live-badge {
  background: var(--highlight);
  color: #fff;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 700;
  animation: p2-blink 1.5s ease-in-out infinite;
}

@keyframes p2-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.p2-league-tabs {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.p2-league-tabs a {
  padding: 6px 16px;
  border: 1px solid var(--neon);
  color: var(--neon);
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.85rem;
}

.p2-league-tabs a:hover { background: rgba(0,229,255,0.15); }

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

.p2-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}

.p2-news-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.p2-news-card:hover { border-color: var(--neon); }
.p2-news-card img { width: 100%; height: 120px; object-fit: cover; background: #21262d; }
.p2-news-card-body { padding: 12px; font-size: 0.85rem; }
.p2-news-date { font-size: 0.75rem; color: #8b949e; margin-top: 6px; }

.p2-schedule {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
}

.p2-schedule table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.p2-schedule th { background: #21262d; color: var(--neon); padding: 10px; text-align: left; }
.p2-schedule td { padding: 10px; border-top: 1px solid #30363d; color: #c9d1d9; }
.p2-schedule a { color: var(--neon); text-decoration: none; }

.p2-masonry {
  columns: 3;
  column-gap: 14px;
  margin-bottom: 24px;
}

.p2-masonry-item {
  break-inside: avoid;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 14px;
  text-decoration: none;
  color: inherit;
  display: block;
  font-size: 0.85rem;
}

.p2-players-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 24px;
}

.p2-player-rank {
  min-width: 140px;
  background: #161b22;
  border: 1px solid var(--highlight);
  border-radius: 6px;
  padding: 14px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.p2-player-rank img { width: 48px; height: 48px; border-radius: 50%; margin-bottom: 8px; }

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

.p2-team-cell {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 12px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  font-size: 0.75rem;
  transition: border-color 0.2s;
}

.p2-team-cell:hover { border-color: var(--neon); }
.p2-team-cell img { width: 40px; height: 40px; object-fit: contain; display: block; margin: 0 auto 6px; }

.p2-tags-group {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  padding: 16px;
  margin-top: 20px;
}

.p2-tags-group h3 { color: var(--tag-gold); margin: 0 0 12px; font-size: 1rem; }
.p2-tags-group a {
  display: inline-block;
  margin: 4px 8px;
  padding: 4px 12px;
  border: 1px solid #30363d;
  color: var(--tag-gold);
  text-decoration: none;
  border-radius: 20px;
  font-size: 0.8rem;
}

.p2-body .site-subtitle { color: #8b949e; }
.p2-body .match_filter_item.on a { background: var(--highlight) !important; color: #fff !important; }
.p2-body .info_right.start a { background: var(--neon) !important; color: var(--dark) !important; }
.p2-body .match, .p2-body .bgwhite { background: #161b22 !important; color: #c9d1d9 !important; }
.p2-body .position, .p2-body .position a, .p2-body .position .crumb { color: #c9d1d9 !important; }
.p2-body .position a:hover { color: var(--neon) !important; }

/* 列表页 — 深色背景下浅色文字 */
.p2-body .container_left,
.p2-body .container_right,
.p2-body .ny_newslist_leftside { color: #c9d1d9; }

.p2-body .lmname,
.p2-body .lmname span,
.p2-body .lmtit .lmname,
.p2-body .lmtit h1.lmname { color: var(--neon) !important; }

.p2-body .luxianglist ul li { border-bottom-color: #30363d !important; }
.p2-body .luxianglist ul li a { color: #fff !important; }
.p2-body .luxianglist ul li span.time { color: rgba(255,255,255,0.5) !important; }

.p2-body .hot_news_list ul li { background: rgba(255,255,255,0.06) !important; }
.p2-body .hot_news_list ul li a { color: #fff !important; }
.p2-body .hot_news_list ul li span { color: var(--highlight) !important; }

.p2-body .hotvideos .hotvideosmain .hot_video_item { background: rgba(255,255,255,0.06) !important; }
.p2-body .hotvideos .hotvideosmain .hot_video_item a,
.p2-body .hotvideos .hotvideosmain .hot_video_item a p,
.p2-body .hotvideos .hotvideosmain .hot_video_item a .nr { color: #fff !important; }
.p2-body .hotvideos .hotvideosmain .hot_video_item:hover { background: rgba(0,229,255,0.1) !important; }
.p2-body .hotvideos .hotvideosmain .hot_video_item:hover a,
.p2-body .hotvideos .hotvideosmain .hot_video_item:hover a p { color: var(--neon) !important; }

.p2-body .hottag .hottagmain a {
  color: var(--tag-gold) !important;
  background: rgba(247,201,72,0.1) !important;
  border: 1px solid rgba(247,201,72,0.3);
}
.p2-body .hottag .hottagmain a:hover {
  background: var(--tag-gold) !important;
  color: var(--dark) !important;
}

.p2-body .fenye ul li a {
  color: #c9d1d9 !important;
  background: rgba(255,255,255,0.08) !important;
}
.p2-body .fenye ul li a:hover,
.p2-body .fenye ul li.active a {
  background: var(--highlight) !important;
  color: #fff !important;
}

.p2-body .ny_leftside { background: #161b22 !important; border: 1px solid #30363d; }
.p2-body .ny_leftside .all { background: var(--highlight) !important; color: #fff !important; }
.p2-body .ny_leftside .navlist li { background: #161b22 !important; border-bottom-color: #30363d !important; }
.p2-body .ny_leftside .navlist li a { color: #c9d1d9 !important; }
.p2-body .ny_leftside .navlist li a:hover { color: var(--neon) !important; }

.p2-body .newslist ul li .tit,
.p2-body .newslist ul li .tit a,
.p2-body .newslist ul li .desc,
.p2-body .newslist ul li .st { color: #fff !important; }
.p2-body .newslist ul li:after { border-bottom-color: #30363d !important; }

.p2-body .article_content,
.p2-body .article_content.bgwhite { background: #161b22 !important; color: #c9d1d9 !important; }
.p2-body .article_tit { color: #fff !important; }
.p2-body .article_info,
.p2-body .article_info a,
.p2-body .article_info span { color: rgba(255,255,255,0.55) !important; }
.p2-body .article_info a:hover { color: var(--neon) !important; }
.p2-body .article_content .nr,
.p2-body .article_content .nr p,
.p2-body .article_content .nr li,
.p2-body .article_content .nr span,
.p2-body .article_content .nr div,
.p2-body .article_content .nr h2,
.p2-body .article_content .nr h3,
.p2-body .article_content .nr h4,
.p2-body .article_content .nr td,
.p2-body .article_content .nr th,
.p2-body .article_content .nr blockquote { color: #c9d1d9 !important; }
.p2-body .article_content .nr a { color: var(--neon) !important; }
.p2-body .article_content .nr .red,
.p2-body .article_content .nr .red a,
.p2-body .article_content .nr a.red { color: var(--highlight) !important; }
.p2-body .article_content .art_tag { color: var(--neon) !important; }

.p2-body .prenext a { color: rgba(255,255,255,0.55) !important; }
.p2-body .prenext a span,
.p2-body .prenext a.page-link { color: var(--neon) !important; }

/* 球员 / 球队详情 */
.p2-body .qdqyinfo .qdqy_logo { background: #0d1117 !important; color: #fff !important; }
.p2-body .qdqyinfo .qdqy_logo h1,
.p2-body .qdqyinfo .qdqy_logo p { color: #fff !important; }
.p2-body .qdqy_lmtit { color: var(--neon) !important; }
.p2-body .qdqyinfo .qy_qyxx ul { border-color: #30363d !important; }
.p2-body .qdqyinfo .qy_qyxx ul li {
  border-color: #30363d !important;
  color: rgba(255,255,255,0.5) !important;
  background: #161b22 !important;
}
.p2-body .qdqyinfo .qy_qyxx ul li span { color: #fff !important; }
.p2-body .qdqyinfo .qy_qyxx ul li a { color: var(--neon) !important; }

/* 赛事直播详情 */
.p2-body .match_allinfo .top { background: #0d1117 !important; }
.p2-body .match_allinfo .match_info.bgwhite { background: #161b22 !important; color: #c9d1d9 !important; }
.p2-body .match_allinfo .match_info p,
.p2-body .match_allinfo .match_info p.t1 { color: #fff !important; }
.p2-body .match_allinfo .match_info a { color: var(--neon) !important; }
.p2-body .match_allinfo .tagys { background: rgba(255,255,255,0.08) !important; color: #c9d1d9 !important; }
.p2-body .match_allinfo .zhuangtai,
.p2-body .match_allinfo .zhuangtai span { color: rgba(255,255,255,0.55) !important; }

.p2-body .match_analysis.bgwhite { background: #161b22 !important; color: #c9d1d9 !important; }
.p2-body .match_analysis .senav { border-bottom-color: #30363d !important; }
.p2-body .match_analysis .senav span { color: rgba(255,255,255,0.5) !important; }
.p2-body .match_analysis .senav span.on { color: #fff !important; border-bottom-color: var(--neon) !important; }
.p2-body .match_analysis .item,
.p2-body .match_analysis .item p,
.p2-body .match_analysis .item strong,
.p2-body .match_analysis .item .title,
.p2-body .match_analysis .item h2,
.p2-body .match_analysis .column_hd p { color: #c9d1d9 !important; }
.p2-body .match_analysis .item a { color: var(--neon) !important; }
.p2-body .match_analysis .tabmain .sqfx,
.p2-body .match_analysis .tabmain .bszr,
.p2-body .match_analysis .tabmain .jstj,
.p2-body .match_analysis .tabmain .bcsk { color: #c9d1d9 !important; }

.p2-body .zhibo_btn a,
.p2-body .redirectLink { color: var(--neon) !important; background: rgba(0,229,255,0.1) !important; }

.p2-body .container_left,
.p2-body .container_right { color: #c9d1d9; }

.p2-body .update-time { color: rgba(255,255,255,0.6) !important; }

/* 赛事列表页 */
.p2-body .match-item .info_left .time,
.p2-body .match-item .info_left .league,
.p2-body .match-item .info_left .league a,
.p2-body .match-item .info_center .text,
.p2-body .match-item .info_center .text a,
.p2-body .match-item .info_center .score,
.p2-body .match-item .info_center .hscore,
.p2-body .match-item .info_center .vscore,
.p2-body .match_time { color: #fff !important; }

.p2-body .match-item { border-bottom-color: #30363d !important; }
.p2-body .match-item .info_right a { background: rgba(255,255,255,0.1) !important; color: #fff !important; border-color: #30363d !important; }
.p2-body .match-item .info_right.start a { background: var(--highlight) !important; color: #fff !important; }

.p2-body .team_rank_main,
.p2-body .team_rank_main .team_rank_score li { background: #161b22 !important; color: #c9d1d9 !important; }
.p2-body .team_rank_main .team_rank_score li span { color: #c9d1d9 !important; }
.p2-body .team_rank_main div.team_rank_score_name { background: rgba(255,255,255,0.06) !important; }
.p2-body .team_rank_main div.team_rank_score_name span { color: rgba(255,255,255,0.6) !important; }
.p2-body .team_rank_main .team_rank_match_saishi,
.p2-body .team_rank_main .team_rank_match_saishi_east_west { background: rgba(255,255,255,0.08) !important; }
.p2-body .team_rank_main .team_rank_match_saishi span,
.p2-body .team_rank_main .team_rank_match_saishi_east_west span { color: #c9d1d9 !important; }
.p2-body .team_rank_main .team_rank_match_saishi span.on,
.p2-body .team_rank_main .team_rank_match_saishi_east_west span.on { background: var(--highlight) !important; color: #fff !important; }

.p2-body .hotsaishi .hotsaishimain a p { color: #c9d1d9 !important; }

.p2-footer.footer-wrapper { background: #010409; border-top: 2px solid var(--highlight); }
.p2-footer p, .p2-footer .footer-desc { text-align: center; color: #8b949e; }
.p2-footer a { color: var(--neon); }

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

@media (prefers-reduced-motion: reduce) {
  .p2-live-track, .p2-live-badge { animation: none; }
}

.p2-body .match_allinfo h1,
.p2-body .match_allinfo .qiudui_name,
.p2-body .match_allinfo .qiudui_bifen { color: #fff !important; }
.p2-body .match_allinfo a { color: var(--neon) !important; }
