/* CAUGHT PLANES and LEADERBOARD, from the original caught list, detail modal and leaderboard grid rules. */
.caught-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid var(--c-grey-111);
  cursor: pointer;
}

.caught-item strong {
  color: var(--c-yellow);
}

.caught-count {
  color: #69fffa;
  font-weight: bold;
  margin-left: 10px;
}

.caught-airline {
  font-size: 0.75rem;
  color: var(--c-cyan);
}

.caught-search {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 7px 9px;
  border: 1px solid var(--c-grey-333);
  border-radius: 4px;
  background: var(--c-grey-050505);
  color: var(--c-white);
  font-family: inherit;
  font-size: 0.78rem;
}

.caught-no-matches {
  padding: 16px 4px;
  color: var(--c-grey-aaa);
}

/* The rows are flex and the headings block, so [hidden] needs saying out loud for the search to hide them. */
.caught-item[hidden],
.caught-group[hidden],
.caught-no-matches[hidden] {
  display: none;
}

.caught-thumb {
  width: 48px;
  height: 32px;
  object-fit: cover;
  border-radius: 3px;
  margin-right: 8px;
  background: var(--c-grey-111);
  display: inline-block;
}

#caught-modal-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 7000;
}

#caught-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-grey-111);
  padding: 20px;
  border: 2px solid #FF69B4;
  border-radius: 6px;
  z-index: 7001;
  max-width: 80%;
  max-height: 80%;
  overflow: auto;
  color: var(--c-white);
}

#caught-modal img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
}

#caught-modal .close-btn {
  position: absolute;
  top: 6px;
  right: 8px;
  background: #FF69B4;
  border: none;
  color: var(--c-black);
  padding: 2px 6px;
  cursor: pointer;
  border-radius: 3px;
}

#leaderboard-list {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 15px !important;
  padding: 10px !important;
}

.theme-light #caught-modal {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 2px solid #d97706 !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
}

.theme-light #caught-modal .close-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
