body {
  background: #f3f4f6;
  color: #1f2328;
  font-family: 'Fira Sans Extra Condensed', sans-serif;
}

a[href*="instagram"] { color: #962fbf; }
a[href*="youtube"]   { color: #FF0000; }
a[href*="facebook"]  { color: #1877F2; }
a[href*="tiktok"]    { color: #2af0ea; }
a[href*="telegram"]  { color: #2AABEE; }

.navbar {
  background: #ffffff !important;
}

.container {
  max-width: 1240px;
}

/* Глобальні відступи для стандартних блоків Bootstrap */
.card,
.alert,
.table-responsive,
.list-group,
.accordion,
.bg-white.border.rounded,
.bg-light.border.rounded {
  margin-bottom: 1.5rem;
}

/* Нормальний внутрішній padding там, де його часто бракує */
.card-body,
.card-footer,
.alert,
.list-group-item,
.table-responsive,
.border.rounded,
.border.rounded-3,
.border.rounded-4 {
  padding: 1rem;
}

/* Якщо card-body уже має bootstrap padding, не ламаємо його */
.card .card-body {
  padding: 1.5rem;
}

.card .card-footer {
  padding: 1rem 1.5rem 1.5rem;
  background: #fff;
}

/* Hero / cover */
.hero-cover {
  min-height: 360px;
  background-size: cover;
  background-position: center;
  border-radius: 1.5rem;
  overflow: hidden;
}

.hero-overlay {
  min-height: 360px;
  display: flex;
  align-items: end;
  background: linear-gradient(to top, rgba(0,0,0,.60), rgba(0,0,0,.18));
}

/* Картинки-картки */
.card-thumb {
  height: 220px;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
}

/* М'які картки без потреби змінювати html */
.card {
  border: 0;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

/* Відступи для секцій */
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5 {
  margin-bottom: 1rem;
}

p:last-child {
  margin-bottom: 0;
}

/* Відступи між секціями в контейнерах */
.container.py-4 > .row,
.container.py-4 > .card,
.container.py-4 > .bg-white,
.container.py-4 > .bg-light,
.container.py-4 > .table-responsive,
.container.py-4 > div {
  margin-bottom: 1.5rem;
}

/* Таблиці */
.table > :not(caption) > * > * {
  padding: 0.9rem 0.75rem;
}

/* Buttons / badges */
.btn {
  border-radius: 0.9rem;
}

.badge {
  border-radius: 0.7rem;
  padding: 0.45em 0.7em;
}

/* Прапори */
.flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(0,0,0,.08);
}

/* Допоміжні */
.soft-muted,
.text-muted {
  color: #6b7280 !important;
}

/* Сторінки зі світлими блоками */
.bg-white,
.bg-light {
  border-radius: 1.5rem;
}

/* Щоб кнопки в card/footer не прилипали */
.card-footer .btn,
.card-body .btn {
  margin-top: 0.25rem;
}

/* Mobile */
@media (max-width: 768px) {
  .hero-cover,
  .hero-overlay {
	min-height: 240px;
  }

  .card .card-body {
	padding: 1rem;
  }

  .card .card-footer {
	padding: 0 1rem 1rem;
  }

  .card-thumb {
	height: 180px;
  }
}

/* ===== BITLOOK CARD SYSTEM ===== */

.bl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Portrait format for drivers */
.bl-thumb {
  aspect-ratio: 3 / 4;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #e9ecef;
}

.bl-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.bl-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bl-subtitle {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.bl-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 1rem;
}

.bl-footer {
  margin-top: auto;
}

.bl-avatar {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #e9ecef;
}

/* Team logo overlay */
.bl-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: #fff;
  border-radius: 1rem;
  padding: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);

  position: absolute;
  bottom: -20px;
  left: 16px;
}

/* щоб логотип не вилітав */
.bl-thumb-wrapper {
  position: relative;
}

/* ===== HOME HERO SLIDER ===== */

.bl-hero-slider .carousel-inner {
  border-radius: 1.5rem;
}

.bl-hero-slide {
  min-height: 560px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.bl-hero-content {
  width: 100%;
  max-width: 760px;
  padding: 2rem;
  color: #fff;
}

.bl-hero-meta {
  font-size: 1rem;
  opacity: 0.88;
}

.bl-hero-slider .carousel-indicators [data-bs-target] {
  width: 36px;
  height: 4px;
  border: 0;
  border-radius: 999px;
}

.bl-hero-slider .carousel-control-prev,
.bl-hero-slider .carousel-control-next {
  width: 8%;
}

@media (max-width: 991px) {
  .bl-hero-slide {
    min-height: 460px;
  }

  .bl-hero-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .bl-hero-slide {
    min-height: 360px;
  }

  .bl-hero-content {
    padding: 1.25rem;
  }

  .bl-hero-content .display-4 {
    font-size: 2rem;
  }

  .bl-hero-content .lead {
    font-size: 1rem;
  }
}

/* ===== DARK HOME HERO WRAP ===== */

.bl-home-hero-wrap {
  background:
    radial-gradient(circle at top right, rgba(255,255,255,0.06), transparent 28%),
    linear-gradient(180deg, #0f1115 0%, #171a20 100%);

  padding: 1.5rem 0 2rem;
  margin-top: 0; /* прибираємо негативний відступ */
}

.bl-hero-slider {
  border-radius: 1.5rem;
  overflow: hidden;
}

.bl-hero-slide {
  padding: 2rem; /* додає внутрішній breathing space */
}

.bl-home-hero-wrap + .container {
  position: relative;
  margin-top: 0.5rem;
}

.bl-home-hero-wrap .carousel-inner {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28) !important;
}

.bl-home-hero-wrap .carousel-indicators {
  margin-bottom: 1.25rem;
}

.bl-home-hero-wrap .carousel-control-prev-icon,
.bl-home-hero-wrap .carousel-control-next-icon {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

@media (max-width: 768px) {
  .bl-home-hero-wrap {
    margin-top: -1rem;
    padding-bottom: 1rem;
  }
}

/* ===== HOME NAVBAR OVERLAY ===== */

.is-home .navbar.bl-navbar-overlay {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.is-home .navbar.bl-navbar-overlay .container {
  min-height: 76px;
}

.is-home .navbar.bl-navbar-overlay .navbar-brand,
.is-home .navbar.bl-navbar-overlay .nav-link {
  color: #111827 !important;
}

.is-home .navbar.bl-navbar-overlay .nav-link:hover {
  color: #000 !important;
}

.is-home .navbar.bl-navbar-overlay .navbar-toggler {
  border-color: rgba(17, 24, 39, 0.15);
}

.is-home .navbar.bl-navbar-overlay + .container,
.is-home .navbar.bl-navbar-overlay + section {
  margin-top: 0;
}

@media (max-width: 991px) {
  .is-home .navbar.bl-navbar-overlay .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(255,255,255,0.96);
    border-radius: 1rem;
  }
}

/* ===== EDGE-TO-EDGE HOME HERO + OVERLAY NAVBAR ===== */

.is-home .bl-navbar-home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(to bottom, rgba(0,0,0,0.42), rgba(0,0,0,0.08));
  border-bottom: 0 !important;
  box-shadow: none;
}

.is-home .bl-navbar-home .container {
  min-height: 84px;
}

.is-home .bl-navbar-home .navbar-brand,
.is-home .bl-navbar-home .nav-link {
  color: #fff !important;
}

.is-home .bl-navbar-home .nav-link:hover,
.is-home .bl-navbar-home .navbar-brand:hover {
  color: #fff !important;
  opacity: 0.92;
}

.is-home .bl-navbar-home .navbar-toggler {
  border-color: rgba(255,255,255,0.28);
}

.is-home .bl-navbar-home .navbar-toggler-icon {
  filter: invert(1);
}

.is-home .bl-home-hero-wrap {
  margin-top: 0;
  padding: 0;
  background: #0f1115;
}

.is-home .bl-home-hero-wrap .container {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.is-home .bl-hero-slider {
  margin: 0;
  border-radius: 0;
}

.is-home .bl-hero-slider .carousel-inner {
  border-radius: 0;
  box-shadow: none !important;
}

.is-home .bl-hero-slide {
  min-height: 100vh;
  padding: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: end;
}

.is-home .bl-hero-content {
  width: 100%;
  max-width: 760px;
  padding: 8rem 2.5rem 3rem;
  color: #fff;
}

.is-home .bl-hero-meta {
  font-size: 1rem;
  opacity: 0.88;
}

.is-home .bl-hero-slider .carousel-indicators {
  margin-bottom: 2rem;
}

.is-home .bl-hero-slider .carousel-indicators [data-bs-target] {
  width: 40px;
  height: 4px;
  border: 0;
  border-radius: 999px;
}

.is-home .bl-hero-slider .carousel-control-prev,
.is-home .bl-hero-slider .carousel-control-next {
  width: 8%;
}

.is-home .bl-hero-slider .carousel-control-prev-icon,
.is-home .bl-hero-slider .carousel-control-next-icon {
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.35));
}

.is-home .bl-home-main {
  position: relative;
  margin-top: -4rem;
  z-index: 2;
}

@media (max-width: 991px) {
  .is-home .bl-navbar-home .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(17,17,17,0.82);
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .is-home .bl-hero-slide {
    min-height: 82vh;
  }

  .is-home .bl-hero-content {
    padding: 7rem 1.5rem 2rem;
  }
}

@media (max-width: 768px) {
  .is-home .bl-navbar-home .container {
    min-height: 72px;
  }

  .is-home .bl-hero-slide {
    min-height: 74vh;
  }

  .is-home .bl-hero-content {
    padding: 6.5rem 1.25rem 1.75rem;
  }

  .is-home .bl-hero-content .display-4 {
    font-size: 2.1rem;
  }

  .is-home .bl-home-main {
    margin-top: -2.5rem;
  }
}

.display-5 {
    font-weight: 700;
}

/* ===== FINAL HOME NAVBAR FIX ===== */

.is-home .bl-navbar-home {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12)) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.is-home .bl-navbar-home::after {
  content: "";
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

.is-home .bl-navbar-home .navbar-brand,
.is-home .bl-navbar-home .nav-link,
.is-home .bl-navbar-home .navbar-nav .nav-link,
.is-home .bl-navbar-home .navbar-brand:visited,
.is-home .bl-navbar-home .nav-link:visited {
  color: #ffffff !important;
}

.is-home .bl-navbar-home .nav-link:hover,
.is-home .bl-navbar-home .navbar-brand:hover {
  color: #ffffff !important;
  opacity: 0.9;
}

.is-home .bl-navbar-home .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.is-home .bl-navbar-home .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

.is-home .bl-navbar-home .container {
  min-height: 84px;
}

.is-home .bl-navbar-home .navbar-collapse {
  position: relative;
  z-index: 2;
}

@media (max-width: 991px) {
  .is-home .bl-navbar-home .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(17, 17, 17, 0.82) !important;
    border-radius: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}

/* ===== DRIFT LEADERBOARD ===== */

.bl-leaderboard-wrap {
  border-radius: 1rem;
  overflow: hidden;
}

.bl-leaderboard-table thead th {
  background: #f8f9fb;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  border-bottom: 1px solid #e5e7eb;
}

.bl-leaderboard-table tbody tr {
  transition: background 0.2s ease;
}

.bl-leaderboard-table tbody tr:hover {
  background: #fafafa;
}

.bl-pos-badge {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #111827;
  color: #fff;
  font-weight: 700;
}

.bl-place-1 .bl-pos-badge {
  background: linear-gradient(135deg, #f5c542, #d9a514);
  color: #111;
}

.bl-place-2 .bl-pos-badge {
  background: linear-gradient(135deg, #d7dbe2, #aeb7c2);
  color: #111;
}

.bl-place-3 .bl-pos-badge {
  background: linear-gradient(135deg, #c98b55, #9a6232);
  color: #fff;
}

.bl-score-pill {
  display: inline-block;
  min-width: 84px;
  text-align: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  font-weight: 700;
}

.bl-score-pill-muted {
  background: #e5e7eb;
  color: #111827;
}

@media (max-width: 991px) {
  .bl-leaderboard-table th,
  .bl-leaderboard-table td {
    white-space: nowrap;
  }
}

/* ===== BRACKET UI ===== */

.bl-bracket-stage {
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
}

.bl-bracket-stage-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
  margin-bottom: 1rem;
}

.bl-bracket-match {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.9rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  position: relative;
}

.bl-bracket-driver {
  padding: 0.55rem 0.7rem;
  border-radius: 0.7rem;
  background: #f3f4f6;
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.bl-bracket-driver:last-child {
  margin-bottom: 0;
}

.bl-bracket-driver.is-winner {
  background: #111827;
  color: #fff;
}

.bl-omt-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
}

/* ===== LIVE EVENT MODE ===== */

.bl-live-card {
  border: 1px solid rgba(220, 38, 38, 0.12);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.06);
}

.bl-live-card .badge.bg-danger {
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}

/* ===== EVENT PAGE POLISH ===== */

.bl-event-stats-card {
  border: 1px solid rgba(17, 24, 39, 0.06);
}

.bl-event-stats-card .h4,
.bl-event-stats-card .h6 {
  font-weight: 700;
}

/* ===== GLOBAL POLISH ===== */

body {
    background: #f5f6f8;
}

.container {
    max-width: 1280px;
}

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

.card {
    border: none;
    border-radius: 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.bl-card {
    transition: all 0.25s ease;
}

.bl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.08);
}

/* ===== IMAGE BLOCKS ===== */

.bl-thumb,
.card-thumb {
    height: 220px;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

/* ===== BODY ===== */

.bl-body {
    padding: 18px;
}

/* ===== TYPOGRAPHY ===== */

.bl-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.bl-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
}

.bl-meta {
    font-size: 0.85rem;
    color: #8a8f98;
}

/* ===== FOOTER ===== */

.bl-footer {
    margin-top: 14px;
}

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

.btn {
    border-radius: 10px;
    font-weight: 500;
}

.btn-dark {
    background: #111;
    border: none;
}

.btn-dark:hover {
    background: #000;
}

/* ===== HERO ===== */

.hero-cover {
    height: 380px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-overlay {
    background: linear-gradient(
        180deg,
        rgba(0,0,0,0.2) 0%,
        rgba(0,0,0,0.75) 100%
    );
    height: 100%;
    display: flex;
    align-items: flex-end;
}

/* ===== FLAGS ===== */

.flag {
    width: 18px;
    height: 12px;
    object-fit: cover;
    border-radius: 2px;
}

/* ===== BADGES ===== */

.badge {
    border-radius: 8px;
    padding: 6px 8px;
    font-weight: 500;
}

/* ===== TABLE ===== */

.table {
    border-radius: 12px;
    overflow: hidden;
}

/* ===== SPACING FIX ===== */

.card-body {
    padding: 20px;
}

/* NAVBAR */

.navbar {
    background: transparent;
    transition: all 0.3s ease;
    padding: 16px 24px;
}

.navbar.scrolled {
    background: #111;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.navbar .nav-link {
    color: #fff !important;
}

.navbar.scrolled .nav-link {
    color: #fff !important;
}

/* Leaderboard upgrade */

.bl-pos-badge {
    width: 34px;
    height: 34px;
    background: #111;
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.bl-place-1 {
    background: rgba(255,215,0,0.08);
}

.bl-place-2 {
    background: rgba(192,192,192,0.08);
}

.bl-place-3 {
    background: rgba(205,127,50,0.08);
}

.bl-score-pill {
    background: #111;
    color: #fff;
    padding: 6px 10px;
    border-radius: 8px;
}

/* Cards hover */

.bl-card .btn {
    opacity: 0.9;
}

.bl-card:hover .btn {
    opacity: 1;
}

/* =========================================================
   FINAL SAFE OVERRIDES
   navbar + page top spacing + driver cards width
========================================================= */

/* ----- NAVBAR: stable white header on all pages ----- */

.bl-navbar-main,
.navbar.bl-navbar-main {
  position: sticky;
  top: 0;
  z-index: 1030;
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
  padding-top: 14px;
  padding-bottom: 14px;
}

.bl-navbar-main .container {
  max-width: 1280px;
}

.bl-navbar-main .navbar-brand,
.bl-navbar-main .nav-link,
.bl-navbar-main .navbar-nav .nav-link,
.bl-navbar-main .navbar-brand:visited,
.bl-navbar-main .nav-link:visited {
  color: #111827 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.bl-navbar-main .nav-link:hover,
.bl-navbar-main .navbar-brand:hover {
  color: #000000 !important;
}

.bl-navbar-main .navbar-toggler {
  border-color: rgba(17, 24, 39, 0.15) !important;
}

.bl-navbar-main .navbar-toggler-icon {
  filter: none !important;
}

/* Прибиваємо старі overlay/home-варіанти, які могли залишитися */
.navbar.bl-navbar-main::after,
.navbar.bl-navbar-main::before {
  display: none !important;
}

.is-home .bl-navbar-main,
.is-home .navbar.bl-navbar-main {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.06);
}

.is-home .bl-navbar-main .navbar-brand,
.is-home .bl-navbar-main .nav-link,
.is-home .bl-navbar-main .navbar-nav .nav-link {
  color: #111827 !important;
}

/* ----- PAGE TOP SPACING ----- */

body {
  padding-top: 0 !important;
}

main,
.site-main,
.page-wrap {
  display: block;
}

/* якщо контент іде одразу після navbar */
.bl-navbar-main + .container,
.bl-navbar-main + .container-fluid,
.bl-navbar-main + main,
.bl-navbar-main + .site-main,
.bl-navbar-main + .page-wrap,
.bl-navbar-main + section {
  margin-top: 0px;
}

/* для сторінок з hero */
.hero-cover,
.bl-home-hero,
.carousel,
#homepageHero,
.bl-hero-slider {
  margin-top: 0 !important;
}

/* якщо десь старі стилі still додають відступ зверху */
.container.py-4:first-of-type,
.container.py-5:first-of-type {
  padding-top: 24px !important;
}

/* ----- CABINET / PROFILE STABILITY ----- */

.card {
  overflow: hidden;
}

.card-body {
  position: relative;
  z-index: 1;
}

/* ----- DRIVER CARDS NARROWER ----- */

.bl-thumb,
.card-thumb {
  background-size: cover;
  background-position: center;
}

/* окремо для списку водіїв в адмінці */
.admin-driver-grid .bl-thumb,
.admin-driver-grid .card-thumb {
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 280px;
}

/* якщо на сторінці водіїв нема спеціального wrapper-класу —
   все одно робимо портретні thumb у card-based list */
.bl-card .bl-thumb {
  aspect-ratio: 3 / 4;
  height: auto;
  min-height: 260px;
}

/* ----- SMALL RESPONSIVE FIXES ----- */

@media (max-width: 991.98px) {
  .bl-navbar-main .navbar-collapse {
    margin-top: 12px;
    background: #ffffff;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.08);
  }

  .bl-navbar-main + .container,
  .bl-navbar-main + .container-fluid,
  .bl-navbar-main + main,
  .bl-navbar-main + .site-main,
  .bl-navbar-main + .page-wrap,
  .bl-navbar-main + section {
    margin-top: 16px;
  }
}

.site-main {
  min-height: calc(100vh - 140px);
}

.site-footer {
  background: #f8f9fa;
  border-top: 1px solid #e5e5e5;
  font-size: 0.95rem;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.footer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00e0ff; /* твій cyan */
  display: inline-block;
  flex: 0 0 auto;
}

.site-footer a[href*="bitlook.net"] {
  font-weight: 600;
}

.site-footer .ecosystem-main {
  font-weight: 700;
}

.bl-card iframe {
  border: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.site-main .ratio iframe {
  border: 0;
}

.media-link-card {
  transition: transform .2s ease, box-shadow .2s ease;
}

.media-link-card:hover {
  transform: translateY(-2px);
}

.live-tab-pane {
  display: none;
}

.live-tab-pane.active {
  display: block;
}

.live-control-shell {
  --lc-top: 1rem;
}

.live-toolbar-card,
.live-panel-card {
  border-radius: 18px;
  border: 1px solid #dfe3e8;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.04);
}

.live-panel-card .card-body {
  padding: 1.1rem;
}

.live-section {
  scroll-margin-top: 90px;
}

.live-sticky-nav {
  position: sticky;
  top: var(--lc-top);
}

.live-sticky-nav .nav-link {
  border: 1px solid #dfe3e8;
  background: #ffffff;
  color: #101828;
  border-radius: 12px;
  padding: .65rem .85rem;
  font-size: .92rem;
  transition: .18s ease;
}

.live-sticky-nav .nav-link:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.live-sticky-nav .nav-link.active {
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.live-control-topbar {
  position: sticky;
  top: 0;
  z-index: 1020;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #e5e7eb;
}

.live-status-pill {
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .82rem;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #dfe3e8;
  color: #111827;
}

.live-tab-pane {
  display: none;
}

.live-tab-pane.active {
  display: block;
}

.live-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .75rem;
}

.live-mini-card {
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  padding: .9rem 1rem;
  background: #ffffff;
  box-shadow: 0 2px 10px rgba(16, 24, 40, 0.03);
}

.live-mini-card .k {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #667085;
  margin-bottom: .35rem;
}

.live-mini-card .v {
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
}

.live-mini-card-current {
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  border-color: #bfd8ff;
}

.live-mini-card-driver {
  background: linear-gradient(180deg, #f6f0ff 0%, #ffffff 100%);
  border-color: #d9c6ff;
}

.live-mini-card-result {
  background: linear-gradient(180deg, #fff4ea 0%, #ffffff 100%);
  border-color: #ffd5b2;
}

.live-mini-card-battle {
  background: linear-gradient(180deg, #eefcf4 0%, #ffffff 100%);
  border-color: #b8ebc9;
}

.live-mini-card-judge {
  background: linear-gradient(180deg, #fff9e8 0%, #ffffff 100%);
  border-color: #f6df8f;
}

.live-form-status {
  font-size: .85rem;
}

.live-form-status.saving { color: #b26a00; }
.live-form-status.saved { color: #198754; }
.live-form-status.error { color: #dc3545; }

.live-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.live-panel-current {
  background: linear-gradient(180deg, #eef6ff 0%, #ffffff 100%);
  border-color: #bfd8ff;
}

.live-panel-driver {
  background: linear-gradient(180deg, #f8f3ff 0%, #ffffff 100%);
  border-color: #d9c6ff;
}

.live-panel-result {
  background: linear-gradient(180deg, #fff7ef 0%, #ffffff 100%);
  border-color: #ffd7b8;
}

.live-panel-neutral {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  border-color: #d7dde5;
}

.live-panel-tower {
  background: linear-gradient(180deg, #f2f4f7 0%, #ffffff 100%);
  border-color: #cfd4dc;
}

.live-panel-battle {
  background: linear-gradient(180deg, #eefcf4 0%, #ffffff 100%);
  border-color: #b8ebc9;
}

.live-panel-battle-action {
  background: linear-gradient(180deg, #e9fff2 0%, #ffffff 100%);
  border-color: #9fdfb8;
}

.live-panel-judge {
  background: linear-gradient(180deg, #fff9eb 0%, #ffffff 100%);
  border-color: #f3df97;
}

.live-panel-info {
  background: linear-gradient(180deg, #ecfbfa 0%, #ffffff 100%);
  border-color: #b8e7e3;
}

.live-battle-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .75rem;
}

.live-battle-actions .btn {
  min-height: 56px;
  font-weight: 700;
}

.live-battle-actions .btn-omt,
.live-battle-actions .btn-clear {
  grid-column: span 2;
}

.live-heat-context {
  border: 1px solid #dfe3e8;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,0.85);
}

.live-driver-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .75rem;
  border-radius: 999px;
  background: #f8fafc;
  border: 1px solid #dfe3e8;
  font-weight: 600;
  color: #101828;
}

.live-driver-chip.active {
  background: rgba(25,135,84,.10);
  border-color: rgba(25,135,84,.35);
  color: #166534;
}

.live-judge-card {
  border: 1px solid #e5d38d;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,0.88);
  height: 100%;
}

.live-judge-votes {
  display: grid;
  grid-template-columns: 1fr;
  gap: .5rem;
}

.live-judge-votes .btn {
  min-height: 52px;
  text-align: left;
  font-weight: 700;
}

.live-judge-votes .btn.active-vote {
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.12);
  background: #111827;
  color: #ffffff;
  border-color: #111827;
}

.live-majority-box {
  border: 1px solid #f1dd95;
  border-radius: 16px;
  padding: 1rem;
  background: rgba(255,255,255,0.88);
}

.live-majority-pill {
  display: inline-flex;
  align-items: center;
  padding: .5rem .8rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid #dfe3e8;
  background: #fffdf7;
  color: #7a5200;
}

.live-judge-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.live-save-badge {
  background: #ecfdf3 !important;
  color: #027a48 !important;
  border-color: #a6f4c5 !important;
}

@media (max-width: 991.98px) {
  .live-sticky-nav {
    position: static;
  }
}

.team-hero-cover {
    min-height: 380px;
    border-radius: 28px;
    overflow: hidden;
    background-position: center;
    background-size: cover;
}

.team-hero-overlay {
    min-height: 380px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.46) 34%,
        rgba(0, 0, 0, 0.18) 100%
    );
    display: flex;
    align-items: flex-end;
}

.team-hero-content {
    padding: 40px 44px;
    max-width: 620px;
}

.team-hero-head {
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.team-hero-head-light {
    align-items: center;
}

.team-hero-logo-wrap {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    flex: 0 0 96px;
    overflow: hidden;
}

.team-hero-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.team-hero-logo-wrap-light {
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 6px 20px rgba(16,24,40,.08);
}

.team-hero-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
}

.team-hero-meta {
    min-width: 0;
}

.team-hero-kicker {
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    opacity: .85;
    margin-bottom: 6px;
}

.team-hero-title {
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    line-height: .95;
    font-weight: 800;
    margin: 0 0 10px;
}

.team-hero-location {
    font-size: .98rem;
    opacity: .92;
}

.team-hero-description {
    margin-top: 22px;
    font-size: 1.35rem;
    line-height: 1.35;
    max-width: 420px;
    font-weight: 500;
}

.team-hero-description-light {
    color: #4b5563;
}

@media (max-width: 767.98px) {
    .team-hero-cover,
    .team-hero-overlay {
        min-height: 320px;
    }

    .team-hero-content {
        padding: 24px 22px;
        max-width: 100%;
    }

    .team-hero-head {
        align-items: flex-start;
        gap: 14px;
    }

    .team-hero-logo-wrap,
    .team-hero-logo-wrap-light {
        width: 74px;
        height: 74px;
        flex-basis: 74px;
        border-radius: 16px;
        padding: 0;
    }

    .team-hero-title {
        font-size: 2.3rem;
    }

    .team-hero-description {
        margin-top: 16px;
        font-size: 1.05rem;
        max-width: 100%;
    }
}

.team-list-card {
  border-radius: 22px;
}

.team-list-thumb {
  height: 180px;
  overflow: hidden;
  background: #f3f4f6;
}

.team-list-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.team-list-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,0.08) 0%,
    rgba(0,0,0,0.18) 100%
  );
}

.team-list-cover-placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.team-list-logo-wrap {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: rgba(255,255,255,0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.14);
  overflow: hidden;
}

.team-list-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

@media (max-width: 767.98px) {
  .team-list-thumb {
    height: 165px;
  }

  .team-list-logo-wrap {
    width: 64px;
    height: 64px;
    border-radius: 16px;
  }
}

.team-rb-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #111111;
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
  transition: transform .18s ease, box-shadow .18s ease;
}

.team-rb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.18);
}

.team-rb-card-link {
  color: inherit;
}

.team-rb-media {
  position: relative;
  display: block;
  height: 420px;
  overflow: hidden;
}

.team-rb-cover {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.team-rb-card:hover .team-rb-cover {
  transform: scale(1.04);
  transition: transform .35s ease;
}

.team-rb-cover-placeholder {
  background: linear-gradient(135deg, #2a2a2a 0%, #111111 100%);
}

.team-rb-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.16) 35%, rgba(0,0,0,0.82) 100%),
    linear-gradient(90deg, rgba(0,0,0,0.42) 0%, rgba(0,0,0,0.10) 50%, rgba(0,0,0,0.32) 100%);
}

.team-rb-logo-pos {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 2;
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  border-radius: 18px;
}

.team-rb-content {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
}

.team-rb-kicker {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
  color: rgba(255,255,255,0.82);
  margin-bottom: 8px;
}

.team-rb-title {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: .95;
  font-weight: 800;
  margin: 0 0 10px;
  color: #ffffff;
}

.team-rb-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  color: rgba(255,255,255,0.92);
}

@media (max-width: 767.98px) {
  .team-rb-cover {
    background-position: top;
  }

  .team-rb-media {
    height: 340px;
  }

  .team-rb-logo-pos {
    width: 66px;
    height: 66px;
    flex-basis: 66px;
    border-radius: 16px;
  }

  .team-rb-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}

.driver-rb-number {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.96);
  color: #111111;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

.driver-rb-team {
  margin-top: 10px;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
}

@media (max-width: 767.98px) {
  .driver-rb-number {
    top: 14px;
    right: 14px;
    min-width: 52px;
    height: 34px;
    padding: 0 12px;
    font-size: .92rem;
  }
}

.event-poster-card {
  background: #ffffff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
  border: 1px solid #e7e9ee;
  transition: transform .18s ease, box-shadow .18s ease;
}

.event-poster-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(16, 24, 40, 0.12);
}

.event-poster-media {
  display: block;
  text-decoration: none;
}

.event-poster-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #f3f4f6;
}

.event-poster-image {
  transition: transform .35s ease;
}

.event-poster-card:hover .event-poster-image {
  transform: scale(1.03);
}

.event-poster-placeholder {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.event-poster-info {
  padding: 18px 22px 20px;
  background: #ffffff;
}

.event-pill {
  display: inline-flex;
  align-items: center;
  padding: .38rem .65rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1;
}

.event-pill-live {
  background: #fee2e2;
  color: #b91c1c;
}

.event-poster-title {
  font-size: clamp(1.5rem, 2.2vw, 2.1rem);
  line-height: 1.02;
  font-weight: 800;
}

.event-poster-title-link {
  color: #111827;
  text-decoration: none;
}

.event-poster-title-link:hover {
  color: #111827;
}

.event-poster-subtitle {
  color: #4b5563;
  font-size: .98rem;
  line-height: 1;
  min-height: 1em;
}

.event-poster-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: end;
}

.event-poster-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.event-meta-card {
  min-width: 0;
}

.event-meta-label {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  font-weight: 700;
  margin-bottom: 4px;
}

.event-meta-value {
  color: #4b5563;
  font-size: .98rem;
  line-height: 1.35;
  word-break: break-word;
}

.event-poster-side {
  flex: 0 0 auto;
}

.event-poster-btn {
  border-radius: 16px;
  padding: .8rem 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 1399.98px) {
  .event-poster-title {
    font-size: 1.85rem;
  }
}

@media (max-width: 1199.98px) {
  .event-poster-bottom {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .event-poster-side {
    width: 100%;
  }

  .event-poster-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .event-poster-info {
    padding: 16px 18px 18px;
  }

  .event-poster-meta-grid {
    grid-template-columns: 1fr;
  }

  .event-poster-title {
    font-size: 1.7rem;
  }

  .event-poster-subtitle {
    min-height: unset;
  }
}

.icon {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

.event-pill .icon {
  width: 14px;
  height: 14px;
}

.event-poster-btn .icon {
  width: 18px;
  height: 18px;
}

.bl-icon {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  vertical-align: middle;
  flex: 0 0 auto;
}

.bl-icon-sm {
  width: 14px;
  height: 14px;
}

.bl-icon-lg {
  width: 22px;
  height: 22px;
}

.bl-icon-xl {
  width: 28px;
  height: 28px;
}

.bl-icon-btn {
  width: 18px;
  height: 18px;
}

.bl-inline-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bl-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}

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

.bl-meta-item .bl-icon {
  opacity: .72;
}

.bl-pill-icon {
  width: 14px;
  height: 14px;
}

.bl-btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bl-text-muted-icon .bl-icon {
  opacity: .62;
}

.bl-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dc2626;
  display: inline-block;
}

.bl-stat-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f4f6;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.event-poster-card-link {
  color: inherit;
  text-decoration: none;
}

.event-poster-card-link:hover {
  color: inherit;
  text-decoration: none;
}

.event-poster-card-link .event-poster-title {
  color: #111827;
}

.event-poster-card-link .event-poster-subtitle {
  color: #4b5563;
}

.series-poster-subtitle {
  min-height: 3em;
}

@media (max-width: 767.98px) {
  .series-poster-subtitle {
    min-height: unset;
  }
}

.series-detail-hero {
    min-height: 360px;
    background-position: center;
    background-size: cover;
}

.series-detail-hero-overlay {
    min-height: 360px;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.62) 0%,
        rgba(0, 0, 0, 0.38) 42%,
        rgba(0, 0, 0, 0.16) 100%
    );
    display: flex;
    align-items: flex-end;
}

.series-detail-hero-content {
    padding: 34px 38px;
    max-width: 680px;
}

.series-detail-hero-text {
    max-width: 520px;
    font-size: 1.08rem;
    line-height: 1.45;
    color: rgba(255,255,255,.92);
}

.event-pill-hero {
    background: rgba(255,255,255,.16);
    color: #fff;
    border: 1px solid rgba(255,255,255,.18);
}

.series-detail-about {
    color: #4b5563;
    line-height: 1.7;
}

.event-pill-active {
    background: #dcfce7;
    color: #166534;
}

@media (max-width: 767.98px) {
    .series-detail-hero,
    .series-detail-hero-overlay {
        min-height: 280px;
    }

    .series-detail-hero-content {
        padding: 22px 20px;
    }

    .series-detail-hero-text {
        font-size: .98rem;
    }
}

.event-pill-hero-active {
  background: rgba(34,197,94,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
}

.season-doc-card {
  border: 1px solid #e7e9ee;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
}

.season-points-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  border: 1px solid #edf1f5;
  background: #f8fafc;
  border-radius: 14px;
  padding: 10px 12px;
  color: #4b5563;
}

.season-points-row strong {
  color: #111827;
}

@media (max-width: 767.98px) {
  .season-doc-card {
    padding: 12px 14px;
  }
}

/* =========================
   DRIVER PROFILE PAGE
   ========================= */

.driver-profile-hero {
  position: relative;
  background: #111;
  border-radius: 28px;
  isolation: isolate;
}

.driver-profile-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.02);
  filter: blur(0px);
  z-index: 0;
}

.driver-profile-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.62) 38%, rgba(10,10,10,.28) 68%, rgba(10,10,10,.12) 100%),
    linear-gradient(180deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,0) 100%);
}

