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

:root {
  --night: #0F0F1A;
  --pink: #FF2D55;
  --ice: #00D4FF;
  --yellow: #FFD60A;
  --panel: rgba(20, 20, 35, 0.88);
  --panel-border: rgba(0, 212, 255, 0.22);
  --text: #c8d0e0;
  --text-dim: #7a8499;
  --sidebar-w: 240px;
  --max: 1200px;
  --glow-pink: 0 0 12px rgba(255, 45, 85, 0.55), 0 0 24px rgba(255, 45, 85, 0.25);
  --glow-ice: 0 0 12px rgba(0, 212, 255, 0.55), 0 0 24px rgba(0, 212, 255, 0.25);
  --glow-yellow: 0 0 10px rgba(255, 214, 10, 0.5);
}

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

body.p4-body {
  margin: 0;
  font-family: 'Exo 2', sans-serif;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% 20%, rgba(255, 45, 85, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 80% 60% at 85% 15%, rgba(0, 212, 255, 0.1) 0%, transparent 45%),
    radial-gradient(circle 180px at 20% 70%, rgba(255, 45, 85, 0.08) 0%, transparent 100%),
    radial-gradient(circle 140px at 75% 55%, rgba(0, 212, 255, 0.07) 0%, transparent 100%),
    radial-gradient(circle 100px at 50% 90%, rgba(255, 214, 10, 0.06) 0%, transparent 100%),
    radial-gradient(circle 60px at 90% 80%, rgba(255, 45, 85, 0.1) 0%, transparent 100%),
    radial-gradient(circle 50px at 5% 40%, rgba(0, 212, 255, 0.08) 0%, transparent 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
}

h1, h2, h3, .p4-neon-title, .p4-display {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: 0.4px;
}

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

img.lazy {
  background: rgba(15, 15, 26, 0.6);
  min-height: 1px;
}

.p4-body .header,
.p4-body .second-header { display: none !important; }

@keyframes p4-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes p4-neon-pulse {
  0%, 100% { box-shadow: var(--glow-ice); }
  50% { box-shadow: 0 0 20px rgba(0, 212, 255, 0.7), 0 0 40px rgba(0, 212, 255, 0.3); }
}

.p4-neon-blink {
  animation: p4-blink 2.5s ease-in-out infinite;
}

/* Shell + sidebar */
.p4-shell {
  min-height: 100vh;
  padding-left: var(--sidebar-w);
  box-sizing: border-box;
}

.p4-nav {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #12121f 0%, var(--night) 100%);
  border-right: 1px solid var(--panel-border);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 200;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.5), inset -1px 0 0 rgba(0, 212, 255, 0.15);
}

.p4-nav-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(255, 45, 85, 0.15) 0%, transparent 100%);
  pointer-events: none;
}

.p4-nav-logo {
  padding: 22px 16px 18px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 212, 255, 0.15);
  position: relative;
  z-index: 1;
}

.p4-nav-logo a {
  color: var(--ice);
  font-family: 'Orbitron', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  display: block;
  text-shadow: var(--glow-ice);
}

.p4-nav-logo img {
  max-height: 42px;
  max-width: 100%;
  filter: drop-shadow(0 0 8px rgba(0, 212, 255, 0.4));
}

.p4-nav-menu {
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  gap: 2px;
  flex: 1;
  position: relative;
  z-index: 1;
}

.p4-nav-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  color: rgba(200, 208, 224, 0.85);
  font-size: 0.9rem;
  font-weight: 500;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition: background 0.2s, color 0.2s, border-color 0.2s, text-shadow 0.2s;
}

.p4-nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: var(--glow-pink);
  flex-shrink: 0;
  animation: p4-blink 3s ease-in-out infinite;
}

.p4-nav-menu a:hover {
  background: rgba(255, 45, 85, 0.1);
  border-left-color: var(--pink);
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 45, 85, 0.5);
}

.p4-nav-hot {
  padding: 14px 16px 20px;
  border-top: 1px solid rgba(255, 45, 85, 0.2);
  position: relative;
  z-index: 1;
}

