@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Playfair+Display:wght@700;900&display=swap');

:root {
  --paper: #F5F0E8;
  --ink: #1A1A1A;
  --header-red: #8B0000;
  --tag-gray: #4A4A4A;
  --line: #1A1A1A;
  --max: 1100px;
}

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

body.p1-body {
  margin: 0;
  font-family: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  background-color: var(--paper);
  background-image:
    url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  color: var(--ink);
  line-height: 1.65;
}

h1, h2, h3, .p1-display {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--ink);
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--header-red); }

img.p1-img,
.p1-img img,
.p1-news-featured img,
.p1-list-thumb img,
.p1-record-card img,
.p1-player-card img,
.p1-team-card img,
.p1-detail-cover img {
  filter: grayscale(100%);
  transition: filter 0.35s ease;
}

img.p1-img:hover,
.p1-img:hover img,
.p1-news-featured:hover img,
.p1-list-row:hover .p1-list-thumb img,
.p1-record-card:hover img,
.p1-player-card:hover img,
.p1-team-card:hover img,
.p1-detail-cover:hover img {
  filter: grayscale(0%);
}

/* Hide a1 default header */
.p1-body .header,
.p1-body .second-header { display: none !important; }

/* ── Masthead ── */
.p1-masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px 24px 0;
  border: 3px solid var(--ink);
  border-bottom: none;
  background: var(--paper);
}

.p1-masthead-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--tag-gray);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 12px;
  font-style: italic;
}

.p1-masthead-title {
  text-align: center;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 8px;
}

.p1-masthead-title a {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--header-red);
  letter-spacing: 0.02em;
  line-height: 1.15;
  display: inline-block;
}

.p1-masthead-title img {
  max-height: 56px;
  max-width: 100%;
}

.p1-masthead-tagline {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--tag-gray);
  margin: 0 0 12px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
}

.p1-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--ink);
}

.p1-nav a {
  padding: 10px 18px;
  font-size: 0.88rem;
  font-weight: 700;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s, color 0.2s;
}

.p1-nav a:first-child { border-left: 1px solid var(--ink); }
.p1-nav a:hover { background: var(--header-red); color: var(--paper); }

/* ── Main wrap ── */
.p1-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  background: var(--paper);
}

.p1-section {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--header-red);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  padding: 8px 0;
  margin: 28px 0 16px;
  text-align: center;
  letter-spacing: 0.08em;
}

.p1-section:first-child { margin-top: 0; }

/* ── Leagues bar ── */
.p1-leagues {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}

.p1-league-tab {
  flex: 1;
  min-width: 80px;
  text-align: center;
  padding: 10px 8px;
  font-size: 0.78rem;
  font-weight: 700;
  border-right: 1px solid var(--ink);
  white-space: nowrap;
  transition: background 0.2s;
}

.p1-league-tab:last-child { border-right: none; }
.p1-league-tab.on,
.p1-league-tab:hover { background: var(--header-red); color: var(--paper); }

.p1-league-tab img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  filter: grayscale(100%);
}

.p1-league-tab:hover img { filter: grayscale(0%); }

/* ── News split 60/40 ── */
.p1-news-split {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 0;
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}

.p1-news-featured {
  display: block;
  border-right: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}

.p1-news-featured img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--ink);
}

.p1-news-featured-caption {
  padding: 16px 20px;
  background: var(--paper);
}

.p1-news-featured-caption strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.35;
  display: block;
}

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

.p1-news-side a {
  flex: 1;
  padding: 14px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.88rem;
  line-height: 1.45;
  transition: background 0.2s;
}

.p1-news-side a:last-child { border-bottom: none; }
.p1-news-side a:hover { background: rgba(139, 0, 0, 0.06); }

.p1-news-side a time {
  display: block;
  font-size: 0.72rem;
  color: var(--tag-gray);
  margin-top: 4px;
  font-style: italic;
}

/* ── Score table ── */
.p1-scores {
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}

.p1-scores-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-size: 0.9rem;
}

.p1-score-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.85rem;
}

.p1-score-row:last-child { border-bottom: none; }
.p1-score-row:hover { background: rgba(26, 26, 26, 0.04); }