.driver-profile-hero-inner {
  position: relative;
  z-index: 2;
  padding: 34px 34px 0;
  min-height: 520px;
  display: flex;
  align-items: stretch;
}

.driver-profile-main {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 420px;
  gap: 24px;
  align-items: end;
}

.driver-profile-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 560px;
}

.driver-meta-card {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 10px 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  min-height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.driver-meta-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(255,255,255,.68);
  margin-bottom: 4px;
}

.driver-meta-value {
  font-size: .95rem;
  line-height: 1.1;
  font-weight: 700;
  color: #fff;
  word-break: break-word;
}

.driver-profile-photo-col {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  min-width: 0;
}

.driver-profile-photo-shell {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 560px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: -6px;
}

.driver-profile-photo {
  width: 100%;
  height: 100%;
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: contain;
  filter: drop-shadow(0 22px 44px rgba(0,0,0,.34));
}

.driver-profile-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 0;
  min-width: 0;
}

.driver-profile-kicker {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
  margin-bottom: 14px;
}

.driver-profile-name {
  font-size: clamp(2.2rem, 4vw, 4.25rem);
  line-height: .95;
  font-weight: 800;
  letter-spacing: -.03em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 9ch;
  text-wrap: balance;
}

.driver-profile-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.driver-profile-socials .btn {
  border-radius: 999px;
  backdrop-filter: blur(10px);
}

