@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --black: #0D0D0D;
  --gold: #D4AF37;
  --ruby: #C41E3A;
  --dark-gold: #B8860B;
  --panel: #141414;
  --panel-border: rgba(212, 175, 55, 0.35);
  --text: #e8e0d0;
  --text-muted: #9a9080;
  --sidebar-w: 260px;
  --max: 1100px;
}

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

body.p3-body {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 17px;
  background: var(--black);
  color: var(--text);
  line-height: 1.65;
}

h1, h2, h3, .p3-display {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

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

img.lazy {
  background: #1a1a1a;
  min-height: 1px;
}

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

.p3-panel {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, #121212 0%, var(--black) 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);
}

.p3-logo {
  padding: 28px 20px 20px;
  text-align: center;
  border-bottom: 1px solid var(--panel-border);
}

.p3-logo a {
  font-family: 'Cinzel', serif;
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1.3;
  display: block;
  text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.p3-logo img {
  max-height: 48px;
  max-width: 100%;
}

.p3-nav {
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  flex: 1;
}

.p3-nav a {
  display: block;
  padding: 14px 24px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.p3-nav a:first-child {
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.p3-nav a:hover {
  background: rgba(212, 175, 55, 0.08);
  color: var(--gold);
  padding-left: 30px;
}

.p3-user-card {
  margin: 16px 16px 12px;
  padding: 14px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(196, 30, 58, 0.08));
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.p3-user-card img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}

.p3-user-info strong {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.85rem;
  color: var(--gold);
}

.p3-user-info span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.p3-panel-hot {
  padding: 12px 20px 24px;
  border-top: 1px solid var(--panel-border);
}

.p3-panel-hot .p3-display {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.p3-panel-hot a {
  display: block;
  padding: 5px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.p3-panel-hot a:hover { color: var(--gold); }

.p3-menu-toggle {
  display: none;
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 300;
  background: var(--panel);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.2rem;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 4px;
}

/* Main content */
.p3-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 40px;
  min-width: 0;
}

.p3-content {
  max-width: var(--max);
  margin: 0 auto;
  padding: 28px 32px 40px;
  min-width: 0;
}

/* Leagues */
.p3-leagues {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 0 24px;
  margin-bottom: 8px;
}

.p3-league-icon {
  text-align: center;
  min-width: 76px;
  flex-shrink: 0;
  padding: 12px 10px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color 0.2s, transform 0.2s;
}

.p3-league-icon:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.p3-league-icon img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  margin: 0 auto 6px;
}

.p3-league-icon span {
  font-size: 0.72rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

/* News block */
.p3-news-block {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
  margin-bottom: 28px;
}

.p3-news-hero {
  position: relative;
  display: block;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
  transition: border-color 0.2s;
}

.p3-news-hero:hover { border-color: var(--gold); }

.p3-news-hero img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.p3-news-hero-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 18px 20px;
  background: linear-gradient(transparent, rgba(13, 13, 13, 0.92));
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
}

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

.p3-news-list a {
  padding: 14px 16px;
  border: 1px solid var(--panel-border);
  border-left: 3px solid var(--ruby);
  border-radius: 4px;
  background: var(--panel);
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}

.p3-news-list a:hover {
  background: rgba(212, 175, 55, 0.06);
  border-left-color: var(--gold);
  color: var(--gold);
}

/* Section titles */
.p3-section {
  font-size: 1.2rem;
  color: var(--gold);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}

.p3-body .site-subtitle {
  color: var(--ruby);
  font-weight: 500;
  font-size: 0.95rem;
  margin-left: 8px;
}

/* Match list (contest_list) */
.p3-body .match {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 24px;
}

.p3-body .match h1 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--gold);
}

.p3-body .lmtit .lmname {
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  color: var(--gold);
}

.p3-body .match_filter_item.on,
.p3-body .match_filter_item.on a {
  background: var(--gold) !important;
  color: var(--black) !important;
  border-radius: 4px !important;
}

.p3-body .info_right.start a {
  background: var(--ruby) !important;
  color: #fff !important;
  border-radius: 4px !important;
}

.p3-body .match-item {
  border-bottom: 1px solid rgba(212, 175, 55, 0.12);
}

.p3-body .load_more {
  border: 1px solid var(--panel-border) !important;
  border-radius: 4px !important;
  background: var(--black) !important;
  color: var(--gold) !important;
  font-family: 'Cinzel', serif;
}

/* Video grid */
.p3-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.p3-video-card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
  display: block;
  color: inherit;
  padding-bottom: 14px;
}