.p1-score-home { text-align: right; }
.p1-score-away { text-align: left; }
.p1-score-mid {
  text-align: center;
  font-weight: 700;
  font-family: 'Playfair Display', serif;
  white-space: nowrap;
}

.p1-score-meta {
  display: block;
  font-size: 0.7rem;
  color: var(--tag-gray);
  font-style: italic;
}

/* ── Contest list overrides ── */
.p1-body .site-subtitle {
  color: var(--tag-gray);
  font-style: italic;
  font-size: 0.95rem;
  margin-left: 8px;
  font-weight: 400;
}

.p1-body .match.bgwhite {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 0 24px !important;
  border: 1px solid var(--ink);
}

.p1-body .match .lmtit {
  border-bottom: 1px solid var(--ink);
  padding: 10px 16px;
  background: var(--paper);
}

.p1-body .match .lmtit .lmname img { display: none; }

.p1-body .match .lmtit .lmname div {
  font-family: 'Playfair Display', serif !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: var(--header-red) !important;
}

.p1-body .lmsenav a {
  color: var(--ink) !important;
  background: transparent !important;
  font-size: 0.82rem;
}

.p1-body .match_filter_item.on {
  font-weight: 700;
  color: var(--header-red);
}

.p1-body .match-item {
  border-bottom: 1px solid var(--ink) !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 12px 16px !important;
}

.p1-body .match-item .info_right a {
  border: 1px solid var(--ink) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-size: 0.78rem;
  padding: 4px 10px;
}

.p1-body .match-item .info_right.start a {
  background: var(--header-red) !important;
  color: var(--paper) !important;
  border-color: var(--header-red) !important;
}

.p1-body .match-item .left img,
.p1-body .match-item .right img {
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.p1-body .match-item:hover .left img,
.p1-body .match-item:hover .right img { filter: grayscale(0%); }

.p1-body .zb-area_btn.load_more {
  border: 1px solid var(--ink) !important;
  background: var(--paper) !important;
  color: var(--ink) !important;
  font-family: 'Libre Baskerville', serif;
}

/* ── 3-col records ── */
.p1-records-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}

.p1-record-card {
  display: block;
  padding: 14px 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
}

.p1-record-card:nth-child(3n) { border-right: none; }
.p1-record-card:hover { background: rgba(139, 0, 0, 0.05); }

.p1-record-card strong {
  font-family: 'Playfair Display', serif;
  font-size: 0.88rem;
  display: block;
  margin-bottom: 4px;
}

.p1-record-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.4;
}

.p1-record-meta {
  font-size: 0.72rem;
  color: var(--tag-gray);
  font-style: italic;
  margin-top: 6px;
}

/* ── Dual player/team columns ── */
.p1-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--ink);
  margin-bottom: 24px;
}

.p1-dual-col {
  border-right: 1px solid var(--ink);
  padding: 0;
}

.p1-dual-col:last-child { border-right: none; }

.p1-dual-col h3 {
  margin: 0;
  padding: 10px 16px;
  font-size: 0.95rem;
  text-align: center;
  border-bottom: 1px solid var(--ink);
  background: rgba(26, 26, 26, 0.04);
  color: var(--header-red);
}

.p1-rank-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.85rem;
}

.p1-rank-item:last-child { border-bottom: none; }
.p1-rank-no {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  color: var(--header-red);
  min-width: 24px;
}

.p1-player-card,
.p1-team-card {
  display: flex;
  align-items: center;
  gap: 10px;
}

.p1-player-card img,
.p1-team-card img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

/* ── Tag border ── */
.p1-tags {
  border: 2px solid var(--ink);
  padding: 20px 24px;
  text-align: center;
  margin-top: 8px;
}

.p1-tags h2 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--header-red);
  letter-spacing: 0.1em;
}

.p1-tags a {
  display: inline-block;
  margin: 4px 8px;
  padding: 4px 10px;
  border: 1px solid var(--tag-gray);
  color: var(--tag-gray);
  font-size: 0.82rem;
  transition: all 0.2s;
}

.p1-tags a:hover {
  border-color: var(--header-red);
  color: var(--header-red);
  background: rgba(139, 0, 0, 0.04);
}

