/* ==========================================================================
   Home page — "bailrbet-homepage-v2" (1440) / "bailrbet-homepage-mobile" (390)
   ========================================================================== */

/* Hero ------------------------------------------------------------------- */
.hero { background: var(--navy); display: flex; flex-direction: column; }
.hero__media { position: relative; height: 260px; overflow: hidden; }
.hero__img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero__fade { position: absolute; inset: 0; background: linear-gradient(to top, var(--navy) 0%, rgba(5, 8, 33, 0) 70%); pointer-events: none; }
.hero__content { padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.hero__text { display: flex; flex-direction: column; gap: 8px; }
.hero__kicker { font-weight: 900; }
.hero__title { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 42px; color: var(--white); }
.hero__lead { font-size: 13px; line-height: 18px; color: var(--ink-4); }
.hero__cta { display: flex; gap: 8px; }
.hero__btn { flex: 1 1 0; padding: 11px 15px; font-size: 12px; line-height: 16px; }
.quick-market { background: var(--navy-2); border: 1px solid var(--blue); border-radius: 6px; padding: 15px; display: flex; flex-direction: column; gap: 12px; }
.quick-market--desktop { display: none; }
.quick-market__header { display: flex; align-items: center; justify-content: space-between; }
.quick-market__label { font-size: 10px; line-height: 13px; font-weight: 900; color: var(--yellow); }
.quick-market__time { font-size: 10px; line-height: 13px; color: var(--ink-4); }
.quick-market__teams { display: flex; flex-direction: column; gap: 2px; }
.quick-market__team { font-family: var(--font-display); font-weight: 800; font-size: 22px; line-height: 26px; color: var(--white); }
.quick-market__odds { display: flex; gap: 8px; }
.quick-market .odds { padding: 13px 15px; }
.quick-market .odds__price { font-size: 14px; line-height: 18px; }
.featured-match { padding: 0 0 24px; background: var(--navy); }
@media (min-width: 1024px) {
  .hero { flex-direction: row-reverse; height: 480px; border-top: 1px solid var(--line); }
  .hero__media { flex: 0 0 44.4444%; height: auto; }
  .hero__fade { display: none; }
  .hero__content { flex: 1 1 auto; padding: 48px 48px 48px var(--gutter); justify-content: center; gap: 24px; }
  .hero__text { gap: 12px; max-width: 672px; }
  .hero__kicker { font-weight: 800; }
  .hero__title { font-size: 64px; line-height: 60px; }
  .hero__lead { font-size: 14px; line-height: 22px; }
  .hero__cta { gap: 16px; }
  .hero__btn { flex: none; padding: 13px 27px; font-size: 13px; line-height: 17px; }
  .quick-market--desktop { display: flex; position: absolute; right: 32px; bottom: 32px; width: 280px; padding: 19px; }
  .quick-market__label { font-weight: 800; }
  .quick-market__team { font-weight: 700; font-size: 20px; line-height: 24px; }
  .quick-market .odds { padding: 11px 15px; }
  .quick-market .odds__price { font-size: 13px; line-height: 17px; }
  .featured-match { display: none; }
}

/* Filter tabs / chips ------------------------------------------------------ */
.filter-tabs { display: flex; gap: 8px; }
.filter-tab { flex: 1 1 0; display: flex; align-items: center; justify-content: center; height: 34px; padding: 0 16px; border-radius: 4px; background: var(--white); border: 1px solid var(--line-light); color: var(--ink-2); font-size: 11px; line-height: 14px; font-weight: 900; transition: background-color var(--t), color var(--t), border-color var(--t); }
.filter-tab:hover { border-color: var(--navy); color: var(--navy); }
.filter-tab.is-active { background: var(--navy); border-color: var(--navy); color: var(--white); }
.cat-rail { background: var(--cream); padding: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.cat-rail__tabs { padding: 0 16px; }
.cat-rail__chips { gap: 8px; padding: 0 16px; }
.chip { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: 4px; background: var(--white); border: 1px solid var(--line-light); color: var(--ink); font-size: 12px; line-height: 16px; font-weight: 700; white-space: nowrap; transition: background-color var(--t), color var(--t), border-color var(--t); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); }
@media (min-width: 1024px) {
  .cat-rail { display: none; }
  .filter-tab { font-weight: 800; }
}

/* Popular markets ------------------------------------------------------- */
.markets { background: var(--cream); color: var(--ink); padding: 24px 0; }
.markets__inner { display: flex; flex-direction: column; gap: 16px; }
.markets__rail { display: none; }
.markets__stream { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.markets__heading { display: flex; flex-direction: column; gap: 4px; }
.markets__title { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 29px; color: var(--navy); }
.markets__sub { font-size: 12px; line-height: 16px; color: var(--ink-2); }
.markets__cards { display: flex; flex-direction: column; gap: 12px; }
.cat-card { background: var(--white); box-shadow: inset 0 0 0 1px var(--line-light); border-radius: 6px; overflow: hidden; transition: box-shadow .4s var(--ease); }
.cat-card.is-highlight { box-shadow: inset 0 0 0 2px var(--blue); }
.cat-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--navy); padding: 12px; }
.cat-card__left { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex: 1 1 auto; min-width: 0; }
.cat-card__name { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 19px; color: var(--white); white-space: nowrap; }
.cat-card__league { font-size: 10px; line-height: 13px; color: var(--ink-4); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cat-card__link { display: none; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--yellow); white-space: nowrap; }
.cat-card__link:hover { text-decoration: underline; }
.event-row { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.event-row + .event-row { border-top: 1px solid var(--line-light); }
.event-row__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.event-row__time { order: 2; font-size: 10px; line-height: 13px; color: var(--ink-2); white-space: nowrap; }
.event-row__teams { order: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.event-row__team { display: none; }
.event-row__teams-short { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink); }
.event-row__market { display: none; }
.event-row__odds { display: flex; gap: 8px; }
.event-row__odds .odds { padding: 12px 9px; }
.event-row--extra { display: none; }
.event-row__odds .odds__price { font-size: 14px; line-height: 18px; }
.event-row--three .event-row__odds { flex-direction: column; }
.event-row__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.event-row__market-mobile { font-size: 10px; line-height: 13px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; }
.event-row__more { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.event-row__more:hover { text-decoration: underline; }
.markets__slip { display: none; }
@media (min-width: 1024px) {
  .markets { padding: 48px 0; }
  .markets__inner { display: grid; grid-template-columns: 260px minmax(0, 1fr); grid-template-rows: auto 1fr; align-items: start; gap: 24px; }
  .markets__rail { display: flex; flex-direction: column; gap: 24px; grid-column: 1; grid-row: 1; }
  .shortcuts { display: flex; flex-direction: column; gap: 1px; background: var(--line-light); border-radius: 6px; overflow: hidden; }
  .shortcut { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 66px; padding: 16px; background: var(--white); transition: background-color var(--t); }
  .shortcut:hover { background: var(--grey); }
  .shortcut__text { display: flex; flex-direction: column; gap: 2px; }
  .shortcut__name { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink); }
  .shortcut__count { font-size: 11px; line-height: 14px; color: var(--ink-3); }
  .shortcut__arrow { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--blue); transition: transform var(--t); }
  .shortcut:hover .shortcut__arrow { transform: translateX(3px); }
  .shortcut.is-active, .shortcut.is-active:hover { background: var(--blue); }
  .shortcut.is-active .shortcut__name { color: var(--white); }
  .shortcut.is-active .shortcut__count { color: var(--yellow-soft); }
  .shortcut.is-active .shortcut__arrow { color: var(--yellow); }
  .markets__stream { min-width: 0; display: flex; flex-direction: column; gap: 24px; grid-column: 2; grid-row: 1 / span 2; }
  .markets__title { font-size: 32px; line-height: 38px; }
  .markets__sub { font-size: 13px; line-height: 17px; }
  .markets__cards { gap: 24px; }
  .cat-card__header { padding: 14px 16px; }
  .cat-card__left { justify-content: flex-start; flex: 0 1 auto; }
  .cat-card__name { font-size: 22px; line-height: 26px; }
  .cat-card__league { font-size: 11px; line-height: 14px; }
  .cat-card__link { display: block; }
  .event-row { flex-direction: row; align-items: center; gap: 20px; height: 88px; padding: 16px; }
  .event-row__meta { flex: 1 1 220px; min-width: 0; flex-direction: column; justify-content: flex-start; gap: 4px; }
  .event-row__time { order: 0; font-size: 11px; line-height: 14px; font-weight: 600; color: var(--ink-3); }
  .event-row__team { display: block; font-size: 14px; line-height: 18px; font-weight: 700; color: var(--ink); white-space: nowrap; }
  .event-row__teams-short { display: none; }
  .event-row__market { display: flex; flex-direction: column; gap: 2px; flex: 0 0 100px; }
  .event-row__market-label { font-size: 10px; line-height: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; }
  .event-row__market-name { font-size: 12px; line-height: 16px; color: var(--ink-2); }
  .event-row__odds { flex: 0 0 120px; min-width: 0; gap: 8px; }
  .event-row__odds .odds { padding: 11px 15px; justify-content: flex-start; }
  .event-row--extra { display: flex; }
  .event-row__odds .odds__label { display: none; }
  .event-row__odds .odds__price { font-size: 13px; line-height: 17px; }
  .event-row--three .event-row__odds { flex-direction: row; }
  /* The design's 3-way buttons are 34.67px wide with 16px padding, which clips the price; keep the box, trim the padding. */
  .event-row--three .event-row__odds .odds { padding-inline: 2px; justify-content: center; }
  .event-row__foot { flex: 0 0 100px; justify-content: flex-end; }
  .event-row__market-mobile { display: none; }
  .event-row__more { font-size: 12px; line-height: 16px; }
  .markets__slip { display: block; grid-column: 1; grid-row: 2; position: sticky; top: 16px; }
}
@media (min-width: 1280px) {
  .markets__inner { grid-template-columns: 260px minmax(0, 1fr) 340px; grid-template-rows: auto; }
  .markets__stream { grid-row: 1; }
  .markets__slip { grid-column: 3; grid-row: 1; }
}

