/* Racing page — geometry from millennialbet-racing (1440) / -mobile (390) */

/* ============ hero ============ */
.racing-hero { background: var(--ink); overflow: hidden; }
.racing-hero__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-height: 600px;
  padding-block: 64px;
}
.racing-hero__left { display: flex; flex-direction: column; gap: 24px; width: 700px; flex: none; }
.racing-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 14.14px;
  letter-spacing: 2px;
  color: var(--red-text);
}
.racing-hero__dash { width: 16px; height: 2px; background: var(--red); }
.racing-hero__eyebrow-alt { color: var(--white); }
.racing-hero__titles { display: flex; flex-direction: column; gap: 8px; }
.racing-hero__title {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 72px;
  letter-spacing: -.02em;
  color: var(--white);
}
.racing-hero__sub {
  font-family: var(--font-alt);
  font-size: 32px;
  font-weight: 800;
  line-height: 35px;
  letter-spacing: -.5px;
  color: var(--red);
}
.racing-hero__photo {
  width: 480px;
  height: 480px;
  flex: none;
  border-radius: var(--r-24);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-dark);
}
.racing-hero__photo picture, .racing-hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ status strip ============ */
.status-strip {
  background: var(--surface);
  box-shadow: inset 0 1px 0 var(--line-dark), inset 0 -1px 0 var(--line-dark);
}
.status-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 54px;
  padding-block: 16px;
}
.status-strip__left { display: flex; align-items: center; gap: 24px; }
.status-strip__race { font-family: var(--font-display); font-size: 18px; line-height: 20px; color: var(--white); }
.status-strip__mins { font-size: 14px; font-weight: 700; line-height: 18.2px; color: var(--red-text); }
.status-strip__meta { font-size: 14px; line-height: 18.2px; color: var(--slate); }
.status-strip__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18.2px;
  color: var(--white);
  transition: color var(--t);
}
.status-strip__link:hover { color: var(--red-text); }

/* ============ timeline ============ */
.timeline__inner { display: flex; flex-direction: column; gap: 32px; padding-block: 80px; }
.timeline__head { display: flex; flex-direction: column; gap: 6px; }
.timeline__row { display: flex; gap: 16px; }
.timeline__row li { flex: 1; display: flex; }
.jump-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-height: 136px;
  padding: 24px;
  background: var(--white);
  border-radius: var(--r-16);
  box-shadow: inset 0 0 0 1px var(--line-light);
  color: var(--ink-soft);
  transition: transform var(--t), box-shadow var(--t);
}
.jump-card:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--red), 0 8px 20px rgba(9, 10, 15, .08); }
.jump-card--live {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 8px 16px rgba(225, 29, 72, .25);
}
.jump-card--live:hover { box-shadow: 0 12px 24px rgba(225, 29, 72, .35); }
.jump-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; }
.jump-card__mins { font-family: var(--font-display); font-size: 36px; line-height: 39.17px; }
.jump-card__unit { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.jump-card__desc { display: flex; flex-direction: column; gap: 4px; }
.jump-card__track { font-size: 15px; font-weight: 700; line-height: 20px; }
.jump-card__meta { font-size: 12px; line-height: 16px; color: var(--grey); }
.jump-card--live .jump-card__meta,
.jump-card--live .jump-card__unit { color: var(--white); }

/* ============ race workspace ============ */
.workspace__inner { display: flex; align-items: flex-start; gap: 32px; padding-block: 80px; }
.workspace__main { display: flex; flex-direction: column; gap: 24px; flex: 1; min-width: 0; }
.race-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 75px; }
.race-head__ident { display: flex; flex-direction: column; gap: 4px; }
.race-head__track { font-family: var(--font-display); font-size: 36px; line-height: 39.17px; color: var(--white); }
.race-head__race { font-family: var(--font-display); font-size: 14px; line-height: 15.23px; letter-spacing: 1px; color: var(--red-text); }
.race-head__meta { font-size: 13px; line-height: 17px; color: var(--slate); }
.race-head__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.race-head__countdown { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--red-text); }
.race-head__tabs { display: flex; gap: 8px; }
.race-head__tabs .chip { background: var(--surface); border-color: var(--line-dark); color: var(--slate); font-size: 12px; }
.race-head__tabs .chip.is-active { background: var(--red); border-color: var(--red); color: var(--white); }