.p1-tags a:nth-child(3n+1) { font-size: 1rem; font-weight: 700; }
.p1-tags a:nth-child(3n+2) { font-size: 0.88rem; }
.p1-tags a:nth-child(3n) { font-size: 0.78rem; }

/* ── Footer ── */
.p1-footer {
  max-width: var(--max);
  margin: 0 auto;
  border: 3px solid var(--ink);
  border-top: 2px solid var(--ink);
  background: var(--paper);
  padding: 28px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--tag-gray);
  line-height: 1.8;
}

.p1-footer a { color: var(--header-red); }
.p1-footer-inner { max-width: 800px; margin: 0 auto; }

/* ── Page / breadcrumb ── */
.p1-page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 24px 48px;
  border-left: 3px solid var(--ink);
  border-right: 3px solid var(--ink);
  background: var(--paper);
}

.p1-breadcrumb {
  font-size: 0.78rem;
  color: var(--tag-gray);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-style: italic;
}

.p1-breadcrumb a { color: var(--ink); }

/* ── List pages ── */
.p1-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.p1-list-head h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--header-red);
}

.p1-filters {
  display: flex;
  gap: 16px;
}

.p1-filters span {
  font-size: 0.82rem;
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  color: var(--tag-gray);
}

.p1-filters span.on {
  color: var(--header-red);
  font-weight: 700;
  border-bottom-color: var(--header-red);
}

.p1-list-row {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--ink);
  transition: background 0.2s;
}

.p1-list-row:hover { background: rgba(26, 26, 26, 0.03); }

.p1-list-thumb {
  width: 100px;
  height: 68px;
  flex-shrink: 0;
  border: 1px solid var(--ink);
  overflow: hidden;
}

.p1-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.p1-list-body strong {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  display: block;
  line-height: 1.35;
}

.p1-list-body .meta {
  font-size: 0.72rem;
  color: var(--tag-gray);
  font-style: italic;
  margin-top: 4px;
}

.p1-body .fenye {
  display: flex;
  justify-content: center;
  padding: 28px 0;
}

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

.p1-body .fenye ul li a,
.p1-body .pagination li a {
  display: block;
  padding: 4px 10px;
  border: 1px solid var(--ink);
  font-size: 0.82rem;
  color: var(--ink);
  background: var(--paper);
}

.p1-body .fenye ul li.active a,
.p1-body .pagination li.active a {
  background: var(--header-red);
  color: var(--paper);
  border-color: var(--header-red);
}

/* ── News detail ── */
.p1-detail { max-width: 900px; margin: 0 auto; }

.p1-detail h1 {
  text-align: center;
  font-size: 1.85rem;
  line-height: 1.3;
  margin: 0 0 12px;
  color: var(--header-red);
}

.p1-detail-meta {
  text-align: center;
  font-size: 0.78rem;
  color: var(--tag-gray);
  font-style: italic;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.p1-detail-cover {
  border: 2px solid var(--ink);
  margin-bottom: 24px;
  overflow: hidden;
}

.p1-detail-cover img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  display: block;
}

.p1-detail-body {
  column-count: 2;
  column-gap: 32px;
  column-rule: 1px solid var(--ink);
  max-width: 900px;
  margin: 0 auto;
  font-size: 0.95rem;
  line-height: 1.75;
  text-align: justify;
}

.p1-detail-body > p:first-child::first-letter {
  float: left;
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  line-height: 0.85;
  padding: 4px 10px 0 0;
  color: var(--header-red);
  font-weight: 900;
}

.p1-detail-body img { max-width: 100%; break-inside: avoid; }
.p1-detail-body a { color: var(--header-red); text-decoration: underline; }

.p1-detail-video {
  max-width: 900px;
  margin: 0 auto 24px;
  border: 2px solid var(--ink);
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: var(--ink);
}

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

.p1-detail-tags {
  max-width: 900px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.p1-detail-tags a {
  padding: 4px 12px;
  border: 1px solid var(--tag-gray);
  color: var(--tag-gray);
  font-size: 0.78rem;
}

.p1-detail-tags a:hover {
  border-color: var(--header-red);
  color: var(--header-red);
}

.p1-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--ink);
  margin-top: 32px;
}

