/* ============================================================
   8XBET – NHÀ VÔ ĐỊCH BUNDESLIGA PAGE STYLES
   ============================================================ */

:root {
  --bl-primary:  #d4001a;
  --bl-dark:     #0a0a0a;
  --bl-dark-btn: #b91c1c;
  --bl-mid:      #2d0000;
  --bl-light:    #fff1f2;
  --bl-gold:     #fbbf24;
  --bl-white:    #ffffff;
}

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.page-hero {
  background: linear-gradient(135deg, #0a0000 0%, #2d0000 50%, #5c0011 100%);
  padding: 60px 32px 56px;
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(212,0,26,.2) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 20%, rgba(185,28,28,.12) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero::after {
  content: '🏆 🏆 🏆 🏆 🏆';
  position: absolute; bottom: -8px; left: 0; right: 0;
  font-size: 2rem; letter-spacing: 70px;
  opacity: .04; pointer-events: none;
}
.hero-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,0,26,.2); border: 1px solid rgba(212,0,26,.45);
  color: var(--bl-gold); font-size: .78rem; font-weight: 700;
  letter-spacing: .8px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.page-hero h1 {
  font-size: clamp(2rem,4vw,3rem); font-weight: 900;
  color: #fff; line-height: 1.2; margin-bottom: 18px;
}
.page-hero h1 .hl { color: var(--bl-primary); }
.page-hero p {
  color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.75;
  max-width: 560px; margin-bottom: 28px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.btn-hero-primary {
  background: linear-gradient(90deg, var(--bl-dark-btn), var(--bl-primary));
  color: #fff; padding: 14px 30px; border-radius: 8px;
  font-weight: 800; font-size: .9rem; letter-spacing: .4px;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(212,0,26,.45);
  transition: filter .2s, transform .2s;
}
.btn-hero-primary:hover { filter: brightness(1.12); transform: translateY(-2px); text-decoration: none; }
.btn-hero-secondary {
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25);
  color: #fff; padding: 14px 28px; border-radius: 8px;
  font-weight: 700; font-size: .9rem;
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.9); font-size: .78rem; font-weight: 600;
  padding: 6px 14px; border-radius: 20px;
}
.pill i { color: var(--bl-gold); }

/* ════════════════════════════════════════
   HERO STANDINGS WIDGET
   ════════════════════════════════════════ */
.hero-standings-widget {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,0,26,.25);
  border-radius: 20px; overflow: hidden;
  backdrop-filter: blur(10px);
}
.hsw-header {
  background: linear-gradient(90deg, var(--bl-mid), var(--bl-dark-btn));
  padding: 13px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .82rem; font-weight: 700; color: #fff;
}
.update-badge {
  background: rgba(251,191,36,.15); border: 1px solid rgba(251,191,36,.35);
  color: var(--bl-gold); font-size: .68rem; font-weight: 800;
  padding: 3px 10px; border-radius: 4px;
  display: inline-flex; align-items: center; gap: 4px;
}
.hsw-title-odds { padding: 8px 0; }
.to-row {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .2s;
}
.to-row:hover { background: rgba(255,255,255,.04); }
.to-row:last-child { border-bottom: none; }
.to-row-top { background: rgba(212,0,26,.08); }
.tor-club { display: flex; align-items: center; gap: 8px; flex: 1; }
.tor-emoji { font-size: 1.1rem; }
.tor-name { font-size: .8rem; font-weight: 700; color: #fff; }
.tor-pos { font-size: .65rem; color: rgba(255,255,255,.4); font-weight: 600; min-width: 60px; text-align: center; }
.tor-odd {
  font-size: 1rem; font-weight: 900; color: rgba(255,255,255,.7);
  min-width: 44px; text-align: right;
}
.tor-odd.fav { color: var(--bl-gold); font-size: 1.1rem; }
.hsw-bet-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 12px 16px;
  background: linear-gradient(90deg, var(--bl-dark-btn), var(--bl-primary));
  color: #fff; padding: 12px 20px; border-radius: 10px;
  font-size: .82rem; font-weight: 800; text-decoration: none; text-align: center;
  transition: filter .2s, transform .2s;
  box-shadow: 0 3px 16px rgba(212,0,26,.35);
}
.hsw-bet-btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }

/* ════════════════════════════════════════
   STATS BANNER
   ════════════════════════════════════════ */
.stats-banner {
  background: linear-gradient(90deg, var(--bl-mid), var(--bl-dark-btn));
  padding: 28px 32px;
}
.stats-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(5,1fr); gap: 20px;
}
.stat-item { text-align: center; }
.s-num { font-size: 2rem; font-weight: 900; color: #fff; line-height: 1; }
.s-lbl { font-size: .8rem; color: rgba(255,255,255,.75); margin-top: 4px; font-weight: 600; }

/* ════════════════════════════════════════
   SECTION WRAPPERS
   ════════════════════════════════════════ */
.section      { padding: 64px 32px; }
.section-alt  { background: var(--bl-light); }
.section-dark { background: var(--bl-dark); }
.container    { max-width: 1200px; margin: 0 auto; }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(212,0,26,.1); color: var(--bl-dark-btn);
  font-size: .75rem; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 20px; margin-bottom: 14px;
}
.section-dark .section-head .eyebrow { background: rgba(212,0,26,.18); color: var(--bl-primary); }
.section-head h2 {
  font-size: clamp(1.6rem,3vw,2.4rem); font-weight: 900;
  color: var(--bl-dark); line-height: 1.25;
}
.section-dark .section-head h2 { color: #fff; }
.section-head p { color: #666; font-size: 1rem; margin-top: 12px; max-width: 640px; margin-left:auto; margin-right:auto; }
.section-dark .section-head p { color: rgba(255,255,255,.55); }
.hl-red { color: var(--bl-primary); }

/* ════════════════════════════════════════
   TITLE RACE GRID
   ════════════════════════════════════════ */
.title-race-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 24px;
}
.tr-card {
  background: #fff; border-radius: 18px; padding: 28px 24px;
  border: 1px solid rgba(212,0,26,.15);
  box-shadow: 0 6px 28px rgba(0,0,0,.08);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  position: relative;
}
.tr-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 44px rgba(212,0,26,.14);
  border-color: rgba(212,0,26,.35);
}
.tr-fav    { border-color: rgba(212,0,26,.35); box-shadow: 0 8px 32px rgba(212,0,26,.12); }
.tr-defend { border-color: rgba(22,163,74,.25); }
.tr-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(212,0,26,.1); color: var(--bl-dark-btn);
  font-size: .7rem; font-weight: 800; padding: 4px 10px; border-radius: 6px;
  margin-bottom: 14px;
}
.tr-badge-green  { background: #dcfce7; color: #166534; }
.tr-badge-yellow { background: #fef9c3; color: #854d0e; }
.tr-badge-gray   { background: #f3f4f6; color: #374151; }
.tr-emoji { font-size: 2.5rem; display: block; margin-bottom: 12px; }
.tr-card h3 { font-size: 1.05rem; font-weight: 900; color: var(--bl-dark); margin-bottom: 10px; }
.tr-card p  { font-size: .82rem; color: #666; line-height: 1.65; margin-bottom: 16px; }
.tr-odds-display {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(212,0,26,.06); border: 1px solid rgba(212,0,26,.15);
  border-radius: 10px; padding: 10px 16px; margin-bottom: 16px;
}
.tr-odds-lbl { font-size: .75rem; color: #888; }
.tr-odds-val { font-size: 1.4rem; font-weight: 900; color: var(--bl-primary); }
.tr-bet-btn {
  display: flex; align-items: center; justify-content: center;
  width: 100%; background: linear-gradient(90deg, var(--bl-dark-btn), var(--bl-primary));
  color: #fff; padding: 11px 20px; border-radius: 8px;
  font-size: .82rem; font-weight: 800; text-decoration: none;
  transition: filter .2s, transform .2s; box-sizing: border-box;
}
.tr-bet-btn:hover { filter: brightness(1.1); transform: translateY(-1px); text-decoration: none; }
.tr-bet-btn-green  { background: linear-gradient(90deg, #15803d, #16a34a); }
.tr-bet-btn-yellow { background: linear-gradient(90deg, #b45309, #d97706); }
.tr-bet-btn-gray   { background: linear-gradient(90deg, #374151, #4b5563); }

/* ════════════════════════════════════════
   TABLE
   ════════════════════════════════════════ */
.keo-table-wrap {
  overflow-x: auto; border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.keo-table {
  width: 100%; border-collapse: collapse; background: #fff;
}
.keo-table thead th {
  background: linear-gradient(90deg, var(--bl-mid), var(--bl-dark-btn));
  color: #fff; padding: 15px 20px;
  font-size: .82rem; font-weight: 800; text-align: left; letter-spacing: .4px;
}
.keo-table tbody tr { border-bottom: 1px solid rgba(212,0,26,.1); }
.keo-table tbody tr:last-child { border-bottom: none; }
.keo-table tbody tr:hover { background: rgba(212,0,26,.03); }
.keo-table td { padding: 14px 20px; font-size: .87rem; color: #444; vertical-align: middle; }
.keo-table td:first-child { font-weight: 800; color: var(--bl-dark); }
.keo-tag {
  display: inline-flex; align-items: center;
  background: rgba(212,0,26,.08); color: var(--bl-dark-btn);
  font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 5px;
}

/* ════════════════════════════════════════
   HISTORY GRID
   ════════════════════════════════════════ */
.history-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.hist-card {
  background: #fff; border-radius: 16px; padding: 28px 22px;
  border: 1px solid rgba(212,0,26,.15);
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  transition: transform .25s, box-shadow .25s;
  text-align: center;
}
.hist-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(212,0,26,.12); }
.hist-featured { border-color: rgba(212,0,26,.35); }
.hist-special  { border-color: rgba(22,163,74,.25); }
.hist-icon { font-size: 2rem; margin-bottom: 14px; color: var(--bl-primary); }
.hist-card h3 { font-size: .95rem; font-weight: 800; color: var(--bl-dark); margin-bottom: 10px; }
.hist-card p  { font-size: .8rem; color: #666; line-height: 1.65; margin-bottom: 14px; }
.hist-stat {
  display: inline-block; background: rgba(212,0,26,.1); color: var(--bl-dark-btn);
  font-size: .78rem; font-weight: 800; padding: 5px 14px; border-radius: 20px;
}

/* ════════════════════════════════════════
   STEPS
   ════════════════════════════════════════ */
.steps-list { display: flex; flex-direction: column; gap: 18px; max-width: 900px; margin: 0 auto; }
.step-item {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 20px 24px; background: rgba(255,255,255,.04);
  border-radius: 14px; border: 1px solid rgba(212,0,26,.2);
}
.si-num {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--bl-mid), var(--bl-primary));
  color: #fff; font-size: 1.1rem; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
}
.step-item h4 { font-size: .92rem; font-weight: 800; color: #fff; margin-bottom: 5px; }
.step-item p  { font-size: .84rem; color: rgba(255,255,255,.6); line-height: 1.65; margin: 0; }

/* ════════════════════════════════════════
   FAQ
   ════════════════════════════════════════ */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  border: 1px solid rgba(212,0,26,.3); border-radius: 12px;
  overflow: hidden; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.04);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; cursor: pointer;
  font-weight: 700; font-size: .95rem; color: var(--bl-dark);
  background: transparent; border: none; text-align: left;
  transition: background .2s; gap: 12px;
}
.faq-q:hover { background: var(--bl-light); }
.faq-q i { color: var(--bl-primary); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
  padding: 0 22px; color: #555; font-size: .9rem; line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 320px; padding: 0 22px 18px; }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
  .history-grid    { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .hero-inner            { grid-template-columns: 1fr; }
  .hero-standings-widget { display: none; }
  .stats-grid            { grid-template-columns: repeat(3,1fr); }
  .title-race-grid       { grid-template-columns: 1fr; }
  .history-grid          { grid-template-columns: 1fr; }
  .section               { padding: 44px 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
}
