/* Free Play Bay recent-ROM launcher UI. This file changes only the pre-launch ROM panel. */
.fpb-rom-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  margin: 0 0 5px;
}

.fpb-rom-copy .fpb-rom-kicker-row > .eyebrow {
  min-width: 0;
  margin: 0;
}

.fpb-rom-kicker-row .fpb-emulator-favorite-btn.fpb-favorite-heart-only {
  width: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  height: 38px !important;
  min-height: 38px !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 0 0 38px;
  display: inline-grid !important;
  place-items: center;
  gap: 0 !important;
  border-radius: 50% !important;
}

.fpb-rom-kicker-row .fpb-emulator-favorite-btn.fpb-favorite-heart-only svg {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
}

.fpb-rom-actions {
  grid-template-columns: minmax(0, 1fr) !important;
}

.fpb-rom-actions .start-button,
.fpb-rom-actions .fpb-recent-rom-library {
  grid-column: 1 / -1;
}

.fpb-recent-rom-library {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 14px;
  background: rgba(4, 18, 37, .62);
}

.fpb-recent-rom-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.fpb-recent-rom-heading-row > strong {
  color: #edf8ff;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.fpb-recent-rom-count {
  color: #7dd3fc;
  font-size: .7rem;
  font-weight: 800;
}

.fpb-recent-rom-list {
  display: grid;
  gap: 7px;
}

.fpb-recent-rom-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 7px;
  min-width: 0;
}

.fpb-recent-rom-select,
.fpb-recent-rom-remove {
  margin: 0;
  border: 1px solid rgba(56, 189, 248, .35);
  background: rgba(4, 18, 37, .82);
  color: #edf8ff;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease, background .16s ease, transform .12s ease, opacity .16s ease;
}

.fpb-recent-rom-select {
  min-width: 0;
  min-height: 50px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-radius: 11px;
  text-align: left;
}

.fpb-recent-rom-remove {
  width: 38px;
  min-width: 38px;
  min-height: 50px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #fda4af;
  font-size: 1.35rem;
  line-height: 1;
}

.fpb-recent-rom-select:hover,
.fpb-recent-rom-select:focus-visible,
.fpb-recent-rom-remove:hover,
.fpb-recent-rom-remove:focus-visible {
  border-color: rgba(56, 189, 248, .88);
  background: rgba(8, 35, 65, .96);
  outline: none;
}

.fpb-recent-rom-remove:hover,
.fpb-recent-rom-remove:focus-visible {
  border-color: rgba(251, 113, 133, .8);
  background: rgba(73, 17, 32, .72);
}

.fpb-recent-rom-select:active,
.fpb-recent-rom-remove:active {
  transform: scale(.985);
}

.fpb-recent-rom-select[aria-busy="true"],
.fpb-recent-rom-select:disabled,
.fpb-recent-rom-remove:disabled {
  opacity: .62;
  pointer-events: none;
}

.fpb-recent-rom-item.is-selected .fpb-recent-rom-select {
  border-color: rgba(49, 215, 200, .88);
  background: rgba(10, 63, 68, .62);
}

.fpb-recent-rom-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(56, 189, 248, .12);
  color: #7dd3fc;
  font-size: .76rem;
  font-weight: 900;
}

.fpb-recent-rom-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.fpb-recent-rom-copy strong,
.fpb-recent-rom-copy span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fpb-recent-rom-copy strong {
  color: inherit;
  font-size: .84rem;
  line-height: 1.25;
}

.fpb-recent-rom-copy span {
  color: #94a3b8;
  font-size: .69rem;
  line-height: 1.2;
}

.fpb-recent-rom-arrow {
  color: #7dd3fc;
  font-size: .76rem;
}

.fpb-recent-rom-empty {
  margin: 0;
  padding: 8px 4px 2px;
  color: #94a3b8;
  font-size: .78rem;
  text-align: center;
}

.fpb-recent-rom-empty[hidden],
.fpb-recent-rom-list[hidden] {
  display: none !important;
}

@media (max-width: 620px) {
  .fpb-rom-kicker-row .fpb-emulator-favorite-btn.fpb-favorite-heart-only {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    flex-basis: 36px;
  }

  .fpb-recent-rom-library {
    padding: 10px;
  }

  .fpb-recent-rom-item {
    grid-template-columns: minmax(0, 1fr) 36px;
    gap: 6px;
  }

  .fpb-recent-rom-select {
    min-height: 48px;
    padding: 7px 8px;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .fpb-recent-rom-remove {
    width: 36px;
    min-width: 36px;
    min-height: 48px;
  }

  .fpb-recent-rom-number {
    width: 26px;
    height: 26px;
  }
}