.p4-nav-hot-title {
  margin: 0 0 10px;
  font-size: 0.75rem;
  color: var(--pink);
  text-shadow: var(--glow-pink);
}

.p4-nav-hot a {
  display: block;
  padding: 4px 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.p4-nav-hot a:hover {
  color: var(--ice);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.5);
}

.p4-menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  background: var(--panel);
  border: 1px solid var(--ice);
  border-radius: 6px;
  color: var(--ice);
  font-size: 1.2rem;
  padding: 6px 10px;
  cursor: pointer;
  box-shadow: var(--glow-ice);
}

/* Main content */
.p4-content {
  margin-left: 0;
  min-width: 0;
  width: 100%;
  max-width: var(--max);
  box-sizing: border-box;
  padding: 0 28px 36px;
}

.p4-leagues-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 212, 255, 0.12);
  margin-bottom: 22px;
}

.p4-league-item {
  text-align: center;
  text-decoration: none;
  color: inherit;
  min-width: 76px;
  flex-shrink: 0;
  padding: 10px 8px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.p4-league-item:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

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

.p4-league-item span {
  font-size: 0.72rem;
  color: var(--ice);
}

.p4-news-split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  margin-bottom: 26px;
}

.p4-news-hero {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  border: 1px solid var(--panel-border);
  box-shadow: var(--glow-ice);
}

.p4-news-hero img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.p4-news-hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px;
  background: linear-gradient(transparent, rgba(15, 15, 26, 0.92));
  color: #fff;
  font-family: 'Orbitron', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-shadow: var(--glow-ice);
}

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

.p4-news-side a {
  background: var(--panel);
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  font-size: 0.88rem;
  border-left: 2px solid transparent;
  border: 1px solid var(--panel-border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.p4-news-side a:hover {
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}

.p4-section {
  font-size: 1.15rem;
  color: var(--ice);
  margin: 26px 0 14px;
  text-shadow: var(--glow-ice);
  border-left: 3px solid var(--pink);
  padding-left: 12px;
}

.p4-body .site-subtitle {
  color: var(--yellow);
  font-family: 'Exo 2', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 8px;
  text-shadow: var(--glow-yellow);
}

.p4-body .match_filter_item.on,
.p4-body .match_filter_item.on a {
  background: var(--pink) !important;
  color: #fff !important;
  box-shadow: var(--glow-pink);
}

.p4-body .info_right.start a {
  background: var(--pink) !important;
  color: #fff !important;
  box-shadow: var(--glow-pink);
  animation: p4-blink 2.2s ease-in-out infinite;
}

.p4-video-scroll {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 24px;
}

.p4-video-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  text-align: center;
  padding-bottom: 12px;
  min-width: 200px;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.p4-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow-ice);
  border-color: var(--ice);
}

.p4-video-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
}

.p4-video-card div {
  padding: 10px 12px 0;
  font-size: 0.85rem;
}

.p4-video-card span {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.p4-players-scroll {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 18px;
}

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

.p4-player-chip img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ice);
  margin-bottom: 7px;
  box-shadow: var(--glow-ice);
}

.p4-player-chip span {
  font-size: 0.8rem;
  color: var(--text);
}

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

.p4-team-cell {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}

.p4-team-cell:hover {
  transform: scale(1.04);
  box-shadow: var(--glow-pink);
  border-color: var(--pink);
}

.p4-team-cell img {
  width: 50px;
  height: 50px;
  object-fit: contain;
}

.p4-team-cell span {
  display: block;
  font-size: 0.78rem;
  margin-top: 7px;
  color: var(--text);
}

.p4-tags-group {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
}

.p4-tags-group a {
  padding: 6px 15px;
  background: rgba(255, 214, 10, 0.12);
  color: var(--yellow);
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 214, 10, 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}

.p4-tags-group a:hover {
  background: rgba(255, 214, 10, 0.22);
  box-shadow: var(--glow-yellow);
}

