/* =========================================================
   BETFORECAST MASTER CSS
   ========================================================= */

:root {
  --container-width: 1280px;
  --content-width: 1040px;

  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;

  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 20px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;

  --font-main: Arial, Helvetica, sans-serif;

  --green: #19f28a;
  --green-strong: #12c878;
  --green-soft: rgba(25, 242, 138, 0.13);
  --green-border: rgba(25, 242, 138, 0.26);

  --blue: #4aa9ff;
  --orange: #fb923c;
  --red: #ef6b6b;

  --glass-bg: linear-gradient(
  180deg,
  rgba(255, 255, 255, 0.88),
  rgba(255, 255, 255, 0.62)
);

--glass-bg-strong: linear-gradient(
  180deg,
  rgba(255, 255, 255, 0.96),
  rgba(255, 255, 255, 0.74)
);

--glass-border: rgba(18, 60, 42, 0.12);
--glass-green-border: rgba(25, 242, 138, 0.28);

--glass-shadow:
  0 18px 50px rgba(20, 45, 35, 0.11),
  inset 0 1px 0 rgba(255, 255, 255, 0.8);

--glass-shadow-green:
  0 0 0 1px rgba(25, 242, 138, 0.13),
  0 18px 60px rgba(20, 45, 35, 0.13),
  0 0 30px rgba(25, 242, 138, 0.16),
  inset 0 1px 0 rgba(255, 255, 255, 0.82);

  --header-height: 84px;
   /* COLORS - LIGHT GLASS BASE */
--page-bg: #f5f7fb;
--page-text: #102018;

--surface: rgba(255, 255, 255, 0.72);
--surface-strong: rgba(255, 255, 255, 0.9);

--border-soft: rgba(20, 60, 45, 0.12);
--text-muted: rgba(16, 32, 24, 0.6);

/* акцент (если нужен зелёный стиль) */
--accent: #22c55e;
}
body.theme-dark {
  --page-bg: #07110d;
  --page-text: #f4fff8;

  --surface: rgba(8, 18, 14, 0.75);
  --surface-strong: rgba(10, 24, 18, 0.92);

  --border-soft: rgba(140, 255, 190, 0.18);
  --text-muted: rgba(232, 255, 240, 0.65);
}
/* =========================================================
   RESET
   ========================================================= */

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 18px;
  line-height: 1.6;
  background: var(--page-bg);
  color: var(--page-text);
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
h4,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
}

p,
h1,
h2,
h3,
h4,
strong,
span,
li {
  overflow-wrap: break-word;
}

/* =========================================================
   THEME TOKENS
   ========================================================= */

body.theme-dark {
  --page-bg:
    radial-gradient(circle at 14% 16%, rgba(25, 242, 138, 0.15), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(74, 169, 255, 0.10), transparent 30%),
    linear-gradient(180deg, #04111a 0%, #06131d 50%, #07131c 100%);
  --page-text: #eef4fb;
  --text-main: #f4f7fb;
  --text-soft: rgba(226, 234, 244, 0.78);
  --text-muted: rgba(180, 194, 214, 0.58);

  --surface: var(--glass-bg);
  --surface-soft: rgba(40, 53, 69, 0.70);
  --surface-strong: rgba(18, 30, 42, 0.88);
  --hero-surface: var(--glass-bg-strong);

  --border: rgba(170, 215, 255, 0.14);
  --border-strong: rgba(170, 215, 255, 0.24);

  --header-bg: rgba(4, 17, 26, 0.84);
  --header-line: rgba(255, 255, 255, 0.08);

  --button-bg: rgba(38, 51, 67, 0.72);
  --button-hover: rgba(48, 63, 81, 0.88);
  --button-text: #eef4fb;
  --button-active-bg: rgba(25, 242, 138, 0.14);
  --button-active-text: #62f0be;

  --card-shadow: var(--glass-shadow);
}

body.theme-glass {
  --page-bg:
    radial-gradient(circle at 12% 18%, rgba(71, 191, 145, 0.10), transparent 24%),
    radial-gradient(circle at 88% 12%, rgba(102, 157, 214, 0.10), transparent 28%),
    linear-gradient(135deg, #dfe7ee 0%, #d7e0e8 40%, #d2dbe4 100%);
  --page-text: #101a2f;
  --text-main: #101a2f;
  --text-soft: #526177;
  --text-muted: #7b8799;

  --surface: rgba(245, 248, 252, 0.74);
  --surface-soft: rgba(245, 248, 252, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.84);
  --hero-surface: rgba(245, 248, 252, 0.76);

  --border: rgba(16, 26, 47, 0.08);
  --border-strong: rgba(16, 26, 47, 0.14);

  --header-bg: rgba(221, 229, 238, 0.74);
  --header-line: rgba(16, 26, 47, 0.10);

  --button-bg: rgba(245, 248, 252, 0.78);
  --button-hover: rgba(255, 255, 255, 0.94);
  --button-text: #101a2f;
  --button-active-bg: rgba(212, 240, 226, 0.90);
  --button-active-text: #0f7a58;

  --card-shadow: 0 10px 26px rgba(42, 58, 82, 0.08);
}

/* =========================================================
   PAGE CONTAINERS
   ========================================================= */

.container,
main,
.news-page-wrap,
.match-page-wrap,
.article-page-wrap,
.article-pro-wrap,
.standings-page-wrap,
.page-shell {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}

main,
.news-page-wrap,
.match-page-wrap,
.article-page-wrap,
.article-pro-wrap,
.standings-page-wrap,
.page-shell {
  padding: 28px 0 64px;
  display: grid;
  gap: 24px;
}

.hero,
.news-top-hero,
.match-pro-hero,
.insights-hero,
.article-pro-hero,
.article-hero,
.ai-focus-banner,
.predictions-section,
.panel,
.news-hero,
.results-page-section .hero,
.standings-league-bar,
.news-layout-v2,
.match-pro-layout,
.standings-layout,
.matches-grid,
.news-grid,
.news-grid-v2,
.insights-cards-grid,
.predictions-grid,
.article-layout {
  width: min(var(--content-width), 100%);
  margin-left: auto;
  margin-right: auto;
}

/* =========================================================
   GLOBAL GLASS SURFACES
   ========================================================= */

.panel,
.predictions-section,
.prediction-card,
.news-card,
.insight-card,
.match-card,
.side-block,
.featured-news-card,
.featured-main-card,
.mini-stat-card,
.compare-card,
.prediction-summary-card,
.adv-stat-box,
.pro-score-card,
.news-focus-box,
.related-match-item,
.related-news-item,
.timeline-item,
.key-signal-item,
.model-card,
.form-team,
.hero-card,
.insights-hero-card,
.featured-prob-box,
.standings-match-row,
.article-insight-box,
.ai-prob-card,
.standings-panel,
.featured-story-card,
.news-card-v2 {
  position: relative;
  overflow: hidden;
  color: var(--text-main);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.panel::before,
.predictions-section::before,
.prediction-card::before,
.news-card::before,
.insight-card::before,
.match-card::before,
.side-block::before,
.hero-card::before,
.standings-panel::before,
.featured-story-card::before,
.news-card-v2::before,
.bf-search-card::before,
.bf-match-card::before,
.bf-benefit::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      125deg,
      rgba(255,255,255,0.08),
      transparent 38%,
      transparent 64%,
      rgba(255,255,255,0.035)
    );
  opacity: 0.75;
}

.panel,
.predictions-section,
.side-block,
.hero-card,
.insights-hero-card,
.featured-main-card,
.featured-news-body,
.news-card-body,
.insight-card-body,
.compare-card,
.prediction-summary-card,
.adv-stat-box,
.pro-score-card,
.news-focus-box,
.mini-stat-card,
.model-card,
.form-team,
.match-card,
.standings-panel,
.standings-sidebar .side-block,
.article-insight-box,
.ai-prob-card {
  padding: 22px;
}

.section-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.section-head h2,
.panel-head h2 {
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--text-main);
}

/* =========================================================
   HEADER
   ========================================================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 14px 20px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--header-line);
}

.header-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.site-logo__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.site-logo__text {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--text-main);
}

.topbar-menu {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* =========================================================
   BUTTONS GLASS
   ========================================================= */

.topbar-menu a,
.btn-bf-ghost,
.theme-switch,
.standings-view-tab,
.league-filter-btn,
.primary-btn,
.secondary-btn,
.article-back-btn,
.sidebar-link-card,
.bf-search-form button,
.bf-search-tags button,
.bf-match-buttons a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  line-height: 1.2;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--button-bg);
  color: var(--button-text);
  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease,
    filter 0.2s ease;
}

.topbar-menu a,
.btn-bf-ghost,
.theme-switch,
.standings-view-tab,
.league-filter-btn,
.secondary-btn,
.article-back-btn {
  min-height: 46px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 700;
}

