:root {
  --brand-navy: #0D1B2A;
  --brand-navy-2: #1A2940;
  --brand-blue: #1A56DB;
  --brand-blue-hover: #2563EB;
  --brand-amber: #D97706;
  --brand-green: #0F7A55;
  --brand-red: #C0392B;
  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-tertiary: #9CA3AF;
  --border-light: #E5E7EB;
  --bg-light: #F9FAFB;
  --bg-grey: #F3F4F6;
  --white: #FFFFFF;
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Source Serif 4", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius-card: 8px;
  --radius-button: 6px;
  --shadow-card: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-light);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-blue); }
:focus-visible { outline: 3px solid var(--brand-amber); outline-offset: 3px; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 16px; line-height: 1.2; color: var(--text-primary); }
h1 { font-family: var(--font-display); font-size: clamp(2.125rem, 4vw, 3.25rem); line-height: 1.08; font-weight: 400; letter-spacing: -0.02em; }
h2 { font-family: var(--font-ui); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
h3 { font-family: var(--font-ui); font-size: 1.25rem; line-height: 1.3; font-weight: 700; }
h4, h5, h6 { font-family: var(--font-ui); font-weight: 700; }
p { margin: 0 0 20px; }

.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important;
}
.screen-reader-text:focus { clip: auto !important; clip-path: none; display: block; height: auto; left: 5px; top: 5px; width: auto; z-index: 100000; }
.octo-container { width: min(1200px, calc(100% - 40px)); margin: 0 auto; }
.narrow-content { max-width: 720px; margin-inline: auto; }
.octo-section { padding: 80px 0; }
.octo-section--light { background: var(--bg-light); }
.octo-section--grey { background: var(--bg-grey); }
.octo-section--dark { background: var(--brand-navy); color: #fff; }
.octo-section--dark h1, .octo-section--dark h2, .octo-section--dark h3, .article-header h1, .archive-hero h1, .page-header h1 { color: #fff; }
.octo-center { text-align: center; margin-top: 32px; }

.site-header { position: sticky; top: 0; z-index: 999; background: var(--brand-navy); transition: box-shadow .2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 8px 24px rgba(0,0,0,.18); }
.site-header__inner { min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
.site-title, .footer-logo { color: #fff; font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }
.custom-logo { max-height: 36px; width: auto; }
.primary-menu, .mobile-menu__list, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-menu { display: flex; justify-content: center; align-items: center; gap: 24px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.primary-menu a { color: rgba(255,255,255,.86); }
.primary-menu a:hover { color: #fff; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.header-search { color: rgba(255,255,255,.86); font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.mobile-menu-toggle { display: none; width: 42px; height: 42px; border: 0; border-radius: 8px; background: rgba(255,255,255,.08); padding: 10px; }
.mobile-menu-toggle span:not(.screen-reader-text) { display: block; height: 2px; margin: 5px 0; background: #fff; }
.mobile-menu { background: var(--brand-navy); border-top: 1px solid rgba(255,255,255,.1); padding: 24px 20px 32px; }
.mobile-menu__list { display: grid; gap: 18px; font-family: var(--font-ui); font-size: 24px; font-weight: 700; }
.mobile-menu__list a { color: #fff; }
.mobile-menu__button { margin-top: 28px; width: 100%; justify-content: center; }

.octo-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand-blue); border-radius: var(--radius-button); background: var(--brand-blue); color: #fff; padding: 12px 18px; font-family: var(--font-ui); font-size: 14px; font-weight: 800; line-height: 1.2; transition: transform .15s ease, background .15s ease, border-color .15s ease; cursor: pointer; }
.octo-button:hover { color: #fff; background: var(--brand-blue-hover); border-color: var(--brand-blue-hover); transform: translateY(-1px); }
.octo-button--small { padding: 9px 13px; font-size: 13px; }
.octo-button--outline { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.octo-button--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.octo-button-row { display: flex; flex-wrap: wrap; gap: 12px; }
.octo-text-link { color: var(--brand-blue); font-family: var(--font-ui); font-size: 13px; font-weight: 800; }

.octo-label { margin: 0 0 10px; font-family: var(--font-ui); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.octo-label--amber { color: var(--brand-amber); }
.octo-label--blue { color: var(--brand-blue); }
.octo-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--text-secondary); font-family: var(--font-ui); font-size: 12px; font-weight: 600; }
.octo-meta--light { color: rgba(255,255,255,.68); }
.octo-breadcrumbs { margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,.72); }
.octo-breadcrumbs a { color: rgba(255,255,255,.9); }

.octo-hero { position: relative; overflow: hidden; }
.octo-hero::before { content: ""; position: absolute; inset: 0; opacity: .05; background-image: linear-gradient(135deg, #fff 1px, transparent 1px); background-size: 28px 28px; }
.octo-hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: 56px; align-items: center; min-height: 480px; }
.octo-hero__intro { color: rgba(255,255,255,.76); font-size: 1.125rem; max-width: 680px; }
.octo-prediction-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 28px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.octo-prediction-card h2 { font-family: var(--font-ui); color: #fff; }
.prediction-score { display: flex; justify-content: space-between; align-items: baseline; margin: 22px 0; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); font-family: var(--font-ui); }
.prediction-score strong { color: var(--brand-amber); font-family: var(--font-mono); font-size: 2.25rem; }
.probability-list { display: grid; gap: 10px; }
.probability-list div { display: flex; justify-content: space-between; color: rgba(255,255,255,.76); font-family: var(--font-ui); font-size: 14px; }
.probability-list strong { color: #fff; font-family: var(--font-mono); }
.confidence-pill { margin-top: 20px; display: inline-flex; border-radius: 999px; background: rgba(15,122,85,.18); color: #d9fff0; padding: 6px 12px; font-family: var(--font-ui); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

.section-heading { max-width: 760px; margin-bottom: 36px; }
.section-heading--light p, .section-heading--light h2 { color: #fff; }
.octo-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.octo-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.octo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card-hover); border-color: rgba(26,86,219,.35); }
.octo-card__image { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(135deg, var(--brand-navy), var(--brand-blue)); }
.octo-card__image img, .card-image-placeholder { width: 100%; height: 100%; object-fit: cover; }
.card-image-placeholder { display: block; background: linear-gradient(135deg, #dbeafe, #0D1B2A); }
.card-badge-wrap { position: absolute; top: 12px; left: 12px; }
.octo-card__body { padding: 20px; }
.octo-card__body h3 { font-family: var(--font-display); font-size: 1.25rem; font-weight: 400; line-height: 1.25; }
.octo-card__body p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.octo-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 9px; color: #fff; font-family: var(--font-ui); font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; line-height: 1; }
.badge-pl { background: #37003C; }
.badge-ucl, .badge-navy { background: #0D1B2A; color: #D97706; }
.badge-laliga { background: #C0392B; }
.badge-bundesliga { background: #D32F2F; }
.badge-seriea { background: #0050A0; }
.badge-worldcup { background: #006633; }
.badge-europa { background: #F77F00; }
.badge-blue { background: var(--brand-blue); }
.badge-amber { background: var(--brand-amber); }
.badge-default { background: #4B5563; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0; }
.stat-strip span { border-radius: 6px; background: var(--bg-grey); padding: 8px 6px; text-align: center; font-family: var(--font-mono); font-size: 12px; font-weight: 800; color: var(--text-primary); }

.featured-analysis-grid { display: grid; grid-template-columns: 1.4fr .8fr; gap: 24px; }
.featured-analysis-card { min-height: 360px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 14px; padding: 32px; background: linear-gradient(180deg, rgba(13,27,42,.35), rgba(13,27,42,.95)), linear-gradient(135deg, #1A56DB, #0D1B2A); color: #fff; }
.featured-analysis-card h3 { color: #fff; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 400; }
.featured-analysis-card p { color: rgba(255,255,255,.76); }
.featured-analysis-card a { color: #fff; font-family: var(--font-ui); font-weight: 800; }
.featured-analysis-list { display: grid; gap: 16px; }
.compact-stack { display: grid; gap: 16px; }
.compact-card { display: grid; grid-template-columns: 80px 1fr; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 12px; box-shadow: var(--shadow-card); }
.octo-section--dark .compact-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.compact-thumb { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; background: linear-gradient(135deg, #dbeafe, #1A56DB); }
.compact-thumb img { width: 100%; height: 100%; object-fit: cover; }
.compact-card h3 { margin: 0 0 6px; font-size: 13px; line-height: 1.35; }
.octo-section--dark .compact-card h3, .octo-section--dark .compact-card a { color: #fff; }
.compact-card p { margin: 0; color: var(--text-secondary); font-family: var(--font-ui); font-size: 11px; }
.octo-section--dark .compact-card p { color: rgba(255,255,255,.62); }

.stats-strip { background: var(--brand-blue); color: #fff; padding: 42px 0; }
.stats-strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-strip strong { display: block; font-family: var(--font-mono); font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; }
.stats-strip span { display: block; margin-top: 8px; font-family: var(--font-ui); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.78); }
.two-column-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.small-note { color: var(--text-secondary); font-family: var(--font-ui); font-size: 12px; }
.newsletter-band { padding: 72px 0; background: linear-gradient(135deg, var(--brand-navy), var(--brand-navy-2)); color: #fff; }
.newsletter-band__inner { max-width: 760px; text-align: center; }
.newsletter-band h2 { color: #fff; }
.newsletter-band p { color: rgba(255,255,255,.74); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form--center { max-width: 540px; margin: 0 auto 14px; }
.newsletter-form input, .search-field { min-height: 46px; width: 100%; border: 1px solid var(--border-light); border-radius: var(--radius-button); padding: 0 14px; font: 14px var(--font-ui); }
.icon-card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icon-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 22px; box-shadow: var(--shadow-card); }
.icon-dot { display: inline-block; width: 34px; height: 34px; border-radius: 10px; background: rgba(26,86,219,.12); margin-bottom: 16px; }
.icon-card h3 { font-size: 16px; }
.icon-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.55; }
.icon-card a { font-family: var(--font-ui); font-size: 13px; font-weight: 800; color: var(--brand-blue); }

.article-header, .archive-hero, .page-header { padding: 48px 0; }
.article-header__inner { max-width: 900px; }
.article-badge-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.article-header .octo-meta { color: rgba(255,255,255,.72); }
.article-hero-image { margin-top: 32px; }
.article-hero-image img { width: 100%; max-height: 480px; object-fit: cover; border-radius: 12px; }
.article-hero-image figcaption { margin-top: 8px; color: var(--text-secondary); font-size: 13px; font-style: italic; }
.article-layout { display: grid; grid-template-columns: minmax(0, 720px) 280px; gap: 40px; align-items: start; padding: 56px 0 80px; }
.article-content { background: #fff; border: 1px solid var(--border-light); border-radius: 12px; padding: 36px; box-shadow: var(--shadow-card); }
.article-content > *:first-child { margin-top: 0; }
.article-content h2 { margin-top: 42px; font-family: var(--font-display); font-weight: 400; color: var(--brand-navy); }
.article-content h3 { margin-top: 28px; color: var(--brand-blue); }
.article-content a { color: var(--brand-blue); text-decoration: underline; text-underline-offset: 3px; }
.article-content blockquote { margin: 32px 0; padding: 24px; border-left: 4px solid var(--brand-amber); background: var(--bg-grey); font-size: 1.05rem; }
.article-content table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; white-space: nowrap; }
.article-content th { background: var(--brand-navy); color: #fff; }
.article-content th, .article-content td { border: 1px solid var(--border-light); padding: 10px 12px; }
.article-sidebar { position: sticky; top: 88px; display: grid; gap: 18px; }
.octo-sidebar-card { background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-card); padding: 18px; box-shadow: var(--shadow-card); }
.octo-widget-title { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.sidebar-link-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; }
.page-content { max-width: 900px; padding: 56px 0 80px; }
.archive-header { margin-bottom: 32px; }
.archive-description { color: rgba(255,255,255,.75); max-width: 760px; }
.search-form { display: flex; gap: 10px; max-width: 560px; }
.pagination, .nav-links { margin-top: 36px; font-family: var(--font-ui); font-weight: 700; }

.wp-block-group.is-style-octo-prediction-box, .octo-prediction-box { background: #EBF5FF; border-left: 4px solid var(--brand-blue); border-radius: 8px; padding: 24px; }
.wp-block-group.is-style-octo-key-stats, .octo-key-stats { background: #fff; border: 1px solid var(--border-light); border-left: 4px solid var(--brand-amber); border-radius: 8px; padding: 24px; box-shadow: var(--shadow-card); }
.wp-block-group.is-style-octo-score-panel, .octo-score-panel { background: var(--brand-navy); color: #fff; border-radius: 8px; padding: 28px; }
.octo-score-panel strong { color: var(--brand-amber); font-family: var(--font-mono); font-size: 36px; }
.octo-stat { font-family: var(--font-mono); font-weight: 800; letter-spacing: -0.02em; }
.octo-caption { font-family: var(--font-ui); font-size: 12px; color: var(--text-secondary); }

@media (max-width: 991px) {
  .primary-navigation, .header-search, .header-actions .octo-button--small { display: none; }
  .site-header__inner { grid-template-columns: auto 1fr auto; min-height: 56px; }
  .mobile-menu-toggle { display: block; }
  .octo-hero__grid, .featured-analysis-grid, .two-column-content, .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .octo-card-grid { grid-template-columns: repeat(2, 1fr); }
  .icon-card-grid, .stats-strip__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  body { font-size: 16px; line-height: 1.7; }
  .octo-container { width: min(100% - 32px, 1200px); }
  .octo-section { padding: 48px 0; }
  .octo-hero__grid { min-height: auto; gap: 32px; }
  .octo-button-row, .newsletter-form, .search-form { flex-direction: column; }
  .octo-card-grid, .icon-card-grid, .stats-strip__grid { grid-template-columns: 1fr; }
  .article-content { padding: 24px 18px; }
  .article-layout { padding: 36px 0 56px; }
  .site-footer__grid { grid-template-columns: 1fr; }
}

.site-footer { background: var(--brand-navy); color: rgba(255,255,255,.78); padding: 64px 0 28px; }
.site-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 36px; }
.site-footer h2, .site-footer h3 { color: #fff; }
.site-footer h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-family: var(--font-ui); font-size: 13px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-small, .footer-disclaimer { color: rgba(255,255,255,.52); font-family: var(--font-ui); font-size: 11px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-family: var(--font-ui); font-size: 12px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-disclaimer { margin-top: 18px; }
@media (max-width: 991px) { .site-footer__grid { grid-template-columns: repeat(2, 1fr); } .site-footer__bottom { flex-direction: column; align-items: flex-start; } }