.driver-profile-socials .btn-outline-dark {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}

.driver-profile-socials .btn-outline-dark:hover {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.26);
  color: #fff;
}

.driver-profile-socials .btn-dark {
  background: #fff;
  border-color: #fff;
  color: #111;
}

.driver-meta-label svg,
.driver-meta-label i {
  flex: 0 0 auto;
}

.driver-meta-value a {
  color: #fff;
}

.driver-meta-value a:hover {
  color: #d9d9d9;
}

.driver-profile-actions .btn-dark {
  border-radius: 999px;
  padding-inline: 16px;
}

.driver-profile-photo-placeholder {
  background: rgba(255,255,255,.12);
  border: 1px dashed rgba(255,255,255,.24);
  border-radius: 24px;
  color: rgba(255,255,255,.8);
}

.driver-profile-hero .flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.15);
}

/* content cards */

.card.rounded-4 {
  border-radius: 28px !important;
}

.driver-side-meta-row {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.driver-side-meta-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.driver-side-meta-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .95rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.driver-side-meta-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #151515;
}

.bl-stat-icon-wrap {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #f4f4f4;
}

/* garage cards */

.driver-garage-card,
.driver-result-card {
  border: 1px solid rgba(17,17,17,.08);
  border-radius: 22px;
  background: #fff;
}