.topbar-menu a:hover,
.btn-bf-ghost:hover,
.theme-switch:hover,
.standings-view-tab:hover,
.league-filter-btn:hover,
.secondary-btn:hover,
.article-back-btn:hover,
.sidebar-link-card:hover,
.bf-search-tags button:hover,
.bf-match-buttons a:hover {
  background: var(--button-hover);
  border-color: var(--border-strong);
  transform: translateY(-1px);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.20),
    0 0 22px rgba(25, 242, 138, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.topbar-menu a.active,
.league-filter-btn.active {
  background: var(--button-active-bg);
  color: var(--button-active-text);
  border-color: var(--green-border);
}

.standings-view-tab.active {
  background: linear-gradient(180deg, #ff9831, #ff881f);
  border-color: transparent;
  color: #fff;
}

.primary-btn,
.bf-btn-primary,
.bf-search-form button {
  border: 0;
  color: #04150b;
  font-weight: 900;
  background: linear-gradient(135deg, #24e982 0%, #b6ff3c 100%);
  box-shadow:
    0 0 28px rgba(61, 255, 137, 0.34),
    0 14px 32px rgba(18, 200, 120, 0.20),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.primary-btn {
  min-height: 52px;
  padding: 0 24px;
  font-size: 16px;
}

.primary-btn:hover,
.bf-btn-primary:hover,
.bf-search-form button:hover {
  filter: brightness(1.04);
  transform: translateY(-2px);
  box-shadow:
    0 0 38px rgba(61, 255, 137, 0.48),
    0 16px 36px rgba(18, 200, 120, 0.24),
    inset 0 1px 0 rgba(255,255,255,0.32);
}

/* =========================================================
   THEME SWITCH
   ========================================================= */

.theme-switch {
  gap: 10px;
  padding: 6px 12px 6px 8px;
}

.theme-switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.26);
}

.theme-switch-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  transition: transform 0.22s ease, background 0.22s ease;
}

.theme-switch-label {
  font-size: 13px;
  font-weight: 800;
  color: inherit;
}

body.theme-glass .theme-switch-thumb {
  transform: translateX(20px);
  background: #10b981;
}

/* =========================================================
   LABELS
   ========================================================= */

.hero-badge,
.hero-ai-badge,
.mini-label,
.mini-tag,
.insight-kicker,
.news-category,
.article-insight-kicker,
.mini-stat-label,
.adv-stat-label,
.standings-league-badge,
.prediction-card .league,
.insight-card .league {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid var(--green-border);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

/* =========================================================
   OLD HERO BLOCKS
   ========================================================= */

.hero,
.news-top-hero,
.match-pro-hero,
.insights-hero,
.news-hero,
.results-page-section .hero,
.ai-focus-banner .ai-focus-text,
.standings-league-bar {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--hero-surface);
  border: 1px solid var(--border);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero,
.news-top-hero,
.match-pro-hero,
.insights-hero,
.news-hero,
.results-page-section .hero,
.ai-focus-banner .ai-focus-text {
  padding: 26px 24px;
}

.hero,
.news-top-hero,
.match-pro-hero,
.insights-hero {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 28px;
}

.hero-left,
.news-top-hero-left,
.match-pro-left,
.insights-hero-left {
  flex: 0 1 430px;
  max-width: 430px;
  width: 100%;
}

.hero-card,
.news-top-hero-card,
.pro-score-card,
.insights-hero-card {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  align-self: flex-end;
  padding: 20px;
  border-radius: 20px;
}

.hero-left h1,
.hero-left h2,
.news-top-hero-left h1,
.news-top-hero-left h2,
.match-pro-left h1,
.insights-hero-left h1,
.insights-hero-left h2,
.news-hero h1,
.news-hero h2,
.results-page-section .hero h1,
.results-page-section .hero h2,
.article-pro-hero h1,
.article-hero h1 {
  margin: 0 0 12px;
  max-width: 680px;
  font-size: clamp(32px, 3vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text-main);
  font-weight: 900;
  text-wrap: balance;
}

.hero-left p,
.news-top-hero-left p,
.match-pro-left p,
.insights-hero-left p,
.news-hero p,
.results-page-section .hero p,
.article-pro-subtitle,
.article-subtitle,
.ai-text,
.match-summary-text,
.timeline-text,
.news-focus-box p,
.insight-summary p,
.model-card p,
.news-card p,
.featured-news-body p,
.insight-card p,
.article-content p,
.article-pro-body p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.6;
}

.hero-left p,
.news-top-hero-left p,
.match-pro-left p,
.insights-hero-left p {
  max-width: 560px;
}

.hero-card h3,
.news-top-hero-card h3,
.insights-hero-card h3,
.pro-score-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 900;
}

.card-top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

/* =========================================================
   COMPACT PREMIUM BF AI HERO
   ========================================================= */

.bf-ai-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.9fr);
  gap: 30px;
  width: min(var(--content-width), 100%);
  max-width: var(--content-width);
  margin: 20px auto 18px;
  padding: 34px 28px 24px;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 28%, rgba(25, 242, 138, 0.18), transparent 34%),
    radial-gradient(circle at 78% 22%, rgba(74, 169, 255, 0.10), transparent 34%),
    linear-gradient(135deg, rgba(4, 14, 18, 0.95), rgba(6, 18, 28, 0.93));
  border: 1px solid rgba(25, 242, 138, 0.20);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 45px rgba(25, 242, 138, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.bf-ai-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.28;
  mask-image: radial-gradient(circle at center, black, transparent 82%);
  pointer-events: none;
}

.bf-ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(
      120deg,
      rgba(255,255,255,0.075),
      transparent 36%,
      transparent 64%,
      rgba(255,255,255,0.04)
    );
}

.bf-ai-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(100px);
  opacity: 0.52;
  pointer-events: none;
}

.bf-ai-glow-left {
  left: -150px;
  top: 70px;
  background: radial-gradient(circle, rgba(0,255,156,0.42), transparent 62%);
}

.bf-ai-glow-right {
  right: -150px;
  top: 120px;
  background: radial-gradient(circle, rgba(45,108,255,0.30), transparent 62%);
}

.bf-ai-left,
.bf-ai-right,
.bf-benefits {
  position: relative;
  z-index: 2;
}

.bf-ai-badge,
.bf-search-label,
.bf-predict-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  color: #39ff98;
  background: rgba(35, 255, 148, 0.13);
  border: 1px solid rgba(35, 255, 148, 0.24);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(35, 255, 148, 0.13);
}

.bf-ai-title {
  margin: 24px 0 16px;
  max-width: 520px;
  color: #f6f9ff;
  font-size: clamp(42px, 4.4vw, 62px);
  line-height: 0.98;
  font-weight: 950;
  letter-spacing: -0.065em;
}

.bf-ai-title span {
  display: block;
  color: #31f28a;
  text-shadow: 0 0 30px rgba(49, 242, 138, 0.32);
}

.bf-ai-subtitle {
  max-width: 560px;
  color: rgba(231, 238, 248, 0.76);
  font-size: 16px;
  line-height: 1.48;
}

.bf-ai-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 24px 0 22px;
  max-width: 560px;
}

.bf-ai-stat {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 8px;
  align-items: center;
  min-height: 64px;
  padding: 11px 12px;
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  border: 1px solid rgba(170, 215, 255, 0.14);
  box-shadow:
    0 12px 28px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.bf-stat-icon {
  grid-row: span 2;
  color: #35ff94;
  font-size: 21px;
  text-shadow: 0 0 18px rgba(53, 255, 148, 0.40);
}

.bf-ai-stat strong {
  color: #fff;
  font-size: 17px;
  line-height: 1;
}

.bf-ai-stat small {
  color: rgba(235, 242, 250, 0.68);
  font-size: 11px;
  line-height: 1.15;
}

.bf-search-card {
  position: relative;
  max-width: 560px;
  padding: 18px;
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(50, 255, 145, 0.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
    rgba(8, 23, 32, 0.70);
  border: 1px solid rgba(120,255,190,0.25);
  box-shadow: var(--glass-shadow-green);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bf-search-card:hover,
.bf-match-card:hover,
.bf-benefit:hover {
  transform: translateY(-2px);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.42),
    0 0 42px rgba(0,255,140,0.18),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.bf-search-card h2 {
  margin: 14px 0;
  color: #ffffff;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.bf-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 10px;
}

.bf-input-box {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 15px;
  border-radius: 15px;
  background: rgba(12, 27, 40, 0.78);
  border: 1px solid rgba(190, 225, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.bf-input-box span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 23px;
}

.bf-input-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
}

.bf-input-box input::placeholder {
  color: rgba(222, 232, 245, 0.46);
}

.bf-search-form button {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 15px;
  font-size: 14px;
}

.bf-search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.bf-search-tags button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(244, 250, 255, 0.9);
  background: rgba(35, 255, 148, 0.075);
  border: 1px solid rgba(35, 255, 148, 0.25);
  font-size: 13px;
  font-weight: 800;
}

.bf-search-tags button:hover {
  color: #08110c;
  background: #35ff94;
}

.bf-search-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  color: rgba(235, 242, 250, 0.76);
  background: rgba(7, 18, 31, 0.64);
  border: 1px dashed rgba(180, 220, 255, 0.14);
  font-size: 13px;
  line-height: 1.42;
}

.bf-fans-line {
  margin-top: 16px;
  color: rgba(235, 242, 250, 0.58);
  font-size: 13px;
}

.bf-match-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 22% 72%, rgba(31, 255, 136, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015)),
    rgba(10, 22, 32, 0.78);
  border: 1px solid rgba(180,220,255,0.15);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.42),
    0 0 42px rgba(0,255,140,0.10),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bf-match-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  color: #36ff91;
  font-size: 14px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.bf-match-header small {
  color: rgba(255,255,255,0.78);
  font-size: 11px;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 0;
}

.bf-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  margin: 28px 0 14px;
}

.bf-team {
  text-align: center;
}

.bf-team-logo {
  display: grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin: 0 auto 11px;
  border-radius: 20px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  font-weight: 1000;
}

