/* =========================================================
   STREFA EL CLÁSICO — arkusz stylów
   Styl bazowy: "Streetwear" (bloki kolorów, Archivo Black + IBM Plex Sans)
   ========================================================= */

:root {
  --barca: #a50044;
  --barca-dark: #7a0034;
  --real: #004d98;
  --real-dark: #003b76;
  --accent: #ffcc00;
  --ink: #111111;
  --paper: #ffffff;
  --grey-bg: #f5f5f5;
  --grey-line: #dddddd;
  --grey-text: #666666;
  --muted: #999999;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

a { color: var(--barca); text-decoration: none; }
a:hover { color: var(--barca-dark); text-decoration: underline; }

img { max-width: 100%; display: block; }

.headline, .brand, .stat-num, .tag-num {
  font-family: "Archivo Black", "Arial Black", sans-serif;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }

/* ---------- TICKER ---------- */
.ticker {
  background: var(--accent);
  border-bottom: 3px solid var(--ink);
  padding: 10px 0;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 32s linear infinite;
  font-size: 13px;
  font-weight: 700;
}
.ticker-track span { margin: 0 30px; }
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
}

/* ---------- NAV ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  background: var(--ink);
  flex-wrap: wrap;
  gap: 14px;
}
.nav .brand {
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.nav .brand a { color: #fff; text-decoration: none; }
.nav .brand .dot { color: var(--accent); }
.nav-links { display: flex; gap: 10px; flex-wrap: wrap; }
.pill {
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.pill.barca { background: var(--barca); }
.pill.real { background: var(--real); }

/* ---------- HERO SPLIT (strona główna) ---------- */
.hero-split {
  position: relative;
  min-height: 460px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}