/* results spacing polish */

.series-detail-about {
  font-size: 1rem;
  line-height: 1.7;
  color: #262626;
}

/* responsive */

@media (max-width: 1199.98px) {
  .driver-profile-hero-inner {
    min-height: 480px;
    padding: 28px 28px 0;
  }

  .driver-profile-main {
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 20px;
  }

  .driver-profile-photo-shell {
    max-width: 360px;
    height: 500px;
    margin-bottom: -4px;
  }

  .driver-profile-meta-grid {
    max-width: 520px;
  }
}

@media (max-width: 991.98px) {
  .driver-profile-hero-inner {
    padding: 22px 20px 0;
    min-height: auto;
  }

  .driver-profile-main {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .driver-profile-copy {
    order: 2;
  }

  .driver-profile-photo-col {
    order: 1;
    justify-content: center;
  }

  .driver-profile-photo-shell {
    max-width: 340px;
    height: 360px;
    margin-bottom: -4px;
  }

  .driver-profile-name {
    max-width: none;
  }

  .driver-profile-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
  }
}

@media (max-width: 575.98px) {
  .driver-profile-hero-inner {
    padding: 18px 16px 0;
  }

  .driver-profile-name {
    font-size: 2.1rem;
    line-height: .98;
  }

  @media (max-width: 575.98px) {
    .driver-profile-socials {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }
  
    .driver-profile-socials .btn {
      width: auto;
      min-width: 42px;
      height: 42px;
      padding: 0;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 999px;
      flex: 0 0 auto;
    }
  
    .driver-profile-socials .btn span {
      display: none;
    }
  
    .driver-profile-socials .bl-social-icon,
    .driver-profile-socials .bl-icon-sm {
      margin-right: 0;
    }
  }

  .driver-profile-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .driver-meta-card {
    min-height: 52px;
    border-radius: 16px;
    padding: 9px 10px;
  }

  .driver-meta-label {
    font-size: 9px;
    margin-bottom: 3px;
  }

  .driver-meta-value {
    font-size: .9rem;
  }

  .driver-profile-photo-shell {
    max-width: 280px;
    height: 300px;
    margin-bottom: -2px;
  }
}