.bf-arsenal-logo {
  background: linear-gradient(135deg, #ff244e, #ffba26);
  box-shadow: 0 0 26px rgba(255, 76, 76, 0.22);
}

.bf-chelsea-logo {
  background: linear-gradient(135deg, #164cff, #00bcff);
  box-shadow: 0 0 26px rgba(45, 115, 255, 0.24);
}

.bf-team h3 {
  color: #fff;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.bf-vs {
  color: #fff;
  font-size: 25px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255,255,255,0.42);
}

.bf-predict-pill {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
  padding: 8px 14px;
  font-size: 11px;
}

.bf-probabilities {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 10px;
}

.bf-probabilities strong {
  display: block;
  color: rgba(235, 240, 255, 0.82);
  font-size: 30px;
  line-height: 1;
}

.bf-probabilities .bf-green {
  color: #35ff94;
  text-shadow: 0 0 24px rgba(53, 255, 148, 0.35);
}

.bf-probabilities .bf-blue {
  color: #8ba8ff;
}

.bf-probabilities span {
  display: block;
  margin-top: 7px;
  color: rgba(231, 238, 248, 0.58);
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-bar {
  display: grid;
  grid-template-columns: 47fr 28fr 25fr;
  gap: 5px;
  margin: 22px 0;
}

.bf-bar span {
  height: 11px;
  border-radius: 999px;
}

.bf-bar-home {
  background: linear-gradient(90deg, #18ee83, #24d96f);
  box-shadow: 0 0 16px rgba(36, 233, 130, 0.62);
}

.bf-bar-draw {
  background: rgba(185, 205, 225, 0.35);
}

.bf-bar-away {
  background: linear-gradient(90deg, #155ee8, #003ec2);
}

.bf-match-text {
  max-width: 390px;
  margin: 0 auto 22px;
  color: rgba(235, 242, 250, 0.76);
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.bf-match-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bf-match-buttons a {
  min-height: 50px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: 950;
}

.bf-btn-secondary {
  color: #ffffff;
  background: rgba(13, 27, 39, 0.72);
  border: 1px solid rgba(180, 220, 255, 0.12);
}

.bf-benefits {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.bf-benefit {
  position: relative;
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 86px;
  padding: 14px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.018)),
    rgba(7, 25, 31, 0.68);
  border: 1px solid rgba(75, 255, 171, 0.13);
  box-shadow:
    0 12px 34px rgba(0,0,0,0.18),
    inset 0 1px 0 rgba(255,255,255,0.055);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.bf-benefit-icon {
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  height: 46px;
  border-radius: 15px;
  background: rgba(35, 255, 148, 0.12);
  box-shadow: 0 0 24px rgba(35, 255, 148, 0.14);
  font-size: 22px;
}

.bf-benefit h4 {
  margin-bottom: 4px;
  color: #42ff9c;
  font-size: 15px;
  line-height: 1.2;
}

.bf-benefit p {
  color: rgba(235, 242, 250, 0.70);
  font-size: 12px;
  line-height: 1.32;
}

/* =========================================================
   GRID SYSTEM
   ========================================================= */

.news-layout-v2,
.match-pro-layout,
.standings-layout,
.featured-insight-grid,
.insight-duo-grid,
.prediction-core-grid,
.match-comparison-grid,
.model-grid,
.advanced-stats-grid,
.predictions-grid,
.news-grid,
.news-grid-v2,
.insights-cards-grid,
.form-compare,
.matches-grid,
.article-layout {
  max-width: 100%;
  align-items: start;
}

.news-layout-v2,
.match-pro-layout,
.standings-layout,
.article-layout {
  display: grid;
  gap: 24px;
}

.news-layout-v2 {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
}

.match-pro-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.standings-layout {
  grid-template-columns: minmax(0, 1.45fr) 320px;
}

.article-layout {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr);
}

.news-main-column,
.news-sidebar-v2,
.match-pro-main,
.match-pro-sidebar,
.standings-main,
.standings-sidebar,
.article-main-column,
.article-sidebar {
  display: grid;
  gap: 24px;
  align-content: start;
}

.featured-insight-grid,
.prediction-core-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 18px;
}

.insight-duo-grid,
.match-comparison-grid,
.form-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.model-grid,
.advanced-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.predictions-grid,
.matches-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.news-grid,
.news-grid-v2,
.insights-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.featured-side-stack,
.signals-stack,
.related-match-list,
.related-news-list,
.key-signal-list,
.timeline-list,
.trending-list,
.league-list,
.standings-legend {
  display: grid;
  gap: 14px;
}

/* =========================================================
   PROBABILITY BLOCKS
   ========================================================= */

.probabilities,
.featured-prob-grid,
.pro-hero-prob-grid,
.ai-prob-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.probabilities > div,
.featured-prob-box,
.ai-prob-tile {
  min-height: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 10px 8px;
  border-radius: 14px;
}

body.theme-dark .probabilities > div,
body.theme-dark .featured-prob-box,
body.theme-dark .ai-prob-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 149, 171, 0.14);
}

body.theme-glass .probabilities > div,
body.theme-glass .featured-prob-box,
body.theme-glass .ai-prob-tile {
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(16, 26, 47, 0.08);
}

.probabilities > div,
.ai-prob-tile strong {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.probabilities span,
.featured-prob-box span,
.ai-prob-tile span {
  margin-top: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.featured-prob-box strong {
  font-size: 30px;
  font-weight: 900;
  color: var(--text-main);
}

.ai-prob-tile strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.ai-prob-tile--home strong {
  color: #62f0be;
}

.ai-prob-tile--away strong {
  color: #6cc7ff;
}

.probability-bar,
.featured-long-bar,
.confidence-meter,
.ai-prob-bar {
  width: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  margin-top: 16px;
}

.probability-bar,
.featured-long-bar,
.ai-prob-bar {
  height: 12px;
}

.confidence-meter {
  height: 14px;
}

.ai-prob-bar {
  display: flex;
  margin: 0 0 14px;
}

.bar-home,
.bar-draw,
.bar-away,
.confidence-fill,
.ai-prob-bar__home,
.ai-prob-bar__draw,
.ai-prob-bar__away {
  height: 100%;
}

.bar-home,
.confidence-fill,
.ai-prob-bar__home {
  background: linear-gradient(90deg, #17b26a, #4ade80);
}

.bar-draw,
.ai-prob-bar__draw {
  background: rgba(100, 116, 139, 0.45);
}

.bar-away,
.ai-prob-bar__away {
  background: linear-gradient(90deg, #60a5fa, #38bdf8);
}

/* =========================================================
   LISTS / SMALL CARDS / SIDEBAR
   ========================================================= */

.related-match-item,
.related-news-item {
  display: block;
  padding: 18px 20px;
  border-radius: 18px;
}

.related-match-item strong,
.related-news-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 20px;
}

.timeline-minute {
  font-size: 22px;
  font-weight: 900;
  color: var(--green);
}

.key-signal-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
  padding: 18px 20px;
}

.key-signal-item span {
  font-weight: 700;
  color: var(--text-soft);
}

.key-signal-item strong {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-main);
}

.mini-stat-card {
  min-height: 112px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mini-stat-row,
.adv-stat-compare,
.confidence-text-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.mini-stat-row,
.adv-stat-compare {
  padding: 12px 0;
  border-top: 1px solid var(--border);
}

.mini-stat-row:first-of-type,
.adv-stat-compare:first-of-type {
  border-top: 0;
}

.sidebar-link-card,
.league-list a,
.trending-list a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  width: 100%;
  min-height: 64px;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.sidebar-link-card::before,
.league-list a::before,
.trending-list a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.sidebar-link-card:hover::before,
.league-list a:hover::before,
.trending-list a:hover::before {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
}

.sidebar-link-card.active,
.league-list a.active,
.trending-list a.active {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.6);
  color: #10b981;
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.4),
    0 0 12px rgba(16, 185, 129, 0.25);
}

.news-focus-box {
  padding: 16px;
  border-radius: 14px;
}

.news-focus-box strong {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  color: var(--text-main);
}

.news-focus-box p {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.82;
}

/* =========================================================
   NEWS CARDS / IMAGES
   ========================================================= */

.featured-news-card,
.news-card,
.featured-story-card,
.news-card-v2 {
  display: block;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.featured-news-card:hover,
.news-card:hover,
.featured-story-card:hover,
.news-card-v2:hover {
  transform: translateY(-3px);
}

.featured-news-image,
.featured-story-card__image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.03);
}

.news-card img,
.news-card-v2__image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 18px 18px 0 0;
  background: rgba(255, 255, 255, 0.03);
}

.featured-news-body,
.news-card-body,
.featured-story-card__content,
.news-card-v2__content {
  padding: 18px;
}

.featured-news-body h3,
.featured-story-card__title {
  margin: 10px 0 10px;
  font-size: 30px;
  line-height: 1.12;
  font-weight: 900;
  color: var(--text-main);
}

.news-card h3,
.news-card-v2__title {
  margin: 10px 0 10px;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 900;
  color: var(--text-main);
}

.featured-news-body p,
.news-card-body p,
.featured-story-card__excerpt,
.news-card-v2__excerpt {
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.6;
}

.featured-news-meta,
.news-meta,
.featured-story-card__meta,
.news-card-v2__meta {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-muted);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-error-box,
.news-error,
.news-loading {
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

/* =========================================================
   PREDICTION CARDS
   ========================================================= */

.prediction-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 210px;
  padding: 18px 18px 16px;
  border-radius: 18px;
}

.prediction-card .league {
  align-self: flex-start;
  margin-bottom: 12px;
}

.prediction-card h3 {
  margin-bottom: 10px;
  font-size: 18px;
  line-height: 1.28;
  font-weight: 800;
}

.prediction-card .pred-line,
.prediction-card .prediction-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 3px 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-soft);
}

.prediction-card .pred-line strong,
.prediction-card .prediction-line strong {
  font-weight: 800;
  color: var(--text-main);
}

.prediction-card .home {
  color: #4ade80;
}

.prediction-card .draw {
  color: #cbd5e1;
}

.prediction-card .away {
  color: #60a5fa;
}

.prediction-card .prediction-footer,
.prediction-card .pred-footer,
.prediction-card .prediction-meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  line-height: 1.45;
  color: var(--text-soft);
}

/* =========================================================
   MATCH / RESULTS
   ========================================================= */

.match-card {
  min-height: 164px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.match-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 700;
}

.match-card__teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  text-align: center;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 800;
}

.match-card__teams strong {
  font-size: 22px;
  color: var(--text-main);
  line-height: 1;
}

.match-card__meta {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.62);
}

.score-card-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.score-card-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.score-team,
.score-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.team-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  flex-shrink: 0;
}

.featured-scoreline {
  font-size: clamp(42px, 4vw, 64px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.featured-score-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.match-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.match-meta-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--surface-soft);
  border: 1px solid var(--border);
  color: var(--text-soft);
}

.match-row {
  display: grid;
  grid-template-columns: 140px 1.5fr 90px 80px 80px 80px;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  transition: all 0.2s ease;
}

.match-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.cell-league {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-soft);
}

.league-name,
.team-name-short {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #19b56d, #4aa9ff);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.cell-match {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.teams {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: nowrap;
}