.p3-video-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.p3-video-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  background: #1a1a1a;
  display: block;
  margin-bottom: 10px;
}

.p3-video-card div {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  color: var(--gold);
  padding: 0 10px;
}

.p3-video-card span {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Players */
.p3-players {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.p3-player-circle {
  text-align: center;
  min-width: 88px;
  flex-shrink: 0;
}

.p3-player-circle img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
  margin-bottom: 6px;
  background: var(--panel);
}

.p3-player-circle span {
  font-size: 0.82rem;
  color: var(--text);
}

/* Teams */
.p3-teams {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.p3-team-badge {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color 0.2s;
}

.p3-team-badge:hover { border-color: var(--gold); }

.p3-team-badge img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.p3-team-badge span {
  display: block;
  font-size: 0.76rem;
  margin-top: 6px;
  color: var(--text-muted);
}

/* Tags */
.p3-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  margin-bottom: 20px;
}

.p3-tags a {
  padding: 5px 14px;
  background: rgba(184, 134, 11, 0.15);
  color: var(--dark-gold);
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(184, 134, 11, 0.4);
  transition: background 0.2s, color 0.2s;
}

.p3-tags a:hover {
  background: var(--dark-gold);
  color: var(--black);
}

/* Footer */
.p3-friends {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 16px 0 8px;
}

.p3-friends a {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.p3-friends a:hover { color: var(--gold); }

.p3-footer {
  margin-top: 20px;
  padding: 28px 20px;
  text-align: center;
  border-top: 1px solid var(--panel-border);
  line-height: 1.9;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.p3-footer a { color: var(--gold); }

/* Breadcrumb */
.p3-breadcrumb {
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.p3-breadcrumb a { color: var(--gold); }

/* Detail / article */
.p3-detail-wrap {
  display: grid;
  grid-template-columns: minmax(0, 700px) 1fr;
  gap: 28px;
  align-items: start;
}

.p3-article {
  max-width: 700px;
  padding: 28px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
}

.p3-article h1 {
  margin: 0 0 14px;
  font-size: 1.6rem;
  color: var(--gold);
  line-height: 1.35;
}

.p3-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--panel-border);
}

.p3-article-meta a { color: var(--ruby); }

.p3-article-body {
  line-height: 1.85;
  word-break: break-word;
}

.p3-article-body a { color: var(--gold); }

.p3-article-cover img {
  width: 100%;
  border-radius: 4px;
  border: 1px solid var(--panel-border);
  margin-bottom: 18px;
}

.p3-article-video {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 18px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-border);
}

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

.p3-prenext {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
}

.p3-prenext a:hover { color: var(--gold); }

.p3-record-play {
  display: inline-block;
  padding: 10px 20px;
  background: var(--ruby);
  color: #fff !important;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
}

/* Aside */
.p3-aside {
  position: sticky;
  top: 24px;
}

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

.p3-aside-box h3 {
  margin: 0 0 10px;
  font-size: 1rem;
  color: var(--gold);
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
}

.p3-aside-link {
  display: block;
  padding: 7px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px dotted rgba(212, 175, 55, 0.15);
}

.p3-aside-link:hover { color: var(--gold); }

.p3-aside-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.p3-aside-tags a {
  padding: 4px 10px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--dark-gold);
  border-radius: 20px;
  font-size: 0.75rem;
  border: 1px solid rgba(184, 134, 11, 0.35);
}