@media (max-width: 991.98px) {
  .driver-profile-socials {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }

  .driver-profile-socials .btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    padding: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    flex: 0 0 auto !important;
  }

  .driver-profile-socials .btn-dark {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #fff !important;
  }

  .driver-profile-socials .btn-outline-dark {
    background: rgba(255,255,255,.14) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.28) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }

  .driver-profile-socials .btn .btn-label {
    display: none !important;
  }

  .driver-profile-socials .bl-social-icon {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 0 !important;
  }

  .driver-profile-socials .bl-social-icon svg {
    width: 18px !important;
    height: 18px !important;
    display: block !important;
    fill: currentColor !important;
  }
}

/* =========================
   DRIVER GARAGE CARDS
   ========================= */

.garage-car-card {
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.garage-car-media {
  position: relative;
  min-height: 340px;
  height: 100%;
  background-color: #181818;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.garage-car-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.12) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,.02) 45%, rgba(0,0,0,.78) 100%);
  z-index: 1;
}

.garage-car-top,
.garage-car-content {
  position: relative;
  z-index: 2;
}

.garage-car-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 0;
}

.garage-car-badge,
.garage-car-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.garage-car-badge {
  background: rgba(255,255,255,.92);
  color: #111;
}

.garage-car-number {
  background: rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.16);
  color: #fff;
  margin-left: auto;
}

