/* ===== laneboard.css — Concept B Broadcast ===== */
/* KHUSUS templates/laneboard.html. Semua selector berprefix .lbx- agar tidak bocor ke liveboard / halaman lain. */
/* Ukuran diturunkan dari mockup laneboard_concept_b_broadcast. */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.lbx-body {
  --lbx-bg: #0B0D10;
  --lbx-card: #15181E;
  --lbx-inner: #1F232A;
  --lbx-line: #262A31;
  --lbx-green: #3DBE4B;
  --lbx-red: #E5484D;
  --lbx-amber: #F5A623;
  --lbx-pill: #F5B02E;
  --lbx-white: #F3F4F6;
  --lbx-gray: #9CA3AF;
  --lbx-muted: #4B5563;
  --lbx-font-ui: 'Titillium Web', 'Inter', sans-serif;
  --lbx-font-label: 'Inter', sans-serif;
  --lbx-font-num: 'JetBrains Mono', monospace;
  --lbx-font-class: 'Chakra Petch', sans-serif;

  margin: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--lbx-bg);
  color: var(--lbx-white);
  font-family: var(--lbx-font-ui);
  -webkit-font-smoothing: antialiased;
  user-select: none;
}

.lbx-lane-A {
  --lbx-lane: #1EC8E6;
  --lbx-lane-bg: #0E3A48;
}

.lbx-lane-B {
  --lbx-lane: #FFEA00;
  --lbx-lane-bg: #3A360E;
}

.lbx-hidden {
  display: none !important;
}

/* ===== HEADER ===== */
.lbx-topbar {
  box-sizing: border-box;
  height: 44px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #14171C;
  border-bottom: 2px solid var(--lbx-lane);
  flex-shrink: 0;
}

.lbx-menu {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #E5E7EB;
  font-family: var(--lbx-font-label);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
}

.lbx-menu svg {
  width: 17px;
  height: 17px;
}

.lbx-menu:hover {
  color: #fff;
}

.lbx-topbar-org {
  display: inline-flex;
  align-items: center;
  height: 100%;
}

.lbx-org-img {
  height: 28px;
  max-width: 110px;
  object-fit: contain;
}

.lbx-topbar-lane {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--lbx-font-ui);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--lbx-lane);
  text-transform: uppercase;
}

.lbx-lane-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lbx-lane);
  box-shadow: 0 0 8px var(--lbx-lane);
}

.lbx-clock {
  font-family: var(--lbx-font-num);
  font-size: 19px;
  font-weight: 500;
  color: #D1D5DB;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* ===== MAIN ===== */
.lbx-main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px 3px 0;
}

.lbx-card {
  background: var(--lbx-card);
  border-radius: 4px;
}