.runners {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--r-16);
  box-shadow: inset 0 0 0 1px var(--line-dark);
  overflow: hidden;
}
.runners__head,
.runner {
  display: grid;
  grid-template-columns: 40px 220px 80px 180px 80px 1fr;
  align-items: center;
  gap: 20px;
}
.runners__head { min-height: 36px; padding: 12px 24px; background: var(--ink); }
.runners__th {
  font-family: var(--font-display);
  font-size: 11px;
  line-height: 12px;
  color: var(--slate);
}
.runners__th--odds { text-align: center; }
.runners__head { grid-template-columns: 40px 220px 80px 180px 80px 106px 106px; }
.runner {
  min-height: 80px;
  padding: 16px 24px;
  box-shadow: inset 0 -1px 0 var(--line-dark);
}
.runner:last-child { box-shadow: none; }
.runner__no {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-6);
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 900;
  color: var(--white);
}
.runner__no--top { background: var(--red); }
.runner__details { display: flex; flex-direction: column; gap: 2px; }
.runner__name { font-family: var(--font-display); font-size: 18px; line-height: 20px; color: var(--white); }
.runner__trainer { font-size: 12px; line-height: 16px; color: var(--slate); }
.runner__barrier, .runner__jockey, .runner__form { font-size: 14px; line-height: 18px; color: var(--slate); }
.runner__odds { display: flex; justify-content: flex-end; gap: 8px; }

.race-odd {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 106px;
  padding: 6px 12px;
  border-radius: var(--r-8);
  background: var(--ink);
  transition: background var(--t), box-shadow var(--t);
}
.race-odd:hover { box-shadow: inset 0 0 0 1px var(--red); }
.race-odd__label {
  font-family: var(--font-alt);
  font-size: 9px;
  font-weight: 800;
  line-height: 10px;
  letter-spacing: .06em;
  color: var(--slate);
}
.race-odd__price { font-size: 15px; font-weight: 800; line-height: 20px; color: var(--white); }
.race-odd--win { background: var(--red); }
.race-odd--win .race-odd__label { color: var(--white); }
.race-odd.is-picked { background: var(--red); box-shadow: none; }
.race-odd.is-picked .race-odd__label { color: var(--white); }
.runners--empty { padding: 32px 24px; }
.runners__note { font-size: 14px; line-height: 22px; color: var(--slate); }

/* ============ editorial break ============ */
.racing-break__inner { display: flex; flex-direction: column; gap: 32px; padding-block: 64px; }
.racing-break__head { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 44px; }
.racing-break__title {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 44px;
  letter-spacing: -1px;
  color: var(--ink);
}
.racing-break__photo { height: 320px; border-radius: var(--r-20); overflow: hidden; }
.racing-break__photo picture, .racing-break__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ============ mobile ============ */
@media (max-width: 1199px) {
  .racing-hero__inner { flex-direction: column; align-items: stretch; gap: 24px; min-height: 0; padding-block: 32px; }
  .racing-hero__left { width: auto; gap: 16px; }
  .racing-hero__title { font-size: 44px; line-height: 42px; }
  .racing-hero__sub { font-size: 20px; line-height: 24px; }
  .racing-hero__eyebrow { flex-wrap: wrap; font-size: 11px; }
  .racing-hero__photo { width: auto; height: 280px; }

  .status-strip__inner { flex-direction: column; align-items: flex-start; gap: 8px; padding-block: 12px; }
  .status-strip__left { flex-wrap: wrap; gap: 12px; }
  .status-strip__meta { font-size: 12px; }

  .timeline__inner { gap: 20px; padding-block: 32px; }
  .timeline__row { flex-direction: column; gap: 12px; }
  .jump-card { min-height: 0; padding: 16px; flex-direction: row; align-items: center; justify-content: space-between; }
  .jump-card__top { min-height: 0; }
  .jump-card__mins { font-size: 28px; line-height: 30px; }

  .workspace__inner { flex-direction: column; gap: 24px; padding-block: 32px; }
  .race-head { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; }
  .race-head__right { align-items: flex-start; }
  .race-head__track { font-size: 28px; line-height: 30.5px; }
  .runners__head { display: none; }
  .runner {
    grid-template-columns: 32px 1fr;
    grid-template-areas: 'no name' 'meta meta' 'odds odds';
    gap: 8px 12px;
    padding: 16px;
  }
  .runner__no { grid-area: no; }
  .runner__details { grid-area: name; }
  .runner__barrier, .runner__jockey, .runner__form { display: none; }
  .runner__odds { grid-area: odds; justify-content: stretch; }
  .race-odd { flex: 1; width: auto; }

  .racing-break__inner { gap: 20px; padding-block: 32px; }
  .racing-break__head { flex-direction: column; align-items: flex-start; gap: 16px; min-height: 0; }
  .racing-break__title { font-size: 28px; line-height: 30.5px; }
  .racing-break__photo { height: 200px; }
}
