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

:root {
  --white: #FFFFFF;
  --indigo: #6366F1;
  --rose: #F43F5E;
  --emerald: #10B981;
  --text: #1E293B;
  --muted: #64748B;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
  --max: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

body.p2-body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #F8FAFC;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Animated gradient blobs */
.p2-bg-blobs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.p2-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: p2-float 18s ease-in-out infinite;
}

.p2-blob-1 {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.55), transparent 70%);
  top: -120px;
  left: -80px;
}

.p2-blob-2 {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.4), transparent 70%);
  top: 30%;
  right: -100px;
  animation-delay: -6s;
}

.p2-blob-3 {
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35), transparent 70%);
  bottom: -140px;
  left: 25%;
  animation-delay: -12s;
}

@keyframes p2-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 25px) scale(0.95); }
}

/* Glass utility */
.p2-glass-card,
.p2-body .bgwhite,
.p2-body .match.bgwhite {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  box-shadow: var(--glass-shadow);
}

.p2-glass-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.2s, transform 0.2s;
}

.p2-glass-chip img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.p2-glass-chip:hover {
  border-color: var(--indigo);
  transform: translateY(-1px);
}

.p2-muted { color: var(--muted); font-size: 0.75rem; }

/* Header — glass nav */
.p2-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.08);
}

.p2-header-inner {
  max-width: var(--max);
  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(--indigo);
  font-weight: 700;
  font-size: 1.35rem;
}

.p2-logo img { max-height: 42px; max-width: 180px; }

.p2-menu-btn {
  display: none;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 1.2rem;
  color: var(--indigo);
  cursor: pointer;
}

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

.p2-nav a {
  display: block;
  padding: 8px 16px;
  color: var(--text);
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 10px;
  transition: background 0.2s, color 0.2s;
}

.p2-nav a:hover {
  background: rgba(99, 102, 241, 0.12);
  color: var(--indigo);
}

/* Live ticker */
.p2-live-banner {
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 63, 94, 0.2);
  padding: 10px 0;
  overflow: hidden;
}

.p2-live-track {
  display: flex;
  gap: 24px;
  animation: p2-scroll 30s 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: var(--text);
  font-size: 0.85rem;
  white-space: nowrap;
}

.p2-live-badge {
  background: var(--rose);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  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.55; }
}

/* League tabs */
.p2-league-tabs {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  overflow-x: auto;
}

/* Main content */
.p2-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 20px 40px;
}

.p2-section-title {
  margin: 0 0 14px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--indigo);
}

.p2-section-title.p2-accent { color: var(--rose); }

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

.p2-news-card {
  overflow: hidden;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.p2-news-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.18);
}

.p2-news-card img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  background: rgba(99, 102, 241, 0.08);
}

.p2-news-card-body {
  padding: 14px;
  font-size: 0.88rem;
  font-weight: 500;
}

.p2-news-date {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 6px;
  font-weight: 400;
}

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

.p2-masonry-item {
  break-inside: avoid;
  padding: 14px;
  margin-bottom: 14px;
  display: block;
  font-size: 0.85rem;
  transition: transform 0.2s;
}

.p2-masonry-item:hover { transform: translateY(-2px); }

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

.p2-player-rank {
  min-width: 130px;
  padding: 16px;
  text-align: center;
  flex-shrink: 0;
  border-color: rgba(244, 63, 94, 0.25) !important;
}

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

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

.p2-team-cell {
  padding: 14px 10px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
}

.p2-team-cell img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.p2-tags-group {
  padding: 20px;
  margin-top: 8px;
}

.p2-tag {
  display: inline-block;
  margin: 4px 8px 4px 0;
  padding: 5px 14px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.p2-tag:hover {
  background: var(--emerald);
  color: #fff;
}

/* a1.css overrides — glass light theme */
.p2-body .site-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  margin-left: 10px;
  font-weight: 400;
}

.p2-body .match_filter_item.on a,
.p2-body .match_filter_item.on {
  background: var(--indigo) !important;
  color: #fff !important;
  border-radius: 8px;
  padding: 2px 8px;
}

.p2-body .info_right.start a {
  background: var(--rose) !important;
  color: #fff !important;
}

.p2-body .match,
.p2-body .bgwhite {
  color: var(--text) !important;
}

.p2-body .position,
.p2-body .position a,
.p2-body .position .crumb {
  color: var(--muted) !important;
}

.p2-body .position a:hover { color: var(--indigo) !important; }

.p2-body .container_left,
.p2-body .container_right,
.p2-body .ny_newslist_leftside { color: var(--text); }

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

.p2-body .luxianglist ul li { border-bottom-color: rgba(99, 102, 241, 0.12) !important; }
.p2-body .luxianglist ul li a { color: var(--text) !important; }
.p2-body .luxianglist ul li span.time { color: var(--muted) !important; }

.p2-body .hot_news_list ul li {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: blur(8px);
}
.p2-body .hot_news_list ul li a { color: var(--text) !important; }
.p2-body .hot_news_list ul li span { color: var(--rose) !important; }

