/* ===== RACING PAGE ===== */
.rc-intro__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.rc-intro__left { display: flex; flex-direction: column; gap: 12px; max-width: 733px; }
.rc-countdown { flex: none; display: flex; align-items: center; gap: 16px; width: 405px; height: 95px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; }
.rc-countdown__text { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.rc-countdown__text b { font: 700 13px var(--f-narrow); letter-spacing: 1px; color: var(--red); }
.rc-countdown__text span { font: 400 11px var(--f-sans); color: var(--gray); }
.rc-countdown__timer { display: flex; align-items: center; gap: 4px; }
.rc-countdown__timer span { font: 800 36px var(--f-mono); color: var(--red); }
.rc-countdown__timer small { font: 700 14px var(--f-narrow); color: rgba(255,255,255,.6); }

.ntj-sec { padding: 32px 0; border-bottom: 1px solid var(--line); }
.ntj-sec__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 20px; }
.ntj-sec__title { display: flex; align-items: center; gap: 12px; }
.ntj-sec__title h2 { font: 700 20px var(--f-narrow); letter-spacing: .5px; color: #fff; }
.ntj-sec__title i { width: 1px; height: 14px; background: var(--line); }
.ntj-sec__title span { font: 400 13px var(--f-sans); color: var(--gray); }
.ntj-sec__timeline { position: relative; }
.ntj-sec__axis { position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: var(--line); }
.ntj-sec__stops { position: relative; display: flex; gap: 16px; }
.stop { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; transition: border-color .15s; }
.stop:hover { border-color: var(--gray-2); }
.stop.is-next { border-color: var(--red); box-shadow: 0 4px 12px rgba(229,50,45,.1); }
.stop__head { display: flex; justify-content: space-between; align-items: center; }
.stop__mins { font: 800 18px var(--f-mono); color: var(--cream); }
.stop.is-next .stop__mins { color: var(--red); }
.stop__mins.is-jumped { color: var(--gray-2); }
.stop__badge { padding: 2px 6px; background: var(--line); border-radius: 1px; font: 700 9px var(--f-sans); color: var(--gray); }
.stop.is-next .stop__badge { background: var(--red-13); color: var(--red); }
.stop__body { display: flex; flex-direction: column; gap: 2px; }
.stop__venue { font: 700 16px var(--f-narrow); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stop__race { font: 400 12px var(--f-sans); color: var(--gray); }

.rc-ws__in { display: flex; align-items: flex-start; gap: 32px; padding-top: 40px; padding-bottom: 64px; }
.rc-ws__left { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rbanner { position: relative; display: flex; justify-content: space-between; align-items: center; height: 150px; padding: 24px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.rbanner__bg { position: absolute; right: 120px; top: -20px; font: 700 140px var(--f-narrow); color: rgba(255,255,255,.04); pointer-events: none; }
.rbanner__details { position: relative; display: flex; flex-direction: column; gap: 12px; }
.rbanner__class { display: flex; align-items: center; gap: 8px; }
.rbanner__code { font: 400 11px var(--f-mono); color: var(--gray); }
.rbanner__title { display: flex; flex-direction: column; gap: 2px; }
.rbanner__title h2 { font: 700 40px var(--f-narrow); color: #fff; }
.rbanner__title p { font: 400 13px var(--f-sans); color: var(--gray); }
.rbanner__img { position: relative; flex: none; width: 260px; height: 100px; border: 1px solid var(--line); border-radius: 2px; background: url('../img/racing-accent.jpg') center/cover no-repeat; }
.rsel { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 52px; padding: 0 16px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 2px; }
.rsel__label { font: 700 11px var(--f-narrow); letter-spacing: 1px; color: var(--gray); white-space: nowrap; }
.rsel__stops { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.rsel__stop { width: 39px; height: 28px; background: var(--ink); border: 1px solid var(--line); border-radius: 2px; font: 400 12px var(--f-mono); color: var(--gray); text-align: center; }
.rsel__stop:hover { color: #fff; border-color: var(--gray-2); }
.rsel__stop.is-active { background: var(--red); border-color: var(--red); font-weight: 700; color: #fff; }
.rtabs { display: flex; gap: 8px; }
.rtabs button { height: 34px; padding: 0 16px; border-bottom: 2px solid transparent; font: 700 13px var(--f-narrow); letter-spacing: .5px; color: var(--gray); }
.rtabs button:hover { color: var(--cream); }
.rtabs button.is-active { color: var(--red); border-bottom-color: var(--red); }
.rtable { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.rtable__head { display: flex; align-items: center; gap: 16px; height: 38px; padding: 0 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); font: 700 11px var(--f-sans); color: var(--gray); }
.rrow { display: flex; align-items: center; gap: 16px; height: 61px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.rrow:last-child { border-bottom: 0; }
.c-no { flex: none; width: 30px; font: 700 14px var(--f-mono); color: #fff; }
.rtable__head .c-no { font: 700 11px var(--f-sans); color: var(--gray); }
.c-runner { flex: 1; min-width: 0; }
.rrow__name { font: 700 14px var(--f-narrow); color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.c-jockey { flex: none; width: 200px; display: flex; flex-direction: column; gap: 2px; font: 400 13px var(--f-sans); color: #fff; }
.rrow__trainer { font: 400 11px var(--f-sans); color: var(--gray); }
.c-form { flex: none; width: 80px; font: 400 13px var(--f-sans); color: var(--gray); }
.c-bar { flex: none; width: 60px; text-align: center; font: 400 13px var(--f-mono); color: var(--gray); }
.c-weight { flex: none; width: 60px; font: 400 13px var(--f-sans); color: var(--gray); }
.rtable__head .c-win, .rtable__head .c-place { flex: none; width: 100px; text-align: center; }
.c-odds, .c-srm { flex: none; display: flex; gap: 16px; }
.rodd { justify-content: center; width: 100px; height: 37px; padding: 0 10px; }
.rodd .odd__num { font: 700 13px var(--f-mono); }
.rodd.is-selected .odd__num { font-weight: 800; }
.rodd .odd__tick { margin-left: 4px; font-size: 13px; }
.rodd__pre { display: none; font: 800 13px var(--f-mono); color: inherit; }
.c-srm .rodd { width: 100px; }
.c-srm .rodd__pre { display: inline; font-size: 10px; color: var(--gray); margin-right: 4px; }
.c-srm .rodd.is-selected .rodd__pre { color: #fff; }
.c-mform { display: none; }
.rc-srm-note { margin-top: -16px; font: 400 12px/18px var(--f-sans); color: var(--gray); }
.upnext { background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.upnext__head { display: flex; justify-content: space-between; align-items: center; height: 54px; padding: 0 16px; background: var(--bg-3); border-bottom: 1px solid var(--line); }
.upnext__head h3 { font: 700 16px var(--f-narrow); letter-spacing: .5px; color: #fff; }
.upnext__row { display: flex; align-items: center; gap: 20px; height: 51px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.upnext__row:last-child { border-bottom: 0; }
.upnext__time { flex: none; width: 80px; font: 700 14px var(--f-mono); color: #fff; }
.upnext__venue { flex: none; width: 200px; font: 700 14px var(--f-narrow); color: #fff; }
.upnext__kind { flex: none; width: 150px; font: 600 12px var(--f-sans); color: var(--gray); }
.upnext__starts { flex: 1; font: 600 13px var(--f-sans); color: var(--red); }
.upnext__view { flex: none; width: 120px; text-align: right; font: 700 13px var(--f-sans); color: var(--red); }
.rc-side { flex: none; width: 296px; position: sticky; top: 80px; }
.betslip--r4 { border-radius: 4px; }

@media (max-width: 1180px) {
  .c-jockey { width: 150px; }
  .c-form { display: none; }
  .rc-side { width: 260px; }
  .rbanner__bg { right: 60px; }
}
@media (max-width: 1023px) {
  .rc-intro__in { flex-direction: column; align-items: stretch; }
  .rc-countdown { width: 100%; }
  .ntj-sec__stops { overflow: auto; }
  .stop { flex: 0 0 200px; }
  .ntj-sec__axis { display: none; }
  .rc-ws__in { flex-direction: column; }
  .rc-side { width: 100%; position: static; }
  .rtable__head { display: none !important; }
  .rrow { flex-wrap: wrap; height: auto; padding: 12px; }
  .c-jockey { width: auto; flex: 1; }
  .c-bar, .c-weight, .c-form { display: none !important; }
  .c-odds, .c-srm { flex-basis: 100%; }
  .rodd { flex: 1; width: auto; }
}
@media (max-width: 767px) {
  .rc-intro__in { gap: 20px; padding-top: 24px; padding-bottom: 24px; }
  .rc-intro__left { gap: 10px; }
  .rc-intro__left .hero-title { font-size: 32px; }
  .rc-intro__left .lead { font-size: 13px; line-height: 20px; }
  .rc-intro .crumbs { flex-wrap: wrap; gap: 6px; font-size: 10px; }
  .rc-countdown { height: 64px; padding: 14px; gap: 12px; }
  .rc-countdown__text { gap: 2px; }
  .rc-countdown__text b { font-size: 12px; }
  .rc-countdown__timer { align-items: baseline; gap: 2px; }
  .rc-countdown__timer span { font-size: 28px; }
  .rc-countdown__timer small { font-size: 12px; }
  .ntj-sec { padding: 24px 0; }
  .ntj-sec__head { flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 16px; }
  .ntj-sec__title { gap: 8px; }
  .ntj-sec__title h2 { font-size: 18px; }
  .ntj-sec__title i { height: 12px; }
  .ntj-sec__title span { font-size: 11px; }
  .ntj-sec__stops { gap: 10px; margin-right: calc(-1 * var(--gutter)); padding-right: var(--gutter); scrollbar-width: none; }
  .ntj-sec__stops::-webkit-scrollbar { display: none; }
  .stop { flex: 0 0 150px; padding: 12px; gap: 8px; }
  .stop.is-next { box-shadow: none; }
  .stop__mins { font-size: 15px; }
  .stop__badge { padding: 1px 4px; font-size: 8px; }
  .stop__venue { font-size: 14px; }
  .stop__race { font-size: 11px; }
  .rc-ws__in { padding-top: 16px; padding-bottom: 16px; }
  .rc-ws__left { gap: 16px; }
  .rbanner { flex-direction: column; align-items: stretch; height: auto; gap: 12px; padding: 16px; }
  .rbanner__bg { right: 32px; top: -25px; font-size: 100px; }
  .rbanner__class .tag { font-size: 9px; }
  .rbanner__code { font-size: 10px; }
  .rbanner__title { gap: 4px; }
  .rbanner__title h2 { font-size: 28px; }
  .rbanner__title p { font-size: 12px; }
  .rbanner__img { width: 100%; height: 80px; }
  .rsel { flex-direction: column; align-items: stretch; height: auto; gap: 10px; padding: 12px; }
  .rsel__stops { justify-content: flex-start; gap: 6px; }
  .rsel__stop { width: 38px; height: 32px; color: #fff; }
  .rtabs { gap: 16px; border-bottom: 1px solid var(--line); }
  .rtabs button { padding: 0 8px; }
  .rrow { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; }
  .c-no { display: inline; width: auto; }
  .c-runner { display: inline; flex: none; }
  .c-runner .rrow__name { display: inline; }
  .rrow { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "no name form" "jockey jockey jockey" "odds odds odds"; align-items: center; column-gap: 8px; row-gap: 10px; }
  .c-no { grid-area: no; }
  .c-runner { grid-area: name; }
  .c-mform { grid-area: form; display: block; font: 400 11px var(--f-sans); color: var(--gray); text-align: right; }
  .c-jockey { grid-area: jockey; font-size: 12px; color: var(--gray); }
  .c-odds, .c-srm { grid-area: odds; gap: 8px; }
  .rodd { height: 37px; }
  .rodd__pre { display: inline; }
  .rodd .odd__num { font-size: 13px; }
  .rodd--win.is-selected .odd__num, .rodd--place.is-selected .odd__num { color: #fff; }
  .rc-srm-note { margin-top: -6px; }
  .upnext__head { height: 47px; padding: 0 14px; }
  .upnext__head h3 { font-size: 14px; }
  .upnext__head .arrow-link { font-size: 12px; }
  .upnext__row { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "time venue starts" "kind kind view"; align-items: center; height: auto; column-gap: 8px; row-gap: 8px; padding: 14px; }
  .upnext__time { grid-area: time; width: auto; font-size: 13px; }
  .upnext__venue { grid-area: venue; width: auto; }
  .upnext__starts { grid-area: starts; font-size: 11px; text-align: right; }
  .upnext__kind { grid-area: kind; width: auto; font-size: 11px; }
  .upnext__view { grid-area: view; width: auto; font-size: 12px; }
}