.p1-related-grid h2 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 16px;
  font-size: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--ink);
  color: var(--header-red);
  background: rgba(26, 26, 26, 0.04);
}

.p1-related-grid a {
  display: block;
  padding: 12px 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
  line-height: 1.4;
}

.p1-related-grid a:nth-child(3n+1) { border-right: none; }
.p1-related-grid a:hover { background: rgba(139, 0, 0, 0.05); }

/* ── MatchRecord detail TV frame ── */
.p1-tv-frame {
  border: 8px solid var(--ink);
  border-radius: 4px;
  background: #0a0a0a;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  margin-bottom: 24px;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.p1-tv-frame::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.02) 2px,
    rgba(255, 255, 255, 0.02) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.p1-tv-inner {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.p1-tv-inner a {
  color: var(--paper);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  padding: 16px 32px;
  border: 2px solid var(--paper);
  transition: background 0.2s;
}

.p1-tv-inner a:hover {
  background: var(--header-red);
  border-color: var(--header-red);
  color: var(--paper);
}

.p1-detail-info {
  font-size: 0.88rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.p1-detail-info a { color: var(--header-red); text-decoration: underline; }

.p1-prenext {
  border-top: 1px solid var(--ink);
  padding-top: 16px;
  margin-top: 20px;
  font-size: 0.85rem;
}

.p1-prenext p { margin: 6px 0; }

/* ── MatchLive hero ── */
.p1-live-hero {
  border: 2px solid var(--ink);
  margin-bottom: 20px;
  background: var(--ink);
  color: var(--paper);
}

.p1-live-hero h1 {
  text-align: center;
  font-size: 1.3rem;
  color: var(--paper);
  margin: 0;
  padding: 16px 20px 8px;
}

.p1-live-status {
  text-align: center;
  font-size: 0.82rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.7);
  margin: 0 0 8px;
}

.p1-live-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 20px 24px 24px;
}

.p1-live-team {
  text-align: center;
}

.p1-live-team img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: grayscale(100%);
  transition: filter 0.3s;
  margin-bottom: 8px;
}

.p1-live-team:hover img { filter: grayscale(0%); }

.p1-live-team p {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
}

.p1-live-score {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--paper);
  white-space: nowrap;
}

.p1-live-meta {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(245, 240, 232, 0.6);
  padding-bottom: 12px;
}

.p1-signals {
  border: 1px solid var(--ink);
  padding: 16px 20px;
  margin-bottom: 20px;
  background: var(--paper);
}

.p1-signals h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--header-red);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
}

.p1-body .zhibo_btn .redirectLink,
.p1-body .zhibo_btn .btn {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 8px 16px;
  border: 1px solid var(--ink);
  background: var(--paper);
  color: var(--ink) !important;
  font-family: 'Libre Baskerville', serif;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s;
}

.p1-body .zhibo_btn .redirectLink:hover,
.p1-body .zhibo_btn .btn:hover {
  background: var(--header-red);
  color: var(--paper) !important;
  border-color: var(--header-red);
}

.p1-related-matches {
  border: 1px solid var(--ink);
  margin-top: 24px;
}

.p1-related-matches h3 {
  margin: 0;
  padding: 10px 16px;
  font-size: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--ink);
  color: var(--header-red);
  background: rgba(26, 26, 26, 0.04);
}

.p1-related-row {
  display: grid;
  grid-template-columns: 80px 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
}

.p1-related-row:last-child { border-bottom: none; }
.p1-related-row:hover { background: rgba(26, 26, 26, 0.03); }

.p1-related-time {
  font-size: 0.72rem;
  color: var(--tag-gray);
  font-style: italic;
}

.p1-related-btn {
  padding: 4px 10px;
  border: 1px solid var(--ink);
  font-size: 0.75rem;
  white-space: nowrap;
}

.p1-related-btn:hover {
  background: var(--header-red);
  color: var(--paper);
  border-color: var(--header-red);
}

/* ── Column pages (league strip) ── */
.p1-col-leagues {
  display: flex;
  gap: 0;
  overflow-x: auto;
  border: 1px solid var(--ink);
  margin-bottom: 20px;
}