.team-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.team-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: 0 0 auto;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.home-dot {
  background: linear-gradient(135deg, #6df0b3, #19b56d);
}

.away-dot {
  background: linear-gradient(135deg, #7ccfff, #4aa9ff);
}

.vs-sep {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  flex: 0 0 auto;
}

.cell-ft,
.cell-ht,
.cell-xg,
.cell-odds {
  text-align: right;
  font-weight: 600;
  font-size: 14px;
}

.cell-ft {
  font-size: 16px;
  font-weight: 700;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.14);
  color: #c73737;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.live-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.45);
}

/* =========================================================
   STANDINGS
   ========================================================= */

.standings-page-wrap {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.standings-league-bar {
  padding: 28px 30px;
  text-align: center;
}

.standings-league-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.standings-league-main h1,
.standings-league-main h2 {
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1.05;
  font-weight: 900;
}

.standings-league-main p {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-soft);
}

.standings-league-tabs,
.league-filter-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.standings-filter-row {
  width: 100%;
  margin: 0 auto 4px;
  display: flex;
  justify-content: center;
}

.standings-main,
.standings-sidebar {
  min-width: 0;
}

.standings-panel {
  padding: 18px 18px 20px;
  overflow: hidden;
}

.standings-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  margin-top: 10px;
  padding-bottom: 6px;
}

.standings-table-head,
.standings-row {
  display: grid;
  grid-template-columns: 46px 220px 56px 56px 56px 56px 96px 120px;
  column-gap: 10px;
  align-items: center;
  min-width: 760px;
  box-sizing: border-box;
}

.standings-table-head {
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.standings-row {
  padding: 14px 12px;
  min-height: 58px;
  border-bottom: 1px solid var(--border);
}

.standings-row:last-child {
  border-bottom: 0;
}

.standings-table-head > *,
.standings-row > * {
  min-width: 0;
  box-sizing: border-box;
}

.standings-table-head > :nth-child(1),
.standings-row > :nth-child(1),
.standings-table-head > :nth-child(3),
.standings-row > :nth-child(3),
.standings-table-head > :nth-child(4),
.standings-row > :nth-child(4),
.standings-table-head > :nth-child(5),
.standings-row > :nth-child(5),
.standings-table-head > :nth-child(6),
.standings-row > :nth-child(6),
.standings-table-head > :nth-child(7),
.standings-row > :nth-child(7) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.standings-table-head > :nth-child(2),
.standings-row > :nth-child(2) {
  text-align: left;
}

.standings-pos,
.standings-cell,
.standings-points {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1.2;
  color: var(--text-main);
}

.standings-points {
  font-weight: 900;
}

.standings-team {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-main);
}

.standings-team span:last-child,
.standings-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-zone-line {
  width: 4px;
  min-width: 4px;
  height: 22px;
  border-radius: 999px;
  flex-shrink: 0;
}

.zone-cl .standings-zone-line,
.legend-cl {
  background: #60a5fa;
}

.zone-el .standings-zone-line,
.legend-el {
  background: #fb923c;
}

.zone-safe .standings-zone-line,
.legend-safe {
  background: #4ade80;
}

.zone-rel .standings-zone-line,
.legend-rel {
  background: #f87171;
}

.standings-form,
.form-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.standings-form span,
.form-badges span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 900;
  flex: 0 0 auto;
}

.form-win {
  background: rgba(34, 197, 94, 0.16);
  color: #15803d;
}

.form-draw {
  background: rgba(148, 163, 184, 0.18);
  color: #334155;
}

.form-loss {
  background: rgba(239, 68, 68, 0.14);
  color: #b91c1c;
}

.standings-sidebar {
  display: grid;
  gap: 16px;
}

.standings-match-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
}

.standings-match-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.3;
}

.standings-match-status,
.standings-match-time {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-soft);
}

/* =========================================================
   ARTICLE
   ========================================================= */

.article-page-wrap {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 64px;
  display: grid;
  gap: 24px;
}

.article-hero,
.article-layout {
  width: min(var(--content-width), 100%);
  margin: 0 auto;
}

.article-back-btn {
  min-height: 44px;
  padding: 0 16px;
  margin-bottom: 18px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.article-hero-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-hero h1 {
  margin-bottom: 14px;
  font-size: clamp(38px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 900;
  color: var(--text-main);
}

.article-subtitle {
  max-width: 900px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-soft);
}

.article-main-image {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 22px;
}

.article-content p,
.article-pro-body p {
  margin-bottom: 18px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-soft);
}

.article-pro-quote {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 4px solid var(--green);
  border-radius: 0 18px 18px 0;
  background: var(--surface-soft);
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.6;
  font-weight: 800;
}

.article-insight-box h3 {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 900;
  color: var(--text-main);
}

.related-news-item span {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

/* =========================================================
   ADVANCED STATS
   ========================================================= */

.adv-stat-box {
  min-width: 0;
  padding: 16px;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adv-stat-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.adv-stat-compare {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}

.adv-stat-compare span {
  font-size: 14px;
  line-height: 1.3;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.adv-stat-compare strong {
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.confidence-text-inline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.confidence-text-inline strong {
  text-align: right;
  white-space: nowrap;
}

.confidence-meter {
  height: 8px;
}

/* =========================================================
   GLOW HOVER
   ========================================================= */

.glow-hover {
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.glow-hover::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    circle at var(--x, 50%) var(--y, 50%),
    rgba(46, 213, 115, 0.18),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
}

.glow-hover:hover::after {
  opacity: 1;
}

.glow-hover:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(46, 213, 115, 0.25),
    0 10px 30px rgba(46, 213, 115, 0.15);
}

/* =========================================================
   MISC
   ========================================================= */

.league-mini-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #dff7ea;
  background: linear-gradient(180deg, rgba(38, 73, 61, 0.95), rgba(29, 57, 49, 0.95));
  border: 1px solid rgba(90, 214, 154, 0.22);
  box-shadow: 0 0 14px rgba(25, 181, 109, 0.12);
  flex-shrink: 0;
}

.team-circle {
  background: linear-gradient(180deg, rgba(58, 88, 124, 0.95), rgba(40, 63, 92, 0.95));
  border: 1px solid rgba(116, 176, 255, 0.18);
  box-shadow: 0 0 14px rgba(74, 169, 255, 0.10);
}

.hidden-view {
  display: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1180px) {
  .news-layout-v2,
  .match-pro-layout,
  .standings-layout,
  .featured-insight-grid,
  .prediction-core-grid,
  .insight-duo-grid,
  .match-comparison-grid,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .model-grid,
  .advanced-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .predictions-grid,
  .news-grid,
  .news-grid-v2,
  .insights-cards-grid,
  .matches-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .standings-sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bf-ai-hero {
    grid-template-columns: 1fr;
    max-width: var(--content-width);
  }

  .bf-ai-right {
    max-width: 560px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .site-logo,
  .topbar-menu,
  .topbar-actions {
    justify-content: center;
  }

  .hero,
  .news-top-hero,
  .match-pro-hero,
  .insights-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-left,
  .news-top-hero-left,
  .match-pro-left,
  .insights-hero-left,
  .hero-card,
  .news-top-hero-card,
  .pro-score-card,
  .insights-hero-card {
    max-width: 100%;
    width: 100%;
    flex: unset;
  }
}

@media (max-width: 900px) {
  .standings-layout {
    grid-template-columns: 1fr;
  }

  .standings-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    font-size: 17px;
  }

  main,
  .news-page-wrap,
  .match-page-wrap,
  .article-page-wrap,
  .article-pro-wrap,
  .standings-page-wrap,
  .page-shell {
    width: calc(100% - 24px);
    padding: 20px 0 50px;
  }

  .hero,
  .news-top-hero,
  .match-pro-hero,
  .insights-hero,
  .article-pro-hero,
  .article-hero,
  .news-hero,
  .results-page-section .hero,
  .ai-focus-banner .ai-focus-text,
  .standings-league-bar {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .hero-left h1,
  .hero-left h2,
  .news-top-hero-left h1,
  .news-top-hero-left h2,
  .match-pro-left h1,
  .insights-hero-left h1,
  .insights-hero-left h2,
  .news-hero h1,
  .news-hero h2,
  .results-page-section .hero h1,
  .results-page-section .hero h2,
  .standings-league-main h1,
  .standings-league-main h2,
  .article-pro-hero h1,
  .article-hero h1 {
    font-size: 30px;
    line-height: 1.08;
  }

  .hero-left p,
  .news-top-hero-left p,
  .match-pro-left p,
  .insights-hero-left p,
  .news-hero p,
  .results-page-section .hero p {
    font-size: 17px;
  }

  .panel,
  .predictions-section,
  .side-block,
  .hero-card,
  .insights-hero-card,
  .featured-main-card,
  .featured-news-body,
  .news-card-body,
  .insight-card-body,
  .compare-card,
  .prediction-summary-card,
  .adv-stat-box,
  .pro-score-card,
  .news-focus-box,
  .mini-stat-card,
  .model-card,
  .form-team,
  .match-card,
  .standings-panel,
  .standings-sidebar .side-block,
  .article-insight-box,
  .ai-prob-card {
    padding: 20px;
    border-radius: 20px;
  }

  .model-grid,
  .advanced-stats-grid,
  .predictions-grid,
  .news-grid,
  .news-grid-v2,
  .insights-cards-grid,
  .matches-grid,
  .form-compare,
  .featured-prob-grid,
  .pro-hero-prob-grid,
  .probabilities,
  .standings-sidebar,
  .score-card-teams,
  .article-layout,
  .ai-prob-grid,
  .bf-ai-stats,
  .bf-benefits,
  .bf-search-form,
  .bf-match-buttons {
    grid-template-columns: 1fr;
  }

  .bf-ai-hero {
    padding: 26px 18px 20px;
    border-radius: 22px;
  }

  .bf-ai-title {
    margin-top: 20px;
    font-size: clamp(38px, 12vw, 50px);
  }

  .bf-teams,
  .match-card__teams,
  .timeline-item {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bf-vs {
    font-size: 24px;
  }

  .bf-search-card,
  .bf-match-card {
    padding: 18px;
  }

  .standings-table-head {
    display: none;
  }

  .standings-row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
    background: var(--surface-soft);
  }

  .standings-team {
    justify-content: center;
    text-align: center;
  }

  .standings-form {
    flex-wrap: wrap;
  }

  .article-main-image,
  .featured-news-image,
  .featured-story-card__image img {
    height: 220px;
  }

  .news-card img,
  .news-card-v2__image img {
    height: 180px;
  }

  .news-grid-v2 {
    grid-template-columns: 1fr;
  }

  .match-row {
    grid-template-columns: 1fr;
  }

  .teams {
    flex-wrap: wrap;
    gap: 6px 10px;
  }

  .vs-sep {
    display: none;
  }

  .match-card__meta {
    flex-direction: column;
    gap: 6px;
  }

  .article-page-wrap {
    width: calc(100% - 24px);
    padding: 20px 0 50px;
  }

  .article-main-image {
    height: 240px;
  }

  .article-hero h1 {
    font-size: 34px;
  }

  .article-content p,
  .article-pro-body p {
    font-size: 16px;
    line-height: 1.75;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .sidebar-link-card {
    min-height: 58px;
    padding: 0 16px;
    font-size: 17px;
    border-radius: 16px;
  }

  .prediction-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .advanced-stats-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ai-metric-link {
    flex: 100%;
  }

  .ai-metric-chip {
    justify-content: space-between;
  }
}
/* =========================================================
   EMERGENCY LAYOUT FIX
   restores grids, spacing and card layout
   ========================================================= */

.page-shell,
main,
.news-page-wrap,
.match-page-wrap,
.article-page-wrap,
.article-pro-wrap,
.standings-page-wrap {
  display: grid;
  gap: 24px;
}

.predictions-section,
.panel,
.news-layout-v2,
.match-pro-layout,
.standings-layout,
.news-grid,
.news-grid-v2,
.predictions-grid,
.matches-grid,
.insights-cards-grid,
.article-layout {
  margin-left: auto;
  margin-right: auto;
}

/* HERO stays compact */
.bf-ai-hero {
  width: min(1040px, 100%);
  max-width: 1040px;
  margin: 24px auto;
  gap: 28px;
}

/* restore 2-column news */
.news-grid,
.news-grid-v2,
.insights-cards-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

/* restore predictions 3-column */
.predictions-grid,
.matches-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

/* restore page layouts */
.news-layout-v2 {
  display: grid !important;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr) !important;
  gap: 24px !important;
}

.match-pro-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr) !important;
  gap: 24px !important;
}

.standings-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.45fr) 320px !important;
  gap: 24px !important;
}