/* List pages */
.p3-list-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.p3-list-head h1 {
  margin: 0;
  font-size: 1.5rem;
  color: var(--gold);
}

.p3-list-row {
  display: flex;
  gap: 16px;
  padding: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  transition: border-color 0.2s;
}

.p3-list-row:hover { border-color: var(--gold); }

.p3-list-row img {
  width: 130px;
  height: 88px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  background: #1a1a1a;
}

.p3-list-body { flex: 1; min-width: 0; }

.p3-list-body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

.p3-list-body p {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.p3-list-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.p3-list-main {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel);
  padding: 24px;
  min-width: 0;
}

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

/* Fenye pagination */
.p3-body .fenye {
  display: flex;
  justify-content: center;
  padding: 28px 0 8px;
  clear: both;
}

.p3-body .fenye ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: center;
}

.p3-body .fenye ul li { margin: 0; }

.p3-body .fenye ul li a {
  display: block;
  padding: 8px 15px;
  font-family: 'Cinzel', serif;
  font-size: 0.9rem;
  color: var(--gold);
  background: var(--black);
  border: 1px solid var(--panel-border);
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
}

.p3-body .fenye ul li a:hover {
  background: var(--gold);
  color: var(--black);
}

.p3-body .fenye ul li.active a {
  background: var(--ruby);
  color: #fff;
  border-color: var(--ruby);
}

/* MatchLive hero (t192 adapted) */
.p3-live-hero {
  background: linear-gradient(135deg, #1a1208 0%, var(--black) 50%, #1a0810 100%);
  border: 1px solid var(--panel-border);
  border-radius: 8px;
  padding: 36px 24px;
  margin-bottom: 24px;
  text-align: center;
}

.p3-live-hero h1 {
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 0 8px;
}

.p3-live-status {
  color: var(--ruby);
  font-size: 1rem;
  margin-bottom: 8px;
}

.p3-live-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.p3-live-meta b { color: var(--gold); }

.p3-live-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.p3-live-team {
  flex: 1;
  min-width: 120px;
  max-width: 200px;
}

.p3-live-team img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
}

.p3-live-team p {
  margin: 0;
  font-family: 'Cinzel', serif;
  color: var(--text);
  font-size: 0.95rem;
}

.p3-live-score {
  font-family: 'Cinzel', serif;
  font-size: 2rem;
  color: var(--gold);
  font-weight: 700;
  min-width: 100px;
}

.p3-signals {
  margin: 24px 0;
  padding: 20px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: 6px;
}

.p3-signals-title {
  font-family: 'Cinzel', serif;
  color: var(--gold);
  margin: 0 0 14px;
  font-size: 1rem;
}

.p3-signals .redirectLink,
.p3-signals .btn {
  display: inline-block;
  padding: 10px 20px;
  margin: 4px;
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  color: var(--black) !important;
  border-radius: 4px;
  font-family: 'Cinzel', serif;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
}

.p3-signals .redirectLink:hover { opacity: 0.85; }

.p3-related {
  margin-top: 24px;
}

.p3-related h3 {
  font-size: 1.1rem;
  color: var(--gold);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--panel-border);
}

.p3-related-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(212, 175, 55, 0.1);
  flex-wrap: wrap;
}