.p1-col-league {
  flex-shrink: 0;
  min-width: 90px;
  text-align: center;
  padding: 10px 12px;
  border-right: 1px solid var(--ink);
  font-size: 0.75rem;
  transition: background 0.2s;
}

.p1-col-league:last-child { border-right: none; }
.p1-col-league:hover { background: rgba(139, 0, 0, 0.06); }

.p1-col-league img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
  margin: 0 auto 4px;
  filter: grayscale(100%);
  transition: filter 0.3s;
}

.p1-col-league:hover img { filter: grayscale(0%); }

.p1-col-main {
  border: 1px solid var(--ink);
}

.p1-col-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  background: rgba(26, 26, 26, 0.04);
}

.p1-col-head h1 {
  margin: 0;
  font-size: 1.2rem;
  color: var(--header-red);
}

.p1-col-match {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.85rem;
}

.p1-col-match:last-child { border-bottom: none; }
.p1-col-match:hover { background: rgba(26, 26, 26, 0.03); }

.p1-col-match-time {
  font-size: 0.75rem;
  color: var(--tag-gray);
}

.p1-col-match-time b {
  display: block;
  font-family: 'Playfair Display', serif;
  color: var(--ink);
  font-size: 0.88rem;
}

.p1-col-match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.p1-col-match-teams img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: grayscale(100%);
}

.p1-col-match:hover .p1-col-match-teams img { filter: grayscale(0%); }

.p1-col-match-score {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
}

.p1-col-sidebar {
  margin-top: 20px;
  border: 1px solid var(--ink);
}

.p1-col-sidebar h3 {
  margin: 0;
  padding: 10px 16px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--ink);
  color: var(--header-red);
  text-align: center;
}

.p1-col-sidebar a {
  display: block;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink);
  font-size: 0.82rem;
}

.p1-col-sidebar a:last-child { border-bottom: none; }

.p1-col-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
}

/* ── a1.css layout overrides ── */
.p1-body .container {
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

.p1-body .container.flex-between,
.p1-body .container.mt10.flex-between {
  display: block !important;
  float: none !important;
}

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

.p1-body .position .container {
  font-size: 0.78rem;
  color: var(--tag-gray);
  font-style: italic;
  padding: 12px 24px;
}

.p1-body .position a { color: var(--ink); }

.p1-body .match_allinfo .top {
  background: var(--ink) !important;
}

.p1-body .match_analysis .senav span {
  padding: 8px 16px;
  border: 1px solid var(--ink);
  cursor: pointer;
  margin-right: 4px;
  font-size: 0.82rem;
}

.p1-body .match_analysis .senav span.on {
  background: var(--header-red);
  color: var(--paper);
  border-color: var(--header-red);
}

.p1-body .bgwhite {
  background: var(--paper) !important;
  border: 1px solid var(--ink);
  border-radius: 0 !important;
}

.p1-body .br10 { border-radius: 0 !important; }

/* ── Responsive ── */
@media (max-width: 768px) {
  .p1-masthead-title a { font-size: 1.6rem; }
  .p1-nav a { padding: 8px 10px; font-size: 0.78rem; }
  .p1-news-split { grid-template-columns: 1fr; }
  .p1-news-featured { border-right: none; border-bottom: 1px solid var(--ink); }
  .p1-records-grid { grid-template-columns: 1fr; }
  .p1-record-card { border-right: none; }
  .p1-dual { grid-template-columns: 1fr; }
  .p1-dual-col { border-right: none; border-bottom: 1px solid var(--ink); }
  .p1-detail-body { column-count: 1; }
  .p1-related-grid { grid-template-columns: 1fr; }
  .p1-related-grid a { border-right: none; }
  .p1-live-teams { grid-template-columns: 1fr; gap: 8px; }
  .p1-live-score { order: -1; }
  .p1-col-layout { grid-template-columns: 1fr; }
  .p1-related-row { grid-template-columns: 1fr; gap: 4px; }
  .p1-list-thumb { width: 72px; height: 52px; }
  .p1-wrap, .p1-page, .p1-masthead, .p1-footer {
    border-left-width: 1px;
    border-right-width: 1px;
  }
}