.article-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, 0.82fr) !important;
  gap: 24px !important;
}

/* card spacing */
.news-card,
.news-card-v2,
.featured-news-card,
.featured-story-card,
.prediction-card,
.match-card,
.panel,
.predictions-section,
.side-block {
  display: block;
  margin: 0;
}

/* prevent glass overlay from covering content */
.panel > *,
.predictions-section > *,
.news-card > *,
.news-card-v2 > *,
.featured-news-card > *,
.featured-story-card > *,
.prediction-card > *,
.match-card > *,
.side-block > *,
.bf-search-card > *,
.bf-match-card > *,
.bf-benefit > * {
  position: relative;
  z-index: 2;
}

/* responsive */
@media (max-width: 1180px) {
  .news-layout-v2,
  .match-pro-layout,
  .standings-layout,
  .article-layout {
    grid-template-columns: 1fr !important;
  }

  .predictions-grid,
  .matches-grid,
  .news-grid,
  .news-grid-v2,
  .insights-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .predictions-grid,
  .matches-grid,
  .news-grid,
  .news-grid-v2,
  .insights-cards-grid {
    grid-template-columns: 1fr !important;
  }

  .bf-ai-hero {
    grid-template-columns: 1fr;
  }
}
/* FORCE FIX AI HERO */

.bf-ai-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr) !important;
  gap: 34px !important;
  width: min(1040px, 100%) !important;
  margin: 24px auto !important;
  padding: 34px 28px 24px !important;
}

.bf-ai-left {
  display: block !important;
}

.bf-match-card {
  align-self: start !important;
}

.bf-benefits {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.bf-ai-title span {
  display: block !important;
}

.bf-ai-stats {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
}

.bf-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 190px !important;
}

.bf-teams {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
}

.bf-probabilities {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
}

.bf-match-buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
}

@media (max-width: 900px) {
  .bf-ai-hero {
    grid-template-columns: 1fr !important;
  }

  .bf-benefits {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .bf-benefits,
  .bf-ai-stats,
  .bf-search-form,
  .bf-teams,
  .bf-probabilities,
  .bf-match-buttons {
    grid-template-columns: 1fr !important;
  }
}
/* HERO LAYOUT FIX */
.bf-ai-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.bf-ai-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bf-ai-right {
  display: flex;
}
.bf-match-card {
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
.bf-search-card {
  width: 100%;
  max-width: 640px;
}
/* GRID FIX */
.news-grid,
.news-grid-v2,
.predictions-grid,
.matches-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
/* PREDICTIONS TABLE STYLE */
.predictions-section {
  padding: 24px;
  border-radius: 24px;
  backdrop-filter: blur(18px);
}

.predictions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.prediction-row {
  display: grid;
  grid-template-columns: 140px 1fr repeat(3, 70px) 90px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.02);
  transition: 0.2s ease;
}

.prediction-row:hover {
  background: rgba(46,213,115,0.08);
}
/* GLOBAL GLASS STYLE */
.panel,
.prediction-card,
.news-card,
.bf-search-card,
.bf-match-card,
.predictions-section {
  backdrop-filter: blur(18px);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
  border: 1px solid rgba(120,255,190,0.18);
  box-shadow:
    0 0 0 1px rgba(120,255,190,0.06),
    0 10px 40px rgba(0,0,0,0.35);
}
.primary-btn,
.bf-btn-primary {
  background: linear-gradient(135deg, #22c55e, #a3e635);
  box-shadow:
    0 0 24px rgba(61,255,137,0.35),
    inset 0 1px 0 rgba(255,255,255,0.25);
}

.secondary-btn,
.bf-btn-secondary {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
}
@media (max-width: 1100px) {
  .bf-ai-hero {
    grid-template-columns: 1fr;
  }

  .news-grid,
  .predictions-grid {
    grid-template-columns: 1fr;
  }
}
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

/* HEADER */

.bf-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px 24px;
  background: rgba(4, 17, 26, 0.78);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
}

.bf-header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.bf-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 17px;
}

.bf-logo img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.bf-logo span span {
  color: #35ff94;
}

.bf-nav,
.bf-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bf-nav a,
.bf-signin,
.bf-theme {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid rgba(170,215,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #eef4fb;
  font-size: 14px;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.bf-theme {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bf-theme span {
  width: 26px;
  height: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  position: relative;
}

.bf-theme span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  left: 3px;
}

/* PAGE */

.bf-page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 70px;
  display: grid;
  gap: 20px;
}

/* HERO */

.bf-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: 24px;
  padding: 34px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 16% 20%, rgba(35,255,148,0.16), transparent 34%),
    linear-gradient(135deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
    rgba(6, 18, 28, 0.78);
  border: 1px solid rgba(35,255,148,0.16);
  box-shadow:
    0 24px 70px rgba(0,0,0,0.42),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(22px);
}

.bf-pill,
.bf-mini-pill,
.bf-ai-predicts {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: #35ff94;
  background: rgba(35,255,148,0.13);
  border: 1px solid rgba(35,255,148,0.25);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.bf-hero h1 {
  margin: 26px 0 16px;
  font-size: clamp(48px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.bf-hero h1 span {
  display: block;
  color: #31f28a;
  text-shadow: 0 0 32px rgba(49,242,138,0.32);
}

.bf-hero-text {
  max-width: 560px;
  margin: 0;
  color: rgba(231,238,248,0.78);
  font-size: 18px;
  line-height: 1.5;
}

/* METRICS */

.bf-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0 22px;
}

.bf-metric {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(170,215,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.bf-metric span {
  grid-row: span 2;
  color: #35ff94;
  font-size: 24px;
}

.bf-metric strong {
  font-size: 19px;
  line-height: 1;
}

.bf-metric small {
  color: rgba(235,242,250,0.66);
  font-size: 12px;
}

/* SEARCH */

.bf-search-card,
.bf-featured,
.bf-benefits article,
.bf-predictions-section,
.bf-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025));
  border: 1px solid rgba(170,215,255,0.14);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.28),
    inset 0 1px 0 rgba(255,255,255,0.07);
  backdrop-filter: blur(22px);
}

.bf-search-card {
  padding: 20px;
  border-radius: 22px;
  border-color: rgba(35,255,148,0.32);
  box-shadow:
    0 0 36px rgba(35,255,148,0.13),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.bf-search-card h2 {
  margin: 16px 0;
  font-size: 24px;
  letter-spacing: -0.04em;
}

.bf-search-row {
  display: grid;
  grid-template-columns: 1fr 190px;
  gap: 10px;
}

.bf-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 16px;
  background: rgba(5,16,26,0.72);
  border: 1px solid rgba(190,225,255,0.16);
}

.bf-input span {
  font-size: 23px;
  color: rgba(255,255,255,0.72);
}

.bf-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font-size: 15px;
}

.bf-input input::placeholder {
  color: rgba(225,235,245,0.45);
}

.bf-search-row button,
.bf-main-btn {
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, #24e982, #b6ff3c);
  color: #04150b;
  font-weight: 950;
  box-shadow:
    0 0 30px rgba(61,255,137,0.36),
    inset 0 1px 0 rgba(255,255,255,0.28);
}

.bf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.bf-tags button {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(35,255,148,0.22);
  background: rgba(35,255,148,0.08);
  color: rgba(244,250,255,0.92);
  font-weight: 800;
  font-size: 13px;
}

.bf-search-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 15px;
  border: 1px dashed rgba(180,220,255,0.14);
  background: rgba(5,16,26,0.52);
  color: rgba(235,242,250,0.72);
  font-size: 13px;
}

.bf-social-proof {
  margin-top: 16px;
  color: rgba(235,242,250,0.58);
  font-size: 14px;
}

/* FEATURED */

