.player-popover {
  display: inline-flex;
  min-width: 0;
  max-width: 100%;
  vertical-align: middle;
}

.player-popover-trigger {
  display: inline;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.player-popover-trigger:hover,
.player-popover-trigger:focus-visible,
.player-popover-trigger[aria-expanded="true"] {
  border-bottom-color: rgba(79, 195, 247, 0.95);
  color: #b3e5fc;
  outline: none;
}

.player-popover-card {
  position: fixed;
  z-index: 10050;
  width: min(300px, calc(100vw - 24px));
  padding: 14px;
  border: 1px solid rgba(120, 190, 255, 0.3);
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(20, 45, 78, 0.98), rgba(7, 22, 43, 0.98));
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.48);
  color: #f5f9ff;
  text-align: left;
  line-height: 1.35;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.player-popover-card[hidden] {
  display: none !important;
}

.player-popover-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.player-popover-avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.player-popover-avatar-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
}

.player-popover-heading {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.player-popover-heading strong {
  overflow: hidden;
  color: #fff;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-popover-heading span {
  overflow: hidden;
  color: rgba(224, 238, 255, 0.72);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-popover-details {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.player-popover-details span {
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(241, 247, 255, 0.88);
  font-size: 0.76rem;
}

.player-popover-actions {
  margin-top: 12px;
}

.player-popover-actions form {
  margin: 0;
}

.player-popover-dm {
  display: inline-flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid rgba(79, 195, 247, 0.5);
  border-radius: 11px;
  background: linear-gradient(135deg, rgba(25, 118, 210, 0.9), rgba(0, 151, 167, 0.88));
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.player-popover-dm:hover,
.player-popover-dm:focus-visible {
  filter: brightness(1.1);
  outline: 2px solid rgba(129, 212, 250, 0.45);
  outline-offset: 2px;
}

.player-popover-note {
  display: block;
  color: rgba(224, 238, 255, 0.72);
  font-size: 0.78rem;
  text-align: center;
}

@media (max-width: 600px) {
  .player-popover-card {
    padding: 13px;
    border-radius: 15px;
  }

  .player-popover-avatar {
    flex-basis: 52px;
    width: 52px;
    height: 52px;
  }
}