/* Footer */
.p4-footer.footer-wrapper {
  margin-left: 0;
  margin-top: 32px;
  background: rgba(10, 10, 18, 0.95);
  color: rgba(200, 208, 224, 0.85);
  border-radius: 10px;
  border: 1px solid var(--panel-border);
  box-shadow: inset 0 1px 0 rgba(0, 212, 255, 0.1);
}

.p4-footer p,
.p4-footer .footer-desc {
  text-align: center;
  color: rgba(200, 208, 224, 0.85);
}

.p4-footer a {
  color: var(--ice);
  text-shadow: 0 0 6px rgba(0, 212, 255, 0.3);
}

.p4-body .friend-wrapper a {
  color: var(--text-dim);
}

.p4-body .friend-wrapper a:hover {
  color: var(--ice);
}

/* Breadcrumb + pages */
.p4-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 0 24px;
}

.p4-breadcrumb {
  padding: 14px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.p4-breadcrumb a {
  color: var(--ice);
}

.p4-list-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 22px;
  align-items: start;
}

.p4-list-main {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 24px;
  min-width: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.p4-aside-box {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
}

.p4-aside-box h3 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ice);
  font-family: 'Orbitron', sans-serif;
  border-bottom: 2px solid var(--pink);
  padding-bottom: 8px;
  text-shadow: var(--glow-ice);
}

.p4-aside-link {
  display: block;
  padding: 8px 0;
  font-size: 0.82rem;
  color: var(--text);
  border-bottom: 1px solid rgba(0, 212, 255, 0.08);
}

.p4-aside-link:hover {
  color: var(--pink);
}

.p4-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.p4-aside-tags a {
  padding: 4px 11px;
  background: rgba(255, 214, 10, 0.1);
  color: var(--yellow);
  border-radius: 999px;
  font-size: 0.75rem;
  border: 1px solid rgba(255, 214, 10, 0.25);
}

.p4-detail h1 {
  margin: 0 0 14px;
  font-size: 1.3rem;
  color: var(--ice);
  line-height: 1.4;
  text-shadow: var(--glow-ice);
}

.p4-detail-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.p4-detail-meta a {
  color: var(--pink);
}

.p4-detail-body {
  line-height: 1.85;
  word-break: break-word;
  color: var(--text);
}

.p4-detail-body a {
  color: var(--ice);
}

.p4-detail-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 20px;
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  overflow: hidden;
}