.bf-featured {
  padding: 28px;
  border-radius: 24px;
}

.bf-featured-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #35ff94;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.bf-featured-top span {
  color: rgba(255,255,255,0.78);
  font-size: 13px;
  text-transform: none;
}

.bf-team-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  margin: 34px 0 18px;
}

.bf-team {
  text-align: center;
}

.bf-team-logo {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 12px;
  border-radius: 22px;
  color: #fff;
  font-size: 38px;
  font-weight: 1000;
}

.bf-red {
  background: linear-gradient(135deg, #ff244e, #ffba26);
}

.bf-blue {
  background: linear-gradient(135deg, #164cff, #00bcff);
}

.bf-team h3 {
  margin: 0;
  font-size: 21px;
}

.bf-vs {
  font-size: 28px;
  font-weight: 950;
  text-shadow: 0 0 18px rgba(255,255,255,0.42);
}

.bf-ai-predicts {
  display: flex;
  margin: 0 auto 22px;
}

.bf-probs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  gap: 10px;
}

.bf-probs strong {
  display: block;
  font-size: 34px;
  line-height: 1;
}

.bf-green {
  color: #35ff94;
}

.bf-cold {
  color: #8ba8ff;
}

.bf-probs small {
  display: block;
  margin-top: 8px;
  color: rgba(231,238,248,0.58);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-prob-bar {
  display: grid;
  grid-template-columns: 47fr 28fr 25fr;
  gap: 5px;
  margin: 24px 0;
}

.bf-prob-bar span {
  height: 12px;
  border-radius: 999px;
}

.bf-home {
  background: #24e982;
  box-shadow: 0 0 18px rgba(36,233,130,0.62);
}

.bf-draw {
  background: rgba(185,205,225,0.35);
}

.bf-away {
  background: #155ee8;
}

.bf-featured-text {
  max-width: 390px;
  margin: 0 auto 24px;
  text-align: center;
  color: rgba(235,242,250,0.76);
  font-size: 15px;
  line-height: 1.5;
}

.bf-featured-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bf-featured-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 16px;
  font-weight: 950;
}

.bf-ghost-btn {
  background: rgba(5,16,26,0.58);
  border: 1px solid rgba(180,220,255,0.14);
}

/* BENEFITS */

.bf-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bf-benefits article {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
  padding: 16px;
  border-radius: 18px;
}

.bf-benefits article > span {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(35,255,148,0.12);
  font-size: 24px;
}

.bf-benefits h3 {
  margin: 0 0 4px;
  color: #42ff9c;
  font-size: 16px;
}

.bf-benefits p {
  margin: 0;
  color: rgba(235,242,250,0.70);
  font-size: 13px;
}

/* PREDICTIONS */

.bf-predictions-section,
.bf-panel {
  padding: 24px;
  border-radius: 24px;
}

.bf-predictions-section h2,
.bf-panel h2 {
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: -0.04em;
}

.bf-predictions-table {
  display: grid;
  gap: 8px;
}

.bf-prediction-row {
  display: grid;
  grid-template-columns: 140px 1.4fr 90px 90px 90px 120px;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.035);
  border: 1px solid rgba(170,215,255,0.08);
}

.bf-prediction-row span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(35,255,148,0.12);
  color: #35ff94;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.bf-prediction-row strong {
  font-size: 15px;
}

.bf-prediction-row b {
  color: rgba(235,242,250,0.85);
  font-size: 14px;
}

.bf-prediction-row em {
  font-style: normal;
  color: rgba(235,242,250,0.78);
  font-size: 13px;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .bf-header-inner {
    flex-wrap: wrap;
  }

  .bf-hero {
    grid-template-columns: 1fr;
  }

  .bf-benefits {
    grid-template-columns: repeat(2, 1fr);
  }

  .bf-prediction-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .bf-page,
  .bf-header-inner {
    width: calc(100% - 24px);
  }

  .bf-nav,
  .bf-header-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .bf-hero {
    padding: 22px;
  }

  .bf-hero h1 {
    font-size: 42px;
  }

  .bf-metrics,
  .bf-benefits,
  .bf-search-row,
  .bf-team-row,
  .bf-probs,
  .bf-featured-actions,
  .bf-prediction-row {
    grid-template-columns: 1fr;
  }

  .bf-featured {
    padding: 22px;
  }
}
/* ===== HEADER / LOGO FINAL FIX ===== */

.bf-header {
  padding: 14px 24px;
}

.bf-header-inner {
  width: min(1180px, calc(100% - 32px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 26px;
}

.bf-logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 950;
  line-height: 1;
  white-space: nowrap;
}

.bf-logo img {
  width: 54px !important;
  height: 54px !important;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(53, 255, 148, 0.45));
}

.bf-logo > span {
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}

.bf-logo > span > span {
  margin-left: 0;
  color: #35ff94;
}

.bf-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.bf-nav a,
.bf-signin,
.bf-theme {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px;
  min-height: 44px;
  padding: 0 20px;
  line-height: 1 !important;
  font-size: 16px;
  font-weight: 900;
}

.bf-theme {
  gap: 10px;
}

.bf-theme b {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
/* ===== TODAY PREDICTIONS TABLE FIX ===== */

.bf-predictions-section {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: 24px;
}

.bf-predictions-section h2 {
  margin: 0 0 20px;
  font-size: 30px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.bf-predictions-table,
#predictions-container {
  display: grid !important;
  gap: 8px !important;
}

.bf-prediction-row {
  display: grid !important;
  grid-template-columns: 150px minmax(220px, 1.4fr) 90px 90px 90px 130px 28px;
  align-items: center;
  gap: 16px;
  min-height: 56px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(170, 215, 255, 0.09) !important;
  box-shadow: none !important;
}

.bf-prediction-row::after {
  content: "›";
  justify-self: end;
  color: rgba(235, 242, 250, 0.72);
  font-size: 30px;
  line-height: 1;
}

.bf-prediction-row:hover {
  background: rgba(35, 255, 148, 0.07) !important;
  border-color: rgba(35, 255, 148, 0.18) !important;
}

.bf-prediction-row span {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(35, 255, 148, 0.13);
  border: 1px solid rgba(35, 255, 148, 0.18);
  color: #35ff94;
  font-size: 11px;
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bf-prediction-row strong {
  color: #f4f7fb;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 900;
}

.bf-prediction-row b {
  color: rgba(235, 242, 250, 0.82);
  font-size: 14px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.bf-prediction-row b:nth-of-type(1) {
  color: #35ff94;
}

.bf-prediction-row b:nth-of-type(3) {
  color: #58c7ff;
}

.bf-prediction-row em {
  justify-self: end;
  font-style: normal;
  color: rgba(235, 242, 250, 0.78);
  font-size: 13px;
  line-height: 1;
  font-weight: 800;
  white-space: nowrap;
}

.bf-prediction-row em::first-letter {
  text-transform: uppercase;
}

/* live badge look */
.bf-prediction-row em {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.12);
}

.bf-prediction-row em:not(:contains("LIVE")) {
  background: transparent;
}

/* browser-safe reset for Upcoming */
.bf-prediction-row em {
  background: rgba(255, 255, 255, 0.035);
}

.bf-prediction-row em[class="live"],
.bf-prediction-row em[data-status="live"] {
  background: rgba(239, 68, 68, 0.14);
  color: #ff6b6b;
}

/* responsive */
@media (max-width: 980px) {
  .bf-prediction-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 16px;
    min-height: auto !important;
  }

  .bf-prediction-row::after {
    display: none;
  }

  .bf-prediction-row em {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .bf-prediction-row {
    grid-template-columns: 1fr !important;
  }
}
/* ===== GLOBAL HEADER + PAGE ALIGN FIX ===== */

.bf-header,
.header {
  width: 100%;
  padding: 14px 24px !important;
  background: rgba(255, 255, 255, 0.82) !important;
  border-bottom: 1px solid var(--border-soft) !important;
  color: var(--page-text) !important;
}
body.theme-dark .bf-header,
body.theme-dark .header {
  background: rgba(4, 17, 26, 0.88) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #f4fff8 !important;
}
.bf-header-inner,
.header-inner {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: 260px 1fr 250px !important;
  align-items: center !important;
  gap: 24px !important;
}

/* Logo одинаковый на всех страницах */
.bf-logo,
.site-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-self: start !important;
  gap: 8px !important;
  min-width: 0 !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

.bf-logo img,
.site-logo__icon {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 0 8px rgba(53, 255, 148, 0.45));
}

.bf-logo > span,
.site-logo__text {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  color: #f4f7fb !important;
  font-size: 22px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
}

.bf-logo > span > span,
.logo-accent {
  color: #35ff94 !important;
}

/* Navigation centered */
.bf-nav,
.topbar-menu {
  justify-self: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.bf-header-actions,
.topbar-actions {
  justify-self: end !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

/* Button text centered */
.bf-nav a,
.topbar-menu a,
.bf-signin,
.btn-bf-ghost,
.bf-theme,
.theme-switch {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 16px !important;
  line-height: 1 !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

/* Main content одинаково по центру на всех страницах */
.bf-page,
.page-shell,
main,
.news-page-wrap,
.match-page-wrap,
.article-page-wrap,
.article-pro-wrap,
.standings-page-wrap {
  width: min(1180px, calc(100% - 32px)) !important;
  max-width: 1180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* AI Insights hero не должен уезжать вправо */
.insights-hero,
.ai-focus-banner,
.article-pro-hero,
.news-top-hero,
.match-pro-hero,
.news-hero,
.results-page-section .hero,
.standings-league-bar {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Inner sections same width */
.predictions-section,
.panel,
.news-layout-v2,
.match-pro-layout,
.standings-layout,
.matches-grid,
.news-grid,
.news-grid-v2,
.insights-cards-grid,
.predictions-grid,
.article-layout,
.bf-hero,
.bf-benefits,
.bf-predictions-section,
.bf-panel {
  width: 100% !important;
  max-width: 100% !important;
}

/* Active AI Insights */
.bf-nav a[href="ai-insights.html"],
.topbar-menu a[href="ai-insights.html"].active {
  color: #35ff94 !important;
  background: rgba(35, 255, 148, 0.12) !important;
  border-color: rgba(35, 255, 148, 0.28) !important;
}

/* Responsive */
@media (max-width: 980px) {
  .bf-header-inner,
  .header-inner {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .bf-logo,
  .site-logo,
  .bf-nav,
  .topbar-menu,
  .bf-header-actions,
  .topbar-actions {
    justify-self: center !important;
  }

  .bf-nav,
  .topbar-menu {
    flex-wrap: wrap !important;
  }
}
/* ===== MODEL VIEW + LATEST RESULTS ROW FIX ===== */

.bf-panel,
.panel {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: 26px 28px !important;
  border-radius: 24px !important;
}

.bf-panel-head h2,
.panel-head h2,
.bf-panel h2,
.panel h2 {
  margin: 0 0 18px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
  background: transparent !important;
}

/* containers */
#matches-container,
#results-container {
  display: grid !important;
  gap: 8px !important;
}

/* both row types */
#matches-container > *,
#results-container > * {
  display: grid !important;
  align-items: center !important;
  min-height: 62px !important;
  padding: 12px 16px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(170, 215, 255, 0.08) !important;
  box-shadow: none !important;
}

/* Model View rows */
#matches-container > * {
  grid-template-columns: 150px minmax(260px, 1.5fr) 80px 80px 100px 80px !important;
  gap: 16px !important;
}

/* Latest Results rows */
#results-container > * {
  grid-template-columns: 150px minmax(280px, 1fr) 90px 130px 70px !important;
  gap: 16px !important;
}

/* make inner text behave */
#matches-container *,
#results-container * {
  min-width: 0 !important;
}

#matches-container strong,
#results-container strong {
  color: #f4f7fb !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

#matches-container span,
#results-container span,
#matches-container small,
#results-container small {
  color: rgba(235, 242, 250, 0.76) !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

#matches-container b,
#results-container b {
  color: #f4f7fb !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

#matches-container em,
#results-container em {
  font-style: normal !important;
  white-space: nowrap !important;
}

/* dots / league labels */
#matches-container .league,
#results-container .league,
#matches-container [class*="league"],
#results-container [class*="league"] {
  color: rgba(235, 242, 250, 0.72) !important;
  font-size: 12px !important;
}

