/* Savant-style horizontal day ticker */
.jl-games-panel {
  max-width: 1100px;
  margin: 10px auto 14px;
  padding: 4px 8px 2px;
  box-sizing: border-box;
  border-top: 1px solid #2a2a32;
}

.jl-games-ticker {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 8px;
  width: 100%;
  min-height: 64px;
}

.jl-games-ticker-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.jl-games-ticker-track::-webkit-scrollbar {
  display: none;
}

.jl-games-ticker-nav {
  display: flex !important;
  flex-direction: row !important;
  flex: 0 0 auto;
  align-items: stretch;
  gap: 0;
}

.jl-games-ticker-btn {
  width: 34px;
  min-height: 64px;
  margin: 0;
  padding: 0;
  border: 1px solid #3a4550;
  background: #15151b;
  color: #e8e8e8;
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-sizing: border-box;
}

.jl-games-ticker-btn:first-child {
  border-right: none;
  border-radius: 3px 0 0 3px;
}

.jl-games-ticker-btn:last-child {
  border-radius: 0 3px 3px 0;
}

.jl-games-ticker-btn:hover {
  background: #22222c;
  color: var(--jl-accent, #6ea8ff);
}

/* Far-right M/D calendar control */
.jl-games-date-wrap {
  flex: 0 0 56px;
  width: 56px;
  min-height: 64px;
  display: flex !important;
  align-items: stretch;
  justify-content: center;
  box-sizing: border-box;
}

.jl-games-date,
.jl-games-date .SingleDatePicker,
.jl-games-date .SingleDatePickerInput,
.jl-games-date .DateInput {
  width: 56px !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #15151b !important;
  border: 1px solid #3a4550 !important;
  border-radius: 3px !important;
  box-sizing: border-box !important;
}

.jl-games-date .SingleDatePickerInput {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.jl-games-date .DateInput {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
}

.jl-games-date .DateInput_input,
.jl-games-date .DateInput_input__focused {
  width: 100% !important;
  height: 62px !important;
  margin: 0 !important;
  padding: 0 2px !important;
  border: none !important;
  border-bottom: none !important;
  background: transparent !important;
  color: #e8e8e8 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums !important;
  text-align: center !important;
  line-height: 62px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.jl-games-date .SingleDatePickerInput_calendarIcon,
.jl-games-date .DateInput_fang {
  display: none !important;
}

.jl-games-date .SingleDatePicker_picker {
  z-index: 200 !important;
}

.jl-game-card {
  display: flex !important;
  flex-direction: row !important;
  flex: 0 0 168px !important;
  width: 168px !important;
  min-width: 168px !important;
  max-width: 168px !important;
  height: 64px !important;
  background: #1a1a20;
  border: 1px solid #3a4550;
  border-radius: 3px;
  overflow: hidden;
  color: #e8e8e8;
  box-sizing: border-box;
}

.jl-game-card-wrap {
  position: relative;
  flex: 0 0 168px;
  outline: none;
}

.jl-game-card-wrap:focus-visible {
  box-shadow: 0 0 0 2px var(--jl-accent, #6ea8ff);
  border-radius: 3px;
}

.jl-game-card-live,
.jl-game-card-wrap.jl-game-card-live .jl-game-card {
  border-color: #c0392b !important;
  box-shadow: 0 0 0 1px rgba(192, 57, 43, 0.35);
}

/* Preview / Live appear on hover (desktop) or focus (keyboard / first tap). */
.jl-game-card-actions {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  background: #0c0c12;
  border-radius: 3px;
  z-index: 2;
}

.jl-game-card-wrap:hover .jl-game-card-actions,
.jl-game-card-wrap:focus-within .jl-game-card-actions {
  opacity: 1;
  pointer-events: auto;
}

.jl-game-card-action {
  flex: 1 1 50%;
  margin: 0;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #f0f0f0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.jl-game-card-action:hover,
.jl-game-card-action:focus-visible {
  background: #1a3a66;
  color: #fff;
  outline: none;
}

.jl-game-card-action-live:hover,
.jl-game-card-action-live:focus-visible {
  background: #6b241c;
}

/* Game preview (Home sub-view at /preview/{gamePk}). */
.jl-preview-page {
  display: none;
  box-sizing: border-box;
  max-width: 1280px;
  margin: 8px auto 24px;
  padding: 16px 16px 28px;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.jl-preview-page-bar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.jl-games-preview-close {
  margin: 0;
  padding: 5px 12px;
  border: 1px solid #3a4550;
  border-radius: 3px;
  background: #1a1a20;
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.jl-games-preview-close:hover {
  border-color: var(--jl-accent, #6ea8ff);
  color: var(--jl-accent, #6ea8ff);
}

.jl-preview-heading {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #2a2a32;
}

.jl-preview-heading-main {
  font-size: 20px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.25;
  margin-bottom: 6px;
}

.jl-preview-heading-meta {
  font-size: 13px;
  font-weight: 600;
  color: #9aa0a6;
  line-height: 1.35;
  margin-bottom: 6px;
}

.jl-preview-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #888;
  margin: 0 0 10px;
}

.jl-preview-section-probables {
  text-align: center;
  margin: 8px 0 16px;
}

.jl-preview-section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f0f0f0;
  line-height: 1.2;
}

.jl-preview-enlarge-hint {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #9aa0a6;
}

.jl-preview-card-col {
  flex: 1 1 520px;
  min-width: 320px;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Zoom button fills the card column width. */
.jl-preview-card-col .jl-preview-card-zoom-btn {
  flex: 0 1 auto;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* Align home-style Open profile control under preview season cards. */
.jl-preview-player-open-wrap {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.jl-preview-player-open-disabled {
  color: #666;
  font-size: 12px;
  font-weight: 600;
}

/* Logo home (/): keep teams + slate; hide tool tab bodies. */
.jl-on-home #main-tabs .tab-content {
  display: none !important;
}

/* Home modules sit under the tab strip; hidden on tool tabs + during preview. */
#home-extras {
  display: none;
  max-width: 1320px;
  margin: 8px auto 20px;
  padding: 0 4px 8px;
}

.jl-on-home #home-extras {
  display: block;
}

.jl-preview-open #home-extras {
  display: none !important;
}

/* Keep the home spinner in-flow under the tab strip (never over Reclass / tabs). */
.jl-home-loading {
  position: relative;
  min-height: 140px;
  margin-top: 8px;
}

.jl-home-loading .dash-spinner-container,
.jl-home-loading ._dash-loading,
.jl-home-loading .dash-loading,
#home-extras .dash-spinner-container,
#home-extras ._dash-loading,
#home-extras .dash-loading {
  position: relative !important;
  inset: auto !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  bottom: auto !important;
  width: 100% !important;
  height: auto !important;
  min-height: 140px;
  transform: none !important;
  display: flex !important;
  align-items: flex-start !important;
  justify-content: center !important;
  padding: 20px 0 12px;
  background: transparent !important;
  z-index: 1;
}

#main-tabs-wrap,
#main-tabs > div:first-child {
  position: relative;
  z-index: 6;
}

.jl-home-section {
  margin: 0 0 22px;
}

.jl-home-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.jl-home-section-title {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e8e8e8;
}

.jl-home-section-link {
  margin: 0;
  padding: 4px 10px;
  border: 1px solid #3a4550;
  border-radius: 3px;
  background: #1a1a20;
  color: var(--jl-accent, #6ea8ff);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.jl-home-section-link:hover {
  border-color: var(--jl-accent, #6ea8ff);
}

.jl-home-empty-note {
  color: #888;
  font-size: 13px;
  padding: 8px 0;
}

.jl-home-lb-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jl-home-lb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 980px) {
  .jl-home-lb-grid {
    grid-template-columns: 1fr;
  }
}

.jl-home-lb-board {
  background: #141418;
  border: 1px solid #2a2a32;
  border-radius: 6px;
  padding: 12px 12px 10px;
  min-width: 0;
}

.jl-home-lb-board-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--jl-accent, #6ea8ff);
}

.jl-home-lb-board-sub {
  font-size: 11px;
  color: #888;
  margin: 2px 0 8px;
}

.jl-home-lb-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 0 2px;
  padding: 5px 6px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #e8e8e8;
  text-align: left;
  cursor: pointer;
}

.jl-home-lb-row:hover {
  background: #1e1e28;
}

.jl-home-lb-rank {
  flex: 0 0 18px;
  color: #888;
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 600;
}

.jl-home-lb-face {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #222;
  pointer-events: none;
}

.jl-home-lb-who {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.jl-home-lb-name {
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-home-lb-team {
  font-size: 11px;
  color: #888;
}

.jl-home-lb-val {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #f0f0f0;
  padding-left: 8px;
}

.jl-home-feat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 980px) {
  .jl-home-feat-row {
    grid-template-columns: 1fr;
  }
}

.jl-home-feat-card {
  background: #141418;
  border: 1px solid #2a2a32;
  border-radius: 6px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.jl-home-feat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 22px;
}

.jl-home-feat-matchup {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #888;
  margin: 0;
}

.jl-home-feat-main {
  display: grid;
  /* Face + compact name + stats row that keeps all 5 chips on one line */
  grid-template-columns: 32px minmax(0, 118px) minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-width: 0;
}

.jl-home-feat-face {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: #222;
  justify-self: start;
}

.jl-home-feat-who {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  min-width: 0;
}

.jl-home-feat-team {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--jl-accent, #6ea8ff);
  line-height: 1.2;
}

.jl-home-feat-name {
  font-size: 14px;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jl-home-feat-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  min-width: 0;
  align-items: stretch;
}

.jl-home-feat-stat {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
  min-width: 0;
}

.jl-home-feat-stat span {
  font-size: 9px;
  font-weight: 700;
  color: #9a9a9a;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  text-align: center;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
}

.jl-home-feat-stat strong {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 4px 2px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
  line-height: 1.1;
  color: #e8e8e8;
  background: #2a2a30;
  white-space: nowrap;
}

.jl-home-feat-open {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ab0c4;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
}

.jl-home-feat-open:hover {
  color: var(--jl-accent, #6ea8ff);
}

@media (max-width: 560px) {
  .jl-home-feat-main {
    grid-template-columns: 32px minmax(0, 1fr);
    row-gap: 8px;
  }

  .jl-home-feat-stats {
    grid-column: 1 / -1;
  }
}

/* No tool tab should look selected on the home page. */
.jl-on-home #main-tabs .tab--selected,
.jl-on-home #main-tabs .tab.tab--selected {
  background-color: #1a1a20 !important;
  color: #aaa !important;
  border: 1px solid #222 !important;
  font-weight: 400 !important;
}

.jl-site-logo-link {
  text-decoration: none;
  color: inherit;
  display: inline-block;
  cursor: pointer;
}

.jl-site-logo-link:hover .jl-site-title {
  filter: brightness(1.15);
}

/* Preview sits under the tabs; teams/slate stay above. */
.jl-preview-open #games-preview-page {
  display: block !important;
}

.jl-preview-lineups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  width: 100%;
  align-items: start;
}

@media (max-width: 900px) {
  .jl-preview-lineups {
    grid-template-columns: 1fr;
  }
}

.jl-preview-lineup-col {
  min-width: 0;
  width: 100%;
}

.jl-preview-lineup-title {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 8px;
  color: #e8e8e8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.jl-preview-lineup-empty {
  color: #888;
  font-size: 12px;
  padding: 8px 0;
}

.jl-preview-lineup-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.jl-preview-lineup-table th,
.jl-preview-lineup-table td {
  padding: 5px 4px;
  border-bottom: 1px solid #222;
  vertical-align: middle;
  white-space: nowrap;
}

.jl-preview-lineup-table thead th {
  color: #888;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-bottom: 1px solid #333;
}

.jl-preview-th-slot,
.jl-preview-td-slot {
  width: 28px;
  text-align: center;
  color: #888;
  font-variant-numeric: tabular-nums;
}

.jl-preview-th-pos,
.jl-preview-td-pos {
  width: 36px;
  text-align: left;
  color: #9aa0a6;
}

.jl-preview-th-name,
.jl-preview-td-name {
  width: auto;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #e8e8e8;
}

.jl-preview-th-stat,
.jl-preview-stat {
  width: 42px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.jl-preview-stat {
  color: #c8c8c8;
  font-weight: 600;
  border-radius: 2px;
}

.jl-preview-lineup-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.jl-preview-card {
  flex: 1 1 520px;
  min-width: 320px;
  max-width: 640px;
}

.jl-games-preview-body {
  width: 100%;
}

.jl-games-preview-hint {
  color: #888;
  font-size: 13px;
}

.jl-games-preview-body img,
.jl-preview-card-zoom-btn img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 6px;
  background: #0b0b0f;
}

.jl-preview-card-zoom-btn:hover {
  border-color: var(--jl-accent, #6ea8ff) !important;
  box-shadow: 0 0 0 1px var(--jl-accent, #6ea8ff);
}

.jl-preview-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.jl-preview-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.82);
  cursor: zoom-out;
}

.jl-preview-lightbox-dialog {
  position: relative;
  z-index: 1;
  max-width: min(1100px, 96vw);
  max-height: 94vh;
  overflow: auto;
  background: #0b0b0f;
  border: 1px solid #333;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
}

.jl-preview-lightbox-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 1px solid #444;
  border-radius: 4px;
  background: #1a1a20;
  color: #f0f0f0;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.jl-preview-lightbox-close:hover {
  border-color: var(--jl-accent, #6ea8ff);
  color: var(--jl-accent, #6ea8ff);
}

.jl-preview-lightbox-img {
  display: block;
  width: auto !important;
  max-width: min(1040px, 92vw) !important;
  height: auto !important;
  margin: 0 auto;
  border-radius: 6px;
}

.jl-game-card-team {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
}

.jl-game-card-team img,
.jl-game-card-logo {
  width: 16px !important;
  height: 16px !important;
  max-width: 16px !important;
  max-height: 16px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}

.jl-game-card-dots {
  display: flex;
  gap: 2px;
  align-items: center;
}

.jl-game-card-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid #8a8a8a;
  box-sizing: border-box;
  background: transparent;
}

.jl-game-card-dot-on {
  background: #e8e8e8;
  border-color: #e8e8e8;
}

.jl-game-card-dot-away.jl-game-card-dot-on {
  background: #c8c8c8;
  border-color: #c8c8c8;
}

.jl-game-card-dot-home.jl-game-card-dot-on {
  background: #4f7cac;
  border-color: #4f7cac;
}

.jl-games-empty {
  color: #888;
  text-align: left;
  padding: 12px 8px;
}