/* Racing band ------------------------------------------------------------ */
.racing-band { background: var(--navy-2); padding: 24px 0; }
.racing-band__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.racing-band__left { display: flex; align-items: center; gap: 12px; }
.racing-band__title { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 29px; color: var(--white); }
.racing-band__sep { width: 1px; height: 16px; background: var(--blue); }
.racing-band__kicker { font-size: 10px; line-height: 13px; font-weight: 900; color: var(--yellow); white-space: nowrap; }
.racing-band__link { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--white); white-space: nowrap; }
.racing-band__link:hover { color: var(--yellow); }
.racing-band__board { gap: 10px; margin-top: 16px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.race-tile { display: flex; flex-direction: column; gap: 10px; width: 220px; background: var(--navy); border: 1px solid var(--blue); border-radius: 6px; padding: 11px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.race-tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 71, 255, .25); }
.race-tile.is-closed { opacity: .6; }
.race-tile__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.race-tile__time { font-family: var(--font-display); font-weight: 800; font-size: 20px; line-height: 24px; color: var(--yellow); white-space: nowrap; }
.race-tile.is-soon .race-tile__time { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.race-tile__type { display: inline-flex; background: var(--navy-2); color: var(--ink-4); border-radius: 2px; padding: 2px 4px; font-size: 8px; line-height: 10px; font-weight: 700; white-space: nowrap; }
.race-tile__bottom { display: flex; flex-direction: column; gap: 2px; }
.race-tile__track { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 18px; color: var(--white); white-space: nowrap; }
.race-tile__race { font-size: 11px; line-height: 14px; color: var(--ink-4); }
@media (min-width: 1024px) {
  .racing-band { padding: 40px 0; }
  .racing-band__left { gap: 16px; }
  .racing-band__title { font-size: 32px; line-height: 38px; }
  .racing-band__sep { height: 20px; }
  .racing-band__kicker { font-size: 12px; line-height: 16px; font-weight: 800; }
  .racing-band__link { font-size: 13px; line-height: 17px; }
  .racing-band__board { gap: 16px; margin-top: 24px; margin-inline: 0; padding-inline: 0; overflow: visible; }
  .race-tile { flex: 1 1 0; width: auto; gap: 14px; padding: 19px; }
  .race-tile__top { align-items: center; }
  .race-tile__time { font-size: 28px; line-height: 34px; }
  .race-tile__type { border-radius: 3px; padding: 2px 6px; font-size: 9px; line-height: 12px; }
  .race-tile__track { font-size: 18px; line-height: 22px; }
  .race-tile__race { font-size: 12px; line-height: 16px; }
}

/* Explore sports --------------------------------------------------------- */
.explore { background: var(--white); color: var(--ink); padding: 24px 0; }
.explore__title { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 29px; color: var(--navy); }
.explore__layout { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.explore__featured { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: 240px; padding: 24px; border-radius: 6px; overflow: hidden; background: var(--blue); color: var(--white); isolation: isolate; }
.explore__featured-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.explore__featured::before { content: ''; position: absolute; inset: 0; background: var(--blue-overlay); z-index: -1; }
.explore__featured:hover .explore__featured-img { transform: scale(1.04); }
.explore__featured-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.explore__badge { border-radius: 2px; padding: 2px 6px; font-size: 8px; line-height: 10px; font-weight: 900; }
.explore__league { font-family: var(--font-display); font-weight: 800; font-size: 14px; line-height: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.explore__featured-bottom { display: flex; flex-direction: column; gap: 8px; }
.explore__headline { font-family: var(--font-display); font-weight: 900; font-size: 32px; line-height: 30px; }
.explore__featured-link { font-size: 11px; line-height: 14px; font-weight: 700; color: var(--yellow); }
.explore__grid { display: flex; flex-direction: column; gap: 8px; }
.explore__row { display: flex; gap: 8px; }
.sport-block { flex: 1 1 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 6px; padding: 14px; transition: transform var(--t), box-shadow var(--t), border-color var(--t); }
.sport-block:hover { transform: translateY(-2px); }
.sport-block__labels { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sport-block__arrow { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--yellow); transition: transform var(--t); }
.sport-block:hover .sport-block__arrow { transform: translateX(3px); }
.sport-block--dark { background: var(--navy-2); color: var(--white); min-height: 62px; }
.sport-block--dark .sport-block__name { font-family: var(--font-display); font-weight: 800; font-size: 16px; line-height: 19px; white-space: nowrap; }
.sport-block--dark .sport-block__count { font-size: 10px; line-height: 13px; color: var(--ink-4); }
.sport-block--light { background: var(--cream); color: var(--ink); min-height: 59px; }
.sport-block--light .sport-block__name { font-size: 12px; line-height: 16px; font-weight: 700; }
.sport-block--light .sport-block__count { font-size: 10px; line-height: 13px; color: var(--ink-2); }
.sport-block--light .sport-block__arrow { color: var(--blue); }
.sport-block--desktop-only { display: none; }
@media (min-width: 1024px) {
  .explore { padding: 48px 0; }
  .explore__title { font-size: 32px; line-height: 38px; }
  .explore__layout { flex-direction: row; gap: 20px; margin-top: 24px; }
  .explore__featured { flex: 0 0 48.4375%; height: 360px; padding: 32px; }
  .explore__featured-top { gap: 12px; }
  .explore__badge { border-radius: 3px; padding: 4px 8px; font-size: 10px; line-height: 13px; font-weight: 800; }
  .explore__league { font-size: 20px; line-height: 24px; }
  .explore__featured-bottom { gap: 12px; }
  .explore__headline { font-size: 44px; line-height: 42px; max-width: 490px; }
  .explore__featured-link { font-size: 13px; line-height: 17px; }
  .explore__grid { flex: 1 1 auto; gap: 16px; }
  .explore__row--dark { gap: 16px; }
  .explore__row--light { gap: 12px; }
  .sport-block--dark { height: 80px; padding: 19px; border: 1px solid var(--line); }
  .sport-block--dark:hover { border-color: var(--blue); }
  .sport-block--dark .sport-block__name { font-size: 20px; line-height: 24px; }
  .sport-block--dark .sport-block__count { font-size: 11px; line-height: 14px; }
  .sport-block--light { height: 66px; padding: 16px; background: var(--grey); align-items: flex-end; }
  .sport-block--light .sport-block__name { font-size: 14px; line-height: 18px; }
  .sport-block--light .sport-block__count { font-size: 11px; line-height: 14px; color: var(--ink-3); }
  .sport-block--light .sport-block__arrow { color: var(--yellow); align-self: center; }
  .sport-block--desktop-only { display: flex; }
}