/* score near text, not floating away */
#results-container .score,
#results-container [class*="score"] {
  justify-self: start !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  color: #ffffff !important;
}

/* prediction text */
#results-container .prediction,
#results-container [class*="prediction"],
#matches-container .prediction,
#matches-container [class*="prediction"] {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

/* live badge */
#matches-container .live-badge,
#results-container .live-badge,
#matches-container [class*="live"],
#results-container [class*="live"] {
  width: fit-content !important;
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ff6b6b !important;
  border: 1px solid rgba(239, 68, 68, 0.18) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

/* hover */
#matches-container > *:hover,
#results-container > *:hover {
  background: rgba(35, 255, 148, 0.06) !important;
  border-color: rgba(35, 255, 148, 0.18) !important;
}

/* responsive */
@media (max-width: 900px) {
  #matches-container > *,
  #results-container > * {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 16px !important;
    min-height: auto !important;
  }
}

@media (max-width: 620px) {
  #matches-container > *,
  #results-container > * {
    grid-template-columns: 1fr !important;
  }
}

/* ===== COMPACT GRID PREDICTIONS ===== */

.bf-predictions-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)) !important;
  gap: 16px !important;
}

/* карточка */
.bf-prediction-row {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  gap: 12px !important;

  padding: 16px !important;
  border-radius: 18px !important;

  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(120,255,190,0.12) !important;

  min-height: 140px !important;

  transition: 0.25s ease !important;
}

/* hover */
.bf-prediction-row:hover {
  transform: translateY(-3px);
  background: rgba(35,255,148,0.08);
  border-color: rgba(35,255,148,0.25);
}

/* лига */
.bf-prediction-row span {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  background: rgba(35,255,148,0.12);
  color: #35ff94;
}

/* матч */
.bf-prediction-row strong {
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

/* проценты */
.bf-prediction-row b {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  margin-right: 10px;
}

.bf-prediction-row b:nth-child(1) { color:#35ff94; }
.bf-prediction-row b:nth-child(3) { color:#58c7ff; }

/* низ карточки */
.bf-prediction-row em {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.8;
}

/* live */
.bf-prediction-row em.live {
  color: #ff6b6b;
}

/* адаптив */
@media (max-width: 600px) {
  .bf-predictions-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ===== HERO MATCH LAYOUT FIX ===== */

.bf-match-hero {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 40px;
  align-items: center;

  padding: 40px;
  border-radius: 24px;

  background: linear-gradient(135deg, rgba(20,40,35,0.6), rgba(10,25,40,0.6));
  border: 1px solid rgba(120,255,190,0.15);
}

/* карточка слева */
.bf-match-card {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

/* правая часть */
.bf-match-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}

/* заголовок */
.bf-match-info h1 {
  font-size: 36px;
  font-weight: 900;
}

/* мета */
.bf-match-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* кнопки */
.bf-match-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* адаптив */
@media (max-width: 900px) {
  .bf-match-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .bf-match-actions {
    justify-content: center;
  }
}
/* =========================================================
   TODAY'S BEST PREDICTIONS — CLEAN COMPACT TABLE
   ========================================================= */

.bf-predictions-section {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: 24px 26px !important;
  border-radius: 24px !important;
}

.bf-predictions-section h2 {
  margin: 0 0 18px !important;
  font-size: 28px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: -0.04em !important;
}

.bf-predictions-table,
#predictions-container {
  display: grid !important;
  gap: 8px !important;
}

.bf-prediction-row {
  display: grid !important;
  grid-template-columns: 145px minmax(220px, 1fr) 86px 86px 86px 125px !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 58px !important;
  padding: 10px 14px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(170, 215, 255, 0.08) !important;
  box-shadow: none !important;
  transition: 0.2s ease !important;
}

.bf-prediction-row:hover {
  background: rgba(35, 255, 148, 0.065) !important;
  border-color: rgba(35, 255, 148, 0.18) !important;
}

.bf-prediction-row span {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: rgba(35, 255, 148, 0.13) !important;
  color: #35ff94 !important;
  font-size: 10px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.bf-prediction-row strong {
  color: #f4f7fb !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
  font-weight: 900 !important;
}

.bf-prediction-row b {
  color: rgba(235, 242, 250, 0.82) !important;
  font-size: 14px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.bf-prediction-row b:nth-of-type(1) {
  color: #35ff94 !important;
}

.bf-prediction-row b:nth-of-type(3) {
  color: #58c7ff !important;
}

.bf-prediction-row em {
  justify-self: end !important;
  font-style: normal !important;
  color: rgba(235, 242, 250, 0.78) !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  white-space: nowrap !important;
}

.bf-prediction-row em.live {
  padding: 7px 10px !important;
  border-radius: 999px !important;
  background: rgba(239, 68, 68, 0.14) !important;
  color: #ff6b6b !important;
}

@media (max-width: 900px) {
  .bf-prediction-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 14px !important;
    min-height: auto !important;
  }

  .bf-prediction-row em {
    justify-self: start !important;
  }
}

@media (max-width: 620px) {
  .bf-prediction-row {
    grid-template-columns: 1fr !important;
  }
}
/* ===== MATCH HERO TEXT + CARD ALIGN FIX ===== */

.match-hero,
.match-pro-hero,
.article-pro-hero {
  width: min(1180px, 100%) !important;
  margin: 0 auto !important;
  padding: 42px 48px !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 420px) !important;
  gap: 42px !important;
  align-items: center !important;
  border-radius: 26px !important;
}

/* левая колонка */
.match-hero-left,
.match-pro-left,
.article-pro-left {
  grid-column: 1 !important;
  max-width: 620px !important;
  justify-self: start !important;
  align-self: center !important;
}

/* заголовок */
.match-hero-left h1,
.match-pro-left h1,
.article-pro-left h1 {
  margin: 10px 0 16px !important;
  font-size: clamp(42px, 4vw, 58px) !important;
  line-height: 1.04 !important;
  letter-spacing: -0.05em !important;
  font-weight: 950 !important;
}

/* основной текст */
.match-hero-left p,
.match-pro-left p,
.article-pro-left p {
  max-width: 540px !important;
  margin: 0 0 20px !important;
  color: rgba(235, 242, 250, 0.78) !important;
  font-size: 16px !important;
  line-height: 1.6 !important;
}

/* чипы */
.match-meta,
.match-pro-meta,
.match-meta-row {
  display: flex !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin: 0 0 16px !important;
}

.match-meta span,
.match-pro-meta span,
.match-meta-row span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.065) !important;
  border: 1px solid rgba(170, 215, 255, 0.14) !important;
  color: rgba(235, 242, 250, 0.82) !important;
  font-size: 15px !important;
  font-weight: 800 !important;
}

/* кнопки */
.match-actions,
.match-pro-actions {
  display: flex !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.match-actions a,
.match-pro-actions a {
  width: auto !important;
  min-width: 180px !important;
  min-height: 46px !important;
  padding: 0 20px !important;
  border-radius: 14px !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

/* правая карточка */
.match-hero-right,
.match-pro-right,
.match-pro-hero .pro-score-card,
.article-pro-hero .pro-score-card {
  grid-column: 2 !important;
  justify-self: end !important;
  align-self: center !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 !important;
}

/* сама карточка */
.pro-score-card {
  padding: 24px !important;
  border-radius: 22px !important;
}

/* адаптив */
@media (max-width: 900px) {
  .match-hero,
  .match-pro-hero,
  .article-pro-hero {
    grid-template-columns: 1fr !important;
    padding: 28px 22px !important;
  }

  .match-hero-left,
  .match-pro-left,
  .article-pro-left,
  .match-hero-right,
  .match-pro-right,
  .match-pro-hero .pro-score-card,
  .article-pro-hero .pro-score-card {
    grid-column: 1 !important;
    max-width: 100% !important;
    justify-self: stretch !important;
  }

  .match-hero-left p,
  .match-pro-left p,
  .article-pro-left p {
    max-width: 100% !important;
  }
}
/* ===== PREDICTIONS → CARD GRID (НОВЫЙ ВИЗУАЛ) ===== */

#predictions-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

/* карточка */
.bf-prediction-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;

  padding: 16px !important;
  border-radius: 18px !important;

  background: rgba(255,255,255,0.035) !important;
  border: 1px solid rgba(120,255,190,0.12) !important;

  min-height: 120px !important;
  transition: 0.25s ease !important;
}

.bf-prediction-row:hover {
  transform: translateY(-3px);
  background: rgba(35,255,148,0.07) !important;
  border-color: rgba(35,255,148,0.25) !important;
}

/* лига */
.bf-prediction-row span {
  font-size: 10px !important;
  padding: 6px 10px !important;
}

/* матч */
.bf-prediction-row strong {
  font-size: 15px !important;
  line-height: 1.3 !important;
}

/* проценты */
.bf-prediction-row b {
  display: inline-block !important;
  font-size: 13px !important;
  margin-right: 8px !important;
}

/* строка процентов */
.bf-prediction-row b:nth-of-type(1) { color: #35ff94 !important; }
.bf-prediction-row b:nth-of-type(3) { color: #58c7ff !important; }

/* нижняя строка */
.bf-prediction-row em {
  margin-top: auto !important;
  font-size: 12px !important;
  opacity: 0.85;
}

/* адаптив */
@media (max-width: 1100px) {
  #predictions-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 600px) {
  #predictions-container {
    grid-template-columns: 1fr !important;
  }
}
/* ===== LOGO — STRONG HEADER PRESENCE ===== */

.bf-header-inner {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* логотип блок */
.bf-logo {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
}

/* иконка */
.bf-logo img,
.site-logo__icon {
  width: 34px !important;
  height: 34px !important;
  object-fit: contain !important;

  /* легкий glow */
  filter: drop-shadow(0 0 6px rgba(35,255,148,0.35));
}

/* текст */
.bf-logo span,
.site-logo__text {
  font-size: 20px !important;
  font-weight: 900 !important;
  letter-spacing: -0.02em !important;
  color: #f4f7fb !important;
}

/* .ai подсветка */
.bf-logo span span,
.logo-accent {
  color: #35ff94 !important;
}

/* навигация ближе к логотипу */
.bf-nav {
  margin-left: 32px !important;
}

/* кнопки не расползаются */
.bf-nav a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 18px !important;
  border-radius: 14px !important;
}

/* адаптив */
@media (max-width: 768px) {
  .bf-logo img {
    width: 28px !important;
    height: 28px !important;
  }

  .bf-logo span {
    font-size: 18px !important;
  }

  .bf-nav {
    margin-left: 16px !important;
  }
}
.bf-benefit-card {
  display: flex;
  gap: 16px;
  align-items: center;
  text-decoration: none;
  color: inherit;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(120,255,190,0.12);
  transition: all 0.25s ease;
}

.bf-benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(35,255,148,0.35);
  background: rgba(35,255,148,0.06);
}

.bf-benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .bf-benefits {
    grid-template-columns: 1fr 1fr;
  }
}
/* ===== RESULTS CARDS INTERACTION ===== */

.result-card,
.results-card,
.match-result-card,
.results-grid article,
#results-container > * {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.result-card::after,
.results-card::after,
.match-result-card::after,
.results-grid article::after,
#results-container > *::after {
  content: "View analysis →";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: #35ff94;
  font-size: 13px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.22s ease;
}

