.agora-modal[hidden],
.agora-player-preview[hidden] {
  display: none;
}

.agora-modal {
  position: fixed;
  inset: 0;
  z-index: 9020;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(2, 8, 13, 0.7);
  overflow-y: auto;
}

body.agora-modal-open {
  overflow: hidden;
}

.agora-modal-panel,
.agora-player-preview {
  border: 1px solid rgba(171, 220, 241, 0.34);
  border-radius: 12px;
  background: #102434;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.agora-modal-panel {
  width: min(100%, 440px);
  max-height: calc(100dvh - 2rem);
  box-sizing: border-box;
  overflow-y: auto;
  padding: 1.2rem;
}

.agora-modal-panel h2,
.agora-modal-panel p {
  margin-top: 0;
}

.agora-modal-panel textarea {
  width: 100%;
  box-sizing: border-box;
  margin: 0.35rem 0 0.8rem;
}

.agora-modal-preview {
  max-height: 6rem;
  overflow: auto;
  color: #d9e9f4;
  white-space: pre-wrap;
}

.agora-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.65rem;
}

.agora-modal-check {
  display: flex;
  gap: 0.45rem;
  align-items: start;
  margin-bottom: 0.8rem;
}

.agora-modal-status {
  min-height: 1.25rem;
  color: #bcecf2;
}

.agora-player-preview {
  position: fixed;
  z-index: 9010;
  width: min(310px, calc(100vw - 16px));
  max-height: calc(100dvh - 16px);
  box-sizing: border-box;
  overflow: hidden auto;
  padding: 0.65rem 0.72rem;
  color: #e8f5ff;
  pointer-events: auto;
}

.agora-player-preview-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 0.48rem;
  border-bottom: 1px solid rgba(171, 220, 241, 0.18);
}

.agora-player-preview-header > strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.9rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agora-player-preview-profile-link {
  flex: 0 0 auto;
  color: #9fc8e8;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.agora-player-preview-profile-link:hover,
.agora-player-preview-profile-link:focus-visible {
  color: #e8f6ff;
  outline: 1px solid currentColor;
  outline-offset: 3px;
}

.agora-player-preview-ratings {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.agora-player-preview-rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.43rem 0;
  border-bottom: 1px solid rgba(171, 220, 241, 0.1);
}

.agora-player-preview-rating:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.agora-player-preview-rating span {
  display: grid;
  min-width: 0;
  gap: 0.05rem;
}

.agora-player-preview-rating strong {
  overflow: hidden;
  color: #d9e9f4;
  font-size: 0.73rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agora-player-preview-rating small {
  color: #91a8b8;
  font-size: 0.64rem;
}

.agora-player-preview-rating b {
  color: #f5d999;
  font-size: 0.98rem;
}

.agora-player-preview-unavailable {
  margin: 0;
  padding-top: 0.5rem;
  color: #aebfcc;
  font-size: 0.76rem;
}