.hero-half {
  position: relative;
  min-width: 0;
  padding: 60px 50px;
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}
.hero-half:hover { text-decoration: none; }
.hero-half.fcb {
  background: var(--barca);
  clip-path: polygon(0 0, 100% 0, 88% 100%, 0 100%);
}
.hero-half.rma {
  background: var(--real);
  padding-left: 90px;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  text-align: right;
  justify-content: flex-end;
}
.hero-watermark {
  font-family: "Archivo Black", sans-serif;
  color: rgba(255,255,255,0.15);
  font-size: 160px;
  line-height: 1;
  position: absolute;
  top: 10px;
}
.hero-half.fcb .hero-watermark { left: 20px; }
.hero-half.rma .hero-watermark { right: 20px; }
.hero-content { position: relative; z-index: 1; max-width: 380px; }
.hero-content h2 {
  font-family: "Archivo Black", sans-serif;
  color: #fff;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 16px;
}
.hero-content p {
  color: rgba(255,255,255,0.85);
  font-size: 15px;
  margin: 0;
}
.hero-vs {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: var(--accent);
  color: var(--ink);
  font-family: "Archivo Black", sans-serif;
  font-size: 20px;
  border-radius: 50%;
  width: 76px; height: 76px;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* Mobile: hero-split przechodzi z układu lewo/prawo na góra/dół,
   bo przycięte na skos połówki (clip-path) nie mieszczą się
   sensownie obok siebie na wąskim ekranie. Desktop bez zmian. */
@media (max-width: 720px) {
  .hero-split {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
    min-height: 560px;
  }
  .hero-half.fcb,
  .hero-half.rma {
    clip-path: none;
    padding: 36px 28px;
    text-align: left;
    justify-content: flex-start;
  }
  .hero-watermark { font-size: 90px; }
  .hero-half.fcb .hero-watermark { left: 12px; top: 6px; }
  .hero-half.rma .hero-watermark { right: 12px; left: auto; top: 6px; }
  .hero-content { max-width: 100%; }
}

/* ---------- H2H STAT BAR ---------- */
.stat-bar {
  display: flex;
  background: var(--ink);
  padding: 30px 40px;
  align-items: center;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num { font-size: 44px; }
.stat-num.fcb { color: var(--barca); }
.stat-num.draw { color: var(--accent); }
.stat-num.rma { color: var(--real); }
.stat-label {
  font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
}
.stat-sep { width: 2px; height: 50px; background: #333; }

/* ---------- SECTION ---------- */
.section { padding: 60px 40px; }
.section.grey { background: var(--grey-bg); }
.section h2.section-title, h1.section-title {
  font-family: "Archivo Black", sans-serif;
  font-size: 26px;
  text-transform: uppercase;
  margin: 0 0 28px;
}

/* ---------- NEWS GRID ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  display: block;
}
.news-card:hover { text-decoration: none; }
.news-ribbon {
  position: absolute;
  top: 14px; left: -30px;
  background: var(--accent);
  color: var(--ink);
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  padding: 6px 40px;
  transform: rotate(-8deg);
  z-index: 2;
}
/* Bez zdjęć: karta to kolorowy blok tekstowy z delikatnym wzorem w tle
   zamiast miejsca na fotografię. */
.news-body {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 200px;
  padding: 34px 28px;
}
.news-body.fcb { background: linear-gradient(135deg, var(--barca) 0%, var(--barca-dark) 100%); }
.news-body.rma { background: linear-gradient(135deg, var(--real) 0%, var(--real-dark) 100%); }
.news-body::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0, rgba(255,255,255,0.05) 2px, transparent 2px, transparent 14px);
}
.news-tag, .news-title, .news-meta { position: relative; z-index: 1; }
.news-tag {
  display: block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.75);
  margin-bottom: 10px;
}
.news-title {
  display: block;
  font-family: "Archivo Black", sans-serif;
  color: #fff; font-size: 24px; line-height: 1.2; text-transform: uppercase;
}
.news-meta { display: block; font-size: 12px; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ---------- KICKER PILL (etykieta nad tytułem artykułu, bez zdjęcia) ---------- */
.kicker-pill {
  display: inline-block;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #fff;
  padding: 7px 16px;
  border-radius: 20px;
  margin-bottom: 18px;
}
.kicker-pill.fcb { background: var(--barca); }
.kicker-pill.rma { background: var(--real); }

/* ---------- LA LIGA TABLE ---------- */
.table-wrap { overflow-x: auto; }
table.laliga { width: 100%; border-collapse: collapse; font-size: 13.5px; background: #fff; min-width: 560px; }
table.laliga th {
  text-align: left; padding: 10px 8px; font-weight: 700; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--grey-text);
  border-bottom: 3px solid var(--ink);
}
table.laliga td { padding: 9px 8px; border-bottom: 1px solid var(--grey-line); }
table.laliga th.num, table.laliga td.num { text-align: right; }
table.laliga td.pos {
  font-family: "Archivo Black", sans-serif; font-size: 12px; color: var(--muted);
}
table.laliga td.club { font-weight: 600; }
table.laliga tr.fcb td.club { color: var(--barca); font-weight: 700; }
table.laliga tr.rma td.club { color: var(--real); font-weight: 700; }
table.laliga td.pts { font-weight: 700; }

/* ---------- NAJBLIZSZE MECZE ---------- */
.matches-label {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--grey-text); margin-bottom: 14px;
}
.matches { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--grey-line); flex-wrap: wrap; }
.match-row {
  flex: 1; min-width: 280px; display: flex; align-items: center; gap: 10px;
  padding: 18px 22px; border-left: 4px solid var(--ink); flex-wrap: wrap;
}
.match-row.fcb { border-left-color: var(--barca); }
.match-row.rma { border-left-color: var(--real); }
.match-teams { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.match-home { font-size: 14px; font-weight: 700; }
.match-row.fcb .match-away { color: var(--barca); font-weight: 700; }
.match-row.rma .match-away { color: var(--real); font-weight: 700; }
.match-away { font-size: 14px; }
.match-vs { font-size: 12px; color: var(--grey-text); }
.match-when { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- FOOTER ---------- */
.site-footer {
  padding: 30px 40px;
  background: var(--ink);
  color: var(--muted);
  font-size: 13px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 10px;
}
.site-footer .brand { color: #fff; font-size: 15px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: #fff; }

/* ---------- ARTYKUŁ ---------- */
.article-head { padding: 40px 40px 10px; max-width: 880px; margin: 0 auto; }
.article-head h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.article-lead { font-size: 16px; color: #555; line-height: 1.6; margin-bottom: 14px; }
.article-byline { font-size: 13px; color: var(--muted); font-weight: 600; }
.article-date { font-weight: 400; }
.article-body { padding: 20px 40px 10px; max-width: 700px; margin: 0 auto; font-size: 16px; line-height: 1.7; color: #222; }
.article-body p { margin: 0 0 18px; }

.squad-section { max-width: 880px; margin: 30px auto 0; padding: 0 40px; }
.squad-group { margin-bottom: 34px; }
.squad-group h3 {
  font-family: "Archivo Black", sans-serif;
  font-size: 18px; text-transform: uppercase;
  border-bottom: 3px solid var(--ink);
  padding-bottom: 10px; margin: 0 0 14px;
}
.squad-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
@media (max-width: 600px) { .squad-list { grid-template-columns: 1fr; } }
.squad-list li {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--grey-line);
}
.squad-num {
  font-family: "Archivo Black", sans-serif;
  font-size: 16px; width: 34px; flex: none; text-align: center;
  color: #fff; border-radius: 4px; padding: 4px 0;
}
.squad-num.fcb { background: var(--barca); }
.squad-num.rma { background: var(--real); }
.squad-name { font-size: 15px; font-weight: 600; }
.squad-name small { display: block; font-weight: 400; color: var(--grey-text); font-size: 12px; }

.opinions-title { padding: 10px 40px 20px; max-width: 880px; margin: 0 auto; }
.opinions-title h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px; text-transform: uppercase; margin: 0;
}
.opinions { display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .opinions { grid-template-columns: 1fr; } }
.opinion { padding: 40px 44px 50px; color: #fff; }
.opinion.fcb { background: var(--barca); }
.opinion.rma { background: var(--real); }
.opinion-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.opinion-avatar {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  background: rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  font-family: "Archivo Black", sans-serif; font-size: 16px;
}
.opinion-name { font-family: "Archivo Black", sans-serif; font-size: 16px; }
.opinion-role { font-size: 11px; color: rgba(255,255,255,0.7); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.opinion-quote { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.opinion-text { font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; margin: 0; }

.transfer-section { max-width: 880px; margin: 40px auto 0; padding: 0 40px; }
.transfer-section > h2 {
  font-family: "Archivo Black", sans-serif;
  font-size: 22px; text-transform: uppercase; margin: 0 0 20px;
}
.transfer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 640px) { .transfer-cols { grid-template-columns: 1fr; } }
.transfer-col-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding-bottom: 10px; margin: 0 0 6px; border-bottom: 3px solid var(--ink);
}
.transfer-col-title .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.transfer-col-title.in .dot { background: #2e9e5b; }
.transfer-col-title.out .dot { background: #c0392b; }
.transfer-list { list-style: none; margin: 0; padding: 0; }
.transfer-list li { padding: 10px 0; border-bottom: 1px solid var(--grey-line); }
.transfer-list li strong { display: block; font-size: 14.5px; font-weight: 700; }
.transfer-list li .transfer-meta { display: block; font-size: 12.5px; color: var(--grey-text); margin-top: 2px; }

.related { max-width: 880px; margin: 50px auto 0; padding: 0 40px 10px; }
.related h2 { font-family: "Archivo Black", sans-serif; font-size: 18px; text-transform: uppercase; margin: 0 0 16px; }
.related-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; background: var(--grey-bg); border-radius: 4px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.related-link:hover { text-decoration: none; background: #ececec; }
.related-link .arrow { color: var(--barca); font-family: "Archivo Black", sans-serif; }

/* ---------- WYNIK MECZU (podsumowania) ---------- */
.match-score-wrap { background: var(--ink); color: #fff; padding: 34px 24px 24px; text-align: center; border-radius: 4px; margin: 30px 0; }
.match-score { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; }
.match-score-team { font-family: "Archivo Black", sans-serif; font-size: 17px; text-transform: uppercase; }
.match-score-team.rma { color: #6ea8ff; }
.match-score-num { font-family: "Archivo Black", sans-serif; font-size: 38px; letter-spacing: 1px; }
.match-score-half { margin-top: 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

.goal-list { list-style: none; margin: 0 0 10px; padding: 0; }
.goal-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--grey-line); font-size: 14.5px; }
.goal-list .min { font-family: "Archivo Black", sans-serif; font-size: 12.5px; width: 50px; flex: none; color: var(--muted); }
.goal-list .team-tag { font-size: 10.5px; font-weight: 700; text-transform: uppercase; padding: 4px 8px; border-radius: 3px; color: #fff; flex: none; }
.goal-list .team-tag.rma { background: var(--real); }
.goal-list .team-tag.host { background: #4b4f58; }

/* ---------- STATYSTYKI MECZU (paski porównawcze) ---------- */
.match-stats { margin: 30px 0; }
.match-stats-row { margin-bottom: 16px; }
.match-stats-vals { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; margin-bottom: 5px; }
.match-stats-vals .host { color: #4b4f58; }
.match-stats-vals .guest { color: var(--real); }
.match-stats-track { display: flex; height: 8px; background: var(--grey-line); border-radius: 4px; overflow: hidden; }
.match-stats-fill.host { background: #4b4f58; }
.match-stats-fill.guest { background: var(--real); }
.match-stats-label { text-align: center; font-size: 11px; color: var(--grey-text); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 6px; }