.lbx-label {
  font-family: var(--lbx-font-label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 11px;
  color: var(--lbx-gray);
  text-transform: uppercase;
}

/* ===== TONES (warna dinamis via data-tone) ===== */
[data-tone="green"] {
  color: var(--lbx-green);
}

[data-tone="white"] {
  color: var(--lbx-white);
}

[data-tone="gray"] {
  color: var(--lbx-gray);
}

[data-tone="muted"] {
  color: var(--lbx-muted);
}

[data-tone="red"] {
  color: var(--lbx-red);
}

[data-tone="amber"] {
  color: var(--lbx-amber);
}

[data-tone="lane"] {
  color: var(--lbx-lane);
}

@keyframes lbx-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

.lbx-pulse {
  animation: lbx-pulse 1.2s ease-in-out infinite;
}

/* ===== HERO ===== */
.lbx-hero {
  position: relative;
  padding: 10px 8px 0;
  flex-shrink: 0;
  overflow: hidden;
}

.lbx-time {
  margin-top: 0;
  font-family: var(--lbx-font-num);
  font-size: 68px;
  font-weight: 800;
  line-height: 68px;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.lbx-speed-wrap {
  position: absolute;
  top: 14px;
  right: 8px;
  text-align: right;
}

.lbx-speed {
  font-family: var(--lbx-font-num);
  font-size: 18px;
  font-weight: 600;
  line-height: 18px;
  font-variant-numeric: tabular-nums;
}

.lbx-speed[data-tone="white"] {
  color: #D1D5DB;
}

.lbx-speed-unit {
  margin-top: 2px;
  font-family: var(--lbx-font-label);
  font-size: 13px;
  line-height: 13px;
  color: var(--lbx-gray);
}

.lbx-rider {
  box-sizing: border-box;
  height: 34px;
  margin: 6px 0 0;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--lbx-inner);
  border-radius: 4px;
  min-width: 0;
}

.lbx-pill {
  flex-shrink: 0;
  box-sizing: border-box;
  height: 25px;
  min-width: 40px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-family: var(--lbx-font-num);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lbx-pill[data-tone="amber"] {
  background: var(--lbx-pill);
  color: #111111;
}

.lbx-pill[data-tone="muted"] {
  background: #2A2E35;
  color: var(--lbx-muted);
}

.lbx-rider-name {
  min-width: 0;
  flex-shrink: 1;
  font-family: var(--lbx-font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbx-rider-team {
  min-width: 0;
  flex-shrink: 2;
  font-family: var(--lbx-font-ui);
  font-size: 14px;
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbx-badge {
  flex-shrink: 0;
  margin-left: auto;
  box-sizing: border-box;
  height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  font-family: var(--lbx-font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
}

.lbx-badge[data-tone="green"] {
  background: var(--lbx-green);
  color: #0A1F0D;
}

.lbx-badge[data-tone="red"] {
  background: var(--lbx-red);
  color: #2A0A0B;
}

.lbx-badge[data-tone="lane"] {
  background: var(--lbx-lane);
  color: #071C22;
}

.lbx-badge[data-tone="amber"] {
  background: #3B3114;
  color: var(--lbx-amber);
}

.lbx-badge[data-tone="muted"] {
  background: #2A2E35;
  color: var(--lbx-gray);
}

.lbx-badge-sm {
  height: 17.5px;
  font-size: 12px;
}

.lbx-tel {
  height: 38px;
  margin: 0 -8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.lbx-tel-item {
  position: relative;
  min-width: 0;
  padding: 0 4px 0 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
}

.lbx-tel-item+.lbx-tel-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 1px;
  background: #2D323A;
}

.lbx-tel-label {
  font-family: var(--lbx-font-ui);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  color: var(--lbx-gray);
  text-transform: uppercase;
}

.lbx-tel-value {
  font-family: var(--lbx-font-num);
  font-size: 18.5px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* ===== NEXT ON GRID ===== */
.lbx-ng {
  box-sizing: border-box;
  flex-shrink: 0;
  padding: 6px 8px 8px;
  border-left: 2px solid #3F444C;
  overflow: hidden;
}

.lbx-ng[data-tone="amber"] {
  border-left-color: var(--lbx-amber);
}

.lbx-ng[data-tone="muted"] {
  border-left-color: #3F444C;
}

.lbx-ng-row {
  box-sizing: border-box;
  height: 30px;
  margin-top: 6px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1C2027;
  border-radius: 4px;
  min-width: 0;
}

.lbx-ng-num {
  flex-shrink: 0;
  font-family: var(--lbx-font-num);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.lbx-ng-text {
  min-width: 0;
  flex: 1;
  font-family: var(--lbx-font-ui);
  font-size: 16px;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbx-ng-name {
  font-weight: 700;
}

.lbx-ng-dot {
  color: var(--lbx-gray);
  margin: 0 2px;
}

.lbx-ng-team {
  font-weight: 400;
}

.lbx-ng-team[data-tone="white"] {
  color: var(--lbx-gray);
}

/* ===== STANDINGS ===== */
.lbx-st {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.lbx-st-head {
  box-sizing: border-box;
  height: 37px;
  padding: 0 9.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.lbx-st-title {
  min-width: 0;
  font-family: var(--lbx-font-class);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  color: var(--lbx-amber);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lbx-st-title.lbx-blink {
  animation: lbx-pulse 0.5s ease-in-out 3;
}

.lbx-chip {
  flex-shrink: 0;
  box-sizing: border-box;
  height: 15.5px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 3px;
  background: #2A2E35;
  color: #D1D5DB;
  font-family: var(--lbx-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1;
  text-transform: uppercase;
}

/* Column Header */
.lbx-st-col-head {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  padding: 4px 0 3px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  font-family: var(--lbx-font-label);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8B9099;
  flex-shrink: 0;
  line-height: 1;
}

.lbx-col-rank {
  width: 35px;
  text-align: center;
  flex-shrink: 0;
}

.lbx-col-info {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
}

.lbx-col-rt {
  width: 52px;
  text-align: right;
  flex-shrink: 0;
}

.lbx-col-et60 {
  width: 46px;
  text-align: right;
  flex-shrink: 0;
}

.lbx-col-time {
  width: 72px;
  text-align: right;
  padding-right: 8px;
  flex-shrink: 0;
}

.lbx-col-sub {
  font-size: 7.5px;
  font-weight: 500;
  color: #6B7280;
  margin-top: 2px;
}

.lbx-hidden-sub {
  visibility: hidden;
  user-select: none;
}

.lbx-st-list {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.lbx-st-list::-webkit-scrollbar {
  display: none;
}

.lbx-st-empty {
  padding: 40px 12px;
  text-align: center;
  font-family: var(--lbx-font-label);
  font-size: 12px;
  color: #6B7280;
}

.lbx-row {
  --lbx-row-bg: #1B1E23;
  --lbx-row-line: rgba(255, 255, 255, 0.04);
  --lbx-box-bg: #22252B;
  --lbx-box-fg: #5D6168;
  --lbx-box-edge: transparent;
  --lbx-tval-main: #E5E7EB;
  --lbx-tval-sub: var(--lbx-gray);
  --lbx-tval-time: var(--lbx-green);

  flex-shrink: 0;
  height: 38px;
  display: flex;
  align-items: stretch;
  background-color: var(--lbx-row-bg);
  background-image: repeating-linear-gradient(-45deg,
      transparent 0px,
      transparent 3px,
      var(--lbx-row-line) 3px,
      var(--lbx-row-line) 4px);
}

/* Zebra Striped Rows */
.lbx-row:nth-child(odd) {
  --lbx-row-bg: #16181D;
  --lbx-box-bg: #1C1F24;
}

.lbx-row:nth-child(even) {
  --lbx-row-bg: #101215;
  --lbx-box-bg: #14161A;
  box-shadow: inset 0 0 0 1000px rgba(0, 0, 0, 0.2);
}

.lbx-row-p1 {
  --lbx-row-bg: #101512;
  --lbx-box-bg: #0E2015;
  --lbx-box-fg: #16A34A;
  --lbx-box-edge: #16A34A;
}

.lbx-row-p2 {
  --lbx-row-bg: #0F1418;
  --lbx-box-bg: #0B1E29;
  --lbx-box-fg: #0284C7;
  --lbx-box-edge: #0284C7;
}

.lbx-row-p3 {
  --lbx-row-bg: #131018;
  --lbx-box-bg: #1B1028;
  --lbx-box-fg: #9333EA;
  --lbx-box-edge: #9333EA;
}

.lbx-row-p4 {
  --lbx-row-bg: #15110F;
  --lbx-box-bg: #25130A;
  --lbx-box-fg: #EA580C;
  --lbx-box-edge: #EA580C;
}

.lbx-row-p5 {
  --lbx-row-bg: #15130E;
  --lbx-box-bg: #221A08;
  --lbx-box-fg: #CA8A04;
  --lbx-box-edge: #CA8A04;
}

.lbx-row-pnom {
  --lbx-row-bg: #1A1F26;
  --lbx-box-bg: #2E3542;
  --lbx-box-fg: #E5E7EB;
  --lbx-box-edge: var(--lbx-amber);
}

.lbx-row-nom-last {
  border-bottom: none;
}

.lbx-row-dnf {
  --lbx-row-bg: #2C1618;
  --lbx-row-line: rgba(229, 72, 77, 0.06);
  --lbx-box-bg: #4A1E21;
  --lbx-box-fg: var(--lbx-red);
  --lbx-tval-main: var(--lbx-red);
  --lbx-tval-sub: #B4484C;
  --lbx-tval-time: var(--lbx-red);
}

.lbx-row-dns {
  --lbx-row-bg: #2A2512;
  --lbx-row-line: rgba(224, 183, 67, 0.06);
  --lbx-box-bg: #4A4120;
  --lbx-box-fg: #E0B743;
  --lbx-tval-main: #E0B743;
  --lbx-tval-sub: #A88C3A;
  --lbx-tval-time: #E0B743;
}

.lbx-row-exc {
  --lbx-row-bg: #17191C;
  --lbx-box-bg: #2A2D33;
  --lbx-box-fg: var(--lbx-gray);
  --lbx-tval-main: var(--lbx-gray);
  --lbx-tval-sub: #6B7280;
  --lbx-tval-time: var(--lbx-gray);
}

.lbx-row-exc .lbx-info-name,
.lbx-row-exc .lbx-info-name-text {
  color: var(--lbx-gray) !important;
}

.lbx-row-exc .lbx-info-num,
.lbx-row-exc .lbx-info-team {
  color: #6B7280 !important;
}

.lbx-row-live {
  outline: 1px solid rgba(61, 190, 75, 0.6);
  outline-offset: -1px;
  animation: lbx-pulse 1.2s ease-in-out infinite;
}

.lbx-rank {
  flex-shrink: 0;
  width: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--lbx-box-bg);
  box-shadow: inset 3px 0 0 var(--lbx-box-edge);
  color: var(--lbx-box-fg);
  font-family: var(--lbx-font-ui);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.lbx-rank-text {
  font-size: 18px;
}

.lbx-info {
  flex: 1;
  min-width: 0;
  padding-left: 9.5px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lbx-info-name {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  font-family: var(--lbx-font-ui);
  font-size: 16px;
  font-weight: 700;
  line-height: 16px;
  color: var(--lbx-white);
  text-transform: uppercase;
}

.lbx-info-name-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: 'Chakra Petch', sans-serif !important;
  letter-spacing: 0.07em !important;
}

.lbx-info-num {
  font-family: var(--lbx-font-num);
  font-size: 11px;
  font-weight: 700;
  color: #FFCC00;
  flex-shrink: 0;
  margin-left: 4px;
  letter-spacing: 0.02em;
}

.lbx-info-team {
  font-family: var(--lbx-font-ui);
  font-size: 13px;
  font-weight: 400;
  line-height: 13px;
  color: var(--lbx-gray);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

/* Timing columns (RT, ET60, Time/Speed) */
.lbx-tcol {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  font-family: var(--lbx-font-num);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.lbx-tcol-rt {
  width: 52px;
}

.lbx-tcol-et60 {
  width: 46px;
}

.lbx-tcol-time {
  width: 72px;
  padding-right: 8px;
}

.lbx-tval-main {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  color: var(--lbx-tval-main);
}

.lbx-tval-sub {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--lbx-tval-sub);
  margin-top: 1px;
}

.lbx-tval-time {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--lbx-tval-time);
}

/* ===== FOOTER ===== */
.lbx-footer {
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--lbx-font-ui);
  font-size: 12px;
  letter-spacing: 0.03em;
  color: #8B9099;
}

/* ===== RACE SCHEDULE BUTTON (Sama seperti Mode Classic) ===== */
.lbx-schedule-footer {
  padding: 4px 3px;
  flex-shrink: 0;
}

.lbx-schedule-btn {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: linear-gradient(90deg, rgba(255, 153, 0, 0.3) 0%, rgba(255, 153, 0, 0.1) 50%, rgba(255, 153, 0, 0.3) 100%);
  border: 1px solid rgba(255, 153, 0, 0.4);
  border-radius: 8px;
  padding: 1px;
  box-shadow: 0 0 15px rgba(255, 153, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  text-decoration: none;
}

.lbx-schedule-btn:hover {
  box-shadow: 0 0 20px rgba(255, 153, 0, 0.4);
}

.lbx-schedule-inner {
  background: #0B0C10;
  width: 100%;
  padding: 8px 14px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.lbx-schedule-btn:hover .lbx-schedule-inner {
  background: #111a24;
}

.lbx-schedule-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lbx-schedule-icon {
  background: rgba(255, 153, 0, 0.2);
  padding: 6px;
  border-radius: 6px;
  color: #FF9900;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.lbx-schedule-btn:hover .lbx-schedule-icon {
  transform: scale(1.1);
}

.lbx-schedule-icon svg {
  width: 20px;
  height: 20px;
}

.lbx-schedule-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.lbx-schedule-title {
  font-family: var(--lbx-font-ui);
  font-size: 12px;
  font-weight: 900;
  color: #E5E7EB;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
}

.lbx-schedule-subtitle {
  font-family: var(--lbx-font-label);
  font-size: 12px;
  font-weight: 300;
  color: #FF9900;
  line-height: 1.2;
}

.lbx-schedule-arrow {
  background: rgba(255, 153, 0, 0.1);
  padding: 4px;
  border-radius: 50%;
  color: #FF9900;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: lbx-bounce 1s infinite;
}

.lbx-schedule-arrow svg {
  width: 16px;
  height: 16px;
}

@keyframes lbx-bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-4px);
  }
}