.garage-car-content {
  padding: 58px 16px 16px;
  color: #fff;
}

.garage-car-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.garage-car-title {
  font-size: 1.35rem;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.garage-car-subtitle {
  margin-top: 4px;
  font-size: .95rem;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}

.garage-car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.garage-car-specs span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  font-weight: 600;
  color: #fff;
}

.garage-car-notes {
  margin-top: 12px;
  font-size: .88rem;
  line-height: 1.45;
  color: rgba(255,255,255,.84);
  max-width: 95%;
}

@media (max-width: 991.98px) {
  .garage-car-media {
    min-height: 320px;
  }
}

@media (max-width: 575.98px) {
  .garage-car-media {
    min-height: 280px;
  }

  .garage-car-top {
    padding: 14px 14px 0;
  }

  .garage-car-content {
    padding: 46px 14px 14px;
  }

  .garage-car-title {
    font-size: 1.15rem;
  }

  .garage-car-subtitle {
    font-size: .86rem;
  }

  .garage-car-specs {
    gap: 6px;
  }

  .garage-car-specs span {
    font-size: 11px;
    padding: 6px 8px;
  }
}

/* =========================
   DRIVER RESULTS
   ========================= */

.driver-result-card {
  border-radius: 24px;
  overflow: hidden;
  background: #111;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.driver-result-media {
  position: relative;
  min-height: 260px;
  background-color: #181818;
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.driver-result-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.75) 0%, rgba(0,0,0,.05) 30%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}

