/* ===== ARTICLE LAYOUT ===== */
.article-main { max-width: 780px; margin: 0 auto; padding: 32px 20px 64px; }
.article-container { color: var(--text); }

.article-breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--accent); }

.article-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; margin-bottom: 16px; }
.article-tag.tag-pl   { background: linear-gradient(135deg, #b8860b, #ffd700); color: #1a1a28; }
.article-tag.tag-ch   { background: linear-gradient(135deg, #6b7280, #d1d5db); color: #1a1a28; }
.article-tag.tag-l1   { background: linear-gradient(135deg, #c87533, #f0a050); color: #fff; }
.article-tag.tag-l2   { background: linear-gradient(135deg, #3b1f0a, #7a4a1e); color: #fff; }

.article-header h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 900; line-height: 1.2; margin: 0 0 16px; color: var(--text); }
.article-subtitle { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 20px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 12px 0; margin-bottom: 32px; }
.article-author { font-weight: 600; color: var(--text); }

/* ===== HERO STAT STRIP ===== */
.stat-hero { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 40px; }
.stat-hero-item { background: var(--surface); padding: 20px 16px; text-align: center; }
.stat-hero-number { display: block; font-size: clamp(28px, 5vw, 42px); font-weight: 800; color: var(--accent); line-height: 1; }
.stat-hero-label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* ===== ARTICLE BODY ===== */
.article-section { margin-bottom: 40px; }
.article-section h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.article-lead { font-size: 18px; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.article-section p { font-size: 16px; line-height: 1.75; color: var(--text); margin-bottom: 14px; }
.article-section p strong { color: var(--text); }

/* ===== DATA BLOCKS ===== */
.article-data-block { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 24px; margin-bottom: 40px; }
.article-data-title { font-size: 15px; font-weight: 700; color: var(--text); margin: 0 0 16px; text-transform: uppercase; letter-spacing: 0.04em; }
.data-source { font-size: 12px; color: var(--text-muted); margin: 12px 0; }
.data-source a { color: var(--accent); text-decoration: none; }

/* Comparison cards */
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comparison-card { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 20px; }
.comparison-card.highlight { border-color: var(--accent); }
.comparison-season { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 16px; }
.comparison-season.current { color: var(--accent); }
.comparison-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.comparison-row:last-child { border-bottom: none; }
.comparison-label { font-size: 13px; color: var(--text-muted); }
.comparison-value { font-size: 15px; font-weight: 700; color: var(--text); }
.comparison-value.accent { color: var(--accent); }

/* ===== QUICK LINKS ===== */
.article-links { margin-bottom: 40px; }
.article-links h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 14px; }
.article-links-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.article-link-card { display: block; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.article-link-card:hover { border-color: var(--accent); background: var(--bg); }
.article-link-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.article-link-sub { display: block; font-size: 12px; color: var(--accent); }
.article-link-card:visited { color: var(--text) !important; }

/* ===== AUTHOR ===== */
.article-author-block { border-top: 1px solid var(--border); padding-top: 24px; margin-top: 40px; }
.article-author-info { display: flex; flex-direction: column; gap: 4px; }
.article-author-info strong { font-size: 15px; color: var(--text); }
.article-author-info span { font-size: 13px; color: var(--text-muted); }
.article-ai-credit { font-size: 12px !important; color: var(--text-dim) !important; margin-top: 2px; }
.live-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #34d399; letter-spacing: 0.04em; }
.stat-hero-note { font-size: 11px; color: var(--text-dim); margin: 3px 0 24px; text-align: left; }

/* ===== HISTORY TABLE ===== */
.history-table { font-size: 13px; }
.history-table td:first-child { white-space: nowrap; }
.involvement-type { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.type-goal { background: rgba(52, 211, 153, 0.15); color: #34d399; }
.type-assist { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.involvement-detail { font-size: 12px; color: var(--text-muted); }

/* ===== ARTICLE HERO IMAGE ===== */
.article-hero-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  border-radius: 12px;
  margin-bottom: 36px;
  display: block;
}
@media (max-width: 600px) { .article-hero-img { height: 200px; } }

/* ===== ARTICLE BODY LINKS ===== */
.article-section a,
.article-lead a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-section a:hover,
.article-lead a:hover {
  color: #0d4fa8;
}
.article-section a:visited,
.article-lead a:visited {
  color: var(--accent);
}

/* ===== MOBILE ===== */
@media (max-width: 600px) {
  .stat-hero { grid-template-columns: repeat(2, 1fr); }
  .comparison-grid { grid-template-columns: 1fr; }
  .article-links-grid { grid-template-columns: 1fr; }
  .detail-col { display: none; }
}

/* ===== ARTICLE HERO BANNER ===== */
.article-hero-banner {
  position: relative;
  overflow: hidden;
  background: #060c18;
  min-height: 360px;
  display: flex;
  align-items: flex-end;
  margin-bottom: 40px;
  color: #fff;
}
.article-hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
}
.article-hero-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6,12,24,0.97) 0%, rgba(6,12,24,0.60) 55%, rgba(6,12,24,0.18) 100%);
}
.article-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 20px 44px;
}
.article-hero-banner .article-breadcrumb {
  color: rgba(255,255,255,0.52);
  margin-bottom: 22px;
}
.article-hero-banner .article-breadcrumb a {
  color: rgba(255,255,255,0.52);
  text-decoration: none;
}
.article-hero-banner .article-breadcrumb a:hover { color: #fff; }
.article-hero-banner .article-tag {
  background: rgba(0,212,168,0.14);
  color: #00d4a8;
  border: 1px solid rgba(0,212,168,0.40);
}
.article-hero-banner h1 {
  color: #fff;
  font-weight: 900;
  font-family: 'Montserrat', sans-serif;
  margin-bottom: 14px;
}
.article-hero-banner .article-subtitle {
  color: rgba(255,255,255,0.72);
  margin-bottom: 26px;
}
.article-hero-banner .article-meta {
  border-color: rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.58);
  margin-bottom: 0;
}
.article-hero-banner .article-author { color: rgba(255,255,255,0.88); }
@media (max-width: 600px) { .article-hero-banner { min-height: 260px; } }

/* ===== H2H ROWS ===== */
.h2h-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
}
.h2h-row:first-of-type { border-top: 1px solid var(--border); }
.h2h-comp {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 7px;
  margin-right: 8px;
}
.h2h-score {
  font-weight: 700;
  font-size: 14px;
  padding: 3px 10px;
  border-radius: 6px;
  min-width: 54px;
  text-align: center;
  flex-shrink: 0;
}
.eng-win  { background: rgba(52,211,153,0.12); color: #34d399; }
.eng-loss { background: rgba(248,113,113,0.12); color: #f87171; }
.eng-draw { background: rgba(255,255,255,0.06); color: var(--text-muted); }

/* ===== FIXTURE HEADER ===== */
.fixture-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.fixture-header-teams {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
}
.fixture-header-meta {
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== PREDICTION BOX ===== */
.prediction-box {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(0,212,168,0.08), rgba(26,110,232,0.06));
  border: 1px solid rgba(0,212,168,0.25);
  border-radius: 12px;
  padding: 20px 24px;
  margin-top: 24px;
}
.prediction-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.prediction-score {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  white-space: nowrap;
}
.prediction-note {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  padding-top: 4px;
}
@media (max-width: 600px) {
  .prediction-box { flex-direction: column; gap: 12px; }
}

/* ===== GROUP TABLE ===== */
.group-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 16px;
}
.group-table thead tr { background: var(--surface); }
.group-table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.group-table th:nth-child(2) { text-align: left; }
.group-table td {
  padding: 11px 12px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.group-table tbody tr:last-child td { border-bottom: none; }
.group-table td:nth-child(2) { text-align: left; }
.group-table .team-name { font-weight: 600; }
.group-table .pts { font-weight: 800; color: var(--accent); }
.group-table .qualify { background: rgba(0,212,168,0.04); }
.qualify-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  background: var(--accent);
  color: #fff;
  border-radius: 3px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .group-table th:nth-child(7),
  .group-table th:nth-child(8),
  .group-table td:nth-child(7),
  .group-table td:nth-child(8) { display: none; }
}