.p3-related-time {
  min-width: 80px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.p3-related-time .up { color: var(--gold); font-weight: 600; }

.p3-related-match {
  flex: 1;
  min-width: 140px;
  color: var(--text);
}

.p3-related-league {
  min-width: 80px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.p3-related-btn a {
  display: inline-block;
  padding: 6px 16px;
  background: var(--ruby);
  color: #fff;
  border-radius: 4px;
  font-size: 0.82rem;
  font-family: 'Cinzel', serif;
}

.p3-related-btn a:hover { background: var(--gold); color: var(--black); }

/* a1.css overrides */
.p3-body .header,
.p3-body .second-header { display: none !important; }

.p3-body .container {
  max-width: 100%;
  width: 100% !important;
  margin: 0;
}

.p3-body .position {
  background: transparent;
  padding: 8px 0;
}

.p3-body .position .container {
  width: 100% !important;
  margin: 0;
  padding: 0;
}

.p3-body .position .crumb { color: var(--gold); }

.p3-body .container.flex-between {
  flex-wrap: nowrap !important;
  justify-content: stretch !important;
}

.p3-body .container.flex-between:has(.ny_leftside) {
  display: grid !important;
  grid-template-columns: 100px minmax(0, 1fr) 240px;
  gap: 14px;
  align-items: start;
  float: none !important;
  padding-bottom: 32px;
}

.p3-body .container.flex-between:not(:has(.ny_leftside)) {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 18px;
  align-items: start;
  float: none !important;
  padding-bottom: 32px;
}

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

.p3-body .container.flex-between:has(.ny_leftside) .ny_leftside .all {
  background: var(--gold);
  color: var(--black);
  border-radius: 4px;
  width: 100% !important;
  line-height: 48px;
  font-size: 0.85rem;
  font-family: 'Cinzel', serif;
}

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

/* column 赛事列表：压缩行宽，防止按钮溢出 */
.p3-body .match_zhibo_list.match_box {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.p3-body .match_zhibo_list.match_box > .match_box {
  width: 100%;
  flex-basis: 100%;
}

.p3-body .match_zhibo_list .match_time {
  margin: 12px 0 8px !important;
  width: auto !important;
}

.p3-body .container_left .match-item {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  padding: 10px 6px !important;
  font-size: 13px !important;
  justify-content: flex-start !important;
}

.p3-body .container_left .match-item .info_left {
  width: auto !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  align-items: center !important;
  gap: 4px;
}

.p3-body .container_left .match-item .info_left .time {
  min-width: 0 !important;
  padding-right: 4px !important;
  font-size: 12px !important;
}

.p3-body .container_left .match-item .info_left .time em {
  padding-left: 4px !important;
}

.p3-body .container_left .match-item .info_left .league {
  width: 48px !important;
  padding-right: 4px !important;
  font-size: 11px !important;
}

.p3-body .container_left .match-item .info_center {
  display: flex !important;
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  float: none !important;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.p3-body .container_left .match-item .info_center .home,
.p3-body .container_left .match-item .info_center .away {
  width: auto !important;
  float: none !important;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 !important;
}

.p3-body .container_left .match-item .info_center .home .left,
.p3-body .container_left .match-item .info_center .away .right {
  width: 100% !important;
  max-width: 100%;
  min-width: 0;
}

.p3-body .container_left .match-item .info_center .home .left > img,
.p3-body .container_left .match-item .info_center .away .right > img {
  width: 22px !important;
  max-height: 22px !important;
  flex-shrink: 0;
}

.p3-body .container_left .match-item .info_center .home .left .text,
.p3-body .container_left .match-item .info_center .away .right .text {
  width: auto !important;
  max-width: 100%;
  padding-left: 4px !important;
  font-size: 12px !important;
}

.p3-body .container_left .match-item .info_center .score {
  width: auto !important;
  flex: 0 0 auto;
  flex-direction: row !important;
  float: none !important;
  font-size: 13px !important;
  padding: 0 4px;
  color: var(--gold);
  font-family: 'Cinzel', serif;
}

.p3-body .container_left .match-item .info_center .score .fenge {
  display: inline !important;
  padding: 0 4px !important;
}

.p3-body .container_left .match-item .info_right {
  flex: 0 0 auto;
  width: auto !important;
  max-width: 72px;
}

.p3-body .container_left .match-item .info_right a {
  width: 100% !important;
  max-width: 72px;
  font-size: 11px !important;
  line-height: 24px !important;
  padding: 0 4px;
  box-sizing: border-box;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: rgba(212, 175, 55, 0.15) !important;
  border: 1px solid var(--panel-border) !important;
  color: var(--gold) !important;
  border-radius: 4px !important;
}

.p3-body .container_left .match-item .info_right.start a {
  background: var(--ruby) !important;
  border-color: var(--ruby) !important;
  color: #fff !important;
}

.p3-body .container_right .hotvideos .hotvideosmain {
  display: block !important;
}

.p3-body .container_right .hotvideos .hotvideosmain .hot_video_item {
  width: 100% !important;
  height: auto !important;
  box-sizing: border-box;
  margin-top: 8px !important;
  background: rgba(212, 175, 55, 0.06) !important;
}

.p3-body .container_right .hot_news_list ul li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1280px) {
  .p3-main {
    max-width: calc(100vw - var(--sidebar-w) - 24px);
    padding-left: 16px;
    padding-right: 16px;
  }

  .p3-body .container.flex-between:has(.ny_leftside) {
    grid-template-columns: 92px minmax(0, 1fr) 210px;
    gap: 10px;
  }
}

@media (min-width: 901px) {
  .p3-body .container_left,
  .p3-body .container_right {
    width: 100% !important;
    float: none !important;
  }
}

.p3-body .container_left .match.bgwhite {
  overflow: visible !important;
}

.p3-body .bgwhite {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  background: var(--panel) !important;
}

.p3-body .match_allinfo {
  border: 1px solid var(--panel-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--panel);
}

.p3-body .match_allinfo .top {
  background: linear-gradient(135deg, #2a2010, #1a1008);
}

.p3-body .match_allinfo .top,
.p3-body .match_allinfo .top p,
.p3-body .match_allinfo .qiudui_name { color: var(--gold); }

.p3-body .match_analysis .senav span.on {
  background: var(--ruby);
  color: #fff;
  border-radius: 4px;
}

.p3-body .zhibo_btn .redirectLink {
  background: linear-gradient(135deg, var(--gold), var(--dark-gold));
  color: var(--black) !important;
  padding: 8px 18px;
  border-radius: 4px;
  margin: 4px;
  display: inline-block;
  font-family: 'Cinzel', serif;
}

.p3-body .hottagmain a {
  padding: 5px 12px;
  background: rgba(184, 134, 11, 0.12);
  color: var(--dark-gold);
  border-radius: 20px;
  border: 1px solid rgba(184, 134, 11, 0.35);
  margin: 3px;
  display: inline-block;
  font-size: 0.82rem;
}

.p3-body .container.mt10.flex-between {
  display: grid !important;
  gap: 20px;
  align-items: start;
  float: none !important;
  padding-bottom: 36px;
  width: 100% !important;
}

@media (max-width: 900px) {
  .p3-menu-toggle { display: block; }

  .p3-shell { padding-left: 0; }

  .p3-panel {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }

  .p3-panel.open {
    transform: translateX(0);
  }

  .p3-main,
  .p3-content { padding: 60px 16px 28px; }

  .p3-news-block { grid-template-columns: 1fr; }
  .p3-video-grid { grid-template-columns: 1fr 1fr; }
  .p3-detail-wrap { grid-template-columns: 1fr; }
  .p3-list-layout { grid-template-columns: 1fr; }
  .p3-aside { position: static; }
  .p3-list-row { flex-direction: column; }
  .p3-list-row img { width: 100%; height: 160px; }

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

  .p3-body .container.mt10.flex-between {
    grid-template-columns: 1fr;
  }

  .p3-body .container_left .match-item {
    flex-wrap: wrap !important;
  }

  .p3-body .container_left .match-item .info_center {
    flex-basis: 100%;
    order: 2;
  }

  .p3-body .container_left .match-item .info_right {
    margin-left: auto;
    max-width: none;
  }
}

@media (max-width: 520px) {
  .p3-video-grid { grid-template-columns: 1fr; }
  .p3-live-teams { flex-direction: column; }
}