.driver-result-top,
.driver-result-content {
  position: relative;
  z-index: 2;
}

.driver-result-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 0;
}

.driver-result-series {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.driver-result-position {
  text-align: right;
  color: #fff;
}

.driver-result-position-label {
  display: block;
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.72);
  margin-bottom: 4px;
}

.driver-result-position-value {
  font-size: 1.25rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.driver-result-content {
  padding: 64px 16px 16px;
  color: #fff;
}

.driver-result-title {
  font-size: 1.45rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  max-width: 16ch;
}

.driver-result-date {
  margin-top: 6px;
  font-size: .92rem;
  line-height: 1.2;
  font-weight: 500;
  color: rgba(255,255,255,.82);
}

.driver-result-bottom {
  margin-top: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.driver-result-best-label {
  font-size: 10px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}

.driver-result-best-value {
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 800;
  color: #fff;
}

.driver-result-content .btn-light {
  border-radius: 999px;
  padding-inline: 14px;
}

@media (max-width: 575.98px) {
  .driver-result-media {
    min-height: 220px;
  }

  .driver-result-top {
    padding: 14px 14px 0;
  }

  .driver-result-content {
    padding: 48px 14px 14px;
  }

  .driver-result-title {
    font-size: 1.2rem;
    max-width: none;
  }

  .driver-result-date {
    font-size: .85rem;
  }

  .driver-result-best-value {
    font-size: 1.2rem;
  }
}

/* =========================
   HOME SECTIONS REFRESH
   ========================= */

.bl-section-head {
  margin-top: 6px;
}

.bl-section-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7a7a7a;
  margin-bottom: 8px;
}

.home-event-topbadges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: flex-start;
}

