@import url("/assets/game-record-list-clean-v2-provider-only-20260730.css");

.game-records-action-page .game-record-provider-directory {
  display: grid !important;
  gap: 10px !important;
  padding: 0 12px 18px !important;
}

.game-records-action-page .game-record-provider-card {
  min-width: 0 !important;
  min-height: 82px !important;
  padding: 12px 14px !important;
  display: grid !important;
  grid-template-columns: 34px minmax(90px, 1.2fr) minmax(74px, .85fr) minmax(74px, .85fr) 16px !important;
  gap: 9px !important;
  align-items: center !important;
  border: 1px solid rgba(177, 147, 78, .28) !important;
  border-radius: 16px !important;
  background: #fffdf8 !important;
  box-shadow: 0 5px 14px rgba(54, 48, 32, .06) !important;
  color: inherit !important;
  text-align: left !important;
}

.game-records-action-page .game-record-provider-icon {
  width: 34px !important;
  height: 34px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 50% !important;
  background: rgba(225, 226, 207, .72) !important;
  color: #9b7a2e !important;
}

.game-records-action-page .game-record-provider-name,
.game-records-action-page .game-record-provider-metric {
  min-width: 0 !important;
}

.game-records-action-page .game-record-provider-name strong,
.game-records-action-page .game-record-provider-metric strong {
  display: block !important;
  overflow: hidden !important;
  font-size: 13px !important;
  line-height: 19px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.game-records-action-page .game-record-provider-name strong {
  color: #112c55 !important;
  font-size: 15px !important;
}

.game-records-action-page .game-record-provider-name small,
.game-records-action-page .game-record-provider-metric small {
  display: block !important;
  margin-bottom: 2px !important;
  color: #777268 !important;
  font-size: 10px !important;
  line-height: 14px !important;
}

.game-records-action-page .game-record-provider-metric {
  text-align: right !important;
}

.game-records-action-page .game-record-provider-detail-bar {
  margin: 0 12px 10px !important;
  min-height: 44px !important;
  padding: 7px 10px !important;
  display: flex !important;
  gap: 10px !important;
  align-items: center !important;
  justify-content: space-between !important;
  border: 1px solid rgba(177, 147, 78, .2) !important;
  border-radius: 13px !important;
  background: rgba(248, 242, 229, .72) !important;
}

.game-records-action-page .game-record-provider-detail-bar button {
  min-width: 0 !important;
  padding: 6px 8px !important;
  display: inline-flex !important;
  gap: 5px !important;
  align-items: center !important;
  border: 0 !important;
  background: transparent !important;
  color: #112c55 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

.game-records-action-page .game-record-provider-detail-bar > strong {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #112c55 !important;
  font-size: 14px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@media (max-width: 390px) {
  .game-records-action-page .game-record-provider-card {
    grid-template-columns: 32px minmax(84px, 1fr) minmax(66px, .8fr) minmax(66px, .8fr) 14px !important;
    gap: 6px !important;
    padding-inline: 10px !important;
  }

  .game-records-action-page .game-record-provider-name strong {
    font-size: 13px !important;
  }

  .game-records-action-page .game-record-provider-metric strong {
    font-size: 11px !important;
  }
}

@media (max-width: 359px) {
  .game-records-action-page .game-record-provider-card {
    grid-template-columns: 30px minmax(80px, 1fr) minmax(62px, .8fr) 12px !important;
  }

  .game-records-action-page .game-record-provider-card .game-record-provider-metric.result {
    display: none !important;
  }
}

/* Provider overview: losses are visually distinct from wins. */
.game-records-action-page .game-record-provider-card .game-record-provider-metric.result strong.negative {
  color: #d83b46 !important;
}

.game-records-action-page .game-record-provider-card .game-record-provider-metric.result strong.positive {
  color: #5f813b !important;
}

/* Provider detail: keep the five-record page and pagination in one viewport. */
.game-records-action-page.scrollable:has(.game-record-provider-detail-bar) {
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-records-timeline-page {
  min-height: 0 !important;
  height: calc(100dvh - 56px) !important;
  padding-bottom: max(6px, env(safe-area-inset-bottom)) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-filter-bar,
.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-summary,
.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-provider-detail-bar {
  flex: 0 0 auto !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-list {
  min-height: 0 !important;
  flex: 1 1 auto !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-group {
  min-height: 0 !important;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-rows {
  min-height: 0 !important;
  grid-template-rows: repeat(5, minmax(0, 1fr)) !important;
  overflow: hidden !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-row {
  min-height: 0 !important;
  height: auto !important;
  padding-block: 5px !important;
}

.game-records-action-page:has(.game-record-provider-detail-bar) .game-record-pagination {
  flex: 0 0 auto !important;
  margin-top: 6px !important;
  padding-bottom: 0 !important;
}

@media (max-height: 760px) {
  .game-records-action-page:has(.game-record-provider-detail-bar) .game-record-filter-bar,
  .game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-summary {
    min-height: 72px !important;
  }

  .game-records-action-page:has(.game-record-provider-detail-bar) .game-record-provider-detail-bar {
    min-height: 38px !important;
    margin-bottom: 6px !important;
  }

  .game-records-action-page:has(.game-record-provider-detail-bar) .game-record-timeline-group > header {
    min-height: 46px !important;
    padding-block: 7px !important;
  }
}