.result-card:hover,
.results-card:hover,
.match-result-card:hover,
.results-grid article:hover,
#results-container > *:hover {
  transform: translateY(-5px);
  border-color: rgba(53, 255, 148, 0.34) !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(53, 255, 148, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(53, 255, 148, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.result-card:hover::after,
.results-card:hover::after,
.match-result-card:hover::after,
.results-grid article:hover::after,
#results-container > *:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.result-card:active,
.results-card:active,
.match-result-card:active,
.results-grid article:active,
#results-container > *:active {
  transform: translateY(-2px) scale(0.99);
}
/* ===== AI INSIGHTS PAGE INTERACTION ===== */

.insights-hero a,
.insights-hero button,
.insight-card,
.insights-cards-grid article,
.featured-insight-grid > *,
.insight-duo-grid > *,
.ai-prob-card {
  position: relative;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease;
}

.insights-hero a:hover,
.insights-hero button:hover,
.insight-card:hover,
.insights-cards-grid article:hover,
.featured-insight-grid > *:hover,
.insight-duo-grid > *:hover,
.ai-prob-card:hover {
  transform: translateY(-4px);
  border-color: rgba(53, 255, 148, 0.35) !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(53, 255, 148, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(53, 255, 148, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

.insight-card::after,
.insights-cards-grid article::after {
  content: "Open insight →";
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #35ff94;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  transform: translateY(6px);
  transition: 0.22s ease;
}

.insight-card:hover::after,
.insights-cards-grid article:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.insights-hero a:active,
.insights-hero button:active,
.insight-card:active,
.insights-cards-grid article:active {
  transform: translateY(-2px) scale(0.99);
}
/* ===== AI INSIGHTS CLICKABLE CARDS FIX ===== */

.featured-insight-grid > *,
.insight-duo-grid > *,
.insights-cards-grid > *,
.ai-prob-card,
.model-card,
.adv-stat-box,
.featured-prob-box {
  cursor: pointer !important;
  transition: 0.22s ease !important;
}

.featured-insight-grid > *:hover,
.insight-duo-grid > *:hover,
.insights-cards-grid > *:hover,
.ai-prob-card:hover,
.model-card:hover,
.adv-stat-box:hover,
.featured-prob-box:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(53, 255, 148, 0.34) !important;
  background:
    radial-gradient(circle at 18% 20%, rgba(53, 255, 148, 0.10), transparent 38%),
    rgba(255, 255, 255, 0.055) !important;
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 28px rgba(53, 255, 148, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}
body.theme-light {
  --page-bg: #f5f7fb;
  --page-text: #111;
  --text-main: #222;
  --text-soft: #666;
  --text-muted: #999;

  --surface: #ffffff;
  --surface-soft: #f1f3f7;
  --surface-strong: #e9edf3;

  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);

  --header-bg: rgba(255,255,255,0.8);
  --header-line: rgba(0,0,0,0.05);

  --button-bg: #ffffff;
  --button-hover: #f0f2f6;
  --button-text: #111;

  --card-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
/* DARK THEME FIX */
body.theme-dark .hero-card,
body.theme-dark .match-hero,
body.theme-dark .prediction-core,
body.theme-dark .key-signals,
body.theme-dark .advanced-stats,
body.theme-dark .timeline-card,
body.theme-dark .form-comparison,
body.theme-dark .related-matches,
body.theme-dark .quick-insight,
body.theme-dark .glass-panel,
body.theme-dark .card,
body.theme-dark .panel {
  background: linear-gradient(
    180deg,
    rgba(18, 31, 40, 0.94),
    rgba(8, 18, 24, 0.92)
  ) !important;
  color: #f4fff8 !important;
  border: 1px solid rgba(35, 255, 148, 0.18) !important;
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
}

body.theme-dark .signal-card,
body.theme-dark .stat-card,
body.theme-dark .timeline-item,
body.theme-dark .related-match,
body.theme-dark .form-card,
body.theme-dark .mini-card,
body.theme-dark .prediction-tile {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.10),
    rgba(255, 255, 255, 0.035)
  ) !important;
  color: #f4fff8 !important;
  border: 1px solid rgba(255, 255, 255, 0.11) !important;
}

body.theme-dark .hero-card h1,
body.theme-dark .hero-card h2,
body.theme-dark .hero-card h3,
body.theme-dark .hero-card p,
body.theme-dark .hero-card span,
body.theme-dark .glass-panel h1,
body.theme-dark .glass-panel h2,
body.theme-dark .glass-panel h3,
body.theme-dark .glass-panel p,
body.theme-dark .glass-panel span,
body.theme-dark .card h1,
body.theme-dark .card h2,
body.theme-dark .card h3,
body.theme-dark .card p,
body.theme-dark .card span,
body.theme-dark .panel h1,
body.theme-dark .panel h2,
body.theme-dark .panel h3,
body.theme-dark .panel p,
body.theme-dark .panel span {
  color: #f4fff8 !important;
}

body.theme-dark .muted,
body.theme-dark .text-muted,
body.theme-dark .section-subtitle,
body.theme-dark .hero-subtitle {
  color: rgba(232, 255, 240, 0.68) !important;
}
body:not(.theme-dark) .bf-header,
body:not(.theme-dark) .header {
  background: rgba(255, 255, 255, 0.88) !important;
  border-bottom: 1px solid rgba(16, 32, 24, 0.12) !important;
  box-shadow: 0 8px 30px rgba(20, 45, 35, 0.08) !important;
}

body:not(.theme-dark) .site-logo,
body:not(.theme-dark) .site-logo__text,
body:not(.theme-dark) .topbar-menu a,
body:not(.theme-dark) .bf-nav a,
body:not(.theme-dark) .topbar-actions button {
  color: #102018 !important;
}
body:not(.theme-dark) .hero,
body:not(.theme-dark) .hero-card,
body:not(.theme-dark) .home-hero,
body:not(.theme-dark) .ai-hero,
body:not(.theme-dark) .hero-panel,
body:not(.theme-dark) .prediction-card,
body:not(.theme-dark) .featured-match-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.92),
    rgba(255, 255, 255, 0.68)
  ) !important;
  color: #102018 !important;
  border: 1px solid rgba(20, 60, 45, 0.12) !important;
  box-shadow:
    0 22px 60px rgba(20, 45, 35, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}
body:not(.theme-dark) .featured-match-card,
body:not(.theme-dark) .prediction-preview,
body:not(.theme-dark) .hero-preview-card {
  background: linear-gradient(
    180deg,
    rgba(18, 31, 40, 0.94),
    rgba(8, 18, 24, 0.92)
  ) !important;
  color: #f4fff8 !important;
}