.home-media-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  color: #fff;
}

.home-media-badge-live {
  background: rgba(220,53,69,.88);
  border-color: rgba(220,53,69,.95);
  color: #fff;
}

.home-media-subtitle {
  margin-top: 8px;
  font-size: .95rem;
  line-height: 1.35;
  color: rgba(255,255,255,.84);
  max-width: 34ch;
}

.bl-home-main .team-rb-card {
  border-radius: 24px;
  overflow: hidden;
}

.bl-home-main .team-rb-media {
  min-height: 320px;
}

.bl-home-main .team-rb-title {
  max-width: 15ch;
}

.bl-home-main .driver-rb-team {
  margin-top: 10px;
}

@media (max-width: 1199.98px) {
  .bl-home-main .team-rb-media {
    min-height: 300px;
  }
}

@media (max-width: 575.98px) {
  .home-media-subtitle {
    font-size: .88rem;
    max-width: none;
  }

  .home-event-topbadges {
    top: 12px;
    left: 12px;
    right: 12px;
    gap: 6px;
  }

  .home-media-badge {
    font-size: 11px;
    padding: 6px 9px;
  }

  .bl-home-main .team-rb-media {
    min-height: 250px;
  }
}

.bl-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  line-height: 0;
  flex: 0 0 auto;
}

.bl-social-icon svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}

/* =========================
   LEGAL PAGES
   ========================= */

.legal-hero {
  position: relative;
  background: #111;
  isolation: isolate;
}

.legal-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0,224,255,.16), transparent 30%),
    linear-gradient(135deg, #121418 0%, #1b2027 100%);
  z-index: 0;
}

.legal-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,0));
  z-index: 1;
}

.legal-hero-inner {
  position: relative;
  z-index: 2;
  padding: 40px 34px;
}

.legal-hero-copy {
  max-width: 760px;
}

.legal-hero-kicker {
  font-size: 12px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.68);
  margin-bottom: 14px;
}

.legal-hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: .96;
  letter-spacing: -.04em;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
}

.legal-hero-lead {
  max-width: 60ch;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255,255,255,.86);
  margin: 0 0 20px;
}

.legal-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.legal-content {
  font-size: 1rem;
  line-height: 1.72;
  color: #262626;
}

.legal-section + .legal-section {
  margin-top: 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.legal-content h2 {
  font-size: 1.45rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  color: #141414;
}

.legal-content h3 {
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 700;
  margin: 18px 0 10px;
  color: #1c1c1c;
}

.legal-content p {
  margin: 0 0 14px;
}

.legal-content ul {
  margin: 0 0 14px 0;
  padding-left: 20px;
}

.legal-content li + li {
  margin-top: 6px;
}

.legal-side-item {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(17,17,17,.08);
}

.legal-side-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-side-label {
  font-size: .82rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #7b7b7b;
  margin-bottom: 6px;
  font-weight: 700;
}

.legal-side-value {
  font-size: 1rem;
  line-height: 1.4;
  font-weight: 600;
  color: #181818;
}

@media (max-width: 575.98px) {
  .legal-hero-inner {
    padding: 24px 18px;
  }

  .legal-content h2 {
    font-size: 1.25rem;
  }

  .legal-content {
    font-size: .96rem;
    line-height: 1.68;
  }
}

/* =========================
   CABINET PROFILE CARD
   ========================= */

.cabinet-profile-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cabinet-profile-photo-wrap {
  flex: 0 0 96px;
}

.cabinet-profile-photo {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 10px 28px rgba(0,0,0,.12);
}

.cabinet-profile-photo-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #9aa0a6;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-align: center;
  padding: 10px;
}

.cabinet-profile-main {
  min-width: 0;
}

.cabinet-profile-kicker {
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7d7d7d;
  margin-bottom: 8px;
}

.cabinet-profile-name {
  margin: 0 0 8px;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -.03em;
  font-weight: 800;
  color: #141414;
}

.cabinet-profile-role {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 10px;
}

.cabinet-profile-location {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #6a6a6a;
  font-size: .95rem;
  font-weight: 600;
}

.cabinet-profile-meta {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}

.cabinet-profile-meta-row {
  padding-top: 12px;
  border-top: 1px solid rgba(17,17,17,.08);
}

.cabinet-profile-meta-label {
  font-size: .78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #8a8a8a;
  font-weight: 700;
  margin-bottom: 5px;
}

.cabinet-profile-meta-value {
  font-size: .98rem;
  line-height: 1.4;
  font-weight: 600;
  color: #181818;
  word-break: break-word;
}

@media (max-width: 575.98px) {
  .cabinet-profile-top {
    align-items: flex-start;
  }

  .cabinet-profile-photo-wrap {
    flex: 0 0 78px;
  }

  .cabinet-profile-photo,
  .cabinet-profile-photo-placeholder {
    width: 78px;
    height: 78px;
    border-radius: 20px;
  }

  .cabinet-profile-name {
    font-size: 1.35rem;
  }
}