.p4-detail-video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.p4-prenext {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 212, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p4-prenext a {
  color: var(--text);
  font-size: 0.88rem;
}

.p4-prenext a:hover {
  color: var(--ice);
}

.p4-record-play {
  color: var(--pink);
  font-weight: 600;
  text-shadow: var(--glow-pink);
}

/* Pagination */
.p4-body .fenye {
  margin-top: 24px;
  text-align: center;
}

.p4-body .fenye ul {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.p4-body .fenye ul li,
.p4-body .fenye ul a {
  display: inline-block;
  padding: 6px 14px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  color: var(--text);
  font-size: 0.88rem;
  transition: background 0.2s, box-shadow 0.2s;
}

.p4-body .fenye ul li:hover,
.p4-body .fenye ul a:hover {
  border-color: var(--ice);
  box-shadow: var(--glow-ice);
  color: var(--ice);
}

.p4-body .fenye ul li.active,
.p4-body .fenye ul li.active a {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  box-shadow: var(--glow-pink);
}

.p4-body .update-time {
  color: var(--text-dim);
  font-size: 0.82rem;
}

/* a1.css overrides for neon theme */
.p4-body .container {
  max-width: var(--max);
}

.p4-body .position {
  background: transparent;
  padding: 12px 0;
}

.p4-body .position .container,
.p4-body .position .crumb {
  color: var(--text-dim);
  font-size: 0.85rem;
}

.p4-body .position a,
.p4-body .position .crumb {
  color: var(--ice);
}

.p4-body .bgwhite {
  background: var(--panel) !important;
  border: 1px solid var(--panel-border);
  color: var(--text);
}

.p4-body .container.flex-between:has(.ny_leftside) {
  display: grid !important;
  grid-template-columns: 120px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
  float: none !important;
}

.p4-body .container.flex-between:not(:has(.ny_leftside)) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  float: none !important;
}

.p4-body .container.flex-between:has(.ny_leftside) .ny_leftside {
  position: static !important;
  left: auto !important;
  width: 100% !important;
  float: none !important;
}

.p4-body .container.flex-between:has(.ny_leftside) .ny_leftside .all {
  background: linear-gradient(135deg, var(--pink), #cc1a3d);
  width: 100%;
  color: #fff;
  text-shadow: var(--glow-pink);
}

.p4-body .container_left,
.p4-body .container_right {
  width: 100% !important;
  float: none !important;
  min-width: 0;
}

.p4-body .container_left .match-item {
  flex-direction: row !important;
  flex-wrap: nowrap !important;
}

.p4-body .ny_leftside .navlist li a:hover {
  color: var(--ice) !important;
}

.p4-body .luxianglist ul li a,
.p4-body .hot_news_list a {
  color: var(--text);
}

.p4-body .luxianglist ul li a:hover,
.p4-body .hot_news_list a:hover {
  color: var(--ice);
}

.p4-body .hottagmain a {
  background: rgba(255, 214, 10, 0.1);
  color: var(--yellow);
  border: 1px solid rgba(255, 214, 10, 0.25);
}

.p4-body .lmtit .lmname,
.p4-body .lmtit .lmname span {
  color: var(--ice) !important;
  text-shadow: var(--glow-ice);
}

.p4-body .match_allinfo .top {
  background: linear-gradient(135deg, #1a1a2e, var(--night));
  border-radius: 10px 10px 0 0;
  border: 1px solid var(--panel-border);
  box-shadow: var(--glow-ice);
}

.p4-body .match_allinfo .top,
.p4-body .match_allinfo .top p,
.p4-body .match_allinfo .qiudui_name {
  color: #fff;
}

.p4-body .match_allinfo .qiudui_bifen {
  font-family: 'Orbitron', sans-serif;
  color: var(--ice);
  text-shadow: var(--glow-ice);
}

.p4-body .match_analysis .senav span.on {
  background: var(--pink);
  color: #fff;
  box-shadow: var(--glow-pink);
}

.p4-body .zhibo_btn .redirectLink {
  background: var(--pink);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 6px;
  margin: 4px;
  display: inline-block;
  box-shadow: var(--glow-pink);
}

.p4-body .container.mt10.flex-between {
  display: grid !important;
  gap: 24px;
  float: none !important;
  padding-bottom: 40px;
}

.p4-body .match .match-item {
  background: rgba(15, 15, 26, 0.5);
  border: 1px solid rgba(0, 212, 255, 0.1);
  border-radius: 8px;
  margin-bottom: 8px;
}

.p4-body .match .match-item:hover {
  border-color: rgba(255, 45, 85, 0.3);
  box-shadow: 0 0 12px rgba(255, 45, 85, 0.15);
}

.p4-body .match .lmsenav a {
  color: var(--text-dim);
}

.p4-body .match .lmsenav a.on,
.p4-body .match .lmsenav .match_filter_item.on {
  color: var(--pink);
}

@media (max-width: 900px) {
  .p4-shell {
    padding-left: 0;
  }

  .p4-menu-toggle {
    display: block;
  }

  .p4-nav {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .p4-nav.open {
    transform: translateX(0);
  }

  .p4-content {
    max-width: 100%;
    padding: 56px 16px 28px;
  }

  .p4-news-split {
    grid-template-columns: 1fr;
  }

  .p4-list-layout {
    grid-template-columns: 1fr;
  }

  .p4-body .container.flex-between:has(.ny_leftside),
  .p4-body .container.flex-between:not(:has(.ny_leftside)) {
    grid-template-columns: 1fr;
  }
}
