.player-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;

  &__wrapper {
    position: relative;
  }

  &__image {
    border-radius: 50%;
    overflow: hidden;
    background-color: #f5f5f5;
  }

  &__status {
    position: absolute;
    bottom: 3px;
    right: 3px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;

    &--online {
      background-color: #4cd964;
    }

    &--offline {
      background-color: #ccc;
    }
  }

  &__tag {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #ff9500;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 10px;
    white-space: nowrap;
  }

  &__name {
    margin-top: 5px;
    font-size: 12px;
    color: #333;
    text-align: center;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  // 大尺寸
  &--large {
    .player-avatar__image {
      width: 80px;
      height: 80px;
    }

    .player-avatar__status {
      width: 12px;
      height: 12px;
    }

    .player-avatar__name {
      font-size: 14px;
      margin-top: 8px;
    }

    .player-avatar__tag {
      font-size: 12px;
      padding: 2px 6px;
    }
  }

  // 中等尺寸
  &--medium {
    .player-avatar__image {
      width: 50px;
      height: 50px;
    }

    .player-avatar__status {
      width: 10px;
      height: 10px;
    }

    .player-avatar__name {
      font-size: 12px;
      margin-top: 5px;
    }
  }

  // 小尺寸
  &--small {
    .player-avatar__image {
      width: 36px;
      height: 36px;
    }

    .player-avatar__status {
      width: 8px;
      height: 8px;
    }

    .player-avatar__name {
      font-size: 10px;
      margin-top: 3px;
    }

    .player-avatar__tag {
      font-size: 8px;
      padding: 1px 4px;
    }
  }
} 