.p2-body .hotvideos .hotvideosmain .hot_video_item {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: blur(8px);
  border-radius: 12px;
}
.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: var(--text) !important; }
.p2-body .hotvideos .hotvideosmain .hot_video_item:hover {
  background: rgba(99, 102, 241, 0.1) !important;
}

.p2-body .hottag .hottagmain a {
  color: #047857 !important;
  background: rgba(16, 185, 129, 0.12) !important;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  margin: 4px;
  display: inline-block;
}
.p2-body .hottag .hottagmain a:hover {
  background: var(--emerald) !important;
  color: #fff !important;
}

.p2-body .fenye ul li a {
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
}
.p2-body .fenye ul li a:hover,
.p2-body .fenye ul li.active a {
  background: var(--indigo) !important;
  color: #fff !important;
}

.p2-body .ny_leftside {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}
.p2-body .ny_leftside .all {
  background: var(--indigo) !important;
  color: #fff !important;
}
.p2-body .ny_leftside .navlist li {
  background: transparent !important;
  border-bottom-color: rgba(99, 102, 241, 0.1) !important;
}
.p2-body .ny_leftside .navlist li a { color: var(--text) !important; }
.p2-body .ny_leftside .navlist li a:hover { color: var(--indigo) !important; }

.p2-body .article_content,
.p2-body .article_content.bgwhite {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  color: var(--text) !important;
}
.p2-body .article_tit { color: var(--text) !important; }
.p2-body .article_info,
.p2-body .article_info a,
.p2-body .article_info span { color: var(--muted) !important; }
.p2-body .article_info a:hover { color: var(--indigo) !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: var(--text) !important; }
.p2-body .article_content .nr a { color: var(--indigo) !important; }
.p2-body .article_content .nr .red,
.p2-body .article_content .nr .red a,
.p2-body .article_content .nr a.red { color: var(--rose) !important; }
.p2-body .article_content .art_tag { color: var(--indigo) !important; }

.p2-body .prenext a { color: var(--muted) !important; }
.p2-body .prenext a span,
.p2-body .prenext a.page-link { color: var(--indigo) !important; }

/* Match live detail */
.p2-body .match_allinfo .top {
  background: rgba(99, 102, 241, 0.08) !important;
  backdrop-filter: blur(12px);
  border-radius: 16px;
}
.p2-body .match_allinfo .match_info.bgwhite {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  color: var(--text) !important;
}
.p2-body .match_allinfo .match_info p,
.p2-body .match_allinfo .match_info p.t1 { color: var(--text) !important; }
.p2-body .match_allinfo .match_info a { color: var(--indigo) !important; }
.p2-body .match_allinfo .tagys {
  background: rgba(255, 255, 255, 0.5) !important;
  color: var(--text) !important;
}
.p2-body .match_allinfo .zhuangtai,
.p2-body .match_allinfo .zhuangtai span { color: var(--muted) !important; }

.p2-body .match_analysis.bgwhite {
  background: var(--glass-bg) !important;
  backdrop-filter: blur(16px);
  color: var(--text) !important;
}
.p2-body .match_analysis .senav { border-bottom-color: rgba(99, 102, 241, 0.15) !important; }
.p2-body .match_analysis .senav span { color: var(--muted) !important; }
.p2-body .match_analysis .senav span.on {
  color: var(--indigo) !important;
  border-bottom-color: var(--indigo) !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: var(--text) !important; }
.p2-body .match_analysis .item a { color: var(--indigo) !important; }

.p2-body .zhibo_btn a,
.p2-body .redirectLink {
  color: var(--indigo) !important;
  background: rgba(99, 102, 241, 0.1) !important;
  border-radius: 8px;
  padding: 6px 12px;
  margin: 4px;
  display: inline-block;
}

.p2-body .update-time { color: var(--muted) !important; font-size: 0.85rem; }

.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: var(--text) !important; }

.p2-body .match-item { border-bottom-color: rgba(99, 102, 241, 0.1) !important; }
.p2-body .match-item .info_right a {
  background: rgba(99, 102, 241, 0.1) !important;
  color: var(--indigo) !important;
  border-color: rgba(99, 102, 241, 0.2) !important;
  border-radius: 8px;
}
.p2-body .match-item .info_right.start a {
  background: var(--rose) !important;
  color: #fff !important;
}

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

.p2-body .br10 { border-radius: 16px !important; }

/* Footer */
.p2-footer.footer-wrapper {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  margin-top: 32px;
  padding: 28px 20px;
}

.p2-footer .container { text-align: center; }

.p2-footer p,
.p2-footer .footer-desc {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 6px 0;
}

.p2-footer a { color: var(--indigo); }

.p2-body .friend-wrapper a {
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 12px;
}

.p2-body .friend-wrapper a:hover { color: var(--indigo); }

/* Responsive */
@media (max-width: 768px) {
  .p2-menu-btn { display: block; }

  .p2-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: 8px;
  }

  .p2-nav.open { display: flex; }

  .p2-news-grid { grid-template-columns: 1fr; }
  .p2-masonry { columns: 1; }
  .p2-header-inner { padding: 12px 16px; }
  .p2-main { padding: 8px 16px 32px; }
}

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